From 65ddd751cb39be60a169f8b687782ebe678207f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 9 Aug 2018 08:15:10 +0200 Subject: [PATCH 001/143] created branch From b03e058c6a004718c3016c737303e01a2665a713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 9 Aug 2018 09:38:55 +0200 Subject: [PATCH 002/143] add navigation for config --- scm-ui/public/locales/en/commons.json | 3 ++- scm-ui/src/components/navigation/PrimaryNavigation.js | 4 ++++ scm-ui/src/config/containers/Config.js | 9 +++++++++ scm-ui/src/containers/Main.js | 8 ++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 scm-ui/src/config/containers/Config.js diff --git a/scm-ui/public/locales/en/commons.json b/scm-ui/public/locales/en/commons.json index 1feaa80a9b..b1bad56993 100644 --- a/scm-ui/public/locales/en/commons.json +++ b/scm-ui/public/locales/en/commons.json @@ -32,7 +32,8 @@ "repositories": "Repositories", "users": "Users", "logout": "Logout", - "groups": "Groups" + "groups": "Groups", + "config": "Configuration" }, "paginator": { "next": "Next", diff --git a/scm-ui/src/components/navigation/PrimaryNavigation.js b/scm-ui/src/components/navigation/PrimaryNavigation.js index 530570b70a..dc81c4a4fc 100644 --- a/scm-ui/src/components/navigation/PrimaryNavigation.js +++ b/scm-ui/src/components/navigation/PrimaryNavigation.js @@ -28,6 +28,10 @@ class PrimaryNavigation extends React.Component { match="/(group|groups)" label={t("primary-navigation.groups")} /> + Here, Config will be shown; + } +} + +export default Config; diff --git a/scm-ui/src/containers/Main.js b/scm-ui/src/containers/Main.js index 5272c6117b..cfc2e26f93 100644 --- a/scm-ui/src/containers/Main.js +++ b/scm-ui/src/containers/Main.js @@ -19,6 +19,8 @@ import Groups from "../groups/containers/Groups"; import SingleGroup from "../groups/containers/SingleGroup"; import AddGroup from "../groups/containers/AddGroup"; +import Config from "../config/containers/Config"; + type Props = { authenticated?: boolean }; @@ -99,6 +101,12 @@ class Main extends React.Component { component={Groups} authenticated={authenticated} /> + ); From 4edf5d6f35d42994919a17fb24299d4980f86672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 9 Aug 2018 10:18:12 +0200 Subject: [PATCH 003/143] added global navigation --- scm-ui/src/config/containers/Config.js | 52 ++++++++++++++++++-- scm-ui/src/config/containers/GlobalConfig.js | 19 +++++++ 2 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 scm-ui/src/config/containers/GlobalConfig.js diff --git a/scm-ui/src/config/containers/Config.js b/scm-ui/src/config/containers/Config.js index 47bb8b55b0..0744ae089f 100644 --- a/scm-ui/src/config/containers/Config.js +++ b/scm-ui/src/config/containers/Config.js @@ -1,9 +1,53 @@ -import React, { Component } from "react"; +import React from "react"; +import { translate } from "react-i18next"; +import { Route } from "react-router"; + +import { Page } from "../../components/layout"; +import { Navigation, NavLink, Section } from "../../components/navigation"; +import GlobalConfig from "./GlobalConfig"; +import type { History } from "history"; + +type Props = { + // context objects + t: string => string, + match: any, + history: History +}; + +class Config extends React.Component { + stripEndingSlash = (url: string) => { + if (url.endsWith("/")) { + return url.substring(0, url.length - 2); + } + return url; + }; + + matchedUrl = () => { + return this.stripEndingSlash(this.props.match.url); + }; -class Config extends Component { render() { - return
Here, Config will be shown
; + const { t } = this.props; + + const url = this.matchedUrl(); + + return ( + +
+
+ } /> +
+
+ +
+ +
+
+
+
+
+ ); } } -export default Config; +export default translate("config")(Config); diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js new file mode 100644 index 0000000000..fde650413f --- /dev/null +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -0,0 +1,19 @@ +import React from "react"; +import { Page } from "../../components/layout"; +import type { History } from "history"; +import { translate } from "react-i18next"; + +type Props = { + // context objects + t: string => string +}; + +class GlobalConfig extends React.Component { + render() { + const { t } = this.props; + + return
Here, global config will be shown
; + } +} + +export default translate("config")(GlobalConfig); From 52eaafa549b161543e96d066ba3ec56177d7b811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 9 Aug 2018 11:33:08 +0200 Subject: [PATCH 004/143] refactoring: change title and subtitle to independent components --- scm-ui/src/components/layout/Page.js | 18 ++++++------------ scm-ui/src/components/layout/Subtitle.js | 17 +++++++++++++++++ scm-ui/src/components/layout/Title.js | 17 +++++++++++++++++ 3 files changed, 40 insertions(+), 12 deletions(-) create mode 100644 scm-ui/src/components/layout/Subtitle.js create mode 100644 scm-ui/src/components/layout/Title.js diff --git a/scm-ui/src/components/layout/Page.js b/scm-ui/src/components/layout/Page.js index 77d206d348..f0f2d5d971 100644 --- a/scm-ui/src/components/layout/Page.js +++ b/scm-ui/src/components/layout/Page.js @@ -2,9 +2,11 @@ import * as React from "react"; import Loading from "./../Loading"; import ErrorNotification from "./../ErrorNotification"; +import Title from "./Title"; +import Subtitle from "./Subtitle"; type Props = { - title: string, + title?: string, subtitle?: string, loading?: boolean, error?: Error, @@ -14,12 +16,12 @@ type Props = { class Page extends React.Component { render() { - const { title, error } = this.props; + const { title, error, subtitle } = this.props; return (
-

{title}

- {this.renderSubtitle()} + + <Subtitle subtitle={subtitle} /> <ErrorNotification error={error} /> {this.renderContent()} </div> @@ -27,14 +29,6 @@ class Page extends React.Component<Props> { ); } - renderSubtitle() { - const { subtitle } = this.props; - if (subtitle) { - return <h2 className="subtitle">{subtitle}</h2>; - } - return null; - } - renderContent() { const { loading, children, showContentOnError, error } = this.props; if (error && !showContentOnError) { diff --git a/scm-ui/src/components/layout/Subtitle.js b/scm-ui/src/components/layout/Subtitle.js new file mode 100644 index 0000000000..e55dbde5e4 --- /dev/null +++ b/scm-ui/src/components/layout/Subtitle.js @@ -0,0 +1,17 @@ +import React from "react"; + +type Props = { + subtitle?: string +}; + +class Subtitle extends React.Component<Props> { + render() { + const { subtitle } = this.props; + if (subtitle) { + return <h1 className="subtitle">{subtitle}</h1>; + } + return null; + } +} + +export default Subtitle; diff --git a/scm-ui/src/components/layout/Title.js b/scm-ui/src/components/layout/Title.js new file mode 100644 index 0000000000..fbb58da14c --- /dev/null +++ b/scm-ui/src/components/layout/Title.js @@ -0,0 +1,17 @@ +import React from "react"; + +type Props = { + title?: string +}; + +class Title extends React.Component<Props> { + render() { + const { title } = this.props; + if (title) { + return <h1 className="title">{title}</h1>; + } + return null; + } +} + +export default Title; From 9395b77ca2a3073ff8ecb901228423a1b3976ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 11:34:23 +0200 Subject: [PATCH 005/143] set title in global config and not in general config component --- scm-ui/src/config/containers/Config.js | 2 +- scm-ui/src/config/containers/GlobalConfig.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scm-ui/src/config/containers/Config.js b/scm-ui/src/config/containers/Config.js index 0744ae089f..a5266a6680 100644 --- a/scm-ui/src/config/containers/Config.js +++ b/scm-ui/src/config/containers/Config.js @@ -32,7 +32,7 @@ class Config extends React.Component<Props> { const url = this.matchedUrl(); return ( - <Page title={t("config.title")}> + <Page> <div className="columns"> <div className="column is-three-quarters"> <Route path={url} exact component={() => <GlobalConfig />} /> diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index fde650413f..e0877e3a09 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -1,7 +1,6 @@ import React from "react"; -import { Page } from "../../components/layout"; -import type { History } from "history"; import { translate } from "react-i18next"; +import Title from "../../components/layout/Title"; type Props = { // context objects @@ -12,7 +11,7 @@ class GlobalConfig extends React.Component<Props> { render() { const { t } = this.props; - return <div>Here, global config will be shown</div>; + return <Title title={t("config.title")} />; } } From 08771624352c5c4f2c9db280246aed0b647bd49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 11:36:10 +0200 Subject: [PATCH 006/143] add endpoint for reading global config --- scm-ui/src/config/modules/config.js | 71 ++++++++++++++ scm-ui/src/config/modules/config.test.js | 116 +++++++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 scm-ui/src/config/modules/config.js create mode 100644 scm-ui/src/config/modules/config.test.js diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js new file mode 100644 index 0000000000..b951d33ed3 --- /dev/null +++ b/scm-ui/src/config/modules/config.js @@ -0,0 +1,71 @@ +// @flow +import { apiClient } from "../../apiclient"; +import * as types from "../../modules/types"; +import type { Action } from "../../types/Action"; + +export const FETCH_CONFIG = "scm/groups/FETCH_CONFIG"; +export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; +export const FETCH_CONFIG_SUCCESS = `${FETCH_CONFIG}_${types.SUCCESS_SUFFIX}`; +export const FETCH_CONFIG_FAILURE = `${FETCH_CONFIG}_${types.FAILURE_SUFFIX}`; + +const CONFIG_URL = "config"; + +//fetch config +export function fetchConfig() { + return function(dispatch: any) { + dispatch(fetchConfigPending()); + return apiClient + .get(CONFIG_URL) + .then(response => { + return response.json(); + }) + .then(data => { + dispatch(fetchConfigSuccess(data)); + }) + .catch(cause => { + const error = new Error(`could not fetch config: ${cause.message}`); + dispatch(fetchConfigFailure(error)); + }); + }; +} + +export function fetchConfigPending(): Action { + return { + type: FETCH_CONFIG_PENDING + }; +} + +export function fetchConfigSuccess(config: any): Action { + return { + type: FETCH_CONFIG_SUCCESS, + payload: config + }; +} + +export function fetchConfigFailure(error: Error): Action { + return { + type: FETCH_CONFIG_FAILURE, + payload: { + error + } + }; +} + +//reducer + +function reducer(state: any = {}, action: any = {}) { + switch (action.type) { + case FETCH_CONFIG_SUCCESS: + return { + ...state, + config: { + entries: action.payload, + configUpdatePermission: action.payload._links.update ? true : false + } + }; + default: + return state; + } +} + +export default reducer; diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js new file mode 100644 index 0000000000..f81df3d522 --- /dev/null +++ b/scm-ui/src/config/modules/config.test.js @@ -0,0 +1,116 @@ +//@flow +import configureMockStore from "redux-mock-store"; +import thunk from "redux-thunk"; +import fetchMock from "fetch-mock"; + +import reducer, { + FETCH_CONFIG_PENDING, + FETCH_CONFIG_SUCCESS, + FETCH_CONFIG_FAILURE, + fetchConfig, + fetchConfigSuccess +} from "./config"; + +const CONFIG_URL = "/scm/api/rest/v2/config"; + +const error = new Error("You have an error!"); + +const config = { + proxyPassword: null, + proxyPort: 8080, + proxyServer: "proxy.mydomain.com", + proxyUser: null, + enableProxy: false, + realmDescription: "SONIA :: SCM Manager", + enableRepositoryArchive: false, + disableGroupingGrid: false, + dateFormat: "YYYY-MM-DD HH:mm:ss", + anonymousAccessEnabled: false, + adminGroups: [], + adminUsers: [], + baseUrl: "http://localhost:8081/scm", + forceBaseUrl: false, + loginAttemptLimit: -1, + proxyExcludes: [], + skipFailedAuthenticators: false, + pluginUrl: + "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false", + loginAttemptLimitTimeout: 300, + enabledXsrfProtection: true, + defaultNamespaceStrategy: "sonia.scm.repository.DefaultNamespaceStrategy", + _links: { + self: { href: "http://localhost:8081/scm/api/rest/v2/config" }, + update: { href: "http://localhost:8081/scm/api/rest/v2/config" } + } +}; + +const responseBody = { + entries: config +}; + +const response = { + headers: { "content-type": "application/json" }, + responseBody +}; + +describe("config fetch()", () => { + const mockStore = configureMockStore([thunk]); + afterEach(() => { + fetchMock.reset(); + fetchMock.restore(); + }); + + it("should successfully fetch config", () => { + fetchMock.getOnce(CONFIG_URL, response); + + const expectedActions = [ + { type: FETCH_CONFIG_PENDING }, + { + type: FETCH_CONFIG_SUCCESS, + payload: response + } + ]; + + const store = mockStore({}); + + return store.dispatch(fetchConfig()).then(() => { + expect(store.getActions()).toEqual(expectedActions); + }); + }); + + it("should fail getting config on HTTP 500", () => { + fetchMock.getOnce(CONFIG_URL, { + status: 500 + }); + + const store = mockStore({}); + return store.dispatch(fetchConfig()).then(() => { + const actions = store.getActions(); + expect(actions[0].type).toEqual(FETCH_CONFIG_PENDING); + expect(actions[1].type).toEqual(FETCH_CONFIG_FAILURE); + expect(actions[1].payload).toBeDefined(); + }); + }); +}); + +describe("config reducer", () => { + it("should update state correctly according to FETCH_CONFIG_SUCCESS action", () => { + const newState = reducer({}, fetchConfigSuccess(config)); + + expect(newState.config).toEqual({ + entries: config, + configUpdatePermission: true + }); + }); + + it("should set configUpdatePermission to true if update link is present", () => { + const newState = reducer({}, fetchConfigSuccess(config)); + + expect(newState.config.configUpdatePermission).toBeTruthy(); + }); + + it("should update state according to FETCH_GROUP_SUCCESS action", () => { + const newState = reducer({}, fetchConfigSuccess(config)); + expect(newState.config.entries).toBe(config); + }); +}); From 4f8101a8dd860b8ae3a0b1497890e49f69ccf29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 11:36:29 +0200 Subject: [PATCH 007/143] add translation file for config --- scm-ui/public/locales/en/config.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scm-ui/public/locales/en/config.json diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json new file mode 100644 index 0000000000..c6bd8c6db7 --- /dev/null +++ b/scm-ui/public/locales/en/config.json @@ -0,0 +1,7 @@ +{ + "config": { + "title": "Configuration", + "navigation-title": "Navigation", + "globalConfig-label": "Global Configuration" + } +} From 866a70b816804ad2b1b2f85390c47341e5d8671c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 12:09:50 +0200 Subject: [PATCH 008/143] handle error and loading state --- scm-ui/public/locales/en/config.json | 8 ++- scm-ui/src/config/containers/Config.js | 2 +- scm-ui/src/config/containers/GlobalConfig.js | 61 ++++++++++++++++++-- scm-ui/src/config/modules/config.js | 12 ++++ scm-ui/src/config/modules/config.test.js | 33 ++++++++++- 5 files changed, 107 insertions(+), 9 deletions(-) diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index c6bd8c6db7..dd87bdcae2 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -1,7 +1,11 @@ { "config": { + "navigation-title": "Navigation" + }, + "global-config": { "title": "Configuration", - "navigation-title": "Navigation", - "globalConfig-label": "Global Configuration" + "navigation-label": "Global Configuration", + "error-title": "Error", + "error-subtitle": "Unknown Config Error" } } diff --git a/scm-ui/src/config/containers/Config.js b/scm-ui/src/config/containers/Config.js index a5266a6680..0a7d112192 100644 --- a/scm-ui/src/config/containers/Config.js +++ b/scm-ui/src/config/containers/Config.js @@ -40,7 +40,7 @@ class Config extends React.Component<Props> { <div className="column"> <Navigation> <Section label={t("config.navigation-title")}> - <NavLink to={`${url}`} label={t("config.globalConfig-label")} /> + <NavLink to={`${url}`} label={t("global-config.navigation-label")} /> </Section> </Navigation> </div> diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index e0877e3a09..a3fcca70d5 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -1,18 +1,69 @@ import React from "react"; import { translate } from "react-i18next"; import Title from "../../components/layout/Title"; +import { + fetchConfig, + getFetchConfigFailure, + isFetchConfigPending +} from "../modules/config"; +import connect from "react-redux/es/connect/connect"; +import ErrorPage from "../../components/ErrorPage"; +import Loading from "../../components/Loading"; type Props = { + loading: boolean, + error: Error, + // context objects - t: string => string + t: string => string, + fetchConfig: void => void }; class GlobalConfig extends React.Component<Props> { - render() { - const { t } = this.props; + componentDidMount() { + this.props.fetchConfig(); + } - return <Title title={t("config.title")} />; + render() { + const { t, error, loading } = this.props; + + if (error) { + return ( + <ErrorPage + title={t("global-config.error-title")} + subtitle={t("global-config.error-subtitle")} + error={error} + /> + ); + } + + if (loading) { + return <Loading />; + } + + return <Title title={t("global-config.title")} />; } } -export default translate("config")(GlobalConfig); +const mapDispatchToProps = dispatch => { + return { + fetchConfig: () => { + dispatch(fetchConfig()); + } + }; +}; + +const mapStateToProps = state => { + const loading = isFetchConfigPending(state); + const error = getFetchConfigFailure(state); + + return { + loading, + error + }; +}; + +export default connect( + mapStateToProps, + mapDispatchToProps +)(translate("config")(GlobalConfig)); diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index b951d33ed3..062be6fc95 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -2,6 +2,8 @@ import { apiClient } from "../../apiclient"; import * as types from "../../modules/types"; import type { Action } from "../../types/Action"; +import { isPending } from "../../modules/pending"; +import { getFailure } from "../../modules/failure"; export const FETCH_CONFIG = "scm/groups/FETCH_CONFIG"; export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; @@ -69,3 +71,13 @@ function reducer(state: any = {}, action: any = {}) { } export default reducer; + +// selectors + +export function isFetchConfigPending(state: Object) { + return isPending(state, FETCH_CONFIG); +} + +export function getFetchConfigFailure(state: Object) { + return getFailure(state, FETCH_CONFIG); +} diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index f81df3d522..86b5db7cbf 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -4,11 +4,14 @@ import thunk from "redux-thunk"; import fetchMock from "fetch-mock"; import reducer, { + FETCH_CONFIG, FETCH_CONFIG_PENDING, FETCH_CONFIG_SUCCESS, FETCH_CONFIG_FAILURE, fetchConfig, - fetchConfigSuccess + fetchConfigSuccess, + getFetchConfigFailure, + isFetchConfigPending } from "./config"; const CONFIG_URL = "/scm/api/rest/v2/config"; @@ -114,3 +117,31 @@ describe("config reducer", () => { expect(newState.config.entries).toBe(config); }); }); + +describe("selector tests", () => { + it("should return true, when fetch config is pending", () => { + const state = { + pending: { + [FETCH_CONFIG]: true + } + }; + expect(isFetchConfigPending(state)).toEqual(true); + }); + + it("should return false, when fetch config is not pending", () => { + expect(isFetchConfigPending({})).toEqual(false); + }); + + it("should return error when fetch config did fail", () => { + const state = { + failure: { + [FETCH_CONFIG]: error + } + }; + expect(getFetchConfigFailure(state)).toEqual(error); + }); + + it("should return undefined when fetch config did not fail", () => { + expect(getFetchConfigFailure({})).toBe(undefined); + }); +}); From e0063c5119356166fde2e21e242d9df6e21aa938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 13:05:34 +0200 Subject: [PATCH 009/143] add config to state --- scm-ui/src/createReduxStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/createReduxStore.js b/scm-ui/src/createReduxStore.js index 55e0d3f514..8411326b53 100644 --- a/scm-ui/src/createReduxStore.js +++ b/scm-ui/src/createReduxStore.js @@ -11,6 +11,7 @@ import groups from "./groups/modules/groups"; import auth from "./modules/auth"; import pending from "./modules/pending"; import failure from "./modules/failure"; +import config from "./config/modules/config"; import type { BrowserHistory } from "history/createBrowserHistory"; @@ -26,7 +27,8 @@ function createReduxStore(history: BrowserHistory) { repos, repositoryTypes, groups, - auth + auth, + config }); return createStore( From b0c1b64c43ac6e0cced533e4165d97629226bb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 13:05:59 +0200 Subject: [PATCH 010/143] correct structure of config state part --- scm-ui/src/config/modules/config.js | 6 ++---- scm-ui/src/config/modules/config.test.js | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 062be6fc95..521dd94495 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -60,10 +60,8 @@ function reducer(state: any = {}, action: any = {}) { case FETCH_CONFIG_SUCCESS: return { ...state, - config: { - entries: action.payload, - configUpdatePermission: action.payload._links.update ? true : false - } + entries: action.payload, + configUpdatePermission: action.payload._links.update ? true : false }; default: return state; diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index 86b5db7cbf..837e7d126f 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -100,7 +100,7 @@ describe("config reducer", () => { it("should update state correctly according to FETCH_CONFIG_SUCCESS action", () => { const newState = reducer({}, fetchConfigSuccess(config)); - expect(newState.config).toEqual({ + expect(newState).toEqual({ entries: config, configUpdatePermission: true }); @@ -109,12 +109,12 @@ describe("config reducer", () => { it("should set configUpdatePermission to true if update link is present", () => { const newState = reducer({}, fetchConfigSuccess(config)); - expect(newState.config.configUpdatePermission).toBeTruthy(); + expect(newState.configUpdatePermission).toBeTruthy(); }); - it("should update state according to FETCH_GROUP_SUCCESS action", () => { + it("should update state according to FETCH_CONFIG_SUCCESS action", () => { const newState = reducer({}, fetchConfigSuccess(config)); - expect(newState.config.entries).toBe(config); + expect(newState.entries).toBe(config); }); }); From 00e078e3ab6630fe7ca4c3502904b8d581ca3eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 16:33:28 +0200 Subject: [PATCH 011/143] remove function because otherwise component is mounted three times instead of one --- scm-ui/src/config/containers/Config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scm-ui/src/config/containers/Config.js b/scm-ui/src/config/containers/Config.js index 0a7d112192..e41d3cc653 100644 --- a/scm-ui/src/config/containers/Config.js +++ b/scm-ui/src/config/containers/Config.js @@ -35,12 +35,15 @@ class Config extends React.Component<Props> { <Page> <div className="columns"> <div className="column is-three-quarters"> - <Route path={url} exact component={() => <GlobalConfig />} /> + <Route path={url} exact component={GlobalConfig} /> </div> <div className="column"> <Navigation> <Section label={t("config.navigation-title")}> - <NavLink to={`${url}`} label={t("global-config.navigation-label")} /> + <NavLink + to={`${url}`} + label={t("global-config.navigation-label")} + /> </Section> </Navigation> </div> From a4e1c8b023f58a5584efe0e68123c0a8cd420fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 16:34:08 +0200 Subject: [PATCH 012/143] renaming --- scm-ui/src/config/modules/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 521dd94495..e7a8e87e98 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -5,7 +5,7 @@ import type { Action } from "../../types/Action"; import { isPending } from "../../modules/pending"; import { getFailure } from "../../modules/failure"; -export const FETCH_CONFIG = "scm/groups/FETCH_CONFIG"; +export const FETCH_CONFIG = "scm/config/FETCH_CONFIG"; export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; export const FETCH_CONFIG_SUCCESS = `${FETCH_CONFIG}_${types.SUCCESS_SUFFIX}`; export const FETCH_CONFIG_FAILURE = `${FETCH_CONFIG}_${types.FAILURE_SUFFIX}`; From fa1b82f9102f3dcd5fa7520e07296d4f2dc87bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 9 Aug 2018 16:44:24 +0200 Subject: [PATCH 013/143] added config modify --- scm-ui/src/config/modules/config.js | 54 +++++++++++++++++++++++ scm-ui/src/config/modules/config.test.js | 55 +++++++++++++++++++++++- 2 files changed, 108 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index e7a8e87e98..2e51693719 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -4,13 +4,20 @@ import * as types from "../../modules/types"; import type { Action } from "../../types/Action"; import { isPending } from "../../modules/pending"; import { getFailure } from "../../modules/failure"; +import { Dispatch } from "redux"; export const FETCH_CONFIG = "scm/config/FETCH_CONFIG"; export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; export const FETCH_CONFIG_SUCCESS = `${FETCH_CONFIG}_${types.SUCCESS_SUFFIX}`; export const FETCH_CONFIG_FAILURE = `${FETCH_CONFIG}_${types.FAILURE_SUFFIX}`; +export const MODIFY_CONFIG = "scm/config/FETCH_CONFIG"; +export const MODIFY_CONFIG_PENDING = `${MODIFY_CONFIG}_${types.PENDING_SUFFIX}`; +export const MODIFY_CONFIG_SUCCESS = `${MODIFY_CONFIG}_${types.SUCCESS_SUFFIX}`; +export const MODIFY_CONFIG_FAILURE = `${MODIFY_CONFIG}_${types.FAILURE_SUFFIX}`; + const CONFIG_URL = "config"; +const CONTENT_TYPE_CONFIG = "application/vnd.scmm-config+json;v=2"; //fetch config export function fetchConfig() { @@ -53,6 +60,53 @@ export function fetchConfigFailure(error: Error): Action { }; } +// modify config +export function modifyConfig(config: any, callback?: () => void) { + return function(dispatch: Dispatch) { + dispatch(modifyConfigPending(config)); + return apiClient + .put(config._links.update.href, config, CONTENT_TYPE_CONFIG) + .then(() => { + dispatch(modifyConfigSuccess(config)); + if (callback) { + callback(); + } + }) + .catch(cause => { + dispatch( + modifyConfigFailure( + config, + new Error(`could not modify config: ${cause.message}`) + ) + ); + }); + }; +} + +export function modifyConfigPending(config: any): Action { + return { + type: MODIFY_CONFIG_PENDING, + payload: config + }; +} + +export function modifyConfigSuccess(config: any): Action { + return { + type: MODIFY_CONFIG_SUCCESS, + payload: config + }; +} + +export function modifyConfigFailure(config: any, error: Error): Action { + return { + type: MODIFY_CONFIG_FAILURE, + payload: { + error, + config + } + }; +} + //reducer function reducer(state: any = {}, action: any = {}) { diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index 837e7d126f..b62ed50bf8 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -8,10 +8,14 @@ import reducer, { FETCH_CONFIG_PENDING, FETCH_CONFIG_SUCCESS, FETCH_CONFIG_FAILURE, + MODIFY_CONFIG_PENDING, + MODIFY_CONFIG_SUCCESS, + MODIFY_CONFIG_FAILURE, fetchConfig, fetchConfigSuccess, getFetchConfigFailure, - isFetchConfigPending + isFetchConfigPending, + modifyConfig } from "./config"; const CONFIG_URL = "/scm/api/rest/v2/config"; @@ -94,6 +98,55 @@ describe("config fetch()", () => { expect(actions[1].payload).toBeDefined(); }); }); + + it("should successfully modify config", () => { + fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/config", { + status: 204 + }); + + const store = mockStore({}); + + return store.dispatch(modifyConfig(config)).then(() => { + const actions = store.getActions(); + expect(actions[0].type).toEqual(MODIFY_CONFIG_PENDING); + expect(actions[1].type).toEqual(MODIFY_CONFIG_SUCCESS); + expect(actions[1].payload).toEqual(config); + }); + }); + + it("should call the callback after modifying config", () => { + fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/config", { + status: 204 + }); + + let called = false; + const callback = () => { + called = true; + }; + const store = mockStore({}); + + return store.dispatch(modifyConfig(config, callback)).then(() => { + const actions = store.getActions(); + expect(actions[0].type).toEqual(MODIFY_CONFIG_PENDING); + expect(actions[1].type).toEqual(MODIFY_CONFIG_SUCCESS); + expect(called).toBe(true); + }); + }); + + it("should fail modifying config on HTTP 500", () => { + fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/config", { + status: 500 + }); + + const store = mockStore({}); + + return store.dispatch(modifyConfig(config)).then(() => { + const actions = store.getActions(); + expect(actions[0].type).toEqual(MODIFY_CONFIG_PENDING); + expect(actions[1].type).toEqual(MODIFY_CONFIG_FAILURE); + expect(actions[1].payload).toBeDefined(); + }); + }); }); describe("config reducer", () => { From 60526ba38ead50eab8646222c83aaa0534dc4a8d Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Fri, 10 Aug 2018 15:39:14 +0200 Subject: [PATCH 014/143] Started implementing the sources feature --- .../api/v2/resources/BrowserResultDto.java | 18 +++++ ...BrowserResultToBrowserResultDtoMapper.java | 9 +++ .../scm/api/v2/resources/FileObjectDto.java | 28 ++++++++ .../FileObjectToFileObjectDtoMapper.java | 9 +++ .../api/v2/resources/SourceRootResource.java | 43 +++++++++--- .../FileObjectToFileObjectDtoMapperTest.java | 69 +++++++++++++++++++ 6 files changed, 167 insertions(+), 9 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java create mode 100644 scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java new file mode 100644 index 0000000000..b62f5fa124 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java @@ -0,0 +1,18 @@ +package sonia.scm.api.v2.resources; + +import de.otto.edison.hal.HalRepresentation; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.util.Collection; + +@Getter +@Setter +@NoArgsConstructor +public class BrowserResultDto extends HalRepresentation { + private String revision; + private String tag; + private String branch; + private Collection<FileObjectDto> files; +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java new file mode 100644 index 0000000000..ecc59900e5 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java @@ -0,0 +1,9 @@ +package sonia.scm.api.v2.resources; + +import org.mapstruct.Mapper; +import sonia.scm.repository.BrowserResult; + +@Mapper +public abstract class BrowserResultToBrowserResultDtoMapper extends BaseMapper<BrowserResult, BrowserResultDto> { + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java new file mode 100644 index 0000000000..2f4c7a07c7 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java @@ -0,0 +1,28 @@ +package sonia.scm.api.v2.resources; + +import de.otto.edison.hal.HalRepresentation; +import de.otto.edison.hal.Links; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.Instant; + +@Getter +@Setter +@NoArgsConstructor +public class FileObjectDto extends HalRepresentation { + private String name; + private String path; + private boolean directory; + private String description; + private int length; + // TODO: What about subrepos? + private Instant lastModified; + + @Override + @SuppressWarnings("squid:S1185") // We want to have this method available in this package + protected HalRepresentation add(Links links) { + return super.add(links); + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java new file mode 100644 index 0000000000..86a5e5454b --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java @@ -0,0 +1,9 @@ +package sonia.scm.api.v2.resources; + +import org.mapstruct.Mapper; +import sonia.scm.repository.FileObject; + +@Mapper +public abstract class FileObjectToFileObjectDtoMapper extends BaseMapper<FileObject, FileObjectDto> { + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index d05cc7ea6e..46d8f02c91 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -1,20 +1,45 @@ package sonia.scm.api.v2.resources; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import sonia.scm.repository.BrowserResult; +import sonia.scm.repository.NamespaceAndName; +import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RepositoryNotFoundException; +import sonia.scm.repository.api.BrowseCommandBuilder; +import sonia.scm.repository.api.RepositoryService; +import sonia.scm.repository.api.RepositoryServiceFactory; + +import javax.inject.Inject; +import javax.ws.rs.*; import javax.ws.rs.core.Response; +import java.io.IOException; public class SourceRootResource { + private final RepositoryServiceFactory serviceFactory; + + @Inject + public SourceRootResource(RepositoryServiceFactory serviceFactory) { + this.serviceFactory = serviceFactory; + } + @GET @Path("") - public Response getAll(@DefaultValue("0") @QueryParam("page") int page, - @DefaultValue("10") @QueryParam("pageSize") int pageSize, - @QueryParam("sortBy") String sortBy, - @DefaultValue("false") @QueryParam("desc") boolean desc) { - throw new UnsupportedOperationException(); + public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) { + + BrowserResult browserResult = null; + try (RepositoryService repositoryService = serviceFactory.create(new NamespaceAndName(namespace, name))) { + BrowseCommandBuilder browseCommand = repositoryService.getBrowseCommand(); + browseCommand.setPath("/"); + browserResult = browseCommand.getBrowserResult(); + } catch (RepositoryNotFoundException e) { + e.printStackTrace(); + } catch (RepositoryException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + + return Response.ok(browserResult.toString()).build(); } @GET diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java new file mode 100644 index 0000000000..7babd4b329 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java @@ -0,0 +1,69 @@ +package sonia.scm.api.v2.resources; + +import org.apache.shiro.subject.Subject; +import org.apache.shiro.subject.support.SubjectThreadState; +import org.apache.shiro.util.ThreadContext; +import org.apache.shiro.util.ThreadState; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.InjectMocks; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.repository.FileObject; + +import java.net.URI; +import java.net.URISyntaxException; + +import static org.junit.Assert.*; +import static org.mockito.Mockito.mock; +import static org.mockito.MockitoAnnotations.initMocks; + +@RunWith(MockitoJUnitRunner.class) +public class FileObjectToFileObjectDtoMapperTest { + private final URI baseUri = URI.create("http://example.com/base/"); + + @InjectMocks + private FileObjectToFileObjectDtoMapperImpl mapper; + + private final Subject subject = mock(Subject.class); + private final ThreadState subjectThreadState = new SubjectThreadState(subject); + + + @Before + public void init() throws URISyntaxException { + initMocks(this); + subjectThreadState.bind(); + ThreadContext.bind(subject); + } + + + @Test + public void shouldMapAttributesCorrectly() { + FileObject fileObject = createFileObject(); + FileObjectDto dto = mapper.map(fileObject); + + assertEqualAttributes(fileObject, dto); + } + + + private FileObject createFileObject() { + FileObject fileObject = new FileObject(); + fileObject.setName("foo"); + fileObject.setDescription("bar"); + fileObject.setPath("/foo/bar"); + fileObject.setDirectory(false); + fileObject.setLength(100); + fileObject.setLastModified(123L); + return fileObject; + } + + //TODO: subrepo + private void assertEqualAttributes(FileObject fileObject, FileObjectDto dto) { + assertEquals(fileObject.getName(), dto.getName()); + assertEquals(fileObject.getDescription(), dto.getDescription()); + assertEquals(fileObject.getPath(), dto.getPath()); + assertEquals(fileObject.isDirectory(), dto.isDirectory()); + assertEquals(fileObject.getLength(), dto.getLength()); + assertEquals((long)fileObject.getLastModified(), dto.getLastModified().toEpochMilli()); + } +} From 10822fa4e0b37b95cc9d04f4fdab5976267fbe75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 08:33:44 +0200 Subject: [PATCH 015/143] add selectors for config content --- scm-ui/src/config/modules/config.js | 12 ++++++++++++ scm-ui/src/config/modules/config.test.js | 22 +++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 2e51693719..df04e53235 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -133,3 +133,15 @@ export function isFetchConfigPending(state: Object) { export function getFetchConfigFailure(state: Object) { return getFailure(state, FETCH_CONFIG); } + +export function getConfig(state: Object) { + if (state.config && state.config.entries) { + return state.config.entries; + } +} + +export function getConfigUpdatePermission(state: Object) { + if (state.config && state.config.configUpdatePermission) { + return state.config.configUpdatePermission; + } +} diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index b62ed50bf8..76f8f1a2b2 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -15,7 +15,9 @@ import reducer, { fetchConfigSuccess, getFetchConfigFailure, isFetchConfigPending, - modifyConfig + modifyConfig, + getConfig, + getConfigUpdatePermission } from "./config"; const CONFIG_URL = "/scm/api/rest/v2/config"; @@ -197,4 +199,22 @@ describe("selector tests", () => { it("should return undefined when fetch config did not fail", () => { expect(getFetchConfigFailure({})).toBe(undefined); }); + + it("should return config", () => { + const state = { + config: { + entries: config + } + }; + expect(getConfig(state)).toEqual(config); + }); + + it("should return configUpdatePermission", () => { + const state = { + config: { + configUpdatePermission: true + } + }; + expect(getConfigUpdatePermission(state)).toEqual(true); + }); }); From bb6f076178afbffed3259466e3639bf20b400ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 08:43:13 +0200 Subject: [PATCH 016/143] add selectors for modifyGroupPending and Failure --- scm-ui/src/config/modules/config.js | 8 ++++++ scm-ui/src/config/modules/config.test.js | 31 +++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index df04e53235..0c231ea1ac 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -134,6 +134,14 @@ export function getFetchConfigFailure(state: Object) { return getFailure(state, FETCH_CONFIG); } +export function isModifyConfigPending(state: Object) { + return isPending(state, MODIFY_CONFIG); +} + +export function getModifyConfigFailure(state: Object) { + return getFailure(state, MODIFY_CONFIG); +} + export function getConfig(state: Object) { if (state.config && state.config.entries) { return state.config.entries; diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index 76f8f1a2b2..78b19f10c7 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -8,6 +8,7 @@ import reducer, { FETCH_CONFIG_PENDING, FETCH_CONFIG_SUCCESS, FETCH_CONFIG_FAILURE, + MODIFY_CONFIG, MODIFY_CONFIG_PENDING, MODIFY_CONFIG_SUCCESS, MODIFY_CONFIG_FAILURE, @@ -16,6 +17,8 @@ import reducer, { getFetchConfigFailure, isFetchConfigPending, modifyConfig, + isModifyConfigPending, + getModifyConfigFailure, getConfig, getConfigUpdatePermission } from "./config"; @@ -200,6 +203,32 @@ describe("selector tests", () => { expect(getFetchConfigFailure({})).toBe(undefined); }); + it("should return true, when modify group is pending", () => { + const state = { + pending: { + [MODIFY_CONFIG]: true + } + }; + expect(isModifyConfigPending(state)).toEqual(true); + }); + + it("should return false, when modify config is not pending", () => { + expect(isModifyConfigPending({})).toEqual(false); + }); + + it("should return error when modify config did fail", () => { + const state = { + failure: { + [MODIFY_CONFIG]: error + } + }; + expect(getModifyConfigFailure(state)).toEqual(error); + }); + + it("should return undefined when modify config did not fail", () => { + expect(getModifyConfigFailure({})).toBe(undefined); + }); + it("should return config", () => { const state = { config: { @@ -209,7 +238,7 @@ describe("selector tests", () => { expect(getConfig(state)).toEqual(config); }); - it("should return configUpdatePermission", () => { + it("should return configUpdatePermission", () => { const state = { config: { configUpdatePermission: true From 5767000eb5957e5df242e653b3b9b1ef2bfdc57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:33:27 +0200 Subject: [PATCH 017/143] added Config type --- scm-ui/src/config/types/Config.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scm-ui/src/config/types/Config.js diff --git a/scm-ui/src/config/types/Config.js b/scm-ui/src/config/types/Config.js new file mode 100644 index 0000000000..6c64cd1db7 --- /dev/null +++ b/scm-ui/src/config/types/Config.js @@ -0,0 +1,27 @@ +//@flow +import type { Links } from "../../types/hal"; + +export type Config = { + proxyPassword: string | null, + proxyPort: number, + proxyServer: string, + proxyUser: string | null, + enableProxy: boolean, + realmDescription: string, + enableRepositoryArchive: boolean, + disableGroupingGrid: boolean, + dateFormat: string, + anonymousAccessEnabled: boolean, + adminGroups: string[], + adminUsers: string[], + baseUrl: string, + forceBaseUrl: boolean, + loginAttemptLimit: number, + proxyExcludes: string[], + skipFailedAuthenticators: boolean, + pluginUrl: string, + loginAttemptLimitTimeout: number, + enabledXsrfProtection: boolean, + defaultNamespaceStrategy: string, + _links: Links +}; From 27ae4dac1a192c67ef4f7db609c881245fa110c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:33:56 +0200 Subject: [PATCH 018/143] show settings and let them modify --- .../config/components/form/AdminSettings.js | 29 ++++ .../config/components/form/BaseUrlSettings.js | 43 ++++++ .../src/config/components/form/ConfigForm.js | 126 ++++++++++++++++ .../config/components/form/GeneralSettings.js | 135 ++++++++++++++++++ .../config/components/form/ProxySettings.js | 82 +++++++++++ 5 files changed, 415 insertions(+) create mode 100644 scm-ui/src/config/components/form/AdminSettings.js create mode 100644 scm-ui/src/config/components/form/BaseUrlSettings.js create mode 100644 scm-ui/src/config/components/form/ConfigForm.js create mode 100644 scm-ui/src/config/components/form/GeneralSettings.js create mode 100644 scm-ui/src/config/components/form/ProxySettings.js diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js new file mode 100644 index 0000000000..5079addca1 --- /dev/null +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -0,0 +1,29 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField } from "../../../components/forms/index"; +import Subtitle from "../../../components/layout/Subtitle"; + +type Props = { + adminGroups: string[], + adminUsers: string[], + t: string => string, + onChange: (boolean, any, string) => void +}; +//TODO: Einbauen! +class AdminSettings extends React.Component<Props> { + render() { + const { + t, + adminGroups, + adminUsers + } = this.props; + + return ( + null + ); + } + +} + +export default translate("config")(AdminSettings); diff --git a/scm-ui/src/config/components/form/BaseUrlSettings.js b/scm-ui/src/config/components/form/BaseUrlSettings.js new file mode 100644 index 0000000000..cde4680b48 --- /dev/null +++ b/scm-ui/src/config/components/form/BaseUrlSettings.js @@ -0,0 +1,43 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField } from "../../../components/forms/index"; +import Subtitle from "../../../components/layout/Subtitle"; + +type Props = { + baseUrl: string, + forceBaseUrl: boolean, + t: string => string, + onChange: (boolean, any, string) => void +}; + +class BaseUrlSettings extends React.Component<Props> { + render() { + const { t, baseUrl, forceBaseUrl } = this.props; + + return ( + <div> + <Subtitle subtitle={t("base-url-settings.name")} /> + <Checkbox + checked={forceBaseUrl} + label={t("base-url-settings.force-base-url")} + onChange={this.handleForceBaseUrlChange} + /> + <InputField + label={t("base-url-settings.base-url")} + onChange={this.handleBaseUrlChange} + value={baseUrl} + /> + </div> + ); + } + + handleBaseUrlChange = (value: string) => { + this.props.onChange(true, value, "baseUrl"); + }; + handleForceBaseUrlChange = (value: boolean) => { + this.props.onChange(true, value, "forceBaseUrl"); + }; +} + +export default translate("config")(BaseUrlSettings); diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js new file mode 100644 index 0000000000..ac7325e6fc --- /dev/null +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -0,0 +1,126 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { SubmitButton } from "../../../components/buttons/index"; +import type { Config } from "../../types/Config"; +import ProxySettings from "./ProxySettings"; +import GeneralSettings from "./GeneralSettings"; +import BaseUrlSettings from "./BaseUrlSettings"; + +type Props = { + submitForm: Config => void, + config?: Config, + loading?: boolean, + t: string => string +}; + +type State = { + config: Config +}; + +class ConfigForm extends React.Component<Props, State> { + constructor(props: Props) { + super(props); + + this.state = { + config: { + proxyPassword: null, + proxyPort: 0, + proxyServer: "", + proxyUser: null, + enableProxy: false, + realmDescription: "", + enableRepositoryArchive: false, + disableGroupingGrid: false, + dateFormat: "", + anonymousAccessEnabled: false, + adminGroups: [], + adminUsers: [], + baseUrl: "", + forceBaseUrl: false, + loginAttemptLimit: 0, + proxyExcludes: [], + skipFailedAuthenticators: false, + pluginUrl: "", + loginAttemptLimitTimeout: 0, + enabledXsrfProtection: true, + defaultNamespaceStrategy: "", + _links: {} + } + }; + } + + componentDidMount() { + const { config } = this.props; + console.log(config); + if (config) { + this.setState({ config: { ...config } }); + } + } + + submit = (event: Event) => { + event.preventDefault(); + this.props.submitForm(this.state.config); + }; + + render() { + const { loading, t } = this.props; + let config = this.state.config; + + return ( + <form onSubmit={this.submit}> + <GeneralSettings + realmDescription={config.realmDescription} + enableRepositoryArchive={config.enableRepositoryArchive} + disableGroupingGrid={config.disableGroupingGrid} + dateFormat={config.dateFormat} + anonymousAccessEnabled={config.anonymousAccessEnabled} + loginAttemptLimit={config.loginAttemptLimit} + skipFailedAuthenticators={config.skipFailedAuthenticators} + pluginUrl={config.pluginUrl} + loginAttemptLimitTimeout={config.loginAttemptLimitTimeout} + enabledXsrfProtection={config.enabledXsrfProtection} + defaultNamespaceStrategy={config.defaultNamespaceStrategy} + onChange={(isValid, changedValue, name) => + this.onChange(isValid, changedValue, name) + } + /> + <BaseUrlSettings + baseUrl={config.baseUrl} + forceBaseUrl={config.forceBaseUrl} + onChange={(isValid, changedValue, name) => + this.onChange(isValid, changedValue, name) + } + /> + <ProxySettings + proxyPassword={config.proxyPassword ? config.proxyPassword : ""} + proxyPort={config.proxyPort} + proxyServer={config.proxyServer ? config.proxyServer : ""} + proxyUser={config.proxyUser ? config.proxyUser : ""} + enableProxy={config.enableProxy} + onChange={(isValid, changedValue, name) => + this.onChange(isValid, changedValue, name) + } + /> + <SubmitButton + // disabled={!this.isValid()} + loading={loading} + label={t("config-form.submit")} + /> + </form> + ); + } + + onChange = (isValid: boolean, changedValue: any, name: string) => { + if (isValid) { + this.setState({ + config: { + ...this.state.config, + [name]: changedValue + } + }); + } + }; +} + +export default translate("config")(ConfigForm); diff --git a/scm-ui/src/config/components/form/GeneralSettings.js b/scm-ui/src/config/components/form/GeneralSettings.js new file mode 100644 index 0000000000..29db1e5288 --- /dev/null +++ b/scm-ui/src/config/components/form/GeneralSettings.js @@ -0,0 +1,135 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField } from "../../../components/forms/index"; + +type Props = { + realmDescription: string, + enableRepositoryArchive: boolean, + disableGroupingGrid: boolean, + dateFormat: string, + anonymousAccessEnabled: boolean, + loginAttemptLimit: number, + skipFailedAuthenticators: boolean, + pluginUrl: string, + loginAttemptLimitTimeout: number, + enabledXsrfProtection: boolean, + defaultNamespaceStrategy: string, + t: string => string, + onChange: (boolean, any, string) => void +}; + +class GeneralSettings extends React.Component<Props> { + render() { + const { + t, + realmDescription, + enableRepositoryArchive, + disableGroupingGrid, + dateFormat, + anonymousAccessEnabled, + loginAttemptLimit, + skipFailedAuthenticators, + pluginUrl, + loginAttemptLimitTimeout, + enabledXsrfProtection, + defaultNamespaceStrategy + } = this.props; + + return ( + <div> + <InputField + label={t("general-settings.realm-description")} + onChange={this.handleRealmDescriptionChange} + value={realmDescription} + /> + <Checkbox + checked={enableRepositoryArchive} + label={t("general-settings.enable-repository-archive")} + onChange={this.handleEnableRepositoryArchiveChange} + /> + <Checkbox + checked={disableGroupingGrid} + label={t("general-settings.disable-grouping-grid")} + onChange={this.handleDisableGroupingGridChange} + /> + <InputField + label={t("general-settings.date-format")} + onChange={this.handleDateFormatChange} + value={dateFormat} + /> + <Checkbox + checked={anonymousAccessEnabled} + label={t("general-settings.anonymous-access-enabled")} + onChange={this.handleAnonymousAccessEnabledChange} + /> + <InputField + label={t("general-settings.login-attempt-limit")} + onChange={this.handleLoginAttemptLimitChange} + value={loginAttemptLimit} + /> + <InputField + label={t("general-settings.login-attempt-limit-timeout")} + onChange={this.handleLoginAttemptLimitTimeoutChange} + value={loginAttemptLimitTimeout} + /> + <Checkbox + checked={skipFailedAuthenticators} + label={t("general-settings.skip-failed-authenticators")} + onChange={this.handleSkipFailedAuthenticatorsChange} + /> + <InputField + label={t("general-settings.plugin-url")} + onChange={this.handlePluginUrlChange} + value={pluginUrl} + /> + <Checkbox + checked={enabledXsrfProtection} + label={t("general-settings.enabled-xsrf-protection")} + onChange={this.handleEnabledXsrfProtectionChange} + /> + <InputField + label={t("general-settings.default-namespace-strategy")} + onChange={this.handleDefaultNamespaceStrategyChange} + value={defaultNamespaceStrategy} + /> + </div> + ); + } + + handleRealmDescriptionChange = (value: string) => { + this.props.onChange(true, value, "realmDescription"); + }; + handleEnableRepositoryArchiveChange = (value: boolean) => { + this.props.onChange(true, value, "enableRepositoryArchive"); + }; + handleDisableGroupingGridChange = (value: boolean) => { + this.props.onChange(true, value, "disableGroupingGrid"); + }; + handleDateFormatChange = (value: string) => { + this.props.onChange(true, value, "dateFormat"); + }; + handleAnonymousAccessEnabledChange = (value: string) => { + this.props.onChange(true, value, "anonymousAccessEnabled"); + }; + handleLoginAttemptLimitChange = (value: string) => { + this.props.onChange(true, value, "loginAttemptLimit"); + }; + handleSkipFailedAuthenticatorsChange = (value: string) => { + this.props.onChange(true, value, "skipFailedAuthenticators"); + }; + handlePluginUrlChange = (value: string) => { + this.props.onChange(true, value, "pluginUrl"); + }; + handleLoginAttemptLimitTimeoutChange = (value: string) => { + this.props.onChange(true, value, "loginAttemptLimitTimeout"); + }; + handleEnabledXsrfProtectionChange = (value: boolean) => { + this.props.onChange(true, value, "enabledXsrfProtection"); + }; + handleDefaultNamespaceStrategyChange = (value: string) => { + this.props.onChange(true, value, "defaultNamespaceStrategy"); + }; +} + +export default translate("config")(GeneralSettings); diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js new file mode 100644 index 0000000000..2938c08a71 --- /dev/null +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -0,0 +1,82 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { Checkbox, InputField } from "../../../components/forms/index"; +import Subtitle from "../../../components/layout/Subtitle"; + +type Props = { + proxyPassword: string, + proxyPort: number, + proxyServer: string, + proxyUser: string, + enableProxy: boolean, + proxyExcludes: string[], //TODO: einbauen! + t: string => string, + onChange: (boolean, any, string) => void +}; + +class ProxySettings extends React.Component<Props> { + render() { + const { + t, + proxyPassword, + proxyPort, + proxyServer, + proxyUser, + enableProxy + } = this.props; + + return ( + <div> + <Subtitle subtitle={t("proxy-settings.name")} /> + <Checkbox + checked={enableProxy} + label={t("proxy-settings.enable-proxy")} + onChange={this.handleEnableProxyChange} + /> + <InputField + label={t("proxy-settings.proxy-password")} + onChange={this.handleProxyPasswordChange} + value={proxyPassword} + disable={!enableProxy} + /> + <InputField + label={t("proxy-settings.proxy-port")} + value={proxyPort} + onChange={this.handleProxyPortChange} + disable={!enableProxy} + /> + <InputField + label={t("proxy-settings.proxy-server")} + value={proxyServer} + onChange={this.handleProxyServerChange} + disable={!enableProxy} + /> + <InputField + label={t("proxy-settings.proxy-user")} + value={proxyUser} + onChange={this.handleProxyUserChange} + disable={!enableProxy} + /> + </div> + ); + } + + handleProxyPasswordChange = (value: string) => { + this.props.onChange(true, value, "proxyPassword"); + }; + handleProxyPortChange = (value: string) => { + this.props.onChange(true, value, "proxyPort"); + }; + handleProxyServerChange = (value: string) => { + this.props.onChange(true, value, "proxyServer"); + }; + handleProxyUserChange = (value: string) => { + this.props.onChange(true, value, "proxyUser"); + }; + handleEnableProxyChange = (value: string) => { + this.props.onChange(true, value, "enableProxy"); + }; +} + +export default translate("config")(ProxySettings); From 5acd1ba90a03f99263e2ec80cd6c6703c6494d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:34:12 +0200 Subject: [PATCH 019/143] add translations --- scm-ui/public/locales/en/config.json | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index dd87bdcae2..df2a12a6dc 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -7,5 +7,39 @@ "navigation-label": "Global Configuration", "error-title": "Error", "error-subtitle": "Unknown Config Error" + }, + "config-form": { + "submit": "Submit" + }, + "proxy-settings": { + "name": "Proxy Settings", + "proxy-password": "Proxy Password", + "proxy-port": "Proxy Port", + "proxy-server": "Proxy Server", + "proxy-user": "Proxy User", + "enable-proxy": "Enable Proxy", + "proxy-excludes": "Proxy Excludes" + }, + "base-url-settings": { + "name": "Base URL Settings", + "base-url": "Base URL", + "force-base-url": "Force Base URL" + }, + "admin-settings": { + "admin-groups": "Admin Groups", + "admin-user": "Admin Users" + }, + "general-settings": { + "realm-description": "Realm Description", + "enable-repository-archive": "Enable Repository Archive", + "disable-grouping-grid": "Disable Grouping Grid", + "date-format": "Date Format", + "anonymous-access-enabled": "Anonymous Access Enabled", + "login-attempt-limit": "Login Attempt Limit", + "skip-failed-authenticators": "Skip Failed Authenticators", + "plugin-url": "Plugin URL", + "login-attempt-limit-timeout": "Login Attempt Limit Timeout", + "enabled-xsrf-protection": "Enabled XSRF Protection", + "default-namespace-strategy": "Default Namespace Strategy" } } From 0df136da19660c1d8f971e0da0495f352c3ce2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:34:31 +0200 Subject: [PATCH 020/143] add disabled option to input field --- scm-ui/src/components/forms/InputField.js | 29 ++++++++++++++++------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/scm-ui/src/components/forms/InputField.js b/scm-ui/src/components/forms/InputField.js index be657348e5..9833739461 100644 --- a/scm-ui/src/components/forms/InputField.js +++ b/scm-ui/src/components/forms/InputField.js @@ -11,7 +11,8 @@ type Props = { onChange: string => void, onReturnPressed?: () => void, validationError: boolean, - errorMessage: string + errorMessage: string, + disable?: boolean }; class InputField extends React.Component<Props> { @@ -40,21 +41,33 @@ class InputField extends React.Component<Props> { return ""; }; + handleKeyPress = (event: SyntheticKeyboardEvent<HTMLInputElement>) => { const onReturnPressed = this.props.onReturnPressed; if (!onReturnPressed) { - return + return; } if (event.key === "Enter") { event.preventDefault(); onReturnPressed(); } - } + }; render() { - const { type, placeholder, value, validationError, errorMessage } = this.props; + const { + type, + placeholder, + value, + validationError, + errorMessage, + disable + } = this.props; const errorView = validationError ? "is-danger" : ""; - const helper = validationError ? <p className="help is-danger">{errorMessage}</p> : ""; + const helper = validationError ? ( + <p className="help is-danger">{errorMessage}</p> + ) : ( + "" + ); return ( <div className="field"> {this.renderLabel()} @@ -63,15 +76,13 @@ class InputField extends React.Component<Props> { ref={input => { this.field = input; }} - className={ classNames( - "input", - errorView - )} + className={classNames("input", errorView)} type={type} placeholder={placeholder} value={value} onChange={this.handleInput} onKeyPress={this.handleKeyPress} + disabled={disable} /> </div> {helper} From 335ac2df248a3ec37a3a4a8e040e49a16644489e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:35:19 +0200 Subject: [PATCH 021/143] use Config type --- scm-ui/src/config/modules/config.js | 13 +++++++------ scm-ui/src/config/modules/config.test.js | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 0c231ea1ac..4534dbaeb6 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -5,13 +5,14 @@ import type { Action } from "../../types/Action"; import { isPending } from "../../modules/pending"; import { getFailure } from "../../modules/failure"; import { Dispatch } from "redux"; +import type { Config } from "../types/Config"; export const FETCH_CONFIG = "scm/config/FETCH_CONFIG"; export const FETCH_CONFIG_PENDING = `${FETCH_CONFIG}_${types.PENDING_SUFFIX}`; export const FETCH_CONFIG_SUCCESS = `${FETCH_CONFIG}_${types.SUCCESS_SUFFIX}`; export const FETCH_CONFIG_FAILURE = `${FETCH_CONFIG}_${types.FAILURE_SUFFIX}`; -export const MODIFY_CONFIG = "scm/config/FETCH_CONFIG"; +export const MODIFY_CONFIG = "scm/config/MODIFY_CONFIG"; export const MODIFY_CONFIG_PENDING = `${MODIFY_CONFIG}_${types.PENDING_SUFFIX}`; export const MODIFY_CONFIG_SUCCESS = `${MODIFY_CONFIG}_${types.SUCCESS_SUFFIX}`; export const MODIFY_CONFIG_FAILURE = `${MODIFY_CONFIG}_${types.FAILURE_SUFFIX}`; @@ -44,7 +45,7 @@ export function fetchConfigPending(): Action { }; } -export function fetchConfigSuccess(config: any): Action { +export function fetchConfigSuccess(config: Config): Action { return { type: FETCH_CONFIG_SUCCESS, payload: config @@ -61,7 +62,7 @@ export function fetchConfigFailure(error: Error): Action { } // modify config -export function modifyConfig(config: any, callback?: () => void) { +export function modifyConfig(config: Config, callback?: () => void) { return function(dispatch: Dispatch) { dispatch(modifyConfigPending(config)); return apiClient @@ -83,21 +84,21 @@ export function modifyConfig(config: any, callback?: () => void) { }; } -export function modifyConfigPending(config: any): Action { +export function modifyConfigPending(config: Config): Action { return { type: MODIFY_CONFIG_PENDING, payload: config }; } -export function modifyConfigSuccess(config: any): Action { +export function modifyConfigSuccess(config: Config): Action { return { type: MODIFY_CONFIG_SUCCESS, payload: config }; } -export function modifyConfigFailure(config: any, error: Error): Action { +export function modifyConfigFailure(config: Config, error: Error): Action { return { type: MODIFY_CONFIG_FAILURE, payload: { diff --git a/scm-ui/src/config/modules/config.test.js b/scm-ui/src/config/modules/config.test.js index 78b19f10c7..d991bd929a 100644 --- a/scm-ui/src/config/modules/config.test.js +++ b/scm-ui/src/config/modules/config.test.js @@ -57,7 +57,8 @@ const config = { }; const responseBody = { - entries: config + entries: config, + configUpdatePermission: false }; const response = { From f2850370dd9967f1c8f874dc32ffe0c78fd1ee93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Mon, 13 Aug 2018 16:35:43 +0200 Subject: [PATCH 022/143] add modification of config --- scm-ui/src/config/containers/GlobalConfig.js | 47 ++++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index a3fcca70d5..a6da5f41bf 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -4,28 +4,46 @@ import Title from "../../components/layout/Title"; import { fetchConfig, getFetchConfigFailure, - isFetchConfigPending + isFetchConfigPending, + getConfig, + modifyConfig, + isModifyConfigPending } from "../modules/config"; import connect from "react-redux/es/connect/connect"; import ErrorPage from "../../components/ErrorPage"; +import type { Config } from "../types/Config"; +import ConfigForm from "../components/form/ConfigForm"; import Loading from "../../components/Loading"; +import type { User } from "../../users/types/User"; +import type { History } from "history"; type Props = { loading: boolean, error: Error, - + config: Config, + // dispatch functions + modifyConfig: (config: User, callback?: () => void) => void, // context objects t: string => string, - fetchConfig: void => void + fetchConfig: void => void, + history: History }; class GlobalConfig extends React.Component<Props> { + configModified = (config: Config) => () => { + this.props.history.push(`/config`); + }; + componentDidMount() { this.props.fetchConfig(); } + modifyConfig = (config: Config) => { + this.props.modifyConfig(config, this.configModified(config)); + }; + render() { - const { t, error, loading } = this.props; + const { t, error, loading, config } = this.props; if (error) { return ( @@ -36,12 +54,20 @@ class GlobalConfig extends React.Component<Props> { /> ); } - if (loading) { return <Loading />; } - return <Title title={t("global-config.title")} />; + return ( + <div> + <Title title={t("global-config.title")} /> + <ConfigForm + submitForm={config => this.modifyConfig(config)} + config={config} + loading={loading} + /> + </div> + ); } } @@ -49,17 +75,22 @@ const mapDispatchToProps = dispatch => { return { fetchConfig: () => { dispatch(fetchConfig()); + }, + modifyConfig: (config: Config, callback?: () => void) => { + dispatch(modifyConfig(config, callback)); } }; }; const mapStateToProps = state => { - const loading = isFetchConfigPending(state); + const loading = isFetchConfigPending(state) || isModifyConfigPending(state); //TODO: Button lädt so nicht, sondern gesamte Seite const error = getFetchConfigFailure(state); + const config = getConfig(state); return { loading, - error + error, + config }; }; From f375e076e452ca5e3231ed80f42d00fe9a28eb76 Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Mon, 13 Aug 2018 17:31:45 +0200 Subject: [PATCH 023/143] Implemented BrowserResultMapper --- .../main/java/sonia/scm/web/VndMediaType.java | 1 + .../api/v2/resources/BrowserResultDto.java | 19 +++- .../api/v2/resources/BrowserResultMapper.java | 31 ++++++ ...BrowserResultToBrowserResultDtoMapper.java | 9 -- ...ctDtoMapper.java => FileObjectMapper.java} | 3 +- .../scm/api/v2/resources/MapperModule.java | 2 + .../api/v2/resources/SourceRootResource.java | 16 ++- .../v2/resources/BrowserResultMapperTest.java | 100 ++++++++++++++++++ ...perTest.java => FileObjectMapperTest.java} | 12 +-- 9 files changed, 167 insertions(+), 26 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java rename scm-webapp/src/main/java/sonia/scm/api/v2/resources/{FileObjectToFileObjectDtoMapper.java => FileObjectMapper.java} (53%) create mode 100644 scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java rename scm-webapp/src/test/java/sonia/scm/api/v2/resources/{FileObjectToFileObjectDtoMapperTest.java => FileObjectMapperTest.java} (85%) diff --git a/scm-core/src/main/java/sonia/scm/web/VndMediaType.java b/scm-core/src/main/java/sonia/scm/web/VndMediaType.java index 1e439a6a16..9dd6b68d36 100644 --- a/scm-core/src/main/java/sonia/scm/web/VndMediaType.java +++ b/scm-core/src/main/java/sonia/scm/web/VndMediaType.java @@ -25,6 +25,7 @@ public class VndMediaType { public static final String REPOSITORY_TYPE_COLLECTION = PREFIX + "repositoryTypeCollection" + SUFFIX; public static final String REPOSITORY_TYPE = PREFIX + "repositoryType" + SUFFIX; public static final String ME = PREFIX + "me" + SUFFIX; + public static final String SOURCE = PREFIX + "source" + SUFFIX; private VndMediaType() { } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java index b62f5fa124..fe0f98930c 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java @@ -5,14 +5,27 @@ import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; -import java.util.Collection; +import java.util.Iterator; +import java.util.List; @Getter @Setter @NoArgsConstructor -public class BrowserResultDto extends HalRepresentation { +public class BrowserResultDto extends HalRepresentation implements Iterable<FileObjectDto> { private String revision; private String tag; private String branch; - private Collection<FileObjectDto> files; + private List<FileObjectDto> files; + + @Override + public Iterator<FileObjectDto> iterator() { + Iterator<FileObjectDto> it = null; + + if (files != null) + { + it = files.iterator(); + } + + return it; + } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java new file mode 100644 index 0000000000..1690225a72 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java @@ -0,0 +1,31 @@ +package sonia.scm.api.v2.resources; + +import org.mapstruct.Mapper; +import sonia.scm.repository.BrowserResult; +import sonia.scm.repository.FileObject; + +import java.util.ArrayList; +import java.util.List; + +@Mapper +public abstract class BrowserResultMapper extends BaseMapper<BrowserResult, BrowserResultDto> { + + abstract FileObjectDto mapFileObject(FileObject fileObject); + + public BrowserResultDto map(BrowserResult browserResult) { + BrowserResultDto browserResultDto = new BrowserResultDto(); + + browserResultDto.setTag(browserResult.getTag()); + browserResultDto.setBranch(browserResult.getBranch()); + browserResultDto.setRevision(browserResult.getRevision()); + + List<FileObjectDto> fileObjectDtoList = new ArrayList<>(); + for (FileObject fileObject : browserResult.getFiles()) { + fileObjectDtoList.add(mapFileObject(fileObject)); + } + + browserResultDto.setFiles(fileObjectDtoList); + + return browserResultDto; + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java deleted file mode 100644 index ecc59900e5..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package sonia.scm.api.v2.resources; - -import org.mapstruct.Mapper; -import sonia.scm.repository.BrowserResult; - -@Mapper -public abstract class BrowserResultToBrowserResultDtoMapper extends BaseMapper<BrowserResult, BrowserResultDto> { - -} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java similarity index 53% rename from scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java rename to scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 86a5e5454b..87abc22380 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -4,6 +4,5 @@ import org.mapstruct.Mapper; import sonia.scm.repository.FileObject; @Mapper -public abstract class FileObjectToFileObjectDtoMapper extends BaseMapper<FileObject, FileObjectDto> { - +public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObjectDto> { } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java index 0ac6929689..5247a17ac8 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java @@ -26,6 +26,8 @@ public class MapperModule extends AbstractModule { bind(BranchToBranchDtoMapper.class).to(Mappers.getMapper(BranchToBranchDtoMapper.class).getClass()); + bind(BrowserResultMapper.class).to(Mappers.getMapper(BrowserResultMapper.class).getClass()); + bind(UriInfoStore.class).in(ServletScopes.REQUEST); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 46d8f02c91..58586768e5 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -7,22 +7,31 @@ import sonia.scm.repository.RepositoryNotFoundException; import sonia.scm.repository.api.BrowseCommandBuilder; import sonia.scm.repository.api.RepositoryService; import sonia.scm.repository.api.RepositoryServiceFactory; +import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; import javax.ws.rs.core.Response; import java.io.IOException; public class SourceRootResource { private final RepositoryServiceFactory serviceFactory; + private final BrowserResultMapper browserResultMapper; + + @Inject - public SourceRootResource(RepositoryServiceFactory serviceFactory) { + public SourceRootResource(RepositoryServiceFactory serviceFactory, BrowserResultMapper browserResultMapper) { this.serviceFactory = serviceFactory; + this.browserResultMapper = browserResultMapper; } @GET + @Produces(VndMediaType.SOURCE) @Path("") public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) { @@ -38,8 +47,7 @@ public class SourceRootResource { } catch (IOException e) { e.printStackTrace(); } - - return Response.ok(browserResult.toString()).build(); + return Response.ok(browserResultMapper.map(browserResult)).build(); } @GET diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java new file mode 100644 index 0000000000..c05f93ad7a --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java @@ -0,0 +1,100 @@ +package sonia.scm.api.v2.resources; + +import org.apache.shiro.subject.Subject; +import org.apache.shiro.subject.support.SubjectThreadState; +import org.apache.shiro.util.ThreadContext; +import org.apache.shiro.util.ThreadState; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.InjectMocks; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.repository.BrowserResult; +import sonia.scm.repository.FileObject; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.Mockito.mock; +import static org.mockito.MockitoAnnotations.initMocks; + +@RunWith(MockitoJUnitRunner.class) +public class BrowserResultMapperTest { + + @InjectMocks + private BrowserResultMapperImpl mapper; + + private final Subject subject = mock(Subject.class); + private final ThreadState subjectThreadState = new SubjectThreadState(subject); + + + @Before + public void init() { + initMocks(this); + subjectThreadState.bind(); + ThreadContext.bind(subject); + } + + @Test + public void shouldMapAttributesCorrectly() { + BrowserResult browserResult = createBrowserResult(); + + BrowserResultDto dto = mapper.map(browserResult); + + assertEqualAttributes(browserResult, dto); + + assertEqualFileObjectAttributes(browserResult.getFiles().get(0), dto.getFiles().get(0)); + assertEqualFileObjectAttributes(browserResult.getFiles().get(1), dto.getFiles().get(1)); + } + + private BrowserResult createBrowserResult() { + BrowserResult browserResult = new BrowserResult(); + browserResult.setTag("Tag"); + browserResult.setRevision("Revision"); + browserResult.setBranch("Branch"); + browserResult.setFiles(createFileObjects()); + + return browserResult; + } + + private List<FileObject> createFileObjects() { + List<FileObject> fileObjects = new ArrayList<>(); + + FileObject fileObject1 = new FileObject(); + fileObject1.setName("FO 1"); + fileObject1.setLength(100); + fileObject1.setLastModified(0L); + fileObject1.setPath("/path/object/1"); + fileObject1.setDescription("description of file object 1"); + fileObject1.setDirectory(false); + + FileObject fileObject2 = new FileObject(); + fileObject2.setName("FO 2"); + fileObject2.setLength(100); + fileObject2.setLastModified(101L); + fileObject2.setPath("/path/object/2"); + fileObject2.setDescription("description of file object 2"); + fileObject2.setDirectory(true); + + fileObjects.add(fileObject1); + fileObjects.add(fileObject2); + return fileObjects; + } + + private void assertEqualAttributes(BrowserResult browserResult, BrowserResultDto dto) { + assertThat(dto.getTag()).isEqualTo(browserResult.getTag()); + assertThat(dto.getBranch()).isEqualTo(browserResult.getBranch()); + assertThat(dto.getRevision()).isEqualTo(browserResult.getRevision()); + } + + private void assertEqualFileObjectAttributes(FileObject fileObject, FileObjectDto dto) { + assertThat(dto.getName()).isEqualTo(fileObject.getName()); + assertThat(dto.getLength()).isEqualTo(fileObject.getLength()); + assertThat(dto.getLastModified()).isEqualTo(Instant.ofEpochMilli(fileObject.getLastModified())); + assertThat(dto.isDirectory()).isEqualTo(fileObject.isDirectory()); + assertThat(dto.getDescription()).isEqualTo(fileObject.getDescription()); + assertThat(dto.getPath()).isEqualTo(fileObject.getPath()); + } +} diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java similarity index 85% rename from scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java rename to scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java index 7babd4b329..b06dad6fb2 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java @@ -11,26 +11,22 @@ import org.mockito.InjectMocks; import org.mockito.junit.MockitoJUnitRunner; import sonia.scm.repository.FileObject; -import java.net.URI; -import java.net.URISyntaxException; - -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.MockitoAnnotations.initMocks; @RunWith(MockitoJUnitRunner.class) -public class FileObjectToFileObjectDtoMapperTest { - private final URI baseUri = URI.create("http://example.com/base/"); +public class FileObjectMapperTest { @InjectMocks - private FileObjectToFileObjectDtoMapperImpl mapper; + private FileObjectMapperImpl mapper; private final Subject subject = mock(Subject.class); private final ThreadState subjectThreadState = new SubjectThreadState(subject); @Before - public void init() throws URISyntaxException { + public void init() { initMocks(this); subjectThreadState.bind(); ThreadContext.bind(subject); From f3925fa3116c50044b649244928d430445e214a6 Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Tue, 14 Aug 2018 17:16:10 +0200 Subject: [PATCH 024/143] Added links to sources ressource / refactored code and fixed issues --- .../api/v2/resources/BrowserResultDto.java | 7 ++ .../api/v2/resources/BrowserResultMapper.java | 29 ++++++-- .../api/v2/resources/FileObjectMapper.java | 17 +++++ .../scm/api/v2/resources/MapperModule.java | 2 +- .../RepositoryToRepositoryDtoMapper.java | 2 +- .../scm/api/v2/resources/ResourceLinks.java | 10 ++- .../api/v2/resources/SourceRootResource.java | 26 ++++--- .../v2/resources/BrowserResultMapperTest.java | 72 ++++++++++--------- .../api/v2/resources/ResourceLinksTest.java | 9 ++- 9 files changed, 120 insertions(+), 54 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java index fe0f98930c..12c227b65c 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java @@ -1,6 +1,7 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.HalRepresentation; +import de.otto.edison.hal.Links; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @@ -17,6 +18,12 @@ public class BrowserResultDto extends HalRepresentation implements Iterable<File private String branch; private List<FileObjectDto> files; + @Override + @SuppressWarnings("squid:S1185") // We want to have this method available in this package + protected HalRepresentation add(Links links) { + return super.add(links); + } + @Override public Iterator<FileObjectDto> iterator() { Iterator<FileObjectDto> it = null; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java index 1690225a72..6ab054bd74 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java @@ -1,18 +1,27 @@ package sonia.scm.api.v2.resources; -import org.mapstruct.Mapper; +import de.otto.edison.hal.Links; import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; +import sonia.scm.repository.NamespaceAndName; +import javax.inject.Inject; import java.util.ArrayList; import java.util.List; -@Mapper -public abstract class BrowserResultMapper extends BaseMapper<BrowserResult, BrowserResultDto> { +public class BrowserResultMapper { - abstract FileObjectDto mapFileObject(FileObject fileObject); + @Inject + private FileObjectMapper fileObjectMapper; - public BrowserResultDto map(BrowserResult browserResult) { + @Inject + private ResourceLinks resourceLinks; + + private FileObjectDto mapFileObject(FileObject fileObject, NamespaceAndName namespaceAndName, String revision) { + return fileObjectMapper.map(fileObject, namespaceAndName, revision); + } + + public BrowserResultDto map(BrowserResult browserResult, NamespaceAndName namespaceAndName) { BrowserResultDto browserResultDto = new BrowserResultDto(); browserResultDto.setTag(browserResult.getTag()); @@ -21,11 +30,17 @@ public abstract class BrowserResultMapper extends BaseMapper<BrowserResult, Brow List<FileObjectDto> fileObjectDtoList = new ArrayList<>(); for (FileObject fileObject : browserResult.getFiles()) { - fileObjectDtoList.add(mapFileObject(fileObject)); + fileObjectDtoList.add(mapFileObject(fileObject, namespaceAndName, browserResult.getRevision())); } browserResultDto.setFiles(fileObjectDtoList); - + this.addLinks(browserResult, browserResultDto, namespaceAndName); return browserResultDto; } + + private void addLinks(BrowserResult browserResult, BrowserResultDto dto, NamespaceAndName namespaceAndName) { + dto.add(Links.linkingTo().self(resourceLinks.source().self(namespaceAndName.getNamespace(), namespaceAndName.getName(), browserResult.getRevision())).build()); + } + + } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 87abc22380..013f7e1125 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -1,8 +1,25 @@ package sonia.scm.api.v2.resources; +import de.otto.edison.hal.Links; +import org.mapstruct.AfterMapping; +import org.mapstruct.Context; import org.mapstruct.Mapper; +import org.mapstruct.MappingTarget; import sonia.scm.repository.FileObject; +import sonia.scm.repository.NamespaceAndName; + +import javax.inject.Inject; @Mapper public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObjectDto> { + + @Inject + private ResourceLinks resourceLinks; + + protected abstract FileObjectDto map(FileObject fileObject, @Context NamespaceAndName namespaceAndName, @Context String revision); + + @AfterMapping + void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { + dto.add(Links.linkingTo().self(resourceLinks.source().withPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())).build()); + } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java index 5247a17ac8..5ecdaee23d 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java @@ -26,7 +26,7 @@ public class MapperModule extends AbstractModule { bind(BranchToBranchDtoMapper.class).to(Mappers.getMapper(BranchToBranchDtoMapper.class).getClass()); - bind(BrowserResultMapper.class).to(Mappers.getMapper(BrowserResultMapper.class).getClass()); + bind(FileObjectMapper.class).to(Mappers.getMapper(FileObjectMapper.class).getClass()); bind(UriInfoStore.class).in(ServletScopes.REQUEST); } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java index ca30a09286..d20e2f66dc 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java @@ -36,7 +36,7 @@ public abstract class RepositoryToRepositoryDtoMapper extends BaseMapper<Reposit linksBuilder.single(link("tags", resourceLinks.tagCollection().self(target.getNamespace(), target.getName()))); linksBuilder.single(link("branches", resourceLinks.branchCollection().self(target.getNamespace(), target.getName()))); linksBuilder.single(link("changesets", resourceLinks.changeset().self(target.getNamespace(), target.getName()))); - linksBuilder.single(link("sources", resourceLinks.source().self(target.getNamespace(), target.getName()))); + linksBuilder.single(link("sources", resourceLinks.source().withoutRevision(target.getNamespace(), target.getName()))); target.add(linksBuilder.build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java index 319bbec32b..e323faf6f7 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java @@ -290,13 +290,21 @@ class ResourceLinks { sourceLinkBuilder = new LinkBuilder(uriInfo, RepositoryRootResource.class, RepositoryResource.class, SourceRootResource.class); } - String self(String namespace, String name) { + String self(String namespace, String name, String revision) { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name, revision).method("sources").parameters().method("getAll").parameters().href(); + } + + String withoutRevision(String namespace, String name) { return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAll").parameters().href(); } public String source(String namespace, String name, String revision) { return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision).href(); } + + public String withPath(String namespace, String name, String revision, String path) { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision, path).href(); + } } public PermissionCollectionLinks permissionCollection() { diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 58586768e5..95df3e2b11 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -23,7 +23,6 @@ public class SourceRootResource { private final BrowserResultMapper browserResultMapper; - @Inject public SourceRootResource(RepositoryServiceFactory serviceFactory, BrowserResultMapper browserResultMapper) { this.serviceFactory = serviceFactory; @@ -35,23 +34,30 @@ public class SourceRootResource { @Path("") public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) { - BrowserResult browserResult = null; - try (RepositoryService repositoryService = serviceFactory.create(new NamespaceAndName(namespace, name))) { + BrowserResult browserResult; + Response response; + NamespaceAndName namespaceAndName = new NamespaceAndName(namespace, name); + try (RepositoryService repositoryService = serviceFactory.create(namespaceAndName)) { BrowseCommandBuilder browseCommand = repositoryService.getBrowseCommand(); browseCommand.setPath("/"); browserResult = browseCommand.getBrowserResult(); + + if (browserResult != null) { + response = Response.ok(browserResultMapper.map(browserResult, namespaceAndName)).build(); + } else { + response = Response.status(Response.Status.NOT_FOUND).build(); + } + } catch (RepositoryNotFoundException e) { - e.printStackTrace(); - } catch (RepositoryException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); + response = Response.status(Response.Status.NOT_FOUND).build(); + } catch (RepositoryException | IOException e) { + response = Response.status(Response.Status.INTERNAL_SERVER_ERROR).build(); } - return Response.ok(browserResultMapper.map(browserResult)).build(); + return response; } @GET - @Path("{revision}") + @Path("{revision}/{path: .*}") public Response get() { throw new UnsupportedOperationException(); } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java index c05f93ad7a..0f973d9713 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java @@ -6,47 +6,79 @@ import org.apache.shiro.util.ThreadContext; import org.apache.shiro.util.ThreadState; import org.junit.Before; import org.junit.Test; -import org.junit.runner.RunWith; import org.mockito.InjectMocks; -import org.mockito.junit.MockitoJUnitRunner; +import org.mockito.Mock; import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; +import sonia.scm.repository.NamespaceAndName; -import java.time.Instant; +import java.net.URI; import java.util.ArrayList; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; import static org.mockito.MockitoAnnotations.initMocks; -@RunWith(MockitoJUnitRunner.class) public class BrowserResultMapperTest { + private final URI baseUri = URI.create("http://example.com/base/"); + @SuppressWarnings("unused") // Is injected + private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); + + @Mock + private FileObjectMapper fileObjectMapper; + @InjectMocks - private BrowserResultMapperImpl mapper; + private BrowserResultMapper mapper; private final Subject subject = mock(Subject.class); private final ThreadState subjectThreadState = new SubjectThreadState(subject); + private FileObject fileObject1 = new FileObject(); + private FileObject fileObject2 = new FileObject(); + @Before public void init() { initMocks(this); subjectThreadState.bind(); ThreadContext.bind(subject); + + fileObject1.setName("FO 1"); + fileObject1.setLength(100); + fileObject1.setLastModified(0L); + fileObject1.setPath("/path/object/1"); + fileObject1.setDescription("description of file object 1"); + fileObject1.setDirectory(false); + + fileObject2.setName("FO 2"); + fileObject2.setLength(100); + fileObject2.setLastModified(101L); + fileObject2.setPath("/path/object/2"); + fileObject2.setDescription("description of file object 2"); + fileObject2.setDirectory(true); } @Test public void shouldMapAttributesCorrectly() { BrowserResult browserResult = createBrowserResult(); - BrowserResultDto dto = mapper.map(browserResult); + BrowserResultDto dto = mapper.map(browserResult, new NamespaceAndName("foo", "bar")); assertEqualAttributes(browserResult, dto); + } - assertEqualFileObjectAttributes(browserResult.getFiles().get(0), dto.getFiles().get(0)); - assertEqualFileObjectAttributes(browserResult.getFiles().get(1), dto.getFiles().get(1)); + @Test + public void shouldDelegateToFileObjectsMapper() { + BrowserResult browserResult = createBrowserResult(); + NamespaceAndName namespaceAndName = new NamespaceAndName("foo", "bar"); + + BrowserResultDto dto = mapper.map(browserResult, namespaceAndName); + + verify(fileObjectMapper).map(fileObject1, namespaceAndName, "Revision"); + verify(fileObjectMapper).map(fileObject2, namespaceAndName, "Revision"); } private BrowserResult createBrowserResult() { @@ -62,22 +94,6 @@ public class BrowserResultMapperTest { private List<FileObject> createFileObjects() { List<FileObject> fileObjects = new ArrayList<>(); - FileObject fileObject1 = new FileObject(); - fileObject1.setName("FO 1"); - fileObject1.setLength(100); - fileObject1.setLastModified(0L); - fileObject1.setPath("/path/object/1"); - fileObject1.setDescription("description of file object 1"); - fileObject1.setDirectory(false); - - FileObject fileObject2 = new FileObject(); - fileObject2.setName("FO 2"); - fileObject2.setLength(100); - fileObject2.setLastModified(101L); - fileObject2.setPath("/path/object/2"); - fileObject2.setDescription("description of file object 2"); - fileObject2.setDirectory(true); - fileObjects.add(fileObject1); fileObjects.add(fileObject2); return fileObjects; @@ -89,12 +105,4 @@ public class BrowserResultMapperTest { assertThat(dto.getRevision()).isEqualTo(browserResult.getRevision()); } - private void assertEqualFileObjectAttributes(FileObject fileObject, FileObjectDto dto) { - assertThat(dto.getName()).isEqualTo(fileObject.getName()); - assertThat(dto.getLength()).isEqualTo(fileObject.getLength()); - assertThat(dto.getLastModified()).isEqualTo(Instant.ofEpochMilli(fileObject.getLastModified())); - assertThat(dto.isDirectory()).isEqualTo(fileObject.isDirectory()); - assertThat(dto.getDescription()).isEqualTo(fileObject.getDescription()); - assertThat(dto.getPath()).isEqualTo(fileObject.getPath()); - } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java index 000e628f26..430fea9748 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java @@ -147,13 +147,18 @@ public class ResourceLinksTest { @Test public void shouldCreateCorrectSourceCollectionUrl() { - String url = resourceLinks.source().self("space", "repo"); + String url = resourceLinks.source().withoutRevision("space", "repo"); assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources/", url); } + @Test + public void shouldCreateCorrectSourceUrlWithFilename() { + String url = resourceLinks.source().withPath("foo", "bar", "rev", "file"); + assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "foo/bar/sources/rev/file", url); + } @Test public void shouldCreateCorrectPermissionCollectionUrl() { - String url = resourceLinks.source().self("space", "repo"); + String url = resourceLinks.source().withoutRevision("space", "repo"); assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources/", url); } From eceea012b005edfe6590e6a0c672848a688172b6 Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Wed, 15 Aug 2018 10:26:32 +0200 Subject: [PATCH 025/143] Added optional revision path param to SourceRootResource#getAll --- .../scm/api/v2/resources/BranchToBranchDtoMapper.java | 8 ++------ .../sonia/scm/api/v2/resources/FileObjectMapper.java | 2 +- .../v2/resources/RepositoryToRepositoryDtoMapper.java | 2 +- .../java/sonia/scm/api/v2/resources/ResourceLinks.java | 8 ++++---- .../sonia/scm/api/v2/resources/SourceRootResource.java | 7 +++++-- .../sonia/scm/api/v2/resources/ResourceLinksTest.java | 10 +++++----- 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java index 8d616ffb77..9cb8b21248 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java @@ -1,11 +1,7 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.Links; -import org.mapstruct.AfterMapping; -import org.mapstruct.Context; -import org.mapstruct.Mapper; -import org.mapstruct.Mapping; -import org.mapstruct.MappingTarget; +import org.mapstruct.*; import sonia.scm.repository.Branch; import sonia.scm.repository.NamespaceAndName; @@ -29,7 +25,7 @@ public abstract class BranchToBranchDtoMapper { .self(resourceLinks.branch().self(namespaceAndName, target.getName())) .single(linkBuilder("history", resourceLinks.branch().history(namespaceAndName, target.getName())).build()) .single(linkBuilder("changeset", resourceLinks.changeset().changeset(namespaceAndName.getNamespace(), namespaceAndName.getName(), target.getRevision())).build()) - .single(linkBuilder("source", resourceLinks.source().source(namespaceAndName.getNamespace(), namespaceAndName.getName(), target.getRevision())).build()); + .single(linkBuilder("source", resourceLinks.source().self(namespaceAndName.getNamespace(), namespaceAndName.getName(), target.getRevision())).build()); target.add(linksBuilder.build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 013f7e1125..28326255f3 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -20,6 +20,6 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { - dto.add(Links.linkingTo().self(resourceLinks.source().withPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())).build()); + dto.add(Links.linkingTo().self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())).build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java index d20e2f66dc..2675fa0e37 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryToRepositoryDtoMapper.java @@ -36,7 +36,7 @@ public abstract class RepositoryToRepositoryDtoMapper extends BaseMapper<Reposit linksBuilder.single(link("tags", resourceLinks.tagCollection().self(target.getNamespace(), target.getName()))); linksBuilder.single(link("branches", resourceLinks.branchCollection().self(target.getNamespace(), target.getName()))); linksBuilder.single(link("changesets", resourceLinks.changeset().self(target.getNamespace(), target.getName()))); - linksBuilder.single(link("sources", resourceLinks.source().withoutRevision(target.getNamespace(), target.getName()))); + linksBuilder.single(link("sources", resourceLinks.source().selfWithoutRevision(target.getNamespace(), target.getName()))); target.add(linksBuilder.build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java index e323faf6f7..fb5cfab5bf 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java @@ -291,18 +291,18 @@ class ResourceLinks { } String self(String namespace, String name, String revision) { - return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name, revision).method("sources").parameters().method("getAll").parameters().href(); + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name, revision).method("sources").parameters().method("getAll").parameters("").href(); } - String withoutRevision(String namespace, String name) { - return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAll").parameters().href(); + String selfWithoutRevision(String namespace, String name) { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAll").parameters("").href(); } public String source(String namespace, String name, String revision) { return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision).href(); } - public String withPath(String namespace, String name, String revision, String path) { + public String sourceWithPath(String namespace, String name, String revision, String path) { return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision, path).href(); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 95df3e2b11..5b9c7a916e 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -31,8 +31,8 @@ public class SourceRootResource { @GET @Produces(VndMediaType.SOURCE) - @Path("") - public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) { + @Path("{revision : (\\w+)?}") + public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision) { BrowserResult browserResult; Response response; @@ -40,6 +40,9 @@ public class SourceRootResource { try (RepositoryService repositoryService = serviceFactory.create(namespaceAndName)) { BrowseCommandBuilder browseCommand = repositoryService.getBrowseCommand(); browseCommand.setPath("/"); + if (revision != null && !revision.isEmpty()) { + browseCommand.setRevision(revision); + } browserResult = browseCommand.getBrowserResult(); if (browserResult != null) { diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java index 430fea9748..33607c0a6d 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksTest.java @@ -135,8 +135,8 @@ public class ResourceLinksTest { @Test public void shouldCreateCorrectBranchSourceUrl() { - String url = resourceLinks.source().source("space", "name", "revision"); - assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/name/sources/revision", url); + String url = resourceLinks.source().selfWithoutRevision("space", "name"); + assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/name/sources/", url); } @Test @@ -147,18 +147,18 @@ public class ResourceLinksTest { @Test public void shouldCreateCorrectSourceCollectionUrl() { - String url = resourceLinks.source().withoutRevision("space", "repo"); + String url = resourceLinks.source().selfWithoutRevision("space", "repo"); assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources/", url); } @Test public void shouldCreateCorrectSourceUrlWithFilename() { - String url = resourceLinks.source().withPath("foo", "bar", "rev", "file"); + String url = resourceLinks.source().sourceWithPath("foo", "bar", "rev", "file"); assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "foo/bar/sources/rev/file", url); } @Test public void shouldCreateCorrectPermissionCollectionUrl() { - String url = resourceLinks.source().withoutRevision("space", "repo"); + String url = resourceLinks.source().selfWithoutRevision("space", "repo"); assertEquals(BASE_URL + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources/", url); } From b485fe1d2a3b421095697f93e8eed6afa1260cfe Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Wed, 15 Aug 2018 13:40:41 +0200 Subject: [PATCH 026/143] Implemented resource method to get single file --- .../api/v2/resources/SourceRootResource.java | 20 ++- .../v2/resources/SourceRootResourceTest.java | 155 ++++++++++++++++++ 2 files changed, 167 insertions(+), 8 deletions(-) create mode 100644 scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 5b9c7a916e..9f2709cb43 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -33,13 +33,23 @@ public class SourceRootResource { @Produces(VndMediaType.SOURCE) @Path("{revision : (\\w+)?}") public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision) { + return getSource(namespace, name, "/", revision); + } + @GET + @Produces(VndMediaType.SOURCE) + @Path("{revision}/{path: .*}") + public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision, @PathParam("path") String path) { + return getSource(namespace, name, path, revision); + } + + private Response getSource(String namespace, String repoName, String path, String revision) { BrowserResult browserResult; Response response; - NamespaceAndName namespaceAndName = new NamespaceAndName(namespace, name); + NamespaceAndName namespaceAndName = new NamespaceAndName(namespace, repoName); try (RepositoryService repositoryService = serviceFactory.create(namespaceAndName)) { BrowseCommandBuilder browseCommand = repositoryService.getBrowseCommand(); - browseCommand.setPath("/"); + browseCommand.setPath(path); if (revision != null && !revision.isEmpty()) { browseCommand.setRevision(revision); } @@ -58,10 +68,4 @@ public class SourceRootResource { } return response; } - - @GET - @Path("{revision}/{path: .*}") - public Response get() { - throw new UnsupportedOperationException(); - } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java new file mode 100644 index 0000000000..d4e2ea03b9 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java @@ -0,0 +1,155 @@ +package sonia.scm.api.v2.resources; + +import org.jboss.resteasy.core.Dispatcher; +import org.jboss.resteasy.mock.MockDispatcherFactory; +import org.jboss.resteasy.mock.MockHttpRequest; +import org.jboss.resteasy.mock.MockHttpResponse; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.repository.*; +import sonia.scm.repository.api.BrowseCommandBuilder; +import sonia.scm.repository.api.RepositoryService; +import sonia.scm.repository.api.RepositoryServiceFactory; + +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.Arrays; +import java.util.List; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.when; + + +@RunWith(MockitoJUnitRunner.Silent.class) +public class SourceRootResourceTest { + + private final Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + private final URI baseUri = URI.create("/"); + private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); + + @Mock + private RepositoryServiceFactory serviceFactory; + @Mock + private RepositoryService service; + @Mock + private BrowseCommandBuilder browseCommandBuilder; + + @Mock + private FileObjectMapper fileObjectMapper; + + @InjectMocks + private BrowserResultMapper browserResultMapper; + + + @Before + public void prepareEnvironment() throws Exception { + when(serviceFactory.create(new NamespaceAndName("space", "repo"))).thenReturn(service); + when(service.getBrowseCommand()).thenReturn(browseCommandBuilder); + + FileObjectDto dto = new FileObjectDto(); + dto.setName("name"); + dto.setLength(1024); + + when(fileObjectMapper.map(any(FileObject.class), any(NamespaceAndName.class), anyString())).thenReturn(dto); + SourceRootResource sourceRootResource = new SourceRootResource(serviceFactory, browserResultMapper); + RepositoryRootResource repositoryRootResource = + new RepositoryRootResource(MockProvider.of(new RepositoryResource(null, + null, + null, + null, + null, + null, + MockProvider.of(sourceRootResource), + null)), + null); + + dispatcher.getRegistry().addSingletonResource(repositoryRootResource); + } + + @Test + public void shouldReturnSources() throws URISyntaxException, IOException, RepositoryException { + BrowserResult result = createBrowserResult(); + when(browseCommandBuilder.getBrowserResult()).thenReturn(result); + MockHttpRequest request = MockHttpRequest.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + assertThat(response.getStatus()).isEqualTo(200); + assertThat(response.getContentAsString()).contains("\"revision\":\"revision\""); + assertThat(response.getContentAsString()).contains("\"tag\":\"tag\""); + assertThat(response.getContentAsString()).contains("\"branch\":\"branch\""); + assertThat(response.getContentAsString()).contains("\"files\":"); + } + + @Test + public void shouldReturn404IfRepoNotFound() throws URISyntaxException, RepositoryNotFoundException { + when(serviceFactory.create(new NamespaceAndName("idont", "exist"))).thenThrow(RepositoryNotFoundException.class); + MockHttpRequest request = MockHttpRequest.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "idont/exist/sources"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + assertThat(response.getStatus()).isEqualTo(404); + } + + @Test + public void shouldGetResultForSingleFile() throws URISyntaxException, IOException, RepositoryException { + BrowserResult browserResult = new BrowserResult(); + browserResult.setBranch("abc"); + browserResult.setRevision("revision"); + browserResult.setTag("tag"); + FileObject fileObject = new FileObject(); + fileObject.setName("File Object!"); + + browserResult.setFiles(Arrays.asList(fileObject)); + + when(browseCommandBuilder.getBrowserResult()).thenReturn(browserResult); + MockHttpRequest request = MockHttpRequest.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "space/repo/sources/revision/fileabc"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + assertThat(response.getStatus()).isEqualTo(200); + assertThat(response.getContentAsString()).contains("\"revision\":\"revision\""); + } + + @Test + public void shouldGet404ForSingleFileIfRepoNotFound() throws URISyntaxException, RepositoryException { + when(serviceFactory.create(new NamespaceAndName("idont", "exist"))).thenThrow(RepositoryNotFoundException.class); + + MockHttpRequest request = MockHttpRequest.get("/" + RepositoryRootResource.REPOSITORIES_PATH_V2 + "idont/exist/sources/revision/fileabc"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + assertThat(response.getStatus()).isEqualTo(404); + } + + private BrowserResult createBrowserResult() { + return new BrowserResult("revision", "tag", "branch", createFileObjects()); + } + + private List<FileObject> createFileObjects() { + FileObject fileObject1 = new FileObject(); + fileObject1.setName("FO 1"); + fileObject1.setDirectory(false); + fileObject1.setDescription("File object 1"); + fileObject1.setPath("/foo/bar/fo1"); + fileObject1.setLength(1024L); + fileObject1.setLastModified(0L); + + FileObject fileObject2 = new FileObject(); + fileObject2.setName("FO 2"); + fileObject2.setDirectory(true); + fileObject2.setDescription("File object 2"); + fileObject2.setPath("/foo/bar/fo2"); + fileObject2.setLength(4096L); + fileObject2.setLastModified(1234L); + + return Arrays.asList(fileObject1, fileObject2); + } +} From 41589d785d61a2c143b12e57500d747c3d090dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 10:55:39 +0200 Subject: [PATCH 027/143] added view and edit of admin user and groups --- scm-ui/public/locales/en/config.json | 11 ++- .../buttons/RemoveAdminGroupButton.js | 34 +++++++++ .../buttons/RemoveAdminUserButton.js | 34 +++++++++ .../components/fields/AddAdminGroupField.js | 71 +++++++++++++++++++ .../components/fields/AddAdminUserField.js | 71 +++++++++++++++++++ .../config/components/form/AdminSettings.js | 59 +++++++++++++-- .../src/config/components/form/ConfigForm.js | 15 +++- .../components/table/AdminGroupTable.js | 47 ++++++++++++ .../config/components/table/AdminUserTable.js | 47 ++++++++++++ scm-ui/src/config/containers/GlobalConfig.js | 13 +++- 10 files changed, 390 insertions(+), 12 deletions(-) create mode 100644 scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js create mode 100644 scm-ui/src/config/components/buttons/RemoveAdminUserButton.js create mode 100644 scm-ui/src/config/components/fields/AddAdminGroupField.js create mode 100644 scm-ui/src/config/components/fields/AddAdminUserField.js create mode 100644 scm-ui/src/config/components/table/AdminGroupTable.js create mode 100644 scm-ui/src/config/components/table/AdminUserTable.js diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index df2a12a6dc..53d41e682d 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -26,8 +26,17 @@ "force-base-url": "Force Base URL" }, "admin-settings": { + "name": "Administration Settings", "admin-groups": "Admin Groups", - "admin-user": "Admin Users" + "admin-users": "Admin Users", + "remove-group-button": "Remove Admin Group", + "remove-user-button": "Remove Admin User", + "add-group-error": "The group name you want to add is not valid", + "add-group-textfield": "Add group you want to add to admin groups here", + "add-group-button": "Add Admin Group", + "add-user-error": "The user name you want to add is not valid", + "add-user-textfield": "Add user you want to add to admin users here", + "add-user-button": "Add Admin User" }, "general-settings": { "realm-description": "Realm Description", diff --git a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js new file mode 100644 index 0000000000..c7d8f8d85a --- /dev/null +++ b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js @@ -0,0 +1,34 @@ +//@flow +import React from "react"; +import { DeleteButton } from "../../../components/buttons"; +import { translate } from "react-i18next"; +import classNames from "classnames"; + +type Props = { + t: string => string, + groupname: string, + removeGroup: string => void +}; + +type State = {}; + + + +class RemoveAdminGroupButton extends React.Component<Props, State> { + render() { + const { t , groupname, removeGroup} = this.props; + return ( + <div className={classNames("is-pulled-right")}> + <DeleteButton + label={t("admin-settings.remove-group-button")} + action={(event: Event) => { + event.preventDefault(); + removeGroup(groupname); + }} + /> + </div> + ); + } +} + +export default translate("config")(RemoveAdminGroupButton); diff --git a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js new file mode 100644 index 0000000000..6bdf06cd28 --- /dev/null +++ b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js @@ -0,0 +1,34 @@ +//@flow +import React from "react"; +import { DeleteButton } from "../../../components/buttons"; +import { translate } from "react-i18next"; +import classNames from "classnames"; + +type Props = { + t: string => string, + username: string, + removeUser: string => void +}; + +type State = {}; + + + +class RemoveAdminUserButton extends React.Component<Props, State> { + render() { + const { t , username, removeUser} = this.props; + return ( + <div className={classNames("is-pulled-right")}> + <DeleteButton + label={t("admin-settings.remove-user-button")} + action={(event: Event) => { + event.preventDefault(); + removeUser(username); + }} + /> + </div> + ); + } +} + +export default translate("config")(RemoveAdminUserButton); diff --git a/scm-ui/src/config/components/fields/AddAdminGroupField.js b/scm-ui/src/config/components/fields/AddAdminGroupField.js new file mode 100644 index 0000000000..ed694355d8 --- /dev/null +++ b/scm-ui/src/config/components/fields/AddAdminGroupField.js @@ -0,0 +1,71 @@ +//@flow +import React from "react"; + +import { translate } from "react-i18next"; +import { AddButton } from "../../../components/buttons"; +import InputField from "../../../components/forms/InputField"; + +type Props = { + t: string => string, + addGroup: string => void +}; + +type State = { + groupToAdd: string, + //validationError: boolean +}; + +class AddAdminGroupField extends React.Component<Props, State> { + constructor(props) { + super(props); + this.state = { + groupToAdd: "", + //validationError: false + }; + } + + render() { + const { t } = this.props; + return ( + <div className="field"> + <InputField + + label={t("admin-settings.add-group-textfield")} + errorMessage={t("admin-settings.add-group-error")} + onChange={this.handleAddGroupChange} + validationError={false} + value={this.state.groupToAdd} + onReturnPressed={this.appendGroup} + /> + <AddButton + label={t("admin-settings.add-group-button")} + action={this.addButtonClicked} + //disabled={!isMemberNameValid(this.state.memberToAdd)} + /> + </div> + ); + } + + addButtonClicked = (event: Event) => { + event.preventDefault(); + this.appendGroup(); + }; + + appendGroup = () => { + const { groupToAdd } = this.state; + //if (isMemberNameValid(memberToAdd)) { + this.props.addGroup(groupToAdd); + this.setState({ ...this.state, groupToAdd: "" }); + // } + }; + + handleAddGroupChange = (groupname: string) => { + this.setState({ + ...this.state, + groupToAdd: groupname, + //validationError: membername.length > 0 && !isMemberNameValid(membername) + }); + }; +} + +export default translate("config")(AddAdminGroupField); diff --git a/scm-ui/src/config/components/fields/AddAdminUserField.js b/scm-ui/src/config/components/fields/AddAdminUserField.js new file mode 100644 index 0000000000..116144ff3c --- /dev/null +++ b/scm-ui/src/config/components/fields/AddAdminUserField.js @@ -0,0 +1,71 @@ +//@flow +import React from "react"; + +import { translate } from "react-i18next"; +import { AddButton } from "../../../components/buttons"; +import InputField from "../../../components/forms/InputField"; + +type Props = { + t: string => string, + addUser: string => void +}; + +type State = { + userToAdd: string, + //validationError: boolean +}; + +class AddAdminUserField extends React.Component<Props, State> { + constructor(props) { + super(props); + this.state = { + userToAdd: "", + //validationError: false + }; + } + + render() { + const { t } = this.props; + return ( + <div className="field"> + <InputField + + label={t("admin-settings.add-user-textfield")} + errorMessage={t("admin-settings.add-user-error")} + onChange={this.handleAddUserChange} + validationError={false} + value={this.state.userToAdd} + onReturnPressed={this.appendUser} + /> + <AddButton + label={t("admin-settings.add-user-button")} + action={this.addButtonClicked} + //disabled={!isMemberNameValid(this.state.memberToAdd)} + /> + </div> + ); + } + + addButtonClicked = (event: Event) => { + event.preventDefault(); + this.appendUser(); + }; + + appendUser = () => { + const { userToAdd } = this.state; + //if (isMemberNameValid(memberToAdd)) { + this.props.addUser(userToAdd); + this.setState({ ...this.state, userToAdd: "" }); + // } + }; + + handleAddUserChange = (username: string) => { + this.setState({ + ...this.state, + userToAdd: username, + //validationError: membername.length > 0 && !isMemberNameValid(membername) + }); + }; +} + +export default translate("config")(AddAdminUserField); diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index 5079addca1..bcc6efbbfe 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -1,8 +1,12 @@ // @flow import React from "react"; import { translate } from "react-i18next"; -import { Checkbox, InputField } from "../../../components/forms/index"; import Subtitle from "../../../components/layout/Subtitle"; +import AdminGroupTable from "../table/AdminGroupTable"; +import ProxySettings from "./ProxySettings"; +import AdminUserTable from "../table/AdminUserTable"; +import AddAdminGroupField from "../fields/AddAdminGroupField"; +import AddAdminUserField from "../fields/AddAdminUserField"; type Props = { adminGroups: string[], @@ -13,17 +17,58 @@ type Props = { //TODO: Einbauen! class AdminSettings extends React.Component<Props> { render() { - const { - t, - adminGroups, - adminUsers - } = this.props; + const { t, adminGroups, adminUsers } = this.props; return ( - null + <div> + <Subtitle subtitle={t("admin-settings.name")} /> + <AdminGroupTable + adminGroups={adminGroups} + onChange={(isValid, changedValue, name) => + this.props.onChange(isValid, changedValue, name) + } + /> + <AddAdminGroupField addGroup={this.addGroup} /> + <AdminUserTable + adminUsers={adminUsers} + onChange={(isValid, changedValue, name) => + this.props.onChange(isValid, changedValue, name) + } + /> + <AddAdminUserField addUser={this.addUser} /> + </div> ); } + addGroup = (groupname: string) => { + if (this.isAdminGroupMember(groupname)) { + return; + } + this.props.onChange( + true, + [...this.props.adminGroups, groupname], + "adminGroups" + ); + }; + + isAdminGroupMember = (groupname: string) => { + return this.props.adminGroups.includes(groupname); + }; + + addUser = (username: string) => { + if (this.isAdminUserMember(username)) { + return; + } + this.props.onChange( + true, + [...this.props.adminUsers, username], + "adminUsers" + ); + }; + + isAdminUserMember = (username: string) => { + return this.props.adminUsers.includes(username); + }; } export default translate("config")(AdminSettings); diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index ac7325e6fc..ec75f3f579 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -6,12 +6,14 @@ import type { Config } from "../../types/Config"; import ProxySettings from "./ProxySettings"; import GeneralSettings from "./GeneralSettings"; import BaseUrlSettings from "./BaseUrlSettings"; +import AdminSettings from "./AdminSettings"; type Props = { submitForm: Config => void, config?: Config, loading?: boolean, - t: string => string + t: string => string, + configUpdatePermission: boolean }; type State = { @@ -85,6 +87,7 @@ class ConfigForm extends React.Component<Props, State> { this.onChange(isValid, changedValue, name) } /> + <hr /> <BaseUrlSettings baseUrl={config.baseUrl} forceBaseUrl={config.forceBaseUrl} @@ -92,6 +95,15 @@ class ConfigForm extends React.Component<Props, State> { this.onChange(isValid, changedValue, name) } /> + <hr /> + <AdminSettings + adminGroups={config.adminGroups} + adminUsers={config.adminUsers} + onChange={(isValid, changedValue, name) => + this.onChange(isValid, changedValue, name) + } + /> + <hr /> <ProxySettings proxyPassword={config.proxyPassword ? config.proxyPassword : ""} proxyPort={config.proxyPort} @@ -102,6 +114,7 @@ class ConfigForm extends React.Component<Props, State> { this.onChange(isValid, changedValue, name) } /> + <hr /> <SubmitButton // disabled={!this.isValid()} loading={loading} diff --git a/scm-ui/src/config/components/table/AdminGroupTable.js b/scm-ui/src/config/components/table/AdminGroupTable.js new file mode 100644 index 0000000000..94e54ba747 --- /dev/null +++ b/scm-ui/src/config/components/table/AdminGroupTable.js @@ -0,0 +1,47 @@ +//@flow +import React from "react"; +import { translate } from "react-i18next"; +import RemoveAdminGroupButton from "../buttons/RemoveAdminGroupButton"; + +type Props = { + adminGroups: string[], + t: string => string, + onChange: (boolean, any, string) => void +}; + +type State = {}; + +class AdminGroupTable extends React.Component<Props, State> { + render() { + const { t } = this.props; + return ( + <div> + <label className="label">{t("admin-settings.admin-groups")}</label> + <table className="table is-hoverable is-fullwidth"> + <tbody> + {this.props.adminGroups.map(group => { + return ( + <tr key={group}> + <td key={group}>{group}</td> + <td> + <RemoveAdminGroupButton + groupname={group} + removeGroup={this.removeGroup} + /> + </td> + </tr> + ); + })} + </tbody> + </table> + </div> + ); + } + + removeGroup = (groupname: string) => { + const newGroups = this.props.adminGroups.filter(name => name !== groupname); + this.props.onChange(true, newGroups, "adminGroups"); + }; +} + +export default translate("config")(AdminGroupTable); diff --git a/scm-ui/src/config/components/table/AdminUserTable.js b/scm-ui/src/config/components/table/AdminUserTable.js new file mode 100644 index 0000000000..8f1cbe11c4 --- /dev/null +++ b/scm-ui/src/config/components/table/AdminUserTable.js @@ -0,0 +1,47 @@ +//@flow +import React from "react"; +import { translate } from "react-i18next"; +import RemoveAdminUserButton from "../buttons/RemoveAdminUserButton"; + +type Props = { + adminUsers: string[], + t: string => string, + onChange: (boolean, any, string) => void +}; + +type State = {}; + +class AdminUserTable extends React.Component<Props, State> { + render() { + const { t } = this.props; + return ( + <div> + <label className="label">{t("admin-settings.admin-users")}</label> + <table className="table is-hoverable is-fullwidth"> + <tbody> + {this.props.adminUsers.map(user => { + return ( + <tr key={user}> + <td key={user}>{user}</td> + <td> + <RemoveAdminUserButton + username={user} + removeUser={this.removeUser} + /> + </td> + </tr> + ); + })} + </tbody> + </table> + </div> + ); + } + + removeUser = (username: string) => { + const newUsers = this.props.adminUsers.filter(name => name !== username); + this.props.onChange(true, newUsers, "adminUsers"); + }; +} + +export default translate("config")(AdminUserTable); diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index a6da5f41bf..56e0a06c9b 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -7,7 +7,8 @@ import { isFetchConfigPending, getConfig, modifyConfig, - isModifyConfigPending + isModifyConfigPending, + getConfigUpdatePermission } from "../modules/config"; import connect from "react-redux/es/connect/connect"; import ErrorPage from "../../components/ErrorPage"; @@ -21,6 +22,7 @@ type Props = { loading: boolean, error: Error, config: Config, + configUpdatePermission: boolean, // dispatch functions modifyConfig: (config: User, callback?: () => void) => void, // context objects @@ -31,6 +33,7 @@ type Props = { class GlobalConfig extends React.Component<Props> { configModified = (config: Config) => () => { + this.props.fetchConfig(); this.props.history.push(`/config`); }; @@ -39,11 +42,12 @@ class GlobalConfig extends React.Component<Props> { } modifyConfig = (config: Config) => { + console.log(config); this.props.modifyConfig(config, this.configModified(config)); }; render() { - const { t, error, loading, config } = this.props; + const { t, error, loading, config, configUpdatePermission } = this.props; if (error) { return ( @@ -51,6 +55,7 @@ class GlobalConfig extends React.Component<Props> { title={t("global-config.error-title")} subtitle={t("global-config.error-subtitle")} error={error} + configUpdatePermission={configUpdatePermission} /> ); } @@ -86,11 +91,13 @@ const mapStateToProps = state => { const loading = isFetchConfigPending(state) || isModifyConfigPending(state); //TODO: Button lädt so nicht, sondern gesamte Seite const error = getFetchConfigFailure(state); const config = getConfig(state); + const configUpdatePermission = getConfigUpdatePermission(state); return { loading, error, - config + config, + configUpdatePermission }; }; From 998595ccd969c76529cab0f59cba218c246753a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 11:18:10 +0200 Subject: [PATCH 028/143] remove to do since it is done --- scm-ui/src/config/components/form/AdminSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index bcc6efbbfe..1486ce56af 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -14,7 +14,7 @@ type Props = { t: string => string, onChange: (boolean, any, string) => void }; -//TODO: Einbauen! + class AdminSettings extends React.Component<Props> { render() { const { t, adminGroups, adminUsers } = this.props; From 0452b95d105d2c4b3362d50ca039582493f095fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 11:18:28 +0200 Subject: [PATCH 029/143] add proxy exclude view and edit --- scm-ui/public/locales/en/config.json | 6 +- .../buttons/RemoveProxyExcludeButton.js | 34 +++++++++ .../components/fields/AddProxyExcludeField.js | 71 +++++++++++++++++++ .../src/config/components/form/ConfigForm.js | 1 + .../config/components/form/ProxySettings.js | 27 ++++++- .../components/table/ProxyExcludesTable.js | 47 ++++++++++++ 6 files changed, 184 insertions(+), 2 deletions(-) create mode 100644 scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js create mode 100644 scm-ui/src/config/components/fields/AddProxyExcludeField.js create mode 100644 scm-ui/src/config/components/table/ProxyExcludesTable.js diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index 53d41e682d..5f1db2a549 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -18,7 +18,11 @@ "proxy-server": "Proxy Server", "proxy-user": "Proxy User", "enable-proxy": "Enable Proxy", - "proxy-excludes": "Proxy Excludes" + "proxy-excludes": "Proxy Excludes", + "remove-proxy-exclude-button": "Remove Proxy Exclude", + "add-proxy-exclude-error": "The proxy exclude you want to add is not valid", + "add-proxy-exclude-textfield": "Add proxy exclude you want to add to proxy excludes here", + "add-proxy-exclude-button": "Add Proxy Exclude" }, "base-url-settings": { "name": "Base URL Settings", diff --git a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js new file mode 100644 index 0000000000..254f8c8225 --- /dev/null +++ b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js @@ -0,0 +1,34 @@ +//@flow +import React from "react"; +import { DeleteButton } from "../../../components/buttons"; +import { translate } from "react-i18next"; +import classNames from "classnames"; + +type Props = { + t: string => string, + proxyExcludeName: string, + removeProxyExclude: string => void +}; + +type State = {}; + + + +class RemoveProxyExcludeButton extends React.Component<Props, State> { + render() { + const { t , proxyExcludeName, removeProxyExclude} = this.props; + return ( + <div className={classNames("is-pulled-right")}> + <DeleteButton + label={t("proxy-settings.remove-proxy-exclude-button")} + action={(event: Event) => { + event.preventDefault(); + removeProxyExclude(proxyExcludeName); + }} + /> + </div> + ); + } +} + +export default translate("config")(RemoveProxyExcludeButton); diff --git a/scm-ui/src/config/components/fields/AddProxyExcludeField.js b/scm-ui/src/config/components/fields/AddProxyExcludeField.js new file mode 100644 index 0000000000..a5c8b3370d --- /dev/null +++ b/scm-ui/src/config/components/fields/AddProxyExcludeField.js @@ -0,0 +1,71 @@ +//@flow +import React from "react"; + +import { translate } from "react-i18next"; +import { AddButton } from "../../../components/buttons"; +import InputField from "../../../components/forms/InputField"; + +type Props = { + t: string => string, + addProxyExclude: string => void +}; + +type State = { + proxyExcludeToAdd: string, + //validationError: boolean +}; + +class AddProxyExcludeField extends React.Component<Props, State> { + constructor(props) { + super(props); + this.state = { + proxyExcludeToAdd: "", + //validationError: false + }; + } + + render() { + const { t } = this.props; + return ( + <div className="field"> + <InputField + + label={t("proxy-settings.add-proxy-exclude-textfield")} + errorMessage={t("proxy-settings.add-proxy-exclude-error")} + onChange={this.handleAddProxyExcludeChange} + validationError={false} + value={this.state.proxyExcludeToAdd} + onReturnPressed={this.appendProxyExclude} + /> + <AddButton + label={t("proxy-settings.add-proxy-exclude-button")} + action={this.addButtonClicked} + //disabled={!isMemberNameValid(this.state.memberToAdd)} + /> + </div> + ); + } + + addButtonClicked = (event: Event) => { + event.preventDefault(); + this.appendProxyExclude(); + }; + + appendProxyExclude = () => { + const { proxyExcludeToAdd } = this.state; + //if (isMemberNameValid(memberToAdd)) { + this.props.addProxyExclude(proxyExcludeToAdd); + this.setState({ ...this.state, proxyExcludeToAdd: "" }); + // } + }; + + handleAddProxyExcludeChange = (username: string) => { + this.setState({ + ...this.state, + proxyExcludeToAdd: username, + //validationError: membername.length > 0 && !isMemberNameValid(membername) + }); + }; +} + +export default translate("config")(AddProxyExcludeField); diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index ec75f3f579..4d05a816a4 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -110,6 +110,7 @@ class ConfigForm extends React.Component<Props, State> { proxyServer={config.proxyServer ? config.proxyServer : ""} proxyUser={config.proxyUser ? config.proxyUser : ""} enableProxy={config.enableProxy} + proxyExcludes={config.proxyExcludes} onChange={(isValid, changedValue, name) => this.onChange(isValid, changedValue, name) } diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index 2938c08a71..9904c739c0 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -3,6 +3,8 @@ import React from "react"; import { translate } from "react-i18next"; import { Checkbox, InputField } from "../../../components/forms/index"; import Subtitle from "../../../components/layout/Subtitle"; +import ProxyExcludesTable from "../table/ProxyExcludesTable"; +import AddProxyExcludeField from "../fields/AddProxyExcludeField"; type Props = { proxyPassword: string, @@ -23,7 +25,8 @@ class ProxySettings extends React.Component<Props> { proxyPort, proxyServer, proxyUser, - enableProxy + enableProxy, + proxyExcludes } = this.props; return ( @@ -58,6 +61,13 @@ class ProxySettings extends React.Component<Props> { onChange={this.handleProxyUserChange} disable={!enableProxy} /> + <ProxyExcludesTable + proxyExcludes={proxyExcludes} + onChange={(isValid, changedValue, name) => + this.props.onChange(isValid, changedValue, name) + } + /> + <AddProxyExcludeField addProxyExclude={this.addProxyExclude} /> </div> ); } @@ -77,6 +87,21 @@ class ProxySettings extends React.Component<Props> { handleEnableProxyChange = (value: string) => { this.props.onChange(true, value, "enableProxy"); }; + + addProxyExclude = (proxyExcludeName: string) => { + if (this.isProxyExcludeMember(proxyExcludeName)) { + return; + } + this.props.onChange( + true, + [...this.props.proxyExcludes, proxyExcludeName], + "proxyExcludes" + ); + }; + + isProxyExcludeMember = (proxyExcludeName: string) => { + return this.props.proxyExcludes.includes(proxyExcludeName); + }; } export default translate("config")(ProxySettings); diff --git a/scm-ui/src/config/components/table/ProxyExcludesTable.js b/scm-ui/src/config/components/table/ProxyExcludesTable.js new file mode 100644 index 0000000000..04f3126425 --- /dev/null +++ b/scm-ui/src/config/components/table/ProxyExcludesTable.js @@ -0,0 +1,47 @@ +//@flow +import React from "react"; +import { translate } from "react-i18next"; +import RemoveProxyExcludeButton from "../buttons/RemoveProxyExcludeButton"; + +type Props = { + proxyExcludes: string[], + t: string => string, + onChange: (boolean, any, string) => void +}; + +type State = {}; + +class ProxyExcludesTable extends React.Component<Props, State> { + render() { + const { t } = this.props; + return ( + <div> + <label className="label">{t("proxy-settings.proxy-excludes")}</label> + <table className="table is-hoverable is-fullwidth"> + <tbody> + {this.props.proxyExcludes.map(excludes => { + return ( + <tr key={excludes}> + <td key={excludes}>{excludes}</td> + <td> + <RemoveProxyExcludeButton + proxyExcludeName={excludes} + removeProxyExclude={this.removeProxyExclude} + /> + </td> + </tr> + ); + })} + </tbody> + </table> + </div> + ); + } + + removeProxyExclude = (excludename: string) => { + const newExcludes = this.props.proxyExcludes.filter(name => name !== excludename); + this.props.onChange(true, newExcludes, "proxyExcludes"); + }; +} + +export default translate("config")(ProxyExcludesTable); From d2c85606090c4d1d826636316a3705f6e834b313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 11:26:45 +0200 Subject: [PATCH 030/143] remove unsued imports and disable editing if proxy is disabled --- .../buttons/RemoveProxyExcludeButton.js | 6 ++-- .../components/fields/AddProxyExcludeField.js | 7 ++-- .../config/components/form/AdminSettings.js | 1 - .../config/components/form/ProxySettings.js | 3 +- .../components/table/ProxyExcludesTable.js | 34 +++++++++++-------- 5 files changed, 30 insertions(+), 21 deletions(-) diff --git a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js index 254f8c8225..ba177024fe 100644 --- a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js +++ b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js @@ -1,13 +1,14 @@ //@flow import React from "react"; -import { DeleteButton } from "../../../components/buttons"; +import {DeleteButton} from "../../../components/buttons"; import { translate } from "react-i18next"; import classNames from "classnames"; type Props = { t: string => string, proxyExcludeName: string, - removeProxyExclude: string => void + removeProxyExclude: string => void, + disable: boolean }; type State = {}; @@ -25,6 +26,7 @@ class RemoveProxyExcludeButton extends React.Component<Props, State> { event.preventDefault(); removeProxyExclude(proxyExcludeName); }} + disabled={this.props.disable} /> </div> ); diff --git a/scm-ui/src/config/components/fields/AddProxyExcludeField.js b/scm-ui/src/config/components/fields/AddProxyExcludeField.js index a5c8b3370d..c76d8ae807 100644 --- a/scm-ui/src/config/components/fields/AddProxyExcludeField.js +++ b/scm-ui/src/config/components/fields/AddProxyExcludeField.js @@ -2,12 +2,13 @@ import React from "react"; import { translate } from "react-i18next"; -import { AddButton } from "../../../components/buttons"; +import {AddButton} from "../../../components/buttons"; import InputField from "../../../components/forms/InputField"; type Props = { t: string => string, - addProxyExclude: string => void + addProxyExclude: string => void, + disable: boolean }; type State = { @@ -36,10 +37,12 @@ class AddProxyExcludeField extends React.Component<Props, State> { validationError={false} value={this.state.proxyExcludeToAdd} onReturnPressed={this.appendProxyExclude} + disable={this.props.disable} /> <AddButton label={t("proxy-settings.add-proxy-exclude-button")} action={this.addButtonClicked} + disabled={this.props.disable} //disabled={!isMemberNameValid(this.state.memberToAdd)} /> </div> diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index 1486ce56af..dcde12f91f 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -3,7 +3,6 @@ import React from "react"; import { translate } from "react-i18next"; import Subtitle from "../../../components/layout/Subtitle"; import AdminGroupTable from "../table/AdminGroupTable"; -import ProxySettings from "./ProxySettings"; import AdminUserTable from "../table/AdminUserTable"; import AddAdminGroupField from "../fields/AddAdminGroupField"; import AddAdminUserField from "../fields/AddAdminUserField"; diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index 9904c739c0..0a8666f805 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -66,8 +66,9 @@ class ProxySettings extends React.Component<Props> { onChange={(isValid, changedValue, name) => this.props.onChange(isValid, changedValue, name) } + disable={!enableProxy} /> - <AddProxyExcludeField addProxyExclude={this.addProxyExclude} /> + <AddProxyExcludeField addProxyExclude={this.addProxyExclude} disable={!enableProxy}/> </div> ); } diff --git a/scm-ui/src/config/components/table/ProxyExcludesTable.js b/scm-ui/src/config/components/table/ProxyExcludesTable.js index 04f3126425..b8102c4f63 100644 --- a/scm-ui/src/config/components/table/ProxyExcludesTable.js +++ b/scm-ui/src/config/components/table/ProxyExcludesTable.js @@ -6,7 +6,8 @@ import RemoveProxyExcludeButton from "../buttons/RemoveProxyExcludeButton"; type Props = { proxyExcludes: string[], t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + disable: boolean }; type State = {}; @@ -19,19 +20,20 @@ class ProxyExcludesTable extends React.Component<Props, State> { <label className="label">{t("proxy-settings.proxy-excludes")}</label> <table className="table is-hoverable is-fullwidth"> <tbody> - {this.props.proxyExcludes.map(excludes => { - return ( - <tr key={excludes}> - <td key={excludes}>{excludes}</td> - <td> - <RemoveProxyExcludeButton - proxyExcludeName={excludes} - removeProxyExclude={this.removeProxyExclude} - /> - </td> - </tr> - ); - })} + {this.props.proxyExcludes.map(excludes => { + return ( + <tr key={excludes}> + <td key={excludes}>{excludes}</td> + <td> + <RemoveProxyExcludeButton + proxyExcludeName={excludes} + removeProxyExclude={this.removeProxyExclude} + disable={this.props.disable} + /> + </td> + </tr> + ); + })} </tbody> </table> </div> @@ -39,7 +41,9 @@ class ProxyExcludesTable extends React.Component<Props, State> { } removeProxyExclude = (excludename: string) => { - const newExcludes = this.props.proxyExcludes.filter(name => name !== excludename); + const newExcludes = this.props.proxyExcludes.filter( + name => name !== excludename + ); this.props.onChange(true, newExcludes, "proxyExcludes"); }; } From fbc3b458317239bf66fc8e11c29f82579e1ed39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 11:37:21 +0200 Subject: [PATCH 031/143] add error handling if modify config failed --- scm-ui/src/config/containers/GlobalConfig.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index 56e0a06c9b..5d18f86226 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -8,7 +8,8 @@ import { getConfig, modifyConfig, isModifyConfigPending, - getConfigUpdatePermission + getConfigUpdatePermission, + getModifyConfigFailure } from "../modules/config"; import connect from "react-redux/es/connect/connect"; import ErrorPage from "../../components/ErrorPage"; @@ -89,7 +90,7 @@ const mapDispatchToProps = dispatch => { const mapStateToProps = state => { const loading = isFetchConfigPending(state) || isModifyConfigPending(state); //TODO: Button lädt so nicht, sondern gesamte Seite - const error = getFetchConfigFailure(state); + const error = getFetchConfigFailure(state) || getModifyConfigFailure(state); const config = getConfig(state); const configUpdatePermission = getConfigUpdatePermission(state); From 08328bb95f1998dced1ec295f26055929f3490f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 12:12:59 +0200 Subject: [PATCH 032/143] disable everything if user has no permission to edit config --- scm-ui/src/components/forms/Checkbox.js | 6 +++-- scm-ui/src/components/forms/InputField.js | 6 ++--- .../buttons/RemoveAdminGroupButton.js | 7 ++++-- .../buttons/RemoveAdminUserButton.js | 9 ++++---- .../buttons/RemoveProxyExcludeButton.js | 4 ++-- .../components/fields/AddAdminGroupField.js | 7 ++++-- .../components/fields/AddAdminUserField.js | 14 +++++++----- .../components/fields/AddProxyExcludeField.js | 15 ++++++------- .../config/components/form/AdminSettings.js | 13 +++++++---- .../config/components/form/BaseUrlSettings.js | 7 ++++-- .../src/config/components/form/ConfigForm.js | 8 +++++-- .../config/components/form/GeneralSettings.js | 17 ++++++++++++-- .../config/components/form/ProxySettings.js | 22 ++++++++++++------- .../components/table/AdminGroupTable.js | 6 +++-- .../config/components/table/AdminUserTable.js | 7 ++++-- .../components/table/ProxyExcludesTable.js | 4 ++-- scm-ui/src/config/containers/GlobalConfig.js | 1 + 17 files changed, 100 insertions(+), 53 deletions(-) diff --git a/scm-ui/src/components/forms/Checkbox.js b/scm-ui/src/components/forms/Checkbox.js index b37f951e2b..72dfbf4af8 100644 --- a/scm-ui/src/components/forms/Checkbox.js +++ b/scm-ui/src/components/forms/Checkbox.js @@ -4,7 +4,8 @@ import React from "react"; type Props = { label?: string, checked: boolean, - onChange?: boolean => void + onChange?: boolean => void, + disabled?: boolean }; class Checkbox extends React.Component<Props> { onCheckboxChange = (event: SyntheticInputEvent<HTMLInputElement>) => { @@ -17,11 +18,12 @@ class Checkbox extends React.Component<Props> { return ( <div className="field"> <div className="control"> - <label className="checkbox"> + <label className="checkbox" disabled={this.props.disabled}> <input type="checkbox" checked={this.props.checked} onChange={this.onCheckboxChange} + disabled={this.props.disabled} /> {this.props.label} </label> diff --git a/scm-ui/src/components/forms/InputField.js b/scm-ui/src/components/forms/InputField.js index 9833739461..6f87683939 100644 --- a/scm-ui/src/components/forms/InputField.js +++ b/scm-ui/src/components/forms/InputField.js @@ -12,7 +12,7 @@ type Props = { onReturnPressed?: () => void, validationError: boolean, errorMessage: string, - disable?: boolean + disabled?: boolean }; class InputField extends React.Component<Props> { @@ -60,7 +60,7 @@ class InputField extends React.Component<Props> { value, validationError, errorMessage, - disable + disabled } = this.props; const errorView = validationError ? "is-danger" : ""; const helper = validationError ? ( @@ -82,7 +82,7 @@ class InputField extends React.Component<Props> { value={value} onChange={this.handleInput} onKeyPress={this.handleKeyPress} - disabled={disable} + disabled={disabled} /> </div> {helper} diff --git a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js index c7d8f8d85a..c593483409 100644 --- a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js +++ b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js @@ -3,11 +3,13 @@ import React from "react"; import { DeleteButton } from "../../../components/buttons"; import { translate } from "react-i18next"; import classNames from "classnames"; +import {InputField} from "../../../components/forms"; type Props = { t: string => string, groupname: string, - removeGroup: string => void + removeGroup: string => void, + disabled: boolean }; type State = {}; @@ -16,7 +18,7 @@ type State = {}; class RemoveAdminGroupButton extends React.Component<Props, State> { render() { - const { t , groupname, removeGroup} = this.props; + const { t , groupname, removeGroup, disabled} = this.props; return ( <div className={classNames("is-pulled-right")}> <DeleteButton @@ -25,6 +27,7 @@ class RemoveAdminGroupButton extends React.Component<Props, State> { event.preventDefault(); removeGroup(groupname); }} + disabled={disabled} /> </div> ); diff --git a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js index 6bdf06cd28..bd4a02a18a 100644 --- a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js +++ b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js @@ -3,20 +3,20 @@ import React from "react"; import { DeleteButton } from "../../../components/buttons"; import { translate } from "react-i18next"; import classNames from "classnames"; +import { InputField } from "../../../components/forms"; type Props = { t: string => string, username: string, - removeUser: string => void + removeUser: string => void, + disabled: boolean }; type State = {}; - - class RemoveAdminUserButton extends React.Component<Props, State> { render() { - const { t , username, removeUser} = this.props; + const { t, username, removeUser, disabled } = this.props; return ( <div className={classNames("is-pulled-right")}> <DeleteButton @@ -25,6 +25,7 @@ class RemoveAdminUserButton extends React.Component<Props, State> { event.preventDefault(); removeUser(username); }} + disabled={disabled} /> </div> ); diff --git a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js index ba177024fe..acdfd6292a 100644 --- a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js +++ b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js @@ -8,7 +8,7 @@ type Props = { t: string => string, proxyExcludeName: string, removeProxyExclude: string => void, - disable: boolean + disabled: boolean }; type State = {}; @@ -26,7 +26,7 @@ class RemoveProxyExcludeButton extends React.Component<Props, State> { event.preventDefault(); removeProxyExclude(proxyExcludeName); }} - disabled={this.props.disable} + disabled={this.props.disabled} /> </div> ); diff --git a/scm-ui/src/config/components/fields/AddAdminGroupField.js b/scm-ui/src/config/components/fields/AddAdminGroupField.js index ed694355d8..0991056b66 100644 --- a/scm-ui/src/config/components/fields/AddAdminGroupField.js +++ b/scm-ui/src/config/components/fields/AddAdminGroupField.js @@ -7,7 +7,8 @@ import InputField from "../../../components/forms/InputField"; type Props = { t: string => string, - addGroup: string => void + addGroup: string => void, + disabled: boolean }; type State = { @@ -25,7 +26,7 @@ class AddAdminGroupField extends React.Component<Props, State> { } render() { - const { t } = this.props; + const { t, disabled } = this.props; return ( <div className="field"> <InputField @@ -36,10 +37,12 @@ class AddAdminGroupField extends React.Component<Props, State> { validationError={false} value={this.state.groupToAdd} onReturnPressed={this.appendGroup} + disabled={disabled} /> <AddButton label={t("admin-settings.add-group-button")} action={this.addButtonClicked} + disabled={disabled} //disabled={!isMemberNameValid(this.state.memberToAdd)} /> </div> diff --git a/scm-ui/src/config/components/fields/AddAdminUserField.js b/scm-ui/src/config/components/fields/AddAdminUserField.js index 116144ff3c..025ed6cb4d 100644 --- a/scm-ui/src/config/components/fields/AddAdminUserField.js +++ b/scm-ui/src/config/components/fields/AddAdminUserField.js @@ -7,11 +7,12 @@ import InputField from "../../../components/forms/InputField"; type Props = { t: string => string, - addUser: string => void + addUser: string => void, + disabled: boolean }; type State = { - userToAdd: string, + userToAdd: string //validationError: boolean }; @@ -19,27 +20,28 @@ class AddAdminUserField extends React.Component<Props, State> { constructor(props) { super(props); this.state = { - userToAdd: "", + userToAdd: "" //validationError: false }; } render() { - const { t } = this.props; + const { t, disabled } = this.props; return ( <div className="field"> <InputField - label={t("admin-settings.add-user-textfield")} errorMessage={t("admin-settings.add-user-error")} onChange={this.handleAddUserChange} validationError={false} value={this.state.userToAdd} onReturnPressed={this.appendUser} + disabled={disabled} /> <AddButton label={t("admin-settings.add-user-button")} action={this.addButtonClicked} + disabled={disabled} //disabled={!isMemberNameValid(this.state.memberToAdd)} /> </div> @@ -62,7 +64,7 @@ class AddAdminUserField extends React.Component<Props, State> { handleAddUserChange = (username: string) => { this.setState({ ...this.state, - userToAdd: username, + userToAdd: username //validationError: membername.length > 0 && !isMemberNameValid(membername) }); }; diff --git a/scm-ui/src/config/components/fields/AddProxyExcludeField.js b/scm-ui/src/config/components/fields/AddProxyExcludeField.js index c76d8ae807..bb7e005b02 100644 --- a/scm-ui/src/config/components/fields/AddProxyExcludeField.js +++ b/scm-ui/src/config/components/fields/AddProxyExcludeField.js @@ -2,17 +2,17 @@ import React from "react"; import { translate } from "react-i18next"; -import {AddButton} from "../../../components/buttons"; +import { AddButton } from "../../../components/buttons"; import InputField from "../../../components/forms/InputField"; type Props = { t: string => string, addProxyExclude: string => void, - disable: boolean + disabled: boolean }; type State = { - proxyExcludeToAdd: string, + proxyExcludeToAdd: string //validationError: boolean }; @@ -20,7 +20,7 @@ class AddProxyExcludeField extends React.Component<Props, State> { constructor(props) { super(props); this.state = { - proxyExcludeToAdd: "", + proxyExcludeToAdd: "" //validationError: false }; } @@ -30,19 +30,18 @@ class AddProxyExcludeField extends React.Component<Props, State> { return ( <div className="field"> <InputField - label={t("proxy-settings.add-proxy-exclude-textfield")} errorMessage={t("proxy-settings.add-proxy-exclude-error")} onChange={this.handleAddProxyExcludeChange} validationError={false} value={this.state.proxyExcludeToAdd} onReturnPressed={this.appendProxyExclude} - disable={this.props.disable} + disabled={this.props.disabled} /> <AddButton label={t("proxy-settings.add-proxy-exclude-button")} action={this.addButtonClicked} - disabled={this.props.disable} + disabled={this.props.disabled} //disabled={!isMemberNameValid(this.state.memberToAdd)} /> </div> @@ -65,7 +64,7 @@ class AddProxyExcludeField extends React.Component<Props, State> { handleAddProxyExcludeChange = (username: string) => { this.setState({ ...this.state, - proxyExcludeToAdd: username, + proxyExcludeToAdd: username //validationError: membername.length > 0 && !isMemberNameValid(membername) }); }; diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index dcde12f91f..b7a39f234c 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -11,12 +11,13 @@ type Props = { adminGroups: string[], adminUsers: string[], t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + hasUpdatePermission: boolean }; class AdminSettings extends React.Component<Props> { render() { - const { t, adminGroups, adminUsers } = this.props; + const { t, adminGroups, adminUsers, hasUpdatePermission } = this.props; return ( <div> @@ -26,15 +27,19 @@ class AdminSettings extends React.Component<Props> { onChange={(isValid, changedValue, name) => this.props.onChange(isValid, changedValue, name) } + disabled={!hasUpdatePermission} + /> + <AddAdminGroupField addGroup={this.addGroup} disabled={!hasUpdatePermission} /> - <AddAdminGroupField addGroup={this.addGroup} /> <AdminUserTable adminUsers={adminUsers} onChange={(isValid, changedValue, name) => this.props.onChange(isValid, changedValue, name) } + disabled={!hasUpdatePermission} + /> + <AddAdminUserField addUser={this.addUser} disabled={!hasUpdatePermission} /> - <AddAdminUserField addUser={this.addUser} /> </div> ); } diff --git a/scm-ui/src/config/components/form/BaseUrlSettings.js b/scm-ui/src/config/components/form/BaseUrlSettings.js index cde4680b48..e7b80ed924 100644 --- a/scm-ui/src/config/components/form/BaseUrlSettings.js +++ b/scm-ui/src/config/components/form/BaseUrlSettings.js @@ -8,12 +8,13 @@ type Props = { baseUrl: string, forceBaseUrl: boolean, t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + hasUpdatePermission: boolean }; class BaseUrlSettings extends React.Component<Props> { render() { - const { t, baseUrl, forceBaseUrl } = this.props; + const { t, baseUrl, forceBaseUrl, hasUpdatePermission } = this.props; return ( <div> @@ -22,11 +23,13 @@ class BaseUrlSettings extends React.Component<Props> { checked={forceBaseUrl} label={t("base-url-settings.force-base-url")} onChange={this.handleForceBaseUrlChange} + disabled={!hasUpdatePermission} /> <InputField label={t("base-url-settings.base-url")} onChange={this.handleBaseUrlChange} value={baseUrl} + disabled={!hasUpdatePermission} /> </div> ); diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index 4d05a816a4..db0a79e7bf 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -66,9 +66,8 @@ class ConfigForm extends React.Component<Props, State> { }; render() { - const { loading, t } = this.props; + const { loading, t, configUpdatePermission } = this.props; let config = this.state.config; - return ( <form onSubmit={this.submit}> <GeneralSettings @@ -86,6 +85,7 @@ class ConfigForm extends React.Component<Props, State> { onChange={(isValid, changedValue, name) => this.onChange(isValid, changedValue, name) } + hasUpdatePermission={configUpdatePermission} /> <hr /> <BaseUrlSettings @@ -94,6 +94,7 @@ class ConfigForm extends React.Component<Props, State> { onChange={(isValid, changedValue, name) => this.onChange(isValid, changedValue, name) } + hasUpdatePermission={configUpdatePermission} /> <hr /> <AdminSettings @@ -102,6 +103,7 @@ class ConfigForm extends React.Component<Props, State> { onChange={(isValid, changedValue, name) => this.onChange(isValid, changedValue, name) } + hasUpdatePermission={configUpdatePermission} /> <hr /> <ProxySettings @@ -114,12 +116,14 @@ class ConfigForm extends React.Component<Props, State> { onChange={(isValid, changedValue, name) => this.onChange(isValid, changedValue, name) } + hasUpdatePermission={configUpdatePermission} /> <hr /> <SubmitButton // disabled={!this.isValid()} loading={loading} label={t("config-form.submit")} + disabled={!configUpdatePermission} /> </form> ); diff --git a/scm-ui/src/config/components/form/GeneralSettings.js b/scm-ui/src/config/components/form/GeneralSettings.js index 29db1e5288..321f247a2a 100644 --- a/scm-ui/src/config/components/form/GeneralSettings.js +++ b/scm-ui/src/config/components/form/GeneralSettings.js @@ -16,7 +16,8 @@ type Props = { enabledXsrfProtection: boolean, defaultNamespaceStrategy: string, t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + hasUpdatePermission: boolean }; class GeneralSettings extends React.Component<Props> { @@ -33,7 +34,8 @@ class GeneralSettings extends React.Component<Props> { pluginUrl, loginAttemptLimitTimeout, enabledXsrfProtection, - defaultNamespaceStrategy + defaultNamespaceStrategy, + hasUpdatePermission } = this.props; return ( @@ -42,56 +44,67 @@ class GeneralSettings extends React.Component<Props> { label={t("general-settings.realm-description")} onChange={this.handleRealmDescriptionChange} value={realmDescription} + disabled={!hasUpdatePermission} /> <Checkbox checked={enableRepositoryArchive} label={t("general-settings.enable-repository-archive")} onChange={this.handleEnableRepositoryArchiveChange} + disabled={!hasUpdatePermission} /> <Checkbox checked={disableGroupingGrid} label={t("general-settings.disable-grouping-grid")} onChange={this.handleDisableGroupingGridChange} + disabled={!hasUpdatePermission} /> <InputField label={t("general-settings.date-format")} onChange={this.handleDateFormatChange} value={dateFormat} + disabled={!hasUpdatePermission} /> <Checkbox checked={anonymousAccessEnabled} label={t("general-settings.anonymous-access-enabled")} onChange={this.handleAnonymousAccessEnabledChange} + disabled={!hasUpdatePermission} /> <InputField label={t("general-settings.login-attempt-limit")} onChange={this.handleLoginAttemptLimitChange} value={loginAttemptLimit} + disabled={!hasUpdatePermission} /> <InputField label={t("general-settings.login-attempt-limit-timeout")} onChange={this.handleLoginAttemptLimitTimeoutChange} value={loginAttemptLimitTimeout} + disabled={!hasUpdatePermission} /> <Checkbox checked={skipFailedAuthenticators} label={t("general-settings.skip-failed-authenticators")} onChange={this.handleSkipFailedAuthenticatorsChange} + disabled={!hasUpdatePermission} /> <InputField label={t("general-settings.plugin-url")} onChange={this.handlePluginUrlChange} value={pluginUrl} + disabled={!hasUpdatePermission} /> <Checkbox checked={enabledXsrfProtection} label={t("general-settings.enabled-xsrf-protection")} onChange={this.handleEnabledXsrfProtectionChange} + disabled={!hasUpdatePermission} /> <InputField label={t("general-settings.default-namespace-strategy")} onChange={this.handleDefaultNamespaceStrategyChange} value={defaultNamespaceStrategy} + disabled={!hasUpdatePermission} /> </div> ); diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index 0a8666f805..c21d4e807f 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -14,7 +14,8 @@ type Props = { enableProxy: boolean, proxyExcludes: string[], //TODO: einbauen! t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + hasUpdatePermission: boolean }; class ProxySettings extends React.Component<Props> { @@ -26,7 +27,8 @@ class ProxySettings extends React.Component<Props> { proxyServer, proxyUser, enableProxy, - proxyExcludes + proxyExcludes, + hasUpdatePermission } = this.props; return ( @@ -36,39 +38,43 @@ class ProxySettings extends React.Component<Props> { checked={enableProxy} label={t("proxy-settings.enable-proxy")} onChange={this.handleEnableProxyChange} + disabled={!hasUpdatePermission} /> <InputField label={t("proxy-settings.proxy-password")} onChange={this.handleProxyPasswordChange} value={proxyPassword} - disable={!enableProxy} + disabled={!enableProxy || !hasUpdatePermission} /> <InputField label={t("proxy-settings.proxy-port")} value={proxyPort} onChange={this.handleProxyPortChange} - disable={!enableProxy} + disabled={!enableProxy || !hasUpdatePermission} /> <InputField label={t("proxy-settings.proxy-server")} value={proxyServer} onChange={this.handleProxyServerChange} - disable={!enableProxy} + disabled={!enableProxy || !hasUpdatePermission} /> <InputField label={t("proxy-settings.proxy-user")} value={proxyUser} onChange={this.handleProxyUserChange} - disable={!enableProxy} + disabled={!enableProxy || !hasUpdatePermission} /> <ProxyExcludesTable proxyExcludes={proxyExcludes} onChange={(isValid, changedValue, name) => this.props.onChange(isValid, changedValue, name) } - disable={!enableProxy} + disabled={!enableProxy || !hasUpdatePermission} + /> + <AddProxyExcludeField + addProxyExclude={this.addProxyExclude} + disabled={!enableProxy || !hasUpdatePermission} /> - <AddProxyExcludeField addProxyExclude={this.addProxyExclude} disable={!enableProxy}/> </div> ); } diff --git a/scm-ui/src/config/components/table/AdminGroupTable.js b/scm-ui/src/config/components/table/AdminGroupTable.js index 94e54ba747..d5566e7ce1 100644 --- a/scm-ui/src/config/components/table/AdminGroupTable.js +++ b/scm-ui/src/config/components/table/AdminGroupTable.js @@ -6,14 +6,15 @@ import RemoveAdminGroupButton from "../buttons/RemoveAdminGroupButton"; type Props = { adminGroups: string[], t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + disabled: boolean }; type State = {}; class AdminGroupTable extends React.Component<Props, State> { render() { - const { t } = this.props; + const { t, disabled } = this.props; return ( <div> <label className="label">{t("admin-settings.admin-groups")}</label> @@ -27,6 +28,7 @@ class AdminGroupTable extends React.Component<Props, State> { <RemoveAdminGroupButton groupname={group} removeGroup={this.removeGroup} + disabled={disabled} /> </td> </tr> diff --git a/scm-ui/src/config/components/table/AdminUserTable.js b/scm-ui/src/config/components/table/AdminUserTable.js index 8f1cbe11c4..9a840351e0 100644 --- a/scm-ui/src/config/components/table/AdminUserTable.js +++ b/scm-ui/src/config/components/table/AdminUserTable.js @@ -2,18 +2,20 @@ import React from "react"; import { translate } from "react-i18next"; import RemoveAdminUserButton from "../buttons/RemoveAdminUserButton"; +import { InputField } from "../../../components/forms"; type Props = { adminUsers: string[], t: string => string, - onChange: (boolean, any, string) => void + onChange: (boolean, any, string) => void, + disabled: boolean }; type State = {}; class AdminUserTable extends React.Component<Props, State> { render() { - const { t } = this.props; + const { t, disabled } = this.props; return ( <div> <label className="label">{t("admin-settings.admin-users")}</label> @@ -27,6 +29,7 @@ class AdminUserTable extends React.Component<Props, State> { <RemoveAdminUserButton username={user} removeUser={this.removeUser} + disabled={disabled} /> </td> </tr> diff --git a/scm-ui/src/config/components/table/ProxyExcludesTable.js b/scm-ui/src/config/components/table/ProxyExcludesTable.js index b8102c4f63..ccee16cea5 100644 --- a/scm-ui/src/config/components/table/ProxyExcludesTable.js +++ b/scm-ui/src/config/components/table/ProxyExcludesTable.js @@ -7,7 +7,7 @@ type Props = { proxyExcludes: string[], t: string => string, onChange: (boolean, any, string) => void, - disable: boolean + disabled: boolean }; type State = {}; @@ -28,7 +28,7 @@ class ProxyExcludesTable extends React.Component<Props, State> { <RemoveProxyExcludeButton proxyExcludeName={excludes} removeProxyExclude={this.removeProxyExclude} - disable={this.props.disable} + disabled={this.props.disabled} /> </td> </tr> diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index 5d18f86226..f76a71c11b 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -71,6 +71,7 @@ class GlobalConfig extends React.Component<Props> { submitForm={config => this.modifyConfig(config)} config={config} loading={loading} + configUpdatePermission={configUpdatePermission} /> </div> ); From d9aa04e6206a39e76d135dc3b76163d9ecc8a26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 13:28:46 +0200 Subject: [PATCH 033/143] add notification message if user has no permission to edit config --- scm-ui/public/locales/en/config.json | 3 +- .../src/config/components/form/ConfigForm.js | 39 ++++++++++++++++--- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index 5f1db2a549..2779b3c28c 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -9,7 +9,8 @@ "error-subtitle": "Unknown Config Error" }, "config-form": { - "submit": "Submit" + "submit": "Submit", + "no-permission-notification": "Please note: You do not have the permission to edit the config!" }, "proxy-settings": { "name": "Proxy Settings", diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index db0a79e7bf..bc4a94b501 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -7,6 +7,7 @@ import ProxySettings from "./ProxySettings"; import GeneralSettings from "./GeneralSettings"; import BaseUrlSettings from "./BaseUrlSettings"; import AdminSettings from "./AdminSettings"; +import Notification from "../../../components/Notification"; type Props = { submitForm: Config => void, @@ -17,7 +18,8 @@ type Props = { }; type State = { - config: Config + config: Config, + showNotification: boolean }; class ConfigForm extends React.Component<Props, State> { @@ -48,15 +50,18 @@ class ConfigForm extends React.Component<Props, State> { enabledXsrfProtection: true, defaultNamespaceStrategy: "", _links: {} - } + }, + showNotification: false }; } componentDidMount() { - const { config } = this.props; - console.log(config); + const { config, configUpdatePermission } = this.props; if (config) { - this.setState({ config: { ...config } }); + this.setState({ ...this.state, config: { ...config } }); + } + if (!configUpdatePermission) { + this.setState({ ...this.state, showNotification: true }); } } @@ -67,9 +72,23 @@ class ConfigForm extends React.Component<Props, State> { render() { const { loading, t, configUpdatePermission } = this.props; - let config = this.state.config; + const config = this.state.config; + + let noPermissionNotification = null; + + if (this.state.showNotification) { + noPermissionNotification = ( + <Notification + type={"info"} + children={t("config-form.no-permission-notification")} + onClose={() => this.onClose()} + /> + ); + } + return ( <form onSubmit={this.submit}> + {noPermissionNotification} <GeneralSettings realmDescription={config.realmDescription} enableRepositoryArchive={config.enableRepositoryArchive} @@ -132,6 +151,7 @@ class ConfigForm extends React.Component<Props, State> { onChange = (isValid: boolean, changedValue: any, name: string) => { if (isValid) { this.setState({ + ...this.state, config: { ...this.state.config, [name]: changedValue @@ -139,6 +159,13 @@ class ConfigForm extends React.Component<Props, State> { }); } }; + + onClose = () => { + this.setState({ + ...this.state, + showNotification: false + }); + }; } export default translate("config")(ConfigForm); From ce700cde1376bd197ca476e6fd5bd0978b75c3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 13:30:25 +0200 Subject: [PATCH 034/143] remove unneccesary imports --- .../src/config/components/buttons/RemoveAdminGroupButton.js | 5 +---- .../src/config/components/buttons/RemoveAdminUserButton.js | 1 - scm-ui/src/config/components/table/AdminUserTable.js | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js index c593483409..6a819b6972 100644 --- a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js +++ b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js @@ -3,7 +3,6 @@ import React from "react"; import { DeleteButton } from "../../../components/buttons"; import { translate } from "react-i18next"; import classNames from "classnames"; -import {InputField} from "../../../components/forms"; type Props = { t: string => string, @@ -14,11 +13,9 @@ type Props = { type State = {}; - - class RemoveAdminGroupButton extends React.Component<Props, State> { render() { - const { t , groupname, removeGroup, disabled} = this.props; + const { t, groupname, removeGroup, disabled } = this.props; return ( <div className={classNames("is-pulled-right")}> <DeleteButton diff --git a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js index bd4a02a18a..7d79a84030 100644 --- a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js +++ b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js @@ -3,7 +3,6 @@ import React from "react"; import { DeleteButton } from "../../../components/buttons"; import { translate } from "react-i18next"; import classNames from "classnames"; -import { InputField } from "../../../components/forms"; type Props = { t: string => string, diff --git a/scm-ui/src/config/components/table/AdminUserTable.js b/scm-ui/src/config/components/table/AdminUserTable.js index 9a840351e0..caf58f2cc0 100644 --- a/scm-ui/src/config/components/table/AdminUserTable.js +++ b/scm-ui/src/config/components/table/AdminUserTable.js @@ -2,7 +2,6 @@ import React from "react"; import { translate } from "react-i18next"; import RemoveAdminUserButton from "../buttons/RemoveAdminUserButton"; -import { InputField } from "../../../components/forms"; type Props = { adminUsers: string[], From 756da5db1cd67156629dd5f3b387337828227d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 13:31:04 +0200 Subject: [PATCH 035/143] remove not needed to do --- scm-ui/src/config/containers/GlobalConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index f76a71c11b..a23ef047a6 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -90,7 +90,7 @@ const mapDispatchToProps = dispatch => { }; const mapStateToProps = state => { - const loading = isFetchConfigPending(state) || isModifyConfigPending(state); //TODO: Button lädt so nicht, sondern gesamte Seite + const loading = isFetchConfigPending(state) || isModifyConfigPending(state); const error = getFetchConfigFailure(state) || getModifyConfigFailure(state); const config = getConfig(state); const configUpdatePermission = getConfigUpdatePermission(state); From 322e82380abb66ca7a7fcd21efed3d905c78b8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 13:33:50 +0200 Subject: [PATCH 036/143] refactoring --- scm-ui/src/config/containers/GlobalConfig.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index a23ef047a6..2f4aa3be22 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -16,7 +16,6 @@ import ErrorPage from "../../components/ErrorPage"; import type { Config } from "../types/Config"; import ConfigForm from "../components/form/ConfigForm"; import Loading from "../../components/Loading"; -import type { User } from "../../users/types/User"; import type { History } from "history"; type Props = { @@ -25,7 +24,7 @@ type Props = { config: Config, configUpdatePermission: boolean, // dispatch functions - modifyConfig: (config: User, callback?: () => void) => void, + modifyConfig: (config: Config, callback?: () => void) => void, // context objects t: string => string, fetchConfig: void => void, @@ -33,7 +32,7 @@ type Props = { }; class GlobalConfig extends React.Component<Props> { - configModified = (config: Config) => () => { + configModified = () => () => { this.props.fetchConfig(); this.props.history.push(`/config`); }; @@ -43,8 +42,7 @@ class GlobalConfig extends React.Component<Props> { } modifyConfig = (config: Config) => { - console.log(config); - this.props.modifyConfig(config, this.configModified(config)); + this.props.modifyConfig(config, this.configModified()); }; render() { From fb56cf4d912c7f588f98089f92e36612ac7ef660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 14:04:27 +0200 Subject: [PATCH 037/143] use password field for proxy password --- scm-ui/src/config/components/form/ProxySettings.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index c21d4e807f..eb434513fe 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -44,6 +44,7 @@ class ProxySettings extends React.Component<Props> { label={t("proxy-settings.proxy-password")} onChange={this.handleProxyPasswordChange} value={proxyPassword} + type="password" disabled={!enableProxy || !hasUpdatePermission} /> <InputField From edac761d67fbf83a036fe7d1c770e2963e5db526 Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Thu, 16 Aug 2018 15:20:20 +0200 Subject: [PATCH 038/143] Added content link to FileObjectDto --- .../scm/api/v2/resources/FileObjectDto.java | 2 +- .../api/v2/resources/FileObjectMapper.java | 10 +++- .../scm/api/v2/resources/ResourceLinks.java | 4 ++ .../api/v2/resources/SubRepositoryDto.java | 14 ++++++ .../v2/resources/FileObjectMapperTest.java | 49 ++++++++++++++----- 5 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/SubRepositoryDto.java diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java index 2f4c7a07c7..ab4986554a 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectDto.java @@ -17,8 +17,8 @@ public class FileObjectDto extends HalRepresentation { private boolean directory; private String description; private int length; - // TODO: What about subrepos? private Instant lastModified; + private SubRepositoryDto subRepository; @Override @SuppressWarnings("squid:S1185") // We want to have this method available in this package diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 28326255f3..4363a8a9b1 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -7,9 +7,12 @@ import org.mapstruct.Mapper; import org.mapstruct.MappingTarget; import sonia.scm.repository.FileObject; import sonia.scm.repository.NamespaceAndName; +import sonia.scm.repository.SubRepository; import javax.inject.Inject; +import static de.otto.edison.hal.Link.link; + @Mapper public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObjectDto> { @@ -18,8 +21,13 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject protected abstract FileObjectDto map(FileObject fileObject, @Context NamespaceAndName namespaceAndName, @Context String revision); + abstract SubRepositoryDto mapSubrepository(SubRepository subRepository); + @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { - dto.add(Links.linkingTo().self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())).build()); + dto.add(Links.linkingTo() + .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())) + .single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName()))) + .build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java index fb5cfab5bf..c4aa579c80 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java @@ -305,6 +305,10 @@ class ResourceLinks { public String sourceWithPath(String namespace, String name, String revision, String path) { return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision, path).href(); } + + public String content(String namespace, String name, String revision, String path) { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("content").parameters().method("get").parameters(revision, path).href(); + } } public PermissionCollectionLinks permissionCollection() { diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SubRepositoryDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SubRepositoryDto.java new file mode 100644 index 0000000000..b36aefe219 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SubRepositoryDto.java @@ -0,0 +1,14 @@ +package sonia.scm.api.v2.resources; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +@Getter +@Setter +@NoArgsConstructor +public class SubRepositoryDto { + private String repositoryUrl; + private String browserUrl; + private String revision; +} diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java index b06dad6fb2..63d1050797 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java @@ -10,24 +10,32 @@ import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.junit.MockitoJUnitRunner; import sonia.scm.repository.FileObject; +import sonia.scm.repository.NamespaceAndName; +import sonia.scm.repository.SubRepository; -import static org.junit.Assert.assertEquals; +import java.net.URI; + +import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; -import static org.mockito.MockitoAnnotations.initMocks; -@RunWith(MockitoJUnitRunner.class) +@RunWith(MockitoJUnitRunner.Silent.class) public class FileObjectMapperTest { + private final URI baseUri = URI.create("http://example.com/base/"); + @SuppressWarnings("unused") // Is injected + private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); + @InjectMocks private FileObjectMapperImpl mapper; private final Subject subject = mock(Subject.class); private final ThreadState subjectThreadState = new SubjectThreadState(subject); + private URI expectedBaseUri; @Before public void init() { - initMocks(this); + expectedBaseUri = baseUri.resolve(RepositoryRootResource.REPOSITORIES_PATH_V2 + "/"); subjectThreadState.bind(); ThreadContext.bind(subject); } @@ -36,11 +44,26 @@ public class FileObjectMapperTest { @Test public void shouldMapAttributesCorrectly() { FileObject fileObject = createFileObject(); - FileObjectDto dto = mapper.map(fileObject); + FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); assertEqualAttributes(fileObject, dto); } + @Test + public void shouldHaveCorrectSelfLink() { + FileObject fileObject = createFileObject(); + FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); + + assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/sources/revision/foo").toString()); + } + + @Test + public void shouldHaveCorrectContentLink() { + FileObject fileObject = createFileObject(); + FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); + + assertThat(dto.getLinks().getLinkBy("content").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/content/revision/foo").toString()); + } private FileObject createFileObject() { FileObject fileObject = new FileObject(); @@ -50,16 +73,18 @@ public class FileObjectMapperTest { fileObject.setDirectory(false); fileObject.setLength(100); fileObject.setLastModified(123L); + + fileObject.setSubRepository(new SubRepository("repo.url")); return fileObject; } - //TODO: subrepo private void assertEqualAttributes(FileObject fileObject, FileObjectDto dto) { - assertEquals(fileObject.getName(), dto.getName()); - assertEquals(fileObject.getDescription(), dto.getDescription()); - assertEquals(fileObject.getPath(), dto.getPath()); - assertEquals(fileObject.isDirectory(), dto.isDirectory()); - assertEquals(fileObject.getLength(), dto.getLength()); - assertEquals((long)fileObject.getLastModified(), dto.getLastModified().toEpochMilli()); + assertThat(dto.getName()).isEqualTo(fileObject.getName()); + assertThat(dto.getDescription()).isEqualTo(fileObject.getDescription()); + assertThat(dto.getPath()).isEqualTo(fileObject.getPath()); + assertThat(dto.isDirectory()).isEqualTo(fileObject.isDirectory()); + assertThat(dto.getLength()).isEqualTo(fileObject.getLength()); + assertThat(dto.getLastModified().toEpochMilli()).isEqualTo((long) fileObject.getLastModified()); + assertThat(dto.getSubRepository().getBrowserUrl()).isEqualTo(fileObject.getSubRepository().getBrowserUrl()); } } From fb28677a61489e90a74942ed3099f4aac2d8a2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 16:05:24 +0200 Subject: [PATCH 039/143] add validation if number is really a number --- scm-ui/public/locales/en/config.json | 6 ++++ scm-ui/src/components/validation.js | 18 +++++++++++ .../config/components/form/GeneralSettings.js | 31 ++++++++++++++++++- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index 2779b3c28c..8a19b01026 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -55,5 +55,11 @@ "login-attempt-limit-timeout": "Login Attempt Limit Timeout", "enabled-xsrf-protection": "Enabled XSRF Protection", "default-namespace-strategy": "Default Namespace Strategy" + }, + "validation": { + "date-format-invalid": "The date format is not valid", + "login-attempt-limit-timeout-invalid": "This is not a number", + "login-attempt-limit-invalid": "This is not a number", + "plugin-url-invalid": "This is not a valid url" } } diff --git a/scm-ui/src/components/validation.js b/scm-ui/src/components/validation.js index fd61da57a5..0afa016a1e 100644 --- a/scm-ui/src/components/validation.js +++ b/scm-ui/src/components/validation.js @@ -10,3 +10,21 @@ const mailRegex = /^[A-z0-9][\w.-]*@[A-z0-9][\w\-.]*\.[A-z0-9][A-z0-9-]+$/; export const isMailValid = (mail: string) => { return mailRegex.test(mail); }; + +export const isNumberValid = (number: string) => { + return !isNaN(number); +}; + +const urlRegex = new RegExp( + "^(https?:\\/\\/)?" + // protocol + "((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|" + // domain name + "((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address + "(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path + "(\\?[;&a-z\\d%_.~+=-]*)?" + // query string + "(\\#[-a-z\\d_]*)?$", + "i" +); // fragment locator + +export const isUrlValid = (url: string) => { + return urlRegex.test(url); +}; diff --git a/scm-ui/src/config/components/form/GeneralSettings.js b/scm-ui/src/config/components/form/GeneralSettings.js index 321f247a2a..cb4e4e72b9 100644 --- a/scm-ui/src/config/components/form/GeneralSettings.js +++ b/scm-ui/src/config/components/form/GeneralSettings.js @@ -2,6 +2,7 @@ import React from "react"; import { translate } from "react-i18next"; import { Checkbox, InputField } from "../../../components/forms/index"; +import * as validator from "../../../components/validation"; type Props = { realmDescription: string, @@ -20,7 +21,23 @@ type Props = { hasUpdatePermission: boolean }; -class GeneralSettings extends React.Component<Props> { +type State = { + loginAttemptLimitError: boolean, + loginAttemptLimitTimeoutError: boolean +}; + +class GeneralSettings extends React.Component<Props, State> { + constructor(props: Props) { + super(props); + + this.state = { + loginAttemptLimitError: false, + loginAttemptLimitTimeoutError: false, + baseUrlError: false, + pluginUrlError: false + }; + } + render() { const { t, @@ -75,12 +92,16 @@ class GeneralSettings extends React.Component<Props> { onChange={this.handleLoginAttemptLimitChange} value={loginAttemptLimit} disabled={!hasUpdatePermission} + validationError={this.state.loginAttemptLimitError} + errorMessage={t("validation.login-attempt-limit-invalid")} /> <InputField label={t("general-settings.login-attempt-limit-timeout")} onChange={this.handleLoginAttemptLimitTimeoutChange} value={loginAttemptLimitTimeout} disabled={!hasUpdatePermission} + validationError={this.state.loginAttemptLimitTimeoutError} + errorMessage={t("validation.login-attempt-limit-timeout-invalid")} /> <Checkbox checked={skipFailedAuthenticators} @@ -126,6 +147,10 @@ class GeneralSettings extends React.Component<Props> { this.props.onChange(true, value, "anonymousAccessEnabled"); }; handleLoginAttemptLimitChange = (value: string) => { + this.setState({ + ...this.state, + loginAttemptLimitError: !validator.isNumberValid(value) + }); this.props.onChange(true, value, "loginAttemptLimit"); }; handleSkipFailedAuthenticatorsChange = (value: string) => { @@ -135,6 +160,10 @@ class GeneralSettings extends React.Component<Props> { this.props.onChange(true, value, "pluginUrl"); }; handleLoginAttemptLimitTimeoutChange = (value: string) => { + this.setState({ + ...this.state, + loginAttemptLimitTimeoutError: !validator.isNumberValid(value) + }); this.props.onChange(true, value, "loginAttemptLimitTimeout"); }; handleEnabledXsrfProtectionChange = (value: boolean) => { From 2198db867fc48ab9a7ade13436b994f1bcd6aa59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Thu, 16 Aug 2018 16:41:17 +0200 Subject: [PATCH 040/143] outsourcing of login attemt variables --- scm-ui/public/locales/en/config.json | 7 +- .../src/config/components/form/ConfigForm.js | 42 ++++--- .../config/components/form/GeneralSettings.js | 103 +++++------------- .../config/components/form/LoginAttempt.js | 90 +++++++++++++++ 4 files changed, 149 insertions(+), 93 deletions(-) create mode 100644 scm-ui/src/config/components/form/LoginAttempt.js diff --git a/scm-ui/public/locales/en/config.json b/scm-ui/public/locales/en/config.json index 8a19b01026..143755a318 100644 --- a/scm-ui/public/locales/en/config.json +++ b/scm-ui/public/locales/en/config.json @@ -43,16 +43,19 @@ "add-user-textfield": "Add user you want to add to admin users here", "add-user-button": "Add Admin User" }, + "login-attempt": { + "name": "Login Attempt", + "login-attempt-limit": "Login Attempt Limit", + "login-attempt-limit-timeout": "Login Attempt Limit Timeout" + }, "general-settings": { "realm-description": "Realm Description", "enable-repository-archive": "Enable Repository Archive", "disable-grouping-grid": "Disable Grouping Grid", "date-format": "Date Format", "anonymous-access-enabled": "Anonymous Access Enabled", - "login-attempt-limit": "Login Attempt Limit", "skip-failed-authenticators": "Skip Failed Authenticators", "plugin-url": "Plugin URL", - "login-attempt-limit-timeout": "Login Attempt Limit Timeout", "enabled-xsrf-protection": "Enabled XSRF Protection", "default-namespace-strategy": "Default Namespace Strategy" }, diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index bc4a94b501..430ad6abb2 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -8,6 +8,7 @@ import GeneralSettings from "./GeneralSettings"; import BaseUrlSettings from "./BaseUrlSettings"; import AdminSettings from "./AdminSettings"; import Notification from "../../../components/Notification"; +import LoginAttempt from "./LoginAttempt"; type Props = { submitForm: Config => void, @@ -19,7 +20,8 @@ type Props = { type State = { config: Config, - showNotification: boolean + showNotification: boolean, + loginAttemptError: boolean }; class ConfigForm extends React.Component<Props, State> { @@ -51,7 +53,8 @@ class ConfigForm extends React.Component<Props, State> { defaultNamespaceStrategy: "", _links: {} }, - showNotification: false + showNotification: false, + loginAttemptError: true }; } @@ -95,10 +98,8 @@ class ConfigForm extends React.Component<Props, State> { disableGroupingGrid={config.disableGroupingGrid} dateFormat={config.dateFormat} anonymousAccessEnabled={config.anonymousAccessEnabled} - loginAttemptLimit={config.loginAttemptLimit} skipFailedAuthenticators={config.skipFailedAuthenticators} pluginUrl={config.pluginUrl} - loginAttemptLimitTimeout={config.loginAttemptLimitTimeout} enabledXsrfProtection={config.enabledXsrfProtection} defaultNamespaceStrategy={config.defaultNamespaceStrategy} onChange={(isValid, changedValue, name) => @@ -107,6 +108,15 @@ class ConfigForm extends React.Component<Props, State> { hasUpdatePermission={configUpdatePermission} /> <hr /> + <LoginAttempt + loginAttemptLimit={config.loginAttemptLimit} + loginAttemptLimitTimeout={config.loginAttemptLimitTimeout} + onChange={(isValid, changedValue, name) => + this.onChange(isValid, changedValue, name) + } + hasUpdatePermission={configUpdatePermission} + /> + <hr /> <BaseUrlSettings baseUrl={config.baseUrl} forceBaseUrl={config.forceBaseUrl} @@ -139,25 +149,27 @@ class ConfigForm extends React.Component<Props, State> { /> <hr /> <SubmitButton - // disabled={!this.isValid()} loading={loading} label={t("config-form.submit")} - disabled={!configUpdatePermission} + disabled={!configUpdatePermission || !this.isValid()} /> </form> ); } + onChange = (isValid: boolean, changedValue: any, name: string) => { - if (isValid) { - this.setState({ - ...this.state, - config: { - ...this.state.config, - [name]: changedValue - } - }); - } + this.setState({ + ...this.state, + config: { + ...this.state.config, + [name]: changedValue + } + }); + }; + + isValid = () => { + return this.state.loginAttemptError; }; onClose = () => { diff --git a/scm-ui/src/config/components/form/GeneralSettings.js b/scm-ui/src/config/components/form/GeneralSettings.js index cb4e4e72b9..5ae999509e 100644 --- a/scm-ui/src/config/components/form/GeneralSettings.js +++ b/scm-ui/src/config/components/form/GeneralSettings.js @@ -2,7 +2,6 @@ import React from "react"; import { translate } from "react-i18next"; import { Checkbox, InputField } from "../../../components/forms/index"; -import * as validator from "../../../components/validation"; type Props = { realmDescription: string, @@ -10,10 +9,8 @@ type Props = { disableGroupingGrid: boolean, dateFormat: string, anonymousAccessEnabled: boolean, - loginAttemptLimit: number, skipFailedAuthenticators: boolean, pluginUrl: string, - loginAttemptLimitTimeout: number, enabledXsrfProtection: boolean, defaultNamespaceStrategy: string, t: string => string, @@ -21,23 +18,7 @@ type Props = { hasUpdatePermission: boolean }; -type State = { - loginAttemptLimitError: boolean, - loginAttemptLimitTimeoutError: boolean -}; - -class GeneralSettings extends React.Component<Props, State> { - constructor(props: Props) { - super(props); - - this.state = { - loginAttemptLimitError: false, - loginAttemptLimitTimeoutError: false, - baseUrlError: false, - pluginUrlError: false - }; - } - +class GeneralSettings extends React.Component<Props> { render() { const { t, @@ -46,10 +27,8 @@ class GeneralSettings extends React.Component<Props, State> { disableGroupingGrid, dateFormat, anonymousAccessEnabled, - loginAttemptLimit, skipFailedAuthenticators, pluginUrl, - loginAttemptLimitTimeout, enabledXsrfProtection, defaultNamespaceStrategy, hasUpdatePermission @@ -63,6 +42,30 @@ class GeneralSettings extends React.Component<Props, State> { value={realmDescription} disabled={!hasUpdatePermission} /> + <InputField + label={t("general-settings.date-format")} + onChange={this.handleDateFormatChange} + value={dateFormat} + disabled={!hasUpdatePermission} + /> + <InputField + label={t("general-settings.plugin-url")} + onChange={this.handlePluginUrlChange} + value={pluginUrl} + disabled={!hasUpdatePermission} + /> + <InputField + label={t("general-settings.default-namespace-strategy")} + onChange={this.handleDefaultNamespaceStrategyChange} + value={defaultNamespaceStrategy} + disabled={!hasUpdatePermission} + /> + <Checkbox + checked={enabledXsrfProtection} + label={t("general-settings.enabled-xsrf-protection")} + onChange={this.handleEnabledXsrfProtectionChange} + disabled={!hasUpdatePermission} + /> <Checkbox checked={enableRepositoryArchive} label={t("general-settings.enable-repository-archive")} @@ -75,58 +78,18 @@ class GeneralSettings extends React.Component<Props, State> { onChange={this.handleDisableGroupingGridChange} disabled={!hasUpdatePermission} /> - <InputField - label={t("general-settings.date-format")} - onChange={this.handleDateFormatChange} - value={dateFormat} - disabled={!hasUpdatePermission} - /> <Checkbox checked={anonymousAccessEnabled} label={t("general-settings.anonymous-access-enabled")} onChange={this.handleAnonymousAccessEnabledChange} disabled={!hasUpdatePermission} /> - <InputField - label={t("general-settings.login-attempt-limit")} - onChange={this.handleLoginAttemptLimitChange} - value={loginAttemptLimit} - disabled={!hasUpdatePermission} - validationError={this.state.loginAttemptLimitError} - errorMessage={t("validation.login-attempt-limit-invalid")} - /> - <InputField - label={t("general-settings.login-attempt-limit-timeout")} - onChange={this.handleLoginAttemptLimitTimeoutChange} - value={loginAttemptLimitTimeout} - disabled={!hasUpdatePermission} - validationError={this.state.loginAttemptLimitTimeoutError} - errorMessage={t("validation.login-attempt-limit-timeout-invalid")} - /> <Checkbox checked={skipFailedAuthenticators} label={t("general-settings.skip-failed-authenticators")} onChange={this.handleSkipFailedAuthenticatorsChange} disabled={!hasUpdatePermission} /> - <InputField - label={t("general-settings.plugin-url")} - onChange={this.handlePluginUrlChange} - value={pluginUrl} - disabled={!hasUpdatePermission} - /> - <Checkbox - checked={enabledXsrfProtection} - label={t("general-settings.enabled-xsrf-protection")} - onChange={this.handleEnabledXsrfProtectionChange} - disabled={!hasUpdatePermission} - /> - <InputField - label={t("general-settings.default-namespace-strategy")} - onChange={this.handleDefaultNamespaceStrategyChange} - value={defaultNamespaceStrategy} - disabled={!hasUpdatePermission} - /> </div> ); } @@ -146,26 +109,14 @@ class GeneralSettings extends React.Component<Props, State> { handleAnonymousAccessEnabledChange = (value: string) => { this.props.onChange(true, value, "anonymousAccessEnabled"); }; - handleLoginAttemptLimitChange = (value: string) => { - this.setState({ - ...this.state, - loginAttemptLimitError: !validator.isNumberValid(value) - }); - this.props.onChange(true, value, "loginAttemptLimit"); - }; + handleSkipFailedAuthenticatorsChange = (value: string) => { this.props.onChange(true, value, "skipFailedAuthenticators"); }; handlePluginUrlChange = (value: string) => { this.props.onChange(true, value, "pluginUrl"); }; - handleLoginAttemptLimitTimeoutChange = (value: string) => { - this.setState({ - ...this.state, - loginAttemptLimitTimeoutError: !validator.isNumberValid(value) - }); - this.props.onChange(true, value, "loginAttemptLimitTimeout"); - }; + handleEnabledXsrfProtectionChange = (value: boolean) => { this.props.onChange(true, value, "enabledXsrfProtection"); }; diff --git a/scm-ui/src/config/components/form/LoginAttempt.js b/scm-ui/src/config/components/form/LoginAttempt.js new file mode 100644 index 0000000000..489828fd0b --- /dev/null +++ b/scm-ui/src/config/components/form/LoginAttempt.js @@ -0,0 +1,90 @@ +// @flow +import React from "react"; +import { translate } from "react-i18next"; +import { InputField } from "../../../components/forms/index"; +import Subtitle from "../../../components/layout/Subtitle"; +import * as validator from "../../../components/validation"; + +type Props = { + loginAttemptLimit: number, + loginAttemptLimitTimeout: number, + t: string => string, + onChange: (boolean, any, string) => void, + hasUpdatePermission: boolean +}; + +type State = { + loginAttemptLimitError: boolean, + loginAttemptLimitTimeoutError: boolean +}; + +class LoginAttempt extends React.Component<Props, State> { + constructor(props: Props) { + super(props); + + this.state = { + loginAttemptLimitError: false, + loginAttemptLimitTimeoutError: false + }; + } + render() { + const { + t, + loginAttemptLimit, + loginAttemptLimitTimeout, + hasUpdatePermission + } = this.props; + + return ( + <div> + <Subtitle subtitle={t("login-attempt.name")} /> + <InputField + label={t("login-attempt.login-attempt-limit")} + onChange={this.handleLoginAttemptLimitChange} + value={loginAttemptLimit} + disabled={!hasUpdatePermission} + validationError={this.state.loginAttemptLimitError} + errorMessage={t("validation.login-attempt-limit-invalid")} + /> + <InputField + label={t("login-attempt.login-attempt-limit-timeout")} + onChange={this.handleLoginAttemptLimitTimeoutChange} + value={loginAttemptLimitTimeout} + disabled={!hasUpdatePermission} + validationError={this.state.loginAttemptLimitTimeoutError} + errorMessage={t("validation.login-attempt-limit-timeout-invalid")} + /> + </div> + ); + } + + //TODO: set Error in ConfigForm to disable Submit Button! + handleLoginAttemptLimitChange = (value: string) => { + this.setState({ + ...this.state, + loginAttemptLimitError: !validator.isNumberValid(value) + }); + this.props.onChange(this.loginAttemptIsValid(), value, "loginAttemptLimit"); + }; + + handleLoginAttemptLimitTimeoutChange = (value: string) => { + this.setState({ + ...this.state, + loginAttemptLimitTimeoutError: !validator.isNumberValid(value) + }); + this.props.onChange( + this.loginAttemptIsValid(), + value, + "loginAttemptLimitTimeout" + ); + }; + + loginAttemptIsValid = () => { + return ( + this.state.loginAttemptLimitError || + this.state.loginAttemptLimitTimeoutError + ); + }; +} + +export default translate("config")(LoginAttempt); From 3822c4b51cda6cf6d08c1b292dffda2b5bb91226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Thu, 16 Aug 2018 16:53:20 +0200 Subject: [PATCH 041/143] Include resteasy javaee 7 validation with hibernate --- scm-webapp/pom.xml | 16 ++++- .../scm/api/v2/ValidationExceptionMapper.java | 58 +++++++++++++++++++ .../RepositoryCollectionResource.java | 17 +++++- .../scm/api/v2/resources/RepositoryDto.java | 2 + 4 files changed, 89 insertions(+), 4 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index 965bddf2b0..6d3b94412d 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -99,6 +99,16 @@ <artifactId>jackson-datatype-jsr310</artifactId> <version>${jackson.version}</version> </dependency> + <dependency> + <groupId>javax</groupId> + <artifactId>javaee-api</artifactId> + <version>7.0</version> + </dependency> + <dependency> + <groupId>org.hibernate.validator</groupId> + <artifactId>hibernate-validator</artifactId> + <version>6.0.12.Final</version> + </dependency> <!-- rest api --> @@ -131,7 +141,11 @@ <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-servlet-initializer</artifactId> </dependency> - + <dependency> + <groupId>org.jboss.resteasy</groupId> + <artifactId>resteasy-validator-provider-11</artifactId> + <version>${resteasy.version}</version> + </dependency> <!-- injection --> <dependency> diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java new file mode 100644 index 0000000000..53681bc9af --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java @@ -0,0 +1,58 @@ +package sonia.scm.api.v2; + +import lombok.Getter; +import org.jboss.resteasy.api.validation.ResteasyViolationException; + +import javax.validation.ConstraintViolation; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import javax.ws.rs.ext.ExceptionMapper; +import javax.ws.rs.ext.Provider; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlRootElement; +import java.util.List; +import java.util.stream.Collectors; + +@Provider +public class ValidationExceptionMapper implements ExceptionMapper<ResteasyViolationException> { + + @Override + public Response toResponse(ResteasyViolationException exception) { + + List<ConstraintViolationBean> violations = + exception.getConstraintViolations() + .stream() + .map(ConstraintViolationBean::new) + .collect(Collectors.toList()); + + return Response + .status(Response.Status.BAD_REQUEST) + .type(MediaType.APPLICATION_JSON_TYPE) + .entity(new ValidationError(violations)) + .build(); + } + + @Getter + public static class ValidationError { + @XmlElement(name = "violation") + @XmlElementWrapper(name = "violations") + private List<ConstraintViolationBean> violoations; + + public ValidationError(List<ConstraintViolationBean> violoations) { + this.violoations = violoations; + } + } + + @XmlRootElement(name = "violation") + @Getter + public static class ConstraintViolationBean { + private String path; + private String message; + + public ConstraintViolationBean(ConstraintViolation<?> violation) { + message = violation.getMessage(); + path = violation.getPropertyPath().toString(); + } + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java index c6d54e7f4e..9fef539756 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java @@ -1,13 +1,24 @@ package sonia.scm.api.v2.resources; -import com.webcohesion.enunciate.metadata.rs.*; +import com.webcohesion.enunciate.metadata.rs.ResponseCode; +import com.webcohesion.enunciate.metadata.rs.ResponseHeader; +import com.webcohesion.enunciate.metadata.rs.ResponseHeaders; +import com.webcohesion.enunciate.metadata.rs.StatusCodes; +import com.webcohesion.enunciate.metadata.rs.TypeHint; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.validation.Valid; +import javax.ws.rs.Consumes; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; public class RepositoryCollectionResource { @@ -76,7 +87,7 @@ public class RepositoryCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created repository")) - public Response create(RepositoryDto repositoryDto) throws RepositoryException { + public Response create(@Valid RepositoryDto repositoryDto) throws RepositoryException { return adapter.create(repositoryDto, () -> dtoToRepositoryMapper.map(repositoryDto, null), repository -> resourceLinks.repository().self(repository.getNamespace(), repository.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java index bcc8e16ebb..94fdb68cd6 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java @@ -6,6 +6,7 @@ import de.otto.edison.hal.Links; import lombok.Getter; import lombok.Setter; +import javax.validation.constraints.Pattern; import java.time.Instant; import java.util.List; import java.util.Map; @@ -20,6 +21,7 @@ public class RepositoryDto extends HalRepresentation { @JsonInclude(JsonInclude.Include.NON_NULL) private Instant lastModified; private String namespace; + @Pattern(regexp = "[\\w-]+", message = "The name must be a valid identifyer") private String name; private boolean archived = false; private String type; From c4a7aafb7c355d8f676afff5b7f904a6175fba02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Thu, 16 Aug 2018 16:55:44 +0200 Subject: [PATCH 042/143] Fix logging text --- .../sonia/scm/repository/DefaultRepositoryManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java b/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java index 2eb9889434..b9c7a34e0f 100644 --- a/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java +++ b/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java @@ -143,7 +143,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { repository.setId(keyGenerator.createKey()); repository.setNamespace(namespaceStrategy.createNamespace(repository)); - logger.info("create repository {} of type {} in namespace {}", repository.getName(), repository.getType(), repository.getNamespace()); + logger.info("create repository {}/{} of type {} in namespace {}", repository.getNamespace(), repository.getName(), repository.getType(), repository.getNamespace()); return managerDaoAdapter.create( repository, @@ -161,7 +161,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { @Override public void delete(Repository repository) throws RepositoryException { - logger.info("delete repository {} of type {}", repository.getName(), repository.getType()); + logger.info("delete repository {}/{} of type {}", repository.getNamespace(), repository.getName(), repository.getType()); managerDaoAdapter.delete( repository, () -> RepositoryPermissions.delete(repository), @@ -190,7 +190,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { @Override public void modify(Repository repository) throws RepositoryException { - logger.info("modify repository {} of type {}", repository.getName(), repository.getType()); + logger.info("modify repository {}/{} of type {}", repository.getNamespace(), repository.getName(), repository.getType()); managerDaoAdapter.modify( repository, @@ -403,7 +403,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { if (handlerMap.containsKey(type.getName())) { throw new ConfigurationException( - type.getName().concat("allready registered")); + type.getName().concat("already registered")); } if (logger.isInfoEnabled()) { From 8ee550e8e7cfe19a88708198056e6a95b89cbd10 Mon Sep 17 00:00:00 2001 From: Philipp Czora <philipp.czora@cloudogu.com> Date: Thu, 16 Aug 2018 17:32:38 +0200 Subject: [PATCH 043/143] Fixed wildcard import --- .../sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java index 9cb8b21248..7ab3ef25a8 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchToBranchDtoMapper.java @@ -1,7 +1,11 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.Links; -import org.mapstruct.*; +import org.mapstruct.AfterMapping; +import org.mapstruct.Context; +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; +import org.mapstruct.MappingTarget; import sonia.scm.repository.Branch; import sonia.scm.repository.NamespaceAndName; From 6a7987481abe7449a5e5ae1c8fe6ff01bee90d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Fri, 17 Aug 2018 09:33:45 +0200 Subject: [PATCH 044/143] Peer review --- .../sonia/scm/it/RepositoryAccessITCase.java | 32 +++++++++++++++++++ .../java/sonia/scm/repository/SvnUtil.java | 12 +++---- .../api/v2/resources/BrowserResultDto.java | 2 ++ .../api/v2/resources/BrowserResultMapper.java | 6 +++- .../api/v2/resources/FileObjectMapper.java | 11 ++++--- .../scm/api/v2/resources/ResourceLinks.java | 10 ++++-- .../api/v2/resources/SourceRootResource.java | 22 +++++++------ .../v2/resources/FileObjectMapperTest.java | 6 ++-- 8 files changed, 73 insertions(+), 28 deletions(-) diff --git a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java index a461e40dea..1a132711c8 100644 --- a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java +++ b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java @@ -11,6 +11,8 @@ import org.junit.runners.Parameterized; import java.io.IOException; import java.util.Collection; +import static java.lang.Thread.sleep; +import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertNotNull; import static org.junit.Assume.assumeFalse; import static sonia.scm.it.RestUtil.given; @@ -64,4 +66,34 @@ public class RepositoryAccessITCase { assertNotNull(branchName); } + + @Test + public void shouldReadContent() throws IOException, InterruptedException { + repositoryUtil.createAndCommitFile("a.txt", "a"); + + sleep(1000); + + String sourcesUrl = given() + .when() + .get(TestData.getDefaultRepositoryUrl(repositoryType)) + .then() + .statusCode(HttpStatus.SC_OK) + .extract() + .path("_links.sources.href"); + + String contentUrl = given() + .when() + .get(sourcesUrl) + .then() + .statusCode(HttpStatus.SC_OK) + .extract() + .path("files[0]._links.content.href"); + + given() + .when() + .get(contentUrl) + .then() + .statusCode(HttpStatus.SC_OK) + .body(equalTo("a")); + } } diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java index 6cc5eb5da9..63fabaf4e9 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java @@ -38,10 +38,8 @@ package sonia.scm.repository; import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.google.common.io.Closeables; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNErrorCode; import org.tmatesoft.svn.core.SVNLogEntry; import org.tmatesoft.svn.core.SVNLogEntryPath; @@ -52,20 +50,17 @@ import org.tmatesoft.svn.core.internal.util.SVNXMLUtil; import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.wc.SVNClientManager; import org.tmatesoft.svn.core.wc.admin.SVNChangeEntry; - import sonia.scm.util.HttpUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; - import java.util.List; import java.util.Map; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -366,6 +361,7 @@ public final class SvnUtil public static long getRevisionNumber(String revision) throws RepositoryException { + // REVIEW Bei SVN wird ohne Revision die -1 genommen, was zu einem Fehler führt long revisionNumber = -1; if (Util.isNotEmpty(revision)) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java index 12c227b65c..b8ffd7ff26 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultDto.java @@ -16,6 +16,7 @@ public class BrowserResultDto extends HalRepresentation implements Iterable<File private String revision; private String tag; private String branch; + // REVIEW files nicht embedded? private List<FileObjectDto> files; @Override @@ -24,6 +25,7 @@ public class BrowserResultDto extends HalRepresentation implements Iterable<File return super.add(links); } + // REVIEW return null? @Override public Iterator<FileObjectDto> iterator() { Iterator<FileObjectDto> it = null; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java index 6ab054bd74..79f049a5be 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java @@ -39,7 +39,11 @@ public class BrowserResultMapper { } private void addLinks(BrowserResult browserResult, BrowserResultDto dto, NamespaceAndName namespaceAndName) { - dto.add(Links.linkingTo().self(resourceLinks.source().self(namespaceAndName.getNamespace(), namespaceAndName.getName(), browserResult.getRevision())).build()); + if (browserResult.getRevision() == null) { + dto.add(Links.linkingTo().self(resourceLinks.source().selfWithoutRevision(namespaceAndName.getNamespace(), namespaceAndName.getName())).build()); + } else { + dto.add(Links.linkingTo().self(resourceLinks.source().self(namespaceAndName.getNamespace(), namespaceAndName.getName(), browserResult.getRevision())).build()); + } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 4363a8a9b1..ebabf79342 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -25,9 +25,12 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { - dto.add(Links.linkingTo() - .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName())) - .single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getName()))) - .build()); + Links.Builder links = Links.linkingTo() + .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getPath())); + if (!dto.isDirectory()) { + links.single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getPath()))); + } + + dto.add(links.build()); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java index c4aa579c80..0d88995281 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java @@ -291,11 +291,11 @@ class ResourceLinks { } String self(String namespace, String name, String revision) { - return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name, revision).method("sources").parameters().method("getAll").parameters("").href(); + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAll").parameters(revision).href(); } String selfWithoutRevision(String namespace, String name) { - return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAll").parameters("").href(); + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("getAllWithoutRevision").parameters().href(); } public String source(String namespace, String name, String revision) { @@ -303,7 +303,11 @@ class ResourceLinks { } public String sourceWithPath(String namespace, String name, String revision, String path) { - return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision, path).href(); + if (revision == null) { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(null, path).href(); + } else { + return sourceLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("sources").parameters().method("get").parameters(revision, path).href(); + } } public String content(String namespace, String name, String revision, String path) { diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 9f2709cb43..3e0ab31ef7 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -31,7 +31,14 @@ public class SourceRootResource { @GET @Produces(VndMediaType.SOURCE) - @Path("{revision : (\\w+)?}") + @Path("") + public Response getAllWithoutRevision(@PathParam("namespace") String namespace, @PathParam("name") String name) { + return getSource(namespace, name, "/", null); + } + + @GET + @Produces(VndMediaType.SOURCE) + @Path("{revision}") public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision) { return getSource(namespace, name, "/", revision); } @@ -44,8 +51,6 @@ public class SourceRootResource { } private Response getSource(String namespace, String repoName, String path, String revision) { - BrowserResult browserResult; - Response response; NamespaceAndName namespaceAndName = new NamespaceAndName(namespace, repoName); try (RepositoryService repositoryService = serviceFactory.create(namespaceAndName)) { BrowseCommandBuilder browseCommand = repositoryService.getBrowseCommand(); @@ -53,19 +58,18 @@ public class SourceRootResource { if (revision != null && !revision.isEmpty()) { browseCommand.setRevision(revision); } - browserResult = browseCommand.getBrowserResult(); + BrowserResult browserResult = browseCommand.getBrowserResult(); if (browserResult != null) { - response = Response.ok(browserResultMapper.map(browserResult, namespaceAndName)).build(); + return Response.ok(browserResultMapper.map(browserResult, namespaceAndName)).build(); } else { - response = Response.status(Response.Status.NOT_FOUND).build(); + return Response.status(Response.Status.NOT_FOUND).build(); } } catch (RepositoryNotFoundException e) { - response = Response.status(Response.Status.NOT_FOUND).build(); + return Response.status(Response.Status.NOT_FOUND).build(); } catch (RepositoryException | IOException e) { - response = Response.status(Response.Status.INTERNAL_SERVER_ERROR).build(); + return Response.status(Response.Status.INTERNAL_SERVER_ERROR).build(); } - return response; } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java index 63d1050797..2feb5bc8e1 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java @@ -54,7 +54,7 @@ public class FileObjectMapperTest { FileObject fileObject = createFileObject(); FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); - assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/sources/revision/foo").toString()); + assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/sources/revision/foo%2Fbar").toString()); } @Test @@ -62,14 +62,14 @@ public class FileObjectMapperTest { FileObject fileObject = createFileObject(); FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); - assertThat(dto.getLinks().getLinkBy("content").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/content/revision/foo").toString()); + assertThat(dto.getLinks().getLinkBy("content").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/content/revision/foo%2Fbar").toString()); } private FileObject createFileObject() { FileObject fileObject = new FileObject(); fileObject.setName("foo"); fileObject.setDescription("bar"); - fileObject.setPath("/foo/bar"); + fileObject.setPath("foo/bar"); fileObject.setDirectory(false); fileObject.setLength(100); fileObject.setLastModified(123L); From bb9a0657a52b1137618af0a68cca4f3a0b7f4fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Mon, 20 Aug 2018 10:16:21 +0200 Subject: [PATCH 045/143] Change user constraints --- .../main/java/sonia/scm/api/v2/resources/RepositoryDto.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java index 94fdb68cd6..cf343f8f77 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java @@ -5,6 +5,7 @@ import de.otto.edison.hal.HalRepresentation; import de.otto.edison.hal.Links; import lombok.Getter; import lombok.Setter; +import org.hibernate.validator.constraints.Email; import javax.validation.constraints.Pattern; import java.time.Instant; @@ -14,6 +15,7 @@ import java.util.Map; @Getter @Setter public class RepositoryDto extends HalRepresentation { + @Email private String contact; private Instant creationDate; private String description; @@ -21,7 +23,7 @@ public class RepositoryDto extends HalRepresentation { @JsonInclude(JsonInclude.Include.NON_NULL) private Instant lastModified; private String namespace; - @Pattern(regexp = "[\\w-]+", message = "The name must be a valid identifyer") + @Pattern(regexp = "[\\w-]+", message = "The name can only contain numbers, letters, underscore and hyphen") private String name; private boolean archived = false; private String type; From a0f74e3329043523f928e15cb59caef9a94948d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Tue, 21 Aug 2018 07:53:33 +0200 Subject: [PATCH 046/143] Replace model object exception with generic ones and migrate guice --- pom.xml | 38 ++-- .../sonia/scm/AlreadyExistsException.java | 4 + .../java/sonia/scm/BasicPropertiesAware.java | 11 +- .../scm/ConcurrentModificationException.java | 4 + scm-core/src/main/java/sonia/scm/Handler.java | 9 +- .../src/main/java/sonia/scm/HandlerBase.java | 11 +- scm-core/src/main/java/sonia/scm/Manager.java | 9 +- .../main/java/sonia/scm/ManagerDecorator.java | 64 +----- .../java/sonia/scm/NotFoundException.java | 10 + .../src/main/java/sonia/scm/TypeManager.java | 8 +- .../java/sonia/scm/cache/CacheStatistics.java | 3 +- .../sonia/scm/event/AbstractHandlerEvent.java | 4 +- .../src/main/java/sonia/scm/group/Group.java | 3 +- .../group/GroupAlreadyExistsException.java | 50 ----- .../java/sonia/scm/group/GroupException.java | 91 -------- .../java/sonia/scm/group/GroupManager.java | 6 +- .../scm/group/GroupManagerDecorator.java | 6 +- .../main/java/sonia/scm/group/GroupNames.java | 5 +- .../scm/group/GroupNotFoundException.java | 58 ----- .../java/sonia/scm/i18n/I18nMessages.java | 7 +- .../java/sonia/scm/plugin/ClassElement.java | 7 +- .../scm/plugin/ExtensionPointElement.java | 7 +- .../main/java/sonia/scm/plugin/Plugin.java | 10 +- .../sonia/scm/plugin/PluginCondition.java | 18 +- .../sonia/scm/plugin/PluginInformation.java | 17 +- .../sonia/scm/plugin/PluginRepository.java | 7 +- .../sonia/scm/plugin/PluginResources.java | 10 +- .../sonia/scm/plugin/SubscriberElement.java | 7 +- .../scm/repository/AbstactImportHandler.java | 42 +--- .../AbstractSimpleRepositoryHandler.java | 32 ++- .../java/sonia/scm/repository/BlameLine.java | 7 +- .../sonia/scm/repository/BlameResult.java | 15 +- .../java/sonia/scm/repository/Branch.java | 10 +- .../repository/BranchNotFoundException.java | 9 + .../java/sonia/scm/repository/Branches.java | 11 +- .../sonia/scm/repository/BrowserResult.java | 15 +- .../java/sonia/scm/repository/Changeset.java | 15 +- .../scm/repository/ChangesetPagingResult.java | 15 +- .../java/sonia/scm/repository/FileObject.java | 11 +- .../scm/repository/HealthCheckFailure.java | 7 +- .../scm/repository/HealthCheckResult.java | 7 +- .../sonia/scm/repository/ImportHandler.java | 5 +- .../sonia/scm/repository/ImportResult.java | 13 +- .../InternalRepositoryException.java | 15 ++ .../sonia/scm/repository/Modifications.java | 11 +- .../scm/repository/PathNotFoundException.java | 5 +- .../java/sonia/scm/repository/Permission.java | 13 +- .../java/sonia/scm/repository/Person.java | 8 +- .../java/sonia/scm/repository/Repository.java | 3 +- .../RepositoryAlreadyExistsException.java | 68 ------ .../scm/repository/RepositoryException.java | 95 -------- .../scm/repository/RepositoryHandler.java | 2 +- .../RepositoryHandlerNotFoundException.java | 64 ------ .../RepositoryIsNotArchivedException.java | 2 +- .../scm/repository/RepositoryManager.java | 7 +- .../RepositoryManagerDecorator.java | 7 +- .../RepositoryNotFoundException.java | 8 +- .../repository/RepositoryRequestListener.java | 13 +- .../repository/RevisionNotFoundException.java | 6 +- .../sonia/scm/repository/SubRepository.java | 10 +- .../main/java/sonia/scm/repository/Tag.java | 7 +- .../main/java/sonia/scm/repository/Tags.java | 12 +- ...stractBundleOrUnbundleCommandResponse.java | 4 +- .../repository/api/BlameCommandBuilder.java | 10 +- .../api/BranchesCommandBuilder.java | 12 +- .../repository/api/BrowseCommandBuilder.java | 16 +- .../repository/api/BundleCommandBuilder.java | 23 +- .../scm/repository/api/CatCommandBuilder.java | 15 +- .../repository/api/DiffCommandBuilder.java | 27 +-- .../api/IncomingCommandBuilder.java | 11 +- .../scm/repository/api/LogCommandBuilder.java | 18 +- .../api/OutgoingCommandBuilder.java | 8 +- .../repository/api/PullCommandBuilder.java | 19 +- .../repository/api/PushCommandBuilder.java | 17 +- .../api/RepositoryServiceFactory.java | 5 +- .../repository/api/TagsCommandBuilder.java | 18 +- .../api/UnbundleCommandBuilder.java | 24 +-- .../scm/repository/spi/BlameCommand.java | 9 +- .../scm/repository/spi/BranchesCommand.java | 9 +- .../scm/repository/spi/BrowseCommand.java | 11 +- .../repository/spi/BrowseCommandRequest.java | 4 +- .../scm/repository/spi/BundleCommand.java | 8 +- .../sonia/scm/repository/spi/CatCommand.java | 7 +- .../sonia/scm/repository/spi/DiffCommand.java | 10 +- .../spi/FileBaseCommandRequest.java | 7 +- .../scm/repository/spi/HookEventFacade.java | 10 +- .../scm/repository/spi/IncomingCommand.java | 20 +- .../sonia/scm/repository/spi/LogCommand.java | 37 +--- .../scm/repository/spi/LogCommandRequest.java | 7 +- .../scm/repository/spi/OutgoingCommand.java | 10 +- .../spi/PagedRemoteCommandRequest.java | 4 +- .../sonia/scm/repository/spi/PullCommand.java | 9 +- .../sonia/scm/repository/spi/PushCommand.java | 9 +- .../repository/spi/RemoteCommandRequest.java | 8 +- .../sonia/scm/repository/spi/TagsCommand.java | 9 +- .../scm/repository/spi/UnbundleCommand.java | 8 +- .../scm/security/AssignedPermission.java | 10 +- .../sonia/scm/security/DAORealmHelper.java | 7 +- .../scm/security/PermissionDescriptor.java | 10 +- .../scm/security/RepositoryPermission.java | 9 +- .../StoredAssignedPermissionEvent.java | 10 +- .../scm/security/SyncingRealmHelper.java | 42 ++-- .../java/sonia/scm/template/Viewable.java | 4 +- .../src/main/java/sonia/scm/user/User.java | 14 +- .../scm/user/UserAlreadyExistsException.java | 51 ----- .../java/sonia/scm/user/UserException.java | 87 -------- .../main/java/sonia/scm/user/UserManager.java | 2 +- .../sonia/scm/user/UserManagerDecorator.java | 6 +- .../sonia/scm/user/UserNotFoundException.java | 57 ----- .../main/java/sonia/scm/util/HttpUtil.java | 4 +- .../main/java/sonia/scm/version/Version.java | 4 +- .../main/java/sonia/scm/web/UserAgent.java | 9 +- .../scm/web/proxy/ProxyConfiguration.java | 15 +- .../test/java/sonia/scm/io/DeepCopyTest.java | 10 +- .../scm/security/SyncingRealmHelperTest.java | 62 ++---- .../scm/repository/GitRepositoryHandler.java | 32 +-- .../java/sonia/scm/repository/GitUtil.java | 32 +-- .../AbstractGitIncomingOutgoingCommand.java | 50 +---- .../spi/AbstractGitPushOrPullCommand.java | 28 +-- .../scm/repository/spi/GitBlameCommand.java | 36 +--- .../repository/spi/GitBranchesCommand.java | 23 +- .../scm/repository/spi/GitBrowseCommand.java | 63 +----- .../scm/repository/spi/GitCatCommand.java | 11 +- .../repository/spi/GitIncomingCommand.java | 22 +- .../scm/repository/spi/GitLogCommand.java | 14 +- .../repository/spi/GitOutgoingCommand.java | 8 +- .../scm/repository/spi/GitPullCommand.java | 56 +---- .../scm/repository/spi/GitPushCommand.java | 8 +- .../scm/repository/spi/GitTagsCommand.java | 23 +- .../sonia/scm/web/GitRepositoryViewer.java | 27 +-- .../java/sonia/scm/web/ScmGitServlet.java | 3 +- .../repository/spi/GitBlameCommandTest.java | 21 +- .../repository/spi/GitBrowseCommandTest.java | 52 ++--- .../scm/repository/spi/GitCatCommandTest.java | 15 +- .../spi/GitIncomingCommandTest.java | 22 +- .../scm/repository/spi/GitLogCommandTest.java | 35 +-- .../spi/GitOutgoingCommandTest.java | 13 +- .../repository/spi/GitPushCommandTest.java | 15 +- .../scm/repository/AbstractHgHandler.java | 43 +--- .../sonia/scm/repository/HgHookManager.java | 18 +- .../sonia/scm/repository/HgImportHandler.java | 19 +- .../scm/repository/HgRepositoryHandler.java | 15 +- .../java/sonia/scm/repository/HgVersion.java | 7 +- .../scm/repository/HgVersionHandler.java | 21 +- .../scm/repository/spi/HgBlameCommand.java | 22 +- .../scm/repository/spi/HgBranchesCommand.java | 21 +- .../scm/repository/spi/HgBrowseCommand.java | 19 +- .../scm/repository/spi/HgCatCommand.java | 8 +- .../scm/repository/spi/HgDiffCommand.java | 18 +- .../scm/repository/spi/HgIncomingCommand.java | 25 +-- .../scm/repository/spi/HgLogCommand.java | 38 +--- .../scm/repository/spi/HgOutgoingCommand.java | 21 +- .../scm/repository/spi/HgPullCommand.java | 24 +-- .../scm/repository/spi/HgPushCommand.java | 24 +-- .../repository/spi/HgBlameCommandTest.java | 32 +-- .../repository/spi/HgBrowseCommandTest.java | 70 ++---- .../scm/repository/spi/HgCatCommandTest.java | 21 +- .../repository/spi/HgIncomingCommandTest.java | 41 +--- .../scm/repository/spi/HgLogCommandTest.java | 73 ++----- .../repository/spi/HgOutgoingCommandTest.java | 42 +--- .../scm/repository/SvnRepositoryHandler.java | 69 +----- .../java/sonia/scm/repository/SvnUtil.java | 29 +-- .../scm/repository/spi/SvnBlameCommand.java | 38 +--- .../scm/repository/spi/SvnBrowseCommand.java | 41 +--- .../scm/repository/spi/SvnBundleCommand.java | 46 +--- .../scm/repository/spi/SvnCatCommand.java | 65 +----- .../scm/repository/spi/SvnDiffCommand.java | 40 +--- .../scm/repository/spi/SvnLogCommand.java | 77 +------ .../repository/spi/SvnBlameCommandTest.java | 28 +-- .../repository/spi/SvnBrowseCommandTest.java | 58 ++--- .../repository/spi/SvnBundleCommandTest.java | 26 +-- .../scm/repository/spi/SvnCatCommandTest.java | 13 +- .../scm/repository/spi/SvnLogCommandTest.java | 70 +----- .../spi/SvnUnbundleCommandTest.java | 37 +--- .../main/java/sonia/scm/ManagerTestBase.java | 10 +- .../repository/DummyRepositoryHandler.java | 5 +- .../SimpleRepositoryHandlerTestBase.java | 9 +- .../repository/client/spi/CommitRequest.java | 4 +- .../scm/repository/client/spi/TagRequest.java | 4 +- .../sonia/scm/user/UserManagerTestBase.java | 204 +++--------------- scm-webapp/pom.xml | 5 - .../main/java/sonia/scm/ClassOverride.java | 7 +- .../java/sonia/scm/ManagerDaoAdapter.java | 26 +-- ...java => AlreadyExistsExceptionMapper.java} | 6 +- .../GroupAlreadyExistsExceptionMapper.java | 16 -- .../java/sonia/scm/api/rest/Permission.java | 10 +- ...epositoryAlreadyExistsExceptionMapper.java | 16 -- .../scm/api/rest/RestExceptionResult.java | 7 +- .../resources/AbstractManagerResource.java | 22 +- .../resources/BrowserStreamingOutput.java | 15 +- .../resources/ChangePasswordResource.java | 22 +- .../rest/resources/DiffStreamingOutput.java | 43 ++-- .../scm/api/rest/resources/GroupResource.java | 31 +-- .../resources/RepositoryImportResource.java | 66 +++--- .../rest/resources/RepositoryResource.java | 91 +++++--- .../scm/api/rest/resources/UserResource.java | 20 +- .../api/v2/resources/BranchRootResource.java | 5 +- .../CollectionResourceManagerAdapter.java | 9 +- .../scm/api/v2/resources/ContentResource.java | 11 +- .../v2/resources/GroupCollectionResource.java | 21 +- .../scm/api/v2/resources/GroupResource.java | 11 +- .../resources/IdResourceManagerAdapter.java | 15 +- .../scm/api/v2/resources/MeResource.java | 3 +- .../RepositoryCollectionResource.java | 6 +- .../api/v2/resources/RepositoryResource.java | 3 +- .../SingleResourceManagerAdapter.java | 8 +- .../v2/resources/UserCollectionResource.java | 21 +- .../scm/api/v2/resources/UserResource.java | 11 +- .../sonia/scm/cache/CacheConfigurations.java | 11 +- .../scm/cache/GuavaCacheConfiguration.java | 11 +- .../sonia/scm/group/DefaultGroupManager.java | 45 ++-- .../repository/DefaultRepositoryManager.java | 47 ++-- .../sonia/scm/repository/HealthChecker.java | 46 +--- .../LastModifiedUpdateListener.java | 10 +- .../ConfigurableLoginAttemptHandler.java | 13 +- .../DefaultAuthorizationCollector.java | 8 +- .../java/sonia/scm/security/SecureKey.java | 4 +- .../sonia/scm/user/DefaultUserManager.java | 24 +-- .../AbstractManagerResourceTest.java | 6 +- .../resources/AuthenticationResourceTest.java | 15 +- .../v2/resources/GroupRootResourceTest.java | 7 +- .../scm/api/v2/resources/MeResourceTest.java | 17 +- .../resources/RepositoryRootResourceTest.java | 3 +- .../v2/resources/UserRootResourceTest.java | 23 +- .../cache/CacheConfigurationTestLoader.java | 18 +- .../DefaultRepositoryManagerTest.java | 93 ++++---- .../selenium/page/RepositoriesAddPage.java | 7 +- 227 files changed, 1380 insertions(+), 3549 deletions(-) create mode 100644 scm-core/src/main/java/sonia/scm/AlreadyExistsException.java create mode 100644 scm-core/src/main/java/sonia/scm/ConcurrentModificationException.java create mode 100644 scm-core/src/main/java/sonia/scm/NotFoundException.java delete mode 100644 scm-core/src/main/java/sonia/scm/group/GroupAlreadyExistsException.java delete mode 100644 scm-core/src/main/java/sonia/scm/group/GroupException.java delete mode 100644 scm-core/src/main/java/sonia/scm/group/GroupNotFoundException.java create mode 100644 scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java create mode 100644 scm-core/src/main/java/sonia/scm/repository/InternalRepositoryException.java delete mode 100644 scm-core/src/main/java/sonia/scm/repository/RepositoryAlreadyExistsException.java delete mode 100644 scm-core/src/main/java/sonia/scm/repository/RepositoryException.java delete mode 100644 scm-core/src/main/java/sonia/scm/repository/RepositoryHandlerNotFoundException.java delete mode 100644 scm-core/src/main/java/sonia/scm/user/UserAlreadyExistsException.java delete mode 100644 scm-core/src/main/java/sonia/scm/user/UserException.java delete mode 100644 scm-core/src/main/java/sonia/scm/user/UserNotFoundException.java rename scm-webapp/src/main/java/sonia/scm/api/rest/{UserAlreadyExistsExceptionMapper.java => AlreadyExistsExceptionMapper.java} (53%) delete mode 100644 scm-webapp/src/main/java/sonia/scm/api/rest/GroupAlreadyExistsExceptionMapper.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/api/rest/RepositoryAlreadyExistsExceptionMapper.java diff --git a/pom.xml b/pom.xml index 3295e732db..5c6abbbf87 100644 --- a/pom.xml +++ b/pom.xml @@ -402,24 +402,24 @@ </executions> </plugin> - <plugin> - <groupId>com.github.legman</groupId> - <artifactId>legman-maven-plugin</artifactId> - <version>${legman.version}</version> - <configuration> - <fail>true</fail> - </configuration> - <executions> - <execution> - <phase>process-classes</phase> - <goals> - <!-- Prevent usage of guava annotations that would be silently ignored -> hard to find. - We use legman annotations instead, that provide additional features such as weak references. --> - <goal>guava-migration-check</goal> - </goals> - </execution> - </executions> - </plugin> + <!--<plugin>--> + <!--<groupId>com.github.legman</groupId>--> + <!--<artifactId>legman-maven-plugin</artifactId>--> + <!--<version>${legman.version}</version>--> + <!--<configuration>--> + <!--<fail>true</fail>--> + <!--</configuration>--> + <!--<executions>--> + <!--<execution>--> + <!--<phase>process-classes</phase>--> + <!--<goals>--> + <!--<!– Prevent usage of guava annotations that would be silently ignored -> hard to find.--> + <!--We use legman annotations instead, that provide additional features such as weak references. –>--> + <!--<goal>guava-migration-check</goal>--> + <!--</goals>--> + <!--</execution>--> + <!--</executions>--> + <!--</plugin>--> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -725,7 +725,7 @@ <svnkit.version>1.8.15-scm1</svnkit.version> <!-- util libraries --> - <guava.version>16.0.1</guava.version> + <guava.version>26.0-jre</guava.version> <quartz.version>2.2.3</quartz.version> <!-- build properties --> diff --git a/scm-core/src/main/java/sonia/scm/AlreadyExistsException.java b/scm-core/src/main/java/sonia/scm/AlreadyExistsException.java new file mode 100644 index 0000000000..36052d99e9 --- /dev/null +++ b/scm-core/src/main/java/sonia/scm/AlreadyExistsException.java @@ -0,0 +1,4 @@ +package sonia.scm; + +public class AlreadyExistsException extends Exception { +} diff --git a/scm-core/src/main/java/sonia/scm/BasicPropertiesAware.java b/scm-core/src/main/java/sonia/scm/BasicPropertiesAware.java index f0b7772a77..cfd4284fae 100644 --- a/scm-core/src/main/java/sonia/scm/BasicPropertiesAware.java +++ b/scm-core/src/main/java/sonia/scm/BasicPropertiesAware.java @@ -37,18 +37,15 @@ package sonia.scm; import com.google.common.base.Objects; import com.google.common.collect.Maps; - import sonia.scm.xml.XmlMapStringAdapter; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Map; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.io.Serializable; +import java.util.Map; + +//~--- JDK imports ------------------------------------------------------------ /** * Default implementation of {@link PropertiesAware} interface. diff --git a/scm-core/src/main/java/sonia/scm/ConcurrentModificationException.java b/scm-core/src/main/java/sonia/scm/ConcurrentModificationException.java new file mode 100644 index 0000000000..f0340a6a59 --- /dev/null +++ b/scm-core/src/main/java/sonia/scm/ConcurrentModificationException.java @@ -0,0 +1,4 @@ +package sonia.scm; + +public class ConcurrentModificationException extends Exception { +} diff --git a/scm-core/src/main/java/sonia/scm/Handler.java b/scm-core/src/main/java/sonia/scm/Handler.java index 67ec039fba..a4e927ed7b 100644 --- a/scm-core/src/main/java/sonia/scm/Handler.java +++ b/scm-core/src/main/java/sonia/scm/Handler.java @@ -39,11 +39,8 @@ package sonia.scm; * @author Sebastian Sdorra * * @param <T> a typed object - * @param <E> */ -public interface Handler<T extends TypedObject, E extends Exception> - extends HandlerBase<T, E> -{ +public interface Handler<T extends TypedObject> extends HandlerBase<T> { /** * Returns the type object of the handler. @@ -51,7 +48,7 @@ public interface Handler<T extends TypedObject, E extends Exception> * * @return type object of the handler */ - public Type getType(); + Type getType(); /** * Returns true if the hanlder is configured. @@ -59,5 +56,5 @@ public interface Handler<T extends TypedObject, E extends Exception> * * @return true if the hanlder is configured */ - public boolean isConfigured(); + boolean isConfigured(); } diff --git a/scm-core/src/main/java/sonia/scm/HandlerBase.java b/scm-core/src/main/java/sonia/scm/HandlerBase.java index 6ce7d9a6a6..bbe78c8cf7 100644 --- a/scm-core/src/main/java/sonia/scm/HandlerBase.java +++ b/scm-core/src/main/java/sonia/scm/HandlerBase.java @@ -44,9 +44,8 @@ import java.io.IOException; * @author Sebastian Sdorra * * @param <T> type object of the handler - * @param <E> exception type of the handler */ -public interface HandlerBase<T extends TypedObject, E extends Exception> +public interface HandlerBase<T extends TypedObject> extends Initable, Closeable { @@ -55,7 +54,7 @@ public interface HandlerBase<T extends TypedObject, E extends Exception> * * @return The persisted object. */ - public T create(T object) throws E; + T create(T object) throws AlreadyExistsException; /** * Removes a persistent object. @@ -63,10 +62,9 @@ public interface HandlerBase<T extends TypedObject, E extends Exception> * * @param object to delete * - * @throws E * @throws IOException */ - public void delete(T object) throws E; + void delete(T object) throws NotFoundException; /** * Modifies a persistent object. @@ -74,8 +72,7 @@ public interface HandlerBase<T extends TypedObject, E extends Exception> * * @param object to modify * - * @throws E * @throws IOException */ - public void modify(T object) throws E; + void modify(T object) throws NotFoundException; } diff --git a/scm-core/src/main/java/sonia/scm/Manager.java b/scm-core/src/main/java/sonia/scm/Manager.java index c0d074520a..2925b5b6b4 100644 --- a/scm-core/src/main/java/sonia/scm/Manager.java +++ b/scm-core/src/main/java/sonia/scm/Manager.java @@ -42,10 +42,9 @@ import java.util.Comparator; * @author Sebastian Sdorra * * @param <T> type of the model object - * @param <E> type of the exception */ -public interface Manager<T extends ModelObject, E extends Exception> - extends HandlerBase<T, E>, LastModifiedAware +public interface Manager<T extends ModelObject> + extends HandlerBase<T>, LastModifiedAware { /** @@ -54,9 +53,9 @@ public interface Manager<T extends ModelObject, E extends Exception> * * @param object to refresh * - * @throws E + * @throws NotFoundException */ - void refresh(T object) throws E; + void refresh(T object) throws NotFoundException; //~--- get methods ---------------------------------------------------------- diff --git a/scm-core/src/main/java/sonia/scm/ManagerDecorator.java b/scm-core/src/main/java/sonia/scm/ManagerDecorator.java index 3b90002d13..7b3f03ee8c 100644 --- a/scm-core/src/main/java/sonia/scm/ManagerDecorator.java +++ b/scm-core/src/main/java/sonia/scm/ManagerDecorator.java @@ -45,11 +45,8 @@ import java.util.Comparator; * @since 1.23 * * @param <T> model type - * @param <E> exception type */ -public class ManagerDecorator<T extends ModelObject, E extends Exception> - implements Manager<T, E> -{ +public class ManagerDecorator<T extends ModelObject> implements Manager<T> { /** * Constructs a new ManagerDecorator. @@ -57,125 +54,78 @@ public class ManagerDecorator<T extends ModelObject, E extends Exception> * * @param decorated manager implementation */ - public ManagerDecorator(Manager<T, E> decorated) + public ManagerDecorator(Manager<T> decorated) { this.decorated = decorated; } - //~--- methods -------------------------------------------------------------- - - /** - * {@inheritDoc} - */ @Override public void close() throws IOException { decorated.close(); } - /** - * {@inheritDoc} - */ @Override - public T create(T object) throws E - { + public T create(T object) throws AlreadyExistsException { return decorated.create(object); } - /** - * {@inheritDoc} - */ @Override - public void delete(T object) throws E - { + public void delete(T object) throws NotFoundException { decorated.delete(object); } - /** - * {@inheritDoc} - */ @Override public void init(SCMContextProvider context) { decorated.init(context); } - /** - * {@inheritDoc} - */ @Override - public void modify(T object) throws E - { + public void modify(T object) throws NotFoundException { decorated.modify(object); } - /** - * {@inheritDoc} - */ @Override - public void refresh(T object) throws E - { + public void refresh(T object) throws NotFoundException { decorated.refresh(object); } - //~--- get methods ---------------------------------------------------------- - - /** - * {@inheritDoc} - */ @Override public T get(String id) { return decorated.get(id); } - /** - * {@inheritDoc} - */ @Override public Collection<T> getAll() { return decorated.getAll(); } - /** - * {@inheritDoc} - */ @Override public Collection<T> getAll(Comparator<T> comparator) { return decorated.getAll(comparator); } - /** - * {@inheritDoc} - */ @Override public Collection<T> getAll(int start, int limit) { return decorated.getAll(start, limit); } - /** - * {@inheritDoc} - */ @Override public Collection<T> getAll(Comparator<T> comparator, int start, int limit) { return decorated.getAll(comparator, start, limit); } - /** - * {@inheritDoc} - */ @Override public Long getLastModified() { return decorated.getLastModified(); } - //~--- fields --------------------------------------------------------------- - - /** manager implementation */ - private Manager<T, E> decorated; + private Manager<T> decorated; } diff --git a/scm-core/src/main/java/sonia/scm/NotFoundException.java b/scm-core/src/main/java/sonia/scm/NotFoundException.java new file mode 100644 index 0000000000..8a7ae642bd --- /dev/null +++ b/scm-core/src/main/java/sonia/scm/NotFoundException.java @@ -0,0 +1,10 @@ +package sonia.scm; + +public class NotFoundException extends Exception { + public NotFoundException(String type, String id) { + super(type + " with id '" + id + "' not found"); + } + + public NotFoundException() { + } +} diff --git a/scm-core/src/main/java/sonia/scm/TypeManager.java b/scm-core/src/main/java/sonia/scm/TypeManager.java index 52a43e5593..6f13cb82d8 100644 --- a/scm-core/src/main/java/sonia/scm/TypeManager.java +++ b/scm-core/src/main/java/sonia/scm/TypeManager.java @@ -44,10 +44,8 @@ import java.util.Collection; * * @param <T> type of the model object * @param <H> type of the handler - * @param <E> type of the exception */ -public interface TypeManager<T extends ModelObject, H extends Handler<T, E>, - E extends Exception> extends Manager<T, E> +public interface TypeManager<T extends ModelObject, H extends Handler<T>> extends Manager<T> { /** @@ -58,7 +56,7 @@ public interface TypeManager<T extends ModelObject, H extends Handler<T, E>, * * @return the handler for given type */ - public H getHandler(String type); + H getHandler(String type); /** * Returns a {@link java.util.Collection} of all @@ -66,5 +64,5 @@ public interface TypeManager<T extends ModelObject, H extends Handler<T, E>, * * @return all available types */ - public Collection<Type> getTypes(); + Collection<Type> getTypes(); } diff --git a/scm-core/src/main/java/sonia/scm/cache/CacheStatistics.java b/scm-core/src/main/java/sonia/scm/cache/CacheStatistics.java index 067e623e6d..cc791ff91f 100644 --- a/scm-core/src/main/java/sonia/scm/cache/CacheStatistics.java +++ b/scm-core/src/main/java/sonia/scm/cache/CacheStatistics.java @@ -33,6 +33,7 @@ package sonia.scm.cache; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; /** @@ -101,7 +102,7 @@ public final class CacheStatistics public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("hitCount", hitCount) .add("missCount", missCount) diff --git a/scm-core/src/main/java/sonia/scm/event/AbstractHandlerEvent.java b/scm-core/src/main/java/sonia/scm/event/AbstractHandlerEvent.java index 5efbf118ba..1582247f35 100644 --- a/scm-core/src/main/java/sonia/scm/event/AbstractHandlerEvent.java +++ b/scm-core/src/main/java/sonia/scm/event/AbstractHandlerEvent.java @@ -33,8 +33,8 @@ package sonia.scm.event; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.HandlerEventType; /** @@ -127,7 +127,7 @@ public class AbstractHandlerEvent<T> implements HandlerEvent<T> public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("eventType", eventType) .add("item", item) .add("oldItem", oldItem) diff --git a/scm-core/src/main/java/sonia/scm/group/Group.java b/scm-core/src/main/java/sonia/scm/group/Group.java index 5341024203..98d9dcc7a3 100644 --- a/scm-core/src/main/java/sonia/scm/group/Group.java +++ b/scm-core/src/main/java/sonia/scm/group/Group.java @@ -37,6 +37,7 @@ package sonia.scm.group; import com.github.sdorra.ssp.PermissionObject; import com.github.sdorra.ssp.StaticPermissions; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.Lists; import sonia.scm.BasicPropertiesAware; @@ -259,7 +260,7 @@ public class Group extends BasicPropertiesAware public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("description", description) .add("members", members) diff --git a/scm-core/src/main/java/sonia/scm/group/GroupAlreadyExistsException.java b/scm-core/src/main/java/sonia/scm/group/GroupAlreadyExistsException.java deleted file mode 100644 index 2b3c73535e..0000000000 --- a/scm-core/src/main/java/sonia/scm/group/GroupAlreadyExistsException.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.group; - -/** - * This {@link Exception} is thrown when trying to create a group - * that already exists. - * - * @author Sebastian Sdorra - */ -public class GroupAlreadyExistsException extends GroupException -{ - - private static final long serialVersionUID = 4042878550219750430L; - - public GroupAlreadyExistsException(Group group) { - super(group.getName() + " group already exists"); - } -} diff --git a/scm-core/src/main/java/sonia/scm/group/GroupException.java b/scm-core/src/main/java/sonia/scm/group/GroupException.java deleted file mode 100644 index e0dc799e92..0000000000 --- a/scm-core/src/main/java/sonia/scm/group/GroupException.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.group; - -/** - * General {@link Exception} for group errors. - * - * @author Sebastian Sdorra - */ -public class GroupException extends Exception -{ - - /** Field description */ - private static final long serialVersionUID = 5191341492098994225L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs a {@link GroupException} object. - * - */ - public GroupException() - { - super(); - } - - /** - * Constructs a {@link GroupException} object. - * - * - * @param message for the exception - */ - public GroupException(String message) - { - super(message); - } - - /** - * Constructs a {@link GroupException} object. - * - * - * @param cause of the exception - */ - public GroupException(Throwable cause) - { - super(cause); - } - - /** - * Constructs a {@link GroupException} object. - * - * - * @param message of the exception - * @param cause of the exception - */ - public GroupException(String message, Throwable cause) - { - super(message, cause); - } -} diff --git a/scm-core/src/main/java/sonia/scm/group/GroupManager.java b/scm-core/src/main/java/sonia/scm/group/GroupManager.java index 428559edef..288196894d 100644 --- a/scm-core/src/main/java/sonia/scm/group/GroupManager.java +++ b/scm-core/src/main/java/sonia/scm/group/GroupManager.java @@ -38,10 +38,10 @@ package sonia.scm.group; import sonia.scm.Manager; import sonia.scm.search.Searchable; -//~--- JDK imports ------------------------------------------------------------ - import java.util.Collection; +//~--- JDK imports ------------------------------------------------------------ + /** * The central class for managing {@link Group}s. * This class is a singleton and is available via injection. @@ -49,7 +49,7 @@ import java.util.Collection; * @author Sebastian Sdorra */ public interface GroupManager - extends Manager<Group, GroupException>, Searchable<Group> + extends Manager<Group>, Searchable<Group> { /** diff --git a/scm-core/src/main/java/sonia/scm/group/GroupManagerDecorator.java b/scm-core/src/main/java/sonia/scm/group/GroupManagerDecorator.java index 955e218b43..e2367d863c 100644 --- a/scm-core/src/main/java/sonia/scm/group/GroupManagerDecorator.java +++ b/scm-core/src/main/java/sonia/scm/group/GroupManagerDecorator.java @@ -38,10 +38,10 @@ package sonia.scm.group; import sonia.scm.ManagerDecorator; import sonia.scm.search.SearchRequest; -//~--- JDK imports ------------------------------------------------------------ - import java.util.Collection; +//~--- JDK imports ------------------------------------------------------------ + /** * Decorator for {@link GroupManager}. * @@ -49,7 +49,7 @@ import java.util.Collection; * @since 1.23 */ public class GroupManagerDecorator - extends ManagerDecorator<Group, GroupException> implements GroupManager + extends ManagerDecorator<Group> implements GroupManager { /** diff --git a/scm-core/src/main/java/sonia/scm/group/GroupNames.java b/scm-core/src/main/java/sonia/scm/group/GroupNames.java index 43ca462d32..24d32972b6 100644 --- a/scm-core/src/main/java/sonia/scm/group/GroupNames.java +++ b/scm-core/src/main/java/sonia/scm/group/GroupNames.java @@ -39,14 +39,13 @@ import com.google.common.base.Joiner; import com.google.common.base.Objects; import com.google.common.collect.Lists; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; - import java.util.Collection; import java.util.Collections; import java.util.Iterator; +//~--- JDK imports ------------------------------------------------------------ + /** * This class represents all associated groups for a user. * diff --git a/scm-core/src/main/java/sonia/scm/group/GroupNotFoundException.java b/scm-core/src/main/java/sonia/scm/group/GroupNotFoundException.java deleted file mode 100644 index 2ea5d16cf0..0000000000 --- a/scm-core/src/main/java/sonia/scm/group/GroupNotFoundException.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -package sonia.scm.group; - -/** - * The GroupNotFoundException is thrown e.g. from the - * modify method of the {@link GroupManager}, if the group does not exists. - * - * @author Sebastian Sdorra - * - * @since 1.28 - */ -public class GroupNotFoundException extends GroupException -{ - - /** Field description */ - private static final long serialVersionUID = -1617037899954718001L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs a new GroupNotFoundException. - * - */ - public GroupNotFoundException(Group group) { - super("group " + group.getName() + " does not exist"); - } -} diff --git a/scm-core/src/main/java/sonia/scm/i18n/I18nMessages.java b/scm-core/src/main/java/sonia/scm/i18n/I18nMessages.java index 9c4a9353be..0af1cef895 100644 --- a/scm-core/src/main/java/sonia/scm/i18n/I18nMessages.java +++ b/scm-core/src/main/java/sonia/scm/i18n/I18nMessages.java @@ -36,16 +36,13 @@ package sonia.scm.i18n; import com.google.common.base.Objects; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; - import sonia.scm.util.ClassLoaders; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; import java.lang.reflect.Field; - import java.util.Locale; -import javax.servlet.http.HttpServletRequest; +//~--- JDK imports ------------------------------------------------------------ /** * The I18nMessages class instantiates a class and initializes all {@link String} diff --git a/scm-core/src/main/java/sonia/scm/plugin/ClassElement.java b/scm-core/src/main/java/sonia/scm/plugin/ClassElement.java index 8f931e5599..813a5a850f 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/ClassElement.java +++ b/scm-core/src/main/java/sonia/scm/plugin/ClassElement.java @@ -33,12 +33,13 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlElement; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -117,7 +118,7 @@ public final class ClassElement public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("clazz", clazz) .add("description", description) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/plugin/ExtensionPointElement.java b/scm-core/src/main/java/sonia/scm/plugin/ExtensionPointElement.java index 25b8fe303a..7f6f1efe07 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/ExtensionPointElement.java +++ b/scm-core/src/main/java/sonia/scm/plugin/ExtensionPointElement.java @@ -33,15 +33,16 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -129,7 +130,7 @@ public final class ExtensionPointElement public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("class", clazz) .add("description", description) .add("multiple", multiple) diff --git a/scm-core/src/main/java/sonia/scm/plugin/Plugin.java b/scm-core/src/main/java/sonia/scm/plugin/Plugin.java index d55555e747..e8fd166e78 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/Plugin.java +++ b/scm-core/src/main/java/sonia/scm/plugin/Plugin.java @@ -35,18 +35,18 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.ImmutableSet; -//~--- JDK imports ------------------------------------------------------------ - -import java.util.Set; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.util.Set; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -142,7 +142,7 @@ public final class Plugin extends ScmModule public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("scmVersion", scmVersion) .add("condition", condition) .add("information", information) diff --git a/scm-core/src/main/java/sonia/scm/plugin/PluginCondition.java b/scm-core/src/main/java/sonia/scm/plugin/PluginCondition.java index ad6ba84875..e70821d0df 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/PluginCondition.java +++ b/scm-core/src/main/java/sonia/scm/plugin/PluginCondition.java @@ -35,27 +35,25 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.PlatformType; import sonia.scm.SCMContext; import sonia.scm.util.SystemUtil; import sonia.scm.util.Util; import sonia.scm.version.Version; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.List; -import java.util.Locale; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -164,7 +162,7 @@ public class PluginCondition implements Cloneable, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("arch", arch) .add("minVersion", minVersion) .add("os", os) diff --git a/scm-core/src/main/java/sonia/scm/plugin/PluginInformation.java b/scm-core/src/main/java/sonia/scm/plugin/PluginInformation.java index 1cf23fd3d9..3ae359ceb7 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/PluginInformation.java +++ b/scm-core/src/main/java/sonia/scm/plugin/PluginInformation.java @@ -37,24 +37,21 @@ package sonia.scm.plugin; import com.github.sdorra.ssp.PermissionObject; import com.github.sdorra.ssp.StaticPermissions; - +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.Validateable; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -180,7 +177,7 @@ public class PluginInformation public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("artifactId", artifactId) .add("author", author) .add("category", category) diff --git a/scm-core/src/main/java/sonia/scm/plugin/PluginRepository.java b/scm-core/src/main/java/sonia/scm/plugin/PluginRepository.java index c546788d09..1d4cc07338 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/PluginRepository.java +++ b/scm-core/src/main/java/sonia/scm/plugin/PluginRepository.java @@ -35,12 +35,13 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -121,7 +122,7 @@ public class PluginRepository implements Serializable @Override public String toString() { - return Objects.toStringHelper(this).add("id", id).add("url", + return MoreObjects.toStringHelper(this).add("id", id).add("url", url).toString(); } diff --git a/scm-core/src/main/java/sonia/scm/plugin/PluginResources.java b/scm-core/src/main/java/sonia/scm/plugin/PluginResources.java index b039c291f5..07e35e0e4f 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/PluginResources.java +++ b/scm-core/src/main/java/sonia/scm/plugin/PluginResources.java @@ -35,15 +35,15 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.util.Set; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; +import java.util.Set; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -124,7 +124,7 @@ public class PluginResources public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("scriptResources", scriptResources) .add("stylesheetResources", stylesheetResources) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/plugin/SubscriberElement.java b/scm-core/src/main/java/sonia/scm/plugin/SubscriberElement.java index 44c3d6edd2..5cc98d0bf9 100644 --- a/scm-core/src/main/java/sonia/scm/plugin/SubscriberElement.java +++ b/scm-core/src/main/java/sonia/scm/plugin/SubscriberElement.java @@ -33,15 +33,16 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -126,7 +127,7 @@ public final class SubscriberElement public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("eventClass", eventClass) .add("subscriberClass", subscriberClass) .add("description", description) diff --git a/scm-core/src/main/java/sonia/scm/repository/AbstactImportHandler.java b/scm-core/src/main/java/sonia/scm/repository/AbstactImportHandler.java index 6e0827af4a..2195e87730 100644 --- a/scm-core/src/main/java/sonia/scm/repository/AbstactImportHandler.java +++ b/scm-core/src/main/java/sonia/scm/repository/AbstactImportHandler.java @@ -35,9 +35,9 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.base.Throwables; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; import sonia.scm.repository.ImportResult.Builder; import java.io.File; @@ -86,9 +86,7 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler * {@inheritDoc} */ @Override - public List<String> importRepositories(RepositoryManager manager) - throws IOException, RepositoryException - { + public List<String> importRepositories(RepositoryManager manager) throws IOException { return doRepositoryImport(manager, true).getImportedDirectories(); } @@ -98,22 +96,7 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler @Override public ImportResult importRepositoriesFromDirectory(RepositoryManager manager) { - try - { - return doRepositoryImport(manager, false); - } - catch (IOException ex) - { - - // should never happen - throw Throwables.propagate(ex); - } - catch (RepositoryException ex) - { - - // should never happen - throw Throwables.propagate(ex); - } + return doRepositoryImport(manager, false); } /** @@ -126,12 +109,8 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler * @return repository * * @throws IOException - * @throws RepositoryException */ - protected Repository createRepository(File repositoryDirectory, - String repositoryName) - throws IOException, RepositoryException - { + protected Repository createRepository(File repositoryDirectory, String repositoryName) throws IOException { Repository repository = new Repository(); repository.setName(repositoryName); @@ -151,12 +130,8 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler * @return import result * * @throws IOException - * @throws RepositoryException */ - private ImportResult doRepositoryImport(RepositoryManager manager, - boolean throwExceptions) - throws IOException, RepositoryException - { + private ImportResult doRepositoryImport(RepositoryManager manager, boolean throwExceptions) { Builder builder = ImportResult.builder(); logger.trace("search for repositories to import"); @@ -215,11 +190,10 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler * @param directoryName * * @throws IOException - * @throws RepositoryException */ private void importRepository(RepositoryManager manager, Builder builder, boolean throwExceptions, String directoryName) - throws IOException, RepositoryException + throws IOException { logger.trace("check repository {} for import", directoryName); @@ -266,12 +240,10 @@ public abstract class AbstactImportHandler implements AdvancedImportHandler * * @return * @throws IOException - * @throws RepositoryException */ private void importRepository(RepositoryManager manager, String repositoryName) - throws IOException, RepositoryException - { + throws IOException, AlreadyExistsException { Repository repository = createRepository(getRepositoryDirectory(repositoryName), repositoryName); diff --git a/scm-core/src/main/java/sonia/scm/repository/AbstractSimpleRepositoryHandler.java b/scm-core/src/main/java/sonia/scm/repository/AbstractSimpleRepositoryHandler.java index 536b7bd9e9..a717cdf05b 100644 --- a/scm-core/src/main/java/sonia/scm/repository/AbstractSimpleRepositoryHandler.java +++ b/scm-core/src/main/java/sonia/scm/repository/AbstractSimpleRepositoryHandler.java @@ -38,6 +38,7 @@ import com.google.common.base.Throwables; import com.google.common.io.Resources; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; import sonia.scm.ConfigurationException; import sonia.scm.io.CommandResult; import sonia.scm.io.ExtendedCommand; @@ -80,12 +81,11 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig } @Override - public Repository create(Repository repository) - throws RepositoryException { + public Repository create(Repository repository) throws AlreadyExistsException { File directory = getDirectory(repository); if (directory.exists()) { - throw RepositoryAlreadyExistsException.create(repository); + throw new AlreadyExistsException(); } checkPath(directory); @@ -105,7 +105,7 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig } } - Throwables.propagateIfPossible(ex, RepositoryException.class); + Throwables.propagateIfPossible(ex, AlreadyExistsException.class); // This point will never be reached return null; } @@ -121,15 +121,14 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig } @Override - public void delete(Repository repository) - throws RepositoryException { + public void delete(Repository repository) { File directory = getDirectory(repository); if (directory.exists()) { try { fileSystem.destroy(directory); } catch (IOException e) { - throw new RepositoryException("could not delete repository", e); + throw new InternalRepositoryException("could not delete repository directory", e); } cleanupEmptyDirectories(config.getRepositoryDirectory(), directory.getParentFile()); @@ -202,17 +201,12 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig } protected void create(Repository repository, File directory) - throws RepositoryException, IOException { + throws IOException, AlreadyExistsException { ExtendedCommand cmd = buildCreateCommand(repository, directory); CommandResult result = cmd.execute(); if (!result.isSuccessfull()) { - StringBuilder msg = new StringBuilder("command exit with error "); - - msg.append(result.getReturnCode()).append(" and message: '"); - msg.append(result.getOutput()).append("'"); - - throw new RepositoryException(msg.toString()); + throw new IOException(("command exit with error " + result.getReturnCode() + " and message: '" + result.getOutput() + "'")); } } @@ -221,7 +215,7 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig } protected void postCreate(Repository repository, File directory) - throws IOException, RepositoryException { + throws IOException { } /** @@ -262,9 +256,9 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig * Check path for existing repositories * * @param directory repository target directory - * @throws RepositoryAlreadyExistsException + * @throws AlreadyExistsException */ - private void checkPath(File directory) throws RepositoryAlreadyExistsException { + private void checkPath(File directory) throws AlreadyExistsException { File repositoryDirectory = config.getRepositoryDirectory(); File parent = directory.getParentFile(); @@ -274,9 +268,7 @@ public abstract class AbstractSimpleRepositoryHandler<C extends RepositoryConfig if (isRepository(parent)) { logger.error("parent path {} is a repository", parent); - StringBuilder buffer = new StringBuilder("repository with name "); - buffer.append(directory.getName()).append(" already exists"); - throw new RepositoryAlreadyExistsException(buffer.toString()); + throw new AlreadyExistsException(); } parent = parent.getParentFile(); diff --git a/scm-core/src/main/java/sonia/scm/repository/BlameLine.java b/scm-core/src/main/java/sonia/scm/repository/BlameLine.java index ff23ca8fd3..08bd2dad58 100644 --- a/scm-core/src/main/java/sonia/scm/repository/BlameLine.java +++ b/scm-core/src/main/java/sonia/scm/repository/BlameLine.java @@ -35,12 +35,13 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * Single line of a file, in a {@link BlameResult}. * @@ -140,7 +141,7 @@ public class BlameLine implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("lineNumber", lineNumber) .add("revision", revision) .add("author", author) diff --git a/scm-core/src/main/java/sonia/scm/repository/BlameResult.java b/scm-core/src/main/java/sonia/scm/repository/BlameResult.java index 4a06de575c..58fafe9811 100644 --- a/scm-core/src/main/java/sonia/scm/repository/BlameResult.java +++ b/scm-core/src/main/java/sonia/scm/repository/BlameResult.java @@ -35,21 +35,20 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.Lists; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Iterator; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.Iterator; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * Changeset information by line for a given file. @@ -163,7 +162,7 @@ public class BlameResult implements Serializable, Iterable<BlameLine> public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("total", total) .add("blameLines", blameLines) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/Branch.java b/scm-core/src/main/java/sonia/scm/repository/Branch.java index 3e610812ff..ce1d43c82b 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Branch.java +++ b/scm-core/src/main/java/sonia/scm/repository/Branch.java @@ -35,15 +35,15 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * Represents a branch in a repository. @@ -132,7 +132,7 @@ public final class Branch implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("revision", revision) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java new file mode 100644 index 0000000000..a4a1c66d67 --- /dev/null +++ b/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java @@ -0,0 +1,9 @@ +package sonia.scm.repository; + +import sonia.scm.NotFoundException; + +public class BranchNotFoundException extends NotFoundException { + public BranchNotFoundException(String branch) { + super("branch", branch); + } +} diff --git a/scm-core/src/main/java/sonia/scm/repository/Branches.java b/scm-core/src/main/java/sonia/scm/repository/Branches.java index f2f7de1a2a..1eb679908e 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Branches.java +++ b/scm-core/src/main/java/sonia/scm/repository/Branches.java @@ -34,17 +34,18 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.Lists; -//~--- JDK imports ------------------------------------------------------------ - -import java.util.Iterator; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.util.Iterator; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * Represents all branches of a repository. @@ -148,7 +149,7 @@ public final class Branches implements Iterable<Branch> public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("branches", branches) .toString(); //J+ diff --git a/scm-core/src/main/java/sonia/scm/repository/BrowserResult.java b/scm-core/src/main/java/sonia/scm/repository/BrowserResult.java index 7880b58f11..212ce45f81 100644 --- a/scm-core/src/main/java/sonia/scm/repository/BrowserResult.java +++ b/scm-core/src/main/java/sonia/scm/repository/BrowserResult.java @@ -35,20 +35,19 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Iterator; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.Iterator; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -161,7 +160,7 @@ public class BrowserResult implements Iterable<FileObject>, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("revision", revision) .add("tag", tag) .add("branch", branch) diff --git a/scm-core/src/main/java/sonia/scm/repository/Changeset.java b/scm-core/src/main/java/sonia/scm/repository/Changeset.java index fecfd74cc9..422611e4e8 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Changeset.java +++ b/scm-core/src/main/java/sonia/scm/repository/Changeset.java @@ -36,24 +36,21 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Objects; - import sonia.scm.BasicPropertiesAware; import sonia.scm.Validateable; import sonia.scm.util.Util; import sonia.scm.util.ValidationUtil; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * Represents a changeset/commit of a repository. diff --git a/scm-core/src/main/java/sonia/scm/repository/ChangesetPagingResult.java b/scm-core/src/main/java/sonia/scm/repository/ChangesetPagingResult.java index 0712ed40af..59a705e36a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/ChangesetPagingResult.java +++ b/scm-core/src/main/java/sonia/scm/repository/ChangesetPagingResult.java @@ -35,20 +35,19 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Iterator; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.Iterator; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * The changeset paging result is used to do a paging over the @@ -156,7 +155,7 @@ public class ChangesetPagingResult implements Iterable<Changeset>, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("changesets", changesets) .add("total", total) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/FileObject.java b/scm-core/src/main/java/sonia/scm/repository/FileObject.java index c5c4366a0e..5279921257 100644 --- a/scm-core/src/main/java/sonia/scm/repository/FileObject.java +++ b/scm-core/src/main/java/sonia/scm/repository/FileObject.java @@ -35,18 +35,17 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.LastModifiedAware; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * The FileObject represents a file or a directory in a repository. @@ -110,7 +109,7 @@ public class FileObject implements LastModifiedAware, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("path", path) .add("directory", directory) diff --git a/scm-core/src/main/java/sonia/scm/repository/HealthCheckFailure.java b/scm-core/src/main/java/sonia/scm/repository/HealthCheckFailure.java index 8bac16de8d..55f1abbaa6 100644 --- a/scm-core/src/main/java/sonia/scm/repository/HealthCheckFailure.java +++ b/scm-core/src/main/java/sonia/scm/repository/HealthCheckFailure.java @@ -33,14 +33,15 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * Single failure of a {@link HealthCheck}. * @@ -132,7 +133,7 @@ public final class HealthCheckFailure public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("id", id) .add("summary", summary) .add("url", url) diff --git a/scm-core/src/main/java/sonia/scm/repository/HealthCheckResult.java b/scm-core/src/main/java/sonia/scm/repository/HealthCheckResult.java index f5cb690533..9ff902e3cd 100644 --- a/scm-core/src/main/java/sonia/scm/repository/HealthCheckResult.java +++ b/scm-core/src/main/java/sonia/scm/repository/HealthCheckResult.java @@ -33,13 +33,14 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.ImmutableSet; -//~--- JDK imports ------------------------------------------------------------ - import java.util.Set; +//~--- JDK imports ------------------------------------------------------------ + /** * Result of {@link HealthCheck}. * @@ -182,7 +183,7 @@ public final class HealthCheckResult @Override public String toString() { - return Objects.toStringHelper(this).add("failures", failures).toString(); + return MoreObjects.toStringHelper(this).add("failures", failures).toString(); } //~--- get methods ---------------------------------------------------------- diff --git a/scm-core/src/main/java/sonia/scm/repository/ImportHandler.java b/scm-core/src/main/java/sonia/scm/repository/ImportHandler.java index a3c567c930..cee142b48e 100644 --- a/scm-core/src/main/java/sonia/scm/repository/ImportHandler.java +++ b/scm-core/src/main/java/sonia/scm/repository/ImportHandler.java @@ -35,7 +35,6 @@ package sonia.scm.repository; //~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.List; /** @@ -56,8 +55,6 @@ public interface ImportHandler * * @return a {@link List} names of imported repositories * @throws IOException - * @throws RepositoryException */ - public List<String> importRepositories(RepositoryManager manager) - throws IOException, RepositoryException; + public List<String> importRepositories(RepositoryManager manager) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/ImportResult.java b/scm-core/src/main/java/sonia/scm/repository/ImportResult.java index a7d242abc4..e834a7ec6c 100644 --- a/scm-core/src/main/java/sonia/scm/repository/ImportResult.java +++ b/scm-core/src/main/java/sonia/scm/repository/ImportResult.java @@ -33,18 +33,19 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; -import static com.google.common.base.Preconditions.*; - -//~--- JDK imports ------------------------------------------------------------ - -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.util.List; + +import static com.google.common.base.Preconditions.checkNotNull; + +//~--- JDK imports ------------------------------------------------------------ /** * Import result of the {@link AdvancedImportHandler}. @@ -130,7 +131,7 @@ public final class ImportResult public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("importedDirectories", importedDirectories) .add("failedDirectories", failedDirectories) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/InternalRepositoryException.java b/scm-core/src/main/java/sonia/scm/repository/InternalRepositoryException.java new file mode 100644 index 0000000000..d397028d7e --- /dev/null +++ b/scm-core/src/main/java/sonia/scm/repository/InternalRepositoryException.java @@ -0,0 +1,15 @@ +package sonia.scm.repository; + +public class InternalRepositoryException extends RuntimeException { + public InternalRepositoryException(Throwable ex) { + super(ex); + } + + public InternalRepositoryException(String msg, Exception ex) { + super(msg, ex); + } + + public InternalRepositoryException(String message) { + super(message); + } +} diff --git a/scm-core/src/main/java/sonia/scm/repository/Modifications.java b/scm-core/src/main/java/sonia/scm/repository/Modifications.java index 26804c91a6..4079d8f574 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Modifications.java +++ b/scm-core/src/main/java/sonia/scm/repository/Modifications.java @@ -37,20 +37,17 @@ package sonia.scm.repository; import com.google.common.base.Objects; import com.google.common.collect.Lists; - import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * diff --git a/scm-core/src/main/java/sonia/scm/repository/PathNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/PathNotFoundException.java index 7048dc2cf7..ed62a5967c 100644 --- a/scm-core/src/main/java/sonia/scm/repository/PathNotFoundException.java +++ b/scm-core/src/main/java/sonia/scm/repository/PathNotFoundException.java @@ -35,6 +35,7 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import sonia.scm.NotFoundException; import sonia.scm.util.Util; /** @@ -42,7 +43,7 @@ import sonia.scm.util.Util; * * @author Sebastian Sdorra */ -public class PathNotFoundException extends RepositoryException +public class PathNotFoundException extends NotFoundException { /** Field description */ @@ -59,7 +60,7 @@ public class PathNotFoundException extends RepositoryException */ public PathNotFoundException(String path) { - super("path \"".concat(Util.nonNull(path)).concat("\" not found")); + super("path", Util.nonNull(path)); this.path = Util.nonNull(path); } diff --git a/scm-core/src/main/java/sonia/scm/repository/Permission.java b/scm-core/src/main/java/sonia/scm/repository/Permission.java index b5de810f75..8b42d68a1f 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Permission.java +++ b/scm-core/src/main/java/sonia/scm/repository/Permission.java @@ -35,17 +35,16 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.security.PermissionObject; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * Permissions controls the access to {@link Repository}. @@ -136,7 +135,7 @@ public class Permission implements PermissionObject, Serializable final Permission other = (Permission) obj; - return Objects.equal(name, other.name) + return Objects.equal(name, other.name) && Objects.equal(type, other.type) && Objects.equal(groupPermission, other.groupPermission); } @@ -163,7 +162,7 @@ public class Permission implements PermissionObject, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("type", type) .add("groupPermission", groupPermission) diff --git a/scm-core/src/main/java/sonia/scm/repository/Person.java b/scm-core/src/main/java/sonia/scm/repository/Person.java index b3bf15c49a..d5674e7ad0 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Person.java +++ b/scm-core/src/main/java/sonia/scm/repository/Person.java @@ -36,18 +36,16 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Objects; - import sonia.scm.Validateable; import sonia.scm.util.Util; import sonia.scm.util.ValidationUtil; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * The {@link Person} (author) of a changeset. diff --git a/scm-core/src/main/java/sonia/scm/repository/Repository.java b/scm-core/src/main/java/sonia/scm/repository/Repository.java index 44841893e7..adec211c1d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Repository.java +++ b/scm-core/src/main/java/sonia/scm/repository/Repository.java @@ -35,6 +35,7 @@ package sonia.scm.repository; import com.github.sdorra.ssp.PermissionObject; import com.github.sdorra.ssp.StaticPermissions; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.Lists; import sonia.scm.BasicPropertiesAware; @@ -401,7 +402,7 @@ public class Repository extends BasicPropertiesAware implements ModelObject, Per @Override public String toString() { - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("id", id) .add("namespace", namespace) .add("name", name) diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryAlreadyExistsException.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryAlreadyExistsException.java deleted file mode 100644 index c439b2d0f4..0000000000 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryAlreadyExistsException.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.repository; - -/** - * This {@link Exception} is thrown when trying to create a repository with - * the same name and type already exists. - * - * @author Sebastian Sdorra - */ -public class RepositoryAlreadyExistsException extends RepositoryException -{ - private static final long serialVersionUID = -774929917214137675L; - - /** - * Creates a new instance. - * - * @param message exception message - */ - public RepositoryAlreadyExistsException(String message) { - super(message); - } - - /** - * Creates a new {@link RepositoryAlreadyExistsException} with an appropriate message. - * - * @param repository repository that already exists - * - * @return new exception with appropriate message - */ - public static RepositoryAlreadyExistsException create(Repository repository){ - StringBuilder buffer = new StringBuilder("repository with name "); - buffer.append(repository.getName()).append(" of type "); - buffer.append(repository.getType()).append("already exists"); - return new RepositoryAlreadyExistsException(buffer.toString()); - } -} diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryException.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryException.java deleted file mode 100644 index 63538d08e3..0000000000 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryException.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.repository; - -/** - * Base class for all repository exceptions. - * - * @author Sebastian Sdorra - */ -public class RepositoryException extends Exception -{ - - /** Field description */ - private static final long serialVersionUID = -4939196278070910058L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs a new {@link RepositoryException} with null as its - * error detail message. - * - */ - public RepositoryException() - { - super(); - } - - /** - * Constructs a new {@link RepositoryException} with the specified - * detail message. - * - * - * @param message detail message - */ - public RepositoryException(String message) - { - super(message); - } - - /** - * Constructs a new {@link RepositoryException} with the specified - * detail message and cause. - * - * - * @param cause the cause for the exception - */ - public RepositoryException(Throwable cause) - { - super(cause); - } - - /** - * Constructs a new {@link RepositoryException} with the specified - * detail message and cause. - * - * - * @param message detail message - * @param cause the cause for the exception - */ - public RepositoryException(String message, Throwable cause) - { - super(message, cause); - } -} diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryHandler.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryHandler.java index 739d0d0177..445fc22ab8 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryHandler.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryHandler.java @@ -47,7 +47,7 @@ import sonia.scm.plugin.ExtensionPoint; */ @ExtensionPoint public interface RepositoryHandler - extends Handler<Repository, RepositoryException> + extends Handler<Repository> { /** diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryHandlerNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryHandlerNotFoundException.java deleted file mode 100644 index 4583902ef8..0000000000 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryHandlerNotFoundException.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.repository; - -/** - * - * @author Sebastian Sdorra - */ -public class RepositoryHandlerNotFoundException extends RepositoryException -{ - - /** Field description */ - private static final long serialVersionUID = 5270463060802850944L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - */ - public RepositoryHandlerNotFoundException() {} - - /** - * Constructs ... - * - * - * @param message - */ - public RepositoryHandlerNotFoundException(String message) - { - super(message); - } -} diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryIsNotArchivedException.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryIsNotArchivedException.java index 3742512622..a427050633 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryIsNotArchivedException.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryIsNotArchivedException.java @@ -38,7 +38,7 @@ package sonia.scm.repository; * * @since 1.14 */ -public class RepositoryIsNotArchivedException extends RepositoryException { +public class RepositoryIsNotArchivedException extends RuntimeException { private static final long serialVersionUID = 7728748133123987511L; diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryManager.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryManager.java index 4fc9db5c32..2c4d958d8d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryManager.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryManager.java @@ -35,6 +35,7 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import sonia.scm.AlreadyExistsException; import sonia.scm.TypeManager; import javax.servlet.http.HttpServletRequest; @@ -52,7 +53,7 @@ import java.util.Collection; * @apiviz.uses sonia.scm.repository.RepositoryHandler */ public interface RepositoryManager - extends TypeManager<Repository, RepositoryHandler, RepositoryException> + extends TypeManager<Repository, RepositoryHandler> { /** @@ -72,10 +73,8 @@ public interface RepositoryManager * @param repository {@link Repository} to import * * @throws IOException - * @throws RepositoryException */ - public void importRepository(Repository repository) - throws IOException, RepositoryException; + public void importRepository(Repository repository) throws IOException, AlreadyExistsException; //~--- get methods ---------------------------------------------------------- diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryManagerDecorator.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryManagerDecorator.java index b504359bc0..aa4117af34 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryManagerDecorator.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryManagerDecorator.java @@ -35,6 +35,7 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import sonia.scm.AlreadyExistsException; import sonia.scm.ManagerDecorator; import sonia.scm.Type; @@ -51,7 +52,7 @@ import java.util.Collection; * @since 1.23 */ public class RepositoryManagerDecorator - extends ManagerDecorator<Repository, RepositoryException> + extends ManagerDecorator<Repository> implements RepositoryManager { @@ -82,9 +83,7 @@ public class RepositoryManagerDecorator * {@inheritDoc} */ @Override - public void importRepository(Repository repository) - throws IOException, RepositoryException - { + public void importRepository(Repository repository) throws IOException, AlreadyExistsException { decorated.importRepository(repository); } diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryNotFoundException.java index 11f1a98bfd..070221117a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryNotFoundException.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryNotFoundException.java @@ -33,13 +33,15 @@ package sonia.scm.repository; +import sonia.scm.NotFoundException; + /** * Signals that the specified {@link Repository} could be found. * * @author Sebastian Sdorra * @since 1.6 */ -public class RepositoryNotFoundException extends RepositoryException +public class RepositoryNotFoundException extends NotFoundException { /** Field description */ @@ -53,10 +55,10 @@ public class RepositoryNotFoundException extends RepositoryException * */ public RepositoryNotFoundException(Repository repository) { - super("repository " + repository.getName() + "/" + repository.getNamespace() + " does not exist"); + super("repository", repository.getName() + "/" + repository.getNamespace()); } public RepositoryNotFoundException(String repositoryId) { - super("repository with id " + repositoryId + " does not exist"); + super("repository", repositoryId); } } diff --git a/scm-core/src/main/java/sonia/scm/repository/RepositoryRequestListener.java b/scm-core/src/main/java/sonia/scm/repository/RepositoryRequestListener.java index 219aa9cee2..409052fe19 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RepositoryRequestListener.java +++ b/scm-core/src/main/java/sonia/scm/repository/RepositoryRequestListener.java @@ -37,12 +37,11 @@ package sonia.scm.repository; import sonia.scm.plugin.ExtensionPoint; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +//~--- JDK imports ------------------------------------------------------------ /** * Listener before a repository request is executed. Repository request are @@ -68,10 +67,6 @@ public interface RepositoryRequestListener * * @return false to abort the request * @throws IOException - * @throws RepositoryException */ - public boolean handleRequest(HttpServletRequest request, - HttpServletResponse response, - Repository repository) - throws IOException, RepositoryException; + boolean handleRequest(HttpServletRequest request, HttpServletResponse response, Repository repository) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/RevisionNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/RevisionNotFoundException.java index a0fbd3f6a4..4185e3223d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/RevisionNotFoundException.java +++ b/scm-core/src/main/java/sonia/scm/repository/RevisionNotFoundException.java @@ -35,6 +35,7 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import sonia.scm.NotFoundException; import sonia.scm.util.Util; /** @@ -42,8 +43,7 @@ import sonia.scm.util.Util; * * @author Sebastian Sdorra */ -public class RevisionNotFoundException extends RepositoryException -{ +public class RevisionNotFoundException extends NotFoundException { /** Field description */ private static final long serialVersionUID = -5594008535358811998L; @@ -59,7 +59,7 @@ public class RevisionNotFoundException extends RepositoryException */ public RevisionNotFoundException(String revision) { - super("revision \"".concat(Util.nonNull(revision)).concat("\" not found")); + super("revision", revision); this.revision = Util.nonNull(revision); } diff --git a/scm-core/src/main/java/sonia/scm/repository/SubRepository.java b/scm-core/src/main/java/sonia/scm/repository/SubRepository.java index 3c8acc4831..55ff0e2269 100644 --- a/scm-core/src/main/java/sonia/scm/repository/SubRepository.java +++ b/scm-core/src/main/java/sonia/scm/repository/SubRepository.java @@ -35,16 +35,16 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * @since 1.10 @@ -157,7 +157,7 @@ public class SubRepository implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("repositoryUrl", repositoryUrl) .add("browserUrl", browserUrl) .add("revision", revision) diff --git a/scm-core/src/main/java/sonia/scm/repository/Tag.java b/scm-core/src/main/java/sonia/scm/repository/Tag.java index 4fc246e0c5..ae436c1a7a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Tag.java +++ b/scm-core/src/main/java/sonia/scm/repository/Tag.java @@ -34,14 +34,15 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * Represents a tag in a repository. * @@ -124,7 +125,7 @@ public final class Tag public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("revision", revision) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/Tags.java b/scm-core/src/main/java/sonia/scm/repository/Tags.java index fd38b421a5..e89ed314ea 100644 --- a/scm-core/src/main/java/sonia/scm/repository/Tags.java +++ b/scm-core/src/main/java/sonia/scm/repository/Tags.java @@ -34,18 +34,18 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.Lists; -//~--- JDK imports ------------------------------------------------------------ - -import java.util.Iterator; -import java.util.List; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.util.Iterator; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * Represents all tags of a repository. @@ -138,7 +138,7 @@ public final class Tags implements Iterable<Tag> public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("tags", tags) .toString(); //J+ diff --git a/scm-core/src/main/java/sonia/scm/repository/api/AbstractBundleOrUnbundleCommandResponse.java b/scm-core/src/main/java/sonia/scm/repository/api/AbstractBundleOrUnbundleCommandResponse.java index 36ae6f89ad..d1d7ef5045 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/AbstractBundleOrUnbundleCommandResponse.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/AbstractBundleOrUnbundleCommandResponse.java @@ -33,8 +33,8 @@ package sonia.scm.repository.api; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - /** * Abstract class for bundle or unbundle command. * @@ -95,7 +95,7 @@ public abstract class AbstractBundleOrUnbundleCommandResponse public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("changesetCount", changesetCount) .toString(); //J+ diff --git a/scm-core/src/main/java/sonia/scm/repository/api/BlameCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/BlameCommandBuilder.java index 203a01b331..5a34345dce 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/BlameCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/BlameCommandBuilder.java @@ -38,25 +38,22 @@ package sonia.scm.repository.api; import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.base.Strings; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.cache.Cache; import sonia.scm.cache.CacheManager; import sonia.scm.repository.BlameResult; import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryCacheKey; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.BlameCommand; import sonia.scm.repository.spi.BlameCommandRequest; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * Shows changeset information by line for a given file. * Blame is also known as annotate in some SCM systems.<br /> @@ -138,10 +135,9 @@ public final class BlameCommandBuilder * @throws IllegalArgumentException if the path is null or empty * * @throws IOException - * @throws RepositoryException */ public BlameResult getBlameResult(String path) - throws IOException, RepositoryException + throws IOException { Preconditions.checkArgument(!Strings.isNullOrEmpty(path), "path is required"); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/BranchesCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/BranchesCommandBuilder.java index 5a456de936..968f9ba39d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/BranchesCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/BranchesCommandBuilder.java @@ -40,8 +40,6 @@ import sonia.scm.repository.Branch; import sonia.scm.repository.Branches; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryCacheKey; -import sonia.scm.repository.RepositoryException; -import sonia.scm.repository.spi.BlameCommand; import sonia.scm.repository.spi.BranchesCommand; import java.io.IOException; @@ -80,10 +78,8 @@ public final class BranchesCommandBuilder * only be called from the {@link RepositoryService}. * * @param cacheManager cache manager - * @param blameCommand implementation of the {@link BlameCommand} - * @param branchesCommand + * @param branchesCommand implementation of the {@link BranchesCommand} * @param repository repository to query - * @param preProcessorUtil */ BranchesCommandBuilder(CacheManager cacheManager, BranchesCommand branchesCommand, Repository repository) @@ -102,9 +98,8 @@ public final class BranchesCommandBuilder * @return branches from the repository * * @throws IOException - * @throws RepositoryException */ - public Branches getBranches() throws RepositoryException, IOException + public Branches getBranches() throws IOException { Branches branches; @@ -173,10 +168,9 @@ public final class BranchesCommandBuilder * @return * * @throws IOException - * @throws RepositoryException */ private Branches getBranchesFromCommand() - throws RepositoryException, IOException + throws IOException { return new Branches(branchesCommand.getBranches()); } diff --git a/scm-core/src/main/java/sonia/scm/repository/api/BrowseCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/BrowseCommandBuilder.java index 655b7d4816..eeae45b893 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/BrowseCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/BrowseCommandBuilder.java @@ -36,10 +36,8 @@ package sonia.scm.repository.api; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Objects; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.cache.Cache; import sonia.scm.cache.CacheManager; import sonia.scm.repository.BrowserResult; @@ -48,18 +46,17 @@ import sonia.scm.repository.FileObjectNameComparator; import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryCacheKey; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.spi.BrowseCommand; import sonia.scm.repository.spi.BrowseCommandRequest; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.io.Serializable; - import java.util.Collections; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * BrowseCommandBuilder is able to browse the files of a {@link Repository}. * <br /><br /> @@ -100,7 +97,7 @@ public final class BrowseCommandBuilder * only be called from the {@link RepositoryService}. * * @param cacheManager cache manager - * @param logCommand implementation of the {@link LogCommand} + * @param browseCommand implementation of the {@link BrowseCommand} * @param browseCommand * @param repository repository to query * @param preProcessorUtil @@ -140,11 +137,8 @@ public final class BrowseCommandBuilder * @return files for the given parameters * * @throws IOException - * @throws RepositoryException */ - public BrowserResult getBrowserResult() - throws IOException, RepositoryException - { + public BrowserResult getBrowserResult() throws IOException, RevisionNotFoundException { BrowserResult result = null; if (disableCache) diff --git a/scm-core/src/main/java/sonia/scm/repository/api/BundleCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/BundleCommandBuilder.java index 4a25c0df50..4fed0a7b60 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/BundleCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/BundleCommandBuilder.java @@ -37,23 +37,21 @@ package sonia.scm.repository.api; import com.google.common.io.ByteSink; import com.google.common.io.Files; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.BundleCommand; import sonia.scm.repository.spi.BundleCommandRequest; -import static com.google.common.base.Preconditions.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; import java.io.OutputStream; +import static com.google.common.base.Preconditions.checkArgument; +import static com.google.common.base.Preconditions.checkNotNull; + +//~--- JDK imports ------------------------------------------------------------ + /** * The bundle command dumps a repository to a byte source such as a file. The * created bundle can be restored to an empty repository with the @@ -94,11 +92,8 @@ public final class BundleCommandBuilder * @return bundle response * * @throws IOException - * @throws RepositoryException */ - public BundleResponse bundle(File outputFile) - throws IOException, RepositoryException - { + public BundleResponse bundle(File outputFile) throws IOException { checkArgument((outputFile != null) &&!outputFile.exists(), "file is null or exists already"); @@ -120,10 +115,9 @@ public final class BundleCommandBuilder * @return bundle response * * @throws IOException - * @throws RepositoryException */ public BundleResponse bundle(OutputStream outputStream) - throws IOException, RepositoryException + throws IOException { checkNotNull(outputStream, "output stream is required"); @@ -141,10 +135,9 @@ public final class BundleCommandBuilder * @return bundle response * * @throws IOException - * @throws RepositoryException */ public BundleResponse bundle(ByteSink sink) - throws IOException, RepositoryException + throws IOException { checkNotNull(sink, "byte sink is required"); logger.info("bundle {} to byte sink"); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/CatCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/CatCommandBuilder.java index 270b996635..bf896efed8 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/CatCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/CatCommandBuilder.java @@ -37,8 +37,9 @@ import com.google.common.base.Preconditions; import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.repository.PathNotFoundException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.spi.CatCommand; import sonia.scm.repository.spi.CatCommandRequest; import sonia.scm.util.IOUtil; @@ -106,7 +107,7 @@ public final class CatCommandBuilder * @param outputStream output stream for the content * @param path file path */ - public void retriveContent(OutputStream outputStream, String path) throws IOException, RepositoryException { + public void retriveContent(OutputStream outputStream, String path) throws IOException, PathNotFoundException, RevisionNotFoundException { getCatResult(outputStream, path); } @@ -115,7 +116,7 @@ public final class CatCommandBuilder * * @param path file path */ - public InputStream getStream(String path) throws IOException, RepositoryException { + public InputStream getStream(String path) throws IOException, PathNotFoundException, RevisionNotFoundException { Preconditions.checkArgument(!Strings.isNullOrEmpty(path), "path is required"); @@ -137,10 +138,8 @@ public final class CatCommandBuilder * @return content of the file * * @throws IOException - * @throws RepositoryException */ - public String getContent(String path) throws IOException, RepositoryException - { + public String getContent(String path) throws IOException, PathNotFoundException, RevisionNotFoundException { String content = null; ByteArrayOutputStream baos = null; @@ -185,11 +184,9 @@ public final class CatCommandBuilder * @param path path of the file * * @throws IOException - * @throws RepositoryException */ private void getCatResult(OutputStream outputStream, String path) - throws IOException, RepositoryException - { + throws IOException, PathNotFoundException, RevisionNotFoundException { Preconditions.checkNotNull(outputStream, "OutputStream is required"); Preconditions.checkArgument(!Strings.isNullOrEmpty(path), "path is required"); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/DiffCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/DiffCommandBuilder.java index e1d7ba5f1a..c0e9e3f622 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/DiffCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/DiffCommandBuilder.java @@ -36,21 +36,19 @@ package sonia.scm.repository.api; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Preconditions; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.spi.DiffCommand; import sonia.scm.repository.spi.DiffCommandRequest; import sonia.scm.util.IOUtil; -//~--- JDK imports ------------------------------------------------------------ - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; +//~--- JDK imports ------------------------------------------------------------ + /** * Shows differences between revisions for a specified file or * the entire revision.<br /> @@ -87,9 +85,7 @@ public final class DiffCommandBuilder * Constructs a new {@link DiffCommandBuilder}, this constructor should * only be called from the {@link RepositoryService}. * - * @param implementation of {@link DiffCommand} - * - * @param diffCommand + * @param diffCommand implementation of {@link DiffCommand} */ DiffCommandBuilder(DiffCommand diffCommand) { @@ -107,11 +103,8 @@ public final class DiffCommandBuilder * @return {@code this} * * @throws IOException - * @throws RepositoryException */ - public DiffCommandBuilder retriveContent(OutputStream outputStream) - throws IOException, RepositoryException - { + public DiffCommandBuilder retriveContent(OutputStream outputStream) throws IOException, RevisionNotFoundException { getDiffResult(outputStream); return this; @@ -125,10 +118,8 @@ public final class DiffCommandBuilder * @return content of the difference * * @throws IOException - * @throws RepositoryException */ - public String getContent() throws IOException, RepositoryException - { + public String getContent() throws IOException, RevisionNotFoundException { String content = null; ByteArrayOutputStream baos = null; @@ -205,14 +196,10 @@ public final class DiffCommandBuilder * * * @param outputStream - * @param path * * @throws IOException - * @throws RepositoryException */ - private void getDiffResult(OutputStream outputStream) - throws IOException, RepositoryException - { + private void getDiffResult(OutputStream outputStream) throws IOException, RevisionNotFoundException { Preconditions.checkNotNull(outputStream, "OutputStream is required"); Preconditions.checkArgument(request.isValid(), "path and/or revision is required"); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/IncomingCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/IncomingCommandBuilder.java index 747cb837a0..6c7c620fa4 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/IncomingCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/IncomingCommandBuilder.java @@ -36,22 +36,20 @@ package sonia.scm.repository.api; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; - import sonia.scm.cache.CacheManager; import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.PermissionType; import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.IncomingCommand; import sonia.scm.repository.spi.IncomingCommandRequest; import sonia.scm.security.RepositoryPermission; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * The incoming command shows new {@link Changeset}s found in a different * repository location. @@ -66,8 +64,6 @@ public final class IncomingCommandBuilder * Constructs a new {@link IncomingCommandBuilder}, this constructor should * only be called from the {@link RepositoryService}. * - * @param cacheManager cache manager - * * @param cacheManger * @param command implementation of the {@link IncomingCommand} * @param repository repository to query @@ -91,11 +87,10 @@ public final class IncomingCommandBuilder * @return incoming changesets * * @throws IOException - * @throws RepositoryException */ public ChangesetPagingResult getIncomingChangesets( Repository remoteRepository) - throws IOException, RepositoryException + throws IOException { Subject subject = SecurityUtils.getSubject(); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/LogCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/LogCommandBuilder.java index de5e2b1b9f..1450cf687a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/LogCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/LogCommandBuilder.java @@ -37,10 +37,8 @@ package sonia.scm.repository.api; import com.google.common.base.Objects; import com.google.common.collect.ImmutableList; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.cache.Cache; import sonia.scm.cache.CacheManager; import sonia.scm.repository.Changeset; @@ -48,15 +46,15 @@ import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryCacheKey; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.spi.LogCommand; import sonia.scm.repository.spi.LogCommandRequest; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * LogCommandBuilder is able to show the history of a file in a * {@link Repository} or the entire history of a {@link Repository}. @@ -166,11 +164,8 @@ public final class LogCommandBuilder * @return the {@link Changeset} with the given id or null * * @throws IOException - * @throws RepositoryException */ - public Changeset getChangeset(String id) - throws IOException, RepositoryException - { + public Changeset getChangeset(String id) throws IOException, RevisionNotFoundException { Changeset changeset; if (disableCache) @@ -228,11 +223,8 @@ public final class LogCommandBuilder * @return all changesets with the given parameters * * @throws IOException - * @throws RepositoryException */ - public ChangesetPagingResult getChangesets() - throws IOException, RepositoryException - { + public ChangesetPagingResult getChangesets() throws IOException, RevisionNotFoundException { ChangesetPagingResult cpr; if (disableCache) diff --git a/scm-core/src/main/java/sonia/scm/repository/api/OutgoingCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/OutgoingCommandBuilder.java index def8c3ae7f..2753128eac 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/OutgoingCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/OutgoingCommandBuilder.java @@ -30,7 +30,6 @@ */ package sonia.scm.repository.api; -import java.io.IOException; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; import sonia.scm.cache.CacheManager; @@ -38,11 +37,12 @@ import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.PermissionType; import sonia.scm.repository.PreProcessorUtil; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.OutgoingCommand; import sonia.scm.repository.spi.OutgoingCommandRequest; import sonia.scm.security.RepositoryPermission; +import java.io.IOException; + /** * Show changesets not found in a remote repository. * @@ -62,7 +62,7 @@ public final class OutgoingCommandBuilder * @param repository repository to query * @param preProcessorUtil pre processor util */ - OutgoingCommandBuilder(CacheManager cacheManger, OutgoingCommand command, + OutgoingCommandBuilder(CacheManager cacheManager, OutgoingCommand command, Repository repository, PreProcessorUtil preProcessorUtil) { this.command = command; @@ -80,7 +80,7 @@ public final class OutgoingCommandBuilder * @return outgoing changesets */ public ChangesetPagingResult getOutgoingChangesets( - Repository remoteRepository) throws IOException, RepositoryException + Repository remoteRepository) throws IOException { Subject subject = SecurityUtils.getSubject(); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/PullCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/PullCommandBuilder.java index 528c93eef9..a0f5ff4115 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/PullCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/PullCommandBuilder.java @@ -36,22 +36,19 @@ package sonia.scm.repository.api; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.PermissionType; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.PullCommand; import sonia.scm.repository.spi.PullCommandRequest; import sonia.scm.security.RepositoryPermission; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.net.URL; +//~--- JDK imports ------------------------------------------------------------ + /** * The pull command pull changes from a other repository. * @@ -93,13 +90,10 @@ public final class PullCommandBuilder * @return informations over the executed pull command * * @throws IOException - * @throws RepositoryException - * + * * @since 1.43 */ - public PullResponse pull(String url) - throws IOException, RepositoryException - { + public PullResponse pull(String url) throws IOException { Subject subject = SecurityUtils.getSubject(); //J- subject.checkPermission( @@ -125,11 +119,8 @@ public final class PullCommandBuilder * @return informations over the executed pull command * * @throws IOException - * @throws RepositoryException */ - public PullResponse pull(Repository remoteRepository) - throws IOException, RepositoryException - { + public PullResponse pull(Repository remoteRepository) throws IOException { Subject subject = SecurityUtils.getSubject(); //J- diff --git a/scm-core/src/main/java/sonia/scm/repository/api/PushCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/PushCommandBuilder.java index fabe938ff7..7b318e49ec 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/PushCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/PushCommandBuilder.java @@ -37,23 +37,19 @@ package sonia.scm.repository.api; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.PermissionType; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.PushCommand; import sonia.scm.repository.spi.PushCommandRequest; import sonia.scm.security.RepositoryPermission; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.net.URL; +//~--- JDK imports ------------------------------------------------------------ + /** * The push command push changes to a other repository. * @@ -91,11 +87,8 @@ public final class PushCommandBuilder * @return informations of the executed push command * * @throws IOException - * @throws RepositoryException */ - public PushResponse push(Repository remoteRepository) - throws IOException, RepositoryException - { + public PushResponse push(Repository remoteRepository) throws IOException { Subject subject = SecurityUtils.getSubject(); //J- @@ -120,12 +113,10 @@ public final class PushCommandBuilder * @return informations of the executed push command * * @throws IOException - * @throws RepositoryException * * @since 1.43 */ - public PushResponse push(String url) throws IOException, RepositoryException - { + public PushResponse push(String url) throws IOException { URL remoteUrl = new URL(url); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/RepositoryServiceFactory.java b/scm-core/src/main/java/sonia/scm/repository/api/RepositoryServiceFactory.java index 2e4ff644f4..627e57a797 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/RepositoryServiceFactory.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/RepositoryServiceFactory.java @@ -167,9 +167,7 @@ public final class RepositoryServiceFactory * @throws ScmSecurityException if current user has not read permissions * for that repository */ - public RepositoryService create(String repositoryId) - throws RepositoryNotFoundException - { + public RepositoryService create(String repositoryId) throws RepositoryNotFoundException { Preconditions.checkArgument(!Strings.isNullOrEmpty(repositoryId), "a non empty repositoryId is required"); @@ -328,7 +326,6 @@ public final class RepositoryServiceFactory /** * Clear caches on repository delete event. * - * @param repository changed repository * @param event repository event */ @Subscribe(referenceType = ReferenceType.STRONG) diff --git a/scm-core/src/main/java/sonia/scm/repository/api/TagsCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/TagsCommandBuilder.java index 65ceef0828..3a6ea16b10 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/TagsCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/TagsCommandBuilder.java @@ -36,25 +36,21 @@ package sonia.scm.repository.api; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Objects; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.cache.Cache; import sonia.scm.cache.CacheManager; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryCacheKey; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.Tag; import sonia.scm.repository.Tags; import sonia.scm.repository.spi.TagsCommand; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * The tags command list all repository tags.<br /> * <br /> @@ -88,8 +84,7 @@ public final class TagsCommandBuilder * only be called from the {@link RepositoryService}. * * @param cacheManager cache manager - * @param logCommand implementation of the {@link TagsCommand} - * @param command + * @param command implementation of the {@link TagsCommand} * @param repository repository */ TagsCommandBuilder(CacheManager cacheManager, TagsCommand command, @@ -109,10 +104,8 @@ public final class TagsCommandBuilder * @return tags from the repository * * @throws IOException - * @throws RepositoryException */ - public Tags getTags() throws RepositoryException, IOException - { + public Tags getTags() throws IOException { Tags tags; if (disableCache) @@ -183,9 +176,8 @@ public final class TagsCommandBuilder * @return * * @throws IOException - * @throws RepositoryException */ - private Tags getTagsFromCommand() throws RepositoryException, IOException + private Tags getTagsFromCommand() throws IOException { List<Tag> tagList = command.getTags(); diff --git a/scm-core/src/main/java/sonia/scm/repository/api/UnbundleCommandBuilder.java b/scm-core/src/main/java/sonia/scm/repository/api/UnbundleCommandBuilder.java index ff28e5c668..bfb998c6fe 100644 --- a/scm-core/src/main/java/sonia/scm/repository/api/UnbundleCommandBuilder.java +++ b/scm-core/src/main/java/sonia/scm/repository/api/UnbundleCommandBuilder.java @@ -37,25 +37,22 @@ package sonia.scm.repository.api; import com.google.common.io.ByteSource; import com.google.common.io.Files; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.UnbundleCommand; import sonia.scm.repository.spi.UnbundleCommandRequest; -import static com.google.common.base.Preconditions.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; import java.io.InputStream; - import java.util.zip.GZIPInputStream; +import static com.google.common.base.Preconditions.checkArgument; +import static com.google.common.base.Preconditions.checkNotNull; + +//~--- JDK imports ------------------------------------------------------------ + /** * The unbundle command can restore an empty repository from a bundle. The * bundle can be created with the {@link BundleCommandBuilder}. @@ -97,10 +94,9 @@ public final class UnbundleCommandBuilder * @return unbundle response * * @throws IOException - * @throws RepositoryException */ public UnbundleResponse unbundle(File inputFile) - throws IOException, RepositoryException + throws IOException { checkArgument((inputFile != null) && inputFile.exists(), "existing file is required"); @@ -122,10 +118,9 @@ public final class UnbundleCommandBuilder * @return unbundle response * * @throws IOException - * @throws RepositoryException */ public UnbundleResponse unbundle(InputStream inputStream) - throws IOException, RepositoryException + throws IOException { checkNotNull(inputStream, "input stream is required"); logger.info("unbundle archive from stream"); @@ -142,10 +137,9 @@ public final class UnbundleCommandBuilder * @return unbundle response * * @throws IOException - * @throws RepositoryException */ public UnbundleResponse unbundle(ByteSource byteSource) - throws IOException, RepositoryException + throws IOException { checkNotNull(byteSource, "byte source is required"); logger.info("unbundle from byte source"); @@ -186,7 +180,7 @@ public final class UnbundleCommandBuilder { @Override - public InputStream openStream() throws IOException + public InputStream openStream() { return inputStream; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/BlameCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/BlameCommand.java index 80c155a534..9953746fd1 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/BlameCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/BlameCommand.java @@ -36,12 +36,11 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import sonia.scm.repository.BlameResult; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -59,8 +58,6 @@ public interface BlameCommand * @return * * @throws IOException - * @throws RepositoryException */ - public BlameResult getBlameResult(BlameCommandRequest request) - throws IOException, RepositoryException; + BlameResult getBlameResult(BlameCommandRequest request) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/BranchesCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/BranchesCommand.java index a5659a8ffc..ba512ed4d2 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/BranchesCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/BranchesCommand.java @@ -35,14 +35,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import sonia.scm.repository.Branch; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -58,7 +56,6 @@ public interface BranchesCommand * @return * * @throws IOException - * @throws RepositoryException */ - public List<Branch> getBranches() throws RepositoryException, IOException; + List<Branch> getBranches() throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommand.java index 4afc02b125..2c9fff589c 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommand.java @@ -36,12 +36,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import sonia.scm.repository.BrowserResult; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -59,8 +59,5 @@ public interface BrowseCommand * @return * * @throws IOException - * @throws RepositoryException */ - public BrowserResult getBrowserResult(BrowseCommandRequest request) - throws IOException, RepositoryException; -} + BrowserResult getBrowserResult(BrowseCommandRequest request) throws IOException, RevisionNotFoundException;} diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommandRequest.java b/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommandRequest.java index 2f7c007959..39da9a9ace 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommandRequest.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/BrowseCommandRequest.java @@ -35,8 +35,8 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - /** * * @author Sebastian Sdorra @@ -127,7 +127,7 @@ public final class BrowseCommandRequest extends FileBaseCommandRequest public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("path", getPath()) .add("revision", getRevision()) .add("recursive", recursive) diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/BundleCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/BundleCommand.java index 8a0f21a714..7b6404c556 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/BundleCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/BundleCommand.java @@ -35,13 +35,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.BundleResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * Service provider implementation for the bundle command. * @@ -60,8 +59,7 @@ public interface BundleCommand * @return bundle response * * @throws IOException - * @throws RepositoryException */ public BundleResponse bundle(BundleCommandRequest request) - throws IOException, RepositoryException; + throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/CatCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/CatCommand.java index e0e336f2ff..06f242783b 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/CatCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/CatCommand.java @@ -33,7 +33,8 @@ package sonia.scm.repository.spi; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.PathNotFoundException; +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; import java.io.InputStream; @@ -46,7 +47,7 @@ import java.io.OutputStream; */ public interface CatCommand { - void getCatResult(CatCommandRequest request, OutputStream output) throws IOException, RepositoryException; + void getCatResult(CatCommandRequest request, OutputStream output) throws IOException, RevisionNotFoundException, PathNotFoundException; - InputStream getCatResultStream(CatCommandRequest request) throws IOException, RepositoryException; + InputStream getCatResultStream(CatCommandRequest request) throws IOException, RevisionNotFoundException, PathNotFoundException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/DiffCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/DiffCommand.java index a4d0c24444..105f4e48e1 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/DiffCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/DiffCommand.java @@ -33,11 +33,7 @@ package sonia.scm.repository.spi; -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; import java.io.OutputStream; @@ -59,8 +55,6 @@ public interface DiffCommand * * @throws IOException * @throws RuntimeException - * @throws RepositoryException */ - public void getDiffResult(DiffCommandRequest request, OutputStream output) - throws IOException, RepositoryException; + public void getDiffResult(DiffCommandRequest request, OutputStream output) throws IOException, RevisionNotFoundException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/FileBaseCommandRequest.java b/scm-core/src/main/java/sonia/scm/repository/spi/FileBaseCommandRequest.java index aec2b7087a..9f563345fd 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/FileBaseCommandRequest.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/FileBaseCommandRequest.java @@ -35,12 +35,13 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -115,7 +116,7 @@ public abstract class FileBaseCommandRequest public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("path", path) .add("revision", revision) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/HookEventFacade.java b/scm-core/src/main/java/sonia/scm/repository/spi/HookEventFacade.java index 93ed5f1111..52ef68f272 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/HookEventFacade.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/HookEventFacade.java @@ -37,7 +37,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryHookEvent; import sonia.scm.repository.RepositoryHookType; import sonia.scm.repository.RepositoryManager; @@ -72,19 +71,18 @@ public final class HookEventFacade //~--- methods -------------------------------------------------------------- - public HookEventHandler handle(String id) throws RepositoryException { + public HookEventHandler handle(String id) throws RepositoryNotFoundException { return handle(repositoryManagerProvider.get().get(id)); } - public HookEventHandler handle(NamespaceAndName namespaceAndName) throws RepositoryException { + public HookEventHandler handle(NamespaceAndName namespaceAndName) throws RepositoryNotFoundException { return handle(repositoryManagerProvider.get().get(namespaceAndName)); } - public HookEventHandler handle(Repository repository) throws RepositoryException - { + public HookEventHandler handle(Repository repository) throws RepositoryNotFoundException { if (repository == null) { - throw new RepositoryNotFoundException("could not find repository"); + throw new RepositoryNotFoundException(repository); } return new HookEventHandler(repositoryManagerProvider.get(), diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/IncomingCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/IncomingCommand.java index 8b3341f77b..669f307acd 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/IncomingCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/IncomingCommand.java @@ -35,12 +35,11 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import sonia.scm.repository.ChangesetPagingResult; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -49,18 +48,5 @@ import java.io.IOException; public interface IncomingCommand { - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - public ChangesetPagingResult getIncomingChangesets( - IncomingCommandRequest request) - throws IOException, RepositoryException; + ChangesetPagingResult getIncomingChangesets(IncomingCommandRequest request) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/LogCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/LogCommand.java index 168c279c19..e4a7f3437b 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/LogCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/LogCommand.java @@ -37,45 +37,20 @@ package sonia.scm.repository.spi; import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra * @since 1.17 */ -public interface LogCommand -{ +public interface LogCommand { - /** - * Method description - * - * - * @param id - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - public Changeset getChangeset(String id) - throws IOException, RepositoryException; + Changeset getChangeset(String id) throws IOException, RevisionNotFoundException; - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - public ChangesetPagingResult getChangesets(LogCommandRequest request) - throws IOException, RepositoryException; + ChangesetPagingResult getChangesets(LogCommandRequest request) throws IOException, RevisionNotFoundException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/LogCommandRequest.java b/scm-core/src/main/java/sonia/scm/repository/spi/LogCommandRequest.java index 1637a92c16..9356bb212a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/LogCommandRequest.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/LogCommandRequest.java @@ -35,12 +35,13 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -125,7 +126,7 @@ public final class LogCommandRequest implements Serializable, Resetable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("startChangeset", startChangeset) .add("endChangeset", endChangeset) .add("pagingStart", pagingStart) diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/OutgoingCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/OutgoingCommand.java index 9e5509e945..c37950abe2 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/OutgoingCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/OutgoingCommand.java @@ -35,12 +35,11 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import sonia.scm.repository.ChangesetPagingResult; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -58,9 +57,6 @@ public interface OutgoingCommand * @return * * @throws IOException - * @throws RepositoryException */ - public ChangesetPagingResult getOutgoingChangesets( - OutgoingCommandRequest request) - throws IOException, RepositoryException; + ChangesetPagingResult getOutgoingChangesets(OutgoingCommandRequest request) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/PagedRemoteCommandRequest.java b/scm-core/src/main/java/sonia/scm/repository/spi/PagedRemoteCommandRequest.java index c07ddb54ef..b6545bdc4d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/PagedRemoteCommandRequest.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/PagedRemoteCommandRequest.java @@ -34,8 +34,8 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - /** * * @author Sebastian Sdorra @@ -84,7 +84,7 @@ public abstract class PagedRemoteCommandRequest extends RemoteCommandRequest { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("remoteURL", remoteRepository) .add("pagingStart", pagingStart) .add("pagingLimit", pagingLimit) diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/PullCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/PullCommand.java index 533f8e1351..e7aa044353 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/PullCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/PullCommand.java @@ -34,13 +34,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PullResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -58,8 +57,6 @@ public interface PullCommand * @return * * @throws IOException - * @throws RepositoryException */ - public PullResponse pull(PullCommandRequest request) - throws IOException, RepositoryException; + PullResponse pull(PullCommandRequest request) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/PushCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/PushCommand.java index c77947937a..9530add4f8 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/PushCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/PushCommand.java @@ -34,13 +34,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PushResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -58,8 +57,6 @@ public interface PushCommand * @return * * @throws IOException - * @throws RepositoryException */ - public PushResponse push(PushCommandRequest request) - throws IOException, RepositoryException; + PushResponse push(PushCommandRequest request) throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/RemoteCommandRequest.java b/scm-core/src/main/java/sonia/scm/repository/spi/RemoteCommandRequest.java index 0f3cd909d9..bbc902cd2a 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/RemoteCommandRequest.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/RemoteCommandRequest.java @@ -35,14 +35,14 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.repository.Repository; -//~--- JDK imports ------------------------------------------------------------ - import java.net.URL; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -101,7 +101,7 @@ public abstract class RemoteCommandRequest implements Resetable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("remoteRepository", remoteRepository) .add("remoteUrl", remoteUrl) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/TagsCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/TagsCommand.java index 5de358d94f..c2e6c9092d 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/TagsCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/TagsCommand.java @@ -34,15 +34,13 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.Tag; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -57,7 +55,6 @@ public interface TagsCommand * @return * * @throws IOException - * @throws RepositoryException */ - public List<Tag> getTags() throws RepositoryException, IOException; + public List<Tag> getTags() throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/repository/spi/UnbundleCommand.java b/scm-core/src/main/java/sonia/scm/repository/spi/UnbundleCommand.java index 4777e0c11b..07e35e2715 100644 --- a/scm-core/src/main/java/sonia/scm/repository/spi/UnbundleCommand.java +++ b/scm-core/src/main/java/sonia/scm/repository/spi/UnbundleCommand.java @@ -35,13 +35,12 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.UnbundleResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * Service provider implementation for the unbundle command. * @@ -60,8 +59,7 @@ public interface UnbundleCommand * @return unbundle response * * @throws IOException - * @throws RepositoryException */ public UnbundleResponse unbundle(UnbundleCommandRequest request) - throws IOException, RepositoryException; + throws IOException; } diff --git a/scm-core/src/main/java/sonia/scm/security/AssignedPermission.java b/scm-core/src/main/java/sonia/scm/security/AssignedPermission.java index fc9083d13a..56b8d04a41 100644 --- a/scm-core/src/main/java/sonia/scm/security/AssignedPermission.java +++ b/scm-core/src/main/java/sonia/scm/security/AssignedPermission.java @@ -34,16 +34,16 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * Permission object which is assigned to a specific user or group. @@ -150,7 +150,7 @@ public class AssignedPermission implements PermissionObject, Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("groupPermisison", groupPermission) .add("permission", permission) diff --git a/scm-core/src/main/java/sonia/scm/security/DAORealmHelper.java b/scm-core/src/main/java/sonia/scm/security/DAORealmHelper.java index 87ccfaf4cc..3fcab8762c 100644 --- a/scm-core/src/main/java/sonia/scm/security/DAORealmHelper.java +++ b/scm-core/src/main/java/sonia/scm/security/DAORealmHelper.java @@ -33,11 +33,10 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.base.Strings; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet.Builder; - import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; @@ -47,10 +46,8 @@ import org.apache.shiro.authc.UnknownAccountException; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.authc.credential.CredentialsMatcher; import org.apache.shiro.subject.SimplePrincipalCollection; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.group.Group; import sonia.scm.group.GroupDAO; import sonia.scm.group.GroupNames; @@ -161,7 +158,7 @@ public final class DAORealmHelper collection.add(principal, realm); collection.add(user, realm); collection.add(collectGroups(principal), realm); - collection.add(Objects.firstNonNull(scope, Scope.empty()), realm); + collection.add(MoreObjects.firstNonNull(scope, Scope.empty()), realm); String creds = credentials; diff --git a/scm-core/src/main/java/sonia/scm/security/PermissionDescriptor.java b/scm-core/src/main/java/sonia/scm/security/PermissionDescriptor.java index 5cd5520d61..20d95958a1 100644 --- a/scm-core/src/main/java/sonia/scm/security/PermissionDescriptor.java +++ b/scm-core/src/main/java/sonia/scm/security/PermissionDescriptor.java @@ -34,16 +34,16 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * Descriptor for available permission objects. @@ -125,7 +125,7 @@ public class PermissionDescriptor implements Serializable { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("displayName", displayName) .add("description", description) .add("value", value) diff --git a/scm-core/src/main/java/sonia/scm/security/RepositoryPermission.java b/scm-core/src/main/java/sonia/scm/security/RepositoryPermission.java index f697e82dfd..1b0229d6f5 100644 --- a/scm-core/src/main/java/sonia/scm/security/RepositoryPermission.java +++ b/scm-core/src/main/java/sonia/scm/security/RepositoryPermission.java @@ -35,17 +35,16 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import org.apache.shiro.authz.Permission; - import sonia.scm.repository.PermissionType; import sonia.scm.repository.Repository; -//~--- JDK imports ------------------------------------------------------------ - import java.io.Serializable; +//~--- JDK imports ------------------------------------------------------------ + /** * This class represents the permission to a repository of a user. * @@ -174,7 +173,7 @@ public final class RepositoryPermission public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("repositoryId", repositoryId) .add("permissionType", permissionType) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/security/StoredAssignedPermissionEvent.java b/scm-core/src/main/java/sonia/scm/security/StoredAssignedPermissionEvent.java index acd7d62052..ad93bf25a9 100644 --- a/scm-core/src/main/java/sonia/scm/security/StoredAssignedPermissionEvent.java +++ b/scm-core/src/main/java/sonia/scm/security/StoredAssignedPermissionEvent.java @@ -34,14 +34,14 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.HandlerEventType; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.event.Event; import java.io.Serializable; -import sonia.scm.event.Event; + +//~--- JDK imports ------------------------------------------------------------ /** * Event which is fired after a {@link StoredAssignedPermission} was added, @@ -114,7 +114,7 @@ public final class StoredAssignedPermissionEvent implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("type", type) .add("permission", permission) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/security/SyncingRealmHelper.java b/scm-core/src/main/java/sonia/scm/security/SyncingRealmHelper.java index 9e0c97f234..0e3c06e32d 100644 --- a/scm-core/src/main/java/sonia/scm/security/SyncingRealmHelper.java +++ b/scm-core/src/main/java/sonia/scm/security/SyncingRealmHelper.java @@ -30,17 +30,18 @@ package sonia.scm.security; import com.google.common.collect.ImmutableList; import com.google.inject.Inject; -import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.subject.SimplePrincipalCollection; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; +import sonia.scm.NotFoundException; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.group.GroupNames; import sonia.scm.plugin.Extension; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.security.AdministrationContext; @@ -56,6 +57,8 @@ import java.util.Collection; @Extension public final class SyncingRealmHelper { + private static final Logger LOG = LoggerFactory.getLogger(SyncingRealmHelper.class); + private final AdministrationContext ctx; private final GroupManager groupManager; @@ -121,17 +124,19 @@ public final class SyncingRealmHelper { */ public void store(final Group group) { ctx.runAsAdmin(() -> { - try { - if (groupManager.get(group.getId()) != null) { + if (groupManager.get(group.getId()) != null) { + try { groupManager.modify(group); + } catch (NotFoundException e) { + throw new IllegalStateException("got NotFoundException though group " + group.getName() + " could be loaded", e); } - else { + } else { + try { groupManager.create(group); + } catch (AlreadyExistsException e) { + throw new IllegalStateException("got AlreadyExistsException though group " + group.getName() + " could not be loaded", e); } } - catch (GroupException ex) { - throw new AuthenticationException("could not store group", ex); - } }); } @@ -142,17 +147,20 @@ public final class SyncingRealmHelper { */ public void store(final User user) { ctx.runAsAdmin(() -> { - try { - if (userManager.contains(user.getName())) { + if (userManager.contains(user.getName())) { + try { userManager.modify(user); + } catch (NotFoundException e) { + throw new IllegalStateException("got NotFoundException though user " + user.getName() + " could be loaded", e); } - else { + } else { + try { userManager.create(user); + } catch (AlreadyExistsException e) { + throw new IllegalStateException("got AlreadyExistsException though user " + user.getName() + " could not be loaded", e); + } } - catch (UserException ex) { - throw new AuthenticationException("could not store user", ex); - } - }); + }); + } } -} diff --git a/scm-core/src/main/java/sonia/scm/template/Viewable.java b/scm-core/src/main/java/sonia/scm/template/Viewable.java index 8344d2820e..47fd8af57b 100644 --- a/scm-core/src/main/java/sonia/scm/template/Viewable.java +++ b/scm-core/src/main/java/sonia/scm/template/Viewable.java @@ -30,9 +30,9 @@ */ package sonia.scm.template; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - /** * A viewable holds the path to a template and the context object which is used to render the template. Viewables can * be used as return type of jax-rs resources. @@ -81,7 +81,7 @@ public final class Viewable { @Override public String toString() { - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("path", path) .add("context", context) .toString(); diff --git a/scm-core/src/main/java/sonia/scm/user/User.java b/scm-core/src/main/java/sonia/scm/user/User.java index 69c5a5732f..778e573c14 100644 --- a/scm-core/src/main/java/sonia/scm/user/User.java +++ b/scm-core/src/main/java/sonia/scm/user/User.java @@ -37,20 +37,19 @@ package sonia.scm.user; import com.github.sdorra.ssp.PermissionObject; import com.github.sdorra.ssp.StaticPermissions; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.BasicPropertiesAware; import sonia.scm.ModelObject; import sonia.scm.util.Util; import sonia.scm.util.ValidationUtil; -//~--- JDK imports ------------------------------------------------------------ - -import java.security.Principal; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.security.Principal; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -59,7 +58,8 @@ import javax.xml.bind.annotation.XmlRootElement; @StaticPermissions("user") @XmlRootElement(name = "users") @XmlAccessorType(XmlAccessType.FIELD) -public class User extends BasicPropertiesAware implements Principal, ModelObject, PermissionObject +public class +User extends BasicPropertiesAware implements Principal, ModelObject, PermissionObject { /** Field description */ @@ -259,7 +259,7 @@ public class User extends BasicPropertiesAware implements Principal, ModelObject : "(not set)"; //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("displayName",displayName) .add("mail", mail) diff --git a/scm-core/src/main/java/sonia/scm/user/UserAlreadyExistsException.java b/scm-core/src/main/java/sonia/scm/user/UserAlreadyExistsException.java deleted file mode 100644 index 1c77cb4f86..0000000000 --- a/scm-core/src/main/java/sonia/scm/user/UserAlreadyExistsException.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.user; - -/** - * This {@link Exception} is thrown when trying to create a user that already exists. - * - * @author Sebastian Sdorra - */ -public class UserAlreadyExistsException extends UserException -{ - - private static final long serialVersionUID = 9182294539718090814L; - - //~--- constructors --------------------------------------------------------- - - public UserAlreadyExistsException(User user) { - super(user.getName() + " user already exists"); - } -} diff --git a/scm-core/src/main/java/sonia/scm/user/UserException.java b/scm-core/src/main/java/sonia/scm/user/UserException.java deleted file mode 100644 index b8587d5299..0000000000 --- a/scm-core/src/main/java/sonia/scm/user/UserException.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.user; - -/** - * - * @author Sebastian Sdorra - */ -public class UserException extends Exception -{ - - /** Field description */ - private static final long serialVersionUID = 4147943028529739021L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - */ - public UserException() {} - - /** - * Constructs ... - * - * - * @param message - */ - public UserException(String message) - { - super(message); - } - - /** - * Constructs ... - * - * - * @param throwable - */ - public UserException(Throwable throwable) - { - super(throwable); - } - - /** - * Constructs ... - * - * - * @param message - * @param throwable - */ - public UserException(String message, Throwable throwable) - { - super(message, throwable); - } -} diff --git a/scm-core/src/main/java/sonia/scm/user/UserManager.java b/scm-core/src/main/java/sonia/scm/user/UserManager.java index e21eb761dc..0a705c8d60 100644 --- a/scm-core/src/main/java/sonia/scm/user/UserManager.java +++ b/scm-core/src/main/java/sonia/scm/user/UserManager.java @@ -45,7 +45,7 @@ import sonia.scm.search.Searchable; * @author Sebastian Sdorra */ public interface UserManager - extends Manager<User, UserException>, Searchable<User> + extends Manager<User>, Searchable<User> { /** diff --git a/scm-core/src/main/java/sonia/scm/user/UserManagerDecorator.java b/scm-core/src/main/java/sonia/scm/user/UserManagerDecorator.java index 5ea14ca14e..225681f9e6 100644 --- a/scm-core/src/main/java/sonia/scm/user/UserManagerDecorator.java +++ b/scm-core/src/main/java/sonia/scm/user/UserManagerDecorator.java @@ -38,17 +38,17 @@ package sonia.scm.user; import sonia.scm.ManagerDecorator; import sonia.scm.search.SearchRequest; -//~--- JDK imports ------------------------------------------------------------ - import java.util.Collection; +//~--- JDK imports ------------------------------------------------------------ + /** * Decorator for {@link UserManager}. * * @author Sebastian Sdorra * @since 1.23 */ -public class UserManagerDecorator extends ManagerDecorator<User, UserException> +public class UserManagerDecorator extends ManagerDecorator<User> implements UserManager { diff --git a/scm-core/src/main/java/sonia/scm/user/UserNotFoundException.java b/scm-core/src/main/java/sonia/scm/user/UserNotFoundException.java deleted file mode 100644 index 82b1c2abb8..0000000000 --- a/scm-core/src/main/java/sonia/scm/user/UserNotFoundException.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -package sonia.scm.user; - -/** - * The UserNotFoundException is thrown e.g. from the - * modify method of the {@link UserManager}, if the user does not exists. - * - * @author Sebastian Sdorra - * @since 1.28 - */ -public class UserNotFoundException extends UserException -{ - - /** Field description */ - private static final long serialVersionUID = 2560311805598995047L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs a new UserNotFoundException. - * - */ - public UserNotFoundException(User user) { - super("user " + user.getName() + " does not exist"); - } -} diff --git a/scm-core/src/main/java/sonia/scm/util/HttpUtil.java b/scm-core/src/main/java/sonia/scm/util/HttpUtil.java index 30995a0b3c..bc3f4e74cd 100644 --- a/scm-core/src/main/java/sonia/scm/util/HttpUtil.java +++ b/scm-core/src/main/java/sonia/scm/util/HttpUtil.java @@ -37,7 +37,7 @@ package sonia.scm.util; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.CharMatcher; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -700,7 +700,7 @@ public final class HttpUtil { String value = request.getHeader(header); - return Objects.firstNonNull(value, defaultValue); + return MoreObjects.firstNonNull(value, defaultValue); } /** diff --git a/scm-core/src/main/java/sonia/scm/version/Version.java b/scm-core/src/main/java/sonia/scm/version/Version.java index 96f7a9ff07..cdc1a222c0 100644 --- a/scm-core/src/main/java/sonia/scm/version/Version.java +++ b/scm-core/src/main/java/sonia/scm/version/Version.java @@ -39,10 +39,10 @@ import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.collect.ComparisonChain; -//~--- JDK imports ------------------------------------------------------------ - import java.util.Locale; +//~--- JDK imports ------------------------------------------------------------ + /** * Version object for comparing and parsing versions. * diff --git a/scm-core/src/main/java/sonia/scm/web/UserAgent.java b/scm-core/src/main/java/sonia/scm/web/UserAgent.java index 7efd1bd1c2..e501ac8bdf 100644 --- a/scm-core/src/main/java/sonia/scm/web/UserAgent.java +++ b/scm-core/src/main/java/sonia/scm/web/UserAgent.java @@ -36,14 +36,15 @@ package sonia.scm.web; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Charsets; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -import static com.google.common.base.Preconditions.*; +import java.nio.charset.Charset; + +import static com.google.common.base.Preconditions.checkNotNull; //~--- JDK imports ------------------------------------------------------------ -import java.nio.charset.Charset; - /** * The software agent that is acting on behalf of a user. The user agent * represents a browser or one of the repository client (svn, git or hg). @@ -124,7 +125,7 @@ public final class UserAgent public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("browser", browser) .add("basicAuthenticationCharset", basicAuthenticationCharset) diff --git a/scm-core/src/main/java/sonia/scm/web/proxy/ProxyConfiguration.java b/scm-core/src/main/java/sonia/scm/web/proxy/ProxyConfiguration.java index 71e39e13dd..bc30142052 100644 --- a/scm-core/src/main/java/sonia/scm/web/proxy/ProxyConfiguration.java +++ b/scm-core/src/main/java/sonia/scm/web/proxy/ProxyConfiguration.java @@ -34,20 +34,19 @@ package sonia.scm.web.proxy; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.net.URL; - -import java.util.Collections; -import java.util.Set; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; +import java.net.URL; +import java.util.Collections; +import java.util.Set; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -144,7 +143,7 @@ public class ProxyConfiguration public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("url", url) .add("copyRequestHeaders", copyRequestHeaders) .add("requestHeaderExcludes", requestHeaderExcludes) diff --git a/scm-core/src/test/java/sonia/scm/io/DeepCopyTest.java b/scm-core/src/test/java/sonia/scm/io/DeepCopyTest.java index 31a6185182..0f42e87b0c 100644 --- a/scm-core/src/test/java/sonia/scm/io/DeepCopyTest.java +++ b/scm-core/src/test/java/sonia/scm/io/DeepCopyTest.java @@ -34,16 +34,16 @@ package sonia.scm.io; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Objects; - import org.junit.Test; -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.io.Serializable; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotSame; + +//~--- JDK imports ------------------------------------------------------------ + /** * Unit tests for {@link DeepCopy}. * diff --git a/scm-core/src/test/java/sonia/scm/security/SyncingRealmHelperTest.java b/scm-core/src/test/java/sonia/scm/security/SyncingRealmHelperTest.java index 3679a1870b..27ca923902 100644 --- a/scm-core/src/test/java/sonia/scm/security/SyncingRealmHelperTest.java +++ b/scm-core/src/test/java/sonia/scm/security/SyncingRealmHelperTest.java @@ -36,37 +36,35 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Throwables; - -import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; - import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; - +import sonia.scm.AlreadyExistsException; +import sonia.scm.NotFoundException; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.group.GroupNames; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.security.AdministrationContext; import sonia.scm.web.security.PrivilegedAction; -import static org.hamcrest.Matchers.*; +import java.io.IOException; -import static org.junit.Assert.*; - -import static org.mockito.Mockito.*; +import static org.hamcrest.Matchers.hasItem; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertThat; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * Unit tests for {@link SyncingRealmHelper}. * @@ -131,11 +129,10 @@ public class SyncingRealmHelperTest { /** * Tests {@link SyncingRealmHelper#store(Group)}. * - * @throws GroupException * @throws IOException */ @Test - public void testStoreGroupCreate() throws GroupException, IOException { + public void testStoreGroupCreate() throws AlreadyExistsException { Group group = new Group("unit-test", "heartOfGold"); helper.store(group); @@ -143,27 +140,21 @@ public class SyncingRealmHelperTest { } /** - * Tests {@link SyncingRealmHelper#store(Group)} with thrown {@link GroupException}. - * - * @throws GroupException - * @throws IOException + * Tests {@link SyncingRealmHelper#store(Group)}. */ - @Test(expected = AuthenticationException.class) - public void testStoreGroupFailure() throws GroupException, IOException { + @Test(expected = IllegalStateException.class) + public void testStoreGroupFailure() throws AlreadyExistsException { Group group = new Group("unit-test", "heartOfGold"); - doThrow(GroupException.class).when(groupManager).create(group); + doThrow(AlreadyExistsException.class).when(groupManager).create(group); helper.store(group); } /** * Tests {@link SyncingRealmHelper#store(Group)} with an existing group. - * - * @throws GroupException - * @throws IOException */ @Test - public void testStoreGroupModify() throws GroupException, IOException { + public void testStoreGroupModify() throws NotFoundException { Group group = new Group("unit-test", "heartOfGold"); when(groupManager.get("heartOfGold")).thenReturn(group); @@ -175,11 +166,10 @@ public class SyncingRealmHelperTest { /** * Tests {@link SyncingRealmHelper#store(User)}. * - * @throws UserException * @throws IOException */ @Test - public void testStoreUserCreate() throws UserException, IOException { + public void testStoreUserCreate() throws AlreadyExistsException { User user = new User("tricia"); helper.store(user); @@ -187,27 +177,21 @@ public class SyncingRealmHelperTest { } /** - * Tests {@link SyncingRealmHelper#store(User)} with a thrown {@link UserException}. - * - * @throws UserException - * @throws IOException + * Tests {@link SyncingRealmHelper#store(User)} with a thrown {@link AlreadyExistsException}. */ - @Test(expected = AuthenticationException.class) - public void testStoreUserFailure() throws UserException, IOException { + @Test(expected = IllegalStateException.class) + public void testStoreUserFailure() throws AlreadyExistsException { User user = new User("tricia"); - doThrow(UserException.class).when(userManager).create(user); + doThrow(AlreadyExistsException.class).when(userManager).create(user); helper.store(user); } /** * Tests {@link SyncingRealmHelper#store(User)} with an existing user. - * - * @throws UserException - * @throws IOException */ @Test - public void testStoreUserModify() throws UserException, IOException { + public void testStoreUserModify() throws NotFoundException { when(userManager.contains("tricia")).thenReturn(Boolean.TRUE); User user = new User("tricia"); diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java index 87f96f850f..c3436c2395 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java @@ -38,25 +38,21 @@ package sonia.scm.repository; import com.google.common.base.Strings; import com.google.inject.Inject; import com.google.inject.Singleton; - import org.eclipse.jgit.storage.file.FileRepositoryBuilder; - +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import sonia.scm.SCMContextProvider; import sonia.scm.io.FileSystem; import sonia.scm.plugin.Extension; import sonia.scm.repository.spi.GitRepositoryServiceProvider; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.schedule.Scheduler; +import sonia.scm.schedule.Task; +import sonia.scm.store.ConfigurationStoreFactory; import java.io.File; import java.io.IOException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import sonia.scm.SCMContextProvider; -import sonia.scm.schedule.Scheduler; -import sonia.scm.schedule.Task; -import sonia.scm.store.ConfigurationStoreFactory; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -185,20 +181,8 @@ public class GitRepositoryHandler //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param repository - * @param directory - * - * @throws IOException - * @throws RepositoryException - */ @Override - protected void create(Repository repository, File directory) - throws RepositoryException, IOException - { + protected void create(Repository repository, File directory) throws IOException { try (org.eclipse.jgit.lib.Repository gitRepository = build(directory)) { gitRepository.create(true); } diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java index 1538269ee1..7e145f2dd9 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java @@ -39,7 +39,6 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Strings; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; - import org.eclipse.jgit.api.FetchCommand; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; @@ -54,23 +53,19 @@ import org.eclipse.jgit.transport.FetchResult; import org.eclipse.jgit.transport.RefSpec; import org.eclipse.jgit.treewalk.TreeWalk; import org.eclipse.jgit.util.FS; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.util.HttpUtil; import sonia.scm.util.Util; +import sonia.scm.web.GitUserAgentProvider; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; import java.io.File; import java.io.IOException; - import java.util.Map; import java.util.concurrent.TimeUnit; -import javax.servlet.http.HttpServletRequest; -import sonia.scm.web.GitUserAgentProvider; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -192,22 +187,7 @@ public final class GitUtil return tags; } - /** - * Method description - * - * - * @param git - * @param directory - * @param remoteRepository - * - * @return - * - * @throws RepositoryException - */ - public static FetchResult fetch(Git git, File directory, - Repository remoteRepository) - throws RepositoryException - { + public static FetchResult fetch(Git git, File directory, Repository remoteRepository) { try { FetchCommand fetch = git.fetch(); @@ -220,7 +200,7 @@ public final class GitUtil } catch (GitAPIException ex) { - throw new RepositoryException("could not fetch", ex); + throw new InternalRepositoryException("could not fetch", ex); } } @@ -294,7 +274,7 @@ public final class GitUtil { if (walk != null) { - walk.close();; + walk.close(); } } diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java index aed1917110..e90a1c11ed 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java @@ -36,28 +36,25 @@ package sonia.scm.repository.spi; import com.google.common.collect.Lists; import com.google.common.io.Closeables; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.Ref; import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevWalk; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.GitChangesetConverter; import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.GitUtil; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.List; import java.util.Map.Entry; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -117,21 +114,7 @@ public abstract class AbstractGitIncomingOutgoingCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - protected ChangesetPagingResult getIncomingOrOutgoingChangesets( - PagedRemoteCommandRequest request) - throws IOException, RepositoryException - { + protected ChangesetPagingResult getIncomingOrOutgoingChangesets(PagedRemoteCommandRequest request) throws IOException { Repository remoteRepository = request.getRemoteRepository(); Git git = Git.wrap(open()); @@ -141,8 +124,7 @@ public abstract class AbstractGitIncomingOutgoingCommand ObjectId localId = getDefaultBranch(git.getRepository()); ObjectId remoteId = null; - Ref remoteBranch = getRemoteBranch(git.getRepository(), localId, - remoteRepository); + Ref remoteBranch = getRemoteBranch(git.getRepository(), localId, remoteRepository); if (remoteBranch != null) { @@ -178,7 +160,7 @@ public abstract class AbstractGitIncomingOutgoingCommand } catch (Exception ex) { - throw new RepositoryException("could not execute incoming command", ex); + throw new InternalRepositoryException("could not execute incoming command", ex); } finally { @@ -191,23 +173,7 @@ public abstract class AbstractGitIncomingOutgoingCommand return new ChangesetPagingResult(changesets.size(), changesets); } - /** - * Method description - * - * - * @param repository - * @param local - * @param remoteRepository - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - private Ref getRemoteBranch(org.eclipse.jgit.lib.Repository repository, - ObjectId local, Repository remoteRepository) - throws IOException, RepositoryException - { + private Ref getRemoteBranch(org.eclipse.jgit.lib.Repository repository, ObjectId local, Repository remoteRepository) throws IOException { Ref ref = null; if (local != null) @@ -236,7 +202,7 @@ public abstract class AbstractGitIncomingOutgoingCommand { if (ref != null) { - throw new RepositoryException("could not find remote branch"); + throw new InternalRepositoryException("could not find remote branch"); } ref = e.getValue(); diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java index 764dde47f3..75050c26ea 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java @@ -37,28 +37,23 @@ package sonia.scm.repository.spi; import com.google.common.base.Preconditions; import com.google.common.collect.Iterables; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.transport.PushResult; import org.eclipse.jgit.transport.RemoteRefUpdate; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.GitUtil; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.InternalRepositoryException; import java.io.File; -import java.io.IOException; - import java.util.Collection; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -94,20 +89,7 @@ public abstract class AbstractGitPushOrPullCommand extends AbstractGitCommand //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * @param source - * @param remoteUrl - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - protected long push(Repository source, String remoteUrl) - throws IOException, RepositoryException - { + protected long push(Repository source, String remoteUrl) { Git git = Git.wrap(source); org.eclipse.jgit.api.PushCommand push = git.push(); @@ -132,7 +114,7 @@ public abstract class AbstractGitPushOrPullCommand extends AbstractGitCommand } catch (Exception ex) { - throw new RepositoryException("could not execute push/pull command", ex); + throw new InternalRepositoryException("could not execute push/pull command", ex); } return counter; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java index c797fd70eb..f50f245963 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java @@ -37,30 +37,26 @@ package sonia.scm.repository.spi; import com.google.common.base.Preconditions; import com.google.common.base.Strings; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.PersonIdent; import org.eclipse.jgit.revwalk.RevCommit; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; import sonia.scm.repository.GitUtil; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Person; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.ArrayList; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -76,15 +72,6 @@ public class GitBlameCommand extends AbstractGitCommand implements BlameCommand //~--- constructors --------------------------------------------------------- - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ public GitBlameCommand(GitContext context, Repository repository) { super(context, repository); @@ -92,20 +79,9 @@ public class GitBlameCommand extends AbstractGitCommand implements BlameCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override public BlameResult getBlameResult(BlameCommandRequest request) - throws IOException, RepositoryException + throws IOException { if (logger.isDebugEnabled()) { @@ -132,7 +108,7 @@ public class GitBlameCommand extends AbstractGitCommand implements BlameCommand if (gitBlameResult == null) { - throw new RepositoryException( + throw new InternalRepositoryException( "could not create blame result for path ".concat( request.getPath())); } @@ -174,7 +150,7 @@ public class GitBlameCommand extends AbstractGitCommand implements BlameCommand } catch (GitAPIException ex) { - throw new RepositoryException("could not create blame view", ex); + throw new InternalRepositoryException("could not create blame view", ex); } return result; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java index df32c2b5eb..0cc47100de 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java @@ -36,22 +36,19 @@ package sonia.scm.repository.spi; import com.google.common.base.Function; import com.google.common.collect.Lists; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.lib.Ref; - import sonia.scm.repository.Branch; import sonia.scm.repository.GitUtil; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -74,18 +71,8 @@ public class GitBranchesCommand extends AbstractGitCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public List<Branch> getBranches() throws RepositoryException, IOException - { + public List<Branch> getBranches() throws IOException { List<Branch> branches = null; Git git = new Git(open()); @@ -115,7 +102,7 @@ public class GitBranchesCommand extends AbstractGitCommand } catch (GitAPIException ex) { - throw new RepositoryException("could not read branches", ex); + throw new InternalRepositoryException("could not read branches", ex); } return branches; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java index 72ec3f73e7..f194796bdc 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java @@ -37,7 +37,6 @@ package sonia.scm.repository.spi; import com.google.common.collect.Lists; import com.google.common.collect.Maps; - import org.eclipse.jgit.errors.MissingObjectException; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.ObjectId; @@ -49,29 +48,25 @@ import org.eclipse.jgit.treewalk.TreeWalk; import org.eclipse.jgit.treewalk.filter.AndTreeFilter; import org.eclipse.jgit.treewalk.filter.PathFilter; import org.eclipse.jgit.treewalk.filter.TreeFilter; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; import sonia.scm.repository.GitSubModuleParser; import sonia.scm.repository.GitUtil; import sonia.scm.repository.PathNotFoundException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.SubRepository; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - import java.io.ByteArrayOutputStream; import java.io.IOException; - import java.util.Collections; import java.util.List; import java.util.Map; -import sonia.scm.util.IOUtil; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -105,22 +100,10 @@ public class GitBrowseCommand extends AbstractGitCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") public BrowserResult getBrowserResult(BrowseCommandRequest request) - throws IOException, RepositoryException - { + throws IOException, RevisionNotFoundException { logger.debug("try to create browse result for {}", request); BrowserResult result; @@ -174,8 +157,7 @@ public class GitBrowseCommand extends AbstractGitCommand */ private FileObject createFileObject(org.eclipse.jgit.lib.Repository repo, BrowseCommandRequest request, ObjectId revId, TreeWalk treeWalk) - throws IOException, RepositoryException - { + throws IOException, RevisionNotFoundException { FileObject file; try @@ -283,24 +265,9 @@ public class GitBrowseCommand extends AbstractGitCommand return result; } - /** - * Method description - * - * - * @param repo - * @param request - * @param revId - * @param path - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ private BrowserResult getResult(org.eclipse.jgit.lib.Repository repo, BrowseCommandRequest request, ObjectId revId) - throws IOException, RepositoryException - { + throws IOException, RevisionNotFoundException { BrowserResult result = null; RevWalk revWalk = null; TreeWalk treeWalk = null; @@ -393,24 +360,11 @@ public class GitBrowseCommand extends AbstractGitCommand return result; } - /** - * Method description - * - * - * @param repo - * @param revision - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @SuppressWarnings("unchecked") private Map<String, SubRepository> getSubRepositories(org.eclipse.jgit.lib.Repository repo, ObjectId revision) - throws IOException, RepositoryException - { + throws IOException, RevisionNotFoundException { if (logger.isDebugEnabled()) { logger.debug("read submodules of {} at {}", repository.getName(), @@ -435,8 +389,7 @@ public class GitBrowseCommand extends AbstractGitCommand private SubRepository getSubRepository(org.eclipse.jgit.lib.Repository repo, ObjectId revId, String path) - throws IOException, RepositoryException - { + throws IOException, RevisionNotFoundException { Map<String, SubRepository> subRepositories = subrepositoryCache.get(revId); if (subRepositories == null) diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java index c451dd8614..4b05098d03 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java @@ -46,7 +46,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sonia.scm.repository.GitUtil; import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.util.Util; @@ -66,7 +65,7 @@ public class GitCatCommand extends AbstractGitCommand implements CatCommand { } @Override - public void getCatResult(CatCommandRequest request, OutputStream output) throws IOException, RepositoryException { + public void getCatResult(CatCommandRequest request, OutputStream output) throws IOException, PathNotFoundException, RevisionNotFoundException { logger.debug("try to read content for {}", request); try (ClosableObjectLoaderContainer closableObjectLoaderContainer = getLoader(request)) { closableObjectLoaderContainer.objectLoader.copyTo(output); @@ -74,24 +73,24 @@ public class GitCatCommand extends AbstractGitCommand implements CatCommand { } @Override - public InputStream getCatResultStream(CatCommandRequest request) throws IOException, RepositoryException { + public InputStream getCatResultStream(CatCommandRequest request) throws IOException, PathNotFoundException, RevisionNotFoundException { logger.debug("try to read content for {}", request); return new InputStreamWrapper(getLoader(request)); } - void getContent(org.eclipse.jgit.lib.Repository repo, ObjectId revId, String path, OutputStream output) throws IOException, RepositoryException { + void getContent(org.eclipse.jgit.lib.Repository repo, ObjectId revId, String path, OutputStream output) throws IOException, PathNotFoundException, RevisionNotFoundException { try (ClosableObjectLoaderContainer closableObjectLoaderContainer = getLoader(repo, revId, path)) { closableObjectLoaderContainer.objectLoader.copyTo(output); } } - private ClosableObjectLoaderContainer getLoader(CatCommandRequest request) throws IOException, RepositoryException { + private ClosableObjectLoaderContainer getLoader(CatCommandRequest request) throws IOException, PathNotFoundException, RevisionNotFoundException { org.eclipse.jgit.lib.Repository repo = open(); ObjectId revId = getCommitOrDefault(repo, request.getRevision()); return getLoader(repo, revId, request.getPath()); } - private ClosableObjectLoaderContainer getLoader(Repository repo, ObjectId revId, String path) throws IOException, RepositoryException { + private ClosableObjectLoaderContainer getLoader(Repository repo, ObjectId revId, String path) throws IOException, PathNotFoundException, RevisionNotFoundException { TreeWalk treeWalk = new TreeWalk(repo); treeWalk.setRecursive(Util.nonNull(path).contains("/")); diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java index 9bd982a909..a1c1a7e652 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java @@ -36,16 +36,14 @@ package sonia.scm.repository.spi; import org.eclipse.jgit.api.LogCommand; import org.eclipse.jgit.lib.ObjectId; - import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -70,22 +68,8 @@ public class GitIncomingCommand extends AbstractGitIncomingOutgoingCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public ChangesetPagingResult getIncomingChangesets( - IncomingCommandRequest request) - throws IOException, RepositoryException - { + public ChangesetPagingResult getIncomingChangesets(IncomingCommandRequest request) throws IOException { return getIncomingOrOutgoingChangesets(request); } diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 0643035e7a..52625ff6c4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java @@ -37,7 +37,6 @@ package sonia.scm.repository.spi; import com.google.common.base.Strings; import com.google.common.collect.Lists; - import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.revwalk.RevCommit; @@ -45,25 +44,22 @@ import org.eclipse.jgit.revwalk.RevWalk; import org.eclipse.jgit.treewalk.filter.AndTreeFilter; import org.eclipse.jgit.treewalk.filter.PathFilter; import org.eclipse.jgit.treewalk.filter.TreeFilter; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.GitChangesetConverter; import sonia.scm.repository.GitUtil; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.util.IOUtil; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.Collections; import java.util.Iterator; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -165,7 +161,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand @Override @SuppressWarnings("unchecked") public ChangesetPagingResult getChangesets(LogCommandRequest request) - throws IOException, RepositoryException + throws IOException { if (logger.isDebugEnabled()) { @@ -268,7 +264,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand } catch (Exception ex) { - throw new RepositoryException("could not create change log", ex); + throw new InternalRepositoryException("could not create change log", ex); } finally { diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java index 7b40a60a08..2a1f805cf6 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java @@ -36,16 +36,14 @@ package sonia.scm.repository.spi; import org.eclipse.jgit.api.LogCommand; import org.eclipse.jgit.lib.ObjectId; - import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -84,7 +82,7 @@ public class GitOutgoingCommand extends AbstractGitIncomingOutgoingCommand @Override public ChangesetPagingResult getOutgoingChangesets( OutgoingCommandRequest request) - throws IOException, RepositoryException + throws IOException { return getIncomingOrOutgoingChangesets(request); } diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java index ec0f468a57..a7b341ff5d 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java @@ -37,7 +37,6 @@ package sonia.scm.repository.spi; import com.google.common.base.Preconditions; import com.google.common.collect.Iterables; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.lib.ObjectId; @@ -46,23 +45,20 @@ import org.eclipse.jgit.transport.FetchResult; import org.eclipse.jgit.transport.RefSpec; import org.eclipse.jgit.transport.TagOpt; import org.eclipse.jgit.transport.TrackingRefUpdate; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.GitUtil; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PullResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; - import java.net.URL; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -109,7 +105,7 @@ public class GitPullCommand extends AbstractGitPushOrPullCommand */ @Override public PullResponse pull(PullCommandRequest request) - throws IOException, RepositoryException + throws IOException { PullResponse response; Repository sourceRepository = request.getRemoteRepository(); @@ -130,21 +126,7 @@ public class GitPullCommand extends AbstractGitPushOrPullCommand return response; } - /** - * Method description - * - * - * @param git - * @param result - * @param fetch - * - * @return - * - * @throws RepositoryException - */ - private PullResponse convert(Git git, FetchResult fetch) - throws RepositoryException - { + private PullResponse convert(Git git, FetchResult fetch) { long counter = 0l; for (TrackingRefUpdate tru : fetch.getTrackingRefUpdates()) @@ -212,19 +194,8 @@ public class GitPullCommand extends AbstractGitPushOrPullCommand return counter; } - /** - * Method description - * - * - * @param sourceRepository - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ private PullResponse pullFromScmRepository(Repository sourceRepository) - throws IOException, RepositoryException + throws IOException { File sourceDirectory = handler.getDirectory(sourceRepository); @@ -256,19 +227,8 @@ public class GitPullCommand extends AbstractGitPushOrPullCommand return response; } - /** - * Method description - * - * - * @param url - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ private PullResponse pullFromUrl(URL url) - throws IOException, RepositoryException + throws IOException { logger.debug("pull changes from {} to {}", url, repository.getId()); @@ -289,7 +249,7 @@ public class GitPullCommand extends AbstractGitPushOrPullCommand } catch (GitAPIException ex) { - throw new RepositoryException("error durring pull", ex); + throw new InternalRepositoryException("error durring pull", ex); } return response; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java index c64465194a..193d68d7a5 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java @@ -37,16 +37,14 @@ package sonia.scm.repository.spi; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.GitRepositoryHandler; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PushResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -91,7 +89,7 @@ public class GitPushCommand extends AbstractGitPushOrPullCommand */ @Override public PushResponse push(PushCommandRequest request) - throws IOException, RepositoryException + throws IOException { String remoteUrl = getRemoteUrl(request); diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java index 14583ac7dc..02fee3cef0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java @@ -37,27 +37,23 @@ package sonia.scm.repository.spi; import com.google.common.base.Function; import com.google.common.collect.Lists; - import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.lib.Ref; import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevWalk; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.GitUtil; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.Tag; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -79,17 +75,8 @@ public class GitTagsCommand extends AbstractGitCommand implements TagsCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public List<Tag> getTags() throws IOException, RepositoryException + public List<Tag> getTags() throws IOException { List<Tag> tags = null; @@ -108,7 +95,7 @@ public class GitTagsCommand extends AbstractGitCommand implements TagsCommand } catch (GitAPIException ex) { - throw new RepositoryException("could not read tags from repository", ex); + throw new InternalRepositoryException("could not read tags from repository", ex); } finally { diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java index f8fa5c8200..162e3db489 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java @@ -40,17 +40,14 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.Iterables; import com.google.common.io.Closeables; import com.google.inject.Inject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.Branch; import sonia.scm.repository.Branches; import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.Person; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.RepositoryService; import sonia.scm.repository.api.RepositoryServiceFactory; import sonia.scm.template.Template; @@ -60,16 +57,14 @@ import sonia.scm.util.HttpUtil; import sonia.scm.util.IOUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.Writer; - import java.util.Date; import java.util.Iterator; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -113,21 +108,9 @@ public class GitRepositoryViewer //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * - * @param request - * @param response - * @param repository - * - * @throws IOException - * @throws RepositoryException - */ public void handleRequest(HttpServletRequest request, HttpServletResponse response, Repository repository) - throws RepositoryException, IOException + throws IOException { String baseUrl = HttpUtil.getCompleteUrl(request); @@ -171,7 +154,7 @@ public class GitRepositoryViewer * @throws RepositoryException */ private BranchesModel createBranchesModel(Repository repository) - throws RepositoryException, IOException + throws IOException { BranchesModel model = null; RepositoryService service = null; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java index ebf4173ad5..5612a64652 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java @@ -42,7 +42,6 @@ import org.eclipse.jgit.http.server.GitServlet; import org.eclipse.jgit.lfs.lib.Constants; import org.slf4j.Logger; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryProvider; import sonia.scm.repository.RepositoryRequestListenerUtil; import sonia.scm.util.HttpUtil; @@ -214,7 +213,7 @@ public class ScmGitServlet extends GitServlet private void handleBrowserRequest(HttpServletRequest request, HttpServletResponse response, Repository repository) throws ServletException, IOException { try { repositoryViewer.handleRequest(request, response, repository); - } catch (RepositoryException | IOException ex) { + } catch (IOException ex) { throw new ServletException("could not create repository view", ex); } } diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java index d049447d7f..d0fd627046 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java @@ -35,17 +35,16 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.GitConstants; import java.io.IOException; -import sonia.scm.repository.GitConstants; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +//~--- JDK imports ------------------------------------------------------------ /** * Unit tests for {@link GitBlameCommand}. @@ -59,10 +58,10 @@ public class GitBlameCommandTest extends AbstractGitCommandTestBase * Tests blame command with default branch. * * @throws IOException - * @throws RepositoryException + * @ */ @Test - public void testDefaultBranch() throws IOException, RepositoryException { + public void testDefaultBranch() throws IOException { // without default branch, the repository head should be used BlameCommandRequest request = new BlameCommandRequest(); request.setPath("a.txt"); @@ -89,7 +88,7 @@ public class GitBlameCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetBlameResult() throws IOException, RepositoryException + public void testGetBlameResult() throws IOException { BlameCommandRequest request = new BlameCommandRequest(); @@ -124,7 +123,7 @@ public class GitBlameCommandTest extends AbstractGitCommandTestBase */ @Test public void testGetBlameResultWithRevision() - throws IOException, RepositoryException + throws IOException { BlameCommandRequest request = new BlameCommandRequest(); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java index 727034b9ca..d71c85a152 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java @@ -36,19 +36,20 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.GitConstants; +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; - import java.util.List; -import sonia.scm.repository.GitConstants; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ /** * Unit tests for {@link GitBrowseCommand}. @@ -60,12 +61,9 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase /** * Test browse command with default branch. - * - * @throws IOException - * @throws RepositoryException */ @Test - public void testDefaultBranch() throws IOException, RepositoryException { + public void testDefaultBranch() throws IOException, RevisionNotFoundException { // without default branch, the repository head should be used BrowserResult result = createCommand().getBrowserResult(new BrowseCommandRequest()); assertNotNull(result); @@ -94,16 +92,8 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase assertEquals("c", foList.get(1).getName()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBrowse() throws IOException, RepositoryException - { + public void testBrowse() throws IOException, RevisionNotFoundException { BrowserResult result = createCommand().getBrowserResult(new BrowseCommandRequest()); @@ -143,16 +133,8 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase assertEquals("c", c.getPath()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBrowseSubDirectory() throws IOException, RepositoryException - { + public void testBrowseSubDirectory() throws IOException, RevisionNotFoundException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setPath("c"); @@ -198,16 +180,8 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase checkDate(e.getLastModified()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testRecusive() throws IOException, RepositoryException - { + public void testRecusive() throws IOException, RevisionNotFoundException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setRecursive(true); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java index c23db0873b..3611c9c636 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java @@ -35,7 +35,6 @@ package sonia.scm.repository.spi; import org.junit.Test; import sonia.scm.repository.GitConstants; import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import java.io.ByteArrayOutputStream; @@ -54,7 +53,7 @@ import static org.junit.Assert.assertEquals; public class GitCatCommandTest extends AbstractGitCommandTestBase { @Test - public void testDefaultBranch() throws IOException, RepositoryException { + public void testDefaultBranch() throws IOException, PathNotFoundException, RevisionNotFoundException { // without default branch, the repository head should be used CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); @@ -67,7 +66,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { } @Test - public void testCat() throws IOException, RepositoryException { + public void testCat() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); @@ -76,7 +75,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { } @Test - public void testSimpleCat() throws IOException, RepositoryException { + public void testSimpleCat() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("b.txt"); @@ -84,7 +83,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { } @Test(expected = PathNotFoundException.class) - public void testUnknownFile() throws IOException, RepositoryException { + public void testUnknownFile() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("unknown"); @@ -92,7 +91,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { } @Test(expected = RevisionNotFoundException.class) - public void testUnknownRevision() throws IOException, RepositoryException { + public void testUnknownRevision() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setRevision("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); @@ -101,7 +100,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { } @Test - public void testSimpleStream() throws IOException, RepositoryException { + public void testSimpleStream() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("b.txt"); @@ -114,7 +113,7 @@ public class GitCatCommandTest extends AbstractGitCommandTestBase { catResultStream.close(); } - private String execute(CatCommandRequest request) throws IOException, RepositoryException { + private String execute(CatCommandRequest request) throws IOException, PathNotFoundException, RevisionNotFoundException { String content = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java index 7cfe33f858..6aa852b12c 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java @@ -36,18 +36,16 @@ package sonia.scm.repository.spi; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.revwalk.RevCommit; - +import org.junit.Ignore; import org.junit.Test; - import sonia.scm.repository.ChangesetPagingResult; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; -import org.junit.Ignore; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -67,7 +65,7 @@ public class GitIncomingCommandTest */ @Test public void testGetIncomingChangesets() - throws IOException, GitAPIException, RepositoryException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); @@ -101,7 +99,7 @@ public class GitIncomingCommandTest */ @Test public void testGetIncomingChangesetsWithAllreadyPullChangesets() - throws IOException, GitAPIException, RepositoryException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); @@ -138,7 +136,7 @@ public class GitIncomingCommandTest */ @Test public void testGetIncomingChangesetsWithEmptyRepository() - throws IOException, RepositoryException + throws IOException { GitIncomingCommand cmd = createCommand(); IncomingCommandRequest request = new IncomingCommandRequest(); @@ -163,7 +161,7 @@ public class GitIncomingCommandTest @Test @Ignore public void testGetIncomingChangesetsWithUnrelatedRepository() - throws IOException, RepositoryException, GitAPIException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java index c5af70e3a9..1d78485ae3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java @@ -35,22 +35,23 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- +import org.eclipse.jgit.api.errors.GitAPIException; import org.junit.Test; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; +import sonia.scm.repository.GitConstants; import sonia.scm.repository.Modifications; -import sonia.scm.repository.RepositoryException; - -import static org.hamcrest.Matchers.*; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; -import org.eclipse.jgit.api.errors.GitAPIException; -import sonia.scm.repository.GitConstants; + +import static org.hamcrest.Matchers.contains; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ /** * Unit tests for {@link GitLogCommand}. @@ -65,10 +66,10 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * * @throws IOException * @throws GitAPIException - * @throws RepositoryException + * @ */ @Test - public void testGetDefaultBranch() throws IOException, GitAPIException, RepositoryException { + public void testGetDefaultBranch() throws IOException, GitAPIException { // without default branch, the repository head should be used ChangesetPagingResult result = createCommand().getChangesets(new LogCommandRequest()); @@ -99,7 +100,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetAll() throws IOException, RepositoryException + public void testGetAll() throws IOException { ChangesetPagingResult result = createCommand().getChangesets(new LogCommandRequest()); @@ -117,7 +118,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetAllByPath() throws IOException, RepositoryException + public void testGetAllByPath() throws IOException { LogCommandRequest request = new LogCommandRequest(); @@ -140,7 +141,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetAllWithLimit() throws IOException, RepositoryException + public void testGetAllWithLimit() throws IOException { LogCommandRequest request = new LogCommandRequest(); @@ -171,7 +172,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetAllWithPaging() throws IOException, RepositoryException + public void testGetAllWithPaging() throws IOException { LogCommandRequest request = new LogCommandRequest(); @@ -231,7 +232,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase * @throws RepositoryException */ @Test - public void testGetRange() throws IOException, RepositoryException + public void testGetRange() throws IOException { LogCommandRequest request = new LogCommandRequest(); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java index 28be6f7df0..58f70109ef 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java @@ -37,19 +37,16 @@ package sonia.scm.repository.spi; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.revwalk.RevCommit; - import org.junit.Test; - import sonia.scm.repository.ChangesetPagingResult; -import sonia.scm.repository.RepositoryException; + +import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * Unit tests for {@link OutgoingCommand}. * @@ -68,7 +65,7 @@ public class GitOutgoingCommandTest extends AbstractRemoteCommandTestBase */ @Test public void testGetOutgoingChangesets() - throws IOException, GitAPIException, RepositoryException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); @@ -102,7 +99,7 @@ public class GitOutgoingCommandTest extends AbstractRemoteCommandTestBase */ @Test public void testGetOutgoingChangesetsWithAllreadyPushedChanges() - throws IOException, GitAPIException, RepositoryException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); @@ -142,7 +139,7 @@ public class GitOutgoingCommandTest extends AbstractRemoteCommandTestBase */ @Test public void testGetOutgoingChangesetsWithEmptyRepository() - throws IOException, RepositoryException + throws IOException { GitOutgoingCommand cmd = createCommand(); OutgoingCommandRequest request = new OutgoingCommandRequest(); diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java index bf82193e84..91fad57880 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java @@ -37,20 +37,17 @@ package sonia.scm.repository.spi; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.revwalk.RevCommit; - import org.junit.Test; - -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PushResponse; -import static org.junit.Assert.*; +import java.io.IOException; +import java.util.Iterator; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - -import java.util.Iterator; - /** * * @author Sebastian Sdorra @@ -68,7 +65,7 @@ public class GitPushCommandTest extends AbstractRemoteCommandTestBase */ @Test public void testPush() - throws IOException, GitAPIException, RepositoryException + throws IOException, GitAPIException { write(outgoing, outgoingDirectory, "a.txt", "content of a.txt"); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/AbstractHgHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/AbstractHgHandler.java index 22a64fe5b2..19cfd37665 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/AbstractHgHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/AbstractHgHandler.java @@ -37,18 +37,15 @@ package sonia.scm.repository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.SCMContext; import sonia.scm.util.IOUtil; import sonia.scm.util.Util; import sonia.scm.web.HgUtil; -//~--- JDK imports ------------------------------------------------------------ - +import javax.xml.bind.JAXBException; import java.io.File; import java.io.IOException; import java.io.InputStream; - import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -56,7 +53,7 @@ import java.util.Iterator; import java.util.List; import java.util.Map; -import javax.xml.bind.JAXBException; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -257,45 +254,15 @@ public class AbstractHgHandler //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param resultType - * @param script - * @param <T> - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - protected <T> T getResultFromScript(Class<T> resultType, - HgPythonScript script) - throws IOException, RepositoryException - { + protected <T> T getResultFromScript(Class<T> resultType, HgPythonScript script) throws IOException { return getResultFromScript(resultType, script, new HashMap<String, String>()); } - /** - * Method description - * - * - * @param resultType - * @param script - * @param extraEnv - * @param <T> - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @SuppressWarnings("unchecked") protected <T> T getResultFromScript(Class<T> resultType, HgPythonScript script, Map<String, String> extraEnv) - throws IOException, RepositoryException + throws IOException { Process p = createScriptProcess(script, extraEnv); @@ -305,7 +272,7 @@ public class AbstractHgHandler } catch (JAXBException ex) { logger.error("could not parse result", ex); - throw new RepositoryException("could not parse result", ex); + throw new InternalRepositoryException("could not parse result", ex); } } diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java index aa0e4156ae..057bd173d9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHookManager.java @@ -36,31 +36,25 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- import com.github.legman.Subscribe; - -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.inject.Inject; import com.google.inject.OutOfScopeException; import com.google.inject.Provider; import com.google.inject.ProvisionException; import com.google.inject.Singleton; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.config.ScmConfiguration; - +import sonia.scm.config.ScmConfigurationChangedEvent; +import sonia.scm.net.ahc.AdvancedHttpClient; import sonia.scm.util.HttpUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; import java.io.IOException; - import java.util.UUID; -import javax.servlet.http.HttpServletRequest; -import sonia.scm.config.ScmConfigurationChangedEvent; -import sonia.scm.net.ahc.AdvancedHttpClient; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -273,7 +267,7 @@ public class HgHookManager { //J- return HttpUtil.getUriWithoutEndSeperator( - Objects.firstNonNull( + MoreObjects.firstNonNull( configuration.getBaseUrl(), "http://localhost:8080/scm" ) diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java index 30b5063c11..ad61926eef 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java @@ -37,18 +37,17 @@ package sonia.scm.repository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.io.INIConfiguration; import sonia.scm.io.INIConfigurationReader; import sonia.scm.io.INIConfigurationWriter; import sonia.scm.io.INISection; import sonia.scm.util.ValidationUtil; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -80,22 +79,10 @@ public class HgImportHandler extends AbstactImportHandler //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param repositoryDirectory - * @param repositoryName - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override protected Repository createRepository(File repositoryDirectory, String repositoryName) - throws IOException, RepositoryException + throws IOException { Repository repository = super.createRepository(repositoryDirectory, repositoryName); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java index aad546f651..39100b8cfa 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java @@ -38,10 +38,8 @@ package sonia.scm.repository; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.ConfigurationException; import sonia.scm.SCMContextProvider; import sonia.scm.installer.HgInstaller; @@ -55,23 +53,21 @@ import sonia.scm.io.INIConfigurationWriter; import sonia.scm.io.INISection; import sonia.scm.plugin.Extension; import sonia.scm.repository.spi.HgRepositoryServiceProvider; +import sonia.scm.store.ConfigurationStoreFactory; import sonia.scm.util.IOUtil; import sonia.scm.util.SystemUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; - import java.text.MessageFormat; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import sonia.scm.store.ConfigurationStoreFactory; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -430,11 +426,10 @@ public class HgRepositoryHandler * @param directory * * @throws IOException - * @throws RepositoryException */ @Override protected void postCreate(Repository repository, File directory) - throws IOException, RepositoryException + throws IOException { File hgrcFile = new File(directory, PATH_HGRC); INIConfiguration hgrc = new INIConfiguration(); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersion.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersion.java index afe6a17ca1..097046e7f7 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersion.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersion.java @@ -34,14 +34,15 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -100,7 +101,7 @@ public class HgVersion public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("mercurial", mercurial) .add("python", python) .toString(); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersionHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersionHandler.java index e52eee2c8a..26c9095ead 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersionHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVersionHandler.java @@ -44,15 +44,6 @@ import java.io.IOException; public class HgVersionHandler extends AbstractHgHandler { - /** - * Constructs ... - * - * - * @param handler - * @param jaxbContext - * @param context - * @param directory - */ public HgVersionHandler(HgRepositoryHandler handler, HgContext context, File directory) { @@ -61,17 +52,7 @@ public class HgVersionHandler extends AbstractHgHandler //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - public HgVersion getVersion() throws IOException, RepositoryException - { + public HgVersion getVersion() throws IOException { return getResultFromScript(HgVersion.class, HgPythonScript.VERSION); } } diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java index be5dbeda04..96a57ece65 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java @@ -38,26 +38,21 @@ package sonia.scm.repository.spi; import com.aragost.javahg.Changeset; import com.aragost.javahg.commands.AnnotateCommand; import com.aragost.javahg.commands.AnnotateLine; - import com.google.common.base.Strings; import com.google.common.collect.Lists; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; import sonia.scm.repository.Person; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.web.HgUtil; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -87,20 +82,9 @@ public class HgBlameCommand extends AbstractCommand implements BlameCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override public BlameResult getBlameResult(BlameCommandRequest request) - throws IOException, RepositoryException + throws IOException { if (logger.isDebugEnabled()) { diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java index 64d544c5ed..5c38205393 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java @@ -36,20 +36,15 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.aragost.javahg.Changeset; - import com.google.common.base.Function; import com.google.common.collect.Lists; - import sonia.scm.repository.Branch; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -72,18 +67,8 @@ public class HgBranchesCommand extends AbstractCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public List<Branch> getBranches() throws RepositoryException, IOException - { + public List<Branch> getBranches() { List<com.aragost.javahg.commands.Branch> hgBranches = com.aragost.javahg.commands.BranchesCommand.on(open()).execute(); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java index 0303275adf..4dc0b8a33e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java @@ -36,16 +36,14 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Strings; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.javahg.HgFileviewCommand; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -67,20 +65,9 @@ public class HgBrowseCommand extends AbstractCommand implements BrowseCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override public BrowserResult getBrowserResult(BrowseCommandRequest request) - throws IOException, RepositoryException + throws IOException { HgFileviewCommand cmd = HgFileviewCommand.on(open()); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java index c0ae0b51b5..554d6aaf05 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java @@ -36,8 +36,8 @@ package sonia.scm.repository.spi; import com.aragost.javahg.commands.ExecutionException; import com.google.common.io.ByteStreams; import com.google.common.io.Closeables; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.web.HgUtil; import java.io.IOException; @@ -51,7 +51,7 @@ public class HgCatCommand extends AbstractCommand implements CatCommand { } @Override - public void getCatResult(CatCommandRequest request, OutputStream output) throws IOException, RepositoryException { + public void getCatResult(CatCommandRequest request, OutputStream output) throws IOException { InputStream input = getCatResultStream(request); try { ByteStreams.copy(input, output); @@ -61,7 +61,7 @@ public class HgCatCommand extends AbstractCommand implements CatCommand { } @Override - public InputStream getCatResultStream(CatCommandRequest request) throws IOException, RepositoryException { + public InputStream getCatResultStream(CatCommandRequest request) throws IOException { com.aragost.javahg.commands.CatCommand cmd = com.aragost.javahg.commands.CatCommand.on(open()); @@ -70,7 +70,7 @@ public class HgCatCommand extends AbstractCommand implements CatCommand { try { return cmd.execute(request.getPath()); } catch (ExecutionException e) { - throw new RepositoryException(e); + throw new InternalRepositoryException(e); } } } diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java index dcdcdeec2f..d705f0ac14 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java @@ -38,19 +38,17 @@ package sonia.scm.repository.spi; import com.google.common.base.Strings; import com.google.common.io.ByteStreams; import com.google.common.io.Closeables; - import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.DiffFormat; import sonia.scm.repository.spi.javahg.HgDiffInternalCommand; import sonia.scm.web.HgUtil; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -72,19 +70,9 @@ public class HgDiffCommand extends AbstractCommand implements DiffCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * @param output - * - * @throws IOException - * @throws RepositoryException - */ @Override public void getDiffResult(DiffCommandRequest request, OutputStream output) - throws IOException, RepositoryException + throws IOException { com.aragost.javahg.Repository hgRepo = open(); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java index 73284d886a..55cf0fbe01 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java @@ -35,21 +35,19 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.aragost.javahg.commands.ExecutionException; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.HgRepositoryHandler; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.javahg.HgIncomingChangesetCommand; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; - import java.util.Collections; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -80,22 +78,9 @@ public class HgIncomingCommand extends AbstractCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") - public ChangesetPagingResult getIncomingChangesets( - IncomingCommandRequest request) - throws RepositoryException - { + public ChangesetPagingResult getIncomingChangesets(IncomingCommandRequest request) { File remoteRepository = handler.getDirectory(request.getRemoteRepository()); com.aragost.javahg.Repository repository = open(); @@ -118,7 +103,7 @@ public class HgIncomingCommand extends AbstractCommand } else { - throw new RepositoryException("could not execute incoming command", ex); + throw new InternalRepositoryException("could not execute incoming command", ex); } } diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java index af485d19df..68d6913962 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java @@ -36,20 +36,16 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Strings; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.javahg.HgLogChangesetCommand; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - import java.util.ArrayList; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -71,42 +67,16 @@ public class HgLogCommand extends AbstractCommand implements LogCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param id - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public Changeset getChangeset(String id) - throws IOException, RepositoryException - { + public Changeset getChangeset(String id) { com.aragost.javahg.Repository repository = open(); HgLogChangesetCommand cmd = on(repository); return cmd.rev(id).single(); } - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public ChangesetPagingResult getChangesets(LogCommandRequest request) - throws IOException, RepositoryException - { + public ChangesetPagingResult getChangesets(LogCommandRequest request) { ChangesetPagingResult result = null; com.aragost.javahg.Repository repository = open(); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java index 1322424198..b476b6c2ab 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java @@ -35,21 +35,19 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.aragost.javahg.commands.ExecutionException; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.HgRepositoryHandler; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.javahg.HgOutgoingChangesetCommand; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; - import java.util.Collections; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -80,21 +78,10 @@ public class HgOutgoingCommand extends AbstractCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") public ChangesetPagingResult getOutgoingChangesets( OutgoingCommandRequest request) - throws RepositoryException { File remoteRepository = handler.getDirectory(request.getRemoteRepository()); @@ -116,7 +103,7 @@ public class HgOutgoingCommand extends AbstractCommand } else { - throw new RepositoryException("could not execute outgoing command", ex); + throw new InternalRepositoryException("could not execute outgoing command", ex); } } diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java index 5243cbcc92..0eb23ef4e7 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java @@ -37,22 +37,19 @@ package sonia.scm.repository.spi; import com.aragost.javahg.Changeset; import com.aragost.javahg.commands.ExecutionException; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.HgRepositoryHandler; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PullResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.Collections; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -83,21 +80,10 @@ public class HgPullCommand extends AbstractHgPushOrPullCommand //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") public PullResponse pull(PullCommandRequest request) - throws RepositoryException, IOException + throws IOException { String url = getRemoteUrl(request); @@ -111,7 +97,7 @@ public class HgPullCommand extends AbstractHgPushOrPullCommand } catch (ExecutionException ex) { - throw new RepositoryException("could not execute push command", ex); + throw new InternalRepositoryException("could not execute push command", ex); } return new PullResponse(result.size()); diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java index 10b4af002e..fb0a1a1c73 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java @@ -37,22 +37,19 @@ package sonia.scm.repository.spi; import com.aragost.javahg.Changeset; import com.aragost.javahg.commands.ExecutionException; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.repository.HgRepositoryHandler; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.PushResponse; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.Collections; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -83,21 +80,10 @@ public class HgPushCommand extends AbstractHgPushOrPullCommand //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") public PushResponse push(PushCommandRequest request) - throws RepositoryException, IOException + throws IOException { String url = getRemoteUrl(request); @@ -111,7 +97,7 @@ public class HgPushCommand extends AbstractHgPushOrPullCommand } catch (ExecutionException ex) { - throw new RepositoryException("could not execute push command", ex); + throw new InternalRepositoryException("could not execute push command", ex); } return new PushResponse(result.size()); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java index 0dea409589..8b46c5f290 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java @@ -36,17 +36,16 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -54,16 +53,8 @@ import java.io.IOException; public class HgBlameCommandTest extends AbstractHgCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetBlameResult() throws IOException, RepositoryException - { + public void testGetBlameResult() throws IOException { BlameCommandRequest request = new BlameCommandRequest(); request.setPath("a.txt"); @@ -87,17 +78,8 @@ public class HgBlameCommandTest extends AbstractHgCommandTestBase line.getAuthor().getMail()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetBlameResultWithRevision() - throws IOException, RepositoryException - { + public void testGetBlameResultWithRevision() throws IOException { BlameCommandRequest request = new BlameCommandRequest(); request.setPath("a.txt"); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java index 0262dfc36b..c53aa8c607 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java @@ -36,19 +36,20 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ import java.io.IOException; - import java.util.List; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -56,16 +57,8 @@ import java.util.List; public class HgBrowseCommandTest extends AbstractHgCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBrowse() throws IOException, RepositoryException - { + public void testBrowse() throws IOException { List<FileObject> foList = getRootFromTip(new BrowseCommandRequest()); FileObject a = getFileObject(foList, "a.txt"); FileObject c = getFileObject(foList, "c"); @@ -81,16 +74,8 @@ public class HgBrowseCommandTest extends AbstractHgCommandTestBase assertEquals("c", c.getPath()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBrowseSubDirectory() throws IOException, RepositoryException - { + public void testBrowseSubDirectory() throws IOException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setPath("c"); @@ -137,16 +122,8 @@ public class HgBrowseCommandTest extends AbstractHgCommandTestBase checkDate(e.getLastModified()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testDisableLastCommit() throws IOException, RepositoryException - { + public void testDisableLastCommit() throws IOException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setDisableLastCommit(true); @@ -159,16 +136,8 @@ public class HgBrowseCommandTest extends AbstractHgCommandTestBase assertNull(a.getLastModified()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testRecursive() throws IOException, RepositoryException - { + public void testRecursive() throws IOException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setRecursive(true); @@ -215,20 +184,7 @@ public class HgBrowseCommandTest extends AbstractHgCommandTestBase return a; } - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - private List<FileObject> getRootFromTip(BrowseCommandRequest request) - throws IOException, RepositoryException - { + private List<FileObject> getRootFromTip(BrowseCommandRequest request) throws IOException { BrowserResult result = new HgBrowseCommand(cmdContext, repository).getBrowserResult(request); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java index afb5249b25..9379fd42a8 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java @@ -33,8 +33,10 @@ package sonia.scm.repository.spi; +import org.junit.Ignore; import org.junit.Test; -import sonia.scm.repository.RepositoryException; +import sonia.scm.NotFoundException; +import sonia.scm.repository.InternalRepositoryException; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -45,7 +47,7 @@ import static org.junit.Assert.assertEquals; public class HgCatCommandTest extends AbstractHgCommandTestBase { @Test - public void testCat() throws IOException, RepositoryException { + public void testCat() throws IOException { CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); @@ -54,23 +56,24 @@ public class HgCatCommandTest extends AbstractHgCommandTestBase { } @Test - public void testSimpleCat() throws IOException, RepositoryException { + public void testSimpleCat() throws IOException { CatCommandRequest request = new CatCommandRequest(); request.setPath("b.txt"); assertEquals("b", execute(request)); } - @Test(expected = RepositoryException.class) - public void testUnknownFile() throws IOException, RepositoryException { + @Test(expected = InternalRepositoryException.class) + public void testUnknownFile() throws IOException { CatCommandRequest request = new CatCommandRequest(); request.setPath("unknown"); execute(request); } - @Test(expected = RepositoryException.class) - public void testUnknownRevision() throws IOException, RepositoryException { + @Test(expected = NotFoundException.class) + @Ignore("detection of unknown revision in hg not yet implemented") + public void testUnknownRevision() throws IOException { CatCommandRequest request = new CatCommandRequest(); request.setRevision("abc"); @@ -79,7 +82,7 @@ public class HgCatCommandTest extends AbstractHgCommandTestBase { } @Test - public void testSimpleStream() throws IOException, RepositoryException { + public void testSimpleStream() throws IOException { CatCommandRequest request = new CatCommandRequest(); request.setPath("b.txt"); @@ -92,7 +95,7 @@ public class HgCatCommandTest extends AbstractHgCommandTestBase { catResultStream.close(); } - private String execute(CatCommandRequest request) throws IOException, RepositoryException { + private String execute(CatCommandRequest request) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); new HgCatCommand(cmdContext, repository).getCatResult(request, baos); return baos.toString().trim(); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java index a8a5de156b..4d7b7c75d9 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java @@ -35,19 +35,18 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.aragost.javahg.Changeset; - import org.junit.Test; - import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.HgTestUtil; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.InternalRepositoryException; import java.io.IOException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -60,12 +59,9 @@ public class HgIncomingCommandTest extends IncomingOutgoingTestBase * * * @throws IOException - * @throws RepositoryException */ @Test - public void testGetIncomingChangesets() - throws IOException, RepositoryException - { + public void testGetIncomingChangesets() throws IOException { writeNewFile(outgoing, outgoingDirectory, "a.txt", "Content of file a.txt"); writeNewFile(outgoing, outgoingDirectory, "b.txt", "Content of file b.txt"); @@ -89,16 +85,8 @@ public class HgIncomingCommandTest extends IncomingOutgoingTestBase assertChangesetsEqual(c2, cpr.getChangesets().get(1)); } - /** - * Method description - * - * - * @throws RepositoryException - */ @Test - public void testGetIncomingChangesetsWithEmptyRepository() - throws RepositoryException - { + public void testGetIncomingChangesetsWithEmptyRepository() { HgIncomingCommand cmd = createIncomingCommand(); IncomingCommandRequest request = new IncomingCommandRequest(); @@ -110,17 +98,8 @@ public class HgIncomingCommandTest extends IncomingOutgoingTestBase assertEquals(0, cpr.getTotal()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ - @Test(expected = RepositoryException.class) - public void testGetIncomingChangesetsWithUnrelatedRepository() - throws IOException, RepositoryException - { + @Test(expected = InternalRepositoryException.class) + public void testGetIncomingChangesetsWithUnrelatedRepository() throws IOException { writeNewFile(outgoing, outgoingDirectory, "a.txt", "Content of file a.txt"); writeNewFile(outgoing, outgoingDirectory, "b.txt", "Content of file b.txt"); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java index bae48180ce..c4d49ba8b5 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java @@ -36,20 +36,19 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.Modifications; -import sonia.scm.repository.RepositoryException; -import static org.hamcrest.Matchers.*; - -import static org.junit.Assert.*; +import static org.hamcrest.Matchers.contains; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * * @author Sebastian Sdorra @@ -57,16 +56,8 @@ import java.io.IOException; public class HgLogCommandTest extends AbstractHgCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAll() throws IOException, RepositoryException - { + public void testGetAll() { ChangesetPagingResult result = createComamnd().getChangesets(new LogCommandRequest()); @@ -75,16 +66,8 @@ public class HgLogCommandTest extends AbstractHgCommandTestBase assertEquals(5, result.getChangesets().size()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllByPath() throws IOException, RepositoryException - { + public void testGetAllByPath() { LogCommandRequest request = new LogCommandRequest(); request.setPath("a.txt"); @@ -102,16 +85,8 @@ public class HgLogCommandTest extends AbstractHgCommandTestBase result.getChangesets().get(2).getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllWithLimit() throws IOException, RepositoryException - { + public void testGetAllWithLimit() { LogCommandRequest request = new LogCommandRequest(); request.setPagingLimit(2); @@ -133,16 +108,8 @@ public class HgLogCommandTest extends AbstractHgCommandTestBase assertEquals("542bf4893dd2ff58a0eb719551d75ddeb919608b", c2.getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllWithPaging() throws IOException, RepositoryException - { + public void testGetAllWithPaging() { LogCommandRequest request = new LogCommandRequest(); request.setPagingStart(1); @@ -165,16 +132,8 @@ public class HgLogCommandTest extends AbstractHgCommandTestBase assertEquals("79b6baf49711ae675568e0698d730b97ef13e84a", c2.getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetCommit() throws IOException, RepositoryException - { + public void testGetCommit() { HgLogCommand command = createComamnd(); Changeset c = command.getChangeset("a9bacaf1b7fa0cebfca71fed4e59ed69a6319427"); @@ -197,16 +156,8 @@ public class HgLogCommandTest extends AbstractHgCommandTestBase assertThat(mods.getAdded(), contains("a.txt", "b.txt")); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetRange() throws IOException, RepositoryException - { + public void testGetRange() { LogCommandRequest request = new LogCommandRequest(); request.setStartChangeset("3049df33fdbb"); diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java index 7a43df98bc..354481b9b3 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java @@ -35,20 +35,18 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.aragost.javahg.Changeset; - import org.junit.Test; - import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.HgTestUtil; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.InternalRepositoryException; + +import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * * @author Sebastian Sdorra @@ -56,17 +54,8 @@ import java.io.IOException; public class HgOutgoingCommandTest extends IncomingOutgoingTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetOutgoingChangesets() - throws IOException, RepositoryException - { + public void testGetOutgoingChangesets() throws IOException { writeNewFile(outgoing, outgoingDirectory, "a.txt", "Content of file a.txt"); writeNewFile(outgoing, outgoingDirectory, "b.txt", "Content of file b.txt"); @@ -90,16 +79,8 @@ public class HgOutgoingCommandTest extends IncomingOutgoingTestBase assertChangesetsEqual(c2, cpr.getChangesets().get(1)); } - /** - * Method description - * - * - * @throws RepositoryException - */ @Test - public void testGetOutgoingChangesetsWithEmptyRepository() - throws RepositoryException - { + public void testGetOutgoingChangesetsWithEmptyRepository() { HgOutgoingCommand cmd = createOutgoingCommand(); OutgoingCommandRequest request = new OutgoingCommandRequest(); @@ -111,17 +92,8 @@ public class HgOutgoingCommandTest extends IncomingOutgoingTestBase assertEquals(0, cpr.getTotal()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ - @Test(expected = RepositoryException.class) - public void testGetOutgoingChangesetsWithUnrelatedRepository() - throws IOException, RepositoryException - { + @Test(expected = InternalRepositoryException.class) + public void testGetOutgoingChangesetsWithUnrelatedRepository() throws IOException { writeNewFile(outgoing, outgoingDirectory, "a.txt", "Content of file a.txt"); writeNewFile(outgoing, outgoingDirectory, "b.txt", "Content of file b.txt"); diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java index 58ada0738b..7d5c9695c9 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java @@ -37,10 +37,8 @@ package sonia.scm.repository; import com.google.inject.Inject; import com.google.inject.Singleton; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNURL; import org.tmatesoft.svn.core.internal.io.fs.FSHooks; @@ -48,19 +46,17 @@ import org.tmatesoft.svn.core.internal.io.fs.FSRepositoryFactory; import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.io.SVNRepositoryFactory; import org.tmatesoft.svn.util.SVNDebugLog; - import sonia.scm.io.FileSystem; import sonia.scm.logging.SVNKitLogger; import sonia.scm.plugin.Extension; +import sonia.scm.repository.spi.HookEventFacade; import sonia.scm.repository.spi.SvnRepositoryServiceProvider; +import sonia.scm.store.ConfigurationStoreFactory; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; -import java.io.IOException; -import sonia.scm.repository.spi.HookEventFacade; -import sonia.scm.store.ConfigurationStoreFactory; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -72,38 +68,21 @@ public class SvnRepositoryHandler extends AbstractSimpleRepositoryHandler<SvnConfig> { - /** Field description */ public static final String PROPERTY_UUID = "svn.uuid"; - /** Field description */ - public static final String RESOURCE_VERSION = - "sonia/scm/version/scm-svn-plugin"; + public static final String RESOURCE_VERSION = "sonia/scm/version/scm-svn-plugin"; - /** Field description */ public static final String TYPE_DISPLAYNAME = "Subversion"; - /** Field description */ public static final String TYPE_NAME = "svn"; - /** Field description */ public static final RepositoryType TYPE = new RepositoryType(TYPE_NAME, TYPE_DISPLAYNAME, SvnRepositoryServiceProvider.COMMANDS); - /** the logger for SvnRepositoryHandler */ private static final Logger logger = LoggerFactory.getLogger(SvnRepositoryHandler.class); - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * @param storeFactory - * @param fileSystem - * @param repositoryManager - */ @Inject public SvnRepositoryHandler(ConfigurationStoreFactory storeFactory, FileSystem fileSystem, HookEventFacade eventFacade) @@ -128,60 +107,26 @@ public class SvnRepositoryHandler } } - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ @Override public ImportHandler getImportHandler() { return new SvnImportHandler(this); } - /** - * Method description - * - * - * @return - */ @Override public RepositoryType getType() { return TYPE; } - /** - * Method description - * - * - * @return - */ @Override public String getVersionInformation() { return getStringFromResource(RESOURCE_VERSION, DEFAULT_VERSION_INFORMATION); } - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param repository - * @param directory - * - * @throws IOException - * @throws RepositoryException - */ @Override - protected void create(Repository repository, File directory) - throws RepositoryException, IOException - { + protected void create(Repository repository, File directory) throws InternalRepositoryException { Compatibility comp = config.getCompatibility(); if (logger.isDebugEnabled()) @@ -228,7 +173,7 @@ public class SvnRepositoryHandler } catch (SVNException ex) { - throw new RepositoryException(ex); + throw new InternalRepositoryException(ex); } finally { diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java index 6cc5eb5da9..28419391ab 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java @@ -38,10 +38,8 @@ package sonia.scm.repository; import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.google.common.io.Closeables; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNErrorCode; import org.tmatesoft.svn.core.SVNLogEntry; import org.tmatesoft.svn.core.SVNLogEntryPath; @@ -52,20 +50,17 @@ import org.tmatesoft.svn.core.internal.util.SVNXMLUtil; import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.wc.SVNClientManager; import org.tmatesoft.svn.core.wc.admin.SVNChangeEntry; - import sonia.scm.util.HttpUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; - import java.util.List; import java.util.Map; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -351,21 +346,7 @@ public final class SvnUtil } } - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param revision - * - * @return - * - * @throws RepositoryException - */ - public static long getRevisionNumber(String revision) - throws RepositoryException - { + public static long getRevisionNumber(String revision) throws RevisionNotFoundException { long revisionNumber = -1; if (Util.isNotEmpty(revision)) @@ -376,7 +357,7 @@ public final class SvnUtil } catch (NumberFormatException ex) { - throw new RepositoryException("given revision is not a svnrevision"); + throw new RevisionNotFoundException(revision); } } diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java index 9c059d0ea5..fe9a72ffce 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java @@ -35,7 +35,6 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Lists; - import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNURL; import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager; @@ -43,21 +42,18 @@ import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.io.SVNRepositoryFactory; import org.tmatesoft.svn.core.wc.SVNLogClient; import org.tmatesoft.svn.core.wc.SVNRevision; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.SvnBlameHandler; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; -import java.io.IOException; - import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -65,37 +61,13 @@ import java.util.List; public class SvnBlameCommand extends AbstractSvnCommand implements BlameCommand { - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ public SvnBlameCommand(SvnContext context, Repository repository) { super(context, repository); } - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public BlameResult getBlameResult(BlameCommandRequest request) - throws IOException, RepositoryException - { + public BlameResult getBlameResult(BlameCommandRequest request) { String path = request.getPath(); String revision = request.getRevision(); List<BlameLine> blameLines = Lists.newArrayList(); @@ -126,7 +98,7 @@ public class SvnBlameCommand extends AbstractSvnCommand implements BlameCommand } catch (SVNException ex) { - throw new RepositoryException("could not create blame result", ex); + throw new InternalRepositoryException("could not create blame result", ex); } return new BlameResult(blameLines.size(), blameLines); diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java index 1464d7eb96..54b8458715 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java @@ -36,32 +36,27 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Lists; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNDirEntry; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNNodeKind; import org.tmatesoft.svn.core.SVNProperties; import org.tmatesoft.svn.core.SVNProperty; import org.tmatesoft.svn.core.io.SVNRepository; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.SubRepository; import sonia.scm.repository.SvnUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - import java.util.Collection; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -76,40 +71,14 @@ public class SvnBrowseCommand extends AbstractSvnCommand private static final Logger logger = LoggerFactory.getLogger(SvnBrowseCommand.class); - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ SvnBrowseCommand(SvnContext context, Repository repository) { super(context, repository); } - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") - public BrowserResult getBrowserResult(BrowseCommandRequest request) - throws IOException, RepositoryException - { + public BrowserResult getBrowserResult(BrowseCommandRequest request) throws RevisionNotFoundException { String path = request.getPath(); long revisionNumber = SvnUtil.getRevisionNumber(request.getRevision()); @@ -293,7 +262,7 @@ public class SvnBrowseCommand extends AbstractSvnCommand } catch (SVNException ex) { - logger.error("could not fetch file properties"); + logger.error("could not fetch file properties", ex); } } } diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java index af9dbe5fda..c3ce87decf 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java @@ -37,25 +37,22 @@ package sonia.scm.repository.spi; import com.google.common.io.ByteSink; import com.google.common.io.Closeables; - import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.wc.SVNClientManager; import org.tmatesoft.svn.core.wc.SVNRevision; import org.tmatesoft.svn.core.wc.admin.SVNAdminClient; - import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.SvnUtil; import sonia.scm.repository.api.BundleResponse; -import static com.google.common.base.Preconditions.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; import java.io.OutputStream; +import static com.google.common.base.Preconditions.checkNotNull; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra <s.sdorra@gmail.com> @@ -64,31 +61,11 @@ public class SvnBundleCommand extends AbstractSvnCommand implements BundleCommand { - /** - * Constructs ... - * - * - * @param context - * @param repository - */ public SvnBundleCommand(SvnContext context, Repository repository) { super(context, repository); } - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param adminClient - * @param repository - * @param target - * - * @throws IOException - * @throws SVNException - */ private static void dump(SVNAdminClient adminClient, File repository, ByteSink target) throws SVNException, IOException @@ -107,21 +84,8 @@ public class SvnBundleCommand extends AbstractSvnCommand } } - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override - public BundleResponse bundle(BundleCommandRequest request) - throws IOException, RepositoryException - { + public BundleResponse bundle(BundleCommandRequest request) throws IOException { ByteSink archive = checkNotNull(request.getArchive(), "archive is required"); diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java index 4a8b907c29..4936a16a8c 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java @@ -43,15 +43,14 @@ import org.tmatesoft.svn.core.SVNProperties; import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.wc.SVNClientManager; import org.tmatesoft.svn.core.wc.admin.SVNLookClient; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.PathNotFoundException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.SvnUtil; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; -import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -72,15 +71,6 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand //~--- constructors --------------------------------------------------------- - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ SvnCatCommand(SvnContext context, Repository repository) { super(context, repository); @@ -88,20 +78,8 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param request - * @param output - * - * @throws IOException - * @throws RepositoryException - */ @Override - public void getCatResult(CatCommandRequest request, OutputStream output) - throws IOException, RepositoryException - { + public void getCatResult(CatCommandRequest request, OutputStream output) throws RevisionNotFoundException, PathNotFoundException { if (logger.isDebugEnabled()) { logger.debug("try to get content for {}", request); @@ -125,7 +103,7 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand } @Override - public InputStream getCatResultStream(CatCommandRequest request) throws IOException, RepositoryException { + public InputStream getCatResultStream(CatCommandRequest request) throws RevisionNotFoundException, PathNotFoundException { // There seems to be no method creating an input stream as a result, so // we have no other possibility then to copy the content into a buffer and // stream it from there. @@ -134,20 +112,7 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand return new ByteArrayInputStream(output.toByteArray()); } - /** - * Method description - * - * - * @param request - * @param output - * @param revision - * - * @throws RepositoryException - */ - private void getCatFromRevision(CatCommandRequest request, - OutputStream output, long revision) - throws RepositoryException - { + private void getCatFromRevision(CatCommandRequest request, OutputStream output, long revision) throws PathNotFoundException, RevisionNotFoundException { logger.debug("try to read content from revision {} and path {}", revision, request.getPath()); @@ -164,31 +129,18 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand } } - private void handleSvnException(CatCommandRequest request, SVNException ex) throws RepositoryException { + private void handleSvnException(CatCommandRequest request, SVNException ex) throws PathNotFoundException, RevisionNotFoundException { int svnErrorCode = ex.getErrorMessage().getErrorCode().getCode(); if (SVNErrorCode.FS_NOT_FOUND.getCode() == svnErrorCode) { throw new PathNotFoundException(request.getPath()); } else if (SVNErrorCode.FS_NO_SUCH_REVISION.getCode() == svnErrorCode) { throw new RevisionNotFoundException(request.getRevision()); } else { - throw new RepositoryException("could not get content from revision", ex); + throw new InternalRepositoryException("could not get content from revision", ex); } } - /** - * Method description - * - * - * @param request - * @param output - * @param txn - * - * @throws RepositoryException - */ - private void getCatFromTransaction(CatCommandRequest request, - OutputStream output, String txn) - throws RepositoryException - { + private void getCatFromTransaction(CatCommandRequest request, OutputStream output, String txn) { logger.debug("try to read content from transaction {} and path {}", txn, request.getPath()); @@ -204,8 +156,7 @@ public class SvnCatCommand extends AbstractSvnCommand implements CatCommand } catch (SVNException ex) { - throw new RepositoryException("could not get content from transaction", - ex); + throw new InternalRepositoryException("could not get content from transaction", ex); } finally { diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java index f7af17326d..0b65466a42 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java @@ -36,10 +36,8 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Preconditions; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNDepth; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNURL; @@ -48,18 +46,17 @@ import org.tmatesoft.svn.core.wc.ISVNDiffGenerator; import org.tmatesoft.svn.core.wc.SVNClientManager; import org.tmatesoft.svn.core.wc.SVNDiffClient; import org.tmatesoft.svn.core.wc.SVNRevision; - +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.SvnUtil; import sonia.scm.repository.api.DiffFormat; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; import java.io.OutputStream; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -73,38 +70,13 @@ public class SvnDiffCommand extends AbstractSvnCommand implements DiffCommand private static final Logger logger = LoggerFactory.getLogger(SvnDiffCommand.class); - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ public SvnDiffCommand(SvnContext context, Repository repository) { super(context, repository); } - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param request - * @param output - * - * @throws IOException - * @throws RepositoryException - */ @Override - public void getDiffResult(DiffCommandRequest request, OutputStream output) - throws IOException, RepositoryException - { + public void getDiffResult(DiffCommandRequest request, OutputStream output) throws RevisionNotFoundException { if (logger.isDebugEnabled()) { logger.debug("create diff for {}", request); @@ -149,7 +121,7 @@ public class SvnDiffCommand extends AbstractSvnCommand implements DiffCommand } catch (SVNException ex) { - throw new RepositoryException("could not create diff", ex); + throw new InternalRepositoryException("could not create diff", ex); } finally { diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java index b1024ec5b4..ededb4e1f0 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java @@ -37,33 +37,25 @@ package sonia.scm.repository.spi; import com.google.common.base.Strings; import com.google.common.collect.Lists; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.ISVNLogEntryHandler; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNLogEntry; import org.tmatesoft.svn.core.io.SVNRepository; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; +import sonia.scm.repository.InternalRepositoryException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.SvnUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - import java.util.Collection; import java.util.List; -/** - * - * @author Sebastian Sdorra - */ +//~--- JDK imports ------------------------------------------------------------ + public class SvnLogCommand extends AbstractSvnCommand implements LogCommand { @@ -73,17 +65,6 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand private static final Logger logger = LoggerFactory.getLogger(SvnLogCommand.class); - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * - * @param context - * @param repository - * @param repositoryDirectory - */ SvnLogCommand(SvnContext context, Repository repository) { super(context, repository); @@ -91,22 +72,9 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand //~--- get methods ---------------------------------------------------------- - /** - * Method description - * - * - * @param revision - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") - public Changeset getChangeset(String revision) - throws IOException, RepositoryException - { + public Changeset getChangeset(String revision) throws RevisionNotFoundException { Changeset changeset = null; if (logger.isDebugEnabled()) @@ -128,28 +96,15 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand } catch (SVNException ex) { - throw new RepositoryException("could not open repository", ex); + throw new InternalRepositoryException("could not open repository", ex); } return changeset; } - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ @Override @SuppressWarnings("unchecked") - public ChangesetPagingResult getChangesets(LogCommandRequest request) - throws IOException, RepositoryException - { + public ChangesetPagingResult getChangesets(LogCommandRequest request) throws RevisionNotFoundException { if (logger.isDebugEnabled()) { logger.debug("fetch changesets for {}", request); @@ -183,7 +138,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand } catch (SVNException ex) { - throw new RepositoryException("could not open repository", ex); + throw new InternalRepositoryException("could not open repository", ex); } return changesets; @@ -191,18 +146,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param v - * - * @return - * - * @throws RepositoryException - */ - private long parseRevision(String v) throws RepositoryException - { + private long parseRevision(String v) throws RevisionNotFoundException { long result = -1l; if (!Strings.isNullOrEmpty(v)) @@ -213,8 +157,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand } catch (NumberFormatException ex) { - throw new RepositoryException( - String.format("could not convert revision %s", v), ex); + throw new RevisionNotFoundException(v); } } diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java index e320dd3251..ec4f375df4 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java @@ -35,17 +35,15 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BlameLine; import sonia.scm.repository.BlameResult; -import sonia.scm.repository.RepositoryException; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * * @author Sebastian Sdorra @@ -53,15 +51,8 @@ import java.io.IOException; public class SvnBlameCommandTest extends AbstractSvnCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetBlameResult() throws IOException, RepositoryException + public void testGetBlameResult() { BlameCommandRequest request = new BlameCommandRequest(); @@ -85,17 +76,8 @@ public class SvnBlameCommandTest extends AbstractSvnCommandTestBase assertNull(line.getAuthor().getMail()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetBlameResultWithRevision() - throws IOException, RepositoryException - { + public void testGetBlameResultWithRevision() { BlameCommandRequest request = new BlameCommandRequest(); request.setPath("a.txt"); diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java index 369d179fed..c4c658ea7a 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java @@ -36,19 +36,21 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; -import sonia.scm.repository.RepositoryException; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.repository.RevisionNotFoundException; import java.io.IOException; - import java.util.List; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -56,16 +58,8 @@ import java.util.List; public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBrowse() throws IOException, RepositoryException - { + public void testBrowse() throws RevisionNotFoundException { List<FileObject> foList = getRootFromTip(new BrowseCommandRequest()); FileObject a = getFileObject(foList, "a.txt"); @@ -87,11 +81,9 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase * * * @throws IOException - * @throws RepositoryException */ @Test - public void testBrowseSubDirectory() throws IOException, RepositoryException - { + public void testBrowseSubDirectory() throws RevisionNotFoundException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setPath("c"); @@ -137,16 +129,8 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase checkDate(e.getLastModified()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testDisableLastCommit() throws IOException, RepositoryException - { + public void testDisableLastCommit() throws RevisionNotFoundException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setDisableLastCommit(true); @@ -160,8 +144,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase } @Test - public void testRecursive() throws IOException, RepositoryException - { + public void testRecursive() throws RevisionNotFoundException { BrowseCommandRequest request = new BrowseCommandRequest(); request.setRecursive(true); BrowserResult result = createCommand().getBrowserResult(request); @@ -220,20 +203,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase return a; } - /** - * Method description - * - * - * @param request - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - private List<FileObject> getRootFromTip(BrowseCommandRequest request) - throws IOException, RepositoryException - { + private List<FileObject> getRootFromTip(BrowseCommandRequest request) throws RevisionNotFoundException { BrowserResult result = createCommand().getBrowserResult(request); assertNotNull(result); diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java index 57fde186cf..9e7e40810c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java @@ -37,23 +37,22 @@ package sonia.scm.repository.spi; import com.google.common.io.ByteSink; import com.google.common.io.Files; - import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; - -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.api.BundleResponse; -import static org.hamcrest.Matchers.*; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; +import static org.hamcrest.Matchers.greaterThan; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.notNullValue; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -61,15 +60,8 @@ import java.io.IOException; public class SvnBundleCommandTest extends AbstractSvnCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testBundle() throws IOException, RepositoryException + public void testBundle() throws IOException { File file = temp.newFile(); ByteSink sink = Files.asByteSink(file); diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java index f7e2123bad..3980b3e558 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java @@ -34,7 +34,6 @@ package sonia.scm.repository.spi; import org.junit.Test; import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import java.io.ByteArrayOutputStream; @@ -48,7 +47,7 @@ import static org.junit.Assert.assertEquals; public class SvnCatCommandTest extends AbstractSvnCommandTestBase { @Test - public void testCat() throws IOException, RepositoryException { + public void testCat() throws PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); @@ -57,7 +56,7 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase { } @Test - public void testSimpleCat() throws IOException, RepositoryException { + public void testSimpleCat() throws PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("c/d.txt"); @@ -65,7 +64,7 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase { } @Test(expected = PathNotFoundException.class) - public void testUnknownFile() throws IOException, RepositoryException { + public void testUnknownFile() throws PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("unknown"); @@ -75,7 +74,7 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase { } @Test(expected = RevisionNotFoundException.class) - public void testUnknownRevision() throws IOException, RepositoryException { + public void testUnknownRevision() throws PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); @@ -85,7 +84,7 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase { } @Test - public void testSimpleStream() throws IOException, RepositoryException { + public void testSimpleStream() throws IOException, PathNotFoundException, RevisionNotFoundException { CatCommandRequest request = new CatCommandRequest(); request.setPath("a.txt"); request.setRevision("1"); @@ -99,7 +98,7 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase { catResultStream.close(); } - private String execute(CatCommandRequest request) throws IOException, RepositoryException { + private String execute(CatCommandRequest request) throws PathNotFoundException, RevisionNotFoundException { String content = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java index a3942bd0f4..941687190c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java @@ -35,18 +35,18 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import org.junit.Test; - import sonia.scm.repository.Changeset; import sonia.scm.repository.ChangesetPagingResult; import sonia.scm.repository.Modifications; -import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RevisionNotFoundException; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; //~--- JDK imports ------------------------------------------------------------ -import java.io.IOException; - /** * * @author Sebastian Sdorra @@ -54,16 +54,8 @@ import java.io.IOException; public class SvnLogCommandTest extends AbstractSvnCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAll() throws IOException, RepositoryException - { + public void testGetAll() throws RevisionNotFoundException { ChangesetPagingResult result = createCommand().getChangesets(new LogCommandRequest()); @@ -72,16 +64,8 @@ public class SvnLogCommandTest extends AbstractSvnCommandTestBase assertEquals(6, result.getChangesets().size()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllByPath() throws IOException, RepositoryException - { + public void testGetAllByPath() throws RevisionNotFoundException { LogCommandRequest request = new LogCommandRequest(); request.setPath("a.txt"); @@ -96,16 +80,8 @@ public class SvnLogCommandTest extends AbstractSvnCommandTestBase assertEquals("1", result.getChangesets().get(2).getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllWithLimit() throws IOException, RepositoryException - { + public void testGetAllWithLimit() throws RevisionNotFoundException { LogCommandRequest request = new LogCommandRequest(); request.setPagingLimit(2); @@ -127,16 +103,8 @@ public class SvnLogCommandTest extends AbstractSvnCommandTestBase assertEquals("4", c2.getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetAllWithPaging() throws IOException, RepositoryException - { + public void testGetAllWithPaging() throws RevisionNotFoundException { LogCommandRequest request = new LogCommandRequest(); request.setPagingStart(1); @@ -159,16 +127,8 @@ public class SvnLogCommandTest extends AbstractSvnCommandTestBase assertEquals("3", c2.getId()); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetCommit() throws IOException, RepositoryException - { + public void testGetCommit() throws RevisionNotFoundException { Changeset c = createCommand().getChangeset("3"); assertNotNull(c); @@ -188,16 +148,8 @@ public class SvnLogCommandTest extends AbstractSvnCommandTestBase assertEquals("b.txt", mods.getRemoved().get(0)); } - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - */ @Test - public void testGetRange() throws IOException, RepositoryException - { + public void testGetRange() throws RevisionNotFoundException { LogCommandRequest request = new LogCommandRequest(); request.setStartChangeset("2"); diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java index 2c59797296..133518e8db 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java @@ -34,26 +34,22 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.io.Files; - import org.junit.Test; - import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.SVNRepository; import org.tmatesoft.svn.core.io.SVNRepositoryFactory; - -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.SvnUtil; import sonia.scm.repository.api.UnbundleResponse; -import static org.hamcrest.Matchers.*; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ - import java.io.File; import java.io.IOException; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.notNullValue; +import static org.junit.Assert.assertThat; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -61,17 +57,9 @@ import java.io.IOException; public class SvnUnbundleCommandTest extends AbstractSvnCommandTestBase { - /** - * Method description - * - * - * @throws IOException - * @throws RepositoryException - * @throws SVNException - */ @Test public void testUnbundle() - throws IOException, RepositoryException, SVNException + throws IOException, SVNException { File bundle = bundle(); SvnContext ctx = createEmptyContext(); @@ -95,16 +83,7 @@ public class SvnUnbundleCommandTest extends AbstractSvnCommandTestBase SvnUtil.closeSession(repo); } - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws RepositoryException - */ - private File bundle() throws IOException, RepositoryException + private File bundle() throws IOException { File file = tempFolder.newFile(); diff --git a/scm-test/src/main/java/sonia/scm/ManagerTestBase.java b/scm-test/src/main/java/sonia/scm/ManagerTestBase.java index 24bd2a0ebb..eda3182638 100644 --- a/scm-test/src/main/java/sonia/scm/ManagerTestBase.java +++ b/scm-test/src/main/java/sonia/scm/ManagerTestBase.java @@ -33,21 +33,21 @@ package sonia.scm; -import java.io.IOException; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.rules.TemporaryFolder; import sonia.scm.util.MockUtil; +import java.io.IOException; + /** * * @author Sebastian Sdorra * * @param <T> - * @param <E> */ -public abstract class ManagerTestBase<T extends ModelObject, E extends Exception> +public abstract class ManagerTestBase<T extends ModelObject> { @Rule @@ -55,7 +55,7 @@ public abstract class ManagerTestBase<T extends ModelObject, E extends Exception protected SCMContextProvider contextProvider; - protected Manager<T, E> manager; + protected Manager<T> manager; @Before public void setUp() throws IOException { @@ -75,6 +75,6 @@ public abstract class ManagerTestBase<T extends ModelObject, E extends Exception * * @return */ - protected abstract Manager<T, E> createManager(); + protected abstract Manager<T> createManager(); } diff --git a/scm-test/src/main/java/sonia/scm/repository/DummyRepositoryHandler.java b/scm-test/src/main/java/sonia/scm/repository/DummyRepositoryHandler.java index db4cfe0090..5a1dc605bb 100644 --- a/scm-test/src/main/java/sonia/scm/repository/DummyRepositoryHandler.java +++ b/scm-test/src/main/java/sonia/scm/repository/DummyRepositoryHandler.java @@ -34,6 +34,7 @@ package sonia.scm.repository; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Sets; +import sonia.scm.AlreadyExistsException; import sonia.scm.io.DefaultFileSystem; import sonia.scm.store.ConfigurationStoreFactory; @@ -70,10 +71,10 @@ public class DummyRepositoryHandler @Override - protected void create(Repository repository, File directory) throws RepositoryException { + protected void create(Repository repository, File directory) throws AlreadyExistsException { String key = repository.getNamespace() + "/" + repository.getName(); if (existingRepoNames.contains(key)) { - throw new RepositoryAlreadyExistsException("Repo exists"); + throw new AlreadyExistsException(); } else { existingRepoNames.add(key); } diff --git a/scm-test/src/main/java/sonia/scm/repository/SimpleRepositoryHandlerTestBase.java b/scm-test/src/main/java/sonia/scm/repository/SimpleRepositoryHandlerTestBase.java index 680ac83dd9..999ef1dc45 100644 --- a/scm-test/src/main/java/sonia/scm/repository/SimpleRepositoryHandlerTestBase.java +++ b/scm-test/src/main/java/sonia/scm/repository/SimpleRepositoryHandlerTestBase.java @@ -35,6 +35,7 @@ package sonia.scm.repository; import org.junit.Test; import sonia.scm.AbstractTestBase; +import sonia.scm.AlreadyExistsException; import sonia.scm.store.ConfigurationStoreFactory; import sonia.scm.store.InMemoryConfigurationStoreFactory; import sonia.scm.util.IOUtil; @@ -60,12 +61,12 @@ public abstract class SimpleRepositoryHandlerTestBase extends AbstractTestBase { ConfigurationStoreFactory factory, File directory); @Test - public void testCreate() throws RepositoryException { + public void testCreate() throws AlreadyExistsException { createRepository(); } @Test - public void testCreateResourcePath() throws RepositoryException { + public void testCreateResourcePath() throws AlreadyExistsException { Repository repository = createRepository(); String path = handler.createResourcePath(repository); @@ -75,7 +76,7 @@ public abstract class SimpleRepositoryHandlerTestBase extends AbstractTestBase { } @Test - public void testDelete() throws RepositoryException { + public void testDelete() throws Exception { Repository repository = createRepository(); handler.delete(repository); @@ -100,7 +101,7 @@ public abstract class SimpleRepositoryHandlerTestBase extends AbstractTestBase { } } - private Repository createRepository() throws RepositoryException { + private Repository createRepository() throws AlreadyExistsException { Repository repository = RepositoryTestData.createHeartOfGold(); handler.create(repository); diff --git a/scm-test/src/main/java/sonia/scm/repository/client/spi/CommitRequest.java b/scm-test/src/main/java/sonia/scm/repository/client/spi/CommitRequest.java index fd473300fa..2138fef5cc 100644 --- a/scm-test/src/main/java/sonia/scm/repository/client/spi/CommitRequest.java +++ b/scm-test/src/main/java/sonia/scm/repository/client/spi/CommitRequest.java @@ -34,8 +34,8 @@ package sonia.scm.repository.client.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - import sonia.scm.repository.Person; /** @@ -105,7 +105,7 @@ public final class CommitRequest public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("author", author) .add("message", message) .toString(); diff --git a/scm-test/src/main/java/sonia/scm/repository/client/spi/TagRequest.java b/scm-test/src/main/java/sonia/scm/repository/client/spi/TagRequest.java index fccf555c16..ff34309b6d 100644 --- a/scm-test/src/main/java/sonia/scm/repository/client/spi/TagRequest.java +++ b/scm-test/src/main/java/sonia/scm/repository/client/spi/TagRequest.java @@ -34,8 +34,8 @@ package sonia.scm.repository.client.spi; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; - /** * * @author Sebastian Sdorra @@ -103,7 +103,7 @@ public final class TagRequest public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("revision", revision) .add("name", name) .toString(); diff --git a/scm-test/src/main/java/sonia/scm/user/UserManagerTestBase.java b/scm-test/src/main/java/sonia/scm/user/UserManagerTestBase.java index 86b3de5615..9f1c50c797 100644 --- a/scm-test/src/main/java/sonia/scm/user/UserManagerTestBase.java +++ b/scm-test/src/main/java/sonia/scm/user/UserManagerTestBase.java @@ -37,46 +37,33 @@ package sonia.scm.user; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; - import org.junit.Test; - +import sonia.scm.AlreadyExistsException; +import sonia.scm.ConcurrentModificationException; import sonia.scm.Manager; import sonia.scm.ManagerTestBase; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ +import sonia.scm.NotFoundException; import java.io.IOException; - import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.UUID; -/** - * - * @author Sebastian Sdorra - */ -public abstract class UserManagerTestBase - extends ManagerTestBase<User, UserException> -{ +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + +//~--- JDK imports ------------------------------------------------------------ + +public abstract class UserManagerTestBase extends ManagerTestBase<User> { - /** Field description */ public static final int THREAD_COUNT = 10; - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testCreate() throws UserException, IOException - { + public void testCreate() throws AlreadyExistsException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -87,16 +74,8 @@ public abstract class UserManagerTestBase assertUserEquals(zaphod, otherUser); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ - @Test(expected = UserAlreadyExistsException.class) - public void testCreateExisting() throws UserException, IOException - { + @Test(expected = AlreadyExistsException.class) + public void testCreateExisting() throws AlreadyExistsException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -107,16 +86,8 @@ public abstract class UserManagerTestBase manager.create(sameUser); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testDelete() throws UserException, IOException - { + public void testDelete() throws Exception { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -125,29 +96,13 @@ public abstract class UserManagerTestBase assertNull(manager.get("zaphod")); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ - @Test(expected = UserNotFoundException.class) - public void testDeleteNotFound() throws UserException, IOException - { + @Test(expected = NotFoundException.class) + public void testDeleteNotFound() throws Exception { manager.delete(UserTestData.createDent()); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testGet() throws UserException, IOException - { + public void testGet() throws AlreadyExistsException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -160,16 +115,8 @@ public abstract class UserManagerTestBase assertEquals("Zaphod Beeblebrox", zaphod.getDisplayName()); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testGetAll() throws UserException, IOException - { + public void testGetAll() throws AlreadyExistsException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -233,16 +180,8 @@ public abstract class UserManagerTestBase assertEquals(reference.getDisplayName(), "Tricia McMillan"); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testModify() throws UserException, IOException - { + public void testModify() throws AlreadyExistsException, NotFoundException, ConcurrentModificationException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -256,31 +195,13 @@ public abstract class UserManagerTestBase assertEquals(otherUser.getDisplayName(), "Tricia McMillan"); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ - @Test(expected = UserException.class) - public void testModifyNotExisting() throws UserException, IOException - { + @Test(expected = NotFoundException.class) + public void testModifyNotExisting() throws NotFoundException, ConcurrentModificationException { manager.modify(UserTestData.createZaphod()); } - /** - * Method description - * - * - * @throws IOException - * @throws InterruptedException - * @throws UserException - */ @Test - public void testMultiThreaded() - throws UserException, IOException, InterruptedException - { + public void testMultiThreaded() throws InterruptedException { int initialSize = manager.getAll().size(); List<MultiThreadTester> testers = new ArrayList<MultiThreadTester>(); @@ -316,16 +237,8 @@ public abstract class UserManagerTestBase assertTrue((initialSize + THREAD_COUNT) == manager.getAll().size()); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ @Test - public void testRefresh() throws UserException, IOException - { + public void testRefresh() throws AlreadyExistsException, NotFoundException { User zaphod = UserTestData.createZaphod(); manager.create(zaphod); @@ -335,26 +248,11 @@ public abstract class UserManagerTestBase assertEquals(zaphod.getDisplayName(), "Zaphod Beeblebrox"); } - /** - * Method description - * - * - * @throws IOException - * @throws UserException - */ - @Test(expected = UserNotFoundException.class) - public void testRefreshNotFound() throws UserException, IOException - { + @Test(expected = NotFoundException.class) + public void testRefreshNotFound() throws NotFoundException { manager.refresh(UserTestData.createDent()); } - /** - * Method description - * - * - * @param user - * @param otherUser - */ private void assertUserEquals(User user, User otherUser) { assertEquals(user.getName(), otherUser.getName()); @@ -363,35 +261,16 @@ public abstract class UserManagerTestBase assertEquals(user.getPassword(), otherUser.getPassword()); } - //~--- inner classes -------------------------------------------------------- - - /** - * Class description - * - * - * @version Enter version here..., 2010-11-23 - * @author Sebastian Sdorra - */ private static class MultiThreadTester implements Runnable { - /** - * Constructs ... - * - * - * @param userManager - */ - public MultiThreadTester(Manager<User, UserException> userManager) + public MultiThreadTester(Manager<User> userManager) { this.manager = userManager; } //~--- methods ------------------------------------------------------------ - /** - * Method description - * - */ @Override public void run() { @@ -410,17 +289,7 @@ public abstract class UserManagerTestBase finished = true; } - /** - * Method description - * - * - * @return - * - * @throws IOException - * @throws UserException - */ - private User createUser() throws UserException, IOException - { + private User createUser() throws AlreadyExistsException { String id = UUID.randomUUID().toString(); User user = new User(id, id.concat(" displayName"), id.concat("@mail.com")); @@ -430,18 +299,7 @@ public abstract class UserManagerTestBase return user; } - /** - * Method description - * - * - * @param user - * - * @throws IOException - * @throws UserException - */ - private void modifyAndDeleteUser(User user) - throws UserException, IOException - { + private void modifyAndDeleteUser(User user) throws IOException, NotFoundException, ConcurrentModificationException { String name = user.getName(); String nd = name.concat(" new displayname"); @@ -463,6 +321,6 @@ public abstract class UserManagerTestBase private boolean finished = false; /** Field description */ - private Manager<User, UserException> manager; + private Manager<User> manager; } } diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index 6d3b94412d..602be8185e 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -99,11 +99,6 @@ <artifactId>jackson-datatype-jsr310</artifactId> <version>${jackson.version}</version> </dependency> - <dependency> - <groupId>javax</groupId> - <artifactId>javaee-api</artifactId> - <version>7.0</version> - </dependency> <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> diff --git a/scm-webapp/src/main/java/sonia/scm/ClassOverride.java b/scm-webapp/src/main/java/sonia/scm/ClassOverride.java index 63d4c8339b..8741ce85af 100644 --- a/scm-webapp/src/main/java/sonia/scm/ClassOverride.java +++ b/scm-webapp/src/main/java/sonia/scm/ClassOverride.java @@ -34,13 +34,14 @@ package sonia.scm; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -97,7 +98,7 @@ public class ClassOverride implements Validateable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("bind", bind) .add("to", to) .toString(); diff --git a/scm-webapp/src/main/java/sonia/scm/ManagerDaoAdapter.java b/scm-webapp/src/main/java/sonia/scm/ManagerDaoAdapter.java index abc9ab2fd9..e2a1f29a33 100644 --- a/scm-webapp/src/main/java/sonia/scm/ManagerDaoAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/ManagerDaoAdapter.java @@ -7,19 +7,15 @@ import java.util.function.Function; import java.util.function.Predicate; import java.util.function.Supplier; -public class ManagerDaoAdapter<T extends ModelObject, E extends Exception> { +public class ManagerDaoAdapter<T extends ModelObject> { private final GenericDAO<T> dao; - private final Function<T, E> notFoundException; - private final Function<T, E> alreadyExistsException; - public ManagerDaoAdapter(GenericDAO<T> dao, Function<T, E> notFoundException, Function<T, E> alreadyExistsException) { + public ManagerDaoAdapter(GenericDAO<T> dao) { this.dao = dao; - this.notFoundException = notFoundException; - this.alreadyExistsException = alreadyExistsException; } - public void modify(T object, Function<T, PermissionCheck> permissionCheck, AroundHandler<T, E> beforeUpdate, AroundHandler<T, E> afterUpdate) throws E { + public void modify(T object, Function<T, PermissionCheck> permissionCheck, AroundHandler<T> beforeUpdate, AroundHandler<T> afterUpdate) throws NotFoundException { T notModified = dao.get(object.getId()); if (notModified != null) { permissionCheck.apply(notModified).check(); @@ -34,19 +30,19 @@ public class ManagerDaoAdapter<T extends ModelObject, E extends Exception> { afterUpdate.handle(notModified); } else { - throw notFoundException.apply(object); + throw new NotFoundException(); } } - public T create(T newObject, Supplier<PermissionCheck> permissionCheck, AroundHandler<T, E> beforeCreate, AroundHandler<T, E> afterCreate) throws E { + public T create(T newObject, Supplier<PermissionCheck> permissionCheck, AroundHandler<T> beforeCreate, AroundHandler<T> afterCreate) throws AlreadyExistsException { return create(newObject, permissionCheck, beforeCreate, afterCreate, dao::contains); } - public T create(T newObject, Supplier<PermissionCheck> permissionCheck, AroundHandler<T, E> beforeCreate, AroundHandler<T, E> afterCreate, Predicate<T> existsCheck) throws E { + public T create(T newObject, Supplier<PermissionCheck> permissionCheck, AroundHandler<T> beforeCreate, AroundHandler<T> afterCreate, Predicate<T> existsCheck) throws AlreadyExistsException { permissionCheck.get().check(); AssertUtil.assertIsValid(newObject); if (existsCheck.test(newObject)) { - throw alreadyExistsException.apply(newObject); + throw new AlreadyExistsException(); } newObject.setCreationDate(System.currentTimeMillis()); beforeCreate.handle(newObject); @@ -55,19 +51,19 @@ public class ManagerDaoAdapter<T extends ModelObject, E extends Exception> { return newObject; } - public void delete(T toDelete, Supplier<PermissionCheck> permissionCheck, AroundHandler<T, E> beforeDelete, AroundHandler<T, E> afterDelete) throws E { + public void delete(T toDelete, Supplier<PermissionCheck> permissionCheck, AroundHandler<T> beforeDelete, AroundHandler<T> afterDelete) throws NotFoundException { permissionCheck.get().check(); if (dao.contains(toDelete)) { beforeDelete.handle(toDelete); dao.delete(toDelete); afterDelete.handle(toDelete); } else { - throw notFoundException.apply(toDelete); + throw new NotFoundException(); } } @FunctionalInterface - public interface AroundHandler<T extends ModelObject, E extends Exception> { - void handle(T notModified) throws E; + public interface AroundHandler<T extends ModelObject> { + void handle(T notModified); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/UserAlreadyExistsExceptionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/rest/AlreadyExistsExceptionMapper.java similarity index 53% rename from scm-webapp/src/main/java/sonia/scm/api/rest/UserAlreadyExistsExceptionMapper.java rename to scm-webapp/src/main/java/sonia/scm/api/rest/AlreadyExistsExceptionMapper.java index ef0cc8b0a4..28240482e5 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/UserAlreadyExistsExceptionMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/AlreadyExistsExceptionMapper.java @@ -1,6 +1,6 @@ package sonia.scm.api.rest; -import sonia.scm.user.UserAlreadyExistsException; +import sonia.scm.AlreadyExistsException; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; @@ -8,9 +8,9 @@ import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; @Provider -public class UserAlreadyExistsExceptionMapper implements ExceptionMapper<UserAlreadyExistsException> { +public class AlreadyExistsExceptionMapper implements ExceptionMapper<AlreadyExistsException> { @Override - public Response toResponse(UserAlreadyExistsException exception) { + public Response toResponse(AlreadyExistsException exception) { return Response.status(Status.CONFLICT).build(); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/GroupAlreadyExistsExceptionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/rest/GroupAlreadyExistsExceptionMapper.java deleted file mode 100644 index 43c0d1ff32..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/GroupAlreadyExistsExceptionMapper.java +++ /dev/null @@ -1,16 +0,0 @@ -package sonia.scm.api.rest; - -import sonia.scm.group.GroupAlreadyExistsException; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; - -@Provider -public class GroupAlreadyExistsExceptionMapper implements ExceptionMapper<GroupAlreadyExistsException> { - @Override - public Response toResponse(GroupAlreadyExistsException exception) { - return Response.status(Status.CONFLICT).build(); - } -} diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/Permission.java b/scm-webapp/src/main/java/sonia/scm/api/rest/Permission.java index cab11840df..ba707c19c2 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/Permission.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/Permission.java @@ -34,15 +34,15 @@ package sonia.scm.api.rest; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -127,7 +127,7 @@ public class Permission implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("id", id) .add("value", value) .toString(); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/RepositoryAlreadyExistsExceptionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/rest/RepositoryAlreadyExistsExceptionMapper.java deleted file mode 100644 index e69b9e98d6..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/RepositoryAlreadyExistsExceptionMapper.java +++ /dev/null @@ -1,16 +0,0 @@ -package sonia.scm.api.rest; - -import sonia.scm.repository.RepositoryAlreadyExistsException; - -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; - -@Provider -public class RepositoryAlreadyExistsExceptionMapper implements ExceptionMapper<RepositoryAlreadyExistsException> { - @Override - public Response toResponse(RepositoryAlreadyExistsException exception) { - return Response.status(Status.CONFLICT).build(); - } -} diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/RestExceptionResult.java b/scm-webapp/src/main/java/sonia/scm/api/rest/RestExceptionResult.java index 42130a0a35..5c0e048b78 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/RestExceptionResult.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/RestExceptionResult.java @@ -34,15 +34,16 @@ package sonia.scm.api.rest; //~--- non-JDK imports -------------------------------------------------------- +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.base.Throwables; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -145,7 +146,7 @@ public class RestExceptionResult public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("message", message) .add("stacktrace", stacktrace) .toString(); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/AbstractManagerResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/AbstractManagerResource.java index 2ad7a64255..f00072cdcb 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/AbstractManagerResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/AbstractManagerResource.java @@ -48,8 +48,13 @@ import sonia.scm.util.AssertUtil; import sonia.scm.util.HttpUtil; import sonia.scm.util.Util; -import javax.ws.rs.core.*; +import javax.ws.rs.core.CacheControl; +import javax.ws.rs.core.EntityTag; +import javax.ws.rs.core.GenericEntity; +import javax.ws.rs.core.Request; +import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; +import javax.ws.rs.core.UriInfo; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; @@ -61,28 +66,19 @@ import java.util.Date; //~--- JDK imports ------------------------------------------------------------ -/** - * - * @author Sebastian Sdorra - * - * @param <T> - * @param <E> - */ -public abstract class AbstractManagerResource<T extends ModelObject, - E extends Exception> -{ +public abstract class AbstractManagerResource<T extends ModelObject> { /** the logger for AbstractManagerResource */ private static final Logger logger = LoggerFactory.getLogger(AbstractManagerResource.class); - protected final Manager<T, E> manager; + protected final Manager<T> manager; private final Class<T> type; protected int cacheMaxAge = 0; protected boolean disableCache = false; - public AbstractManagerResource(Manager<T, E> manager, Class<T> type) { + public AbstractManagerResource(Manager<T> manager, Class<T> type) { this.manager = manager; this.type = type; } diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/BrowserStreamingOutput.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/BrowserStreamingOutput.java index 73f59f14da..2705b407de 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/BrowserStreamingOutput.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/BrowserStreamingOutput.java @@ -38,7 +38,6 @@ package sonia.scm.api.rest.resources; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.api.CatCommandBuilder; import sonia.scm.repository.api.RepositoryService; @@ -120,13 +119,13 @@ public class BrowserStreamingOutput implements StreamingOutput throw new WebApplicationException(Response.Status.NOT_FOUND); } - catch (RepositoryException ex) - { - logger.error("could not write content to page", ex); - - throw new WebApplicationException(ex, - Response.Status.INTERNAL_SERVER_ERROR); - } +// catch (RepositoryException ex) +// { +// logger.error("could not write content to page", ex); +// +// throw new WebApplicationException(ex, +// Response.Status.INTERNAL_SERVER_ERROR); +// } finally { IOUtil.close(repositoryService); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/ChangePasswordResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/ChangePasswordResource.java index 7aed8dde0b..95f729c2a3 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/ChangePasswordResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/ChangePasswordResource.java @@ -39,26 +39,20 @@ import com.google.inject.Inject; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; - import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.credential.PasswordService; import org.apache.shiro.subject.Subject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - +import sonia.scm.ConcurrentModificationException; +import sonia.scm.NotFoundException; import sonia.scm.api.rest.RestActionResult; import sonia.scm.security.Role; import sonia.scm.security.ScmSecurityException; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.util.AssertUtil; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; @@ -67,6 +61,8 @@ import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +//~--- JDK imports ------------------------------------------------------------ + /** * Resource to change the password of the authenticated user. * @@ -104,11 +100,6 @@ public class ChangePasswordResource * * @param oldPassword old password of the current user * @param newPassword new password for the current user - * - * @return - * - * @throws IOException - * @throws UserException */ @POST @TypeHint(RestActionResult.class) @@ -118,10 +109,7 @@ public class ChangePasswordResource @ResponseCode(code = 500, condition = "internal server error") }) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) - public Response changePassword(@FormParam("old-password") String oldPassword, - @FormParam("new-password") String newPassword) - throws UserException, IOException - { + public Response changePassword(@FormParam("old-password") String oldPassword, @FormParam("new-password") String newPassword) throws NotFoundException, ConcurrentModificationException { AssertUtil.assertIsNotEmpty(oldPassword); AssertUtil.assertIsNotEmpty(newPassword); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/DiffStreamingOutput.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/DiffStreamingOutput.java index fc0f3751e5..db29725917 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/DiffStreamingOutput.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/DiffStreamingOutput.java @@ -35,26 +35,20 @@ package sonia.scm.api.rest.resources; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.io.Closeables; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - -import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.api.DiffCommandBuilder; import sonia.scm.repository.api.RepositoryService; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; -import java.io.OutputStream; +import sonia.scm.util.IOUtil; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; import javax.ws.rs.core.StreamingOutput; -import sonia.scm.util.IOUtil; +import java.io.IOException; +import java.io.OutputStream; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -96,22 +90,11 @@ public class DiffStreamingOutput implements StreamingOutput * @throws WebApplicationException */ @Override - public void write(OutputStream output) - throws IOException, WebApplicationException - { + public void write(OutputStream output) throws IOException { try { builder.retriveContent(output); } - catch (PathNotFoundException ex) - { - if (logger.isWarnEnabled()) - { - logger.warn("could not find path {}", ex.getPath()); - } - - throw new WebApplicationException(Response.Status.NOT_FOUND); - } catch (RevisionNotFoundException ex) { if (logger.isWarnEnabled()) @@ -121,13 +104,13 @@ public class DiffStreamingOutput implements StreamingOutput throw new WebApplicationException(Response.Status.NOT_FOUND); } - catch (RepositoryException ex) - { - logger.error("could not write content to page", ex); - - throw new WebApplicationException(ex, - Response.Status.INTERNAL_SERVER_ERROR); - } +// catch (RepositoryException ex) +// { +// logger.error("could not write content to page", ex); +// +// throw new WebApplicationException(ex, +// Response.Status.INTERNAL_SERVER_ERROR); +// } finally { IOUtil.close(repositoryService); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/GroupResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/GroupResource.java index 42816abd93..a560cc278e 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/GroupResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/GroupResource.java @@ -43,12 +43,25 @@ import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import org.apache.shiro.SecurityUtils; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.security.Role; -import javax.ws.rs.*; -import javax.ws.rs.core.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.GenericEntity; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Request; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.UriInfo; import java.util.Collection; //~--- JDK imports ------------------------------------------------------------ @@ -60,23 +73,13 @@ import java.util.Collection; */ @Path("groups") @Singleton -public class GroupResource - extends AbstractManagerResource<Group, GroupException> -{ +public class GroupResource extends AbstractManagerResource<Group> { /** Field description */ public static final String PATH_PART = "groups"; //~--- constructors --------------------------------------------------------- - /** - * Constructs ... - * - * - * - * @param securityContextProvider - * @param groupManager - */ @Inject public GroupResource(GroupManager groupManager) { diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java index 1b25fc3f79..4ffb349057 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java @@ -35,7 +35,7 @@ package sonia.scm.api.rest.resources; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; import com.google.common.io.Files; @@ -47,10 +47,19 @@ import com.webcohesion.enunciate.metadata.rs.TypeHint; import org.apache.shiro.SecurityUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; +import sonia.scm.NotFoundException; import sonia.scm.NotSupportedFeatuerException; import sonia.scm.Type; import sonia.scm.api.rest.RestActionUploadResult; -import sonia.scm.repository.*; +import sonia.scm.repository.AdvancedImportHandler; +import sonia.scm.repository.ImportHandler; +import sonia.scm.repository.ImportResult; +import sonia.scm.repository.InternalRepositoryException; +import sonia.scm.repository.Repository; +import sonia.scm.repository.RepositoryHandler; +import sonia.scm.repository.RepositoryManager; +import sonia.scm.repository.RepositoryType; import sonia.scm.repository.api.Command; import sonia.scm.repository.api.RepositoryService; import sonia.scm.repository.api.RepositoryServiceFactory; @@ -58,8 +67,21 @@ import sonia.scm.repository.api.UnbundleCommandBuilder; import sonia.scm.security.Role; import sonia.scm.util.IOUtil; -import javax.ws.rs.*; -import javax.ws.rs.core.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.GenericEntity; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.UriInfo; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @@ -256,10 +278,10 @@ public class RepositoryImportResource service = serviceFactory.create(repository); service.getPullCommand().pull(request.getUrl()); } - catch (RepositoryException ex) - { - handleImportFailure(ex, repository); - } +// catch (RepositoryException ex) +// { +// handleImportFailure(ex, repository); +// } catch (IOException ex) { handleImportFailure(ex, repository); @@ -413,11 +435,11 @@ public class RepositoryImportResource logger.warn("exception occured durring directory import", ex); response = Response.serverError().build(); } - catch (RepositoryException ex) - { - logger.warn("exception occured durring directory import", ex); - response = Response.serverError().build(); - } +// catch (RepositoryException ex) +// { +// logger.warn("exception occured durring directory import", ex); +// response = Response.serverError().build(); +// } } else { @@ -526,14 +548,14 @@ public class RepositoryImportResource // repository = new Repository(null, type, name); manager.create(repository); } - catch (RepositoryAlreadyExistsException ex) + catch (AlreadyExistsException ex) { logger.warn("a {} repository with the name {} already exists", type, name); throw new WebApplicationException(Response.Status.CONFLICT); } - catch (RepositoryException ex) + catch (InternalRepositoryException ex) { handleGenericCreationFailure(ex, type, name); } @@ -583,11 +605,7 @@ public class RepositoryImportResource service = serviceFactory.create(repository); service.getUnbundleCommand().setCompressed(compressed).unbundle(file); } - catch (RepositoryException ex) - { - handleImportFailure(ex, repository); - } - catch (IOException ex) + catch (InternalRepositoryException ex) { handleImportFailure(ex, repository); } @@ -685,9 +703,9 @@ public class RepositoryImportResource { manager.delete(repository); } - catch (RepositoryException e) + catch (InternalRepositoryException | NotFoundException e) { - logger.error("can not delete repository", e); + logger.error("can not delete repository after import failure", e); } throw new WebApplicationException(ex, @@ -741,7 +759,7 @@ public class RepositoryImportResource { throw new WebApplicationException(ex); } - catch (RepositoryException ex) + catch (InternalRepositoryException ex) { throw new WebApplicationException(ex); } @@ -812,7 +830,7 @@ public class RepositoryImportResource public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("name", name) .add("url", url) .toString(); diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java index 9b9688332f..4a9fd9e38f 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java @@ -46,16 +46,51 @@ import org.apache.shiro.SecurityUtils; import org.apache.shiro.authz.AuthorizationException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import sonia.scm.repository.*; -import sonia.scm.repository.api.*; +import sonia.scm.NotFoundException; +import sonia.scm.repository.BlameResult; +import sonia.scm.repository.Branches; +import sonia.scm.repository.BrowserResult; +import sonia.scm.repository.Changeset; +import sonia.scm.repository.ChangesetPagingResult; +import sonia.scm.repository.HealthChecker; +import sonia.scm.repository.Permission; +import sonia.scm.repository.Repository; +import sonia.scm.repository.RepositoryIsNotArchivedException; +import sonia.scm.repository.RepositoryManager; +import sonia.scm.repository.RepositoryNotFoundException; +import sonia.scm.repository.Tags; +import sonia.scm.repository.api.BlameCommandBuilder; +import sonia.scm.repository.api.BrowseCommandBuilder; +import sonia.scm.repository.api.CatCommandBuilder; +import sonia.scm.repository.api.CommandNotSupportedException; +import sonia.scm.repository.api.DiffCommandBuilder; +import sonia.scm.repository.api.DiffFormat; +import sonia.scm.repository.api.LogCommandBuilder; +import sonia.scm.repository.api.RepositoryService; +import sonia.scm.repository.api.RepositoryServiceFactory; import sonia.scm.util.AssertUtil; import sonia.scm.util.HttpUtil; import sonia.scm.util.IOUtil; import sonia.scm.util.Util; -import javax.ws.rs.*; -import javax.ws.rs.core.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.GenericEntity; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Request; +import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; +import javax.ws.rs.core.StreamingOutput; +import javax.ws.rs.core.UriInfo; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; @@ -69,7 +104,7 @@ import java.util.Collection; */ @Singleton @Path("repositories") -public class RepositoryResource extends AbstractManagerResource<Repository, RepositoryException> +public class RepositoryResource extends AbstractManagerResource<Repository> { /** Field description */ @@ -169,12 +204,15 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo { logger.warn("delete not allowed", ex); response = Response.status(Response.Status.FORBIDDEN).build(); + } catch (NotFoundException e) { + // there is nothing to do because delete should be idempotent + response = Response.ok().build(); } - catch (RepositoryException ex) - { - logger.error("error during delete", ex); - response = createErrorResponse(ex); - } +// catch (IOException ex) +// { +// logger.error("error during delete", ex); +// response = Response.serverError().build(); +// } } else { @@ -215,10 +253,8 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo { logger.warn("could not find repository ".concat(id), ex); response = Response.status(Status.NOT_FOUND).build(); - } - catch (RepositoryException | IOException ex) - { - logger.error("error occured during health check", ex); + } catch (NotFoundException e) { + logger.error("error occured during health check", e); response = Response.serverError().build(); } @@ -312,7 +348,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return a annotate/blame view for the given path * * @throws IOException - * @throws RepositoryException */ @GET @Path("{id}/blame") @@ -326,7 +361,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response getBlame(@PathParam("id") String id, @QueryParam("revision") String revision, @QueryParam("path") String path) - throws RepositoryException, IOException + throws IOException { Response response = null; RepositoryService service = null; @@ -382,7 +417,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return all {@link Branches} of a repository * * @throws IOException - * @throws RepositoryException * * @since 1.18 */ @@ -397,7 +431,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @TypeHint(Branches.class) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response getBranches(@PathParam("id") String id) - throws RepositoryException, IOException + throws IOException { Response response = null; RepositoryService service = null; @@ -446,7 +480,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return a list of folders and files for the given folder * * @throws IOException - * @throws RepositoryException */ @GET @Path("{id}/browse") @@ -466,7 +499,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @QueryParam("disableLastCommit") @DefaultValue("false") boolean disableLastCommit, @QueryParam("disableSubRepositoryDetection") @DefaultValue("false") boolean disableSubRepositoryDetection, @QueryParam("recursive") @DefaultValue("false") boolean recursive) - throws RepositoryException, IOException + throws IOException //J+ { Response response = null; @@ -505,7 +538,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo response = Response.status(Response.Status.NOT_FOUND).build(); } } - catch (RepositoryNotFoundException ex) + catch (NotFoundException ex) { response = Response.status(Response.Status.NOT_FOUND).build(); } @@ -531,7 +564,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return a {@link Changeset} from the given repository * * @throws IOException - * @throws RepositoryException */ @GET @Path("{id}/changeset/{revision}") @@ -545,7 +577,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response getChangeset(@PathParam("id") String id, @PathParam("revision") String revision) - throws IOException, RepositoryException + throws IOException { Response response = null; @@ -568,7 +600,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo response = Response.status(Status.NOT_FOUND).build(); } } - catch (RepositoryNotFoundException ex) + catch (NotFoundException ex) { response = Response.status(Response.Status.NOT_FOUND).build(); } @@ -603,7 +635,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return a list of {@link Changeset} for the given repository * * @throws IOException - * @throws RepositoryException */ @GET @Path("{id}/changesets") @@ -623,7 +654,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @QueryParam("branch") String branch, @DefaultValue("0") @QueryParam("start") int start, @DefaultValue("20") @QueryParam("limit") int limit - ) throws RepositoryException, IOException + ) throws IOException //J+ { Response response = null; @@ -664,7 +695,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo response = Response.ok().build(); } } - catch (RepositoryNotFoundException ex) + catch (NotFoundException ex) { response = Response.status(Response.Status.NOT_FOUND).build(); } @@ -759,7 +790,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return the modifications of a {@link Changeset} * * @throws IOException - * @throws RepositoryException */ @GET @Path("{id}/diff") @@ -774,7 +804,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo public Response getDiff(@PathParam("id") String id, @QueryParam("revision") String revision, @QueryParam("path") String path, @QueryParam("format") DiffFormat format) - throws RepositoryException, IOException + throws IOException { AssertUtil.assertIsNotEmpty(id); AssertUtil.assertIsNotEmpty(revision); @@ -841,7 +871,6 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo * @return all {@link Tags} of a repository * * @throws IOException - * @throws RepositoryException * * @since 1.18 */ @@ -856,7 +885,7 @@ public class RepositoryResource extends AbstractManagerResource<Repository, Repo @TypeHint(Tags.class) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response getTags(@PathParam("id") String id) - throws RepositoryException, IOException + throws IOException { Response response = null; RepositoryService service = null; diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/UserResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/UserResource.java index 8328230672..e054c4c32f 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/UserResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/UserResource.java @@ -45,13 +45,25 @@ import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.credential.PasswordService; import sonia.scm.security.Role; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.util.AssertUtil; import sonia.scm.util.Util; -import javax.ws.rs.*; -import javax.ws.rs.core.*; +import javax.ws.rs.DELETE; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.GenericEntity; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Request; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.UriInfo; import java.util.Collection; //~--- JDK imports ------------------------------------------------------------ @@ -63,7 +75,7 @@ import java.util.Collection; */ @Singleton @Path("users") -public class UserResource extends AbstractManagerResource<User, UserException> +public class UserResource extends AbstractManagerResource<User> { /** Field description */ diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchRootResource.java index b06b5b9eba..d44a91d2c9 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BranchRootResource.java @@ -5,7 +5,6 @@ import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import sonia.scm.repository.Branches; import sonia.scm.repository.NamespaceAndName; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryNotFoundException; import sonia.scm.repository.api.CommandNotSupportedException; import sonia.scm.repository.api.RepositoryService; @@ -55,7 +54,7 @@ public class BranchRootResource { @ResponseCode(code = 404, condition = "not found, no branch with the specified name for the repository available or repository not found"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("branch") String branchName) throws IOException, RepositoryException { + public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("branch") String branchName) throws IOException { try (RepositoryService repositoryService = servicefactory.create(new NamespaceAndName(namespace, name))) { Branches branches = repositoryService.getBranchesCommand().getBranches(); return branches.getBranches() @@ -100,7 +99,7 @@ public class BranchRootResource { @ResponseCode(code = 404, condition = "not found, no repository found for the given namespace and name"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) throws IOException, RepositoryException { + public Response getAll(@PathParam("namespace") String namespace, @PathParam("name") String name) throws IOException { try (RepositoryService repositoryService = servicefactory.create(new NamespaceAndName(namespace, name))) { Branches branches = repositoryService.getBranchesCommand().getBranches(); return Response.ok(branchCollectionToDtoMapper.map(namespace, name, branches.getBranches())).build(); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/CollectionResourceManagerAdapter.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/CollectionResourceManagerAdapter.java index 3169088331..3ef19f7294 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/CollectionResourceManagerAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/CollectionResourceManagerAdapter.java @@ -1,6 +1,7 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.HalRepresentation; +import sonia.scm.AlreadyExistsException; import sonia.scm.Manager; import sonia.scm.ModelObject; import sonia.scm.PageResult; @@ -22,16 +23,14 @@ import static javax.ws.rs.core.Response.Status.BAD_REQUEST; * * @param <MODEL_OBJECT> The type of the model object, eg. {@link sonia.scm.user.User}. * @param <DTO> The corresponding transport object, eg. {@link UserDto}. - * @param <EXCEPTION> The exception type for the model object, eg. {@link sonia.scm.user.UserException}. * * @see SingleResourceManagerAdapter */ @SuppressWarnings("squid:S00119") // "MODEL_OBJECT" is much more meaningful than "M", right? class CollectionResourceManagerAdapter<MODEL_OBJECT extends ModelObject, - DTO extends HalRepresentation, - EXCEPTION extends Exception> extends AbstractManagerResource<MODEL_OBJECT, EXCEPTION> { + DTO extends HalRepresentation> extends AbstractManagerResource<MODEL_OBJECT> { - CollectionResourceManagerAdapter(Manager<MODEL_OBJECT, EXCEPTION> manager, Class<MODEL_OBJECT> type) { + CollectionResourceManagerAdapter(Manager<MODEL_OBJECT> manager, Class<MODEL_OBJECT> type) { super(manager, type); } @@ -48,7 +47,7 @@ class CollectionResourceManagerAdapter<MODEL_OBJECT extends ModelObject, * Creates a model object for the given dto and returns a corresponding http response. * This handles all corner cases, eg. no conflicts or missing privileges. */ - public Response create(DTO dto, Supplier<MODEL_OBJECT> modelObjectSupplier, Function<MODEL_OBJECT, String> uriCreator) throws EXCEPTION { + public Response create(DTO dto, Supplier<MODEL_OBJECT> modelObjectSupplier, Function<MODEL_OBJECT, String> uriCreator) throws AlreadyExistsException { if (dto == null) { return Response.status(BAD_REQUEST).build(); } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java index 0936a5b4a0..bf97a998d7 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java @@ -8,7 +8,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.PathNotFoundException; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryNotFoundException; import sonia.scm.repository.RevisionNotFoundException; import sonia.scm.repository.api.RepositoryService; @@ -79,9 +78,9 @@ public class ContentResource { } catch (PathNotFoundException e) { LOG.debug("path '{}' not found in repository {}/{}", path, namespace, name, e); throw new WebApplicationException(Status.NOT_FOUND); - } catch (RepositoryException e) { - LOG.info("error reading repository resource {} from {}/{}", path, namespace, name, e); - throw new WebApplicationException(Status.INTERNAL_SERVER_ERROR); + } catch (RevisionNotFoundException e) { + LOG.debug("revision '{}' not found in repository {}/{}", revision, namespace, name, e); + throw new WebApplicationException(Status.NOT_FOUND); } }; } @@ -124,7 +123,7 @@ public class ContentResource { } catch (RevisionNotFoundException e) { LOG.debug("revision '{}' not found in repository {}/{}", revision, namespace, name, e); return Response.status(Status.NOT_FOUND).build(); - } catch (IOException | RepositoryException e) { + } catch (IOException e) { LOG.info("error reading repository resource {} from {}/{}", path, namespace, name, e); return Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); } @@ -137,7 +136,7 @@ public class ContentResource { contentType.getLanguage().ifPresent(language -> responseBuilder.header("Language", language)); } - private byte[] getHead(String revision, String path, RepositoryService repositoryService) throws IOException, RepositoryException { + private byte[] getHead(String revision, String path, RepositoryService repositoryService) throws IOException, PathNotFoundException, RevisionNotFoundException { InputStream stream = repositoryService.getCatCommand().setRevision(revision).getStream(path); try { byte[] buffer = new byte[HEAD_BUFFER_SIZE]; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java index 4a9c797b9f..acc02c0da4 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java @@ -1,15 +1,24 @@ package sonia.scm.api.v2.resources; -import com.webcohesion.enunciate.metadata.rs.*; +import com.webcohesion.enunciate.metadata.rs.ResponseCode; +import com.webcohesion.enunciate.metadata.rs.ResponseHeader; +import com.webcohesion.enunciate.metadata.rs.ResponseHeaders; +import com.webcohesion.enunciate.metadata.rs.StatusCodes; +import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.AlreadyExistsException; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; -import java.io.IOException; public class GroupCollectionResource { @@ -19,7 +28,7 @@ public class GroupCollectionResource { private final GroupCollectionToDtoMapper groupCollectionToDtoMapper; private final ResourceLinks resourceLinks; - private final IdResourceManagerAdapter<Group, GroupDto, GroupException> adapter; + private final IdResourceManagerAdapter<Group, GroupDto> adapter; @Inject public GroupCollectionResource(GroupManager manager, GroupDtoToGroupMapper dtoToGroupMapper, GroupCollectionToDtoMapper groupCollectionToDtoMapper, ResourceLinks resourceLinks) { @@ -76,7 +85,7 @@ public class GroupCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created group")) - public Response create(GroupDto groupDto) throws IOException, GroupException { + public Response create(GroupDto groupDto) throws AlreadyExistsException { return adapter.create(groupDto, () -> dtoToGroupMapper.map(groupDto), group -> resourceLinks.group().self(group.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java index 10818ec953..c0bb7e5bc5 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java @@ -4,19 +4,24 @@ import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; import javax.ws.rs.core.Response; public class GroupResource { private final GroupToGroupDtoMapper groupToGroupDtoMapper; private final GroupDtoToGroupMapper dtoToGroupMapper; - private final IdResourceManagerAdapter<Group, GroupDto, GroupException> adapter; + private final IdResourceManagerAdapter<Group, GroupDto> adapter; @Inject public GroupResource(GroupManager manager, GroupToGroupDtoMapper groupToGroupDtoMapper, diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java index ded4bff309..e1f9be1ead 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java @@ -1,12 +1,12 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.HalRepresentation; +import sonia.scm.AlreadyExistsException; import sonia.scm.Manager; import sonia.scm.ModelObject; import sonia.scm.PageResult; import javax.ws.rs.core.Response; -import java.io.IOException; import java.util.Optional; import java.util.function.Function; import java.util.function.Predicate; @@ -18,15 +18,14 @@ import java.util.function.Supplier; */ @SuppressWarnings("squid:S00119") // "MODEL_OBJECT" is much more meaningful than "M", right? class IdResourceManagerAdapter<MODEL_OBJECT extends ModelObject, - DTO extends HalRepresentation, - EXCEPTION extends Exception> { + DTO extends HalRepresentation> { - private final Manager<MODEL_OBJECT, EXCEPTION> manager; + private final Manager<MODEL_OBJECT> manager; - private final SingleResourceManagerAdapter<MODEL_OBJECT, DTO, EXCEPTION> singleAdapter; - private final CollectionResourceManagerAdapter<MODEL_OBJECT, DTO, EXCEPTION> collectionAdapter; + private final SingleResourceManagerAdapter<MODEL_OBJECT, DTO> singleAdapter; + private final CollectionResourceManagerAdapter<MODEL_OBJECT, DTO> collectionAdapter; - IdResourceManagerAdapter(Manager<MODEL_OBJECT, EXCEPTION> manager, Class<MODEL_OBJECT> type) { + IdResourceManagerAdapter(Manager<MODEL_OBJECT> manager, Class<MODEL_OBJECT> type) { this.manager = manager; singleAdapter = new SingleResourceManagerAdapter<>(manager, type); collectionAdapter = new CollectionResourceManagerAdapter<>(manager, type); @@ -48,7 +47,7 @@ class IdResourceManagerAdapter<MODEL_OBJECT extends ModelObject, return collectionAdapter.getAll(page, pageSize, sortBy, desc, mapToDto); } - public Response create(DTO dto, Supplier<MODEL_OBJECT> modelObjectSupplier, Function<MODEL_OBJECT, String> uriCreator) throws IOException, EXCEPTION { + public Response create(DTO dto, Supplier<MODEL_OBJECT> modelObjectSupplier, Function<MODEL_OBJECT, String> uriCreator) throws AlreadyExistsException { return collectionAdapter.create(dto, modelObjectSupplier, uriCreator); } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java index f9a32c7ddd..9421c3ca14 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java @@ -5,7 +5,6 @@ import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import org.apache.shiro.SecurityUtils; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; @@ -28,7 +27,7 @@ public class MeResource { private final UserToUserDtoMapper userToDtoMapper; - private final IdResourceManagerAdapter<User, UserDto, UserException> adapter; + private final IdResourceManagerAdapter<User, UserDto> adapter; @Inject public MeResource(UserToUserDtoMapper userToDtoMapper, UserManager manager) { this.userToDtoMapper = userToDtoMapper; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java index 9fef539756..9f4858d2f6 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryCollectionResource.java @@ -5,8 +5,8 @@ import com.webcohesion.enunciate.metadata.rs.ResponseHeader; import com.webcohesion.enunciate.metadata.rs.ResponseHeaders; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.AlreadyExistsException; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryManager; import sonia.scm.web.VndMediaType; @@ -25,7 +25,7 @@ public class RepositoryCollectionResource { private static final int DEFAULT_PAGE_SIZE = 10; - private final CollectionResourceManagerAdapter<Repository, RepositoryDto, RepositoryException> adapter; + private final CollectionResourceManagerAdapter<Repository, RepositoryDto> adapter; private final RepositoryCollectionToDtoMapper repositoryCollectionToDtoMapper; private final RepositoryDtoToRepositoryMapper dtoToRepositoryMapper; private final ResourceLinks resourceLinks; @@ -87,7 +87,7 @@ public class RepositoryCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created repository")) - public Response create(@Valid RepositoryDto repositoryDto) throws RepositoryException { + public Response create(@Valid RepositoryDto repositoryDto) throws AlreadyExistsException { return adapter.create(repositoryDto, () -> dtoToRepositoryMapper.map(repositoryDto, null), repository -> resourceLinks.repository().self(repository.getNamespace(), repository.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java index 817eb29f11..703e6c4403 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java @@ -5,7 +5,6 @@ import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryIsNotArchivedException; import sonia.scm.repository.RepositoryManager; import sonia.scm.web.VndMediaType; @@ -30,7 +29,7 @@ public class RepositoryResource { private final RepositoryDtoToRepositoryMapper dtoToRepositoryMapper; private final RepositoryManager manager; - private final SingleResourceManagerAdapter<Repository, RepositoryDto, RepositoryException> adapter; + private final SingleResourceManagerAdapter<Repository, RepositoryDto> adapter; private final Provider<TagRootResource> tagRootResource; private final Provider<BranchRootResource> branchRootResource; private final Provider<ChangesetRootResource> changesetRootResource; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java index 06195284df..bc84ca7c33 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java @@ -22,22 +22,20 @@ import static javax.ws.rs.core.Response.Status.BAD_REQUEST; * * @param <MODEL_OBJECT> The type of the model object, eg. {@link sonia.scm.user.User}. * @param <DTO> The corresponding transport object, eg. {@link UserDto}. - * @param <EXCEPTION> The exception type for the model object, eg. {@link sonia.scm.user.UserException}. * * @see CollectionResourceManagerAdapter */ @SuppressWarnings("squid:S00119") // "MODEL_OBJECT" is much more meaningful than "M", right? class SingleResourceManagerAdapter<MODEL_OBJECT extends ModelObject, - DTO extends HalRepresentation, - EXCEPTION extends Exception> extends AbstractManagerResource<MODEL_OBJECT, EXCEPTION> { + DTO extends HalRepresentation> extends AbstractManagerResource<MODEL_OBJECT> { private final Function<Throwable, Optional<Response>> errorHandler; - SingleResourceManagerAdapter(Manager<MODEL_OBJECT, EXCEPTION> manager, Class<MODEL_OBJECT> type) { + SingleResourceManagerAdapter(Manager<MODEL_OBJECT> manager, Class<MODEL_OBJECT> type) { this(manager, type, e -> Optional.empty()); } - SingleResourceManagerAdapter(Manager<MODEL_OBJECT, EXCEPTION> manager, Class<MODEL_OBJECT> type, Function<Throwable, Optional<Response>> errorHandler) { + SingleResourceManagerAdapter(Manager<MODEL_OBJECT> manager, Class<MODEL_OBJECT> type, Function<Throwable, Optional<Response>> errorHandler) { super(manager, type); this.errorHandler = errorHandler; } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java index 36a1e69a83..550c60de5d 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java @@ -1,15 +1,24 @@ package sonia.scm.api.v2.resources; -import com.webcohesion.enunciate.metadata.rs.*; +import com.webcohesion.enunciate.metadata.rs.ResponseCode; +import com.webcohesion.enunciate.metadata.rs.ResponseHeader; +import com.webcohesion.enunciate.metadata.rs.ResponseHeaders; +import com.webcohesion.enunciate.metadata.rs.StatusCodes; +import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.AlreadyExistsException; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; -import java.io.IOException; public class UserCollectionResource { @@ -18,7 +27,7 @@ public class UserCollectionResource { private final UserCollectionToDtoMapper userCollectionToDtoMapper; private final ResourceLinks resourceLinks; - private final IdResourceManagerAdapter<User, UserDto, UserException> adapter; + private final IdResourceManagerAdapter<User, UserDto> adapter; @Inject public UserCollectionResource(UserManager manager, UserDtoToUserMapper dtoToUserMapper, @@ -78,7 +87,7 @@ public class UserCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created user")) - public Response create(UserDto userDto) throws IOException, UserException { + public Response create(UserDto userDto) throws AlreadyExistsException { return adapter.create(userDto, () -> dtoToUserMapper.map(userDto, ""), user -> resourceLinks.user().self(user.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java index f05c8165cb..a4e07382dd 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java @@ -4,12 +4,17 @@ import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; -import javax.ws.rs.*; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; import javax.ws.rs.core.Response; public class UserResource { @@ -17,7 +22,7 @@ public class UserResource { private final UserDtoToUserMapper dtoToUserMapper; private final UserToUserDtoMapper userToDtoMapper; - private final IdResourceManagerAdapter<User, UserDto, UserException> adapter; + private final IdResourceManagerAdapter<User, UserDto> adapter; @Inject public UserResource(UserDtoToUserMapper dtoToUserMapper, UserToUserDtoMapper userToDtoMapper, UserManager manager) { diff --git a/scm-webapp/src/main/java/sonia/scm/cache/CacheConfigurations.java b/scm-webapp/src/main/java/sonia/scm/cache/CacheConfigurations.java index f84782fee2..c425992a0a 100644 --- a/scm-webapp/src/main/java/sonia/scm/cache/CacheConfigurations.java +++ b/scm-webapp/src/main/java/sonia/scm/cache/CacheConfigurations.java @@ -35,19 +35,18 @@ package sonia.scm.cache; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Iterators; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.net.URL; - import java.util.Enumeration; import java.util.Iterator; +import static java.util.Collections.emptyIterator; + +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -109,7 +108,7 @@ public final class CacheConfigurations if (it == null) { - it = Iterators.emptyIterator(); + it = emptyIterator(); } return it; diff --git a/scm-webapp/src/main/java/sonia/scm/cache/GuavaCacheConfiguration.java b/scm-webapp/src/main/java/sonia/scm/cache/GuavaCacheConfiguration.java index 0d339c8a6c..6450d97c37 100644 --- a/scm-webapp/src/main/java/sonia/scm/cache/GuavaCacheConfiguration.java +++ b/scm-webapp/src/main/java/sonia/scm/cache/GuavaCacheConfiguration.java @@ -34,17 +34,16 @@ package sonia.scm.cache; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.base.Objects; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; +import com.google.common.base.MoreObjects; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.io.Serializable; + +//~--- JDK imports ------------------------------------------------------------ /** * @@ -70,7 +69,7 @@ public class GuavaCacheConfiguration implements Serializable public String toString() { //J- - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("concurrencyLevel", concurrencyLevel) .add("copyStrategy", copyStrategy) .add("expireAfterAccess", expireAfterAccess) diff --git a/scm-webapp/src/main/java/sonia/scm/group/DefaultGroupManager.java b/scm-webapp/src/main/java/sonia/scm/group/DefaultGroupManager.java index f22a5519dc..c3dcb6db8c 100644 --- a/scm-webapp/src/main/java/sonia/scm/group/DefaultGroupManager.java +++ b/scm-webapp/src/main/java/sonia/scm/group/DefaultGroupManager.java @@ -42,8 +42,10 @@ import com.google.inject.Inject; import com.google.inject.Singleton; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; import sonia.scm.HandlerEventType; import sonia.scm.ManagerDaoAdapter; +import sonia.scm.NotFoundException; import sonia.scm.SCMContextProvider; import sonia.scm.TransformFilter; import sonia.scm.search.SearchRequest; @@ -52,7 +54,12 @@ import sonia.scm.util.CollectionAppender; import sonia.scm.util.Util; import java.io.IOException; -import java.util.*; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.LinkedList; +import java.util.List; //~--- JDK imports ------------------------------------------------------------ @@ -80,10 +87,7 @@ public class DefaultGroupManager extends AbstractGroupManager public DefaultGroupManager(GroupDAO groupDAO) { this.groupDAO = groupDAO; - this.managerDaoAdapter = new ManagerDaoAdapter<>( - groupDAO, - GroupNotFoundException::new, - GroupAlreadyExistsException::new); + this.managerDaoAdapter = new ManagerDaoAdapter<>(groupDAO); } //~--- methods -------------------------------------------------------------- @@ -102,7 +106,7 @@ public class DefaultGroupManager extends AbstractGroupManager } @Override - public Group create(Group group) throws GroupException { + public Group create(Group group) throws AlreadyExistsException { String type = group.getType(); if (Util.isEmpty(type)) { group.setType(groupDAO.getType()); @@ -121,7 +125,7 @@ public class DefaultGroupManager extends AbstractGroupManager } @Override - public void delete(Group group) throws GroupException { + public void delete(Group group) throws NotFoundException { logger.info("delete group {} of type {}", group.getName(), group.getType()); managerDaoAdapter.delete( group, @@ -140,17 +144,8 @@ public class DefaultGroupManager extends AbstractGroupManager @Override public void init(SCMContextProvider context) {} - /** - * Method description - * - * - * @param group - * - * @throws GroupException - * @throws IOException - */ @Override - public void modify(Group group) throws GroupException { + public void modify(Group group) throws NotFoundException { logger.info("modify group {} of type {}", group.getName(), group.getType()); managerDaoAdapter.modify( @@ -164,18 +159,8 @@ public class DefaultGroupManager extends AbstractGroupManager ); } - /** - * Method description - * - * - * @param group - * - * @throws GroupException - * @throws IOException - */ @Override - public void refresh(Group group) throws GroupException - { + public void refresh(Group group) throws NotFoundException { String name = group.getName(); if (logger.isInfoEnabled()) { @@ -187,7 +172,7 @@ public class DefaultGroupManager extends AbstractGroupManager if (fresh == null) { - throw new GroupNotFoundException(group); + throw new NotFoundException("group", group.getId()); } fresh.copyProperties(group); @@ -400,5 +385,5 @@ public class DefaultGroupManager extends AbstractGroupManager /** Field description */ private GroupDAO groupDAO; - private final ManagerDaoAdapter<Group, GroupException> managerDaoAdapter; + private final ManagerDaoAdapter<Group> managerDaoAdapter; } diff --git a/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java b/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java index b9c7a34e0f..02ae67719b 100644 --- a/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java +++ b/scm-webapp/src/main/java/sonia/scm/repository/DefaultRepositoryManager.java @@ -42,10 +42,12 @@ import com.google.inject.Singleton; import org.apache.shiro.concurrent.SubjectAwareExecutorService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; import sonia.scm.ArgumentIsInvalidException; import sonia.scm.ConfigurationException; import sonia.scm.HandlerEventType; import sonia.scm.ManagerDaoAdapter; +import sonia.scm.NotFoundException; import sonia.scm.SCMContextProvider; import sonia.scm.Type; import sonia.scm.config.ScmConfiguration; @@ -57,7 +59,6 @@ import sonia.scm.util.IOUtil; import sonia.scm.util.Util; import javax.servlet.http.HttpServletRequest; -import java.io.IOException; import java.util.Collection; import java.util.Collections; import java.util.Comparator; @@ -91,7 +92,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { private final Set<Type> types; private RepositoryMatcher repositoryMatcher; private NamespaceStrategy namespaceStrategy; - private final ManagerDaoAdapter<Repository, RepositoryException> managerDaoAdapter; + private final ManagerDaoAdapter<Repository> managerDaoAdapter; @Inject @@ -118,10 +119,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { for (RepositoryHandler handler : handlerSet) { addHandler(contextProvider, handler); } - managerDaoAdapter = new ManagerDaoAdapter<>( - repositoryDAO, - RepositoryNotFoundException::new, - RepositoryAlreadyExistsException::create); + managerDaoAdapter = new ManagerDaoAdapter<>(repositoryDAO); } @@ -135,11 +133,11 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { } @Override - public Repository create(Repository repository) throws RepositoryException { + public Repository create(Repository repository) throws AlreadyExistsException { return create(repository, true); } - public Repository create(Repository repository, boolean initRepository) throws RepositoryException { + public Repository create(Repository repository, boolean initRepository) throws AlreadyExistsException { repository.setId(keyGenerator.createKey()); repository.setNamespace(namespaceStrategy.createNamespace(repository)); @@ -150,7 +148,11 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { RepositoryPermissions::create, newRepository -> { if (initRepository) { - getHandler(newRepository).create(newRepository); + try { + getHandler(newRepository).create(newRepository); + } catch (AlreadyExistsException e) { + throw new InternalRepositoryException("directory for repository does already exist", e); + } } fireEvent(HandlerEventType.BEFORE_CREATE, newRepository); }, @@ -160,7 +162,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { } @Override - public void delete(Repository repository) throws RepositoryException { + public void delete(Repository repository) throws NotFoundException { logger.info("delete repository {}/{} of type {}", repository.getNamespace(), repository.getName(), repository.getType()); managerDaoAdapter.delete( repository, @@ -170,17 +172,16 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { ); } - private void preDelete(Repository toDelete) throws RepositoryException { + private void preDelete(Repository toDelete) { if (configuration.isEnableRepositoryArchive() && !toDelete.isArchived()) { throw new RepositoryIsNotArchivedException(); } fireEvent(HandlerEventType.BEFORE_DELETE, toDelete); - getHandler(toDelete).delete(toDelete); +// getHandler(toDelete).delete(toDelete); } @Override - public void importRepository(Repository repository) - throws RepositoryException, IOException { + public void importRepository(Repository repository) throws AlreadyExistsException { create(repository, false); } @@ -189,7 +190,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { } @Override - public void modify(Repository repository) throws RepositoryException { + public void modify(Repository repository) throws NotFoundException { logger.info("modify repository {}/{} of type {}", repository.getNamespace(), repository.getName(), repository.getType()); managerDaoAdapter.modify( @@ -197,15 +198,18 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { RepositoryPermissions::modify, notModified -> { fireEvent(HandlerEventType.BEFORE_MODIFY, repository, notModified); - getHandler(repository).modify(repository); + try { + getHandler(repository).modify(repository); + } catch (NotFoundException e) { + throw new IllegalStateException("repository not found though just created", e); + } }, notModified -> fireEvent(HandlerEventType.MODIFY, repository, notModified) ); } @Override - public void refresh(Repository repository) - throws RepositoryException { + public void refresh(Repository repository) throws RepositoryNotFoundException { AssertUtil.assertIsNotNull(repository); RepositoryPermissions.read(repository).check(); @@ -417,15 +421,14 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager { } private RepositoryHandler getHandler(Repository repository) - throws RepositoryException { + { String type = repository.getType(); RepositoryHandler handler = handlerMap.get(type); if (handler == null) { - throw new RepositoryHandlerNotFoundException( - "could not find handler for ".concat(type)); + throw new InternalRepositoryException("could not find handler for " + type); } else if (!handler.isConfigured()) { - throw new RepositoryException("handler is not configured"); + throw new InternalRepositoryException("handler is not configured for type " + type); } return handler; diff --git a/scm-webapp/src/main/java/sonia/scm/repository/HealthChecker.java b/scm-webapp/src/main/java/sonia/scm/repository/HealthChecker.java index 26f674a5b5..81ee37a955 100644 --- a/scm-webapp/src/main/java/sonia/scm/repository/HealthChecker.java +++ b/scm-webapp/src/main/java/sonia/scm/repository/HealthChecker.java @@ -36,15 +36,15 @@ package sonia.scm.repository; import com.github.sdorra.ssp.PermissionActionCheck; import com.google.common.collect.ImmutableList; import com.google.inject.Inject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; +import sonia.scm.ConcurrentModificationException; +import sonia.scm.NotFoundException; import java.util.Set; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -77,20 +77,7 @@ public final class HealthChecker //~--- methods -------------------------------------------------------------- - /** - * Method description - * - * - * @param id - * - * - * @throws IOException - * @throws RepositoryException - * @throws RepositoryNotFoundException - */ - public void check(String id) - throws RepositoryNotFoundException, RepositoryException, IOException - { + public void check(String id) throws NotFoundException { RepositoryPermissions.healthCheck(id).check(); Repository repository = repositoryManager.get(id); @@ -104,28 +91,13 @@ public final class HealthChecker doCheck(repository); } - /** - * Method description - * - * - * @param repository - * - * @throws IOException - * @throws RepositoryException - */ public void check(Repository repository) - throws RepositoryException, IOException - { + throws NotFoundException, ConcurrentModificationException { RepositoryPermissions.healthCheck(repository).check(); doCheck(repository); } - /** - * Method description - * - * - */ public void checkAll() { logger.debug("check health of all repositories"); @@ -140,7 +112,7 @@ public final class HealthChecker { check(repository); } - catch (RepositoryException | IOException ex) + catch (ConcurrentModificationException | NotFoundException ex) { logger.error("health check ends with exception", ex); } @@ -154,9 +126,7 @@ public final class HealthChecker } } - private void doCheck(Repository repository) - throws RepositoryException, IOException - { + private void doCheck(Repository repository) throws NotFoundException { logger.info("start health check for repository {}", repository.getName()); HealthCheckResult result = HealthCheckResult.healthy(); diff --git a/scm-webapp/src/main/java/sonia/scm/repository/LastModifiedUpdateListener.java b/scm-webapp/src/main/java/sonia/scm/repository/LastModifiedUpdateListener.java index a84324cd60..badcf0c48d 100644 --- a/scm-webapp/src/main/java/sonia/scm/repository/LastModifiedUpdateListener.java +++ b/scm-webapp/src/main/java/sonia/scm/repository/LastModifiedUpdateListener.java @@ -38,6 +38,7 @@ import com.google.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sonia.scm.EagerSingleton; +import sonia.scm.NotFoundException; import sonia.scm.plugin.Extension; import sonia.scm.web.security.AdministrationContext; import sonia.scm.web.security.PrivilegedAction; @@ -146,13 +147,10 @@ public final class LastModifiedUpdateListener logger.info("update last modified date of repository {}", dbr.getId()); dbr.setLastModified(System.currentTimeMillis()); - try - { + try { repositoryManager.modify(dbr); - } - catch (RepositoryException ex) - { - logger.error("could not modify repository", ex); + } catch (NotFoundException e) { + logger.error("could not modify repository", e); } } else diff --git a/scm-webapp/src/main/java/sonia/scm/security/ConfigurableLoginAttemptHandler.java b/scm-webapp/src/main/java/sonia/scm/security/ConfigurableLoginAttemptHandler.java index 39c3c64d5d..6472c40eaa 100644 --- a/scm-webapp/src/main/java/sonia/scm/security/ConfigurableLoginAttemptHandler.java +++ b/scm-webapp/src/main/java/sonia/scm/security/ConfigurableLoginAttemptHandler.java @@ -30,12 +30,8 @@ */ package sonia.scm.security; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.inject.Inject; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; -import java.util.concurrent.TimeUnit; -import javax.inject.Singleton; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; @@ -44,6 +40,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import sonia.scm.config.ScmConfiguration; +import javax.inject.Singleton; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.TimeUnit; + /** * Configurable implementation of {@link LoginAttemptHandler}. * @@ -175,7 +176,7 @@ public class ConfigurableLoginAttemptHandler implements LoginAttemptHandler { @Override public String toString() { - return Objects.toStringHelper(this) + return MoreObjects.toStringHelper(this) .add("counter", counter) .add("lastAttempt", lastAttempt) .toString(); diff --git a/scm-webapp/src/main/java/sonia/scm/security/DefaultAuthorizationCollector.java b/scm-webapp/src/main/java/sonia/scm/security/DefaultAuthorizationCollector.java index d868b81499..af83af978a 100644 --- a/scm-webapp/src/main/java/sonia/scm/security/DefaultAuthorizationCollector.java +++ b/scm-webapp/src/main/java/sonia/scm/security/DefaultAuthorizationCollector.java @@ -36,23 +36,19 @@ package sonia.scm.security; //~--- non-JDK imports -------------------------------------------------------- import com.github.legman.Subscribe; - import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet.Builder; import com.google.inject.Inject; import com.google.inject.Singleton; - import org.apache.shiro.SecurityUtils; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.subject.PrincipalCollection; import org.apache.shiro.subject.Subject; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.cache.Cache; import sonia.scm.cache.CacheManager; import sonia.scm.group.GroupNames; @@ -62,11 +58,11 @@ import sonia.scm.repository.RepositoryDAO; import sonia.scm.user.User; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - import java.util.List; import java.util.Set; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra diff --git a/scm-webapp/src/main/java/sonia/scm/security/SecureKey.java b/scm-webapp/src/main/java/sonia/scm/security/SecureKey.java index f8e12de398..1ab256386a 100644 --- a/scm-webapp/src/main/java/sonia/scm/security/SecureKey.java +++ b/scm-webapp/src/main/java/sonia/scm/security/SecureKey.java @@ -35,12 +35,12 @@ package sonia.scm.security; import com.google.common.base.Objects; -//~--- JDK imports ------------------------------------------------------------ - import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; +//~--- JDK imports ------------------------------------------------------------ + /** * Secure key can be used for singing messages and tokens. * diff --git a/scm-webapp/src/main/java/sonia/scm/user/DefaultUserManager.java b/scm-webapp/src/main/java/sonia/scm/user/DefaultUserManager.java index 25f8c61b3b..876b0f094c 100644 --- a/scm-webapp/src/main/java/sonia/scm/user/DefaultUserManager.java +++ b/scm-webapp/src/main/java/sonia/scm/user/DefaultUserManager.java @@ -40,9 +40,11 @@ import com.google.inject.Inject; import com.google.inject.Singleton; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.AlreadyExistsException; import sonia.scm.EagerSingleton; import sonia.scm.HandlerEventType; import sonia.scm.ManagerDaoAdapter; +import sonia.scm.NotFoundException; import sonia.scm.SCMContextProvider; import sonia.scm.TransformFilter; import sonia.scm.search.SearchRequest; @@ -97,10 +99,7 @@ public class DefaultUserManager extends AbstractUserManager public DefaultUserManager(UserDAO userDAO) { this.userDAO = userDAO; - this.managerDaoAdapter = new ManagerDaoAdapter<>( - userDAO, - UserNotFoundException::new, - UserAlreadyExistsException::new); + this.managerDaoAdapter = new ManagerDaoAdapter<>(userDAO); } //~--- methods -------------------------------------------------------------- @@ -139,10 +138,9 @@ public class DefaultUserManager extends AbstractUserManager * @param user * * @throws IOException - * @throws UserException */ @Override - public User create(User user) throws UserException { + public User create(User user) throws AlreadyExistsException { String type = user.getType(); if (Util.isEmpty(type)) { user.setType(userDAO.getType()); @@ -159,7 +157,7 @@ public class DefaultUserManager extends AbstractUserManager } @Override - public void delete(User user) throws UserException { + public void delete(User user) throws NotFoundException { logger.info("delete user {} of type {}", user.getName(), user.getType()); managerDaoAdapter.delete( user, @@ -193,11 +191,9 @@ public class DefaultUserManager extends AbstractUserManager * @param user * * @throws IOException - * @throws UserException */ @Override - public void modify(User user) throws UserException - { + public void modify(User user) throws NotFoundException { logger.info("modify user {} of type {}", user.getName(), user.getType()); managerDaoAdapter.modify( @@ -214,11 +210,9 @@ public class DefaultUserManager extends AbstractUserManager * @param user * * @throws IOException - * @throws UserException */ @Override - public void refresh(User user) throws UserException - { + public void refresh(User user) throws NotFoundException { if (logger.isInfoEnabled()) { logger.info("refresh user {} of type {}", user.getName(), user.getType()); @@ -229,7 +223,7 @@ public class DefaultUserManager extends AbstractUserManager if (fresh == null) { - throw new UserNotFoundException(user); + throw new NotFoundException(); } fresh.copyProperties(user); @@ -455,5 +449,5 @@ public class DefaultUserManager extends AbstractUserManager //~--- fields --------------------------------------------------------------- private final UserDAO userDAO; - private final ManagerDaoAdapter<User, UserException> managerDaoAdapter; + private final ManagerDaoAdapter<User> managerDaoAdapter; } diff --git a/scm-webapp/src/test/java/sonia/scm/api/rest/resources/AbstractManagerResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/rest/resources/AbstractManagerResourceTest.java index a98d18b390..41bcac3c6a 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/rest/resources/AbstractManagerResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/rest/resources/AbstractManagerResourceTest.java @@ -24,13 +24,13 @@ import static org.mockito.Mockito.when; public class AbstractManagerResourceTest { @Mock - private Manager<Simple, Exception> manager; + private Manager<Simple> manager; @Mock private Request request; @Captor private ArgumentCaptor<Comparator<Simple>> comparatorCaptor; - private AbstractManagerResource<Simple, Exception> abstractManagerResource; + private AbstractManagerResource<Simple> abstractManagerResource; @Before public void captureComparator() { @@ -60,7 +60,7 @@ public class AbstractManagerResourceTest { } - private class SimpleManagerResource extends AbstractManagerResource<Simple, Exception> { + private class SimpleManagerResource extends AbstractManagerResource<Simple> { { disableCache = true; diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/AuthenticationResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/AuthenticationResourceTest.java index 9eea189b72..42428f9f77 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/AuthenticationResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/AuthenticationResourceTest.java @@ -11,8 +11,6 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import org.mockito.ArgumentCaptor; -import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import sonia.scm.config.ScmConfiguration; @@ -20,25 +18,16 @@ import sonia.scm.security.AccessToken; import sonia.scm.security.AccessTokenBuilder; import sonia.scm.security.AccessTokenBuilderFactory; import sonia.scm.security.AccessTokenCookieIssuer; -import sonia.scm.user.User; -import sonia.scm.user.UserException; -import sonia.scm.user.UserManager; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.UriInfo; -import java.io.IOException; -import java.net.URI; import java.net.URISyntaxException; import java.util.Date; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; @SubjectAware( configuration = "classpath:sonia/scm/repository/shiro.ini" diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java index dff9e7e99b..6a463b3baa 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java @@ -15,7 +15,6 @@ import org.mockito.InjectMocks; import org.mockito.Mock; import sonia.scm.PageResult; import sonia.scm.group.Group; -import sonia.scm.group.GroupException; import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; @@ -27,7 +26,9 @@ import java.net.URL; import java.util.Collections; import static java.util.Collections.singletonList; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.doNothing; @@ -58,7 +59,7 @@ public class GroupRootResourceTest { private ArgumentCaptor<Group> groupCaptor = ArgumentCaptor.forClass(Group.class); @Before - public void prepareEnvironment() throws IOException, GroupException { + public void prepareEnvironment() throws Exception { initMocks(this); when(groupManager.create(groupCaptor.capture())).thenAnswer(invocation -> invocation.getArguments()[0]); doNothing().when(groupManager).modify(groupCaptor.capture()); diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/MeResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/MeResourceTest.java index 56c60098fb..09dd545eb5 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/MeResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/MeResourceTest.java @@ -2,10 +2,6 @@ package sonia.scm.api.v2.resources; import com.github.sdorra.shiro.ShiroRule; import com.github.sdorra.shiro.SubjectAware; -import com.google.common.io.Resources; -import org.apache.shiro.authc.credential.PasswordService; -import org.apache.shiro.subject.PrincipalCollection; -import org.apache.shiro.subject.Subject; import org.jboss.resteasy.core.Dispatcher; import org.jboss.resteasy.mock.MockDispatcherFactory; import org.jboss.resteasy.mock.MockHttpRequest; @@ -16,26 +12,19 @@ import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.InjectMocks; import org.mockito.Mock; -import sonia.scm.PageResult; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.core.UriInfo; -import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; -import java.net.URL; -import static java.util.Collections.singletonList; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; @SubjectAware( @@ -64,7 +53,7 @@ public class MeResourceTest { private ArgumentCaptor<User> userCaptor = ArgumentCaptor.forClass(User.class); @Before - public void prepareEnvironment() throws IOException, UserException { + public void prepareEnvironment() throws Exception { initMocks(this); createDummyUser("trillian"); when(userManager.create(userCaptor.capture())).thenAnswer(invocation -> invocation.getArguments()[0]); diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java index d47b26e5eb..35de1ca80b 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java @@ -16,7 +16,6 @@ import org.mockito.Mock; import sonia.scm.PageResult; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.RepositoryIsNotArchivedException; import sonia.scm.repository.RepositoryManager; import sonia.scm.repository.api.RepositoryServiceFactory; @@ -217,7 +216,7 @@ public class RepositoryRootResourceTest { } @Test - public void shouldCreateNewRepositoryInCorrectNamespace() throws URISyntaxException, IOException, RepositoryException { + public void shouldCreateNewRepositoryInCorrectNamespace() throws Exception { when(repositoryManager.create(any())).thenAnswer(invocation -> { Repository repository = (Repository) invocation.getArguments()[0]; repository.setNamespace("otherspace"); diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java index 1eee9b2270..3ebe48ca1f 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java @@ -16,21 +16,24 @@ import org.mockito.InjectMocks; import org.mockito.Mock; import sonia.scm.PageResult; import sonia.scm.user.User; -import sonia.scm.user.UserException; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.servlet.http.HttpServletResponse; -import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import static java.util.Collections.singletonList; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; @SubjectAware( @@ -59,7 +62,7 @@ public class UserRootResourceTest { private ArgumentCaptor<User> userCaptor = ArgumentCaptor.forClass(User.class); @Before - public void prepareEnvironment() throws UserException { + public void prepareEnvironment() throws Exception { initMocks(this); User dummyUser = createDummyUser("Neo"); when(userManager.create(userCaptor.capture())).thenAnswer(invocation -> invocation.getArguments()[0]); @@ -106,7 +109,7 @@ public class UserRootResourceTest { } @Test - public void shouldCreateNewUserWithEncryptedPassword() throws URISyntaxException, IOException, UserException { + public void shouldCreateNewUserWithEncryptedPassword() throws Exception { URL url = Resources.getResource("sonia/scm/api/v2/user-test-create.json"); byte[] userJson = Resources.toByteArray(url); @@ -126,7 +129,7 @@ public class UserRootResourceTest { } @Test - public void shouldUpdateChangedUserWithEncryptedPassword() throws URISyntaxException, IOException, UserException { + public void shouldUpdateChangedUserWithEncryptedPassword() throws Exception { URL url = Resources.getResource("sonia/scm/api/v2/user-test-update.json"); byte[] userJson = Resources.toByteArray(url); @@ -170,7 +173,7 @@ public class UserRootResourceTest { } @Test - public void shouldDeleteUser() throws URISyntaxException, IOException, UserException { + public void shouldDeleteUser() throws Exception { MockHttpRequest request = MockHttpRequest.delete("/" + UserRootResource.USERS_PATH_V2 + "Neo"); MockHttpResponse response = new MockHttpResponse(); @@ -181,7 +184,7 @@ public class UserRootResourceTest { } @Test - public void shouldFailUpdateForDifferentIds() throws IOException, URISyntaxException, UserException { + public void shouldFailUpdateForDifferentIds() throws Exception { URL url = Resources.getResource("sonia/scm/api/v2/user-test-update.json"); byte[] userJson = Resources.toByteArray(url); createDummyUser("Other"); @@ -199,7 +202,7 @@ public class UserRootResourceTest { } @Test - public void shouldFailUpdateForUnknownEntity() throws IOException, URISyntaxException, UserException { + public void shouldFailUpdateForUnknownEntity() throws Exception { URL url = Resources.getResource("sonia/scm/api/v2/user-test-update.json"); byte[] userJson = Resources.toByteArray(url); when(userManager.get("Neo")).thenReturn(null); diff --git a/scm-webapp/src/test/java/sonia/scm/cache/CacheConfigurationTestLoader.java b/scm-webapp/src/test/java/sonia/scm/cache/CacheConfigurationTestLoader.java index 8efd40465e..24f955f79b 100644 --- a/scm-webapp/src/test/java/sonia/scm/cache/CacheConfigurationTestLoader.java +++ b/scm-webapp/src/test/java/sonia/scm/cache/CacheConfigurationTestLoader.java @@ -34,28 +34,24 @@ package sonia.scm.cache; //~--- non-JDK imports -------------------------------------------------------- -import com.google.common.base.Charsets; import com.google.common.base.Function; import com.google.common.collect.Iterators; import com.google.common.io.ByteSource; -import com.google.common.io.CharSource; import com.google.common.io.Files; import com.google.common.io.Resources; - import org.junit.rules.TemporaryFolder; +import java.io.File; +import java.io.IOException; +import java.net.URL; +import java.util.Iterator; + +import static java.util.Collections.emptyIterator; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; //~--- JDK imports ------------------------------------------------------------ -import java.io.File; -import java.io.IOException; - -import java.net.URL; - -import java.util.Iterator; - /** * * @author Sebastian Sdorra @@ -196,7 +192,7 @@ public class CacheConfigurationTestLoader implements CacheConfigurationLoader if (moduleConfigurations == null) { - urlIterator = Iterators.emptyIterator(); + urlIterator = emptyIterator(); } else { diff --git a/scm-webapp/src/test/java/sonia/scm/repository/DefaultRepositoryManagerTest.java b/scm-webapp/src/test/java/sonia/scm/repository/DefaultRepositoryManagerTest.java index 68cf2087bd..efd3f673b0 100644 --- a/scm-webapp/src/test/java/sonia/scm/repository/DefaultRepositoryManagerTest.java +++ b/scm-webapp/src/test/java/sonia/scm/repository/DefaultRepositoryManagerTest.java @@ -43,7 +43,11 @@ import org.junit.Test; import org.junit.rules.ExpectedException; import org.mockito.Mockito; import org.mockito.invocation.InvocationOnMock; -import sonia.scm.*; +import sonia.scm.AlreadyExistsException; +import sonia.scm.HandlerEventType; +import sonia.scm.Manager; +import sonia.scm.ManagerTestBase; +import sonia.scm.NotFoundException; import sonia.scm.config.ScmConfiguration; import sonia.scm.event.ScmEventBus; import sonia.scm.repository.api.HookContext; @@ -56,9 +60,15 @@ import sonia.scm.security.KeyGenerator; import sonia.scm.store.ConfigurationStoreFactory; import sonia.scm.store.JAXBConfigurationStoreFactory; -import java.util.*; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import java.util.Stack; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.hasProperty; +import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; @@ -83,7 +93,7 @@ import static org.mockito.Mockito.when; password = "secret", configuration = "classpath:sonia/scm/repository/shiro.ini" ) -public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, RepositoryException> { +public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository> { @Rule public ShiroRule shiro = new ShiroRule(); @@ -96,7 +106,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re private String mockedNamespace = "default_namespace"; @Test - public void testCreate() throws RepositoryException { + public void testCreate() throws AlreadyExistsException { Repository heartOfGold = createTestRepository(); Repository dbRepo = manager.get(heartOfGold.getId()); @@ -108,18 +118,18 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re username = "unpriv" ) @Test(expected = UnauthorizedException.class) - public void testCreateWithoutPrivileges() throws RepositoryException { + public void testCreateWithoutPrivileges() throws AlreadyExistsException { createTestRepository(); } - @Test(expected = RepositoryAlreadyExistsException.class) - public void testCreateExisting() throws RepositoryException { + @Test(expected = AlreadyExistsException.class) + public void testCreateExisting() throws AlreadyExistsException { createTestRepository(); createTestRepository(); } @Test - public void testDelete() throws RepositoryException { + public void testDelete() throws Exception { delete(manager, createTestRepository()); } @@ -127,24 +137,23 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re username = "unpriv" ) @Test(expected = UnauthorizedException.class) - public void testDeleteWithoutPrivileges() throws RepositoryException { + public void testDeleteWithoutPrivileges() throws Exception { delete(manager, createTestRepository()); } @Test(expected = RepositoryIsNotArchivedException.class) - public void testDeleteNonArchived() throws RepositoryException { + public void testDeleteNonArchived() throws Exception { configuration.setEnableRepositoryArchive(true); delete(manager, createTestRepository()); } - @Test(expected = RepositoryNotFoundException.class) - public void testDeleteNotFound() throws RepositoryException { + @Test(expected = NotFoundException.class) + public void testDeleteNotFound() throws NotFoundException { manager.delete(createRepositoryWithId()); } @Test - public void testDeleteWithEnabledArchive() - throws RepositoryException { + public void testDeleteWithEnabledArchive() throws Exception { Repository repository = createTestRepository(); repository.setArchived(true); @@ -154,7 +163,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void testGet() throws RepositoryException { + public void testGet() throws AlreadyExistsException { Repository heartOfGold = createTestRepository(); String id = heartOfGold.getId(); String description = heartOfGold.getDescription(); @@ -172,7 +181,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re @SubjectAware( username = "crato" ) - public void testGetWithoutRequiredPrivileges() throws RepositoryException { + public void testGetWithoutRequiredPrivileges() throws AlreadyExistsException { Repository heartOfGold = RepositoryTestData.createHeartOfGold(); manager.create(heartOfGold); @@ -181,7 +190,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void testGetAll() throws RepositoryException { + public void testGetAll() throws AlreadyExistsException { Repository heartOfGold = createTestRepository(); Repository happyVerticalPeopleTransporter = createSecondTestRepository(); boolean foundHeart = false; @@ -219,7 +228,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re @Test @SuppressWarnings("unchecked") @SubjectAware(username = "dent") - public void testGetAllWithPermissionsForTwoOrThreeRepos() throws RepositoryException { + public void testGetAllWithPermissionsForTwoOrThreeRepos() throws AlreadyExistsException { // mock key generator KeyGenerator keyGenerator = mock(KeyGenerator.class); Stack<String> keys = new Stack<>(); @@ -260,7 +269,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void testEvents() throws RepositoryException { + public void testEvents() throws Exception { RepositoryManager repoManager = createRepositoryManager(false); repoManager.init(contextProvider); TestListener listener = new TestListener(); @@ -291,7 +300,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void testModify() throws RepositoryException { + public void testModify() throws NotFoundException, AlreadyExistsException { Repository heartOfGold = createTestRepository(); heartOfGold.setDescription("prototype ship"); @@ -305,7 +314,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re @Test @SubjectAware(username = "crato") - public void testModifyWithoutRequiredPermissions() throws RepositoryException { + public void testModifyWithoutRequiredPermissions() throws AlreadyExistsException, NotFoundException { Repository heartOfGold = RepositoryTestData.createHeartOfGold(); manager.create(heartOfGold); heartOfGold.setDescription("prototype ship"); @@ -314,13 +323,13 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re manager.modify(heartOfGold); } - @Test(expected = RepositoryNotFoundException.class) - public void testModifyNotFound() throws RepositoryException { + @Test(expected = NotFoundException.class) + public void testModifyNotFound() throws NotFoundException { manager.modify(createRepositoryWithId()); } @Test - public void testRefresh() throws RepositoryException { + public void testRefresh() throws NotFoundException, AlreadyExistsException { Repository heartOfGold = createTestRepository(); String description = heartOfGold.getDescription(); @@ -331,7 +340,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re @Test @SubjectAware(username = "crato") - public void testRefreshWithoutRequiredPermissions() throws RepositoryException { + public void testRefreshWithoutRequiredPermissions() throws AlreadyExistsException, NotFoundException { Repository heartOfGold = RepositoryTestData.createHeartOfGold(); manager.create(heartOfGold); heartOfGold.setDescription("prototype ship"); @@ -341,12 +350,12 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test(expected = RepositoryNotFoundException.class) - public void testRefreshNotFound() throws RepositoryException { + public void testRefreshNotFound() throws NotFoundException { manager.refresh(createRepositoryWithId()); } @Test - public void testRepositoryHook() throws RepositoryException { + public void testRepositoryHook() throws AlreadyExistsException { CountingReceiveHook hook = new CountingReceiveHook(); RepositoryManager repoManager = createRepositoryManager(false); @@ -375,7 +384,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_withoutLeadingSlash() throws RepositoryException { + public void getRepositoryFromRequestUri_withoutLeadingSlash() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -386,7 +395,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_withLeadingSlash() throws RepositoryException { + public void getRepositoryFromRequestUri_withLeadingSlash() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -397,7 +406,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_withPartialName() throws RepositoryException { + public void getRepositoryFromRequestUri_withPartialName() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -408,7 +417,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_withTrailingFilePath() throws RepositoryException { + public void getRepositoryFromRequestUri_withTrailingFilePath() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -418,7 +427,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_forNotExistingRepositoryName() throws RepositoryException { + public void getRepositoryFromRequestUri_forNotExistingRepositoryName() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -428,7 +437,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void getRepositoryFromRequestUri_forWrongNamespace() throws RepositoryException { + public void getRepositoryFromRequestUri_forWrongNamespace() throws AlreadyExistsException { RepositoryManager m = createManager(); m.init(contextProvider); @@ -438,14 +447,14 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re } @Test - public void shouldSetNamespace() throws RepositoryException { + public void shouldSetNamespace() throws AlreadyExistsException { Repository repository = new Repository(null, "hg", null, "scm"); manager.create(repository); assertNotNull(repository.getId()); assertNotNull(repository.getNamespace()); } - private void createUriTestRepositories(RepositoryManager m) throws RepositoryException { + private void createUriTestRepositories(RepositoryManager m) throws AlreadyExistsException { mockedNamespace = "namespace"; createRepository(m, new Repository("1", "hg", "namespace", "scm")); createRepository(m, new Repository("2", "hg", "namespace", "scm-test")); @@ -498,8 +507,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re keyGenerator, repositoryDAO, handlerSet, createRepositoryMatcher(), namespaceStrategy); } - private void createRepository(RepositoryManager m, Repository repository) - throws RepositoryException { + private void createRepository(RepositoryManager m, Repository repository) throws AlreadyExistsException { m.create(repository); } @@ -526,7 +534,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re return new RepositoryMatcher(Collections.<RepositoryPathMatcher>emptySet()); } - private Repository createRepository(Repository repository) throws RepositoryException { + private Repository createRepository(Repository repository) throws AlreadyExistsException { manager.create(repository); assertNotNull(repository.getId()); assertNotNull(manager.get(repository.getId())); @@ -541,17 +549,16 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re return repository; } - private Repository createSecondTestRepository() throws RepositoryException { + private Repository createSecondTestRepository() throws AlreadyExistsException { return createRepository( RepositoryTestData.createHappyVerticalPeopleTransporter()); } - private Repository createTestRepository() throws RepositoryException { + private Repository createTestRepository() throws AlreadyExistsException { return createRepository(RepositoryTestData.createHeartOfGold()); } - private void delete(Manager<Repository, RepositoryException> manager, Repository repository) - throws RepositoryException { + private void delete(Manager<Repository> manager, Repository repository) throws NotFoundException { String id = repository.getId(); diff --git a/scm-webapp/src/test/java/sonia/scm/selenium/page/RepositoriesAddPage.java b/scm-webapp/src/test/java/sonia/scm/selenium/page/RepositoriesAddPage.java index f9f00056ae..a6b6798b7f 100644 --- a/scm-webapp/src/test/java/sonia/scm/selenium/page/RepositoriesAddPage.java +++ b/scm-webapp/src/test/java/sonia/scm/selenium/page/RepositoriesAddPage.java @@ -30,8 +30,7 @@ */ package sonia.scm.selenium.page; -import com.google.common.base.Objects; -import java.util.List; +import com.google.common.base.MoreObjects; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.NotFoundException; @@ -41,6 +40,8 @@ import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.ui.WebDriverWait; import sonia.scm.repository.Repository; +import java.util.List; + /** * Page object for scm-manager's repository creation page. * @@ -130,7 +131,7 @@ public class RepositoriesAddPage extends BasePage<RepositoriesAddPage> { String script = "Sonia.repository.getTypeByName('" + type + "').displayName;"; displayName = (String) ((JavascriptExecutor)driver).executeScript(script); } - return Objects.firstNonNull(displayName, type); + return MoreObjects.firstNonNull(displayName, type); } } From 98b8e343085a1ad87053c1ee382f21e37e8a7c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 08:07:09 +0200 Subject: [PATCH 047/143] remove unnecessary url --- scm-ui/src/components/validation.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scm-ui/src/components/validation.js b/scm-ui/src/components/validation.js index 0afa016a1e..7fa4a262b9 100644 --- a/scm-ui/src/components/validation.js +++ b/scm-ui/src/components/validation.js @@ -14,17 +14,3 @@ export const isMailValid = (mail: string) => { export const isNumberValid = (number: string) => { return !isNaN(number); }; - -const urlRegex = new RegExp( - "^(https?:\\/\\/)?" + // protocol - "((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|" + // domain name - "((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address - "(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path - "(\\?[;&a-z\\d%_.~+=-]*)?" + // query string - "(\\#[-a-z\\d_]*)?$", - "i" -); // fragment locator - -export const isUrlValid = (url: string) => { - return urlRegex.test(url); -}; From c0c44ec22c1101438065c28200de014b586216ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 08:40:49 +0200 Subject: [PATCH 048/143] add tests for number validation --- scm-ui/src/components/validation.test.js | 15 +++++++++ .../src/config/components/form/ConfigForm.js | 33 +++++++++++++++---- .../config/components/form/LoginAttempt.js | 15 ++++----- 3 files changed, 48 insertions(+), 15 deletions(-) diff --git a/scm-ui/src/components/validation.test.js b/scm-ui/src/components/validation.test.js index 74b9debd28..c264b20a1c 100644 --- a/scm-ui/src/components/validation.test.js +++ b/scm-ui/src/components/validation.test.js @@ -85,3 +85,18 @@ describe("test mail validation", () => { } }); }); + +describe("test number validation", () => { + it("should return false", () => { + const invalid = ["1a", "35gu", "dj6", "45,5", "test"]; + for (let number of invalid) { + expect(validator.isNumberValid(number)).toBe(false); + } + }); + it("should return true", () => { + const valid = ["1", "35", "2", "235", "34.4"]; + for (let number of valid) { + expect(validator.isNumberValid(number)).toBe(true); + } + }); +}); diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index 430ad6abb2..0dbd4e83ba 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -21,7 +21,10 @@ type Props = { type State = { config: Config, showNotification: boolean, - loginAttemptError: boolean + error: { + loginAttemptLimitTimeout: boolean, + loginAttemptLimit: boolean + } }; class ConfigForm extends React.Component<Props, State> { @@ -54,7 +57,10 @@ class ConfigForm extends React.Component<Props, State> { _links: {} }, showNotification: false, - loginAttemptError: true + error: { + loginAttemptLimitTimeout: false, + loginAttemptLimit: false + } }; } @@ -151,25 +157,40 @@ class ConfigForm extends React.Component<Props, State> { <SubmitButton loading={loading} label={t("config-form.submit")} - disabled={!configUpdatePermission || !this.isValid()} + disabled={!configUpdatePermission || this.hasError()} /> </form> ); } - onChange = (isValid: boolean, changedValue: any, name: string) => { this.setState({ ...this.state, config: { ...this.state.config, [name]: changedValue + }, + error: { + ...this.state.error, + [name]: !isValid } }); }; - isValid = () => { - return this.state.loginAttemptError; + hasError = () => { + console.log("loginAttemtLimit " + this.state.error.loginAttemptLimit); + console.log( + "loginAttemtLimitTimeout " + this.state.error.loginAttemptLimitTimeout + ); + + console.log( + this.state.error.loginAttemptLimit || + this.state.error.loginAttemptLimitTimeout + ); + return ( + this.state.error.loginAttemptLimit || + this.state.error.loginAttemptLimitTimeout + ); }; onClose = () => { diff --git a/scm-ui/src/config/components/form/LoginAttempt.js b/scm-ui/src/config/components/form/LoginAttempt.js index 489828fd0b..da3a4ce0da 100644 --- a/scm-ui/src/config/components/form/LoginAttempt.js +++ b/scm-ui/src/config/components/form/LoginAttempt.js @@ -64,7 +64,11 @@ class LoginAttempt extends React.Component<Props, State> { ...this.state, loginAttemptLimitError: !validator.isNumberValid(value) }); - this.props.onChange(this.loginAttemptIsValid(), value, "loginAttemptLimit"); + this.props.onChange( + validator.isNumberValid(value), + value, + "loginAttemptLimit" + ); }; handleLoginAttemptLimitTimeoutChange = (value: string) => { @@ -73,18 +77,11 @@ class LoginAttempt extends React.Component<Props, State> { loginAttemptLimitTimeoutError: !validator.isNumberValid(value) }); this.props.onChange( - this.loginAttemptIsValid(), + validator.isNumberValid(value), value, "loginAttemptLimitTimeout" ); }; - - loginAttemptIsValid = () => { - return ( - this.state.loginAttemptLimitError || - this.state.loginAttemptLimitTimeoutError - ); - }; } export default translate("config")(LoginAttempt); From 3071cab9b7fa719190677fe073823fc6e768e619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 08:57:25 +0200 Subject: [PATCH 049/143] remove unused console.log --- scm-ui/src/config/components/form/ConfigForm.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index 0dbd4e83ba..f859eaf07d 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -178,11 +178,6 @@ class ConfigForm extends React.Component<Props, State> { }; hasError = () => { - console.log("loginAttemtLimit " + this.state.error.loginAttemptLimit); - console.log( - "loginAttemtLimitTimeout " + this.state.error.loginAttemptLimitTimeout - ); - console.log( this.state.error.loginAttemptLimit || this.state.error.loginAttemptLimitTimeout From 7efb082c43536edd254640f6120c0bac5137271f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 09:17:15 +0200 Subject: [PATCH 050/143] reset error when loading config again --- scm-ui/src/config/containers/GlobalConfig.js | 8 +++++++- scm-ui/src/config/modules/config.js | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/scm-ui/src/config/containers/GlobalConfig.js b/scm-ui/src/config/containers/GlobalConfig.js index 2f4aa3be22..ee02da9709 100644 --- a/scm-ui/src/config/containers/GlobalConfig.js +++ b/scm-ui/src/config/containers/GlobalConfig.js @@ -9,7 +9,8 @@ import { modifyConfig, isModifyConfigPending, getConfigUpdatePermission, - getModifyConfigFailure + getModifyConfigFailure, + modifyConfigReset } from "../modules/config"; import connect from "react-redux/es/connect/connect"; import ErrorPage from "../../components/ErrorPage"; @@ -28,6 +29,7 @@ type Props = { // context objects t: string => string, fetchConfig: void => void, + configReset: void => void, history: History }; @@ -38,6 +40,7 @@ class GlobalConfig extends React.Component<Props> { }; componentDidMount() { + this.props.configReset(); this.props.fetchConfig(); } @@ -83,6 +86,9 @@ const mapDispatchToProps = dispatch => { }, modifyConfig: (config: Config, callback?: () => void) => { dispatch(modifyConfig(config, callback)); + }, + configReset: () => { + dispatch(modifyConfigReset()); } }; }; diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 4534dbaeb6..45c75348b6 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -16,6 +16,7 @@ export const MODIFY_CONFIG = "scm/config/MODIFY_CONFIG"; export const MODIFY_CONFIG_PENDING = `${MODIFY_CONFIG}_${types.PENDING_SUFFIX}`; export const MODIFY_CONFIG_SUCCESS = `${MODIFY_CONFIG}_${types.SUCCESS_SUFFIX}`; export const MODIFY_CONFIG_FAILURE = `${MODIFY_CONFIG}_${types.FAILURE_SUFFIX}`; +export const MODIFY_CONFIG_RESET = `${MODIFY_CONFIG}_${types.RESET_SUFFIX}`; const CONFIG_URL = "config"; const CONTENT_TYPE_CONFIG = "application/vnd.scmm-config+json;v=2"; @@ -66,7 +67,7 @@ export function modifyConfig(config: Config, callback?: () => void) { return function(dispatch: Dispatch) { dispatch(modifyConfigPending(config)); return apiClient - .put(config._links.update.href, config, CONTENT_TYPE_CONFIG) + .put(config._links.update.href + "letsfail!", config, CONTENT_TYPE_CONFIG) .then(() => { dispatch(modifyConfigSuccess(config)); if (callback) { @@ -108,6 +109,12 @@ export function modifyConfigFailure(config: Config, error: Error): Action { }; } +export function modifyConfigReset() { + return { + type: MODIFY_CONFIG_RESET + }; +} + //reducer function reducer(state: any = {}, action: any = {}) { From 7d100edd3df4e21b84ae7f983ef44509d155ab65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 10:48:34 +0200 Subject: [PATCH 051/143] repair false modify url --- scm-ui/src/config/modules/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/src/config/modules/config.js b/scm-ui/src/config/modules/config.js index 45c75348b6..6fe1594236 100644 --- a/scm-ui/src/config/modules/config.js +++ b/scm-ui/src/config/modules/config.js @@ -67,7 +67,7 @@ export function modifyConfig(config: Config, callback?: () => void) { return function(dispatch: Dispatch) { dispatch(modifyConfigPending(config)); return apiClient - .put(config._links.update.href + "letsfail!", config, CONTENT_TYPE_CONFIG) + .put(config._links.update.href, config, CONTENT_TYPE_CONFIG) .then(() => { dispatch(modifyConfigSuccess(config)); if (callback) { From cd0c1a5f2a35a046c986c75f4c4a5e7d3778e15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:25:47 +0200 Subject: [PATCH 052/143] remove unnecessary console.log --- scm-ui/src/config/components/form/ConfigForm.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scm-ui/src/config/components/form/ConfigForm.js b/scm-ui/src/config/components/form/ConfigForm.js index f859eaf07d..afb6b243d6 100644 --- a/scm-ui/src/config/components/form/ConfigForm.js +++ b/scm-ui/src/config/components/form/ConfigForm.js @@ -178,10 +178,6 @@ class ConfigForm extends React.Component<Props, State> { }; hasError = () => { - console.log( - this.state.error.loginAttemptLimit || - this.state.error.loginAttemptLimitTimeout - ); return ( this.state.error.loginAttemptLimit || this.state.error.loginAttemptLimitTimeout From 68f62b9b053f7e37421bd448a7166bd19db334d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:27:35 +0200 Subject: [PATCH 053/143] transfer remove button of each component to a global remove button --- scm-ui/src/components/buttons/index.js | 1 + .../buttons/RemoveAdminGroupButton.js | 34 ------------------ .../buttons/RemoveAdminUserButton.js | 34 ------------------ .../buttons/RemoveProxyExcludeButton.js | 36 ------------------- .../components/table/AdminGroupTable.js | 11 +++--- .../config/components/table/AdminUserTable.js | 11 +++--- .../components/table/ProxyExcludesTable.js | 11 +++--- 7 files changed, 19 insertions(+), 119 deletions(-) delete mode 100644 scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js delete mode 100644 scm-ui/src/config/components/buttons/RemoveAdminUserButton.js delete mode 100644 scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js diff --git a/scm-ui/src/components/buttons/index.js b/scm-ui/src/components/buttons/index.js index 8dfc6e00ef..e0d94d29b9 100644 --- a/scm-ui/src/components/buttons/index.js +++ b/scm-ui/src/components/buttons/index.js @@ -4,3 +4,4 @@ export { default as CreateButton } from "./CreateButton"; export { default as DeleteButton } from "./DeleteButton"; export { default as EditButton } from "./EditButton"; export { default as SubmitButton } from "./SubmitButton"; +export {default as RemoveEntryOfTableButton} from "./RemoveEntryOfTableButton"; diff --git a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js b/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js deleted file mode 100644 index 6a819b6972..0000000000 --- a/scm-ui/src/config/components/buttons/RemoveAdminGroupButton.js +++ /dev/null @@ -1,34 +0,0 @@ -//@flow -import React from "react"; -import { DeleteButton } from "../../../components/buttons"; -import { translate } from "react-i18next"; -import classNames from "classnames"; - -type Props = { - t: string => string, - groupname: string, - removeGroup: string => void, - disabled: boolean -}; - -type State = {}; - -class RemoveAdminGroupButton extends React.Component<Props, State> { - render() { - const { t, groupname, removeGroup, disabled } = this.props; - return ( - <div className={classNames("is-pulled-right")}> - <DeleteButton - label={t("admin-settings.remove-group-button")} - action={(event: Event) => { - event.preventDefault(); - removeGroup(groupname); - }} - disabled={disabled} - /> - </div> - ); - } -} - -export default translate("config")(RemoveAdminGroupButton); diff --git a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js b/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js deleted file mode 100644 index 7d79a84030..0000000000 --- a/scm-ui/src/config/components/buttons/RemoveAdminUserButton.js +++ /dev/null @@ -1,34 +0,0 @@ -//@flow -import React from "react"; -import { DeleteButton } from "../../../components/buttons"; -import { translate } from "react-i18next"; -import classNames from "classnames"; - -type Props = { - t: string => string, - username: string, - removeUser: string => void, - disabled: boolean -}; - -type State = {}; - -class RemoveAdminUserButton extends React.Component<Props, State> { - render() { - const { t, username, removeUser, disabled } = this.props; - return ( - <div className={classNames("is-pulled-right")}> - <DeleteButton - label={t("admin-settings.remove-user-button")} - action={(event: Event) => { - event.preventDefault(); - removeUser(username); - }} - disabled={disabled} - /> - </div> - ); - } -} - -export default translate("config")(RemoveAdminUserButton); diff --git a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js b/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js deleted file mode 100644 index acdfd6292a..0000000000 --- a/scm-ui/src/config/components/buttons/RemoveProxyExcludeButton.js +++ /dev/null @@ -1,36 +0,0 @@ -//@flow -import React from "react"; -import {DeleteButton} from "../../../components/buttons"; -import { translate } from "react-i18next"; -import classNames from "classnames"; - -type Props = { - t: string => string, - proxyExcludeName: string, - removeProxyExclude: string => void, - disabled: boolean -}; - -type State = {}; - - - -class RemoveProxyExcludeButton extends React.Component<Props, State> { - render() { - const { t , proxyExcludeName, removeProxyExclude} = this.props; - return ( - <div className={classNames("is-pulled-right")}> - <DeleteButton - label={t("proxy-settings.remove-proxy-exclude-button")} - action={(event: Event) => { - event.preventDefault(); - removeProxyExclude(proxyExcludeName); - }} - disabled={this.props.disabled} - /> - </div> - ); - } -} - -export default translate("config")(RemoveProxyExcludeButton); diff --git a/scm-ui/src/config/components/table/AdminGroupTable.js b/scm-ui/src/config/components/table/AdminGroupTable.js index d5566e7ce1..fc05c75f06 100644 --- a/scm-ui/src/config/components/table/AdminGroupTable.js +++ b/scm-ui/src/config/components/table/AdminGroupTable.js @@ -1,7 +1,7 @@ //@flow import React from "react"; import { translate } from "react-i18next"; -import RemoveAdminGroupButton from "../buttons/RemoveAdminGroupButton"; +import { RemoveEntryOfTableButton } from "../../../components/buttons"; type Props = { adminGroups: string[], @@ -25,10 +25,11 @@ class AdminGroupTable extends React.Component<Props, State> { <tr key={group}> <td key={group}>{group}</td> <td> - <RemoveAdminGroupButton - groupname={group} - removeGroup={this.removeGroup} + <RemoveEntryOfTableButton + entryname={group} + removeEntry={this.removeEntry} disabled={disabled} + label={t("admin-settings.remove-group-button")} /> </td> </tr> @@ -40,7 +41,7 @@ class AdminGroupTable extends React.Component<Props, State> { ); } - removeGroup = (groupname: string) => { + removeEntry = (groupname: string) => { const newGroups = this.props.adminGroups.filter(name => name !== groupname); this.props.onChange(true, newGroups, "adminGroups"); }; diff --git a/scm-ui/src/config/components/table/AdminUserTable.js b/scm-ui/src/config/components/table/AdminUserTable.js index caf58f2cc0..c622a0e027 100644 --- a/scm-ui/src/config/components/table/AdminUserTable.js +++ b/scm-ui/src/config/components/table/AdminUserTable.js @@ -1,7 +1,7 @@ //@flow import React from "react"; import { translate } from "react-i18next"; -import RemoveAdminUserButton from "../buttons/RemoveAdminUserButton"; +import { RemoveEntryOfTableButton } from "../../../components/buttons"; type Props = { adminUsers: string[], @@ -25,10 +25,11 @@ class AdminUserTable extends React.Component<Props, State> { <tr key={user}> <td key={user}>{user}</td> <td> - <RemoveAdminUserButton - username={user} - removeUser={this.removeUser} + <RemoveEntryOfTableButton + entryname={user} + removeEntry={this.removeEntry} disabled={disabled} + label={t("admin-settings.remove-user-button")} /> </td> </tr> @@ -40,7 +41,7 @@ class AdminUserTable extends React.Component<Props, State> { ); } - removeUser = (username: string) => { + removeEntry = (username: string) => { const newUsers = this.props.adminUsers.filter(name => name !== username); this.props.onChange(true, newUsers, "adminUsers"); }; diff --git a/scm-ui/src/config/components/table/ProxyExcludesTable.js b/scm-ui/src/config/components/table/ProxyExcludesTable.js index ccee16cea5..4476442c48 100644 --- a/scm-ui/src/config/components/table/ProxyExcludesTable.js +++ b/scm-ui/src/config/components/table/ProxyExcludesTable.js @@ -1,7 +1,7 @@ //@flow import React from "react"; import { translate } from "react-i18next"; -import RemoveProxyExcludeButton from "../buttons/RemoveProxyExcludeButton"; +import { RemoveEntryOfTableButton } from "../../../components/buttons"; type Props = { proxyExcludes: string[], @@ -25,10 +25,11 @@ class ProxyExcludesTable extends React.Component<Props, State> { <tr key={excludes}> <td key={excludes}>{excludes}</td> <td> - <RemoveProxyExcludeButton - proxyExcludeName={excludes} - removeProxyExclude={this.removeProxyExclude} + <RemoveEntryOfTableButton + entryname={excludes} + removeEntry={this.removeEntry} disabled={this.props.disabled} + label={t("proxy-settings.remove-proxy-exclude-button")} /> </td> </tr> @@ -40,7 +41,7 @@ class ProxyExcludesTable extends React.Component<Props, State> { ); } - removeProxyExclude = (excludename: string) => { + removeEntry = (excludename: string) => { const newExcludes = this.props.proxyExcludes.filter( name => name !== excludename ); From d5815142c0d3296bcc83cb0d789d505cddde8e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:28:01 +0200 Subject: [PATCH 054/143] add global remove button for table entries --- .../buttons/RemoveEntryOfTableButton.js | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scm-ui/src/components/buttons/RemoveEntryOfTableButton.js diff --git a/scm-ui/src/components/buttons/RemoveEntryOfTableButton.js b/scm-ui/src/components/buttons/RemoveEntryOfTableButton.js new file mode 100644 index 0000000000..280226b938 --- /dev/null +++ b/scm-ui/src/components/buttons/RemoveEntryOfTableButton.js @@ -0,0 +1,33 @@ +//@flow +import React from "react"; +import { DeleteButton } from "."; +import classNames from "classnames"; + +type Props = { + entryname: string, + removeEntry: string => void, + disabled: boolean, + label: string +}; + +type State = {}; + +class RemoveEntryOfTableButton extends React.Component<Props, State> { + render() { + const { label, entryname, removeEntry, disabled } = this.props; + return ( + <div className={classNames("is-pulled-right")}> + <DeleteButton + label={label} + action={(event: Event) => { + event.preventDefault(); + removeEntry(entryname); + }} + disabled={disabled} + /> + </div> + ); + } +} + +export default RemoveEntryOfTableButton; From d8e4c7d63ac0894d9ffc8665812e2c0cc01bec68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:31:36 +0200 Subject: [PATCH 055/143] use global remove button for table entries in groups --- .../src/groups/components/MemberNameTable.js | 12 ++++--- .../components/buttons/RemoveMemberButton.js | 34 ------------------- 2 files changed, 7 insertions(+), 39 deletions(-) delete mode 100644 scm-ui/src/groups/components/buttons/RemoveMemberButton.js diff --git a/scm-ui/src/groups/components/MemberNameTable.js b/scm-ui/src/groups/components/MemberNameTable.js index 699c009413..0ae20da7d2 100644 --- a/scm-ui/src/groups/components/MemberNameTable.js +++ b/scm-ui/src/groups/components/MemberNameTable.js @@ -1,7 +1,7 @@ //@flow import React from "react"; import { translate } from "react-i18next"; -import RemoveMemberButton from "./buttons/RemoveMemberButton"; +import { RemoveEntryOfTableButton } from "../../components/buttons"; type Props = { members: string[], @@ -24,9 +24,11 @@ class MemberNameTable extends React.Component<Props, State> { <tr key={member}> <td key={member}>{member}</td> <td> - <RemoveMemberButton - membername={member} - removeMember={this.removeMember} + <RemoveEntryOfTableButton + entryname={member} + removeEntry={this.removeEntry} + disabled={false} + label={t("remove-member-button.label")} /> </td> </tr> @@ -38,7 +40,7 @@ class MemberNameTable extends React.Component<Props, State> { ); } - removeMember = (membername: string) => { + removeEntry = (membername: string) => { const newMembers = this.props.members.filter(name => name !== membername); this.props.memberListChanged(newMembers); }; diff --git a/scm-ui/src/groups/components/buttons/RemoveMemberButton.js b/scm-ui/src/groups/components/buttons/RemoveMemberButton.js deleted file mode 100644 index 40c7b39cc0..0000000000 --- a/scm-ui/src/groups/components/buttons/RemoveMemberButton.js +++ /dev/null @@ -1,34 +0,0 @@ -//@flow -import React from "react"; -import { DeleteButton } from "../../../components/buttons"; -import { translate } from "react-i18next"; -import classNames from "classnames"; - -type Props = { - t: string => string, - membername: string, - removeMember: string => void -}; - -type State = {}; - - - -class RemoveMemberButton extends React.Component<Props, State> { - render() { - const { t , membername, removeMember} = this.props; - return ( - <div className={classNames("is-pulled-right")}> - <DeleteButton - label={t("remove-member-button.label")} - action={(event: Event) => { - event.preventDefault(); - removeMember(membername); - }} - /> - </div> - ); - } -} - -export default translate("groups")(RemoveMemberButton); From d9e66fdbaa120921de62cf9893244f6808df33cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:33:48 +0200 Subject: [PATCH 056/143] delete of unnecessary comments --- .../components/fields/AddAdminGroupField.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/scm-ui/src/config/components/fields/AddAdminGroupField.js b/scm-ui/src/config/components/fields/AddAdminGroupField.js index 0991056b66..21cba365ed 100644 --- a/scm-ui/src/config/components/fields/AddAdminGroupField.js +++ b/scm-ui/src/config/components/fields/AddAdminGroupField.js @@ -12,16 +12,14 @@ type Props = { }; type State = { - groupToAdd: string, - //validationError: boolean + groupToAdd: string }; class AddAdminGroupField extends React.Component<Props, State> { constructor(props) { super(props); this.state = { - groupToAdd: "", - //validationError: false + groupToAdd: "" }; } @@ -30,7 +28,6 @@ class AddAdminGroupField extends React.Component<Props, State> { return ( <div className="field"> <InputField - label={t("admin-settings.add-group-textfield")} errorMessage={t("admin-settings.add-group-error")} onChange={this.handleAddGroupChange} @@ -43,7 +40,6 @@ class AddAdminGroupField extends React.Component<Props, State> { label={t("admin-settings.add-group-button")} action={this.addButtonClicked} disabled={disabled} - //disabled={!isMemberNameValid(this.state.memberToAdd)} /> </div> ); @@ -56,17 +52,14 @@ class AddAdminGroupField extends React.Component<Props, State> { appendGroup = () => { const { groupToAdd } = this.state; - //if (isMemberNameValid(memberToAdd)) { - this.props.addGroup(groupToAdd); - this.setState({ ...this.state, groupToAdd: "" }); - // } + this.props.addGroup(groupToAdd); + this.setState({ ...this.state, groupToAdd: "" }); }; handleAddGroupChange = (groupname: string) => { this.setState({ ...this.state, - groupToAdd: groupname, - //validationError: membername.length > 0 && !isMemberNameValid(membername) + groupToAdd: groupname }); }; } From ebed0d0997a9d9cf70e88371a535a0bdcac0f686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 11:59:12 +0200 Subject: [PATCH 057/143] transfer field to add new entry of each component to global one --- .../components/forms/AddEntryToTableField.js | 68 +++++++++++++++++ .../components/fields/AddAdminGroupField.js | 67 ----------------- .../components/fields/AddAdminUserField.js | 73 ------------------- .../components/fields/AddProxyExcludeField.js | 73 ------------------- .../config/components/form/AdminSettings.js | 18 ++++- .../config/components/form/ProxySettings.js | 10 ++- .../src/groups/components/AddMemberField.js | 71 ------------------ scm-ui/src/groups/components/GroupForm.js | 10 ++- 8 files changed, 97 insertions(+), 293 deletions(-) create mode 100644 scm-ui/src/components/forms/AddEntryToTableField.js delete mode 100644 scm-ui/src/config/components/fields/AddAdminGroupField.js delete mode 100644 scm-ui/src/config/components/fields/AddAdminUserField.js delete mode 100644 scm-ui/src/config/components/fields/AddProxyExcludeField.js delete mode 100644 scm-ui/src/groups/components/AddMemberField.js diff --git a/scm-ui/src/components/forms/AddEntryToTableField.js b/scm-ui/src/components/forms/AddEntryToTableField.js new file mode 100644 index 0000000000..1770e07807 --- /dev/null +++ b/scm-ui/src/components/forms/AddEntryToTableField.js @@ -0,0 +1,68 @@ +//@flow +import React from "react"; + +import { AddButton } from "../buttons"; +import InputField from "./InputField"; + +type Props = { + addEntry: string => void, + disabled: boolean, + buttonLabel: string, + fieldLabel: string, + errorMessage: string +}; + +type State = { + entryToAdd: string +}; + +class AddEntryToTableField extends React.Component<Props, State> { + constructor(props: Props) { + super(props); + this.state = { + entryToAdd: "" + }; + } + + render() { + const { disabled, buttonLabel, fieldLabel, errorMessage } = this.props; + return ( + <div className="field"> + <InputField + label={fieldLabel} + errorMessage={errorMessage} + onChange={this.handleAddEntryChange} + validationError={false} + value={this.state.entryToAdd} + onReturnPressed={this.appendEntry} + disabled={disabled} + /> + <AddButton + label={buttonLabel} + action={this.addButtonClicked} + disabled={disabled} + /> + </div> + ); + } + + addButtonClicked = (event: Event) => { + event.preventDefault(); + this.appendEntry(); + }; + + appendEntry = () => { + const { entryToAdd } = this.state; + this.props.addEntry(entryToAdd); + this.setState({ ...this.state, entryToAdd: "" }); + }; + + handleAddEntryChange = (entryname: string) => { + this.setState({ + ...this.state, + entryToAdd: entryname + }); + }; +} + +export default AddEntryToTableField; diff --git a/scm-ui/src/config/components/fields/AddAdminGroupField.js b/scm-ui/src/config/components/fields/AddAdminGroupField.js deleted file mode 100644 index 21cba365ed..0000000000 --- a/scm-ui/src/config/components/fields/AddAdminGroupField.js +++ /dev/null @@ -1,67 +0,0 @@ -//@flow -import React from "react"; - -import { translate } from "react-i18next"; -import { AddButton } from "../../../components/buttons"; -import InputField from "../../../components/forms/InputField"; - -type Props = { - t: string => string, - addGroup: string => void, - disabled: boolean -}; - -type State = { - groupToAdd: string -}; - -class AddAdminGroupField extends React.Component<Props, State> { - constructor(props) { - super(props); - this.state = { - groupToAdd: "" - }; - } - - render() { - const { t, disabled } = this.props; - return ( - <div className="field"> - <InputField - label={t("admin-settings.add-group-textfield")} - errorMessage={t("admin-settings.add-group-error")} - onChange={this.handleAddGroupChange} - validationError={false} - value={this.state.groupToAdd} - onReturnPressed={this.appendGroup} - disabled={disabled} - /> - <AddButton - label={t("admin-settings.add-group-button")} - action={this.addButtonClicked} - disabled={disabled} - /> - </div> - ); - } - - addButtonClicked = (event: Event) => { - event.preventDefault(); - this.appendGroup(); - }; - - appendGroup = () => { - const { groupToAdd } = this.state; - this.props.addGroup(groupToAdd); - this.setState({ ...this.state, groupToAdd: "" }); - }; - - handleAddGroupChange = (groupname: string) => { - this.setState({ - ...this.state, - groupToAdd: groupname - }); - }; -} - -export default translate("config")(AddAdminGroupField); diff --git a/scm-ui/src/config/components/fields/AddAdminUserField.js b/scm-ui/src/config/components/fields/AddAdminUserField.js deleted file mode 100644 index 025ed6cb4d..0000000000 --- a/scm-ui/src/config/components/fields/AddAdminUserField.js +++ /dev/null @@ -1,73 +0,0 @@ -//@flow -import React from "react"; - -import { translate } from "react-i18next"; -import { AddButton } from "../../../components/buttons"; -import InputField from "../../../components/forms/InputField"; - -type Props = { - t: string => string, - addUser: string => void, - disabled: boolean -}; - -type State = { - userToAdd: string - //validationError: boolean -}; - -class AddAdminUserField extends React.Component<Props, State> { - constructor(props) { - super(props); - this.state = { - userToAdd: "" - //validationError: false - }; - } - - render() { - const { t, disabled } = this.props; - return ( - <div className="field"> - <InputField - label={t("admin-settings.add-user-textfield")} - errorMessage={t("admin-settings.add-user-error")} - onChange={this.handleAddUserChange} - validationError={false} - value={this.state.userToAdd} - onReturnPressed={this.appendUser} - disabled={disabled} - /> - <AddButton - label={t("admin-settings.add-user-button")} - action={this.addButtonClicked} - disabled={disabled} - //disabled={!isMemberNameValid(this.state.memberToAdd)} - /> - </div> - ); - } - - addButtonClicked = (event: Event) => { - event.preventDefault(); - this.appendUser(); - }; - - appendUser = () => { - const { userToAdd } = this.state; - //if (isMemberNameValid(memberToAdd)) { - this.props.addUser(userToAdd); - this.setState({ ...this.state, userToAdd: "" }); - // } - }; - - handleAddUserChange = (username: string) => { - this.setState({ - ...this.state, - userToAdd: username - //validationError: membername.length > 0 && !isMemberNameValid(membername) - }); - }; -} - -export default translate("config")(AddAdminUserField); diff --git a/scm-ui/src/config/components/fields/AddProxyExcludeField.js b/scm-ui/src/config/components/fields/AddProxyExcludeField.js deleted file mode 100644 index bb7e005b02..0000000000 --- a/scm-ui/src/config/components/fields/AddProxyExcludeField.js +++ /dev/null @@ -1,73 +0,0 @@ -//@flow -import React from "react"; - -import { translate } from "react-i18next"; -import { AddButton } from "../../../components/buttons"; -import InputField from "../../../components/forms/InputField"; - -type Props = { - t: string => string, - addProxyExclude: string => void, - disabled: boolean -}; - -type State = { - proxyExcludeToAdd: string - //validationError: boolean -}; - -class AddProxyExcludeField extends React.Component<Props, State> { - constructor(props) { - super(props); - this.state = { - proxyExcludeToAdd: "" - //validationError: false - }; - } - - render() { - const { t } = this.props; - return ( - <div className="field"> - <InputField - label={t("proxy-settings.add-proxy-exclude-textfield")} - errorMessage={t("proxy-settings.add-proxy-exclude-error")} - onChange={this.handleAddProxyExcludeChange} - validationError={false} - value={this.state.proxyExcludeToAdd} - onReturnPressed={this.appendProxyExclude} - disabled={this.props.disabled} - /> - <AddButton - label={t("proxy-settings.add-proxy-exclude-button")} - action={this.addButtonClicked} - disabled={this.props.disabled} - //disabled={!isMemberNameValid(this.state.memberToAdd)} - /> - </div> - ); - } - - addButtonClicked = (event: Event) => { - event.preventDefault(); - this.appendProxyExclude(); - }; - - appendProxyExclude = () => { - const { proxyExcludeToAdd } = this.state; - //if (isMemberNameValid(memberToAdd)) { - this.props.addProxyExclude(proxyExcludeToAdd); - this.setState({ ...this.state, proxyExcludeToAdd: "" }); - // } - }; - - handleAddProxyExcludeChange = (username: string) => { - this.setState({ - ...this.state, - proxyExcludeToAdd: username - //validationError: membername.length > 0 && !isMemberNameValid(membername) - }); - }; -} - -export default translate("config")(AddProxyExcludeField); diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index b7a39f234c..ea1a88fe6f 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -4,8 +4,7 @@ import { translate } from "react-i18next"; import Subtitle from "../../../components/layout/Subtitle"; import AdminGroupTable from "../table/AdminGroupTable"; import AdminUserTable from "../table/AdminUserTable"; -import AddAdminGroupField from "../fields/AddAdminGroupField"; -import AddAdminUserField from "../fields/AddAdminUserField"; +import AddEntryToTableField from "../../../components/forms/AddEntryToTableField"; type Props = { adminGroups: string[], @@ -29,8 +28,14 @@ class AdminSettings extends React.Component<Props> { } disabled={!hasUpdatePermission} /> - <AddAdminGroupField addGroup={this.addGroup} disabled={!hasUpdatePermission} + <AddEntryToTableField + addEntry={this.addGroup} + disabled={!hasUpdatePermission} + buttonLabel={t("admin-settings.add-group-button")} + fieldLabel={t("admin-settings.add-group-textfield")} + errorMessage={t("admin-settings.add-group-error")} /> + <AdminUserTable adminUsers={adminUsers} onChange={(isValid, changedValue, name) => @@ -38,7 +43,12 @@ class AdminSettings extends React.Component<Props> { } disabled={!hasUpdatePermission} /> - <AddAdminUserField addUser={this.addUser} disabled={!hasUpdatePermission} + <AddEntryToTableField + addEntry={this.addUser} + disabled={!hasUpdatePermission} + buttonLabel={t("admin-settings.add-user-button")} + fieldLabel={t("admin-settings.add-user-textfield")} + errorMessage={t("admin-settings.add-user-error")} /> </div> ); diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index eb434513fe..a1d513f9b1 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -4,7 +4,7 @@ import { translate } from "react-i18next"; import { Checkbox, InputField } from "../../../components/forms/index"; import Subtitle from "../../../components/layout/Subtitle"; import ProxyExcludesTable from "../table/ProxyExcludesTable"; -import AddProxyExcludeField from "../fields/AddProxyExcludeField"; +import AddEntryToTableField from "../../../components/forms/AddEntryToTableField"; type Props = { proxyPassword: string, @@ -65,6 +65,7 @@ class ProxySettings extends React.Component<Props> { onChange={this.handleProxyUserChange} disabled={!enableProxy || !hasUpdatePermission} /> + <ProxyExcludesTable proxyExcludes={proxyExcludes} onChange={(isValid, changedValue, name) => @@ -72,9 +73,12 @@ class ProxySettings extends React.Component<Props> { } disabled={!enableProxy || !hasUpdatePermission} /> - <AddProxyExcludeField - addProxyExclude={this.addProxyExclude} + <AddEntryToTableField + addEntry={this.addProxyExclude} disabled={!enableProxy || !hasUpdatePermission} + buttonLabel={t("proxy-settings.add-proxy-exclude-button")} + fieldLabel={t("proxy-settings.add-proxy-exclude-textfield")} + errorMessage={t("proxy-settings.add-proxy-exclude-error")} /> </div> ); diff --git a/scm-ui/src/groups/components/AddMemberField.js b/scm-ui/src/groups/components/AddMemberField.js deleted file mode 100644 index 6237e88291..0000000000 --- a/scm-ui/src/groups/components/AddMemberField.js +++ /dev/null @@ -1,71 +0,0 @@ -//@flow -import React from "react"; - -import { translate } from "react-i18next"; -import { AddButton } from "../../components/buttons"; -import InputField from "../../components/forms/InputField"; -import { isMemberNameValid } from "./groupValidation"; - -type Props = { - t: string => string, - addMember: string => void -}; - -type State = { - memberToAdd: string, - validationError: boolean -}; - -class AddMemberField extends React.Component<Props, State> { - constructor(props) { - super(props); - this.state = { - memberToAdd: "", - validationError: false - }; - } - - render() { - const { t } = this.props; - return ( - <div className="field"> - <InputField - label={t("add-member-textfield.label")} - errorMessage={t("add-member-textfield.error")} - onChange={this.handleAddMemberChange} - validationError={this.state.validationError} - value={this.state.memberToAdd} - onReturnPressed={this.appendMember} - /> - <AddButton - label={t("add-member-button.label")} - action={this.addButtonClicked} - disabled={!isMemberNameValid(this.state.memberToAdd)} - /> - </div> - ); - } - - addButtonClicked = (event: Event) => { - event.preventDefault(); - this.appendMember(); - }; - - appendMember = () => { - const { memberToAdd } = this.state; - if (isMemberNameValid(memberToAdd)) { - this.props.addMember(memberToAdd); - this.setState({ ...this.state, memberToAdd: "" }); - } - }; - - handleAddMemberChange = (membername: string) => { - this.setState({ - ...this.state, - memberToAdd: membername, - validationError: membername.length > 0 && !isMemberNameValid(membername) - }); - }; -} - -export default translate("groups")(AddMemberField); diff --git a/scm-ui/src/groups/components/GroupForm.js b/scm-ui/src/groups/components/GroupForm.js index 2e941ea7eb..a989bdc1c5 100644 --- a/scm-ui/src/groups/components/GroupForm.js +++ b/scm-ui/src/groups/components/GroupForm.js @@ -6,9 +6,9 @@ import { SubmitButton } from "../../components/buttons"; import { translate } from "react-i18next"; import type { Group } from "../types/Group"; import * as validator from "./groupValidation"; -import AddMemberField from "./AddMemberField"; import MemberNameTable from "./MemberNameTable"; import Textarea from "../../components/forms/Textarea"; +import AddEntryToTableField from "../../components/forms/AddEntryToTableField"; type Props = { t: string => string, @@ -96,7 +96,13 @@ class GroupForm extends React.Component<Props, State> { members={this.state.group.members} memberListChanged={this.memberListChanged} /> - <AddMemberField addMember={this.addMember} /> + <AddEntryToTableField + addEntry={this.addMember} + disabled={false} + buttonLabel={t("add-member-button.label")} + fieldLabel={t("add-member-textfield.label")} + errorMessage={t("add-member-textfield.error")} + /> <SubmitButton disabled={!this.isValid()} label={t("group-form.submit")} From 18bf13a6af73b4df210537c88053360f7047a5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@cloudogu.com> Date: Tue, 21 Aug 2018 13:06:52 +0200 Subject: [PATCH 058/143] formatting --- scm-ui/src/config/components/form/AdminSettings.js | 1 - scm-ui/src/config/components/form/ProxySettings.js | 1 - 2 files changed, 2 deletions(-) diff --git a/scm-ui/src/config/components/form/AdminSettings.js b/scm-ui/src/config/components/form/AdminSettings.js index ea1a88fe6f..98ab7350fb 100644 --- a/scm-ui/src/config/components/form/AdminSettings.js +++ b/scm-ui/src/config/components/form/AdminSettings.js @@ -35,7 +35,6 @@ class AdminSettings extends React.Component<Props> { fieldLabel={t("admin-settings.add-group-textfield")} errorMessage={t("admin-settings.add-group-error")} /> - <AdminUserTable adminUsers={adminUsers} onChange={(isValid, changedValue, name) => diff --git a/scm-ui/src/config/components/form/ProxySettings.js b/scm-ui/src/config/components/form/ProxySettings.js index a1d513f9b1..42cd0ab228 100644 --- a/scm-ui/src/config/components/form/ProxySettings.js +++ b/scm-ui/src/config/components/form/ProxySettings.js @@ -65,7 +65,6 @@ class ProxySettings extends React.Component<Props> { onChange={this.handleProxyUserChange} disabled={!enableProxy || !hasUpdatePermission} /> - <ProxyExcludesTable proxyExcludes={proxyExcludes} onChange={(isValid, changedValue, name) => From 6f5789968705b9b692bf22bc17f19fb851ffeca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= <maren.suewer@web.de> Date: Tue, 21 Aug 2018 11:13:22 +0000 Subject: [PATCH 059/143] scm.iml edited online with Bitbucket --- scm.iml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 scm.iml diff --git a/scm.iml b/scm.iml deleted file mode 100644 index 20f9f4b564..0000000000 --- a/scm.iml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> - <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> - <output url="file://$MODULE_DIR$/target/classes" /> - <output-test url="file://$MODULE_DIR$/target/test-classes" /> - <content url="file://$MODULE_DIR$"> - <excludeFolder url="file://$MODULE_DIR$/target" /> - </content> - <orderEntry type="inheritedJdk" /> - <orderEntry type="sourceFolder" forTests="false" /> - <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" /> - <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> - <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" /> - <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-all:1.10.19" level="project" /> - <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.10.0" level="project" /> - <orderEntry type="library" scope="PROVIDED" name="Maven: com.github.cloudogu:ces-build-lib:9aadeeb" level="project" /> - <orderEntry type="library" scope="PROVIDED" name="Maven: com.cloudbees:groovy-cps:1.21" level="project" /> - <orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:guava:11.0.1" level="project" /> - <orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.findbugs:jsr305:1.3.9" level="project" /> - <orderEntry type="library" scope="PROVIDED" name="Maven: org.codehaus.groovy:groovy-all:2.4.11" level="project" /> - </component> -</module> \ No newline at end of file From e2fa2388f1977626cc7e873c8e613db6952e3812 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Tue, 21 Aug 2018 14:56:44 +0200 Subject: [PATCH 060/143] create bundle for git plugin --- scm-plugins/scm-git-plugin/package.json | 13 + scm-plugins/scm-git-plugin/pom.xml | 50 +- .../src/main/js/CloneInformation.js | 31 + .../scm-git-plugin/src/main/js/index.js | 4 + scm-plugins/scm-git-plugin/yarn.lock | 2188 +++++++++++++++++ 5 files changed, 2277 insertions(+), 9 deletions(-) create mode 100644 scm-plugins/scm-git-plugin/package.json create mode 100644 scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js create mode 100644 scm-plugins/scm-git-plugin/src/main/js/index.js create mode 100644 scm-plugins/scm-git-plugin/yarn.lock diff --git a/scm-plugins/scm-git-plugin/package.json b/scm-plugins/scm-git-plugin/package.json new file mode 100644 index 0000000000..234766ab8d --- /dev/null +++ b/scm-plugins/scm-git-plugin/package.json @@ -0,0 +1,13 @@ +{ + "name": "@scm-manager/scm-git-plugin", + "main": "src/main/js/index.js", + "scripts": { + "build": "ui-bundler build" + }, + "dependencies": { + "@scm-manager/ui-extensions": "^0.0.3" + }, + "devDependencies": { + "@scm-manager/ui-bundler": "^0.0.1" + } +} diff --git a/scm-plugins/scm-git-plugin/pom.xml b/scm-plugins/scm-git-plugin/pom.xml index c6ae017d9e..68aaecb789 100644 --- a/scm-plugins/scm-git-plugin/pom.xml +++ b/scm-plugins/scm-git-plugin/pom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - + <modelVersion>4.0.0</modelVersion> <parent> @@ -42,12 +42,12 @@ </dependency> </dependencies> - + <!-- create test jar --> - + <build> <plugins> - + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> @@ -60,20 +60,52 @@ </execution> </executions> </plugin> - + + <plugin> + <groupId>com.github.sdorra</groupId> + <artifactId>buildfrontend-maven-plugin</artifactId> + <version>2.0.1</version> + <configuration> + <node> + <version>8.11.3</version> + </node> + <pkgManager> + <type>YARN</type> + <version>1.7.0</version> + </pkgManager> + <script>build</script> + </configuration> + <executions> + <execution> + <id>install</id> + <phase>process-resources</phase> + <goals> + <goal>install</goal> + </goals> + </execution> + <execution> + <id>build</id> + <phase>compile</phase> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> - + <!-- for jgit --> - + <repositories> - + <repository> <id>maven.scm-manager.org</id> <name>scm-manager release repository</name> <url>http://maven.scm-manager.org/nexus/content/groups/public</url> </repository> - + </repositories> </project> diff --git a/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js b/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js new file mode 100644 index 0000000000..4bb0f565f2 --- /dev/null +++ b/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js @@ -0,0 +1,31 @@ +//@flow +import React from 'react'; + +// TODO flow types ??? +type Props = { + repository: Object +} + +class CloneInformation extends React.Component<Props> { + + render() { + const { repository } = this.repository; + if (repository.type !== "git") { + return null; + } + if (!repository._links.httpProtocol) { + return null; + } + return ( + <div> + <h2>Git</h2> + <pre><code> + git clone { repository._links.httpProtocol } + </code></pre> + </div> + ); + } + +} + +export default CloneInformation; diff --git a/scm-plugins/scm-git-plugin/src/main/js/index.js b/scm-plugins/scm-git-plugin/src/main/js/index.js new file mode 100644 index 0000000000..80f7385257 --- /dev/null +++ b/scm-plugins/scm-git-plugin/src/main/js/index.js @@ -0,0 +1,4 @@ +import { binder } from "@scm-manager/ui-extensions"; +import CloneInformation from './CloneInformation'; + +binder.bind("repos.repository-details.informations", CloneInformation); diff --git a/scm-plugins/scm-git-plugin/yarn.lock b/scm-plugins/scm-git-plugin/yarn.lock new file mode 100644 index 0000000000..d54d20aec3 --- /dev/null +++ b/scm-plugins/scm-git-plugin/yarn.lock @@ -0,0 +1,2188 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.1.tgz#5c2154415d6c09959a71845ef519d11157e95d10" + dependencies: + "@babel/highlight" "7.0.0-rc.1" + +"@babel/core@^7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-rc.1.tgz#53c84fd562e13325f123d5951184eec97b958204" + dependencies: + "@babel/code-frame" "7.0.0-rc.1" + "@babel/generator" "7.0.0-rc.1" + "@babel/helpers" "7.0.0-rc.1" + "@babel/parser" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + convert-source-map "^1.1.0" + debug "^3.1.0" + json5 "^0.5.0" + lodash "^4.17.10" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-rc.1.tgz#739c87d70b31aeed802bd6bc9fd51480065c45e8" + dependencies: + "@babel/types" "7.0.0-rc.1" + jsesc "^2.5.1" + lodash "^4.17.10" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-rc.1.tgz#4a9042a4a35f835d45c649f68f364cc7ed7dcb05" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-rc.1.tgz#df64de2375585e23a0aaa5708ea137fb21157374" + dependencies: + "@babel/helper-explode-assignable-expression" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-builder-react-jsx@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-rc.1.tgz#d6fdf43cf671e50b3667431007732136cb059a5f" + dependencies: + "@babel/types" "7.0.0-rc.1" + esutils "^2.0.0" + +"@babel/helper-call-delegate@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-rc.1.tgz#7516f71b13c81560bb91fb6b1fae3a1e0345d37d" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-define-map@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-rc.1.tgz#a7f920b33651bc540253313b336864754926e75b" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/helper-explode-assignable-expression@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-rc.1.tgz#114359f835a2d97161a895444e45b80317c6d765" + dependencies: + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-function-name@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-rc.1.tgz#20b2cc836a53c669f297c8d309fc553385c5cdde" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-get-function-arity@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-rc.1.tgz#60185957f72ed73766ce74c836ac574921743c46" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-hoist-variables@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-rc.1.tgz#6d0ff35d599fc7dd9dadaac444e99b7976238aec" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-member-expression-to-functions@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-rc.1.tgz#03a3b200fc00f8100dbcef9a351b69cfc0234b4f" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-module-imports@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-rc.1.tgz#c6269fa9dc451152895f185f0339d45f32c52e75" + dependencies: + "@babel/types" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/helper-module-transforms@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-rc.1.tgz#15aa371352a37d527b233bd22d25f709ae5feaba" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.1" + "@babel/helper-simple-access" "7.0.0-rc.1" + "@babel/helper-split-export-declaration" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/helper-optimise-call-expression@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-rc.1.tgz#482d8251870f61d88c9800fd3e58128e14ff8c98" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-plugin-utils@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.1.tgz#3e277eae59818e7d4caf4174f58a7a00d441336e" + +"@babel/helper-regex@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-rc.1.tgz#591bf828846d91fea8c93d1bf3030bd99dbd94ce" + dependencies: + lodash "^4.17.10" + +"@babel/helper-remap-async-to-generator@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-rc.1.tgz#cc32d270ca868245d0ac0a32d70dc83a6ce77db9" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.1" + "@babel/helper-wrap-function" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-replace-supers@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-rc.1.tgz#cab8d7a6c758e4561fb285f4725c850d68c1c3db" + dependencies: + "@babel/helper-member-expression-to-functions" "7.0.0-rc.1" + "@babel/helper-optimise-call-expression" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-simple-access@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-rc.1.tgz#ab3b179b5f009a1e17207b227c37410ad8d73949" + dependencies: + "@babel/template" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/helper-split-export-declaration@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-rc.1.tgz#b00323834343fd0210f1f46c7a53521ad53efa5e" + dependencies: + "@babel/types" "7.0.0-rc.1" + +"@babel/helper-wrap-function@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-rc.1.tgz#168454fe350e9ead8d91cdc581597ea506e951ff" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/helpers@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-rc.1.tgz#e59092cdf4b28026b3fc9d272e27e0ef152b4bee" + dependencies: + "@babel/template" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + +"@babel/highlight@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.1.tgz#e0ca4731fa4786f7b9500421d6ff5e5a7753e81e" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +"@babel/parser@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-rc.1.tgz#d009a9bba8175d7b971e30cd03535b278c44082d" + +"@babel/plugin-proposal-async-generator-functions@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-rc.1.tgz#70d4ca787485487370a82e380c39c8c233bca639" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.1" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.1" + +"@babel/plugin-proposal-object-rest-spread@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-rc.1.tgz#bc7ce898a48831fd733b251fd5ae46f986c905d8" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.1" + +"@babel/plugin-proposal-optional-catch-binding@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-rc.1.tgz#4ee80c9e4b6feb4c0c737bd996da3ee3fb9837d2" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.1" + +"@babel/plugin-proposal-unicode-property-regex@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-rc.1.tgz#02d0c33839eb52c93164907fb43b36c5a4afbc6c" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-regex" "7.0.0-rc.1" + regexpu-core "^4.2.0" + +"@babel/plugin-syntax-async-generators@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-rc.1.tgz#71d016f1a241d5e735b120f6cb94b8c57d53d255" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-syntax-flow@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-rc.1.tgz#1c0165eb2fa7c5769eaf27f2bfb46e7df5d3f034" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-syntax-jsx@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-rc.1.tgz#f7d19fa482f6bf42225c4b3d8f14e825e3fa325a" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-syntax-object-rest-spread@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-rc.1.tgz#42032fd87fb3b18f5686a0ab957d7f6f0db26618" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-syntax-optional-catch-binding@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-rc.1.tgz#c125fedf2fe59e4b510c202b1a912634d896fbb8" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-arrow-functions@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-rc.1.tgz#95b369e6ded8425a00464609d29e1fd017b331b0" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-async-to-generator@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-rc.1.tgz#9e22abec137ded152e83c3aebb4d4fb1ad7cba59" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.1" + +"@babel/plugin-transform-block-scoped-functions@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-rc.1.tgz#1b23adf0fb3a7395f6f0596a80039cfba6516750" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-block-scoping@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-rc.1.tgz#1a61565131ffd1022c04f9d3bcc4bdececf17859" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/plugin-transform-classes@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-rc.1.tgz#1d73cbceb4b4adca4cdad5f8f84a5c517fc0e06d" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.1" + "@babel/helper-define-map" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.1" + "@babel/helper-optimise-call-expression" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-replace-supers" "7.0.0-rc.1" + "@babel/helper-split-export-declaration" "7.0.0-rc.1" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-rc.1.tgz#767c6e54e6928de6f1f4de341cee1ec58edce1cf" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-destructuring@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-rc.1.tgz#d72932088542ae1c11188cb36d58cd18ddd55aa8" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-dotall-regex@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-rc.1.tgz#3209d77c7905883482ff9d527c2f96d0db83df0a" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-regex" "7.0.0-rc.1" + regexpu-core "^4.1.3" + +"@babel/plugin-transform-duplicate-keys@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-rc.1.tgz#59d0c76877720446f83f1fbbad7c33670c5b19b9" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-exponentiation-operator@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-rc.1.tgz#b8a7b7862a1e3b14510ad60e496ce5b54c2220d1" + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-flow-strip-types@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-rc.1.tgz#dd69161fd75bc0c68803c0c6051730d559cc2d85" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-flow" "7.0.0-rc.1" + +"@babel/plugin-transform-for-of@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-rc.1.tgz#1ad4f8986003f38db9251fb694c4f86657e9ec18" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-function-name@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-rc.1.tgz#e61149309db0d74df4ea3a566aac7b8794520e2d" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-literals@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-rc.1.tgz#314e118e99574ab5292aea92136c26e3dc8c4abb" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-modules-amd@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-rc.1.tgz#3f7d83c9ecf0bf5733748e119696cc50ae05987f" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-modules-commonjs@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-rc.1.tgz#475bd3e6c3b86bb38307f715e0cbdb6cb2f431c2" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-simple-access" "7.0.0-rc.1" + +"@babel/plugin-transform-modules-systemjs@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-rc.1.tgz#6aca100a57c49e2622f29f177a3e088cc50ecd2e" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-modules-umd@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-rc.1.tgz#1a584cb37d252de63c90030f76c3d7d3d0ea1241" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-new-target@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-rc.1.tgz#e5839320686b3c97b82bd24157282565503ae569" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-object-super@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-rc.1.tgz#03ffbcce806af7546fead73cecb43c0892b809f3" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-replace-supers" "7.0.0-rc.1" + +"@babel/plugin-transform-parameters@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-rc.1.tgz#c3f2f1fe179b58c968b3253cb412c8d83a3d5abc" + dependencies: + "@babel/helper-call-delegate" "7.0.0-rc.1" + "@babel/helper-get-function-arity" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-react-display-name@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-rc.1.tgz#ffc71260d7920e49be54b7ad301a8af40f780c15" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-react-jsx-self@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.0.0-rc.1.tgz#45557ef5662e4f59aedb0910b2bdfbe45769a4a7" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + +"@babel/plugin-transform-react-jsx-source@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-rc.1.tgz#48cc2e0a09f1db49c8d9a960ce2dc3a988ae7013" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + +"@babel/plugin-transform-react-jsx@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-rc.1.tgz#d2eb176ca2b7fa212b56f8fd4052a404fddc2a99" + dependencies: + "@babel/helper-builder-react-jsx" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + +"@babel/plugin-transform-regenerator@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-rc.1.tgz#8c5488ab75b7c9004d8bcf3f48a5814f946b5bb0" + dependencies: + regenerator-transform "^0.13.3" + +"@babel/plugin-transform-shorthand-properties@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-rc.1.tgz#21724d2199d988ffad690de8dbdce8b834a7f313" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-spread@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-rc.1.tgz#3ad6d96f42175ecf7c03d92313fa1f5c24a69637" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-sticky-regex@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-rc.1.tgz#88079689a70d80c8e9b159572979a9c2b80f7c38" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-regex" "7.0.0-rc.1" + +"@babel/plugin-transform-template-literals@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-rc.1.tgz#c22533ce23554a0d596b208158b34b9975feb9e6" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-typeof-symbol@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-rc.1.tgz#51c628dfcd2a5b6c1792b90e4f2f24b7eb993389" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + +"@babel/plugin-transform-unicode-regex@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-rc.1.tgz#b6c77bdb9a2823108210a174318ddd3c1ab6f3ce" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-regex" "7.0.0-rc.1" + regexpu-core "^4.1.3" + +"@babel/preset-env@^7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-rc.1.tgz#cb87a82fd3e44005219cd9f1cb3e9fdba907aae5" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-proposal-async-generator-functions" "7.0.0-rc.1" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-rc.1" + "@babel/plugin-proposal-optional-catch-binding" "7.0.0-rc.1" + "@babel/plugin-proposal-unicode-property-regex" "7.0.0-rc.1" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.1" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.1" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.1" + "@babel/plugin-transform-arrow-functions" "7.0.0-rc.1" + "@babel/plugin-transform-async-to-generator" "7.0.0-rc.1" + "@babel/plugin-transform-block-scoped-functions" "7.0.0-rc.1" + "@babel/plugin-transform-block-scoping" "7.0.0-rc.1" + "@babel/plugin-transform-classes" "7.0.0-rc.1" + "@babel/plugin-transform-computed-properties" "7.0.0-rc.1" + "@babel/plugin-transform-destructuring" "7.0.0-rc.1" + "@babel/plugin-transform-dotall-regex" "7.0.0-rc.1" + "@babel/plugin-transform-duplicate-keys" "7.0.0-rc.1" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-rc.1" + "@babel/plugin-transform-for-of" "7.0.0-rc.1" + "@babel/plugin-transform-function-name" "7.0.0-rc.1" + "@babel/plugin-transform-literals" "7.0.0-rc.1" + "@babel/plugin-transform-modules-amd" "7.0.0-rc.1" + "@babel/plugin-transform-modules-commonjs" "7.0.0-rc.1" + "@babel/plugin-transform-modules-systemjs" "7.0.0-rc.1" + "@babel/plugin-transform-modules-umd" "7.0.0-rc.1" + "@babel/plugin-transform-new-target" "7.0.0-rc.1" + "@babel/plugin-transform-object-super" "7.0.0-rc.1" + "@babel/plugin-transform-parameters" "7.0.0-rc.1" + "@babel/plugin-transform-regenerator" "7.0.0-rc.1" + "@babel/plugin-transform-shorthand-properties" "7.0.0-rc.1" + "@babel/plugin-transform-spread" "7.0.0-rc.1" + "@babel/plugin-transform-sticky-regex" "7.0.0-rc.1" + "@babel/plugin-transform-template-literals" "7.0.0-rc.1" + "@babel/plugin-transform-typeof-symbol" "7.0.0-rc.1" + "@babel/plugin-transform-unicode-regex" "7.0.0-rc.1" + browserslist "^3.0.0" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.3.0" + +"@babel/preset-flow@^7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0-rc.1.tgz#d7a9e4a39bdd5355dc708a70fbbf7ce49a4b429b" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-transform-flow-strip-types" "7.0.0-rc.1" + +"@babel/preset-react@^7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0-rc.1.tgz#8d51eb0861627fd913ac645dbdd5dc424fcc7445" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/plugin-transform-react-display-name" "7.0.0-rc.1" + "@babel/plugin-transform-react-jsx" "7.0.0-rc.1" + "@babel/plugin-transform-react-jsx-self" "7.0.0-rc.1" + "@babel/plugin-transform-react-jsx-source" "7.0.0-rc.1" + +"@babel/template@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-rc.1.tgz#5f9c0a481c9f22ecdb84697b3c3a34eadeeca23c" + dependencies: + "@babel/code-frame" "7.0.0-rc.1" + "@babel/parser" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + lodash "^4.17.10" + +"@babel/traverse@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-rc.1.tgz#867b4b45ada2d51ae2d0076f1c1d5880f8557158" + dependencies: + "@babel/code-frame" "7.0.0-rc.1" + "@babel/generator" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.1" + "@babel/helper-split-export-declaration" "7.0.0-rc.1" + "@babel/parser" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.1" + debug "^3.1.0" + globals "^11.1.0" + lodash "^4.17.10" + +"@babel/types@7.0.0-rc.1": + version "7.0.0-rc.1" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-rc.1.tgz#6abf6d14ddd9fc022617e5b62e6b32f4fa6526ad" + dependencies: + esutils "^2.0.2" + lodash "^4.17.10" + to-fast-properties "^2.0.0" + +"@scm-manager/ui-bundler@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.1.tgz#5a8ed6236457bfe3b14ec04324555e0973c0a358" + dependencies: + "@babel/core" "^7.0.0-rc.1" + "@babel/preset-env" "^7.0.0-rc.1" + "@babel/preset-flow" "^7.0.0-rc.1" + "@babel/preset-react" "^7.0.0-rc.1" + babelify "^9.0.0" + browserify "^16.2.2" + colors "^1.3.1" + commander "^2.17.1" + node-mkdirs "^0.0.1" + pom-parser "^1.1.1" + +"@scm-manager/ui-extensions@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.3.tgz#0dccc3132105ecff579fa389ea18fc2b40c19c96" + dependencies: + react "^16.4.2" + react-dom "^16.4.2" + +JSONStream@^1.0.3: + version "1.3.4" + resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.4.tgz#615bb2adb0cd34c8f4c447b5f6512fa1d8f16a2e" + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + +acorn-dynamic-import@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" + dependencies: + acorn "^5.0.0" + +acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.5.2.tgz#2ca723df19d997b05824b69f6c7fb091fc42c322" + dependencies: + acorn "^5.7.1" + acorn-dynamic-import "^3.0.0" + xtend "^4.0.1" + +acorn@^5.0.0, acorn@^5.7.1: + version "5.7.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + dependencies: + color-convert "^1.9.0" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + dependencies: + sprintf-js "~1.0.2" + +array-filter@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" + +array-map@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" + +array-reduce@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + dependencies: + util "0.10.3" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + +babelify@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/babelify/-/babelify-9.0.0.tgz#6b2e39ffeeda3765aee60eeb5b581fd947cc64ec" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + +base64-js@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + dependencies: + tweetnacl "^0.14.3" + +bluebird@^3.3.3: + version "3.5.1" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + +browser-pack@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.1.0.tgz#c34ba10d0b9ce162b5af227c7131c92c2ecd5774" + dependencies: + JSONStream "^1.0.3" + combine-source-map "~0.8.0" + defined "^1.0.0" + safe-buffer "^5.1.1" + through2 "^2.0.0" + umd "^3.0.0" + +browser-resolve@^1.11.0, browser-resolve@^1.7.0: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + dependencies: + resolve "1.1.7" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + dependencies: + pako "~1.0.5" + +browserify@^16.2.2: + version "16.2.2" + resolved "https://registry.yarnpkg.com/browserify/-/browserify-16.2.2.tgz#4b1f66ba0e54fa39dbc5aa4be9629142143d91b0" + dependencies: + JSONStream "^1.0.3" + assert "^1.4.0" + browser-pack "^6.0.1" + browser-resolve "^1.11.0" + browserify-zlib "~0.2.0" + buffer "^5.0.2" + cached-path-relative "^1.0.0" + concat-stream "^1.6.0" + console-browserify "^1.1.0" + constants-browserify "~1.0.0" + crypto-browserify "^3.0.0" + defined "^1.0.0" + deps-sort "^2.0.0" + domain-browser "^1.2.0" + duplexer2 "~0.1.2" + events "^2.0.0" + glob "^7.1.0" + has "^1.0.0" + htmlescape "^1.1.0" + https-browserify "^1.0.0" + inherits "~2.0.1" + insert-module-globals "^7.0.0" + labeled-stream-splicer "^2.0.0" + mkdirp "^0.5.0" + module-deps "^6.0.0" + os-browserify "~0.3.0" + parents "^1.0.1" + path-browserify "~0.0.0" + process "~0.11.0" + punycode "^1.3.2" + querystring-es3 "~0.2.0" + read-only-stream "^2.0.0" + readable-stream "^2.0.2" + resolve "^1.1.4" + shasum "^1.0.0" + shell-quote "^1.6.1" + stream-browserify "^2.0.0" + stream-http "^2.0.0" + string_decoder "^1.1.1" + subarg "^1.0.0" + syntax-error "^1.1.1" + through2 "^2.0.0" + timers-browserify "^1.0.1" + tty-browserify "0.0.1" + url "~0.11.0" + util "~0.10.1" + vm-browserify "^1.0.0" + xtend "^4.0.0" + +browserslist@^3.0.0: + version "3.2.8" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" + dependencies: + caniuse-lite "^1.0.30000844" + electron-to-chromium "^1.3.47" + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + +buffer@^5.0.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.0.tgz#53cf98241100099e9eeae20ee6d51d21b16e541e" + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + +cached-path-relative@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7" + +caniuse-lite@^1.0.30000844: + version "1.0.30000878" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz#c644c39588dd42d3498e952234c372e5a40a4123" + +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + +chalk@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + 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" + +chalk@^2.0.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +color-convert@^1.9.0: + version "1.9.2" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" + dependencies: + color-name "1.1.1" + +color-name@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689" + +colors@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.1.tgz#4accdb89cf2cabc7f982771925e9468784f32f3d" + +combine-source-map@^0.8.0, combine-source-map@~0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b" + dependencies: + convert-source-map "~1.1.0" + inline-source-map "~0.6.0" + lodash.memoize "~3.0.3" + source-map "~0.5.3" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" + dependencies: + delayed-stream "~1.0.0" + +commander@^2.17.1, commander@^2.9.0: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + dependencies: + date-now "^0.1.4" + +constants-browserify@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + +convert-source-map@^1.1.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" + +convert-source-map@~1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +coveralls@^2.11.3: + version "2.13.3" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7" + dependencies: + js-yaml "3.6.1" + lcov-parse "0.0.10" + log-driver "1.2.5" + minimist "1.2.0" + request "2.79.0" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-browserify@^3.0.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + +debug@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + dependencies: + ms "2.0.0" + +defined@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +deps-sort@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5" + dependencies: + JSONStream "^1.0.3" + shasum "^1.0.0" + subarg "^1.0.0" + through2 "^2.0.0" + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +detective@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/detective/-/detective-5.1.0.tgz#7a20d89236d7b331ccea65832e7123b5551bb7cb" + dependencies: + acorn-node "^1.3.0" + defined "^1.0.0" + minimist "^1.1.1" + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +domain-browser@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + +duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + dependencies: + readable-stream "^2.0.2" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +electron-to-chromium@^1.3.47: + version "1.3.59" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.59.tgz#6377db04d8d3991d6286c72ed5c3fde6f4aaf112" + +elliptic@^6.0.0: + version "6.4.1" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.1.tgz#c2d0b7776911b86722c632c3c06c60f2f819939a" + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + dependencies: + iconv-lite "~0.4.13" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +esprima@^2.6.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esutils@^2.0.0, esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +events@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/events/-/events-2.1.0.tgz#2a9a1e18e6106e0e812aa9ebd4a819b3c29c0ba5" + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +extend@~3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + +fbjs@^0.8.16: + version "0.8.17" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-assigned-identifiers@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + +glob@^7.1.0: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + 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" + +globals@^11.1.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" + +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + dependencies: + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + +has@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.5" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.5.tgz#e38ab4b85dfb1e0c40fe9265c0e9b54854c23812" + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +htmlescape@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + +iconv-lite@~0.4.13: + version "0.4.23" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.1.12" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + +inline-source-map@~0.6.0: + version "0.6.2" + resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5" + dependencies: + source-map "~0.5.3" + +insert-module-globals@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.0.tgz#ec87e5b42728479e327bd5c5c71611ddfb4752ba" + dependencies: + JSONStream "^1.0.3" + acorn-node "^1.5.2" + combine-source-map "^0.8.0" + concat-stream "^1.6.1" + is-buffer "^1.1.0" + path-is-absolute "^1.0.1" + process "~0.11.0" + through2 "^2.0.0" + undeclared-identifiers "^1.1.2" + xtend "^4.0.0" + +invariant@^2.2.2: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + dependencies: + loose-envify "^1.0.0" + +is-buffer@^1.1.0: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + +is-my-ip-valid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" + +is-my-json-valid@^2.12.4: + version "2.19.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz#8fd6e40363cd06b963fa877d444bfb5eddc62175" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + is-my-ip-valid "^1.0.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-stream@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +isarray@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +js-levenshtein@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.3.tgz#3ef627df48ec8cf24bacf05c0f184ff30ef413c5" + +js-tokens@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + +"js-tokens@^3.0.0 || ^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + +js-yaml@3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsesc@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz#611c23e814db375527df851193db59dd2af27f45" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json5@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +labeled-stream-splicer@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926" + dependencies: + inherits "^2.0.1" + isarray "^2.0.4" + stream-splicer "^2.0.0" + +lcov-parse@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" + +lodash.memoize@~3.0.3: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f" + +lodash@^4.17.10: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + +log-driver@1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +md5.js@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@~1.35.0: + version "1.35.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" + +mime-types@^2.1.12, mime-types@~2.1.7: + version "2.1.19" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" + dependencies: + mime-db "~1.35.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +mkdirp@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +module-deps@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.1.0.tgz#d1e1efc481c6886269f7112c52c3236188e16479" + dependencies: + JSONStream "^1.0.3" + browser-resolve "^1.7.0" + cached-path-relative "^1.0.0" + concat-stream "~1.6.0" + defined "^1.0.0" + detective "^5.0.2" + duplexer2 "^0.1.2" + inherits "^2.0.1" + parents "^1.0.0" + readable-stream "^2.0.2" + resolve "^1.4.0" + stream-combiner2 "^1.1.1" + subarg "^1.0.0" + through2 "^2.0.0" + xtend "^4.0.0" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-mkdirs@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/node-mkdirs/-/node-mkdirs-0.0.1.tgz#b20f50ba796a4f543c04a69942d06d06f8aaf552" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +os-browserify@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + +pako@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" + +parents@^1.0.0, parents@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751" + dependencies: + path-platform "~0.11.15" + +parse-asn1@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.1.tgz#f6bf293818332bd0dab54efb16087724745e6ca8" + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +path-browserify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-parse@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + +path-platform@~0.11.15: + version "0.11.15" + resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" + +pbkdf2@^3.0.3: + version "3.0.16" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c" + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pom-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pom-parser/-/pom-parser-1.1.1.tgz#6fab4d2498e87c862072ab205aa88b1209e5f966" + dependencies: + bluebird "^3.3.3" + coveralls "^2.11.3" + traverse "^0.6.6" + xml2js "^0.4.9" + +private@^0.1.6: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + +process@~0.11.0: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + dependencies: + asap "~2.0.3" + +prop-types@^15.6.0: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + +public-encrypt@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + +punycode@^1.3.2, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@~6.3.0: + version "6.3.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" + +querystring-es3@~0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +react-dom@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +react@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +read-only-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0" + dependencies: + readable-stream "^2.0.2" + +readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + dependencies: + 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" + +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + dependencies: + regenerate "^1.4.0" + +regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + +regenerator-transform@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" + dependencies: + private "^0.1.6" + +regexpu-core@^4.1.3, regexpu-core@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.4.0" + regjsparser "^0.3.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" + +regjsgen@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.4.0.tgz#c1eb4c89a209263f8717c782591523913ede2561" + +regjsparser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.3.0.tgz#3c326da7fcfd69fa0d332575a41c8c0cdf588c96" + dependencies: + jsesc "~0.5.0" + +request@2.79.0: + version "2.79.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + qs "~6.3.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + uuid "^3.0.0" + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + +resolve@^1.1.4, resolve@^1.3.2, resolve@^1.4.0: + version "1.8.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" + dependencies: + path-parse "^1.0.5" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + +sax@>=0.6.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + +semver@^5.3.0, semver@^5.4.1: + version "5.5.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shasum@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f" + dependencies: + json-stable-stringify "~0.0.0" + sha.js "~2.4.4" + +shell-quote@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" + dependencies: + array-filter "~0.0.0" + array-map "~0.0.0" + array-reduce "~0.0.0" + jsonify "~0.0.0" + +simple-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map@^0.5.0, source-map@~0.5.3: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + safer-buffer "^2.0.2" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stream-browserify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-combiner2@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe" + dependencies: + duplexer2 "~0.1.0" + readable-stream "^2.0.2" + +stream-http@^2.0.0: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-splicer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.0.tgz#1b63be438a133e4b671cc1935197600175910d83" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.2" + +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + dependencies: + safe-buffer "~5.1.0" + +stringstream@~0.0.4: + version "0.0.6" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" + +strip-ansi@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +subarg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" + dependencies: + minimist "^1.1.0" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + dependencies: + has-flag "^3.0.0" + +syntax-error@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" + dependencies: + acorn-node "^1.2.0" + +through2@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + +"through@>=2.2.7 <3": + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timers-browserify@^1.0.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d" + dependencies: + process "~0.11.0" + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + +tough-cookie@~2.3.0: + version "2.3.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" + dependencies: + punycode "^1.4.1" + +traverse@^0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tty-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811" + +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +ua-parser-js@^0.7.18: + version "0.7.18" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" + +umd@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf" + +undeclared-identifiers@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz#7d850a98887cff4bd0bf64999c014d08ed6d1acc" + dependencies: + acorn-node "^1.3.0" + get-assigned-identifiers "^1.2.0" + simple-concat "^1.0.0" + xtend "^4.0.1" + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + +url@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + dependencies: + inherits "2.0.1" + +util@~0.10.1: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + dependencies: + inherits "2.0.3" + +uuid@^3.0.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vm-browserify@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" + +whatwg-fetch@>=0.10.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +xml2js@^0.4.9: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" + +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + +xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" From be21c35bf807374e2b2db4449541fc194579c656 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Tue, 21 Aug 2018 15:23:54 +0200 Subject: [PATCH 061/143] implemented WebResourceServlet, which loads resources from the UberWebResourceLoader --- .../sonia/scm/resources/ResourceManager.java | 4 + .../java/sonia/scm/WebResourceServlet.java | 77 ++++++++++++ .../plugin/DefaultUberWebResourceLoader.java | 3 +- .../resources/AbstractResourceManager.java | 10 +- .../sonia/scm/WebResourceServletTest.java | 115 ++++++++++++++++++ 5 files changed, 206 insertions(+), 3 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java create mode 100644 scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java b/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java index c287b8a7eb..8fa9187ad7 100644 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java +++ b/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java @@ -40,9 +40,13 @@ import java.util.List; * This class collects and manages {@link Resource} * which are used by the web interface. * + * TODO remove before 2.0.0 + * * @author Sebastian Sdorra * @since 1.12 + * @deprecated unnecessary for new ui */ +@Deprecated public interface ResourceManager { diff --git a/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java new file mode 100644 index 0000000000..a2f96827e6 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java @@ -0,0 +1,77 @@ +package sonia.scm; + +import com.google.common.annotations.VisibleForTesting; +import com.google.common.io.Resources; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import sonia.scm.filter.WebElement; +import sonia.scm.plugin.PluginLoader; +import sonia.scm.plugin.UberWebResourceLoader; +import sonia.scm.util.HttpUtil; + +import javax.inject.Inject; +import javax.inject.Singleton; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.OutputStream; +import java.net.URL; + +/** + * WebResourceServlet serves resources from the {@link UberWebResourceLoader}. + * + * @since 2.0.0 + */ +@Singleton +@WebElement(value = WebResourceServlet.PATTERN, regex = true) +public class WebResourceServlet extends HttpServlet { + + /** + * exclude api requests and the old frontend servlets. + * + * TODO remove old frontend servlets + */ + @VisibleForTesting + static final String PATTERN = "/(?!api/|index.html|error.html|plugins/resources).+"; + + private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class); + + private final UberWebResourceLoader webResourceLoader; + + @Inject + public WebResourceServlet(PluginLoader pluginLoader) { + this.webResourceLoader = pluginLoader.getUberWebResourceLoader(); + } + + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) { + String uri = normalizeUri(request); + + LOG.trace("try to load {}", uri); + URL url = webResourceLoader.getResource(uri); + if (url != null) { + serveResource(response, url); + } else { + handleResourceNotFound(response); + } + } + + private String normalizeUri(HttpServletRequest request) { + return HttpUtil.getStrippedURI(request); + } + + private void serveResource(HttpServletResponse response, URL url) { + // TODO lastModifiedDate, if-... ??? + try (OutputStream output = response.getOutputStream()) { + Resources.copy(url, output); + } catch (IOException ex) { + LOG.warn("failed to serve resource: {}", url); + response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + } + } + + private void handleResourceNotFound(HttpServletResponse response) { + response.setStatus(HttpServletResponse.SC_NOT_FOUND); + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java b/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java index 3bc39edb98..c8157925ef 100644 --- a/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java +++ b/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java @@ -42,6 +42,7 @@ import com.google.common.collect.ImmutableList.Builder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sonia.scm.util.HttpUtil; //~--- JDK imports ------------------------------------------------------------ @@ -185,7 +186,7 @@ public class DefaultUberWebResourceLoader implements UberWebResourceLoader */ private URL find(String path) { - URL resource = null; + URL resource; try { diff --git a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java b/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java index 95d7b39b69..4772acdf0c 100644 --- a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java +++ b/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java @@ -49,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; +import java.util.stream.Collectors; import javax.servlet.ServletContext; import sonia.scm.plugin.PluginWrapper; @@ -146,7 +147,7 @@ public abstract class AbstractResourceManager implements ResourceManager processPlugin(resources, plugin.getPlugin()); } } - + // fix order of script resources, see https://goo.gl/ok03l4 Collections.sort(resources); @@ -172,7 +173,12 @@ public abstract class AbstractResourceManager implements ResourceManager if (scriptResources != null) { - resources.addAll(scriptResources); + // filter new resources and keep only the old ones, which are starting with a / + List<String> filtered = scriptResources.stream() + .filter((res) -> res.startsWith("/")) + .collect(Collectors.toList()); + + resources.addAll(filtered); } } } diff --git a/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java b/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java new file mode 100644 index 0000000000..af17fda77d --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java @@ -0,0 +1,115 @@ +package sonia.scm; + +import com.google.common.base.Charsets; +import com.google.common.io.Files; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TemporaryFolder; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.plugin.PluginLoader; +import sonia.scm.plugin.UberWebResourceLoader; + +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; + +import static org.junit.Assert.*; +import static org.mockito.Mockito.*; + +@RunWith(MockitoJUnitRunner.class) +public class WebResourceServletTest { + + @Rule + public TemporaryFolder temporaryFolder = new TemporaryFolder(); + + @Mock + private HttpServletRequest request; + + @Mock + private HttpServletResponse response; + + @Mock + private PluginLoader pluginLoader; + + @Mock + private UberWebResourceLoader webResourceLoader; + + private WebResourceServlet servlet; + + @Before + public void setUpMocks() { + when(pluginLoader.getUberWebResourceLoader()).thenReturn(webResourceLoader); + when(request.getContextPath()).thenReturn("/scm"); + servlet = new WebResourceServlet(pluginLoader); + } + + @Test + public void testPattern() { + assertTrue("/some/resource".matches(WebResourceServlet.PATTERN)); + assertTrue("/favicon.ico".matches(WebResourceServlet.PATTERN)); + assertTrue("/other.html".matches(WebResourceServlet.PATTERN)); + assertFalse("/api/v2/repositories".matches(WebResourceServlet.PATTERN)); + + // exclude old style ui template servlets + assertFalse("/".matches(WebResourceServlet.PATTERN)); + assertFalse("/index.html".matches(WebResourceServlet.PATTERN)); + assertFalse("/error.html".matches(WebResourceServlet.PATTERN)); + assertFalse("/plugins/resources/js/sonia/scm/hg.config-wizard.js".matches(WebResourceServlet.PATTERN)); + } + + @Test + public void testDoGetWithNonExistingResource() { + when(request.getRequestURI()).thenReturn("/scm/awesome.jpg"); + servlet.doGet(request, response); + verify(response).setStatus(HttpServletResponse.SC_NOT_FOUND); + } + + + @Test + public void testDoGet() throws IOException { + when(request.getRequestURI()).thenReturn("/scm/README.txt"); + TestingOutputServletOutputStream output = new TestingOutputServletOutputStream(); + when(response.getOutputStream()).thenReturn(output); + + File file = temporaryFolder.newFile(); + Files.write("hello".getBytes(Charsets.UTF_8), file); + + when(webResourceLoader.getResource("/README.txt")).thenReturn(file.toURI().toURL()); + servlet.doGet(request, response); + + assertEquals("hello", output.buffer.toString()); + } + + @Test + public void testDoGetWithError() throws IOException { + when(request.getRequestURI()).thenReturn("/scm/README.txt"); + ServletOutputStream output = mock(ServletOutputStream.class); + when(response.getOutputStream()).thenReturn(output); + + File file = temporaryFolder.newFile(); + assertTrue(file.delete()); + + when(webResourceLoader.getResource("/README.txt")).thenReturn(file.toURI().toURL()); + servlet.doGet(request, response); + + verify(output, never()).write(anyInt()); + verify(response).setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + } + + private static class TestingOutputServletOutputStream extends ServletOutputStream { + + private ByteArrayOutputStream buffer = new ByteArrayOutputStream(); + + @Override + public void write(int b) { + buffer.write(b); + } + } + +} From e17f3bfd79e6a606c6f5471e7a973c67b0975bb5 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Tue, 21 Aug 2018 15:29:48 +0200 Subject: [PATCH 062/143] update ui-bundler to version 0.0.2 --- scm-plugins/scm-git-plugin/package.json | 2 +- scm-plugins/scm-git-plugin/yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scm-plugins/scm-git-plugin/package.json b/scm-plugins/scm-git-plugin/package.json index 234766ab8d..803733e650 100644 --- a/scm-plugins/scm-git-plugin/package.json +++ b/scm-plugins/scm-git-plugin/package.json @@ -8,6 +8,6 @@ "@scm-manager/ui-extensions": "^0.0.3" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.1" + "@scm-manager/ui-bundler": "^0.0.2" } } diff --git a/scm-plugins/scm-git-plugin/yarn.lock b/scm-plugins/scm-git-plugin/yarn.lock index d54d20aec3..d11e8ff65a 100644 --- a/scm-plugins/scm-git-plugin/yarn.lock +++ b/scm-plugins/scm-git-plugin/yarn.lock @@ -578,9 +578,9 @@ lodash "^4.17.10" to-fast-properties "^2.0.0" -"@scm-manager/ui-bundler@^0.0.1": - version "0.0.1" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.1.tgz#5a8ed6236457bfe3b14ec04324555e0973c0a358" +"@scm-manager/ui-bundler@^0.0.2": + version "0.0.2" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.2.tgz#1e1dc698aacb5145b1d2dd30a250e01f7ed504ca" dependencies: "@babel/core" "^7.0.0-rc.1" "@babel/preset-env" "^7.0.0-rc.1" From 15d5db945848094e79d90a68523b0b9280f4bbc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Tue, 21 Aug 2018 16:30:21 +0200 Subject: [PATCH 063/143] Replace hibernate vaidator with javaee api Hibernate validator is bundled with resteasy validation package, but using another version what leads to problems. --- scm-webapp/pom.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index 602be8185e..66bb574e38 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -100,9 +100,10 @@ <version>${jackson.version}</version> </dependency> <dependency> - <groupId>org.hibernate.validator</groupId> - <artifactId>hibernate-validator</artifactId> - <version>6.0.12.Final</version> + <groupId>javax</groupId> + <artifactId>javaee-api</artifactId> + <version>7.0</version> + <scope>test</scope> </dependency> <!-- rest api --> From d82a5f446dcb819caef39215a8f6d12d2dd2f371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Tue, 21 Aug 2018 16:37:34 +0200 Subject: [PATCH 064/143] Enable legman, again --- pom.xml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index 5c6abbbf87..75e762d3c1 100644 --- a/pom.xml +++ b/pom.xml @@ -402,24 +402,24 @@ </executions> </plugin> - <!--<plugin>--> - <!--<groupId>com.github.legman</groupId>--> - <!--<artifactId>legman-maven-plugin</artifactId>--> - <!--<version>${legman.version}</version>--> - <!--<configuration>--> - <!--<fail>true</fail>--> - <!--</configuration>--> - <!--<executions>--> - <!--<execution>--> - <!--<phase>process-classes</phase>--> - <!--<goals>--> - <!--<!– Prevent usage of guava annotations that would be silently ignored -> hard to find.--> - <!--We use legman annotations instead, that provide additional features such as weak references. –>--> - <!--<goal>guava-migration-check</goal>--> - <!--</goals>--> - <!--</execution>--> - <!--</executions>--> - <!--</plugin>--> + <plugin> + <groupId>com.github.legman</groupId> + <artifactId>legman-maven-plugin</artifactId> + <version>${legman.version}</version> + <configuration> + <fail>true</fail> + </configuration> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <!-- Prevent usage of guava annotations that would be silently ignored -> hard to find. + We use legman annotations instead, that provide additional features such as weak references. --> + <goal>guava-migration-check</goal> + </goals> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> From 2761edb9f6d568cf60ab6a0b106c1f4da6125b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Wed, 22 Aug 2018 09:35:13 +0200 Subject: [PATCH 065/143] Migrate not found errors to NotFoundException --- .../scm/api/v2/resources/GroupResource.java | 5 +++-- .../v2/resources/IdResourceManagerAdapter.java | 5 +++-- .../sonia/scm/api/v2/resources/MeResource.java | 3 ++- .../api/v2/resources/RepositoryResource.java | 5 +++-- .../resources/SingleResourceManagerAdapter.java | 16 +++++++--------- .../scm/api/v2/resources/UserResource.java | 5 +++-- .../scm/api/v2/resources/DispatcherMock.java | 17 +++++++++++++++++ .../api/v2/resources/GroupRootResourceTest.java | 6 +++--- .../resources/PermissionRootResourceTest.java | 12 +++--------- .../resources/RepositoryRootResourceTest.java | 6 +++--- .../api/v2/resources/UserRootResourceTest.java | 6 +++--- 11 files changed, 50 insertions(+), 36 deletions(-) create mode 100644 scm-webapp/src/test/java/sonia/scm/api/v2/resources/DispatcherMock.java diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java index c0bb7e5bc5..e1e8e0ccdb 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java @@ -3,6 +3,7 @@ package sonia.scm.api.v2.resources; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.NotFoundException; import sonia.scm.group.Group; import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; @@ -50,7 +51,7 @@ public class GroupResource { @ResponseCode(code = 404, condition = "not found, no group with the specified id/name available"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response get(@PathParam("id") String id) { + public Response get(@PathParam("id") String id) throws NotFoundException { return adapter.get(id, groupToGroupDtoMapper::map); } @@ -95,7 +96,7 @@ public class GroupResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("id") String name, GroupDto groupDto) { + public Response update(@PathParam("id") String name, GroupDto groupDto) throws NotFoundException { return adapter.update(name, existing -> dtoToGroupMapper.map(groupDto)); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java index e1f9be1ead..a089f5ba49 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/IdResourceManagerAdapter.java @@ -4,6 +4,7 @@ import de.otto.edison.hal.HalRepresentation; import sonia.scm.AlreadyExistsException; import sonia.scm.Manager; import sonia.scm.ModelObject; +import sonia.scm.NotFoundException; import sonia.scm.PageResult; import javax.ws.rs.core.Response; @@ -31,11 +32,11 @@ class IdResourceManagerAdapter<MODEL_OBJECT extends ModelObject, collectionAdapter = new CollectionResourceManagerAdapter<>(manager, type); } - Response get(String id, Function<MODEL_OBJECT, DTO> mapToDto) { + Response get(String id, Function<MODEL_OBJECT, DTO> mapToDto) throws NotFoundException { return singleAdapter.get(loadBy(id), mapToDto); } - public Response update(String id, Function<MODEL_OBJECT, MODEL_OBJECT> applyChanges) { + public Response update(String id, Function<MODEL_OBJECT, MODEL_OBJECT> applyChanges) throws NotFoundException { return singleAdapter.update( loadBy(id), applyChanges, diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java index 9421c3ca14..f016f4604c 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MeResource.java @@ -4,6 +4,7 @@ import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; import org.apache.shiro.SecurityUtils; +import sonia.scm.NotFoundException; import sonia.scm.user.User; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; @@ -46,7 +47,7 @@ public class MeResource { @ResponseCode(code = 401, condition = "not authenticated / invalid credentials"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response get(@Context Request request, @Context UriInfo uriInfo) { + public Response get(@Context Request request, @Context UriInfo uriInfo) throws NotFoundException { String id = (String) SecurityUtils.getSubject().getPrincipals().getPrimaryPrincipal(); return adapter.get(id, userToDtoMapper::map); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java index 703e6c4403..2d4ee9f600 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java @@ -3,6 +3,7 @@ package sonia.scm.api.v2.resources; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.NotFoundException; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.Repository; import sonia.scm.repository.RepositoryIsNotArchivedException; @@ -77,7 +78,7 @@ public class RepositoryResource { @ResponseCode(code = 404, condition = "not found, no repository with the specified name available in the namespace"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name) { + public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name) throws NotFoundException { return adapter.get(loadBy(namespace, name), repositoryToDtoMapper::map); } @@ -124,7 +125,7 @@ public class RepositoryResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("namespace") String namespace, @PathParam("name") String name, RepositoryDto repositoryDto) { + public Response update(@PathParam("namespace") String namespace, @PathParam("name") String name, RepositoryDto repositoryDto) throws NotFoundException { return adapter.update( loadBy(namespace, name), existing -> dtoToRepositoryMapper.map(repositoryDto, existing.getId()), diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java index bc84ca7c33..2fa8466ab6 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SingleResourceManagerAdapter.java @@ -3,6 +3,7 @@ package sonia.scm.api.v2.resources; import de.otto.edison.hal.HalRepresentation; import sonia.scm.Manager; import sonia.scm.ModelObject; +import sonia.scm.NotFoundException; import sonia.scm.api.rest.resources.AbstractManagerResource; import javax.ws.rs.core.GenericEntity; @@ -44,28 +45,25 @@ class SingleResourceManagerAdapter<MODEL_OBJECT extends ModelObject, * Reads the model object for the given id, transforms it to a dto and returns a corresponding http response. * This handles all corner cases, eg. no matching object for the id or missing privileges. */ - Response get(Supplier<Optional<MODEL_OBJECT>> reader, Function<MODEL_OBJECT, DTO> mapToDto) { + Response get(Supplier<Optional<MODEL_OBJECT>> reader, Function<MODEL_OBJECT, DTO> mapToDto) throws NotFoundException { return reader.get() .map(mapToDto) .map(Response::ok) .map(Response.ResponseBuilder::build) - .orElse(Response.status(Response.Status.NOT_FOUND).build()); + .orElseThrow(NotFoundException::new); } /** * Update the model object for the given id according to the given function and returns a corresponding http response. * This handles all corner cases, eg. no matching object for the id or missing privileges. */ - public Response update(Supplier<Optional<MODEL_OBJECT>> reader, Function<MODEL_OBJECT, MODEL_OBJECT> applyChanges, Predicate<MODEL_OBJECT> hasSameKey) { - Optional<MODEL_OBJECT> existingModelObject = reader.get(); - if (!existingModelObject.isPresent()) { - return Response.status(Response.Status.NOT_FOUND).build(); - } - MODEL_OBJECT changedModelObject = applyChanges.apply(existingModelObject.get()); + public Response update(Supplier<Optional<MODEL_OBJECT>> reader, Function<MODEL_OBJECT, MODEL_OBJECT> applyChanges, Predicate<MODEL_OBJECT> hasSameKey) throws NotFoundException { + MODEL_OBJECT existingModelObject = reader.get().orElseThrow(NotFoundException::new); + MODEL_OBJECT changedModelObject = applyChanges.apply(existingModelObject); if (!hasSameKey.test(changedModelObject)) { return Response.status(BAD_REQUEST).entity("illegal change of id").build(); } - return update(getId(existingModelObject.get()), changedModelObject); + return update(getId(existingModelObject), changedModelObject); } public Response delete(Supplier<Optional<MODEL_OBJECT>> reader) { diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java index a4e07382dd..687c94e4ff 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java @@ -3,6 +3,7 @@ package sonia.scm.api.v2.resources; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; +import sonia.scm.NotFoundException; import sonia.scm.user.User; import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; @@ -50,7 +51,7 @@ public class UserResource { @ResponseCode(code = 404, condition = "not found, no user with the specified id/name available"), @ResponseCode(code = 500, condition = "internal server error") }) - public Response get(@PathParam("id") String id) { + public Response get(@PathParam("id") String id) throws NotFoundException { return adapter.get(id, userToDtoMapper::map); } @@ -95,7 +96,7 @@ public class UserResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("id") String name, UserDto userDto) { + public Response update(@PathParam("id") String name, UserDto userDto) throws NotFoundException { return adapter.update(name, existing -> dtoToUserMapper.map(userDto, existing.getPassword())); } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/DispatcherMock.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/DispatcherMock.java new file mode 100644 index 0000000000..4ff0d3d475 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/DispatcherMock.java @@ -0,0 +1,17 @@ +package sonia.scm.api.v2.resources; + +import org.jboss.resteasy.core.Dispatcher; +import org.jboss.resteasy.mock.MockDispatcherFactory; +import sonia.scm.api.rest.AlreadyExistsExceptionMapper; +import sonia.scm.api.rest.AuthorizationExceptionMapper; + +public class DispatcherMock { + public static Dispatcher createDispatcher(Object resource) { + Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + dispatcher.getRegistry().addSingletonResource(resource); + dispatcher.getProviderFactory().registerProvider(NotFoundExceptionMapper.class); + dispatcher.getProviderFactory().registerProvider(AlreadyExistsExceptionMapper.class); + dispatcher.getProviderFactory().registerProvider(AuthorizationExceptionMapper.class); + return dispatcher; + } +} diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java index 6a463b3baa..b689d58058 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/GroupRootResourceTest.java @@ -4,7 +4,6 @@ import com.github.sdorra.shiro.ShiroRule; import com.github.sdorra.shiro.SubjectAware; import com.google.common.io.Resources; import org.jboss.resteasy.core.Dispatcher; -import org.jboss.resteasy.mock.MockDispatcherFactory; import org.jboss.resteasy.mock.MockHttpRequest; import org.jboss.resteasy.mock.MockHttpResponse; import org.junit.Before; @@ -34,6 +33,7 @@ import static org.mockito.Matchers.eq; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; +import static sonia.scm.api.v2.resources.DispatcherMock.createDispatcher; @SubjectAware( username = "trillian", @@ -45,7 +45,7 @@ public class GroupRootResourceTest { @Rule public ShiroRule shiro = new ShiroRule(); - private Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + private Dispatcher dispatcher; private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(URI.create("/")); @@ -73,7 +73,7 @@ public class GroupRootResourceTest { GroupResource groupResource = new GroupResource(groupManager, groupToDtoMapper, dtoToGroupMapper); GroupRootResource groupRootResource = new GroupRootResource(MockProvider.of(groupCollectionResource), MockProvider.of(groupResource)); - dispatcher.getRegistry().addSingletonResource(groupRootResource); + dispatcher = createDispatcher(groupRootResource); } @Test diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/PermissionRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/PermissionRootResourceTest.java index 33dda0b556..b72773e01f 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/PermissionRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/PermissionRootResourceTest.java @@ -8,7 +8,6 @@ import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.AuthorizationException; import org.assertj.core.util.Lists; import org.jboss.resteasy.core.Dispatcher; -import org.jboss.resteasy.mock.MockDispatcherFactory; import org.jboss.resteasy.mock.MockHttpRequest; import org.jboss.resteasy.mock.MockHttpResponse; import org.jboss.resteasy.spi.HttpRequest; @@ -20,8 +19,6 @@ import org.junit.jupiter.api.DynamicTest; import org.junit.jupiter.api.TestFactory; import org.mockito.InjectMocks; import org.mockito.Mock; -import sonia.scm.api.rest.AlreadyExistsExceptionMapper; -import sonia.scm.api.rest.AuthorizationExceptionMapper; import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.Permission; import sonia.scm.repository.PermissionType; @@ -47,6 +44,7 @@ import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; +import static sonia.scm.api.v2.resources.DispatcherMock.createDispatcher; @Slf4j public class PermissionRootResourceTest { @@ -88,7 +86,7 @@ public class PermissionRootResourceTest { .content(PERMISSION_TEST_PAYLOAD) .path(PATH_OF_ONE_PERMISSION); - private final Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + private Dispatcher dispatcher; @Mock private RepositoryManager repositoryManager; @@ -111,11 +109,7 @@ public class PermissionRootResourceTest { permissionRootResource = new PermissionRootResource(permissionDtoToPermissionMapper, permissionToPermissionDtoMapper, resourceLinks, repositoryManager); RepositoryRootResource repositoryRootResource = new RepositoryRootResource(MockProvider .of(new RepositoryResource(null, null, null, null, null, null, null,null, MockProvider.of(permissionRootResource))), null); - dispatcher.getRegistry().addSingletonResource(repositoryRootResource); - dispatcher.getProviderFactory().registerProvider(NotFoundExceptionMapper.class); - dispatcher.getProviderFactory().registerProvider(NotFoundExceptionMapper.class); - dispatcher.getProviderFactory().registerProvider(AlreadyExistsExceptionMapper.class); - dispatcher.getProviderFactory().registerProvider(AuthorizationExceptionMapper.class); + dispatcher = createDispatcher(repositoryRootResource); } @TestFactory diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java index 35de1ca80b..a5ea8ffb9b 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java @@ -4,7 +4,6 @@ import com.github.sdorra.shiro.ShiroRule; import com.github.sdorra.shiro.SubjectAware; import com.google.common.io.Resources; import org.jboss.resteasy.core.Dispatcher; -import org.jboss.resteasy.mock.MockDispatcherFactory; import org.jboss.resteasy.mock.MockHttpRequest; import org.jboss.resteasy.mock.MockHttpResponse; import org.junit.Before; @@ -43,6 +42,7 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; +import static sonia.scm.api.v2.resources.DispatcherMock.createDispatcher; @SubjectAware( username = "trillian", @@ -51,7 +51,7 @@ import static org.mockito.MockitoAnnotations.initMocks; ) public class RepositoryRootResourceTest { - private final Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + private Dispatcher dispatcher; @Rule public ShiroRule shiro = new ShiroRule(); @@ -77,7 +77,7 @@ public class RepositoryRootResourceTest { RepositoryCollectionToDtoMapper repositoryCollectionToDtoMapper = new RepositoryCollectionToDtoMapper(repositoryToDtoMapper, resourceLinks); RepositoryCollectionResource repositoryCollectionResource = new RepositoryCollectionResource(repositoryManager, repositoryCollectionToDtoMapper, dtoToRepositoryMapper, resourceLinks); RepositoryRootResource repositoryRootResource = new RepositoryRootResource(MockProvider.of(repositoryResource), MockProvider.of(repositoryCollectionResource)); - dispatcher.getRegistry().addSingletonResource(repositoryRootResource); + dispatcher = createDispatcher(repositoryRootResource); } @Test diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java index 3ebe48ca1f..5004eb7665 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UserRootResourceTest.java @@ -5,7 +5,6 @@ import com.github.sdorra.shiro.SubjectAware; import com.google.common.io.Resources; import org.apache.shiro.authc.credential.PasswordService; import org.jboss.resteasy.core.Dispatcher; -import org.jboss.resteasy.mock.MockDispatcherFactory; import org.jboss.resteasy.mock.MockHttpRequest; import org.jboss.resteasy.mock.MockHttpResponse; import org.junit.Before; @@ -35,6 +34,7 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; +import static sonia.scm.api.v2.resources.DispatcherMock.createDispatcher; @SubjectAware( username = "trillian", @@ -46,7 +46,7 @@ public class UserRootResourceTest { @Rule public ShiroRule shiro = new ShiroRule(); - private Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + private Dispatcher dispatcher; private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(URI.create("/")); @@ -76,7 +76,7 @@ public class UserRootResourceTest { UserRootResource userRootResource = new UserRootResource(MockProvider.of(userCollectionResource), MockProvider.of(userResource)); - dispatcher.getRegistry().addSingletonResource(userRootResource); + dispatcher = createDispatcher(userRootResource); } @Test From 8320c75c89fd244d69cefb2e90d7e69f3c0797c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Wed, 22 Aug 2018 14:29:05 +0200 Subject: [PATCH 066/143] Fix svn revision in sources HAL links --- .../sonia/scm/repository/spi/SvnBrowseCommand.java | 12 ++++++------ .../sonia/scm/api/v2/resources/FileObjectMapper.java | 8 ++++++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java index 1464d7eb96..6d408c8f17 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java @@ -36,17 +36,14 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Lists; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import org.tmatesoft.svn.core.SVNDirEntry; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNNodeKind; import org.tmatesoft.svn.core.SVNProperties; import org.tmatesoft.svn.core.SVNProperty; import org.tmatesoft.svn.core.io.SVNRepository; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.FileObject; import sonia.scm.repository.Repository; @@ -55,13 +52,12 @@ import sonia.scm.repository.SubRepository; import sonia.scm.repository.SvnUtil; import sonia.scm.util.Util; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; - import java.util.Collection; import java.util.List; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -143,6 +139,10 @@ public class SvnBrowseCommand extends AbstractSvnCommand } } + if (revisionNumber == -1) { + revisionNumber = svnRepository.getLatestRevision(); + } + result = new BrowserResult(); result.setRevision(String.valueOf(revisionNumber)); result.setFiles(children); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index ebabf79342..fbc4c8d913 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -26,11 +26,15 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { Links.Builder links = Links.linkingTo() - .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getPath())); + .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, removeFirstSlash(fileObject.getPath()))); if (!dto.isDirectory()) { - links.single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, fileObject.getPath()))); + links.single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, removeFirstSlash(fileObject.getPath())))); } dto.add(links.build()); } + + private String removeFirstSlash(String source) { + return source.startsWith("/") ? source.substring(1) : source; + } } From 9e8bd299f040042b35b12a5d1dcf656fffa7d7dc Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Thu, 23 Aug 2018 08:24:19 +0200 Subject: [PATCH 067/143] fix cookie path, if scm-manager runs with context path / --- .../scm/security/AccessTokenCookieIssuer.java | 30 +++-- .../security/AccessTokenCookieIssuerTest.java | 113 ++++++++++++++++++ 2 files changed, 132 insertions(+), 11 deletions(-) create mode 100644 scm-webapp/src/test/java/sonia/scm/security/AccessTokenCookieIssuerTest.java diff --git a/scm-webapp/src/main/java/sonia/scm/security/AccessTokenCookieIssuer.java b/scm-webapp/src/main/java/sonia/scm/security/AccessTokenCookieIssuer.java index 52760e1c9a..bb1473dca6 100644 --- a/scm-webapp/src/main/java/sonia/scm/security/AccessTokenCookieIssuer.java +++ b/scm-webapp/src/main/java/sonia/scm/security/AccessTokenCookieIssuer.java @@ -31,20 +31,19 @@ package sonia.scm.security; import com.google.common.annotations.VisibleForTesting; -import java.util.Date; +import com.google.common.base.Strings; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import sonia.scm.config.ScmConfiguration; +import sonia.scm.util.HttpUtil; +import sonia.scm.util.Util; -import java.util.concurrent.TimeUnit; import javax.inject.Inject; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import sonia.scm.config.ScmConfiguration; -import sonia.scm.util.HttpUtil; -import sonia.scm.util.Util; +import java.util.Date; +import java.util.concurrent.TimeUnit; /** * Generates cookies and invalidates access token cookies. @@ -81,7 +80,7 @@ public final class AccessTokenCookieIssuer { public void authenticate(HttpServletRequest request, HttpServletResponse response, AccessToken accessToken) { LOG.trace("create and attach cookie for access token {}", accessToken.getId()); Cookie c = new Cookie(HttpUtil.COOKIE_BEARER_AUTHENTICATION, accessToken.compact()); - c.setPath(request.getContextPath()); + c.setPath(contextPath(request)); c.setMaxAge(getMaxAge(accessToken)); c.setHttpOnly(isHttpOnly()); c.setSecure(isSecure(request)); @@ -100,7 +99,7 @@ public final class AccessTokenCookieIssuer { LOG.trace("invalidates access token cookie"); Cookie c = new Cookie(HttpUtil.COOKIE_BEARER_AUTHENTICATION, Util.EMPTY_STRING); - c.setPath(request.getContextPath()); + c.setPath(contextPath(request)); c.setMaxAge(0); c.setHttpOnly(isHttpOnly()); c.setSecure(isSecure(request)); @@ -108,6 +107,15 @@ public final class AccessTokenCookieIssuer { // attach empty cookie, that the browser can remove it response.addCookie(c); } + + @VisibleForTesting + String contextPath(HttpServletRequest request) { + String contextPath = request.getContextPath(); + if (Strings.isNullOrEmpty(contextPath)) { + return "/"; + } + return contextPath; + } private int getMaxAge(AccessToken accessToken){ long maxAgeMs = accessToken.getExpiration().getTime() - new Date().getTime(); diff --git a/scm-webapp/src/test/java/sonia/scm/security/AccessTokenCookieIssuerTest.java b/scm-webapp/src/test/java/sonia/scm/security/AccessTokenCookieIssuerTest.java new file mode 100644 index 0000000000..03cf174226 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/security/AccessTokenCookieIssuerTest.java @@ -0,0 +1,113 @@ +package sonia.scm.security; + +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.ArgumentCaptor; +import org.mockito.Captor; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.config.ScmConfiguration; + +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import java.util.Date; + +import static org.junit.Assert.*; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +@RunWith(MockitoJUnitRunner.class) +public class AccessTokenCookieIssuerTest { + + private ScmConfiguration configuration; + + private AccessTokenCookieIssuer issuer; + + @Mock + private HttpServletRequest request; + + @Mock + private HttpServletResponse response; + + @Mock + private AccessToken accessToken; + + @Captor + private ArgumentCaptor<Cookie> cookieArgumentCaptor; + + @Before + public void setUp() { + configuration = new ScmConfiguration(); + issuer = new AccessTokenCookieIssuer(configuration); + } + + @Test + public void testContextPath() { + assertContextPath("/scm", "/scm"); + assertContextPath("/", "/"); + assertContextPath("", "/"); + assertContextPath(null, "/"); + } + + @Test + public void httpOnlyShouldBeEnabledIfXsrfProtectionIsDisabled() { + configuration.setEnabledXsrfProtection(false); + + Cookie cookie = authenticate(); + + assertTrue(cookie.isHttpOnly()); + } + + @Test + public void httpOnlyShouldBeDisabled() { + Cookie cookie = authenticate(); + + assertFalse(cookie.isHttpOnly()); + } + + @Test + public void secureShouldBeSetIfTheRequestIsSecure() { + when(request.isSecure()).thenReturn(true); + + Cookie cookie = authenticate(); + + assertTrue(cookie.getSecure()); + } + + @Test + public void secureShouldBeDisabledIfTheRequestIsNotSecure() { + when(request.isSecure()).thenReturn(false); + + Cookie cookie = authenticate(); + + assertFalse(cookie.getSecure()); + } + + @Test + public void testInvalidate() { + issuer.invalidate(request, response); + + verify(response).addCookie(cookieArgumentCaptor.capture()); + Cookie cookie = cookieArgumentCaptor.getValue(); + + assertEquals(0, cookie.getMaxAge()); + } + + private Cookie authenticate() { + when(accessToken.getExpiration()).thenReturn(new Date()); + + issuer.authenticate(request, response, accessToken); + + verify(response).addCookie(cookieArgumentCaptor.capture()); + return cookieArgumentCaptor.getValue(); + } + + + private void assertContextPath(String contextPath, String expected) { + when(request.getContextPath()).thenReturn(contextPath); + assertEquals(expected, issuer.contextPath(request)); + } +} From 7177cbd3fe2fd47d45455cde48324634b0bad2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Thu, 23 Aug 2018 09:54:36 +0200 Subject: [PATCH 068/143] Fix streaming content result for hg --- .../java/sonia/scm/api/v2/resources/ContentResource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java index 0936a5b4a0..63c361538c 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java @@ -61,8 +61,8 @@ public class ContentResource { @ResponseCode(code = 500, condition = "internal server error") }) public Response get(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision, @PathParam("path") String path) { - try (RepositoryService repositoryService = serviceFactory.create(new NamespaceAndName(namespace, name))) { - StreamingOutput stream = createStreamingOutput(namespace, name, revision, path, repositoryService); + StreamingOutput stream = createStreamingOutput(namespace, name, revision, path); + try (RepositoryService repositoryService = serviceFactory.create(new NamespaceAndName(namespace, name))) { Response.ResponseBuilder responseBuilder = Response.ok(stream); return createContentHeader(namespace, name, revision, path, repositoryService, responseBuilder); } catch (RepositoryNotFoundException e) { @@ -71,9 +71,9 @@ public class ContentResource { } } - private StreamingOutput createStreamingOutput(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision, @PathParam("path") String path, RepositoryService repositoryService) { + private StreamingOutput createStreamingOutput(@PathParam("namespace") String namespace, @PathParam("name") String name, @PathParam("revision") String revision, @PathParam("path") String path) { return os -> { - try { + try (RepositoryService repositoryService = serviceFactory.create(new NamespaceAndName(namespace, name))) { repositoryService.getCatCommand().setRevision(revision).retriveContent(os, path); os.close(); } catch (PathNotFoundException e) { From 0fc09f5c0dacc2a3e7ff31d65663bea26a397506 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Thu, 23 Aug 2018 11:48:42 +0200 Subject: [PATCH 069/143] added PushStateDispatcher for production and development to WebResourceServlet --- .../scm/ForwardingPushStateDispatcher.java | 24 +++ .../sonia/scm/ProxyPushStateDispatcher.java | 134 +++++++++++++++++ .../java/sonia/scm/PushStateDispatcher.java | 28 ++++ .../scm/PushStateDispatcherProvider.java | 28 ++++ .../main/java/sonia/scm/ScmServletModule.java | 2 +- .../java/sonia/scm/WebResourceServlet.java | 13 +- .../ForwardingPushStateDispatcherTest.java | 51 +++++++ .../scm/ProxyPushStateDispatcherTest.java | 139 ++++++++++++++++++ .../scm/PushStateDispatcherProviderTest.java | 31 ++++ .../sonia/scm/WebResourceServletTest.java | 17 ++- 10 files changed, 452 insertions(+), 15 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/ForwardingPushStateDispatcher.java create mode 100644 scm-webapp/src/main/java/sonia/scm/ProxyPushStateDispatcher.java create mode 100644 scm-webapp/src/main/java/sonia/scm/PushStateDispatcher.java create mode 100644 scm-webapp/src/main/java/sonia/scm/PushStateDispatcherProvider.java create mode 100644 scm-webapp/src/test/java/sonia/scm/ForwardingPushStateDispatcherTest.java create mode 100644 scm-webapp/src/test/java/sonia/scm/ProxyPushStateDispatcherTest.java create mode 100644 scm-webapp/src/test/java/sonia/scm/PushStateDispatcherProviderTest.java diff --git a/scm-webapp/src/main/java/sonia/scm/ForwardingPushStateDispatcher.java b/scm-webapp/src/main/java/sonia/scm/ForwardingPushStateDispatcher.java new file mode 100644 index 0000000000..0b80f158f3 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/ForwardingPushStateDispatcher.java @@ -0,0 +1,24 @@ +package sonia.scm; + +import javax.servlet.RequestDispatcher; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * This dispatcher forwards every request to the index.html of the application. + * + * @since 2.0.0 + */ +public class ForwardingPushStateDispatcher implements PushStateDispatcher { + @Override + public void dispatch(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException { + RequestDispatcher dispatcher = request.getRequestDispatcher("/index.html"); + try { + dispatcher.forward(request, response); + } catch (ServletException e) { + throw new IOException("failed to forward request", e); + } + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/ProxyPushStateDispatcher.java b/scm-webapp/src/main/java/sonia/scm/ProxyPushStateDispatcher.java new file mode 100644 index 0000000000..ce0aadf246 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/ProxyPushStateDispatcher.java @@ -0,0 +1,134 @@ +package sonia.scm; + +import com.google.common.annotations.VisibleForTesting; +import com.google.common.io.ByteStreams; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Enumeration; +import java.util.List; +import java.util.Map; + +/** + * PushStateDispatcher which delegates the request to a different server. This dispatcher should only be used for + * development and never in production. + * + * @since 2.0.0 + */ +public final class ProxyPushStateDispatcher implements PushStateDispatcher { + + @FunctionalInterface + interface ConnectionFactory { + + HttpURLConnection open(URL url) throws IOException; + + } + + private final String target; + private final ConnectionFactory connectionFactory; + + /** + * Creates a new dispatcher for the given target. The target must be a valid url. + * + * @param target proxy target + */ + public ProxyPushStateDispatcher(String target) { + this(target, ProxyPushStateDispatcher::openConnection); + } + + /** + * This Constructor should only be used for testing. + * + * @param target proxy target + * @param connectionFactory factory for creating an connection from a url + */ + @VisibleForTesting + ProxyPushStateDispatcher(String target, ConnectionFactory connectionFactory) { + this.target = target; + this.connectionFactory = connectionFactory; + } + + @Override + public void dispatch(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException { + try { + proxy(request, response, uri); + } catch (FileNotFoundException ex) { + response.setStatus(HttpServletResponse.SC_NOT_FOUND); + } + } + + private void proxy(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException { + URL url = createProxyUrl(uri); + + HttpURLConnection connection = connectionFactory.open(url); + connection.setRequestMethod(request.getMethod()); + copyRequestHeaders(request, connection); + + if (request.getContentLength() > 0) { + copyRequestBody(request, connection); + } + + int responseCode = connection.getResponseCode(); + response.setStatus(responseCode); + copyResponseHeaders(response, connection); + + appendProxyHeader(response, url); + + copyResponseBody(response, connection); + } + + private void appendProxyHeader(HttpServletResponse response, URL url) { + response.addHeader("X-Forwarded-Port", String.valueOf(url.getPort())); + } + + private void copyResponseBody(HttpServletResponse response, HttpURLConnection connection) throws IOException { + try (InputStream input = connection.getInputStream(); OutputStream output = response.getOutputStream()) { + ByteStreams.copy(input, output); + } + } + + private void copyResponseHeaders(HttpServletResponse response, HttpURLConnection connection) { + Map<String, List<String>> headerFields = connection.getHeaderFields(); + for (Map.Entry<String, List<String>> entry : headerFields.entrySet()) { + if (entry.getKey() != null && !"Transfer-Encoding".equalsIgnoreCase(entry.getKey())) { + for (String value : entry.getValue()) { + response.addHeader(entry.getKey(), value); + } + } + } + } + + private void copyRequestBody(HttpServletRequest request, HttpURLConnection connection) throws IOException { + connection.setDoOutput(true); + try (InputStream input = request.getInputStream(); OutputStream output = connection.getOutputStream()) { + ByteStreams.copy(input, output); + } + } + + private void copyRequestHeaders(HttpServletRequest request, HttpURLConnection connection) { + Enumeration<String> headers = request.getHeaderNames(); + while (headers.hasMoreElements()) { + String header = headers.nextElement(); + Enumeration<String> values = request.getHeaders(header); + while (values.hasMoreElements()) { + String value = values.nextElement(); + connection.setRequestProperty(header, value); + } + } + } + + private URL createProxyUrl(String uri) throws MalformedURLException { + return new URL(target + uri); + } + + private static HttpURLConnection openConnection(URL url) throws IOException { + return (HttpURLConnection) url.openConnection(); + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/PushStateDispatcher.java b/scm-webapp/src/main/java/sonia/scm/PushStateDispatcher.java new file mode 100644 index 0000000000..c593d5fd67 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/PushStateDispatcher.java @@ -0,0 +1,28 @@ +package sonia.scm; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * The PushStateDispatcher is responsible for dispatching the request, to the main entry point of the ui, if no resource + * could be found for the requested path. This allows us the implementation of a ui which work with "pushstate" of + * html5. + * + * @since 2.0.0 + * @see <a href="https://developer.mozilla.org/en-US/docs/Web/API/History_API">HTML5 Push State</a> + */ +public interface PushStateDispatcher { + + /** + * Dispatches the request to the main entry point of the ui. + * + * @param request http request + * @param response http response + * @param uri request uri + * + * @throws IOException + */ + void dispatch(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException; + +} diff --git a/scm-webapp/src/main/java/sonia/scm/PushStateDispatcherProvider.java b/scm-webapp/src/main/java/sonia/scm/PushStateDispatcherProvider.java new file mode 100644 index 0000000000..653f7b4bdc --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/PushStateDispatcherProvider.java @@ -0,0 +1,28 @@ +package sonia.scm; + +import com.google.common.annotations.VisibleForTesting; +import com.google.common.base.Strings; + +import javax.inject.Provider; + +/** + * Injection Provider for the {@link PushStateDispatcher}. The provider will return a {@link ProxyPushStateDispatcher} + * if the system property {@code PushStateDispatcherProvider#PROPERTY_TARGET} is set to a proxy target url, otherwise + * a {@link ForwardingPushStateDispatcher} is used. + * + * @since 2.0.0 + */ +public class PushStateDispatcherProvider implements Provider<PushStateDispatcher> { + + @VisibleForTesting + static final String PROPERTY_TARGET = "sonia.scm.ui.proxy"; + + @Override + public PushStateDispatcher get() { + String target = System.getProperty(PROPERTY_TARGET); + if (Strings.isNullOrEmpty(target)) { + return new ForwardingPushStateDispatcher(); + } + return new ProxyPushStateDispatcher(target); + } +} diff --git a/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java b/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java index 1d318ce1c8..7ee89ba16e 100644 --- a/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java +++ b/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java @@ -313,7 +313,7 @@ public class ScmServletModule extends ServletModule // bind events // bind(LastModifiedUpdateListener.class); - + bind(PushStateDispatcher.class).toProvider(PushStateDispatcherProvider.class); } diff --git a/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java index a2f96827e6..b4ce14a0c1 100644 --- a/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java +++ b/scm-webapp/src/main/java/sonia/scm/WebResourceServlet.java @@ -33,19 +33,21 @@ public class WebResourceServlet extends HttpServlet { * TODO remove old frontend servlets */ @VisibleForTesting - static final String PATTERN = "/(?!api/|index.html|error.html|plugins/resources).+"; + static final String PATTERN = "/(?!api/).*"; private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class); private final UberWebResourceLoader webResourceLoader; + private final PushStateDispatcher pushStateDispatcher; @Inject - public WebResourceServlet(PluginLoader pluginLoader) { + public WebResourceServlet(PluginLoader pluginLoader, PushStateDispatcher dispatcher) { this.webResourceLoader = pluginLoader.getUberWebResourceLoader(); + this.pushStateDispatcher = dispatcher; } @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) { + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String uri = normalizeUri(request); LOG.trace("try to load {}", uri); @@ -53,7 +55,7 @@ public class WebResourceServlet extends HttpServlet { if (url != null) { serveResource(response, url); } else { - handleResourceNotFound(response); + pushStateDispatcher.dispatch(request, response, uri); } } @@ -71,7 +73,4 @@ public class WebResourceServlet extends HttpServlet { } } - private void handleResourceNotFound(HttpServletResponse response) { - response.setStatus(HttpServletResponse.SC_NOT_FOUND); - } } diff --git a/scm-webapp/src/test/java/sonia/scm/ForwardingPushStateDispatcherTest.java b/scm-webapp/src/test/java/sonia/scm/ForwardingPushStateDispatcherTest.java new file mode 100644 index 0000000000..e96464ee98 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/ForwardingPushStateDispatcherTest.java @@ -0,0 +1,51 @@ +package sonia.scm; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; + +import javax.servlet.RequestDispatcher; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import java.io.IOException; + +import static org.junit.Assert.*; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +@RunWith(MockitoJUnitRunner.class) +public class ForwardingPushStateDispatcherTest { + + @Mock + private HttpServletRequest request; + + @Mock + private RequestDispatcher requestDispatcher; + + @Mock + private HttpServletResponse response; + + private ForwardingPushStateDispatcher dispatcher = new ForwardingPushStateDispatcher(); + + @Test + public void testDispatch() throws ServletException, IOException { + when(request.getRequestDispatcher("/index.html")).thenReturn(requestDispatcher); + + dispatcher.dispatch(request, response, "/something"); + + verify(requestDispatcher).forward(request, response); + } + + @Test(expected = IOException.class) + public void testWrapServletException() throws ServletException, IOException { + when(request.getRequestDispatcher("/index.html")).thenReturn(requestDispatcher); + doThrow(ServletException.class).when(requestDispatcher).forward(request, response); + + dispatcher.dispatch(request, response, "/something"); + } + +} diff --git a/scm-webapp/src/test/java/sonia/scm/ProxyPushStateDispatcherTest.java b/scm-webapp/src/test/java/sonia/scm/ProxyPushStateDispatcherTest.java new file mode 100644 index 0000000000..52c13a4d54 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/ProxyPushStateDispatcherTest.java @@ -0,0 +1,139 @@ +package sonia.scm; + +import com.google.common.base.Charsets; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; + +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.util.*; + +import static org.junit.Assert.assertEquals; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +@RunWith(MockitoJUnitRunner.class) +public class ProxyPushStateDispatcherTest { + + private ProxyPushStateDispatcher dispatcher; + + @Mock + private HttpServletRequest request; + + @Mock + private HttpServletResponse response; + + @Mock + private HttpURLConnection connection; + + @Before + public void setUp() { + dispatcher = new ProxyPushStateDispatcher("http://hitchhiker.com", url -> connection); + } + + @Test + public void testWithGetRequest() throws IOException { + // configure request mock + when(request.getMethod()).thenReturn("GET"); + when(request.getHeaderNames()).thenReturn(toEnum("Content-Type")); + when(request.getHeaders("Content-Type")).thenReturn(toEnum("application/json")); + + // configure proxy url connection mock + when(connection.getInputStream()).thenReturn(new ByteArrayInputStream("hitchhicker".getBytes(Charsets.UTF_8))); + Map<String, List<String>> headerFields = new HashMap<>(); + headerFields.put("Content-Type", Lists.newArrayList("application/yaml")); + when(connection.getHeaderFields()).thenReturn(headerFields); + when(connection.getResponseCode()).thenReturn(200); + + // configure response mock + DevServletOutputStream output = new DevServletOutputStream(); + when(response.getOutputStream()).thenReturn(output); + + dispatcher.dispatch(request, response, "/people/trillian"); + + // verify connection + verify(connection).setRequestMethod("GET"); + verify(connection).setRequestProperty("Content-Type", "application/json"); + + // verify response + verify(response).setStatus(200); + verify(response).addHeader("Content-Type", "application/yaml"); + assertEquals("hitchhicker", output.stream.toString()); + } + + @Test + public void testWithPOSTRequest() throws IOException { + // configure request mock + when(request.getMethod()).thenReturn("POST"); + when(request.getHeaderNames()).thenReturn(toEnum()); + when(request.getInputStream()).thenReturn(new DevServletInputStream("hitchhiker")); + when(request.getContentLength()).thenReturn(1); + + // configure proxy url connection mock + when(connection.getInputStream()).thenReturn(new ByteArrayInputStream(new byte[0])); + Map<String, List<String>> headerFields = new HashMap<>(); + when(connection.getHeaderFields()).thenReturn(headerFields); + when(connection.getResponseCode()).thenReturn(204); + + // configure response mock + when(response.getOutputStream()).thenReturn(new DevServletOutputStream()); + + ByteArrayOutputStream output = new ByteArrayOutputStream(); + when(connection.getOutputStream()).thenReturn(output); + + dispatcher.dispatch(request, response, "/people/trillian"); + + // verify connection + verify(connection).setRequestMethod("POST"); + assertEquals("hitchhiker", output.toString()); + + // verify response + verify(response).setStatus(204); + } + + private Enumeration<String> toEnum(String... values) { + Set<String> set = ImmutableSet.copyOf(values); + return toEnum(set); + } + + private <T> Enumeration<T> toEnum(Collection<T> collection) { + return new Vector<>(collection).elements(); + } + + private class DevServletInputStream extends ServletInputStream { + + private InputStream inputStream; + + private DevServletInputStream(String content) { + inputStream = new ByteArrayInputStream(content.getBytes(Charsets.UTF_8)); + } + + @Override + public int read() throws IOException { + return inputStream.read(); + } + } + + private class DevServletOutputStream extends ServletOutputStream { + + private ByteArrayOutputStream stream = new ByteArrayOutputStream(); + + @Override + public void write(int b) { + stream.write(b); + } + } + +} diff --git a/scm-webapp/src/test/java/sonia/scm/PushStateDispatcherProviderTest.java b/scm-webapp/src/test/java/sonia/scm/PushStateDispatcherProviderTest.java new file mode 100644 index 0000000000..31e5f7c6dc --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/PushStateDispatcherProviderTest.java @@ -0,0 +1,31 @@ +package sonia.scm; + +import org.assertj.core.api.Assertions; +import org.junit.After; +import org.junit.Test; + +import static org.junit.Assert.*; + +public class PushStateDispatcherProviderTest { + + private PushStateDispatcherProvider provider = new PushStateDispatcherProvider(); + + @Test + public void testGetProxyPushStateWithPropertySet() { + System.setProperty(PushStateDispatcherProvider.PROPERTY_TARGET, "http://localhost:9966"); + PushStateDispatcher dispatcher = provider.get(); + Assertions.assertThat(dispatcher).isInstanceOf(ProxyPushStateDispatcher.class); + } + + @Test + public void testGetProxyPushStateWithoutProperty() { + PushStateDispatcher dispatcher = provider.get(); + Assertions.assertThat(dispatcher).isInstanceOf(ForwardingPushStateDispatcher.class); + } + + @After + public void cleanupSystemProperty() { + System.clearProperty(PushStateDispatcherProvider.PROPERTY_TARGET); + } + +} diff --git a/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java b/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java index af17fda77d..7e42afdf17 100644 --- a/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java +++ b/scm-webapp/src/test/java/sonia/scm/WebResourceServletTest.java @@ -40,13 +40,16 @@ public class WebResourceServletTest { @Mock private UberWebResourceLoader webResourceLoader; + @Mock + private PushStateDispatcher pushStateDispatcher; + private WebResourceServlet servlet; @Before public void setUpMocks() { when(pluginLoader.getUberWebResourceLoader()).thenReturn(webResourceLoader); when(request.getContextPath()).thenReturn("/scm"); - servlet = new WebResourceServlet(pluginLoader); + servlet = new WebResourceServlet(pluginLoader, pushStateDispatcher); } @Test @@ -57,17 +60,17 @@ public class WebResourceServletTest { assertFalse("/api/v2/repositories".matches(WebResourceServlet.PATTERN)); // exclude old style ui template servlets - assertFalse("/".matches(WebResourceServlet.PATTERN)); - assertFalse("/index.html".matches(WebResourceServlet.PATTERN)); - assertFalse("/error.html".matches(WebResourceServlet.PATTERN)); - assertFalse("/plugins/resources/js/sonia/scm/hg.config-wizard.js".matches(WebResourceServlet.PATTERN)); + assertTrue("/".matches(WebResourceServlet.PATTERN)); + assertTrue("/index.html".matches(WebResourceServlet.PATTERN)); + assertTrue("/error.html".matches(WebResourceServlet.PATTERN)); + assertTrue("/plugins/resources/js/sonia/scm/hg.config-wizard.js".matches(WebResourceServlet.PATTERN)); } @Test - public void testDoGetWithNonExistingResource() { + public void testDoGetWithNonExistingResource() throws IOException { when(request.getRequestURI()).thenReturn("/scm/awesome.jpg"); servlet.doGet(request, response); - verify(response).setStatus(HttpServletResponse.SC_NOT_FOUND); + verify(pushStateDispatcher).dispatch(request, response, "/awesome.jpg"); } From ee8efe9cf59926393087732007702a564002acf0 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Thu, 23 Aug 2018 14:48:11 +0200 Subject: [PATCH 070/143] do not return directories from WebResourceLoader --- .../plugin/DefaultUberWebResourceLoader.java | 48 ++++++++++++----- .../scm/plugin/PathWebResourceLoader.java | 2 +- .../DefaultUberWebResourceLoaderTest.java | 53 +++++++++++++++++-- .../scm/plugin/PathWebResourceLoaderTest.java | 22 ++++---- 4 files changed, 95 insertions(+), 30 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java b/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java index c8157925ef..115a63fc2f 100644 --- a/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java +++ b/scm-webapp/src/main/java/sonia/scm/plugin/DefaultUberWebResourceLoader.java @@ -39,19 +39,18 @@ import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList.Builder; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import sonia.scm.util.HttpUtil; - -//~--- JDK imports ------------------------------------------------------------ - -import java.net.MalformedURLException; -import java.net.URL; - -import java.util.List; import javax.servlet.ServletContext; +import java.net.MalformedURLException; +import java.net.URISyntaxException; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.List; + +//~--- JDK imports ------------------------------------------------------------ /** * Default implementation of the {@link UberWebResourceLoader}. @@ -134,7 +133,7 @@ public class DefaultUberWebResourceLoader implements UberWebResourceLoader try { - URL ctxResource = servletContext.getResource(path); + URL ctxResource = nonDirectory(servletContext.getResource(path)); if (ctxResource != null) { @@ -144,7 +143,7 @@ public class DefaultUberWebResourceLoader implements UberWebResourceLoader for (PluginWrapper wrapper : plugins) { - URL resource = wrapper.getWebResourceLoader().getResource(path); + URL resource = nonDirectory(wrapper.getWebResourceLoader().getResource(path)); if (resource != null) { @@ -190,13 +189,13 @@ public class DefaultUberWebResourceLoader implements UberWebResourceLoader try { - resource = servletContext.getResource(path); + resource = nonDirectory(servletContext.getResource(path)); if (resource == null) { for (PluginWrapper wrapper : plugins) { - resource = wrapper.getWebResourceLoader().getResource(path); + resource = nonDirectory(wrapper.getWebResourceLoader().getResource(path)); if (resource != null) { @@ -219,6 +218,29 @@ public class DefaultUberWebResourceLoader implements UberWebResourceLoader return resource; } + private URL nonDirectory(URL url) { + if (url == null) { + return null; + } + + if (isDirectory(url)) { + return null; + } + + return url; + } + + private boolean isDirectory(URL url) { + if ("file".equals(url.getProtocol())) { + try { + return Files.isDirectory(Paths.get(url.toURI())); + } catch (URISyntaxException ex) { + throw Throwables.propagate(ex); + } + } + return false; + } + //~--- fields --------------------------------------------------------------- /** Field description */ diff --git a/scm-webapp/src/main/java/sonia/scm/plugin/PathWebResourceLoader.java b/scm-webapp/src/main/java/sonia/scm/plugin/PathWebResourceLoader.java index f6519d2d05..230cfa6c7a 100644 --- a/scm-webapp/src/main/java/sonia/scm/plugin/PathWebResourceLoader.java +++ b/scm-webapp/src/main/java/sonia/scm/plugin/PathWebResourceLoader.java @@ -93,7 +93,7 @@ public class PathWebResourceLoader implements WebResourceLoader URL resource = null; Path file = directory.resolve(filePath(path)); - if (Files.exists(file)) + if (Files.exists(file) && ! Files.isDirectory(file)) { logger.trace("found path {} at {}", path, file); diff --git a/scm-webapp/src/test/java/sonia/scm/plugin/DefaultUberWebResourceLoaderTest.java b/scm-webapp/src/test/java/sonia/scm/plugin/DefaultUberWebResourceLoaderTest.java index 4afdcb2bd6..42b038ab17 100644 --- a/scm-webapp/src/test/java/sonia/scm/plugin/DefaultUberWebResourceLoaderTest.java +++ b/scm-webapp/src/test/java/sonia/scm/plugin/DefaultUberWebResourceLoaderTest.java @@ -36,6 +36,7 @@ package sonia.scm.plugin; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.collect.Lists; +import org.assertj.core.api.Assertions; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; @@ -52,9 +53,8 @@ import java.util.ArrayList; import java.util.List; import static org.hamcrest.Matchers.containsInAnyOrder; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertThat; +import static org.junit.Assert.*; +import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; //~--- JDK imports ------------------------------------------------------------ @@ -143,8 +143,7 @@ public class DefaultUberWebResourceLoaderTest extends WebResourceLoaderTestBase when(servletContext.getResource("/myresource")).thenReturn(SCM_MANAGER); WebResourceLoader resourceLoader = - new DefaultUberWebResourceLoader(servletContext, - new ArrayList<PluginWrapper>()); + new DefaultUberWebResourceLoader(servletContext, new ArrayList<>()); URL resource = resourceLoader.getResource("/myresource"); assertSame(SCM_MANAGER, resource); @@ -173,6 +172,50 @@ public class DefaultUberWebResourceLoaderTest extends WebResourceLoaderTestBase containsInAnyOrder(file.toURI().toURL(), BITBUCKET)); } + @Test + public void shouldReturnNullForDirectoryFromServletContext() throws IOException { + URL url = temp.newFolder().toURI().toURL(); + when(servletContext.getResource("/myresource")).thenReturn(url); + + WebResourceLoader resourceLoader = + new DefaultUberWebResourceLoader(servletContext, new ArrayList<>()); + + assertNull(resourceLoader.getResource("/myresource")); + } + + @Test + public void shouldReturnNullForDirectoryFromPlugin() throws IOException { + URL url = temp.newFolder().toURI().toURL(); + WebResourceLoader loader = mock(WebResourceLoader.class); + when(loader.getResource("/myresource")).thenReturn(url); + + PluginWrapper pluginWrapper = mock(PluginWrapper.class); + when(pluginWrapper.getWebResourceLoader()).thenReturn(loader); + + WebResourceLoader resourceLoader = + new DefaultUberWebResourceLoader(servletContext, Lists.newArrayList(pluginWrapper)); + + assertNull(resourceLoader.getResource("/myresource")); + } + + @Test + public void shouldReturnNullForDirectories() throws IOException { + URL url = temp.newFolder().toURI().toURL(); + when(servletContext.getResource("/myresource")).thenReturn(url); + + WebResourceLoader loader = mock(WebResourceLoader.class); + when(loader.getResource("/myresource")).thenReturn(url); + + PluginWrapper pluginWrapper = mock(PluginWrapper.class); + when(pluginWrapper.getWebResourceLoader()).thenReturn(loader); + + UberWebResourceLoader resourceLoader = + new DefaultUberWebResourceLoader(servletContext, Lists.newArrayList(pluginWrapper)); + + List<URL> resources = resourceLoader.getResources("/myresource"); + Assertions.assertThat(resources).isEmpty(); + } + /** * Method description * diff --git a/scm-webapp/src/test/java/sonia/scm/plugin/PathWebResourceLoaderTest.java b/scm-webapp/src/test/java/sonia/scm/plugin/PathWebResourceLoaderTest.java index 571bf7537c..4497ee1bbc 100644 --- a/scm-webapp/src/test/java/sonia/scm/plugin/PathWebResourceLoaderTest.java +++ b/scm-webapp/src/test/java/sonia/scm/plugin/PathWebResourceLoaderTest.java @@ -54,15 +54,18 @@ import java.net.URL; public class PathWebResourceLoaderTest extends WebResourceLoaderTestBase { - /** - * Method description - * - * - * @throws IOException - */ @Test - public void testGetResource() throws IOException - { + public void testGetNullForDirectories() throws IOException { + File directory = temp.newFolder(); + assertTrue(new File(directory, "awesome").mkdir()); + + WebResourceLoader resourceLoader = new PathWebResourceLoader(directory.toPath()); + assertNull(resourceLoader.getResource("awesome")); + } + + + @Test + public void testGetResource() throws IOException { File directory = temp.newFolder(); URL url = file(directory, "myresource").toURI().toURL(); @@ -74,7 +77,4 @@ public class PathWebResourceLoaderTest extends WebResourceLoaderTestBase assertNull(resourceLoader.getResource("other")); } - - //~--- fields --------------------------------------------------------------- - } From ca563dd874b5d67a1a511d63cf78d0d58f135818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Thu, 23 Aug 2018 15:52:02 +0200 Subject: [PATCH 071/143] Fix default revision for hg and fix encoded slashes in URLs --- .../sonia/scm/it/RepositoryAccessITCase.java | 31 ++++++++++++++++--- .../java/sonia/scm/it/RepositoryUtil.java | 19 ++++++++++-- .../scm/repository/spi/HgBrowseCommand.java | 17 +++++----- .../api/v2/resources/BrowserResultMapper.java | 8 ++--- .../api/v2/resources/FileObjectMapper.java | 11 ++++--- .../v2/resources/FileObjectMapperTest.java | 4 +-- 6 files changed, 66 insertions(+), 24 deletions(-) diff --git a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java index 1a132711c8..0d0ded260e 100644 --- a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java +++ b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java @@ -70,6 +70,8 @@ public class RepositoryAccessITCase { @Test public void shouldReadContent() throws IOException, InterruptedException { repositoryUtil.createAndCommitFile("a.txt", "a"); + tempFolder.newFolder("subfolder"); + repositoryUtil.createAndCommitFile("subfolder/a.txt", "sub-a"); sleep(1000); @@ -81,19 +83,40 @@ public class RepositoryAccessITCase { .extract() .path("_links.sources.href"); - String contentUrl = given() + String rootContentUrl = given() .when() .get(sourcesUrl) .then() .statusCode(HttpStatus.SC_OK) .extract() - .path("files[0]._links.content.href"); - + .path("files.find{it.name=='a.txt'}._links.content.href"); given() .when() - .get(contentUrl) + .get(rootContentUrl) .then() .statusCode(HttpStatus.SC_OK) .body(equalTo("a")); + + String subfolderSourceUrl = given() + .when() + .get(sourcesUrl) + .then() + .statusCode(HttpStatus.SC_OK) + .extract() + .path("files.find{it.name=='subfolder'}._links.self.href"); + String subfolderContentUrl= given() + .when() + .get(subfolderSourceUrl) + .then() + .statusCode(HttpStatus.SC_OK) + .extract() + .path("files[0]._links.content.href"); + System.out.println(subfolderContentUrl); + given() + .when() + .get(subfolderContentUrl) + .then() + .statusCode(HttpStatus.SC_OK) + .body(equalTo("sub-a")); } } diff --git a/scm-it/src/test/java/sonia/scm/it/RepositoryUtil.java b/scm-it/src/test/java/sonia/scm/it/RepositoryUtil.java index 98d4c8cdab..cb6d34559b 100644 --- a/scm-it/src/test/java/sonia/scm/it/RepositoryUtil.java +++ b/scm-it/src/test/java/sonia/scm/it/RepositoryUtil.java @@ -45,11 +45,26 @@ public class RepositoryUtil { } void createAndCommitFile(String fileName, String content) throws IOException { - Files.write(content, new File(folder, fileName), Charsets.UTF_8); - repositoryClient.getAddCommand().add(fileName); + File file = new File(folder, fileName); + Files.write(content, file, Charsets.UTF_8); + addWithParentDirectories(file); commit("added " + fileName); } + private String addWithParentDirectories(File file) throws IOException { + File parent = file.getParentFile(); + String thisName = file.getName(); + String path; + if (!folder.equals(parent)) { + addWithParentDirectories(parent); + path = addWithParentDirectories(parent) + File.separator + thisName; + } else { + path = thisName; + } + repositoryClient.getAddCommand().add(path); + return path; + } + Changeset commit(String message) throws IOException { Changeset changeset = repositoryClient.getCommitCommand().commit( new Person("scmadmin", "scmadmin@scm-manager.org"), message diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java index 0303275adf..0119b6b315 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java @@ -36,16 +36,14 @@ package sonia.scm.repository.spi; //~--- non-JDK imports -------------------------------------------------------- import com.google.common.base.Strings; - import sonia.scm.repository.BrowserResult; import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryException; import sonia.scm.repository.spi.javahg.HgFileviewCommand; -//~--- JDK imports ------------------------------------------------------------ - import java.io.IOException; +//~--- JDK imports ------------------------------------------------------------ + /** * * @author Sebastian Sdorra @@ -76,12 +74,9 @@ public class HgBrowseCommand extends AbstractCommand implements BrowseCommand * @return * * @throws IOException - * @throws RepositoryException */ @Override - public BrowserResult getBrowserResult(BrowseCommandRequest request) - throws IOException, RepositoryException - { + public BrowserResult getBrowserResult(BrowseCommandRequest request) throws IOException { HgFileviewCommand cmd = HgFileviewCommand.on(open()); if (!Strings.isNullOrEmpty(request.getRevision())) @@ -113,6 +108,12 @@ public class HgBrowseCommand extends AbstractCommand implements BrowseCommand result.setFiles(cmd.execute()); + if (!Strings.isNullOrEmpty(request.getRevision())) { + result.setRevision(request.getRevision()); + } else { + result.setRevision("tip"); + } + return result; } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java index 79f049a5be..4658a465dc 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java @@ -17,10 +17,6 @@ public class BrowserResultMapper { @Inject private ResourceLinks resourceLinks; - private FileObjectDto mapFileObject(FileObject fileObject, NamespaceAndName namespaceAndName, String revision) { - return fileObjectMapper.map(fileObject, namespaceAndName, revision); - } - public BrowserResultDto map(BrowserResult browserResult, NamespaceAndName namespaceAndName) { BrowserResultDto browserResultDto = new BrowserResultDto(); @@ -38,6 +34,10 @@ public class BrowserResultMapper { return browserResultDto; } + private FileObjectDto mapFileObject(FileObject fileObject, NamespaceAndName namespaceAndName, String revision) { + return fileObjectMapper.map(fileObject, namespaceAndName, revision); + } + private void addLinks(BrowserResult browserResult, BrowserResultDto dto, NamespaceAndName namespaceAndName) { if (browserResult.getRevision() == null) { dto.add(Links.linkingTo().self(resourceLinks.source().selfWithoutRevision(namespaceAndName.getNamespace(), namespaceAndName.getName())).build()); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index fbc4c8d913..92a031b182 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -10,6 +10,7 @@ import sonia.scm.repository.NamespaceAndName; import sonia.scm.repository.SubRepository; import javax.inject.Inject; +import java.net.URI; import static de.otto.edison.hal.Link.link; @@ -25,16 +26,18 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { + String path = fileObject.getPath(); Links.Builder links = Links.linkingTo() - .self(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, removeFirstSlash(fileObject.getPath()))); + .self(addPath(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, ""), path)); if (!dto.isDirectory()) { - links.single(link("content", resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, removeFirstSlash(fileObject.getPath())))); + links.single(link("content", addPath(resourceLinks.source().content(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, ""), path))); } dto.add(links.build()); } - private String removeFirstSlash(String source) { - return source.startsWith("/") ? source.substring(1) : source; + // we have to add the file path using URI, so that path separators (aka '/') will not be encoded as '%2F' + private String addPath(String sourceWithPath, String path) { + return URI.create(sourceWithPath).resolve(path).toASCIIString(); } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java index 2feb5bc8e1..8aa77e600d 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java @@ -54,7 +54,7 @@ public class FileObjectMapperTest { FileObject fileObject = createFileObject(); FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); - assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/sources/revision/foo%2Fbar").toString()); + assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/sources/revision/foo/bar").toString()); } @Test @@ -62,7 +62,7 @@ public class FileObjectMapperTest { FileObject fileObject = createFileObject(); FileObjectDto dto = mapper.map(fileObject, new NamespaceAndName("namespace", "name"), "revision"); - assertThat(dto.getLinks().getLinkBy("content").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/content/revision/foo%2Fbar").toString()); + assertThat(dto.getLinks().getLinkBy("content").get().getHref()).isEqualTo(expectedBaseUri.resolve("namespace/name/content/revision/foo/bar").toString()); } private FileObject createFileObject() { From 40f963db987a1876431a57215a234d0b2df9f8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Thu, 23 Aug 2018 17:02:55 +0200 Subject: [PATCH 072/143] Fix source URL creation for SVN --- .../java/sonia/scm/api/v2/resources/FileObjectMapper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java index 92a031b182..f003c236e1 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java @@ -26,7 +26,7 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject @AfterMapping void addLinks(FileObject fileObject, @MappingTarget FileObjectDto dto, @Context NamespaceAndName namespaceAndName, @Context String revision) { - String path = fileObject.getPath(); + String path = removeFirstSlash(fileObject.getPath()); Links.Builder links = Links.linkingTo() .self(addPath(resourceLinks.source().sourceWithPath(namespaceAndName.getNamespace(), namespaceAndName.getName(), revision, ""), path)); if (!dto.isDirectory()) { @@ -40,4 +40,8 @@ public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObject private String addPath(String sourceWithPath, String path) { return URI.create(sourceWithPath).resolve(path).toASCIIString(); } + + private String removeFirstSlash(String source) { + return source.startsWith("/") ? source.substring(1) : source; + } } From f5ba197d1049b3bdcdb41d908f5ec1f8ce23544f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= <rene.pfeuffer@cloudogu.com> Date: Fri, 24 Aug 2018 08:18:08 +0200 Subject: [PATCH 073/143] Harmonize naming of dto mappers --- ... => BrowserResultToBrowserResultDtoMapper.java} | 6 +++--- ...r.java => FileObjectToFileObjectDtoMapper.java} | 2 +- .../sonia/scm/api/v2/resources/MapperModule.java | 2 +- .../scm/api/v2/resources/SourceRootResource.java | 8 ++++---- ...BrowserResultToBrowserResultDtoMapperTest.java} | 10 +++++----- ...va => FileObjectToFileObjectDtoMapperTest.java} | 4 ++-- .../api/v2/resources/SourceRootResourceTest.java | 14 +++++++++----- 7 files changed, 25 insertions(+), 21 deletions(-) rename scm-webapp/src/main/java/sonia/scm/api/v2/resources/{BrowserResultMapper.java => BrowserResultToBrowserResultDtoMapper.java} (88%) rename scm-webapp/src/main/java/sonia/scm/api/v2/resources/{FileObjectMapper.java => FileObjectToFileObjectDtoMapper.java} (94%) rename scm-webapp/src/test/java/sonia/scm/api/v2/resources/{BrowserResultMapperTest.java => BrowserResultToBrowserResultDtoMapperTest.java} (89%) rename scm-webapp/src/test/java/sonia/scm/api/v2/resources/{FileObjectMapperTest.java => FileObjectToFileObjectDtoMapperTest.java} (96%) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java similarity index 88% rename from scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java rename to scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java index 4658a465dc..7abb1ae69b 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapper.java @@ -9,10 +9,10 @@ import javax.inject.Inject; import java.util.ArrayList; import java.util.List; -public class BrowserResultMapper { +public class BrowserResultToBrowserResultDtoMapper { @Inject - private FileObjectMapper fileObjectMapper; + private FileObjectToFileObjectDtoMapper fileObjectToFileObjectDtoMapper; @Inject private ResourceLinks resourceLinks; @@ -35,7 +35,7 @@ public class BrowserResultMapper { } private FileObjectDto mapFileObject(FileObject fileObject, NamespaceAndName namespaceAndName, String revision) { - return fileObjectMapper.map(fileObject, namespaceAndName, revision); + return fileObjectToFileObjectDtoMapper.map(fileObject, namespaceAndName, revision); } private void addLinks(BrowserResult browserResult, BrowserResultDto dto, NamespaceAndName namespaceAndName) { diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java similarity index 94% rename from scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java rename to scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java index f003c236e1..a3d1cae6b5 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java @@ -15,7 +15,7 @@ import java.net.URI; import static de.otto.edison.hal.Link.link; @Mapper -public abstract class FileObjectMapper extends BaseMapper<FileObject, FileObjectDto> { +public abstract class FileObjectToFileObjectDtoMapper extends BaseMapper<FileObject, FileObjectDto> { @Inject private ResourceLinks resourceLinks; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java index 5ecdaee23d..4cbe6406f8 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java @@ -26,7 +26,7 @@ public class MapperModule extends AbstractModule { bind(BranchToBranchDtoMapper.class).to(Mappers.getMapper(BranchToBranchDtoMapper.class).getClass()); - bind(FileObjectMapper.class).to(Mappers.getMapper(FileObjectMapper.class).getClass()); + bind(FileObjectToFileObjectDtoMapper.class).to(Mappers.getMapper(FileObjectToFileObjectDtoMapper.class).getClass()); bind(UriInfoStore.class).in(ServletScopes.REQUEST); } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java index 3e0ab31ef7..4d0bfc50aa 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/SourceRootResource.java @@ -20,13 +20,13 @@ import java.io.IOException; public class SourceRootResource { private final RepositoryServiceFactory serviceFactory; - private final BrowserResultMapper browserResultMapper; + private final BrowserResultToBrowserResultDtoMapper browserResultToBrowserResultDtoMapper; @Inject - public SourceRootResource(RepositoryServiceFactory serviceFactory, BrowserResultMapper browserResultMapper) { + public SourceRootResource(RepositoryServiceFactory serviceFactory, BrowserResultToBrowserResultDtoMapper browserResultToBrowserResultDtoMapper) { this.serviceFactory = serviceFactory; - this.browserResultMapper = browserResultMapper; + this.browserResultToBrowserResultDtoMapper = browserResultToBrowserResultDtoMapper; } @GET @@ -61,7 +61,7 @@ public class SourceRootResource { BrowserResult browserResult = browseCommand.getBrowserResult(); if (browserResult != null) { - return Response.ok(browserResultMapper.map(browserResult, namespaceAndName)).build(); + return Response.ok(browserResultToBrowserResultDtoMapper.map(browserResult, namespaceAndName)).build(); } else { return Response.status(Response.Status.NOT_FOUND).build(); } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapperTest.java similarity index 89% rename from scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java rename to scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapperTest.java index 0f973d9713..cf27e35f85 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/BrowserResultToBrowserResultDtoMapperTest.java @@ -21,17 +21,17 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.MockitoAnnotations.initMocks; -public class BrowserResultMapperTest { +public class BrowserResultToBrowserResultDtoMapperTest { private final URI baseUri = URI.create("http://example.com/base/"); @SuppressWarnings("unused") // Is injected private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); @Mock - private FileObjectMapper fileObjectMapper; + private FileObjectToFileObjectDtoMapper fileObjectToFileObjectDtoMapper; @InjectMocks - private BrowserResultMapper mapper; + private BrowserResultToBrowserResultDtoMapper mapper; private final Subject subject = mock(Subject.class); private final ThreadState subjectThreadState = new SubjectThreadState(subject); @@ -77,8 +77,8 @@ public class BrowserResultMapperTest { BrowserResultDto dto = mapper.map(browserResult, namespaceAndName); - verify(fileObjectMapper).map(fileObject1, namespaceAndName, "Revision"); - verify(fileObjectMapper).map(fileObject2, namespaceAndName, "Revision"); + verify(fileObjectToFileObjectDtoMapper).map(fileObject1, namespaceAndName, "Revision"); + verify(fileObjectToFileObjectDtoMapper).map(fileObject2, namespaceAndName, "Revision"); } private BrowserResult createBrowserResult() { diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java similarity index 96% rename from scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java rename to scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java index 8aa77e600d..420e99c704 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectMapperTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapperTest.java @@ -19,14 +19,14 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; @RunWith(MockitoJUnitRunner.Silent.class) -public class FileObjectMapperTest { +public class FileObjectToFileObjectDtoMapperTest { private final URI baseUri = URI.create("http://example.com/base/"); @SuppressWarnings("unused") // Is injected private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); @InjectMocks - private FileObjectMapperImpl mapper; + private FileObjectToFileObjectDtoMapperImpl mapper; private final Subject subject = mock(Subject.class); private final ThreadState subjectThreadState = new SubjectThreadState(subject); diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java index 5c1bb8c802..596618ec7e 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/SourceRootResourceTest.java @@ -10,7 +10,11 @@ import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; -import sonia.scm.repository.*; +import sonia.scm.repository.BrowserResult; +import sonia.scm.repository.FileObject; +import sonia.scm.repository.NamespaceAndName; +import sonia.scm.repository.RepositoryException; +import sonia.scm.repository.RepositoryNotFoundException; import sonia.scm.repository.api.BrowseCommandBuilder; import sonia.scm.repository.api.RepositoryService; import sonia.scm.repository.api.RepositoryServiceFactory; @@ -42,10 +46,10 @@ public class SourceRootResourceTest { private BrowseCommandBuilder browseCommandBuilder; @Mock - private FileObjectMapper fileObjectMapper; + private FileObjectToFileObjectDtoMapper fileObjectToFileObjectDtoMapper; @InjectMocks - private BrowserResultMapper browserResultMapper; + private BrowserResultToBrowserResultDtoMapper browserResultToBrowserResultDtoMapper; @Before @@ -57,8 +61,8 @@ public class SourceRootResourceTest { dto.setName("name"); dto.setLength(1024); - when(fileObjectMapper.map(any(FileObject.class), any(NamespaceAndName.class), anyString())).thenReturn(dto); - SourceRootResource sourceRootResource = new SourceRootResource(serviceFactory, browserResultMapper); + when(fileObjectToFileObjectDtoMapper.map(any(FileObject.class), any(NamespaceAndName.class), anyString())).thenReturn(dto); + SourceRootResource sourceRootResource = new SourceRootResource(serviceFactory, browserResultToBrowserResultDtoMapper); RepositoryRootResource repositoryRootResource = new RepositoryRootResource(MockProvider.of(new RepositoryResource(null, null, From 8224327ed3a12750793fa73e348c4547bbb459a1 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra <sebastian.sdorra@cloudogu.com> Date: Fri, 24 Aug 2018 08:35:50 +0200 Subject: [PATCH 074/143] use / as development context path and use ui-bundler instead of react-scripts --- scm-ui/.babelrc | 6 + scm-ui/.eslintrc | 28 +- scm-ui/package.json | 54 +- scm-ui/{src => public}/images/blib.jpg | Bin scm-ui/{src => public}/images/loading.svg | 0 scm-ui/{src => public}/images/logo.png | Bin scm-ui/public/index.html | 8 +- scm-ui/src/apiclient.js | 2 +- scm-ui/src/apiclient.test.js | 4 +- scm-ui/src/components/Loading.js | 7 +- scm-ui/src/components/Logo.js | 3 +- scm-ui/src/containers/App.js | 3 +- scm-ui/src/containers/Login.js | 3 +- scm-ui/src/groups/modules/groups.test.js | 36 +- scm-ui/src/i18n.js | 3 +- scm-ui/src/modules/auth.test.js | 18 +- .../repos/components/list/RepositoryEntry.js | 4 +- scm-ui/src/repos/modules/repos.test.js | 84 +- .../src/repos/modules/repositoryTypes.test.js | 10 +- scm-ui/src/users/modules/users.test.js | 34 +- scm-ui/yarn.lock | 5945 +++++++---------- scm-webapp/pom.xml | 6 +- 22 files changed, 2708 insertions(+), 3550 deletions(-) create mode 100644 scm-ui/.babelrc rename scm-ui/{src => public}/images/blib.jpg (100%) rename scm-ui/{src => public}/images/loading.svg (100%) rename scm-ui/{src => public}/images/logo.png (100%) diff --git a/scm-ui/.babelrc b/scm-ui/.babelrc new file mode 100644 index 0000000000..a248d20409 --- /dev/null +++ b/scm-ui/.babelrc @@ -0,0 +1,6 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-flow"], + "plugins": [ + "@babel/plugin-proposal-class-properties" + ] +} diff --git a/scm-ui/.eslintrc b/scm-ui/.eslintrc index d299c1fed5..8411c357f5 100644 --- a/scm-ui/.eslintrc +++ b/scm-ui/.eslintrc @@ -1,3 +1,29 @@ { - "extends": "react-app" + "parser": "babel-eslint", + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:flowtype/recommended" + ], + "plugins": [ + "flowtype", + "react", + "jsx-a11y", + "import" + ], + "rules": { + "quotes": ["error", "double"] + }, + "env": { + "browser": true + }, + "overrides": [ + { + "files": [ "*.test.js" ], + "env": { + "jest": true, + "browser": true + } + } + ] } diff --git a/scm-ui/package.json b/scm-ui/package.json index 6ce2e8880e..20fcb4b523 100644 --- a/scm-ui/package.json +++ b/scm-ui/package.json @@ -3,7 +3,9 @@ "name": "scm-ui", "version": "0.1.0", "private": true, + "main": "src/index.js", "dependencies": { + "@scm-manager/ui-extensions": "^0.0.3", "bulma": "^0.7.1", "classnames": "^2.2.5", "font-awesome": "^4.7.0", @@ -12,14 +14,13 @@ "i18next-browser-languagedetector": "^2.2.2", "i18next-fetch-backend": "^0.1.0", "moment": "^2.22.2", - "react": "^16.4.1", - "react-dom": "^16.4.1", + "react": "^16.4.2", + "react-dom": "^16.4.2", "react-i18next": "^7.9.0", "react-jss": "^8.6.0", "react-redux": "^5.0.7", "react-router-dom": "^4.3.1", "react-router-redux": "^5.0.0-alpha.9", - "react-scripts": "1.1.4", "redux": "^4.0.0", "redux-devtools-extension": "^2.13.5", "redux-logger": "^3.0.6", @@ -28,51 +29,34 @@ "scripts": { "build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive", - "start-js": "react-scripts start", - "start": "npm-run-all -p watch-css start-js", - "build-js": "react-scripts build", - "build": "npm-run-all build-css build-js", - "test": "jest", - "test-coverage": "jest --coverage", - "test-ci": "jest --ci --coverage", - "eject": "react-scripts eject", + "start-js": "ui-bundler serve", + "start": "npm-run-all -p watch-css build-vendor start-js", + "build-js": "ui-bundler bundle target/scm-ui.bundle.js", + "build-vendor": "ui-bundler vendor target/vendor.bundle.js", + "build": "npm-run-all build-css build-vendor build-js", + "test": "ui-bundler test", + "test-ci": "ui-bundler test --ci", "flow": "flow", "pre-commit": "jest && flow && eslint src" }, - "proxy": { - "/scm/api": { - "target": "http://localhost:8081" - } - }, "devDependencies": { + "@scm-manager/ui-bundler": "^0.0.3", + "babel-eslint": "^8.2.6", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", + "eslint": "^5.3.0", + "eslint-plugin-flowtype": "^2.50.0", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-jsx-a11y": "^6.1.1", + "eslint-plugin-react": "^7.10.0", "fetch-mock": "^6.5.0", "flow-bin": "^0.77.0", "flow-typed": "^2.5.1", - "jest-junit": "^5.1.0", + "jest": "^23.5.0", "node-sass-chokidar": "^1.3.0", "npm-run-all": "^4.1.3", "prettier": "^1.13.7", "react-test-renderer": "^16.4.1", "redux-mock-store": "^1.5.3" - }, - "babel": { - "presets": [ - "react-app" - ] - }, - "jest": { - "coverageDirectory": "target/jest-reports/coverage", - "coveragePathIgnorePatterns": [ - "src/tests/.*" - ], - "reporters": [ - "default", - "jest-junit" - ] - }, - "jest-junit": { - "output": "./target/jest-reports/TEST-all.xml" } } diff --git a/scm-ui/src/images/blib.jpg b/scm-ui/public/images/blib.jpg similarity index 100% rename from scm-ui/src/images/blib.jpg rename to scm-ui/public/images/blib.jpg diff --git a/scm-ui/src/images/loading.svg b/scm-ui/public/images/loading.svg similarity index 100% rename from scm-ui/src/images/loading.svg rename to scm-ui/public/images/loading.svg diff --git a/scm-ui/src/images/logo.png b/scm-ui/public/images/logo.png similarity index 100% rename from scm-ui/src/images/logo.png rename to scm-ui/public/images/logo.png diff --git a/scm-ui/public/index.html b/scm-ui/public/index.html index 1891f54ac7..e737e4ffe9 100644 --- a/scm-ui/public/index.html +++ b/scm-ui/public/index.html @@ -8,8 +8,8 @@ manifest.json provides metadata used when your web app is added to the homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ --> - <link rel="manifest" href="%PUBLIC_URL%/manifest.json"> - <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> + <link rel="manifest" href="/manifest.json"> + <link rel="shortcut icon" href="/favicon.ico"> <!-- Notice the use of %PUBLIC_URL% in the tags above. It will be replaced with the URL of the `public` folder during the build. @@ -19,6 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> + <base href="/"> <title>SCM-Manager @@ -36,5 +37,8 @@ To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> + + + diff --git a/scm-ui/src/apiclient.js b/scm-ui/src/apiclient.js index f8cfc4db70..0ef0182120 100644 --- a/scm-ui/src/apiclient.js +++ b/scm-ui/src/apiclient.js @@ -1,7 +1,7 @@ // @flow // get api base url from environment -const apiUrl = process.env.API_URL || process.env.PUBLIC_URL || "/scm"; +const apiUrl = process.env.API_URL || process.env.PUBLIC_URL || ""; export const NOT_FOUND_ERROR = Error("not found"); export const UNAUTHORIZED_ERROR = Error("unauthorized"); diff --git a/scm-ui/src/apiclient.test.js b/scm-ui/src/apiclient.test.js index 15c1904ca4..7bbb3b0119 100644 --- a/scm-ui/src/apiclient.test.js +++ b/scm-ui/src/apiclient.test.js @@ -9,7 +9,7 @@ describe("create url", () => { }); it("should add prefix for api", () => { - expect(createUrl("/users")).toBe("/scm/api/rest/v2/users"); - expect(createUrl("users")).toBe("/scm/api/rest/v2/users"); + expect(createUrl("/users")).toBe("/api/rest/v2/users"); + expect(createUrl("users")).toBe("/api/rest/v2/users"); }); }); diff --git a/scm-ui/src/components/Loading.js b/scm-ui/src/components/Loading.js index 88fe427941..0cf0d16fbe 100644 --- a/scm-ui/src/components/Loading.js +++ b/scm-ui/src/components/Loading.js @@ -2,7 +2,6 @@ import React from "react"; import { translate } from "react-i18next"; import injectSheet from "react-jss"; -import Image from "../images/loading.svg"; const styles = { wrapper: { @@ -35,7 +34,11 @@ class Loading extends React.Component { return (
- {t("loading.alt")} + {t("loading.alt")}
); diff --git a/scm-ui/src/components/Logo.js b/scm-ui/src/components/Logo.js index 8dac21309f..d41f1e9cf9 100644 --- a/scm-ui/src/components/Logo.js +++ b/scm-ui/src/components/Logo.js @@ -1,7 +1,6 @@ //@flow import React from "react"; import { translate } from "react-i18next"; -import Image from "../images/logo.png"; type Props = { t: string => string @@ -10,7 +9,7 @@ type Props = { class Logo extends React.Component { render() { const { t } = this.props; - return {t("logo.alt")}; + return {t("logo.alt")}; } } diff --git a/scm-ui/src/containers/App.js b/scm-ui/src/containers/App.js index 360aa875a9..5318b6716d 100644 --- a/scm-ui/src/containers/App.js +++ b/scm-ui/src/containers/App.js @@ -12,7 +12,8 @@ import { } from "../modules/auth"; import "./App.css"; -import "font-awesome/css/font-awesome.css"; +// TODO ??? +// import "font-awesome/css/font-awesome.css"; import "../components/modals/ConfirmAlert.css"; import { PrimaryNavigation } from "../components/navigation"; import Loading from "../components/Loading"; diff --git a/scm-ui/src/containers/Login.js b/scm-ui/src/containers/Login.js index 2a895b04f2..8735f1bdcb 100644 --- a/scm-ui/src/containers/Login.js +++ b/scm-ui/src/containers/Login.js @@ -15,7 +15,6 @@ import { InputField } from "../components/forms"; import { SubmitButton } from "../components/buttons"; import classNames from "classnames"; -import Avatar from "../images/blib.jpg"; import ErrorNotification from "../components/ErrorNotification"; const styles = { @@ -108,7 +107,7 @@ class Login extends React.Component {
{t("login.logo-alt")}
diff --git a/scm-ui/src/groups/modules/groups.test.js b/scm-ui/src/groups/modules/groups.test.js index 6914590f35..6f3ce36ad0 100644 --- a/scm-ui/src/groups/modules/groups.test.js +++ b/scm-ui/src/groups/modules/groups.test.js @@ -44,7 +44,7 @@ import reducer, { MODIFY_GROUP_SUCCESS, MODIFY_GROUP_FAILURE } from "./groups"; -const GROUPS_URL = "/scm/api/rest/v2/groups"; +const GROUPS_URL = "/api/rest/v2/groups"; const error = new Error("You have an error!"); @@ -57,13 +57,13 @@ const humanGroup = { members: ["userZaphod"], _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/groups/humanGroup" + href: "http://localhost:8081/api/rest/v2/groups/humanGroup" }, delete: { - href: "http://localhost:8081/scm/api/rest/v2/groups/humanGroup" + href: "http://localhost:8081/api/rest/v2/groups/humanGroup" }, update: { - href:"http://localhost:8081/scm/api/rest/v2/groups/humanGroup" + href:"http://localhost:8081/api/rest/v2/groups/humanGroup" } }, _embedded: { @@ -72,7 +72,7 @@ const humanGroup = { name: "userZaphod", _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/users/userZaphod" + href: "http://localhost:8081/api/rest/v2/users/userZaphod" } } } @@ -89,13 +89,13 @@ const emptyGroup = { members: [], _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/groups/emptyGroup" + href: "http://localhost:8081/api/rest/v2/groups/emptyGroup" }, delete: { - href: "http://localhost:8081/scm/api/rest/v2/groups/emptyGroup" + href: "http://localhost:8081/api/rest/v2/groups/emptyGroup" }, update: { - href:"http://localhost:8081/scm/api/rest/v2/groups/emptyGroup" + href:"http://localhost:8081/api/rest/v2/groups/emptyGroup" } }, _embedded: { @@ -108,16 +108,16 @@ const responseBody = { pageTotal: 1, _links: { self: { - href: "http://localhost:3000/scm/api/rest/v2/groups/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/groups/?page=0&pageSize=10" }, first: { - href: "http://localhost:3000/scm/api/rest/v2/groups/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/groups/?page=0&pageSize=10" }, last: { - href: "http://localhost:3000/scm/api/rest/v2/groups/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/groups/?page=0&pageSize=10" }, create: { - href: "http://localhost:3000/scm/api/rest/v2/groups/" + href: "http://localhost:3000/api/rest/v2/groups/" } }, _embedded: { @@ -244,7 +244,7 @@ describe("groups fetch()", () => { }); it("should successfully modify group", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 204 }); @@ -259,7 +259,7 @@ describe("groups fetch()", () => { }) it("should call the callback after modifying group", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 204 }); @@ -278,7 +278,7 @@ describe("groups fetch()", () => { }) it("should fail modifying group on HTTP 500", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 500 }); @@ -293,7 +293,7 @@ describe("groups fetch()", () => { }) it("should delete successfully group humanGroup", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 204 }); @@ -308,7 +308,7 @@ describe("groups fetch()", () => { }); it("should call the callback, after successful delete", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 204 }); @@ -324,7 +324,7 @@ describe("groups fetch()", () => { }); it("should fail to delete group humanGroup", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/groups/humanGroup", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/groups/humanGroup", { status: 500 }); diff --git a/scm-ui/src/i18n.js b/scm-ui/src/i18n.js index cb8705a746..67ba1a4c84 100644 --- a/scm-ui/src/i18n.js +++ b/scm-ui/src/i18n.js @@ -3,7 +3,8 @@ import Backend from "i18next-fetch-backend"; import LanguageDetector from "i18next-browser-languagedetector"; import { reactI18nextModule } from "react-i18next"; -const loadPath = process.env.PUBLIC_URL + "/locales/{{lng}}/{{ns}}.json"; +const loadPath = + (process.env.PUBLIC_URL || "") + "/locales/{{lng}}/{{ns}}.json"; // TODO load locales for moment diff --git a/scm-ui/src/modules/auth.test.js b/scm-ui/src/modules/auth.test.js index f994e8f657..98691e85ac 100644 --- a/scm-ui/src/modules/auth.test.js +++ b/scm-ui/src/modules/auth.test.js @@ -78,7 +78,7 @@ describe("auth actions", () => { }); it("should dispatch login success and dispatch fetch me", () => { - fetchMock.postOnce("/scm/api/rest/v2/auth/access_token", { + fetchMock.postOnce("/api/rest/v2/auth/access_token", { body: { cookie: true, grant_type: "password", @@ -88,7 +88,7 @@ describe("auth actions", () => { headers: { "content-type": "application/json" } }); - fetchMock.getOnce("/scm/api/rest/v2/me", { + fetchMock.getOnce("/api/rest/v2/me", { body: me, headers: { "content-type": "application/json" } }); @@ -106,7 +106,7 @@ describe("auth actions", () => { }); it("should dispatch login failure", () => { - fetchMock.postOnce("/scm/api/rest/v2/auth/access_token", { + fetchMock.postOnce("/api/rest/v2/auth/access_token", { status: 400 }); @@ -120,7 +120,7 @@ describe("auth actions", () => { }); it("should dispatch fetch me success", () => { - fetchMock.getOnce("/scm/api/rest/v2/me", { + fetchMock.getOnce("/api/rest/v2/me", { body: me, headers: { "content-type": "application/json" } }); @@ -141,7 +141,7 @@ describe("auth actions", () => { }); it("should dispatch fetch me failure", () => { - fetchMock.getOnce("/scm/api/rest/v2/me", { + fetchMock.getOnce("/api/rest/v2/me", { status: 500 }); @@ -155,7 +155,7 @@ describe("auth actions", () => { }); it("should dispatch fetch me unauthorized", () => { - fetchMock.getOnce("/scm/api/rest/v2/me", { + fetchMock.getOnce("/api/rest/v2/me", { status: 401 }); @@ -173,11 +173,11 @@ describe("auth actions", () => { }); it("should dispatch logout success", () => { - fetchMock.deleteOnce("/scm/api/rest/v2/auth/access_token", { + fetchMock.deleteOnce("/api/rest/v2/auth/access_token", { status: 204 }); - fetchMock.getOnce("/scm/api/rest/v2/me", { + fetchMock.getOnce("/api/rest/v2/me", { status: 401 }); @@ -194,7 +194,7 @@ describe("auth actions", () => { }); it("should dispatch logout failure", () => { - fetchMock.deleteOnce("/scm/api/rest/v2/auth/access_token", { + fetchMock.deleteOnce("/api/rest/v2/auth/access_token", { status: 500 }); diff --git a/scm-ui/src/repos/components/list/RepositoryEntry.js b/scm-ui/src/repos/components/list/RepositoryEntry.js index 99d59020ce..b9e1d533d7 100644 --- a/scm-ui/src/repos/components/list/RepositoryEntry.js +++ b/scm-ui/src/repos/components/list/RepositoryEntry.js @@ -7,8 +7,6 @@ import DateFromNow from "../../../components/DateFromNow"; import RepositoryEntryLink from "./RepositoryEntryLink"; import classNames from "classnames"; -import icon from "../../../images/blib.jpg"; - const styles = { outer: { position: "relative" @@ -86,7 +84,7 @@ class RepositoryEntry extends React.Component {

- Logo + Logo

diff --git a/scm-ui/src/repos/modules/repos.test.js b/scm-ui/src/repos/modules/repos.test.js index 75efb69ad7..b58879e4b8 100644 --- a/scm-ui/src/repos/modules/repos.test.js +++ b/scm-ui/src/repos/modules/repos.test.js @@ -58,36 +58,33 @@ const hitchhikerPuzzle42: Repository = { type: "svn", _links: { self: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42" + href: "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42" }, delete: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42" + href: "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42" }, update: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42" + href: "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42" }, permissions: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42/permissions/" }, tags: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/tags/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42/tags/" }, branches: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/branches/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42/branches/" }, changesets: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/changesets/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42/changesets/" }, sources: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/puzzle42/sources/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/puzzle42/sources/" } } }; @@ -103,35 +100,35 @@ const hitchhikerRestatend: Repository = { _links: { self: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend" }, delete: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend" }, update: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend" }, permissions: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend/permissions/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend/permissions/" }, tags: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend/tags/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend/tags/" }, branches: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend/branches/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend/branches/" }, changesets: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend/changesets/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend/changesets/" }, sources: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/hitchhiker/restatend/sources/" + "http://localhost:8081/api/rest/v2/repositories/hitchhiker/restatend/sources/" } } }; @@ -145,33 +142,32 @@ const slartiFjords: Repository = { creationDate: "2018-07-31T08:59:05.653Z", _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords" + href: "http://localhost:8081/api/rest/v2/repositories/slarti/fjords" }, delete: { - href: "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords" + href: "http://localhost:8081/api/rest/v2/repositories/slarti/fjords" }, update: { - href: "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords" + href: "http://localhost:8081/api/rest/v2/repositories/slarti/fjords" }, permissions: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords/permissions/" + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords/permissions/" }, tags: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords/tags/" + href: "http://localhost:8081/api/rest/v2/repositories/slarti/fjords/tags/" }, branches: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords/branches/" + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords/branches/" }, changesets: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords/changesets/" + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords/changesets/" }, sources: { href: - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords/sources/" + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords/sources/" } } }; @@ -181,19 +177,16 @@ const repositoryCollection: RepositoryCollection = { pageTotal: 1, _links: { self: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, first: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, last: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, create: { - href: "http://localhost:8081/scm/api/rest/v2/repositories/" + href: "http://localhost:8081/api/rest/v2/repositories/" } }, _embedded: { @@ -206,19 +199,16 @@ const repositoryCollectionWithNames: RepositoryCollection = { pageTotal: 1, _links: { self: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, first: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, last: { - href: - "http://localhost:8081/scm/api/rest/v2/repositories/?page=0&pageSize=10" + href: "http://localhost:8081/api/rest/v2/repositories/?page=0&pageSize=10" }, create: { - href: "http://localhost:8081/scm/api/rest/v2/repositories/" + href: "http://localhost:8081/api/rest/v2/repositories/" } }, _embedded: { @@ -231,7 +221,7 @@ const repositoryCollectionWithNames: RepositoryCollection = { }; describe("repos fetch", () => { - const REPOS_URL = "/scm/api/rest/v2/repositories"; + const REPOS_URL = "/api/rest/v2/repositories"; const SORT = "sortBy=namespaceAndName"; const REPOS_URL_WITH_SORT = REPOS_URL + "?" + SORT; const mockStore = configureMockStore([thunk]); @@ -303,7 +293,7 @@ describe("repos fetch", () => { it("should append sortby parameter and successfully fetch repos from link", () => { fetchMock.getOnce( - "/scm/api/rest/v2/repositories?one=1&sortBy=namespaceAndName", + "/api/rest/v2/repositories?one=1&sortBy=namespaceAndName", repositoryCollection ); @@ -431,7 +421,7 @@ describe("repos fetch", () => { it("should successfully delete repo slarti/fjords", () => { fetchMock.delete( - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords", + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords", { status: 204 } @@ -458,7 +448,7 @@ describe("repos fetch", () => { it("should successfully delete repo slarti/fjords and call the callback", () => { fetchMock.delete( - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords", + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords", { status: 204 } @@ -478,7 +468,7 @@ describe("repos fetch", () => { it("should disapatch failure on delete, if server returns status code 500", () => { fetchMock.delete( - "http://localhost:8081/scm/api/rest/v2/repositories/slarti/fjords", + "http://localhost:8081/api/rest/v2/repositories/slarti/fjords", { status: 500 } diff --git a/scm-ui/src/repos/modules/repositoryTypes.test.js b/scm-ui/src/repos/modules/repositoryTypes.test.js index 1f29bfa77f..0842333484 100644 --- a/scm-ui/src/repos/modules/repositoryTypes.test.js +++ b/scm-ui/src/repos/modules/repositoryTypes.test.js @@ -22,7 +22,7 @@ const git = { displayName: "Git", _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/repositoryTypes/git" + href: "http://localhost:8081/api/rest/v2/repositoryTypes/git" } } }; @@ -32,7 +32,7 @@ const hg = { displayName: "Mercurial", _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/repositoryTypes/hg" + href: "http://localhost:8081/api/rest/v2/repositoryTypes/hg" } } }; @@ -42,7 +42,7 @@ const svn = { displayName: "Subversion", _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/repositoryTypes/svn" + href: "http://localhost:8081/api/rest/v2/repositoryTypes/svn" } } }; @@ -53,7 +53,7 @@ const collection = { }, _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/repositoryTypes" + href: "http://localhost:8081/api/rest/v2/repositoryTypes" } } }; @@ -97,7 +97,7 @@ describe("repository types caching", () => { }); describe("repository types fetch", () => { - const URL = "/scm/api/rest/v2/repositoryTypes"; + const URL = "/api/rest/v2/repositoryTypes"; const mockStore = configureMockStore([thunk]); afterEach(() => { diff --git a/scm-ui/src/users/modules/users.test.js b/scm-ui/src/users/modules/users.test.js index d638e060a6..895e28a7b0 100644 --- a/scm-ui/src/users/modules/users.test.js +++ b/scm-ui/src/users/modules/users.test.js @@ -61,13 +61,13 @@ const userZaphod = { properties: {}, _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/users/zaphod" + href: "http://localhost:8081/api/rest/v2/users/zaphod" }, delete: { - href: "http://localhost:8081/scm/api/rest/v2/users/zaphod" + href: "http://localhost:8081/api/rest/v2/users/zaphod" }, update: { - href: "http://localhost:8081/scm/api/rest/v2/users/zaphod" + href: "http://localhost:8081/api/rest/v2/users/zaphod" } } }; @@ -84,13 +84,13 @@ const userFord = { properties: {}, _links: { self: { - href: "http://localhost:8081/scm/api/rest/v2/users/ford" + href: "http://localhost:8081/api/rest/v2/users/ford" }, delete: { - href: "http://localhost:8081/scm/api/rest/v2/users/ford" + href: "http://localhost:8081/api/rest/v2/users/ford" }, update: { - href: "http://localhost:8081/scm/api/rest/v2/users/ford" + href: "http://localhost:8081/api/rest/v2/users/ford" } } }; @@ -100,16 +100,16 @@ const responseBody = { pageTotal: 1, _links: { self: { - href: "http://localhost:3000/scm/api/rest/v2/users/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/users/?page=0&pageSize=10" }, first: { - href: "http://localhost:3000/scm/api/rest/v2/users/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/users/?page=0&pageSize=10" }, last: { - href: "http://localhost:3000/scm/api/rest/v2/users/?page=0&pageSize=10" + href: "http://localhost:3000/api/rest/v2/users/?page=0&pageSize=10" }, create: { - href: "http://localhost:3000/scm/api/rest/v2/users/" + href: "http://localhost:3000/api/rest/v2/users/" } }, _embedded: { @@ -122,7 +122,7 @@ const response = { responseBody }; -const USERS_URL = "/scm/api/rest/v2/users"; +const USERS_URL = "/api/rest/v2/users"; const error = new Error("KAPUTT"); @@ -241,7 +241,7 @@ describe("users fetch()", () => { }); it("successfully update user", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 204 }); @@ -255,7 +255,7 @@ describe("users fetch()", () => { }); it("should call callback, after successful modified user", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 204 }); @@ -271,7 +271,7 @@ describe("users fetch()", () => { }); it("should fail updating user on HTTP 500", () => { - fetchMock.putOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.putOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 500 }); @@ -285,7 +285,7 @@ describe("users fetch()", () => { }); it("should delete successfully user zaphod", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 204 }); @@ -300,7 +300,7 @@ describe("users fetch()", () => { }); it("should call the callback, after successful delete", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 204 }); @@ -316,7 +316,7 @@ describe("users fetch()", () => { }); it("should fail to delete user zaphod", () => { - fetchMock.deleteOnce("http://localhost:8081/scm/api/rest/v2/users/zaphod", { + fetchMock.deleteOnce("http://localhost:8081/api/rest/v2/users/zaphod", { status: 500 }); diff --git a/scm-ui/yarn.lock b/scm-ui/yarn.lock index 08df201c59..a9f77fa1c5 100644 --- a/scm-ui/yarn.lock +++ b/scm-ui/yarn.lock @@ -2,10 +2,698 @@ # yarn lockfile v1 -"@octokit/rest@^15.2.6": - version "15.9.4" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-15.9.4.tgz#c6cf0f483275d9c798b18419b7c9d417493bb70f" +"@babel/code-frame@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9" dependencies: + "@babel/highlight" "7.0.0-beta.44" + +"@babel/code-frame@7.0.0-rc.2", "@babel/code-frame@^7.0.0-beta.35": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.2.tgz#12b6daeb408238360744649d16c0e9fa7ab3859e" + dependencies: + "@babel/highlight" "7.0.0-rc.2" + +"@babel/core@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-rc.2.tgz#dcb46b3adb63e35b1e82c35d9130d9c27be58427" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helpers" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + convert-source-map "^1.1.0" + debug "^3.1.0" + json5 "^0.5.0" + lodash "^4.17.10" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42" + dependencies: + "@babel/types" "7.0.0-beta.44" + jsesc "^2.5.1" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-rc.2.tgz#7aed8fb4ef1bdcc168225096b5b431744ba76bf8" + dependencies: + "@babel/types" "7.0.0-rc.2" + jsesc "^2.5.1" + lodash "^4.17.10" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-rc.2.tgz#490fa0e8cfe11305c3310485221c958817957cc7" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-rc.2.tgz#47904c65b4059893be8b9d16bfeac320df601ffa" + dependencies: + "@babel/helper-explode-assignable-expression" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-builder-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-rc.2.tgz#ba4018ba4d5ab50e24330c3e98bbbebd7286dbf0" + dependencies: + "@babel/types" "7.0.0-rc.2" + esutils "^2.0.0" + +"@babel/helper-call-delegate@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-rc.2.tgz#faa254987fc3b5b90a4dc366d9f65f9a1b083174" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-define-map@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-rc.2.tgz#68f19b9f125a0985e7b81841b35cddb1e4ae1c6e" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/helper-explode-assignable-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-rc.2.tgz#df9a0094aca800e3b40a317a1b3d434a61ee158f" + dependencies: + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-function-name@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-beta.44" + "@babel/template" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + +"@babel/helper-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-rc.2.tgz#ad7bb9df383c5f53e4bf38c0fe0c7f93e6a27729" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-get-function-arity@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15" + dependencies: + "@babel/types" "7.0.0-beta.44" + +"@babel/helper-get-function-arity@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-rc.2.tgz#323cb82e2d805b40c0c36be1dfcb8ffcbd0434f3" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-hoist-variables@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-rc.2.tgz#4bc902f06545b60d10f2fa1058a99730df6197b4" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-member-expression-to-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-rc.2.tgz#5a9c585f86a35428860d8c93a315317ba565106c" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-module-imports@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-rc.2.tgz#982f30e71431d3ea7e00b1b48da774c60470a21d" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-module-transforms@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-rc.2.tgz#d9b2697790875a014282973ed74343bb3ad3c7c5" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/helper-optimise-call-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-rc.2.tgz#6ddfecaf9470f96de38704223646d9c20dcc2377" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-plugin-utils@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.2.tgz#95bc3225bf6aeda5a5ebc90af2546b5b9317c0b4" + +"@babel/helper-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-rc.2.tgz#445d802c3c50cb146a93458f421c77a7f041b495" + dependencies: + lodash "^4.17.10" + +"@babel/helper-remap-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-rc.2.tgz#2025ec555eed8275fcbe24532ab1f083ff973707" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-wrap-function" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-replace-supers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-rc.2.tgz#dcf619512a2171e35c0494aeb539a621f6ce7de2" + dependencies: + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-simple-access@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-rc.2.tgz#34043948cda9e6b883527bb827711bd427fea914" + dependencies: + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-split-export-declaration@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz#c0b351735e0fbcb3822c8ad8db4e583b05ebd9dc" + dependencies: + "@babel/types" "7.0.0-beta.44" + +"@babel/helper-split-export-declaration@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-rc.2.tgz#726b2dec4e46baeab32db67caa6e88b6521464f8" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-wrap-function@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-rc.2.tgz#788cd70072254eefd33fc1f3936ba24cced28f48" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helpers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-rc.2.tgz#e21f54451824f55b4f5022c6e9d6fa7df65e8746" + dependencies: + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/highlight@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.44.tgz#18c94ce543916a80553edcdcf681890b200747d5" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +"@babel/highlight@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.2.tgz#0af688a69e3709d9cf392e1837cda18c08d34d4f" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + +"@babel/parser@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-rc.2.tgz#a98c01af5834e71d48a5108e3aeeee333cdf26c4" + +"@babel/plugin-proposal-async-generator-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-rc.2.tgz#0f3b63fa74a8ffcd9cf1f4821a4725d2696a8622" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" + +"@babel/plugin-proposal-class-properties@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.0.0-rc.2.tgz#71f4f2297ec9c0848b57c231ef913bc83d49d85a" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/plugin-syntax-class-properties" "7.0.0-rc.2" + +"@babel/plugin-proposal-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.0.0-rc.2.tgz#ea4fd95eb00877e138e3e9f19969e66d9d47b3eb" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-json-strings" "7.0.0-rc.2" + +"@babel/plugin-proposal-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-rc.2.tgz#5552e7a4c80cde25f28dfcc6d050831d1d88a01f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + +"@babel/plugin-proposal-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-rc.2.tgz#61c5968932b6d1e9e5f028b3476f8d55bc317e1f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + +"@babel/plugin-proposal-unicode-property-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-rc.2.tgz#6be37bb04dab59745c2a5e9f0472f8d5f6178330" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.2.0" + +"@babel/plugin-syntax-async-generators@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-rc.2.tgz#2d1726dd0b4d375e1c16fcb983ab4d89c0eeb2b3" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-class-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.0.0-rc.2.tgz#3ecbb8ba2878f07fdc350f7b7bf4bb88d071e846" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-flow@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-rc.2.tgz#9a7538905383db328d6c36507ec05c9f89f2f8ab" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0-rc.2.tgz#6c16304a379620034190c06b50da3812351967f2" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-rc.2.tgz#c070fd6057ad85c43ba4e7819723e28e760824ff" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-rc.2.tgz#551e2e0a8916d63b4ddf498afde649c8a7eee1b5" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-rc.2.tgz#8c752fe1a79490682a32836cefe03c3bd49d2180" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-arrow-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-rc.2.tgz#ab00f72ea24535dc47940962c3a96c656f4335c8" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-rc.2.tgz#44a125e68baf24d617a9e48a4fc518371633ebf3" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoped-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-rc.2.tgz#953fa99802af1045b607b0f1cb2235419ee78482" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoping@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-rc.2.tgz#ce5aaebaabde05af5ee2e0bdaccc7727bb4566a6" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/plugin-transform-classes@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-rc.2.tgz#900550c5fcd76e42a6f72b0e8661e82d6e36ceb5" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-define-map" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-rc.2.tgz#06e61765c350368c61eadbe0cd37c6835c21e665" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-destructuring@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-rc.2.tgz#ef82b75032275e2eaeba5cf4719b12b8263320b4" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-dotall-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-rc.2.tgz#012766ab7dcdf6afea5b3a1366f3e6fff368a37f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.1.3" + +"@babel/plugin-transform-duplicate-keys@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-rc.2.tgz#d60eeb2ff7ed31b9e691c880a97dc2e8f7b0dd95" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-exponentiation-operator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-rc.2.tgz#171a4b44c5bb8ba9a57190f65f87f8da045d1db3" + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-flow-strip-types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-rc.2.tgz#87c482c195a3a5e2b8d392928db386a2b034c224" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-flow" "7.0.0-rc.2" + +"@babel/plugin-transform-for-of@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-rc.2.tgz#2ef81a326faf68fb7eca37a3ebf45c5426f84bae" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-rc.2.tgz#c69c2241fdf3b8430bd6b98d06d7097e91b01bff" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-rc.2.tgz#a4475d70d91c7dbed6c4ee280b3b1bfcd8221324" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-amd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-rc.2.tgz#f3c37e6de732c8ac07df01ea164cf976409de469" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-commonjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-rc.2.tgz#f6475129473b635bd68cbbab69448c76eb52718c" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-systemjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-rc.2.tgz#ced5ac5556f0e6068b1c5d600bff2e68004038ee" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-umd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-rc.2.tgz#0e6eeb1e9138064a2ef28991bf03fa4d14536410" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-new-target@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-rc.2.tgz#5b70d3e202a4d677ba6b12762395a85cb1ddc935" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-object-super@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-rc.2.tgz#2c521240b3f817a4d08915022d1d889ee1ff10ec" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + +"@babel/plugin-transform-parameters@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-rc.2.tgz#5f81577721a3ce6ebc0bdc572209f75e3b723e3d" + dependencies: + "@babel/helper-call-delegate" "7.0.0-rc.2" + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-react-display-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-rc.2.tgz#b8a4ee0e098abefbbbd9386db703deaca54429a7" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx-self@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.0.0-rc.2.tgz#12ed61957d968a0f9c694064f720f7f4246ce980" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx-source@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-rc.2.tgz#b67ab723b83eb58cbb58041897c7081392355430" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-rc.2.tgz#43f40c43c3c09a4304b1e82b04ff69acf13069c1" + dependencies: + "@babel/helper-builder-react-jsx" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-regenerator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-rc.2.tgz#35c26152b0ddff76d93ca1fcf55417b16111ade8" + dependencies: + regenerator-transform "^0.13.3" + +"@babel/plugin-transform-shorthand-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-rc.2.tgz#b920f4ffdcc4bbe75917cfb2e22f685a6771c231" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-rc.2.tgz#827e032c206c9f08d01d3d43bb8800e573b3a501" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-sticky-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-rc.2.tgz#b9febc20c1624455e8d5ca1008fb32315e3a414b" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + +"@babel/plugin-transform-template-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-rc.2.tgz#89d701611bff91cceb478542921178f83f5a70c6" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-typeof-symbol@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-rc.2.tgz#3c9a0721f54ad8bbc8f469b6720304d843fd1ebe" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-unicode-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-rc.2.tgz#6bc3d9e927151baa3c3715d3c46316ac3d8b4a2e" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.1.3" + +"@babel/preset-env@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-rc.2.tgz#66f7ed731234b67ee9a6189f1df60203873ac98b" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-proposal-async-generator-functions" "7.0.0-rc.2" + "@babel/plugin-proposal-json-strings" "7.0.0-rc.2" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-proposal-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-proposal-unicode-property-regex" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-transform-arrow-functions" "7.0.0-rc.2" + "@babel/plugin-transform-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoped-functions" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoping" "7.0.0-rc.2" + "@babel/plugin-transform-classes" "7.0.0-rc.2" + "@babel/plugin-transform-computed-properties" "7.0.0-rc.2" + "@babel/plugin-transform-destructuring" "7.0.0-rc.2" + "@babel/plugin-transform-dotall-regex" "7.0.0-rc.2" + "@babel/plugin-transform-duplicate-keys" "7.0.0-rc.2" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-rc.2" + "@babel/plugin-transform-for-of" "7.0.0-rc.2" + "@babel/plugin-transform-function-name" "7.0.0-rc.2" + "@babel/plugin-transform-literals" "7.0.0-rc.2" + "@babel/plugin-transform-modules-amd" "7.0.0-rc.2" + "@babel/plugin-transform-modules-commonjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-systemjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-umd" "7.0.0-rc.2" + "@babel/plugin-transform-new-target" "7.0.0-rc.2" + "@babel/plugin-transform-object-super" "7.0.0-rc.2" + "@babel/plugin-transform-parameters" "7.0.0-rc.2" + "@babel/plugin-transform-regenerator" "7.0.0-rc.2" + "@babel/plugin-transform-shorthand-properties" "7.0.0-rc.2" + "@babel/plugin-transform-spread" "7.0.0-rc.2" + "@babel/plugin-transform-sticky-regex" "7.0.0-rc.2" + "@babel/plugin-transform-template-literals" "7.0.0-rc.2" + "@babel/plugin-transform-typeof-symbol" "7.0.0-rc.2" + "@babel/plugin-transform-unicode-regex" "7.0.0-rc.2" + browserslist "^3.0.0" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.3.0" + +"@babel/preset-flow@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0-rc.2.tgz#415539cd74968b1d2ae5b53fe9572f8d16a355b9" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-flow-strip-types" "7.0.0-rc.2" + +"@babel/preset-react@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0-rc.2.tgz#5430f089db83095df4cf134b2e8e8c39619ca60c" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-react-display-name" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-self" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-source" "7.0.0-rc.2" + +"@babel/template@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.44.tgz#f8832f4fdcee5d59bf515e595fc5106c529b394f" + dependencies: + "@babel/code-frame" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + lodash "^4.2.0" + +"@babel/template@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-rc.2.tgz#53f6be6c1336ddc7744625c9bdca9d10be5d5d72" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/traverse@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966" + dependencies: + "@babel/code-frame" "7.0.0-beta.44" + "@babel/generator" "7.0.0-beta.44" + "@babel/helper-function-name" "7.0.0-beta.44" + "@babel/helper-split-export-declaration" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + debug "^3.1.0" + globals "^11.1.0" + invariant "^2.2.0" + lodash "^4.2.0" + +"@babel/traverse@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-rc.2.tgz#6e54ebe82aa1b3b3cf5ec05594bc14d7c59c9766" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + debug "^3.1.0" + globals "^11.1.0" + lodash "^4.17.10" + +"@babel/types@7.0.0-beta.44": + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757" + dependencies: + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^2.0.0" + +"@babel/types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-rc.2.tgz#8e025b78764cee8751823e308558a3ca144ebd9d" + dependencies: + esutils "^2.0.2" + lodash "^4.17.10" + to-fast-properties "^2.0.0" + +"@gimenete/type-writer@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@gimenete/type-writer/-/type-writer-0.1.3.tgz#2d4f26118b18d71f5b34ca24fdd6d1fd455c05b6" + dependencies: + camelcase "^5.0.0" + prettier "^1.13.7" + +"@octokit/rest@^15.2.6": + version "15.10.0" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-15.10.0.tgz#9baf7430e55edf1a1024c35ae72ed2f5fc6e90e9" + dependencies: + "@gimenete/type-writer" "^0.1.3" before-after-hook "^1.1.0" btoa-lite "^1.0.0" debug "^3.1.0" @@ -15,81 +703,95 @@ node-fetch "^2.1.1" url-template "^2.0.8" -"@types/node@*": - version "10.5.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.5.2.tgz#f19f05314d5421fe37e74153254201a7bf00a707" +"@scm-manager/ui-bundler@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" + dependencies: + "@babel/core" "^7.0.0-rc.2" + "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" + "@babel/preset-env" "^7.0.0-rc.2" + "@babel/preset-flow" "^7.0.0-rc.2" + "@babel/preset-react" "^7.0.0-rc.2" + babel-core "^7.0.0-0" + babel-jest "^23.4.2" + babelify "^9.0.0" + browserify "^16.2.2" + browserify-css "^0.14.0" + budo "^11.3.2" + colors "^1.3.1" + commander "^2.17.1" + jest "^23.5.0" + jest-junit "^5.1.0" + node-mkdirs "^0.0.1" + pom-parser "^1.1.1" -abab@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" +"@scm-manager/ui-extensions@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.3.tgz#0dccc3132105ecff579fa389ea18fc2b40c19c96" + dependencies: + react "^16.4.2" + react-dom "^16.4.2" + +"@types/node@*": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.7.1.tgz#b704d7c259aa40ee052eec678758a68d07132a2e" + +JSONStream@^1.0.3: + version "1.3.4" + resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.4.tgz#615bb2adb0cd34c8f4c447b5f6512fa1d8f16a2e" + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + +abab@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" -accepts@~1.3.4, accepts@~1.3.5: - version "1.3.5" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2" +acorn-dynamic-import@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" dependencies: - mime-types "~2.1.18" - negotiator "0.6.1" + acorn "^5.0.0" -acorn-dynamic-import@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" +acorn-globals@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.1.0.tgz#ab716025dbe17c54d3ef81d32ece2b2d99fe2538" dependencies: - acorn "^4.0.3" + acorn "^5.0.0" -acorn-globals@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" +acorn-jsx@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-4.1.1.tgz#e8e41e48ea2fe0c896740610ab6a4ffd8add225e" dependencies: - acorn "^4.0.4" + acorn "^5.0.3" -acorn-jsx@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" +acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.5.2.tgz#2ca723df19d997b05824b69f6c7fb091fc42c322" dependencies: - acorn "^3.0.4" + acorn "^5.7.1" + acorn-dynamic-import "^3.0.0" + xtend "^4.0.1" -acorn@^3.0.4: - version "3.3.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" - -acorn@^4.0.3, acorn@^4.0.4: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.0.0, acorn@^5.5.0: +acorn@^5.0.0, acorn@^5.0.3, acorn@^5.5.3, acorn@^5.6.0, acorn@^5.7.1: version "5.7.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8" -address@1.0.3, address@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/address/-/address-1.0.3.tgz#b5f50631f8d6cec8bd20c963963afb55e06cbce9" - agent-base@4, agent-base@^4.1.0: version "4.2.1" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9" dependencies: es6-promisify "^5.0.0" -ajv-keywords@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762" - ajv-keywords@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a" -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5, ajv@^5.2.0: +ajv@^5.1.0, ajv@^5.3.0: version "5.5.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" dependencies: @@ -98,14 +800,14 @@ ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5, ajv@^5.2.0: fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.3.0" -ajv@^6.0.1: - version "6.5.2" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.2.tgz#678495f9b82f7cca6be248dd92f59bff5e1f4360" +ajv@^6.0.1, ajv@^6.5.0: + version "6.5.3" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.3.tgz#71a569d189ecf4f4f321224fecb166f071dd90f9" dependencies: fast-deep-equal "^2.0.1" fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.4.1" - uri-js "^4.2.1" + uri-js "^4.2.2" align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" @@ -115,33 +817,19 @@ align-text@^0.1.1, align-text@^0.1.3: longest "^1.0.1" repeat-string "^1.5.2" -alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" - amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" -ansi-align@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" - dependencies: - string-width "^2.0.0" - -ansi-escapes@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" - ansi-escapes@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" -ansi-html@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" +ansi-regex@^0.2.0, ansi-regex@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9" -ansi-regex@^2.0.0, ansi-regex@^2.1.1: +ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -149,11 +837,19 @@ ansi-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" +ansi-styles@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.0.1.tgz#b033f57f93e2d28adeb8bc11138fa13da0fd20a3" + +ansi-styles@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" + ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" -ansi-styles@^3.0.0, ansi-styles@^3.2.0, ansi-styles@^3.2.1: +ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" dependencies: @@ -196,9 +892,9 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -aria-query@^0.7.0: - version "0.7.1" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.7.1.tgz#26cbb5aff64144b0a825be1846e0b16cfa00b11e" +aria-query@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-3.0.0.tgz#65b3fcc1ca1155a8c9ae64d6eee297f15d5133cc" dependencies: ast-types-flow "0.0.7" commander "^2.11.0" @@ -233,14 +929,6 @@ array-find-index@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - -array-flatten@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.1.tgz#426bb9da84090c1838d812c8150af20a8331e296" - array-includes@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" @@ -274,6 +962,14 @@ array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" +array.prototype.flat@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.1.tgz#812db8f02cad24d3fab65dd67eabe3b8903494a4" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.10.0" + function-bind "^1.1.1" + arrify@^1.0.0, arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -291,8 +987,10 @@ asn1.js@^4.0.0: minimalistic-assert "^1.0.0" asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + dependencies: + safer-buffer "~2.1.0" assert-plus@1.0.0, assert-plus@^1.0.0: version "1.0.0" @@ -302,7 +1000,7 @@ assert-plus@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" -assert@^1.1.1: +assert@^1.4.0: version "1.4.1" resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" dependencies: @@ -312,10 +1010,14 @@ assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" -ast-types-flow@0.0.7: +ast-types-flow@0.0.7, ast-types-flow@^0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" @@ -324,11 +1026,15 @@ async-foreach@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" -async@^1.4.0, async@^1.5.2: +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + +async@^1.4.0: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" -async@^2.1.2, async@^2.1.4, async@^2.4.1: +async@^2.1.4: version "2.6.1" resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" dependencies: @@ -339,30 +1045,8 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" atob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.1.tgz#ae2d5a729477f289d60dd7f96a6314a22dd6c22a" - -autoprefixer@7.1.6: - version "7.1.6" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.1.6.tgz#fb933039f74af74a83e71225ce78d9fd58ba84d7" - dependencies: - browserslist "^2.5.1" - caniuse-lite "^1.0.30000748" - normalize-range "^0.1.2" - num2fraction "^1.2.2" - postcss "^6.0.13" - postcss-value-parser "^3.2.3" - -autoprefixer@^6.3.1: - version "6.7.7" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014" - dependencies: - browserslist "^1.7.6" - caniuse-db "^1.0.30000634" - normalize-range "^0.1.2" - num2fraction "^1.2.2" - postcss "^5.2.16" - postcss-value-parser "^3.2.3" + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" aws-sign2@~0.6.0: version "0.6.0" @@ -372,17 +1056,17 @@ aws-sign2@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" -aws4@^1.2.1, aws4@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.7.0.tgz#d4d0e9b9dbfca77bf08eeb0a8a471550fe39e289" +aws4@^1.2.1, aws4@^1.6.0, aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" -axobject-query@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-0.1.0.tgz#62f59dbc59c9f9242759ca349960e7a2fe3c36c0" +axobject-query@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.0.1.tgz#05dfa705ada8ad9db993fa6896f22d395b0b0a07" dependencies: ast-types-flow "0.0.7" -babel-code-frame@6.26.0, babel-code-frame@^6.11.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: +babel-code-frame@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" dependencies: @@ -390,30 +1074,6 @@ babel-code-frame@6.26.0, babel-code-frame@^6.11.0, babel-code-frame@^6.22.0, bab esutils "^2.0.2" js-tokens "^3.0.2" -babel-core@6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - 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.8" - 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.6" - babel-core@^6.0.0, babel-core@^6.26.0: version "6.26.3" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" @@ -438,14 +1098,20 @@ babel-core@^6.0.0, babel-core@^6.26.0: slash "^1.0.0" source-map "^0.5.7" -babel-eslint@7.2.3: - version "7.2.3" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.3.tgz#b2fe2d80126470f5c19442dc757253a897710827" +babel-core@^7.0.0-0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + +babel-eslint@^8.2.6: + version "8.2.6" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.6.tgz#6270d0c73205628067c0f7ae1693a9e797acefd9" dependencies: - babel-code-frame "^6.22.0" - babel-traverse "^6.23.1" - babel-types "^6.23.0" - babylon "^6.17.0" + "@babel/code-frame" "7.0.0-beta.44" + "@babel/traverse" "7.0.0-beta.44" + "@babel/types" "7.0.0-beta.44" + babylon "7.0.0-beta.44" + eslint-scope "3.7.1" + eslint-visitor-keys "^1.0.0" babel-generator@^6.18.0, babel-generator@^6.26.0: version "6.26.1" @@ -460,108 +1126,6 @@ babel-generator@^6.18.0, babel-generator@^6.26.0: source-map "^0.5.7" trim-right "^1.0.1" -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-builder-react-jsx@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - esutils "^2.0.2" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - babel-helpers@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" @@ -569,21 +1133,12 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-jest@20.0.3, babel-jest@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-20.0.3.tgz#e4a03b13dc10389e140fc645d09ffc4ced301671" +babel-jest@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.2.tgz#f276de67798a5d68f2d6e87ff518c2f6e1609877" dependencies: - babel-core "^6.0.0" - babel-plugin-istanbul "^4.0.0" - babel-preset-jest "^20.0.3" - -babel-loader@7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" - dependencies: - find-cache-dir "^1.0.0" - loader-utils "^1.0.2" - mkdirp "^0.5.1" + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" babel-messages@^6.23.0: version "6.23.0" @@ -591,21 +1146,7 @@ babel-messages@^6.23.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-dynamic-import-node@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-1.1.0.tgz#bd1d88ac7aaf98df4917c384373b04d971a2b37a" - dependencies: - babel-plugin-syntax-dynamic-import "^6.18.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-istanbul@^4.0.0: +babel-plugin-istanbul@^4.1.6: version "4.1.6" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" dependencies: @@ -614,302 +1155,14 @@ babel-plugin-istanbul@^4.0.0: istanbul-lib-instrument "^1.10.1" test-exclude "^4.2.1" -babel-plugin-jest-hoist@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-20.0.3.tgz#afedc853bd3f8dc3548ea671fbe69d03cc2c1767" +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-class-properties@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" - -babel-plugin-syntax-dynamic-import@6.18.0, babel-plugin-syntax-dynamic-import@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-flow@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" - -babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" - -babel-plugin-syntax-object-rest-spread@^6.13.0, babel-plugin-syntax-object-rest-spread@^6.8.0: +babel-plugin-syntax-object-rest-spread@^6.13.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-class-properties@6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" - dependencies: - babel-helper-function-name "^6.24.1" - babel-plugin-syntax-class-properties "^6.8.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.23.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@6.23.0, babel-plugin-transform-es2015-destructuring@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.2" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.23.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-flow-strip-types@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" - dependencies: - babel-plugin-syntax-flow "^6.18.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-object-rest-spread@6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - -babel-plugin-transform-react-constant-elements@6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-constant-elements/-/babel-plugin-transform-react-constant-elements-6.23.0.tgz#2f119bf4d2cdd45eb9baaae574053c604f6147dd" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-display-name@^6.23.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz#67e2bf1f1e9c93ab08db96792e05392bf2cc28d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-self@6.22.0, babel-plugin-transform-react-jsx-self@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz#df6d80a9da2612a121e6ddd7558bcbecf06e636e" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx-source@6.22.0, babel-plugin-transform-react-jsx-source@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz#66ac12153f5cd2d17b3c19268f4bf0197f44ecd6" - dependencies: - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-react-jsx@6.24.1, babel-plugin-transform-react-jsx@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" - dependencies: - babel-helper-builder-react-jsx "^6.24.1" - babel-plugin-syntax-jsx "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@6.26.0, babel-plugin-transform-regenerator@^6.22.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-runtime@6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - babel-polyfill@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" @@ -918,81 +1171,12 @@ babel-polyfill@^6.26.0: core-js "^2.5.0" regenerator-runtime "^0.10.5" -babel-preset-env@1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48" +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^2.1.2" - invariant "^2.2.2" - semver "^5.3.0" - -babel-preset-flow@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" - dependencies: - babel-plugin-transform-flow-strip-types "^6.22.0" - -babel-preset-jest@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-20.0.3.tgz#cbacaadecb5d689ca1e1de1360ebfc66862c178a" - dependencies: - babel-plugin-jest-hoist "^20.0.3" - -babel-preset-react-app@^3.1.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/babel-preset-react-app/-/babel-preset-react-app-3.1.2.tgz#49ba3681b917c4e5c73a5249d3ef4c48fae064e2" - dependencies: - babel-plugin-dynamic-import-node "1.1.0" - babel-plugin-syntax-dynamic-import "6.18.0" - babel-plugin-transform-class-properties "6.24.1" - babel-plugin-transform-es2015-destructuring "6.23.0" - babel-plugin-transform-object-rest-spread "6.26.0" - babel-plugin-transform-react-constant-elements "6.23.0" - babel-plugin-transform-react-jsx "6.24.1" - babel-plugin-transform-react-jsx-self "6.22.0" - babel-plugin-transform-react-jsx-source "6.22.0" - babel-plugin-transform-regenerator "6.26.0" - babel-plugin-transform-runtime "6.23.0" - babel-preset-env "1.6.1" - babel-preset-react "6.24.1" - -babel-preset-react@6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" - dependencies: - babel-plugin-syntax-jsx "^6.3.13" - babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.24.1" - babel-plugin-transform-react-jsx-self "^6.22.0" - babel-plugin-transform-react-jsx-source "^6.22.0" - babel-preset-flow "^6.23.0" + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" babel-register@^6.26.0: version "6.26.0" @@ -1006,7 +1190,7 @@ babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@6.26.0, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: +babel-runtime@^6.22.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -1023,7 +1207,7 @@ babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: babylon "^6.18.0" lodash "^4.17.4" -babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-traverse@^6.26.0: +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" dependencies: @@ -1037,7 +1221,7 @@ babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-tr invariant "^2.2.2" lodash "^4.17.4" -babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1, babel-types@^6.26.0: +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" dependencies: @@ -1046,14 +1230,18 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24 lodash "^4.17.4" to-fast-properties "^1.0.3" -babylon@^6.17.0, babylon@^6.18.0: +babelify@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/babelify/-/babelify-9.0.0.tgz#6b2e39ffeeda3765aee60eeb5b581fd947cc64ec" + +babylon@7.0.0-beta.44: + version "7.0.0-beta.44" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d" + +babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" -balanced-match@^0.4.2: - version "0.4.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -1074,10 +1262,6 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -batch@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" - bcrypt-pbkdf@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" @@ -1089,12 +1273,8 @@ before-after-hook@^1.1.0: resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-1.1.0.tgz#83165e15a59460d13702cb8febd6a1807896db5a" big-integer@^1.6.17: - version "1.6.32" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.32.tgz#5867458b25ecd5bcb36b627c30bb501a13c07e89" - -big.js@^3.1.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" + version "1.6.34" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.34.tgz#701affc8f0d73c490930a6b482dc23ed6ffc7484" binary-extensions@^1.0.0: version "1.11.0" @@ -1113,7 +1293,7 @@ block-stream@*: dependencies: inherits "~2.0.0" -bluebird@^3.4.7: +bluebird@^3.3.3: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -1125,31 +1305,13 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" -body-parser@1.18.2: - version "1.18.2" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" +bole@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bole/-/bole-2.0.0.tgz#d8aa1c690467bfb4fe11b874acb2e8387e382615" dependencies: - bytes "3.0.0" - content-type "~1.0.4" - debug "2.6.9" - depd "~1.1.1" - http-errors "~1.6.2" - iconv-lite "0.4.19" - on-finished "~2.3.0" - qs "6.5.1" - raw-body "2.3.2" - type-is "~1.6.15" - -bonjour@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/bonjour/-/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5" - dependencies: - array-flatten "^2.1.0" - deep-equal "^1.0.1" - dns-equal "^1.0.0" - dns-txt "^2.0.2" - multicast-dns "^6.0.1" - multicast-dns-service-types "^1.1.0" + core-util-is ">=1.0.1 <1.1.0-0" + individual ">=3.0.0 <3.1.0-0" + json-stringify-safe ">=5.0.0 <5.1.0-0" boolbase@~1.0.0: version "1.0.0" @@ -1161,19 +1323,7 @@ boom@2.x.x: dependencies: hoek "2.x.x" -boxen@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" - dependencies: - ansi-align "^2.0.0" - camelcase "^4.0.0" - chalk "^2.0.1" - cli-boxes "^1.0.0" - string-width "^2.0.0" - term-size "^1.2.0" - widest-line "^2.0.0" - -brace-expansion@^1.0.0, brace-expansion@^1.1.7: +brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" dependencies: @@ -1211,7 +1361,22 @@ brorand@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" -browser-resolve@^1.11.2: +browser-pack@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.1.0.tgz#c34ba10d0b9ce162b5af227c7131c92c2ecd5774" + dependencies: + JSONStream "^1.0.3" + combine-source-map "~0.8.0" + defined "^1.0.0" + safe-buffer "^5.1.1" + through2 "^2.0.0" + umd "^3.0.0" + +browser-process-hrtime@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" + +browser-resolve@^1.11.0, browser-resolve@^1.11.3, browser-resolve@^1.7.0: version "1.11.3" resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" dependencies: @@ -1236,6 +1401,19 @@ browserify-cipher@^1.0.0: browserify-des "^1.0.0" evp_bytestokey "^1.0.0" +browserify-css@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/browserify-css/-/browserify-css-0.14.0.tgz#5ece581aa6f8c9aab262956fd06d57c526c9a334" + dependencies: + clean-css "^4.1.5" + concat-stream "^1.6.0" + css "^2.2.1" + find-node-modules "^1.0.4" + lodash "^4.17.4" + mime "^1.3.6" + strip-css-comments "^3.0.0" + through2 "2.0.x" + browserify-des@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" @@ -1264,31 +1442,71 @@ browserify-sign@^4.0.0: inherits "^2.0.1" parse-asn1 "^5.0.0" -browserify-zlib@^0.2.0: +browserify-zlib@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" dependencies: pako "~1.0.5" -browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" +browserify@^16.1.0, browserify@^16.2.2: + version "16.2.2" + resolved "https://registry.yarnpkg.com/browserify/-/browserify-16.2.2.tgz#4b1f66ba0e54fa39dbc5aa4be9629142143d91b0" dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" + JSONStream "^1.0.3" + assert "^1.4.0" + browser-pack "^6.0.1" + browser-resolve "^1.11.0" + browserify-zlib "~0.2.0" + buffer "^5.0.2" + cached-path-relative "^1.0.0" + concat-stream "^1.6.0" + console-browserify "^1.1.0" + constants-browserify "~1.0.0" + crypto-browserify "^3.0.0" + defined "^1.0.0" + deps-sort "^2.0.0" + domain-browser "^1.2.0" + duplexer2 "~0.1.2" + events "^2.0.0" + glob "^7.1.0" + has "^1.0.0" + htmlescape "^1.1.0" + https-browserify "^1.0.0" + inherits "~2.0.1" + insert-module-globals "^7.0.0" + labeled-stream-splicer "^2.0.0" + mkdirp "^0.5.0" + module-deps "^6.0.0" + os-browserify "~0.3.0" + parents "^1.0.1" + path-browserify "~0.0.0" + process "~0.11.0" + punycode "^1.3.2" + querystring-es3 "~0.2.0" + read-only-stream "^2.0.0" + readable-stream "^2.0.2" + resolve "^1.1.4" + shasum "^1.0.0" + shell-quote "^1.6.1" + stream-browserify "^2.0.0" + stream-http "^2.0.0" + string_decoder "^1.1.1" + subarg "^1.0.0" + syntax-error "^1.1.1" + through2 "^2.0.0" + timers-browserify "^1.0.1" + tty-browserify "0.0.1" + url "~0.11.0" + util "~0.10.1" + vm-browserify "^1.0.0" + xtend "^4.0.0" -browserslist@^2.1.2, browserslist@^2.5.1: - version "2.11.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2" +browserslist@^3.0.0: + version "3.2.8" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" dependencies: - caniuse-lite "^1.0.30000792" - electron-to-chromium "^1.3.30" - -bser@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" - dependencies: - node-int64 "^0.4.0" + caniuse-lite "^1.0.30000844" + electron-to-chromium "^1.3.47" bser@^2.0.0: version "2.0.0" @@ -1300,18 +1518,49 @@ btoa-lite@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" +budo@^11.3.2: + version "11.3.2" + resolved "https://registry.yarnpkg.com/budo/-/budo-11.3.2.tgz#ab943492cadbb0abaf9126b4c8c94eac2440adae" + dependencies: + bole "^2.0.0" + browserify "^16.1.0" + chokidar "^1.0.1" + connect-pushstate "^1.1.0" + escape-html "^1.0.3" + events "^1.0.2" + garnish "^5.0.0" + get-ports "^1.0.2" + inject-lr-script "^2.1.0" + internal-ip "^3.0.1" + micromatch "^2.2.0" + on-finished "^2.3.0" + on-headers "^1.0.1" + once "^1.3.2" + opn "^3.0.2" + path-is-absolute "^1.0.1" + pem "^1.8.3" + reload-css "^1.0.0" + resolve "^1.1.6" + serve-static "^1.10.0" + simple-html-index "^1.4.0" + stacked "^1.1.1" + stdout-stream "^1.4.0" + strip-ansi "^3.0.0" + subarg "^1.0.0" + term-color "^1.0.1" + url-trim "^1.0.0" + watchify-middleware "^1.8.0" + ws "^1.1.1" + xtend "^4.0.0" + buffer-from@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.0.tgz#87fcaa3a298358e0ade6e442cfce840740d1ad04" + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" buffer-indexof-polyfill@~1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.1.tgz#a9fb806ce8145d5428510ce72f278bb363a638bf" -buffer-indexof@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c" - buffer-shims@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" @@ -1320,19 +1569,18 @@ buffer-xor@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" -buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" +buffer@^5.0.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.0.tgz#53cf98241100099e9eeae20ee6d51d21b16e541e" dependencies: base64-js "^1.0.2" ieee754 "^1.1.4" - isarray "^1.0.0" buffers@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" -builtin-modules@^1.0.0, builtin-modules@^1.1.1: +builtin-modules@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" @@ -1344,10 +1592,6 @@ bulma@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.1.tgz#73c2e3b2930c90cc272029cbd19918b493fca486" -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - cache-base@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" @@ -1362,6 +1606,10 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +cached-path-relative@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7" + caller-path@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" @@ -1376,13 +1624,6 @@ callsites@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" -camel-case@3.0.x: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" - dependencies: - no-case "^2.2.0" - upper-case "^1.1.1" - camelcase-keys@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" @@ -1402,34 +1643,27 @@ camelcase@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" -camelcase@^4.0.0, camelcase@^4.1.0: +camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" -caniuse-api@^1.5.2: - version "1.6.1" - resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.6.1.tgz#b534e7c734c4f81ec5fbe8aca2ad24354b962c6c" +camelcase@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.0.0.tgz#03295527d58bd3cd4aa75363f35b2e8d97be2f42" + +caniuse-lite@^1.0.30000844: + version "1.0.30000878" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz#c644c39588dd42d3498e952234c372e5a40a4123" + +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" dependencies: - browserslist "^1.3.6" - caniuse-db "^1.0.30000529" - lodash.memoize "^4.1.2" - lodash.uniq "^4.5.0" + rsvp "^3.3.3" -caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: - version "1.0.30000867" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000867.tgz#b55a6ecfac3107988940c9c7dfe1866315312c97" - -caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792: - version "1.0.30000865" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000865.tgz#70026616e8afe6e1442f8bb4e1092987d81a2f25" - -capture-stack-trace@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" - -case-sensitive-paths-webpack-plugin@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.1.1.tgz#3d29ced8c1f124bf6f53846fb3f5894731fdc909" +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" caseless@~0.12.0: version "0.12.0" @@ -1448,7 +1682,17 @@ chainsaw@~0.1.0: dependencies: traverse ">=0.3.0 <0.4" -chalk@1.1.3, chalk@^1.1.1, chalk@^1.1.3: +chalk@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" + dependencies: + 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" + +chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" dependencies: @@ -1458,7 +1702,7 @@ chalk@1.1.3, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1: +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0: version "2.4.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" dependencies: @@ -1485,7 +1729,7 @@ cheerio@^1.0.0-rc.2: lodash "^4.15.0" parse5 "^3.0.1" -chokidar@^1.6.0, chokidar@^1.6.1: +chokidar@^1.0.0, chokidar@^1.0.1: version "1.7.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" dependencies: @@ -1500,7 +1744,7 @@ chokidar@^1.6.0, chokidar@^1.6.1: optionalDependencies: fsevents "^1.0.0" -chokidar@^2.0.2: +chokidar@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.4.tgz#356ff4e2b0e8e43e322d18a372460bbcf3accd26" dependencies: @@ -1523,9 +1767,9 @@ chownr@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" -ci-info@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.3.tgz#710193264bb05c77b8c90d02f5aaf22216a667b2" +ci-info@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.4.0.tgz#4841d53cad49f11b827b648ebde27a6e189b412f" cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" @@ -1538,12 +1782,6 @@ circular-json@^0.3.1: version "0.3.3" resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66" -clap@^1.0.9: - version "1.2.3" - resolved "https://registry.yarnpkg.com/clap/-/clap-1.2.3.tgz#4f36745b32008492557f46412d66d50cb99bce51" - dependencies: - chalk "^1.1.3" - class-utils@^0.3.5: version "0.3.6" resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" @@ -1557,15 +1795,11 @@ classnames@^2.2.5: version "2.2.6" resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" -clean-css@4.1.x: - version "4.1.11" - resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.1.11.tgz#2ecdf145aba38f54740f26cefd0ff3e03e125d6a" +clean-css@^4.1.5: + version "4.2.1" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" dependencies: - source-map "0.5.x" - -cli-boxes@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" + source-map "~0.6.0" cli-cursor@^2.1.0: version "2.1.0" @@ -1593,20 +1827,18 @@ cliui@^3.2.0: strip-ansi "^3.0.1" wrap-ansi "^2.0.0" -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" -coa@~1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/coa/-/coa-1.0.4.tgz#a9ef153660d6a86a8bdec0289a5c684d217432fd" - dependencies: - q "^1.1.2" - code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" @@ -1618,7 +1850,7 @@ collection-visit@^1.0.0: map-visit "^1.0.0" object-visit "^1.0.0" -color-convert@^1.3.0, color-convert@^1.9.0: +color-convert@^1.9.0: version "1.9.2" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" dependencies: @@ -1628,89 +1860,46 @@ color-name@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689" -color-name@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -color-string@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991" - dependencies: - color-name "^1.0.0" - -color@^0.11.0: - version "0.11.4" - resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764" - dependencies: - clone "^1.0.2" - color-convert "^1.3.0" - color-string "^0.3.0" - -colormin@^1.0.5: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colormin/-/colormin-1.1.2.tgz#ea2f7420a72b96881a38aae59ec124a6f7298133" - dependencies: - color "^0.11.0" - css-color-names "0.0.4" - has "^1.0.1" - colors@0.5.x: version "0.5.1" resolved "https://registry.yarnpkg.com/colors/-/colors-0.5.1.tgz#7d0023eaeb154e8ee9fce75dcb923d0ed1667774" -colors@^1.1.2: - version "1.3.0" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.0.tgz#5f20c9fef6945cb1134260aab33bfbdc8295e04e" +colors@^1.1.2, colors@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.2.tgz#2df8ff573dfbf255af562f8ce7181d6b971a359b" -colors@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" +combine-source-map@^0.8.0, combine-source-map@~0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b" + dependencies: + convert-source-map "~1.1.0" + inline-source-map "~0.6.0" + lodash.memoize "~3.0.3" + source-map "~0.5.3" -combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5: +combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5, combined-stream@~1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" dependencies: delayed-stream "~1.0.0" -commander@2.16.x, commander@^2.11.0, commander@~2.16.0: - version "2.16.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.16.0.tgz#f16390593996ceb4f3eeb020b31d78528f7f8a50" - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" +commander@^2.11.0, commander@^2.17.1, commander@^2.9.0: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" compare-versions@^3.1.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.0.tgz#af93ea705a96943f622ab309578b9b90586f39c3" + version "3.3.1" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.1.tgz#1ede3172b713c15f7c7beb98cb74d2d82576dad3" component-emitter@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" -compressible@~2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.14.tgz#326c5f507fbb055f54116782b969a81b67a29da7" - dependencies: - mime-db ">= 1.34.0 < 2" - -compression@^1.5.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.3.tgz#27e0e176aaf260f7f2c2813c3e440adb9f1993db" - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.14" - debug "2.6.9" - on-headers "~1.0.1" - safe-buffer "5.1.2" - vary "~1.1.2" - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -concat-stream@^1.6.0: +concat-stream@^1.5.0, concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: version "1.6.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" dependencies: @@ -1719,20 +1908,9 @@ concat-stream@^1.6.0: readable-stream "^2.2.2" typedarray "^0.0.6" -configstore@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.2.tgz#c6f25defaeef26df12dd33414b001fe81a543f8f" - dependencies: - dot-prop "^4.1.0" - graceful-fs "^4.1.2" - make-dir "^1.0.0" - unique-string "^1.0.0" - write-file-atomic "^2.0.0" - xdg-basedir "^3.0.0" - -connect-history-api-fallback@^1.3.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz#b06873934bc5e344fef611a196a6faae0aee015a" +connect-pushstate@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/connect-pushstate/-/connect-pushstate-1.1.0.tgz#bcab224271c439604a0fb0f614c0a5f563e88e24" console-browserify@^1.1.0: version "1.1.0" @@ -1744,7 +1922,7 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" -constants-browserify@^1.0.0: +constants-browserify@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -1752,29 +1930,13 @@ contains-path@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" -content-disposition@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" - -content-type-parser@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.2.tgz#caabe80623e63638b2502fd4c7f12ff4ce2352e7" - -content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - -convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1: +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - -cookie@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" +convert-source-map@~1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" copy-descriptor@^0.1.0: version "0.1.1" @@ -1788,21 +1950,19 @@ core-js@^2.4.0, core-js@^2.5.0: version "2.5.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" -core-util-is@1.0.2, core-util-is@~1.0.0: +core-util-is@1.0.2, "core-util-is@>=1.0.1 <1.1.0-0", core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -cosmiconfig@^2.1.0, cosmiconfig@^2.1.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-2.2.2.tgz#6173cebd56fac042c1f4390edf7af6c07c7cb892" +coveralls@^2.11.3: + version "2.13.3" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7" dependencies: - is-directory "^0.3.1" - js-yaml "^3.4.3" - minimist "^1.2.0" - object-assign "^4.1.0" - os-homedir "^1.0.1" - parse-json "^2.2.0" - require-from-string "^1.1.0" + js-yaml "3.6.1" + lcov-parse "0.0.10" + log-driver "1.2.5" + minimist "1.2.0" + request "2.79.0" create-ecdh@^4.0.0: version "4.0.3" @@ -1811,12 +1971,6 @@ create-ecdh@^4.0.0: bn.js "^4.1.0" elliptic "^6.0.0" -create-error-class@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" - dependencies: - capture-stack-trace "^1.0.0" - create-hash@^1.1.0, create-hash@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" @@ -1838,14 +1992,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@5.1.0, cross-spawn@^5.0.1, cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - cross-spawn@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" @@ -1853,7 +1999,15 @@ cross-spawn@^3.0.0: lru-cache "^4.0.1" which "^1.2.9" -cross-spawn@^6.0.4: +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^6.0.0, cross-spawn@^6.0.4, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" dependencies: @@ -1873,7 +2027,7 @@ cryptiles@2.x.x: dependencies: boom "2.x.x" -crypto-browserify@^3.11.0: +crypto-browserify@^3.0.0: version "3.12.0" resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" dependencies: @@ -1889,34 +2043,7 @@ crypto-browserify@^3.11.0: randombytes "^2.0.0" randomfill "^1.0.3" -crypto-random-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" - -css-color-names@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" - -css-loader@0.28.7: - version "0.28.7" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.28.7.tgz#5f2ee989dd32edd907717f953317656160999c1b" - dependencies: - babel-code-frame "^6.11.0" - css-selector-tokenizer "^0.7.0" - cssnano ">=2.6.1 <4" - icss-utils "^2.1.0" - loader-utils "^1.0.2" - lodash.camelcase "^4.3.0" - object-assign "^4.0.1" - postcss "^5.0.6" - postcss-modules-extract-imports "^1.0.0" - postcss-modules-local-by-default "^1.0.1" - postcss-modules-scope "^1.0.0" - postcss-modules-values "^1.1.0" - postcss-value-parser "^3.3.0" - source-list-map "^2.0.0" - -css-select@^1.1.0, css-select@~1.2.0: +css-select@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" dependencies: @@ -1925,14 +2052,6 @@ css-select@^1.1.0, css-select@~1.2.0: domutils "1.5.1" nth-check "~1.0.1" -css-selector-tokenizer@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz#e6988474ae8c953477bf5e7efecfceccd9cf4c86" - dependencies: - cssesc "^0.1.0" - fastparse "^1.1.1" - regexpu-core "^1.0.0" - css-vendor@^0.3.8: version "0.3.8" resolved "https://registry.yarnpkg.com/css-vendor/-/css-vendor-0.3.8.tgz#6421cfd3034ce664fe7673972fd0119fc28941fa" @@ -1943,61 +2062,22 @@ css-what@2.1: version "2.1.0" resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.0.tgz#9467d032c38cfaefb9f2d79501253062f87fa1bd" -cssesc@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-0.1.0.tgz#c814903e45623371a0477b40109aaafbeeaddbb4" - -"cssnano@>=2.6.1 <4": - version "3.10.0" - resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-3.10.0.tgz#4f38f6cea2b9b17fa01490f23f1dc68ea65c1c38" +css@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.3.tgz#f861f4ba61e79bedc962aa548e5780fd95cbc6be" dependencies: - autoprefixer "^6.3.1" - decamelize "^1.1.2" - defined "^1.0.0" - has "^1.0.1" - object-assign "^4.0.1" - postcss "^5.0.14" - postcss-calc "^5.2.0" - postcss-colormin "^2.1.8" - postcss-convert-values "^2.3.4" - postcss-discard-comments "^2.0.4" - postcss-discard-duplicates "^2.0.1" - postcss-discard-empty "^2.0.1" - postcss-discard-overridden "^0.1.1" - postcss-discard-unused "^2.2.1" - postcss-filter-plugins "^2.0.0" - postcss-merge-idents "^2.1.5" - postcss-merge-longhand "^2.0.1" - postcss-merge-rules "^2.0.3" - postcss-minify-font-values "^1.0.2" - postcss-minify-gradients "^1.0.1" - postcss-minify-params "^1.0.4" - postcss-minify-selectors "^2.0.4" - postcss-normalize-charset "^1.1.0" - postcss-normalize-url "^3.0.7" - postcss-ordered-values "^2.1.0" - postcss-reduce-idents "^2.2.2" - postcss-reduce-initial "^1.0.0" - postcss-reduce-transforms "^1.0.3" - postcss-svgo "^2.1.1" - postcss-unique-selectors "^2.0.2" - postcss-value-parser "^3.2.3" - postcss-zindex "^2.0.1" - -csso@~2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/csso/-/csso-2.3.2.tgz#ddd52c587033f49e94b71fc55569f252e8ff5f85" - dependencies: - clap "^1.0.9" - source-map "^0.5.3" + inherits "^2.0.1" + source-map "^0.1.38" + source-map-resolve "^0.5.1" + urix "^0.1.0" cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": version "0.3.4" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" -"cssstyle@>= 0.2.37 < 0.3.0": - version "0.2.37" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" +cssstyle@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" dependencies: cssom "0.3.x" @@ -2007,13 +2087,7 @@ currently-unhandled@^0.4.1: dependencies: array-find-index "^1.0.1" -d@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" - dependencies: - es5-ext "^0.10.9" - -damerau-levenshtein@^1.0.0: +damerau-levenshtein@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz#03191c432cb6eea168bb77f3a55ffdccb8978514" @@ -2023,17 +2097,29 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" +data-urls@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.1.tgz#d416ac3896918f29ca84d81085bc3705834da579" + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.1.0" + whatwg-url "^7.0.0" + date-now@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" -debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.6, debug@^2.6.8, debug@^2.6.9: +debounce@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" dependencies: ms "2.0.0" -debug@3.1.0, debug@^3.0.1, debug@^3.1.0: +debug@3.1.0, debug@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" dependencies: @@ -2057,10 +2143,6 @@ deep-diff@^0.3.5: version "0.3.8" resolved "https://registry.yarnpkg.com/deep-diff/-/deep-diff-0.3.8.tgz#c01de63efb0eec9798801d40c7e0dae25b582c84" -deep-equal@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" - deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -2069,6 +2151,13 @@ deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" +default-gateway@^2.6.0: + version "2.7.2" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-2.7.2.tgz#b7ef339e5e024b045467af403d50348db4642d0f" + dependencies: + execa "^0.10.0" + ip-regex "^2.1.0" + default-require-extensions@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" @@ -2076,11 +2165,10 @@ default-require-extensions@^2.0.0: strip-bom "^3.0.0" define-properties@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" dependencies: - foreach "^2.0.5" - object-keys "^1.0.8" + object-keys "^1.0.12" define-property@^0.2.5: version "0.2.5" @@ -2105,7 +2193,7 @@ defined@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" -del@^2.0.2, del@^2.2.2: +del@^2.0.2: version "2.2.2" resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" dependencies: @@ -2117,17 +2205,6 @@ del@^2.0.2, del@^2.2.2: pinkie-promise "^2.0.0" rimraf "^2.2.8" -del@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/del/-/del-3.0.0.tgz#53ecf699ffcbcb39637691ab13baf160819766e5" - dependencies: - 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@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -2136,14 +2213,19 @@ delegates@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" -depd@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" - -depd@~1.1.1, depd@~1.1.2: +depd@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" +deps-sort@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5" + dependencies: + JSONStream "^1.0.3" + shasum "^1.0.0" + subarg "^1.0.0" + through2 "^2.0.0" + des.js@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" @@ -2155,6 +2237,12 @@ destroy@~1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" +detect-file@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63" + dependencies: + fs-exists-sync "^0.1.0" + detect-indent@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" @@ -2165,16 +2253,17 @@ detect-libc@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" -detect-node@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.3.tgz#a2033c09cc8e158d37748fbde7507832bd6ce127" +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" -detect-port-alt@1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/detect-port-alt/-/detect-port-alt-1.1.6.tgz#24707deabe932d4a3cf621302027c2b266568275" +detective@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/detective/-/detective-5.1.0.tgz#7a20d89236d7b331ccea65832e7123b5551bb7cb" dependencies: - address "^1.0.1" - debug "^2.6.0" + acorn-node "^1.3.0" + defined "^1.0.0" + minimist "^1.1.1" diff@^3.2.0: version "3.5.0" @@ -2192,23 +2281,6 @@ discontinuous-range@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" -dns-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d" - -dns-packet@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.1.tgz#12aa426981075be500b910eedcd0b47dd7deda5a" - dependencies: - ip "^1.1.0" - safe-buffer "^5.0.1" - -dns-txt@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/dns-txt/-/dns-txt-2.0.2.tgz#b91d806f5d27188e4ab3e7d107d881a1cc4642b6" - dependencies: - buffer-indexof "^1.0.0" - doctrine@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" @@ -2216,18 +2288,12 @@ doctrine@1.5.0: esutils "^2.0.2" isarray "^1.0.0" -doctrine@^2.0.0: +doctrine@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" dependencies: esutils "^2.0.2" -dom-converter@~0.1: - version "0.1.4" - resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.1.4.tgz#a45ef5727b890c9bffe6d7c876e7b19cb0e17f3b" - dependencies: - utila "~0.3" - dom-serializer@0, dom-serializer@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" @@ -2235,13 +2301,7 @@ dom-serializer@0, dom-serializer@~0.1.0: domelementtype "~1.1.1" entities "~1.1.1" -dom-urls@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/dom-urls/-/dom-urls-1.1.0.tgz#001ddf81628cd1e706125c7176f53ccec55d918e" - dependencies: - urijs "^1.16.1" - -domain-browser@^1.1.1: +domain-browser@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" @@ -2253,11 +2313,11 @@ domelementtype@~1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b" -domhandler@2.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.1.0.tgz#d2646f5e57f6c3bab11cf6cb05d3c0acf7412594" +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" dependencies: - domelementtype "1" + webidl-conversions "^4.0.2" domhandler@^2.3.0: version "2.4.2" @@ -2265,12 +2325,6 @@ domhandler@^2.3.0: dependencies: domelementtype "1" -domutils@1.1: - version "1.1.6" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.1.6.tgz#bddc3de099b9a2efacc51c623f28f416ecc57485" - dependencies: - domelementtype "1" - domutils@1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" @@ -2285,21 +2339,7 @@ domutils@^1.5.1: dom-serializer "0" domelementtype "1" -dot-prop@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" - dependencies: - is-obj "^1.0.0" - -dotenv-expand@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-4.2.0.tgz#def1f1ca5d6059d24a766e587942c21106ce1275" - -dotenv@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-4.0.0.tgz#864ef1379aced55ce6f95debecdce179f7a0cd1d" - -duplexer2@~0.1.4: +duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2, duplexer2@~0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" dependencies: @@ -2309,27 +2349,28 @@ duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" -duplexer@^0.1.1, duplexer@~0.1.1: +duplexer@~0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" dependencies: jsbn "~0.1.0" + safer-buffer "^2.1.0" ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" -electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.30: - version "1.3.52" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.52.tgz#d2d9f1270ba4a3b967b831c40ef71fb4d9ab5ce0" +electron-to-chromium@^1.3.47: + version "1.3.61" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.61.tgz#a8ac295b28d0f03d85e37326fd16b6b6b17a1795" elliptic@^6.0.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" + version "6.4.1" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.1.tgz#c2d0b7776911b86722c632c3c06c60f2f819939a" dependencies: bn.js "^4.4.0" brorand "^1.0.1" @@ -2339,14 +2380,10 @@ elliptic@^6.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.0" -emoji-regex@^6.1.0: +emoji-regex@^6.5.1: version "6.5.1" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-6.5.1.tgz#9baea929b155565c11ea41c6626eaa65cef992c2" -emojis-list@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" - encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -2357,52 +2394,46 @@ encoding@^0.1.11: dependencies: iconv-lite "~0.4.13" -enhanced-resolve@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.7" - entities@^1.1.1, entities@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" enzyme-adapter-react-16@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.1.1.tgz#a8f4278b47e082fbca14f5bfb1ee50ee650717b4" + version "1.2.0" + resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.2.0.tgz#c6e80f334e0a817873262d7d01ee9e4747e3c97e" dependencies: - enzyme-adapter-utils "^1.3.0" - lodash "^4.17.4" - object.assign "^4.0.4" + enzyme-adapter-utils "^1.5.0" + function.prototype.name "^1.1.0" + object.assign "^4.1.0" object.values "^1.0.4" - prop-types "^15.6.0" + prop-types "^15.6.2" + react-is "^16.4.2" react-reconciler "^0.7.0" react-test-renderer "^16.0.0-0" -enzyme-adapter-utils@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.4.0.tgz#c403b81e8eb9953658569e539780964bdc98de62" +enzyme-adapter-utils@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.5.0.tgz#a020ab3ae79bb1c85e1d51f48f35e995e0eed810" dependencies: + function.prototype.name "^1.1.0" object.assign "^4.1.0" - prop-types "^15.6.0" + prop-types "^15.6.2" enzyme@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.3.0.tgz#0971abd167f2d4bf3f5bd508229e1c4b6dc50479" + version "3.4.4" + resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.4.4.tgz#92c7c6b9e59d4ef0c3d36a75dccc0e41a5c14d21" dependencies: + array.prototype.flat "^1.2.1" cheerio "^1.0.0-rc.2" - function.prototype.name "^1.0.3" - has "^1.0.1" + function.prototype.name "^1.1.0" + has "^1.0.3" is-boolean-object "^1.0.0" - is-callable "^1.1.3" + is-callable "^1.1.4" is-number-object "^1.0.3" is-string "^1.0.4" is-subset "^0.1.1" lodash "^4.17.4" - object-inspect "^1.5.0" + object-inspect "^1.6.0" object-is "^1.0.1" object.assign "^4.1.0" object.entries "^1.0.4" @@ -2410,19 +2441,13 @@ enzyme@^3.3.0: raf "^3.4.0" rst-selector-parser "^2.2.3" -errno@^0.1.3, errno@~0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" - dependencies: - prr "~1.0.1" - error-ex@^1.2.0, error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" dependencies: is-arrayish "^0.2.1" -es-abstract@^1.4.3, es-abstract@^1.6.1, es-abstract@^1.7.0: +es-abstract@^1.10.0, es-abstract@^1.4.3, es-abstract@^1.5.1, es-abstract@^1.6.1, es-abstract@^1.7.0: version "1.12.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" dependencies: @@ -2440,34 +2465,7 @@ es-to-primitive@^1.1.1: is-date-object "^1.0.1" is-symbol "^1.0.1" -es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: - version "0.10.45" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.45.tgz#0bfdf7b473da5919d5adf3bd25ceb754fccc3653" - dependencies: - es6-iterator "~2.0.3" - es6-symbol "~3.1.1" - next-tick "1" - -es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-map@^0.1.3: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-set "~0.1.5" - es6-symbol "~3.1.1" - event-emitter "~0.3.5" - -es6-promise@^4.0.3, es6-promise@^4.0.5: +es6-promise@^4.0.3: version "4.2.4" resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.4.tgz#dc4221c2b16518760bd8c39a52d8f356fc00ed29" @@ -2477,41 +2475,15 @@ es6-promisify@^5.0.0: dependencies: es6-promise "^4.0.3" -es6-set@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" - dependencies: - d "1" - es5-ext "~0.10.14" - es6-iterator "~2.0.1" - es6-symbol "3.1.1" - event-emitter "~0.3.5" - -es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - dependencies: - d "1" - es5-ext "~0.10.14" - -es6-weak-map@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" - dependencies: - d "1" - es5-ext "^0.10.14" - es6-iterator "^2.0.1" - es6-symbol "^3.1.1" - -escape-html@~1.0.3: +escape-html@^1.0.3, escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" -escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" -escodegen@^1.6.1: +escodegen@^1.9.1: version "1.11.0" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" dependencies: @@ -2522,29 +2494,6 @@ escodegen@^1.6.1: optionalDependencies: source-map "~0.6.1" -escope@^3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" - dependencies: - es6-map "^0.1.3" - es6-weak-map "^2.0.1" - esrecurse "^4.1.0" - estraverse "^4.1.1" - -eslint-config-origami-component@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-origami-component/-/eslint-config-origami-component-1.0.0.tgz#c6a1d758b227b39d506796f8d44345653a705e46" - -eslint-config-prettier@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz#5ecd65174d486c22dff389fe036febf502d468a3" - dependencies: - get-stdin "^5.0.1" - -eslint-config-react-app@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-2.1.0.tgz#23c909f71cbaff76b945b831d2d814b8bde169eb" - eslint-import-resolver-node@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" @@ -2552,127 +2501,128 @@ eslint-import-resolver-node@^0.3.1: debug "^2.6.9" resolve "^1.5.0" -eslint-loader@1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-1.9.0.tgz#7e1be9feddca328d3dcfaef1ad49d5beffe83a13" - dependencies: - loader-fs-cache "^1.0.0" - loader-utils "^1.0.2" - object-assign "^4.0.1" - object-hash "^1.1.4" - rimraf "^2.6.1" - -eslint-module-utils@^2.1.1: +eslint-module-utils@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz#b270362cd88b1a48ad308976ce7fa54e98411746" dependencies: debug "^2.6.8" pkg-dir "^1.0.0" -eslint-plugin-flowtype@2.39.1: - version "2.39.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.39.1.tgz#b5624622a0388bcd969f4351131232dcb9649cd5" +eslint-plugin-flowtype@^2.50.0: + version "2.50.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.0.tgz#953e262fa9b5d0fa76e178604892cf60dfb916da" dependencies: - lodash "^4.15.0" + lodash "^4.17.10" -eslint-plugin-import@2.8.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894" +eslint-plugin-import@^2.14.0: + version "2.14.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.14.0.tgz#6b17626d2e3e6ad52cfce8807a845d15e22111a8" dependencies: - builtin-modules "^1.1.1" contains-path "^0.1.0" debug "^2.6.8" doctrine "1.5.0" eslint-import-resolver-node "^0.3.1" - eslint-module-utils "^2.1.1" + eslint-module-utils "^2.2.0" has "^1.0.1" - lodash.cond "^4.3.0" + lodash "^4.17.4" minimatch "^3.0.3" read-pkg-up "^2.0.0" + resolve "^1.6.0" -eslint-plugin-jsx-a11y@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-5.1.1.tgz#5c96bb5186ca14e94db1095ff59b3e2bd94069b1" +eslint-plugin-jsx-a11y@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.1.1.tgz#7bf56dbe7d47d811d14dbb3ddff644aa656ce8e1" dependencies: - aria-query "^0.7.0" + aria-query "^3.0.0" array-includes "^3.0.3" - ast-types-flow "0.0.7" - axobject-query "^0.1.0" - damerau-levenshtein "^1.0.0" - emoji-regex "^6.1.0" - jsx-ast-utils "^1.4.0" + ast-types-flow "^0.0.7" + axobject-query "^2.0.1" + damerau-levenshtein "^1.0.4" + emoji-regex "^6.5.1" + has "^1.0.3" + jsx-ast-utils "^2.0.1" -eslint-plugin-prettier@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz#71998c60aedfa2141f7bfcbf9d1c459bf98b4fad" +eslint-plugin-react@^7.10.0: + version "7.11.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.11.1.tgz#c01a7af6f17519457d6116aa94fc6d2ccad5443c" dependencies: - fast-diff "^1.1.1" - jest-docblock "^21.0.0" + array-includes "^3.0.3" + doctrine "^2.1.0" + has "^1.0.3" + jsx-ast-utils "^2.0.1" + prop-types "^15.6.2" -eslint-plugin-react@7.4.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.4.0.tgz#300a95861b9729c087d362dd64abcc351a74364a" - dependencies: - doctrine "^2.0.0" - has "^1.0.1" - jsx-ast-utils "^2.0.0" - prop-types "^15.5.10" - -eslint-scope@^3.7.1: - version "3.7.3" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.3.tgz#bb507200d3d17f60247636160b4826284b108535" +eslint-scope@3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" dependencies: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint@4.10.0: - version "4.10.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.10.0.tgz#f25d0d7955c81968c2309aa5c9a229e045176bb7" +eslint-scope@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.0.tgz#50bf3071e9338bcdc43331794a0cb533f0136172" dependencies: - ajv "^5.2.0" - babel-code-frame "^6.22.0" + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512" + +eslint-visitor-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" + +eslint@^5.3.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.4.0.tgz#d068ec03006bb9e06b429dc85f7e46c1b69fac62" + dependencies: + ajv "^6.5.0" + babel-code-frame "^6.26.0" chalk "^2.1.0" - concat-stream "^1.6.0" - cross-spawn "^5.1.0" - debug "^3.0.1" - doctrine "^2.0.0" - eslint-scope "^3.7.1" - espree "^3.5.1" - esquery "^1.0.0" - estraverse "^4.2.0" + cross-spawn "^6.0.5" + debug "^3.1.0" + doctrine "^2.1.0" + eslint-scope "^4.0.0" + eslint-utils "^1.3.1" + eslint-visitor-keys "^1.0.0" + espree "^4.0.0" + esquery "^1.0.1" esutils "^2.0.2" file-entry-cache "^2.0.0" functional-red-black-tree "^1.0.1" glob "^7.1.2" - globals "^9.17.0" - ignore "^3.3.3" + globals "^11.7.0" + ignore "^4.0.2" imurmurhash "^0.1.4" - inquirer "^3.0.6" - is-resolvable "^1.0.0" - js-yaml "^3.9.1" - json-stable-stringify "^1.0.1" + inquirer "^5.2.0" + is-resolvable "^1.1.0" + js-yaml "^3.11.0" + json-stable-stringify-without-jsonify "^1.0.1" levn "^0.3.0" - lodash "^4.17.4" - minimatch "^3.0.2" + lodash "^4.17.5" + minimatch "^3.0.4" mkdirp "^0.5.1" natural-compare "^1.4.0" optionator "^0.8.2" path-is-inside "^1.0.2" pluralize "^7.0.0" progress "^2.0.0" + regexpp "^2.0.0" require-uncached "^1.0.3" - semver "^5.3.0" + semver "^5.5.0" strip-ansi "^4.0.0" - strip-json-comments "~2.0.1" - table "^4.0.1" - text-table "~0.2.0" + strip-json-comments "^2.0.1" + table "^4.0.3" + text-table "^0.2.0" -espree@^3.5.1: - version "3.5.4" - resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7" +espree@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-4.0.0.tgz#253998f20a0f82db5d866385799d912a83a36634" dependencies: - acorn "^5.5.0" - acorn-jsx "^3.0.0" + acorn "^5.6.0" + acorn-jsx "^4.1.1" esprima@^2.6.0: version "2.7.3" @@ -2686,7 +2636,7 @@ esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" -esquery@^1.0.0: +esquery@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" dependencies: @@ -2702,7 +2652,7 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" -esutils@^2.0.2: +esutils@^2.0.0, esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" @@ -2710,13 +2660,6 @@ etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" -event-emitter@~0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" - dependencies: - d "1" - es5-ext "~0.10.14" - event-stream@~3.3.0: version "3.3.4" resolved "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" @@ -2729,19 +2672,13 @@ event-stream@~3.3.0: stream-combiner "~0.0.4" through "~2.3.1" -eventemitter3@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163" - -events@^1.0.0: +events@^1.0.2: version "1.1.1" resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" -eventsource@0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-0.1.6.tgz#0acede849ed7dd1ccc32c811bb11b944d4f29232" - dependencies: - original ">=0.0.5" +events@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/events/-/events-2.1.0.tgz#2a9a1e18e6106e0e812aa9ebd4a819b3c29c0ba5" evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: version "1.0.3" @@ -2756,6 +2693,18 @@ exec-sh@^0.2.0: dependencies: merge "^1.2.0" +execa@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" + dependencies: + cross-spawn "^6.0.0" + 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" + execa@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" @@ -2768,6 +2717,10 @@ execa@^0.7.0: signal-exit "^3.0.0" strip-eof "^1.0.0" +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + expand-brackets@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" @@ -2792,46 +2745,22 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -expand-tilde@^2.0.0, expand-tilde@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" +expand-tilde@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449" dependencies: - homedir-polyfill "^1.0.1" + os-homedir "^1.0.1" -express@^4.13.3: - version "4.16.3" - resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53" +expect@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.5.0.tgz#18999a0eef8f8acf99023fde766d9c323c2562ed" dependencies: - accepts "~1.3.5" - array-flatten "1.1.1" - body-parser "1.18.2" - content-disposition "0.5.2" - content-type "~1.0.4" - cookie "0.3.1" - cookie-signature "1.0.6" - debug "2.6.9" - depd "~1.1.2" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.1.1" - fresh "0.5.2" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "~2.3.0" - parseurl "~1.3.2" - path-to-regexp "0.1.7" - proxy-addr "~2.0.3" - qs "6.5.1" - range-parser "~1.2.0" - safe-buffer "5.1.1" - send "0.16.2" - serve-static "1.13.2" - setprototypeof "1.1.0" - statuses "~1.4.0" - type-is "~1.6.16" - utils-merge "1.0.1" - vary "~1.1.2" + ansi-styles "^3.2.0" + jest-diff "^23.5.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" extend-shallow@^2.0.1: version "2.0.1" @@ -2846,11 +2775,11 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: assign-symbols "^1.0.0" is-extendable "^1.0.1" -extend@~3.0.0, extend@~3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" +extend@~3.0.0, extend@~3.0.1, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" -external-editor@^2.0.4: +external-editor@^2.1.0: version "2.2.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5" dependencies: @@ -2877,15 +2806,6 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" -extract-text-webpack-plugin@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extract-text-webpack-plugin/-/extract-text-webpack-plugin-3.0.2.tgz#5f043eaa02f9750a9258b78c0a6e0dc1408fb2f7" - dependencies: - async "^2.4.1" - loader-utils "^1.1.0" - schema-utils "^0.3.0" - webpack-sources "^1.0.1" - extsprintf@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" @@ -2902,10 +2822,6 @@ fast-deep-equal@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" -fast-diff@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.1.2.tgz#4b62c42b8e03de3f848460b639079920695d0154" - fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" @@ -2914,28 +2830,6 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" -fastparse@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.1.tgz#d1e2643b38a94d7583b479060e6c4affc94071f8" - -faye-websocket@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" - dependencies: - websocket-driver ">=0.5.1" - -faye-websocket@~0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.1.tgz#f0efe18c4f56e4f40afc7e06c719fd5ee6188f38" - dependencies: - websocket-driver ">=0.5.1" - -fb-watchman@^1.8.0: - version "1.9.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" - dependencies: - bser "1.0.2" - fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" @@ -2955,16 +2849,12 @@ fbjs@^0.8.16: ua-parser-js "^0.7.18" fetch-mock@^6.5.0: - version "6.5.1" - resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-6.5.1.tgz#62e903b1444fc921f97edd4b16b3b9bf42711177" + version "6.5.2" + resolved "https://registry.yarnpkg.com/fetch-mock/-/fetch-mock-6.5.2.tgz#b3842b305c13ea0f81c85919cfaa7de387adfa3e" dependencies: babel-polyfill "^6.26.0" - eslint-config-origami-component "^1.0.0" - eslint-config-prettier "^2.9.0" - eslint-plugin-prettier "^2.6.1" glob-to-regexp "^0.4.0" path-to-regexp "^2.2.1" - prettier "^1.13.7" figures@^2.0.0: version "2.0.0" @@ -2979,13 +2869,6 @@ file-entry-cache@^2.0.0: flat-cache "^1.2.1" object-assign "^4.0.1" -file-loader@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-1.1.5.tgz#91c25b6b6fbe56dae99f10a425fd64933b5c9daa" - dependencies: - loader-utils "^1.0.2" - schema-utils "^0.3.0" - filename-regex@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" @@ -2997,10 +2880,6 @@ fileset@^2.0.2: glob "^7.0.3" minimatch "^3.0.3" -filesize@3.5.11: - version "3.5.11" - resolved "https://registry.yarnpkg.com/filesize/-/filesize-3.5.11.tgz#1919326749433bb3cf77368bd158caabcc19e9ee" - fill-range@^2.1.0: version "2.2.4" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" @@ -3020,33 +2899,12 @@ fill-range@^4.0.0: repeat-string "^1.6.1" to-regex-range "^2.1.0" -finalhandler@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105" +find-node-modules@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-1.0.4.tgz#b6deb3cccb699c87037677bcede2c5f5862b2550" dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.2" - statuses "~1.4.0" - unpipe "~1.0.0" - -find-cache-dir@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" - dependencies: - commondir "^1.0.1" - mkdirp "^0.5.1" - pkg-dir "^1.0.0" - -find-cache-dir@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" - dependencies: - commondir "^1.0.1" - make-dir "^1.0.0" - pkg-dir "^2.0.0" + findup-sync "0.4.2" + merge "^1.2.0" find-up@^1.0.0: version "1.1.2" @@ -3061,6 +2919,15 @@ find-up@^2.0.0, find-up@^2.1.0: dependencies: locate-path "^2.0.0" +findup-sync@0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.2.tgz#a8117d0f73124f5a4546839579fe52d7129fb5e5" + dependencies: + detect-file "^0.1.0" + is-glob "^2.0.1" + micromatch "^2.3.7" + resolve-dir "^0.1.0" + flat-cache@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481" @@ -3070,10 +2937,6 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flatten@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" - flow-bin@^0.77.0: version "0.77.0" resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.77.0.tgz#4e5c93929f289a0c28e08fb361a9734944a11297" @@ -3098,12 +2961,6 @@ flow-typed@^2.5.1: which "^1.3.0" yargs "^4.2.0" -follow-redirects@^1.0.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.1.tgz#67a8f14f5a1f67f962c2c46469c79eaec0a90291" - dependencies: - debug "^3.1.0" - font-awesome@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133" @@ -3118,10 +2975,6 @@ for-own@^0.1.4: dependencies: for-in "^1.0.1" -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -3134,7 +2987,7 @@ form-data@~2.1.1: combined-stream "^1.0.5" mime-types "^2.1.12" -form-data@~2.3.1: +form-data@~2.3.1, form-data@~2.3.2: version "2.3.2" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" dependencies: @@ -3142,10 +2995,6 @@ form-data@~2.3.1: combined-stream "1.0.6" mime-types "^2.1.12" -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" @@ -3156,27 +3005,26 @@ fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" +from2-string@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/from2-string/-/from2-string-1.1.0.tgz#18282b27d08a267cb3030cd2b8b4b0f212af752a" + dependencies: + from2 "^2.0.3" + +from2@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + from@~0: version "0.1.7" resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" -fs-extra@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^3.0.0" - universalify "^0.1.0" - -fs-extra@^0.30.0: - version "0.30.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0" - dependencies: - graceful-fs "^4.1.2" - jsonfile "^2.1.0" - klaw "^1.0.0" - path-is-absolute "^1.0.0" - rimraf "^2.2.8" +fs-exists-sync@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" fs-extra@^5.0.0: version "5.0.0" @@ -3196,7 +3044,7 @@ fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" -fsevents@^1.0.0, fsevents@^1.1.3, fsevents@^1.2.2: +fsevents@^1.0.0, fsevents@^1.2.2, fsevents@^1.2.3: version "1.2.4" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" dependencies: @@ -3216,7 +3064,7 @@ function-bind@^1.0.2, function-bind@^1.1.0, function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" -function.prototype.name@^1.0.3: +function.prototype.name@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.0.tgz#8bd763cc0af860a859cc5d49384d74b932cd2327" dependencies: @@ -3228,6 +3076,21 @@ functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" +garnish@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/garnish/-/garnish-5.2.0.tgz#bed43659382e4b198e33c793897be7c701e65577" + dependencies: + chalk "^0.5.1" + minimist "^1.1.0" + pad-left "^2.0.0" + pad-right "^0.2.2" + prettier-bytes "^1.0.3" + pretty-ms "^2.1.0" + right-now "^1.0.0" + split2 "^0.2.1" + stdout-stream "^1.4.0" + url-trim "^1.0.0" + gauge@~2.7.3: version "2.7.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" @@ -3247,18 +3110,34 @@ gaze@^1.0.0: dependencies: globule "^1.0.0" +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-assigned-identifiers@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1" + get-caller-file@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" +get-ports@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-ports/-/get-ports-1.0.3.tgz#f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8" + dependencies: + map-limit "0.0.1" + get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" -get-stdin@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -3307,7 +3186,7 @@ glob@^6.0.4: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@~7.1.1: +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2, glob@~7.1.1: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: @@ -3318,31 +3197,27 @@ glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@~7.1.1: once "^1.3.0" path-is-absolute "^1.0.0" -global-dirs@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" +global-modules@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" dependencies: + global-prefix "^0.1.4" + is-windows "^0.2.0" + +global-prefix@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f" + dependencies: + homedir-polyfill "^1.0.0" ini "^1.3.4" + is-windows "^0.2.0" + which "^1.2.12" -global-modules@1.0.0, global-modules@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" - dependencies: - global-prefix "^1.0.1" - is-windows "^1.0.1" - resolve-dir "^1.0.0" +globals@^11.1.0, globals@^11.7.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" -global-prefix@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" - dependencies: - expand-tilde "^2.0.2" - homedir-polyfill "^1.0.1" - ini "^1.3.4" - is-windows "^1.0.1" - which "^1.2.14" - -globals@^9.17.0, globals@^9.18.0: +globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" @@ -3357,16 +3232,6 @@ globby@^5.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" -globby@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" - dependencies: - array-union "^1.0.1" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - globule@^1.0.0: version "1.2.1" resolved "https://registry.yarnpkg.com/globule/-/globule-1.2.1.tgz#5dffb1b191f22d20797a9369b49eab4e9839696d" @@ -3375,22 +3240,6 @@ globule@^1.0.0: lodash "~4.17.10" minimatch "~3.0.2" -got@^6.7.1: - version "6.7.1" - resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" - dependencies: - create-error-class "^3.0.0" - duplexer3 "^0.1.4" - get-stream "^3.0.0" - is-redirect "^1.0.0" - is-retry-allowed "^1.0.0" - is-stream "^1.0.0" - lowercase-keys "^1.0.0" - safe-buffer "^5.0.1" - timed-out "^4.0.0" - unzip-response "^2.0.1" - url-parse-lax "^1.0.0" - got@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a" @@ -3410,7 +3259,7 @@ got@^7.1.0: url-parse-lax "^1.0.0" url-to-options "^1.0.1" -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -3418,16 +3267,6 @@ growly@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" -gzip-size@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-3.0.0.tgz#546188e9bdc337f673772f81660464b389dce520" - dependencies: - duplexer "^0.1.1" - -handle-thing@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4" - handlebars@^4.0.3: version "4.0.11" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" @@ -3438,20 +3277,18 @@ handlebars@^4.0.3: optionalDependencies: uglify-js "^2.6" -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - har-schema@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" har-validator@~5.0.3: version "5.0.3" @@ -3460,6 +3297,19 @@ har-validator@~5.0.3: ajv "^5.1.0" har-schema "^2.0.0" +har-validator@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" + dependencies: + ajv "^5.3.0" + har-schema "^2.0.0" + +has-ansi@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e" + dependencies: + ansi-regex "^0.2.0" + has-ansi@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" @@ -3470,10 +3320,6 @@ has-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -3523,7 +3369,7 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" -has@^1.0.1: +has@^1.0.0, has@^1.0.1, has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" dependencies: @@ -3552,10 +3398,6 @@ hawk@~3.1.3: hoek "2.x.x" sntp "1.x.x" -he@1.1.x: - version "1.1.1" - resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" - history@^4.7.2: version "4.7.2" resolved "https://registry.yarnpkg.com/history/-/history-4.7.2.tgz#22b5c7f31633c5b8021c7f4a8a954ac139ee8d5b" @@ -3589,7 +3431,7 @@ home-or-tmp@^2.0.0: os-homedir "^1.0.0" os-tmpdir "^1.0.1" -homedir-polyfill@^1.0.1: +homedir-polyfill@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" dependencies: @@ -3599,57 +3441,21 @@ hosted-git-info@^2.1.4: version "2.7.1" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" -hpack.js@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" - dependencies: - inherits "^2.0.1" - obuf "^1.0.0" - readable-stream "^2.0.1" - wbuf "^1.1.0" - -html-comment-regex@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.1.tgz#668b93776eaae55ebde8f3ad464b307a4963625e" - -html-encoding-sniffer@^1.0.1: +html-encoding-sniffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" dependencies: whatwg-encoding "^1.0.1" -html-entities@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.2.1.tgz#0df29351f0721163515dfb9e5543e5f6eed5162f" - -html-minifier@^3.2.3: - version "3.5.19" - resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.19.tgz#ed53c4b7326fe507bc3a1adbcc3bbb56660a2ebd" - dependencies: - camel-case "3.0.x" - clean-css "4.1.x" - commander "2.16.x" - he "1.1.x" - param-case "2.1.x" - relateurl "0.2.x" - uglify-js "3.4.x" - html-parse-stringify2@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/html-parse-stringify2/-/html-parse-stringify2-2.0.1.tgz#dc5670b7292ca158b7bc916c9a6735ac8872834a" dependencies: void-elements "^2.0.1" -html-webpack-plugin@2.29.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-2.29.0.tgz#e987f421853d3b6938c8c4c8171842e5fd17af23" - dependencies: - bluebird "^3.4.7" - html-minifier "^3.2.3" - loader-utils "^0.2.16" - lodash "^4.17.3" - pretty-error "^2.0.2" - toposort "^1.0.0" +htmlescape@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351" htmlparser2@^3.9.1: version "3.9.2" @@ -3662,28 +3468,6 @@ htmlparser2@^3.9.1: inherits "^2.0.1" readable-stream "^2.0.2" -htmlparser2@~3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.3.0.tgz#cc70d05a59f6542e43f0e685c982e14c924a9efe" - dependencies: - domelementtype "1" - domhandler "2.1" - domutils "1.1" - readable-stream "1.0" - -http-deceiver@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" - -http-errors@1.6.2: - version "1.6.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" - dependencies: - depd "1.1.1" - inherits "2.0.3" - setprototypeof "1.0.3" - statuses ">= 1.3.1 < 2" - http-errors@~1.6.2: version "1.6.3" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" @@ -3693,10 +3477,6 @@ http-errors@~1.6.2: setprototypeof "1.1.0" statuses ">= 1.4.0 < 2" -http-parser-js@>=0.4.0: - version "0.4.13" - resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.4.13.tgz#3bd6d6fde6e3172c9334c3b33b6c193d80fe1137" - http-proxy-agent@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405" @@ -3704,23 +3484,6 @@ http-proxy-agent@^2.1.0: agent-base "4" debug "3.1.0" -http-proxy-middleware@~0.17.4: - version "0.17.4" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz#642e8848851d66f09d4f124912846dbaeb41b833" - dependencies: - http-proxy "^1.16.2" - is-glob "^3.1.0" - lodash "^4.17.2" - micromatch "^2.3.11" - -http-proxy@^1.16.2: - version "1.17.0" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.17.0.tgz#7ad38494658f84605e2f6db4436df410f4e5be9a" - dependencies: - eventemitter3 "^3.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - http-signature@~1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" @@ -3753,8 +3516,8 @@ hyphenate-style-name@^1.0.2: resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz#31160a36930adaf1fc04c6074f7eb41465d4ec4b" i18next-browser-languagedetector@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-2.2.2.tgz#b2599e3e8bc8b66038010e9758c28222688df6aa" + version "2.2.3" + resolved "https://registry.yarnpkg.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-2.2.3.tgz#4196a9964b6d51b76254706a267ba746c9ca19de" i18next-fetch-backend@^0.1.0: version "0.1.0" @@ -3767,28 +3530,20 @@ i18next-xhr-backend@^1.4.3: resolved "https://registry.yarnpkg.com/i18next-xhr-backend/-/i18next-xhr-backend-1.5.1.tgz#50282610780c6a696d880dfa7f4ac1d01e8c3ad5" i18next@^11.4.0: - version "11.4.0" - resolved "https://registry.yarnpkg.com/i18next/-/i18next-11.4.0.tgz#9179bc27b74158d773893356f19b039bedbc355a" + version "11.6.0" + resolved "https://registry.yarnpkg.com/i18next/-/i18next-11.6.0.tgz#e0047aa3e3a0080f6f318426f90597cbb0d6ddd5" -iconv-lite@0.4.19: - version "0.4.19" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" - -iconv-lite@^0.4.17, iconv-lite@^0.4.4, iconv-lite@~0.4.13: +iconv-lite@0.4.23: version "0.4.23" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" dependencies: safer-buffer ">= 2.1.2 < 3" -icss-replace-symbols@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded" - -icss-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-2.1.0.tgz#83f0a0ec378bf3246178b6c2ad9136f135b1c962" +iconv-lite@^0.4.17, iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" dependencies: - postcss "^6.0.1" + safer-buffer ">= 2.1.2 < 3" ieee754@^1.1.4: version "1.1.12" @@ -3800,17 +3555,13 @@ ignore-walk@^3.0.1: dependencies: minimatch "^3.0.4" -ignore@^3.3.3: - version "3.3.10" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" +ignore@^4.0.2: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - -import-local@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-0.1.1.tgz#b1179572aacdc11c6a91009fb430dbcab5f668a8" +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" dependencies: pkg-dir "^2.0.0" resolve-cwd "^2.0.0" @@ -3829,13 +3580,9 @@ indent-string@^2.1.0: dependencies: repeating "^2.0.0" -indexes-of@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" - -indexof@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" +"individual@>=3.0.0 <3.1.0-0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/individual/-/individual-3.0.0.tgz#e7ca4f85f8957b018734f285750dc22ec2f9862d" inflight@^1.0.4: version "1.0.6" @@ -3856,36 +3603,59 @@ ini@^1.3.4, ini@~1.3.0: version "1.3.5" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" -inquirer@3.3.0, inquirer@^3.0.6: - version "3.3.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" +inject-lr-script@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/inject-lr-script/-/inject-lr-script-2.1.0.tgz#e61b5e84c118733906cbea01ec3d746698a39f65" + dependencies: + resp-modifier "^6.0.0" + +inline-source-map@~0.6.0: + version "0.6.2" + resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5" + dependencies: + source-map "~0.5.3" + +inquirer@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-5.2.0.tgz#db350c2b73daca77ff1243962e9f22f099685726" dependencies: ansi-escapes "^3.0.0" chalk "^2.0.0" cli-cursor "^2.1.0" cli-width "^2.0.0" - external-editor "^2.0.4" + external-editor "^2.1.0" figures "^2.0.0" lodash "^4.3.0" mute-stream "0.0.7" run-async "^2.2.0" - rx-lite "^4.0.8" - rx-lite-aggregates "^4.0.8" + rxjs "^5.5.2" string-width "^2.1.0" strip-ansi "^4.0.0" through "^2.3.6" -internal-ip@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-1.2.0.tgz#ae9fbf93b984878785d50a8de1b356956058cf5c" +insert-module-globals@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.0.tgz#ec87e5b42728479e327bd5c5c71611ddfb4752ba" dependencies: - meow "^3.3.0" + JSONStream "^1.0.3" + acorn-node "^1.5.2" + combine-source-map "^0.8.0" + concat-stream "^1.6.1" + is-buffer "^1.1.0" + path-is-absolute "^1.0.1" + process "~0.11.0" + through2 "^2.0.0" + undeclared-identifiers "^1.1.2" + xtend "^4.0.0" -interpret@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" +internal-ip@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-3.0.1.tgz#df5c99876e1d2eb2ea2d74f520e3f669a00ece27" + dependencies: + default-gateway "^2.6.0" + ipaddr.js "^1.5.2" -invariant@^2.0.0, invariant@^2.2.1, invariant@^2.2.2, invariant@^2.2.4: +invariant@^2.0.0, invariant@^2.2.0, invariant@^2.2.1, invariant@^2.2.2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" dependencies: @@ -3895,17 +3665,13 @@ invert-kv@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" -ip@^1.1.0, ip@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - -ipaddr.js@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b" - -is-absolute-url@^2.0.0: +ip-regex@^2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + +ipaddr.js@^1.5.2: + version "1.8.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.1.tgz#fa4b79fa47fd3def5e3b159825161c0a519c9427" is-accessor-descriptor@^0.1.6: version "0.1.6" @@ -3933,7 +3699,7 @@ is-boolean-object@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.0.0.tgz#98f8b28030684219a95f375cfbd88ce3405dff93" -is-buffer@^1.1.5, is-buffer@~1.1.1: +is-buffer@^1.1.0, is-buffer@^1.1.5, is-buffer@~1.1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" @@ -3943,15 +3709,15 @@ is-builtin-module@^1.0.0: dependencies: builtin-modules "^1.0.0" -is-callable@^1.1.1, is-callable@^1.1.3: +is-callable@^1.1.1, is-callable@^1.1.3, is-callable@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" is-ci@^1.0.10: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.0.tgz#3f4a08d6303a09882cef3f0fb97439c5f5ce2d53" dependencies: - ci-info "^1.0.0" + ci-info "^1.3.0" is-data-descriptor@^0.1.4: version "0.1.4" @@ -3985,10 +3751,6 @@ is-descriptor@^1.0.0, is-descriptor@^1.0.2: is-data-descriptor "^1.0.0" kind-of "^6.0.2" -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - is-dotfile@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" @@ -4017,7 +3779,7 @@ is-extglob@^2.1.0, is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" -is-finite@^1.0.0: +is-finite@^1.0.0, is-finite@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" dependencies: @@ -4037,6 +3799,10 @@ is-function@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5" +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + is-glob@^2.0.0, is-glob@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" @@ -4059,16 +3825,19 @@ is-in-browser@^1.0.2, is-in-browser@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/is-in-browser/-/is-in-browser-1.1.3.tgz#56ff4db683a078c6082eb95dad7dc62e1d04f835" -is-installed-globally@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" - dependencies: - global-dirs "^0.1.0" - is-path-inside "^1.0.0" - -is-npm@^1.0.0: +is-my-ip-valid@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" + resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" + +is-my-json-valid@^2.12.4: + version "2.19.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz#8fd6e40363cd06b963fa877d444bfb5eddc62175" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + is-my-ip-valid "^1.0.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" is-number-object@^1.0.3: version "1.0.3" @@ -4090,10 +3859,6 @@ is-number@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" -is-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - is-object@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" @@ -4114,7 +3879,7 @@ is-path-inside@^1.0.0: dependencies: path-is-inside "^1.0.1" -is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: +is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -4136,9 +3901,9 @@ is-promise@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" -is-redirect@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" is-regex@^1.0.4: version "1.0.4" @@ -4146,7 +3911,11 @@ is-regex@^1.0.4: dependencies: has "^1.0.1" -is-resolvable@^1.0.0: +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + +is-resolvable@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" @@ -4154,10 +3923,6 @@ is-retry-allowed@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" -is-root@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-root/-/is-root-1.0.0.tgz#07b6c233bc394cd9d02ba15c966bd6660d6342d5" - is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -4170,12 +3935,6 @@ is-subset@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" -is-svg@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-2.1.0.tgz#cf61090da0d9efbcab8722deba6f032208dbb0e9" - dependencies: - html-comment-regex "^1.1.0" - is-symbol@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" @@ -4188,14 +3947,14 @@ is-utf8@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" -is-windows@^1.0.1, is-windows@^1.0.2: +is-windows@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" + +is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" -is-wsl@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" - isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" @@ -4204,6 +3963,10 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" +isarray@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -4229,7 +3992,7 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" -istanbul-api@^1.1.1: +istanbul-api@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" dependencies: @@ -4246,7 +4009,7 @@ istanbul-api@^1.1.1: mkdirp "^0.5.1" once "^1.4.0" -istanbul-lib-coverage@^1.0.1, istanbul-lib-coverage@^1.1.2, istanbul-lib-coverage@^1.2.0: +istanbul-lib-coverage@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" @@ -4256,7 +4019,7 @@ istanbul-lib-hook@^1.2.0: dependencies: append-transform "^1.0.0" -istanbul-lib-instrument@^1.10.1, istanbul-lib-instrument@^1.4.2: +istanbul-lib-instrument@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" dependencies: @@ -4277,16 +4040,6 @@ istanbul-lib-report@^1.1.4: path-parse "^1.0.5" supports-color "^3.1.2" -istanbul-lib-source-maps@^1.1.0: - version "1.2.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.3.tgz#20fb54b14e14b3fb6edb6aca3571fd2143db44e6" - dependencies: - debug "^3.1.0" - istanbul-lib-coverage "^1.1.2" - mkdirp "^0.5.1" - rimraf "^2.6.1" - source-map "^0.5.3" - istanbul-lib-source-maps@^1.2.4: version "1.2.5" resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" @@ -4310,120 +4063,142 @@ isurl@^1.0.0-alpha5: has-to-string-tag-x "^1.2.0" is-object "^1.0.1" -jest-changed-files@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-20.0.3.tgz#9394d5cc65c438406149bef1bf4d52b68e03e3f8" - -jest-cli@^20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-20.0.4.tgz#e532b19d88ae5bc6c417e8b0593a6fe954b1dc93" +jest-changed-files@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" dependencies: - ansi-escapes "^1.4.0" - callsites "^2.0.0" - chalk "^1.1.3" + throat "^4.0.0" + +jest-cli@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.5.0.tgz#d316b8e34a38a610a1efc4f0403d8ef8a55e4492" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" graceful-fs "^4.1.11" + import-local "^1.0.0" is-ci "^1.0.10" - istanbul-api "^1.1.1" - istanbul-lib-coverage "^1.0.1" - istanbul-lib-instrument "^1.4.2" - istanbul-lib-source-maps "^1.1.0" - jest-changed-files "^20.0.3" - jest-config "^20.0.4" - jest-docblock "^20.0.3" - jest-environment-jsdom "^20.0.3" - jest-haste-map "^20.0.4" - jest-jasmine2 "^20.0.4" - jest-message-util "^20.0.3" - jest-regex-util "^20.0.3" - jest-resolve-dependencies "^20.0.3" - jest-runtime "^20.0.4" - jest-snapshot "^20.0.3" - jest-util "^20.0.3" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.2" + jest-config "^23.5.0" + jest-environment-jsdom "^23.4.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.5.0" + jest-runner "^23.5.0" + jest-runtime "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" micromatch "^2.3.11" - node-notifier "^5.0.2" - pify "^2.3.0" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" slash "^1.0.0" - string-length "^1.0.1" - throat "^3.0.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" which "^1.2.12" - worker-farm "^1.3.1" - yargs "^7.0.2" + yargs "^11.0.0" -jest-config@^20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-20.0.4.tgz#e37930ab2217c913605eff13e7bd763ec48faeea" +jest-config@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.5.0.tgz#3770fba03f7507ee15f3b8867c742e48f31a9773" dependencies: - chalk "^1.1.3" + babel-core "^6.0.0" + babel-jest "^23.4.2" + chalk "^2.0.1" glob "^7.1.1" - jest-environment-jsdom "^20.0.3" - jest-environment-node "^20.0.3" - jest-jasmine2 "^20.0.4" - jest-matcher-utils "^20.0.3" - jest-regex-util "^20.0.3" - jest-resolve "^20.0.4" - jest-validate "^20.0.3" - pretty-format "^20.0.3" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.5.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + pretty-format "^23.5.0" -jest-diff@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-20.0.3.tgz#81f288fd9e675f0fb23c75f1c2b19445fe586617" +jest-diff@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.5.0.tgz#250651a433dd0050290a07642946cc9baaf06fba" dependencies: - chalk "^1.1.3" + chalk "^2.0.1" diff "^3.2.0" - jest-matcher-utils "^20.0.3" - pretty-format "^20.0.3" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" -jest-docblock@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712" - -jest-docblock@^21.0.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" - -jest-environment-jsdom@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-20.0.3.tgz#048a8ac12ee225f7190417713834bb999787de99" +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" dependencies: - jest-mock "^20.0.3" - jest-util "^20.0.3" - jsdom "^9.12.0" + detect-newline "^2.1.0" -jest-environment-node@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-20.0.3.tgz#d488bc4612af2c246e986e8ae7671a099163d403" +jest-each@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.5.0.tgz#77f7e2afe6132a80954b920006e78239862b10ba" dependencies: - jest-mock "^20.0.3" - jest-util "^20.0.3" + chalk "^2.0.1" + pretty-format "^23.5.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + jsdom "^11.5.1" + +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" jest-get-type@^22.1.0: version "22.4.3" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" -jest-haste-map@^20.0.4: - version "20.0.5" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.0.5.tgz#abad74efb1a005974a7b6517e11010709cab9112" +jest-haste-map@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.5.0.tgz#d4ca618188bd38caa6cb20349ce6610e194a8065" dependencies: fb-watchman "^2.0.0" graceful-fs "^4.1.11" - jest-docblock "^20.0.3" + invariant "^2.2.4" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" micromatch "^2.3.11" - sane "~1.6.0" - worker-farm "^1.3.1" + sane "^2.0.0" -jest-jasmine2@^20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-20.0.4.tgz#fcc5b1411780d911d042902ef1859e852e60d5e1" +jest-jasmine2@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.5.0.tgz#05fe7f1788e650eeb5a03929e6461ea2e9f3db53" dependencies: - chalk "^1.1.3" - graceful-fs "^4.1.11" - jest-diff "^20.0.3" - jest-matcher-utils "^20.0.3" - jest-matchers "^20.0.3" - jest-message-util "^20.0.3" - jest-snapshot "^20.0.3" - once "^1.4.0" - p-map "^1.1.1" + babel-traverse "^6.0.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.5.0" + is-generator-fn "^1.0.0" + jest-diff "^23.5.0" + jest-each "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + pretty-format "^23.5.0" jest-junit@^5.1.0: version "5.1.0" @@ -4434,185 +4209,236 @@ jest-junit@^5.1.0: strip-ansi "^4.0.0" xml "^1.0.1" -jest-matcher-utils@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-20.0.3.tgz#b3a6b8e37ca577803b0832a98b164f44b7815612" +jest-leak-detector@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.5.0.tgz#14ac2a785bd625160a2ea968fd5d98b7dcea3e64" dependencies: - chalk "^1.1.3" - pretty-format "^20.0.3" + pretty-format "^23.5.0" -jest-matchers@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-20.0.3.tgz#ca69db1c32db5a6f707fa5e0401abb55700dfd60" +jest-matcher-utils@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.5.0.tgz#0e2ea67744cab78c9ab15011c4d888bdd3e49e2a" dependencies: - jest-diff "^20.0.3" - jest-matcher-utils "^20.0.3" - jest-message-util "^20.0.3" - jest-regex-util "^20.0.3" + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" -jest-message-util@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-20.0.3.tgz#6aec2844306fcb0e6e74d5796c1006d96fdd831c" +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" dependencies: - chalk "^1.1.3" + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" micromatch "^2.3.11" slash "^1.0.0" + stack-utils "^1.0.1" -jest-mock@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-20.0.3.tgz#8bc070e90414aa155c11a8d64c869a0d5c71da59" +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" -jest-regex-util@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-20.0.3.tgz#85bbab5d133e44625b19faf8c6aa5122d085d762" +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" -jest-resolve-dependencies@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-20.0.3.tgz#6e14a7b717af0f2cb3667c549de40af017b1723a" +jest-resolve-dependencies@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.5.0.tgz#10c4d135beb9d2256de1fedc7094916c3ad74af7" dependencies: - jest-regex-util "^20.0.3" + jest-regex-util "^23.3.0" + jest-snapshot "^23.5.0" -jest-resolve@^20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-20.0.4.tgz#9448b3e8b6bafc15479444c6499045b7ffe597a5" +jest-resolve@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.5.0.tgz#3b8e7f67e84598f0caf63d1530bd8534a189d0e6" dependencies: - browser-resolve "^1.11.2" - is-builtin-module "^1.0.0" - resolve "^1.3.2" + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" -jest-runtime@^20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-20.0.4.tgz#a2c802219c4203f754df1404e490186169d124d8" +jest-runner@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.5.0.tgz#570f7a044da91648b5bb9b6baacdd511076c71d7" + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.5.0" + jest-jasmine2 "^23.5.0" + jest-leak-detector "^23.5.0" + jest-message-util "^23.4.0" + jest-runtime "^23.5.0" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.5.0.tgz#eb503525a196dc32f2f9974e3482d26bdf7b63ce" dependencies: babel-core "^6.0.0" - babel-jest "^20.0.3" - babel-plugin-istanbul "^4.0.0" - chalk "^1.1.3" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" graceful-fs "^4.1.11" - jest-config "^20.0.4" - jest-haste-map "^20.0.4" - jest-regex-util "^20.0.3" - jest-resolve "^20.0.4" - jest-util "^20.0.3" - json-stable-stringify "^1.0.1" + jest-config "^23.5.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" micromatch "^2.3.11" + realpath-native "^1.0.0" + slash "^1.0.0" strip-bom "3.0.0" - yargs "^7.0.2" + write-file-atomic "^2.1.0" + yargs "^11.0.0" -jest-snapshot@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-20.0.3.tgz#5b847e1adb1a4d90852a7f9f125086e187c76566" - dependencies: - chalk "^1.1.3" - jest-diff "^20.0.3" - jest-matcher-utils "^20.0.3" - jest-util "^20.0.3" - natural-compare "^1.4.0" - pretty-format "^20.0.3" +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" -jest-util@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-20.0.3.tgz#0c07f7d80d82f4e5a67c6f8b9c3fe7f65cfd32ad" +jest-snapshot@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.5.0.tgz#cc368ebd8513e1175e2a7277f37a801b7358ae79" dependencies: - chalk "^1.1.3" - graceful-fs "^4.1.11" - jest-message-util "^20.0.3" - jest-mock "^20.0.3" - jest-validate "^20.0.3" - leven "^2.1.0" + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-resolve "^23.5.0" mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^23.5.0" + semver "^5.5.0" -jest-validate@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-20.0.3.tgz#d0cfd1de4f579f298484925c280f8f1d94ec3cab" - dependencies: - chalk "^1.1.3" - jest-matcher-utils "^20.0.3" - leven "^2.1.0" - pretty-format "^20.0.3" - -jest-validate@^23.0.1: +jest-util@^23.4.0: version "23.4.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.4.0.tgz#d96eede01ef03ac909c009e9c8e455197d48c201" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" + dependencies: + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.4.0" + mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" + +jest-validate@^23.0.1, jest-validate@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.5.0.tgz#f5df8f761cf43155e1b2e21d6e9de8a2852d0231" dependencies: chalk "^2.0.1" jest-get-type "^22.1.0" leven "^2.1.0" - pretty-format "^23.2.0" + pretty-format "^23.5.0" -jest@20.0.4: - version "20.0.4" - resolved "https://registry.yarnpkg.com/jest/-/jest-20.0.4.tgz#3dd260c2989d6dad678b1e9cc4d91944f6d602ac" +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" dependencies: - jest-cli "^20.0.4" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" -js-base64@^2.1.8, js-base64@^2.1.9: +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + dependencies: + merge-stream "^1.0.1" + +jest@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.5.0.tgz#80de353d156ea5ea4a7332f7962ac79135fbc62e" + dependencies: + import-local "^1.0.0" + jest-cli "^23.5.0" + +js-base64@^2.1.8: version "2.4.8" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.8.tgz#57a9b130888f956834aa40c5b165ba59c758f033" -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" +js-levenshtein@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.3.tgz#3ef627df48ec8cf24bacf05c0f184ff30ef413c5" -js-tokens@^3.0.2: +js-tokens@^3.0.0, js-tokens@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" -js-yaml@^3.4.3, js-yaml@^3.7.0, js-yaml@^3.9.1: +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + +js-yaml@3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +js-yaml@^3.11.0, js-yaml@^3.7.0: version "3.12.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" dependencies: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@~3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" - dependencies: - argparse "^1.0.7" - esprima "^2.6.0" - jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" -jsdom@^9.12.0: - version "9.12.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" dependencies: - abab "^1.0.3" - acorn "^4.0.4" - acorn-globals "^3.1.0" + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" array-equal "^1.0.0" - content-type-parser "^1.0.1" cssom ">= 0.3.2 < 0.4.0" - cssstyle ">= 0.2.37 < 0.3.0" - escodegen "^1.6.1" - html-encoding-sniffer "^1.0.1" - nwmatcher ">= 1.3.9 < 2.0.0" - parse5 "^1.5.1" - request "^2.79.0" - sax "^1.2.1" - symbol-tree "^3.2.1" - tough-cookie "^2.3.2" - webidl-conversions "^4.0.0" - whatwg-encoding "^1.0.1" - whatwg-url "^4.3.0" - xml-name-validator "^2.0.1" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" jsesc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" +jsesc@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" + jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" -json-loader@^0.5.4: - version "0.5.7" - resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3abeb60d337a365185d" - json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -4629,36 +4455,24 @@ json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" -json-stable-stringify@^1.0.1: +json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + +json-stable-stringify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz#611c23e814db375527df851193db59dd2af27f45" dependencies: jsonify "~0.0.0" -json-stringify-safe@~5.0.1: +"json-stringify-safe@>=5.0.0 <5.1.0-0", json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" -json3@^3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" - json5@^0.5.0, json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" -jsonfile@^2.1.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66" - optionalDependencies: - graceful-fs "^4.1.6" - jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -4669,6 +4483,14 @@ jsonify@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + jsprim@^1.2.2: version "1.4.1" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" @@ -4753,20 +4575,12 @@ jss@^9.7.0: symbol-observable "^1.1.0" warning "^3.0.0" -jsx-ast-utils@^1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" - -jsx-ast-utils@^2.0.0: +jsx-ast-utils@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f" dependencies: array-includes "^3.0.3" -killable@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/killable/-/killable-1.0.0.tgz#da8b84bd47de5395878f95d64d02f2449fe05e6b" - kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -4787,17 +4601,17 @@ kind-of@^6.0.0, kind-of@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" -klaw@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" - optionalDependencies: - graceful-fs "^4.1.9" +kleur@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.1.tgz#7cc64b0d188d0dcbc98bdcdfdda2cc10619ddce8" -latest-version@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" +labeled-stream-splicer@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926" dependencies: - package-json "^4.0.0" + inherits "^2.0.1" + isarray "^2.0.4" + stream-splicer "^2.0.0" lazy-cache@^1.0.3: version "1.0.4" @@ -4809,6 +4623,14 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" +lcov-parse@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + leven@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" @@ -4852,34 +4674,6 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" -loader-fs-cache@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/loader-fs-cache/-/loader-fs-cache-1.0.1.tgz#56e0bf08bd9708b26a765b68509840c8dec9fdbc" - dependencies: - find-cache-dir "^0.1.1" - mkdirp "0.5.1" - -loader-runner@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" - -loader-utils@^0.2.16: - version "0.2.17" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - object-assign "^4.0.1" - -loader-utils@^1.0.2, loader-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" - dependencies: - big.js "^3.1.3" - emojis-list "^2.0.0" - json5 "^0.5.0" - locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -4891,34 +4685,18 @@ lodash-es@^4.17.5: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.10.tgz#62cd7104cdf5dd87f235a837f0ede0e8e5117e05" -lodash._reinterpolate@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - lodash.assign@^4.0.3, lodash.assign@^4.0.6, lodash.assign@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" - lodash.clonedeep@^4.3.2: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" -lodash.cond@^4.3.0: - version "4.5.2" - resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" - lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" -lodash.defaults@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" - lodash.flattendeep@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" @@ -4927,38 +4705,25 @@ lodash.isplainobject@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" -lodash.memoize@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" +lodash.memoize@~3.0.3: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f" lodash.mergewith@^4.6.0: version "4.6.1" resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927" -lodash.template@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.4.0.tgz#e73a0385c8355591746e020b99679c690e68fba0" - dependencies: - lodash._reinterpolate "~3.0.0" - lodash.templatesettings "^4.0.0" +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" -lodash.templatesettings@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz#2b4d4e95ba440d915ff08bc899e4553666713316" - dependencies: - lodash._reinterpolate "~3.0.0" - -lodash.uniq@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" - -"lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@~4.17.10: +lodash@^4.0.0, lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0, lodash@~4.17.10: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" -loglevel@^1.4.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.1.tgz#e0fc95133b6ef276cdc8887cdaf24aa6f156f8fa" +log-driver@1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" longest@^1.0.1: version "1.0.1" @@ -4977,10 +4742,6 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" -lower-case@^1.1.1: - version "1.1.4" - resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" - lowercase-keys@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" @@ -4992,12 +4753,6 @@ lru-cache@^4.0.1: pseudomap "^1.0.2" yallist "^2.1.2" -make-dir@^1.0.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" - dependencies: - pify "^3.0.0" - makeerror@1.0.x: version "1.0.11" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" @@ -5008,6 +4763,12 @@ map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" +map-limit@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/map-limit/-/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38" + dependencies: + once "~1.3.0" + map-obj@^1.0.0, map-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" @@ -5022,10 +4783,6 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -math-expression-evaluator@^1.2.14: - version "1.2.17" - resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" - math-random@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" @@ -5037,7 +4794,7 @@ md5.js@^1.3.4: hash-base "^3.0.0" inherits "^2.0.1" -md5@^2.1.0: +md5@^2.1.0, md5@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" dependencies: @@ -5045,28 +4802,17 @@ md5@^2.1.0: crypt "~0.0.1" is-buffer "~1.1.1" -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - mem@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" dependencies: mimic-fn "^1.0.0" -memory-fs@^0.4.0, memory-fs@~0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" - dependencies: - errno "^0.1.3" - readable-stream "^2.0.1" - memorystream@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" -meow@^3.3.0, meow@^3.7.0: +meow@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" dependencies: @@ -5081,19 +4827,17 @@ meow@^3.3.0, meow@^3.7.0: redent "^1.0.0" trim-newlines "^1.0.0" -merge-descriptors@1.0.1: +merge-stream@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + dependencies: + readable-stream "^2.0.1" merge@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - -micromatch@^2.1.5, micromatch@^2.3.11: +micromatch@^2.1.5, micromatch@^2.2.0, micromatch@^2.3.11, micromatch@^2.3.7: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" dependencies: @@ -5136,11 +4880,11 @@ miller-rabin@^4.0.0: bn.js "^4.0.0" brorand "^1.0.1" -"mime-db@>= 1.34.0 < 2", mime-db@~1.35.0: +mime-db@~1.35.0: version "1.35.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" -mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.18, mime-types@~2.1.7: +mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.7: version "2.1.19" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" dependencies: @@ -5150,7 +4894,7 @@ mime@1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" -mime@^1.4.1, mime@^1.5.0: +mime@^1.3.6: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -5176,17 +4920,11 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: dependencies: brace-expansion "^1.1.7" -minimatch@3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" - dependencies: - brace-expansion "^1.0.0" - minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" -minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: +minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" @@ -5195,8 +4933,8 @@ minimist@~0.0.1: resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" minipass@^2.2.1, minipass@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.3.tgz#a7dcc8b7b833f5d368759cce544dccb55f50f233" + version "2.3.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" dependencies: safe-buffer "^5.1.2" yallist "^3.0.0" @@ -5214,31 +4952,44 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: +"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" dependencies: minimist "0.0.8" +module-deps@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.1.0.tgz#d1e1efc481c6886269f7112c52c3236188e16479" + dependencies: + JSONStream "^1.0.3" + browser-resolve "^1.7.0" + cached-path-relative "^1.0.0" + concat-stream "~1.6.0" + defined "^1.0.0" + detective "^5.0.2" + duplexer2 "^0.1.2" + inherits "^2.0.1" + parents "^1.0.0" + readable-stream "^2.0.2" + resolve "^1.4.0" + stream-combiner2 "^1.1.1" + subarg "^1.0.0" + through2 "^2.0.0" + xtend "^4.0.0" + moment@^2.22.2: version "2.22.2" resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66" +moo@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/moo/-/moo-0.4.3.tgz#3f847a26f31cf625a956a87f2b10fbc013bfd10e" + ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" -multicast-dns-service-types@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" - -multicast-dns@^6.0.1: - version "6.2.3" - resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-6.2.3.tgz#a0ec7bd9055c4282f790c3c82f4e28db3b31b229" - dependencies: - dns-packet "^1.3.1" - thunky "^1.0.2" - mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" @@ -5268,44 +5019,27 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" nearley@^2.7.10: - version "2.13.0" - resolved "https://registry.yarnpkg.com/nearley/-/nearley-2.13.0.tgz#6e7b0f4e68bfc3e74c99eaef2eda39e513143439" + version "2.15.1" + resolved "https://registry.yarnpkg.com/nearley/-/nearley-2.15.1.tgz#965e4e6ec9ed6b80fc81453e161efbcebb36d247" dependencies: + moo "^0.4.3" nomnom "~1.6.2" railroad-diagrams "^1.0.0" randexp "0.4.6" semver "^5.4.1" needle@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.1.tgz#b5e325bd3aae8c2678902fa296f729455d1d3a7d" + version "2.2.2" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418" dependencies: debug "^2.1.2" iconv-lite "^0.4.4" sax "^1.2.4" -negotiator@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" - -neo-async@^2.5.0: - version "2.5.1" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.1.tgz#acb909e327b1e87ec9ef15f41b8a269512ad41ee" - -next-tick@1: - version "1.0.0" - resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" - nice-try@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" -no-case@^2.2.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.2.tgz#60b813396be39b3f1288a4c1ed5d1e7d28b464ac" - dependencies: - lower-case "^1.1.1" - node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -5314,16 +5048,12 @@ node-fetch@^1.0.1: is-stream "^1.0.1" node-fetch@^2.1.1: - version "2.1.2" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.2.tgz#ab884e8e7e57e38a944753cec706f788d1768bb5" + version "2.2.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.2.0.tgz#4ee79bde909262f9775f731e3656d0db55ced5b5" -node-forge@0.7.5: - version "0.7.5" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.5.tgz#6c152c345ce11c52f465c2abd957e8639cd674df" - -node-gyp@^3.3.1: - version "3.7.0" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.7.0.tgz#789478e8f6c45e277aa014f3e28f958f286f9203" +node-gyp@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" dependencies: fstream "^1.0.0" glob "^7.0.3" @@ -5332,7 +5062,7 @@ node-gyp@^3.3.1: nopt "2 || 3" npmlog "0 || 1 || 2 || 3 || 4" osenv "0" - request ">=2.9.0 <2.82.0" + request "^2.87.0" rimraf "2" semver "~5.3.0" tar "^2.0.0" @@ -5342,35 +5072,11 @@ node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" -node-libs-browser@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.1.0.tgz#5f94263d404f6e44767d726901fff05478d600df" - dependencies: - assert "^1.1.1" - browserify-zlib "^0.2.0" - buffer "^4.3.0" - console-browserify "^1.1.0" - constants-browserify "^1.0.0" - crypto-browserify "^3.11.0" - domain-browser "^1.1.1" - events "^1.0.0" - https-browserify "^1.0.0" - os-browserify "^0.3.0" - path-browserify "0.0.0" - process "^0.11.10" - punycode "^1.2.4" - querystring-es3 "^0.2.0" - readable-stream "^2.3.3" - stream-browserify "^2.0.1" - stream-http "^2.7.2" - string_decoder "^1.0.0" - timers-browserify "^2.0.4" - tty-browserify "0.0.0" - url "^0.11.0" - util "^0.10.3" - vm-browserify "0.0.4" +node-mkdirs@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/node-mkdirs/-/node-mkdirs-0.0.1.tgz#b20f50ba796a4f543c04a69942d06d06f8aaf552" -node-notifier@^5.0.2: +node-notifier@^5.2.1: version "5.2.1" resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" dependencies: @@ -5395,21 +5101,21 @@ node-pre-gyp@^0.10.0: tar "^4" node-sass-chokidar@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/node-sass-chokidar/-/node-sass-chokidar-1.3.0.tgz#3839698dd1de23b491bb674417b5e6fffaf25270" + version "1.3.3" + resolved "https://registry.yarnpkg.com/node-sass-chokidar/-/node-sass-chokidar-1.3.3.tgz#0bc83b6f4a8264ae27cbc80b18c49ed445d07d68" dependencies: async-foreach "^0.1.3" - chokidar "^1.6.1" + chokidar "^2.0.4" get-stdin "^4.0.1" glob "^7.0.3" meow "^3.7.0" - node-sass "^4.7.2" + node-sass "^4.9.2" sass-graph "^2.1.1" stdout-stream "^1.4.0" -node-sass@^4.7.2: - version "4.9.2" - resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.9.2.tgz#5e63fe6bd0f2ae3ac9d6c14ede8620e2b8bdb437" +node-sass@^4.9.2: + version "4.9.3" + resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.9.3.tgz#f407cf3d66f78308bb1e346b24fa428703196224" dependencies: async-foreach "^0.1.3" chalk "^1.1.1" @@ -5424,7 +5130,7 @@ node-sass@^4.7.2: meow "^3.7.0" mkdirp "^0.5.1" nan "^2.10.0" - node-gyp "^3.3.1" + node-gyp "^3.8.0" npmlog "^4.0.0" request "2.87.0" sass-graph "^2.2.4" @@ -5466,26 +5172,13 @@ normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: dependencies: remove-trailing-separator "^1.0.1" -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" - -normalize-url@^1.4.0: - version "1.9.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" - dependencies: - object-assign "^4.0.1" - prepend-http "^1.0.0" - query-string "^4.1.0" - sort-keys "^1.0.0" - npm-bundled@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308" + version "1.0.5" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" npm-packlist@^1.1.6: - version "1.1.10" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.10.tgz#1039db9e985727e464df066f4cf0ab6ef85c398a" + version "1.1.11" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" dependencies: ignore-walk "^3.0.1" npm-bundled "^1.0.1" @@ -5525,23 +5218,23 @@ nth-check@~1.0.1: dependencies: boolbase "~1.0.0" -num2fraction@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" - number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" -"nwmatcher@>= 1.3.9 < 2.0.0": - version "1.4.4" - resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.4.tgz#2285631f34a95f0d0395cd900c96ed39b58f346e" +nwsapi@^2.0.7: + version "2.0.8" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.8.tgz#e3603579b7e162b3dbedae4fb24e46f771d8fa24" oauth-sign@~0.8.1, oauth-sign@~0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" -object-assign@4.1.1, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -5553,11 +5246,7 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-hash@^1.1.4: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.3.0.tgz#76d9ba6ff113cf8efc0d996102851fe6723963e2" - -object-inspect@^1.5.0: +object-inspect@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" @@ -5565,7 +5254,7 @@ object-is@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.1.tgz#0aa60ec9989a0b3ed795cf4d06f62cf1ad6539b6" -object-keys@^1.0.11, object-keys@^1.0.8: +object-keys@^1.0.11, object-keys@^1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" @@ -5575,7 +5264,7 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.0.4, object.assign@^4.1.0: +object.assign@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" dependencies: @@ -5593,6 +5282,13 @@ object.entries@^1.0.4: function-bind "^1.1.0" has "^1.0.1" +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" @@ -5615,43 +5311,39 @@ object.values@^1.0.4: function-bind "^1.1.0" has "^1.0.1" -obuf@^1.0.0, obuf@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" - -on-finished@~2.3.0: +on-finished@^2.3.0, on-finished@~2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" dependencies: ee-first "1.1.1" -on-headers@~1.0.1: +on-headers@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" -once@^1.3.0, once@^1.4.0: +once@^1.3.0, once@^1.3.2, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" dependencies: wrappy "1" +once@~1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + dependencies: + wrappy "1" + onetime@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" dependencies: mimic-fn "^1.0.0" -opn@5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/opn/-/opn-5.2.0.tgz#71fdf934d6827d676cecbea1531f95d354641225" +opn@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/opn/-/opn-3.0.3.tgz#b6d99e7399f78d65c3baaffef1fb288e9b85243a" dependencies: - is-wsl "^1.1.0" - -opn@^5.1.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/opn/-/opn-5.3.0.tgz#64871565c863875f052cfdf53d3e3cb5adb53b1c" - dependencies: - is-wsl "^1.1.0" + object-assign "^4.0.1" optimist@^0.6.1: version "0.6.1" @@ -5671,13 +5363,11 @@ optionator@^0.8.1, optionator@^0.8.2: type-check "~0.3.2" wordwrap "~1.0.0" -original@>=0.0.5: - version "1.0.1" - resolved "https://registry.yarnpkg.com/original/-/original-1.0.1.tgz#b0a53ff42ba997a8c9cd1fb5daaeb42b9d693190" - dependencies: - url-parse "~1.4.0" +options@>=0.0.5: + version "0.0.6" + resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" -os-browserify@^0.3.0: +os-browserify@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" @@ -5710,6 +5400,12 @@ osenv@0, osenv@^0.1.4: os-homedir "^1.0.0" os-tmpdir "^1.0.0" +outpipe@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/outpipe/-/outpipe-1.1.1.tgz#50cf8616365e87e031e29a5ec9339a3da4725fa2" + dependencies: + shell-quote "^1.4.2" + p-cancelable@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa" @@ -5730,10 +5426,6 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" -p-map@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" - p-timeout@^1.1.1: version "1.2.1" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386" @@ -5744,24 +5436,27 @@ p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" -package-json@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" +pad-left@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pad-left/-/pad-left-2.1.0.tgz#16e6a3b2d44a8e138cb0838cc7cb403a4fc9e994" dependencies: - got "^6.7.1" - registry-auth-token "^3.0.1" - registry-url "^3.0.3" - semver "^5.1.0" + repeat-string "^1.5.4" + +pad-right@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774" + dependencies: + repeat-string "^1.5.2" pako@~1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" -param-case@2.1.x: - version "2.1.1" - resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.1.tgz#df94fd8cf6531ecf75e6bef9a0858fbc72be2247" +parents@^1.0.0, parents@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751" dependencies: - no-case "^2.2.0" + path-platform "~0.11.15" parse-asn1@^5.0.0: version "5.1.1" @@ -5795,13 +5490,17 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" +parse-ms@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d" + parse-passwd@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" -parse5@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" parse5@^3.0.1: version "3.0.3" @@ -5817,9 +5516,9 @@ pascalcase@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" -path-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" +path-browserify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" path-dirname@^1.0.0: version "1.0.2" @@ -5848,22 +5547,22 @@ path-key@^2.0.0, path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" +path-platform@~0.11.15: + version "0.11.15" + resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" -path-to-regexp@^1.0.1, path-to-regexp@^1.7.0: +path-to-regexp@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d" dependencies: isarray "0.0.1" path-to-regexp@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.2.1.tgz#90b617025a16381a879bc82a38d4e8bdeb2bcf45" + version "2.3.0" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-2.3.0.tgz#690d682cb9e2dde26d25f41bcc2b4774b67d1fa2" path-type@^1.0.0: version "1.1.0" @@ -5901,15 +5600,20 @@ pbkdf2@^3.0.3: safe-buffer "^5.0.1" sha.js "^2.4.8" -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" +pem@^1.8.3: + version "1.12.5" + resolved "https://registry.yarnpkg.com/pem/-/pem-1.12.5.tgz#97bf2e459537c54e0ee5b0aa11b5ca18d6b5fef2" + dependencies: + md5 "^2.2.1" + os-tmpdir "^1.0.1" + safe-buffer "^5.1.1" + which "^1.2.4" performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" -pify@^2.0.0, pify@^2.3.0: +pify@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" @@ -5939,310 +5643,36 @@ pkg-dir@^2.0.0: dependencies: find-up "^2.1.0" +plur@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156" + pluralize@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" -portfinder@^1.0.9: - version "1.0.13" - resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.13.tgz#bb32ecd87c27104ae6ee44b5a3ccbf0ebb1aede9" +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + +pom-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pom-parser/-/pom-parser-1.1.1.tgz#6fab4d2498e87c862072ab205aa88b1209e5f966" dependencies: - async "^1.5.2" - debug "^2.2.0" - mkdirp "0.5.x" + bluebird "^3.3.3" + coveralls "^2.11.3" + traverse "^0.6.6" + xml2js "^0.4.9" posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" -postcss-calc@^5.2.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-5.3.1.tgz#77bae7ca928ad85716e2fda42f261bf7c1d65b5e" - dependencies: - postcss "^5.0.2" - postcss-message-helpers "^2.0.0" - reduce-css-calc "^1.2.6" - -postcss-colormin@^2.1.8: - version "2.2.2" - resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-2.2.2.tgz#6631417d5f0e909a3d7ec26b24c8a8d1e4f96e4b" - dependencies: - colormin "^1.0.5" - postcss "^5.0.13" - postcss-value-parser "^3.2.3" - -postcss-convert-values@^2.3.4: - version "2.6.1" - resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz#bbd8593c5c1fd2e3d1c322bb925dcae8dae4d62d" - dependencies: - postcss "^5.0.11" - postcss-value-parser "^3.1.2" - -postcss-discard-comments@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz#befe89fafd5b3dace5ccce51b76b81514be00e3d" - dependencies: - postcss "^5.0.14" - -postcss-discard-duplicates@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz#b9abf27b88ac188158a5eb12abcae20263b91932" - dependencies: - postcss "^5.0.4" - -postcss-discard-empty@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz#d2b4bd9d5ced5ebd8dcade7640c7d7cd7f4f92b5" - dependencies: - postcss "^5.0.14" - -postcss-discard-overridden@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz#8b1eaf554f686fb288cd874c55667b0aa3668d58" - dependencies: - postcss "^5.0.16" - -postcss-discard-unused@^2.2.1: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz#bce30b2cc591ffc634322b5fb3464b6d934f4433" - dependencies: - postcss "^5.0.14" - uniqs "^2.0.0" - -postcss-filter-plugins@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/postcss-filter-plugins/-/postcss-filter-plugins-2.0.3.tgz#82245fdf82337041645e477114d8e593aa18b8ec" - dependencies: - postcss "^5.0.4" - -postcss-flexbugs-fixes@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-3.2.0.tgz#9b8b932c53f9cf13ba0f61875303e447c33dcc51" - dependencies: - postcss "^6.0.1" - -postcss-load-config@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-1.2.0.tgz#539e9afc9ddc8620121ebf9d8c3673e0ce50d28a" - dependencies: - cosmiconfig "^2.1.0" - object-assign "^4.1.0" - postcss-load-options "^1.2.0" - postcss-load-plugins "^2.3.0" - -postcss-load-options@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-load-options/-/postcss-load-options-1.2.0.tgz#b098b1559ddac2df04bc0bb375f99a5cfe2b6d8c" - dependencies: - cosmiconfig "^2.1.0" - object-assign "^4.1.0" - -postcss-load-plugins@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz#745768116599aca2f009fad426b00175049d8d92" - dependencies: - cosmiconfig "^2.1.1" - object-assign "^4.1.0" - -postcss-loader@2.0.8: - version "2.0.8" - resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.0.8.tgz#8c67ddb029407dfafe684a406cfc16bad2ce0814" - dependencies: - loader-utils "^1.1.0" - postcss "^6.0.0" - postcss-load-config "^1.2.0" - schema-utils "^0.3.0" - -postcss-merge-idents@^2.1.5: - version "2.1.7" - resolved "https://registry.yarnpkg.com/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz#4c5530313c08e1d5b3bbf3d2bbc747e278eea270" - dependencies: - has "^1.0.1" - postcss "^5.0.10" - postcss-value-parser "^3.1.1" - -postcss-merge-longhand@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz#23d90cd127b0a77994915332739034a1a4f3d658" - dependencies: - postcss "^5.0.4" - -postcss-merge-rules@^2.0.3: - version "2.1.2" - resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz#d1df5dfaa7b1acc3be553f0e9e10e87c61b5f721" - dependencies: - browserslist "^1.5.2" - caniuse-api "^1.5.2" - postcss "^5.0.4" - postcss-selector-parser "^2.2.2" - vendors "^1.0.0" - -postcss-message-helpers@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz#a4f2f4fab6e4fe002f0aed000478cdf52f9ba60e" - -postcss-minify-font-values@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz#4b58edb56641eba7c8474ab3526cafd7bbdecb69" - dependencies: - object-assign "^4.0.1" - postcss "^5.0.4" - postcss-value-parser "^3.0.2" - -postcss-minify-gradients@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz#5dbda11373703f83cfb4a3ea3881d8d75ff5e6e1" - dependencies: - postcss "^5.0.12" - postcss-value-parser "^3.3.0" - -postcss-minify-params@^1.0.4: - version "1.2.2" - resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz#ad2ce071373b943b3d930a3fa59a358c28d6f1f3" - dependencies: - alphanum-sort "^1.0.1" - postcss "^5.0.2" - postcss-value-parser "^3.0.2" - uniqs "^2.0.0" - -postcss-minify-selectors@^2.0.4: - version "2.1.1" - resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz#b2c6a98c0072cf91b932d1a496508114311735bf" - dependencies: - alphanum-sort "^1.0.2" - has "^1.0.1" - postcss "^5.0.14" - postcss-selector-parser "^2.0.0" - -postcss-modules-extract-imports@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb" - dependencies: - postcss "^6.0.1" - -postcss-modules-local-by-default@^1.0.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069" - dependencies: - css-selector-tokenizer "^0.7.0" - postcss "^6.0.1" - -postcss-modules-scope@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90" - dependencies: - css-selector-tokenizer "^0.7.0" - postcss "^6.0.1" - -postcss-modules-values@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20" - dependencies: - icss-replace-symbols "^1.1.0" - postcss "^6.0.1" - -postcss-normalize-charset@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz#ef9ee71212d7fe759c78ed162f61ed62b5cb93f1" - dependencies: - postcss "^5.0.5" - -postcss-normalize-url@^3.0.7: - version "3.0.8" - resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz#108f74b3f2fcdaf891a2ffa3ea4592279fc78222" - dependencies: - is-absolute-url "^2.0.0" - normalize-url "^1.4.0" - postcss "^5.0.14" - postcss-value-parser "^3.2.3" - -postcss-ordered-values@^2.1.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz#eec6c2a67b6c412a8db2042e77fe8da43f95c11d" - dependencies: - postcss "^5.0.4" - postcss-value-parser "^3.0.1" - -postcss-reduce-idents@^2.2.2: - version "2.4.0" - resolved "https://registry.yarnpkg.com/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz#c2c6d20cc958284f6abfbe63f7609bf409059ad3" - dependencies: - postcss "^5.0.4" - postcss-value-parser "^3.0.2" - -postcss-reduce-initial@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz#68f80695f045d08263a879ad240df8dd64f644ea" - dependencies: - postcss "^5.0.4" - -postcss-reduce-transforms@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz#ff76f4d8212437b31c298a42d2e1444025771ae1" - dependencies: - has "^1.0.1" - postcss "^5.0.8" - postcss-value-parser "^3.0.1" - -postcss-selector-parser@^2.0.0, postcss-selector-parser@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz#f9437788606c3c9acee16ffe8d8b16297f27bb90" - dependencies: - flatten "^1.0.2" - indexes-of "^1.0.1" - uniq "^1.0.1" - -postcss-svgo@^2.1.1: - version "2.1.6" - resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-2.1.6.tgz#b6df18aa613b666e133f08adb5219c2684ac108d" - dependencies: - is-svg "^2.0.0" - postcss "^5.0.14" - postcss-value-parser "^3.2.3" - svgo "^0.7.0" - -postcss-unique-selectors@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz#981d57d29ddcb33e7b1dfe1fd43b8649f933ca1d" - dependencies: - alphanum-sort "^1.0.1" - postcss "^5.0.4" - uniqs "^2.0.0" - -postcss-value-parser@^3.0.1, postcss-value-parser@^3.0.2, postcss-value-parser@^3.1.1, postcss-value-parser@^3.1.2, postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15" - -postcss-zindex@^2.0.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-2.2.0.tgz#d2109ddc055b91af67fc4cb3b025946639d2af22" - dependencies: - has "^1.0.1" - postcss "^5.0.4" - uniqs "^2.0.0" - -postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.16: - version "5.2.18" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5" - dependencies: - chalk "^1.1.3" - js-base64 "^2.1.9" - source-map "^0.5.6" - supports-color "^3.2.3" - -postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.13: - version "6.0.23" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324" - dependencies: - chalk "^2.4.1" - source-map "^0.6.1" - supports-color "^5.4.0" - prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" -prepend-http@^1.0.0, prepend-http@^1.0.1: +prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -6250,36 +5680,30 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" +prettier-bytes@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prettier-bytes/-/prettier-bytes-1.0.4.tgz#994b02aa46f699c50b6257b5faaa7fe2557e62d6" + prettier@^1.13.7: - version "1.13.7" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.7.tgz#850f3b8af784a49a6ea2d2eaa7ed1428a34b7281" + version "1.14.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.2.tgz#0ac1c6e1a90baa22a62925f41963c841983282f9" -pretty-bytes@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" - -pretty-error@^2.0.2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3" - dependencies: - renderkid "^2.0.1" - utila "~0.4" - -pretty-format@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-20.0.3.tgz#020e350a560a1fe1a98dc3beb6ccffb386de8b14" - dependencies: - ansi-regex "^2.1.1" - ansi-styles "^3.0.0" - -pretty-format@^23.2.0: - version "23.2.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.2.0.tgz#3b0aaa63c018a53583373c1cb3a5d96cc5e83017" +pretty-format@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.5.0.tgz#0f9601ad9da70fe690a269cd3efca732c210687c" dependencies: ansi-regex "^3.0.0" ansi-styles "^3.2.0" -private@^0.1.6, private@^0.1.7, private@^0.1.8: +pretty-ms@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-2.1.0.tgz#4257c256df3fb0b451d6affaab021884126981dc" + dependencies: + is-finite "^1.0.1" + parse-ms "^1.0.0" + plur "^1.0.0" + +private@^0.1.6, private@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -6291,7 +5715,7 @@ process-nextick-args@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" -process@^0.11.10: +process@~0.11.0: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" @@ -6299,36 +5723,26 @@ progress@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" -promise@8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/promise/-/promise-8.0.1.tgz#e45d68b00a17647b6da711bf85ed6ed47208f450" - dependencies: - asap "~2.0.3" - promise@^7.1.1: version "7.3.1" resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" dependencies: asap "~2.0.3" -prop-types@^15.5.10, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1: +prompts@^0.1.9: + version "0.1.14" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" + dependencies: + kleur "^2.0.1" + sisteransi "^0.1.1" + +prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2: version "15.6.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" dependencies: loose-envify "^1.3.1" object-assign "^4.1.1" -proxy-addr@~2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341" - dependencies: - forwarded "~0.1.2" - ipaddr.js "1.6.0" - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - ps-tree@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014" @@ -6340,8 +5754,8 @@ pseudomap@^1.0.2: resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" psl@^1.1.24: - version "1.1.28" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.28.tgz#4fb6ceb08a1e2214d4fd4de0ca22dae13740bc7b" + version "1.1.29" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" public-encrypt@^4.0.0: version "4.0.2" @@ -6357,7 +5771,7 @@ punycode@1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" -punycode@^1.2.4, punycode@^1.4.1: +punycode@^1.3.2, punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" @@ -6365,30 +5779,22 @@ punycode@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" -q@^1.1.2: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" +qs@~6.3.0: + version "6.3.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" -qs@6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -qs@~6.5.1: +qs@~6.5.1, qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" -query-string@^4.1.0: +query-string@^4.2.3: version "4.3.4" resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" dependencies: object-assign "^4.1.0" strict-uri-encode "^1.0.0" -querystring-es3@^0.2.0: +querystring-es3@~0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" @@ -6396,11 +5802,7 @@ querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" -querystringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.0.0.tgz#fa3ed6e68eb15159457c89b37bc6472833195755" - -raf@3.4.0, raf@^3.4.0: +raf@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.0.tgz#a28876881b4bc2ca9117d4138163ddb80f781575" dependencies: @@ -6418,8 +5820,8 @@ randexp@0.4.6: ret "~0.1.10" randomatic@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" + version "3.1.0" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116" dependencies: is-number "^4.0.0" kind-of "^6.0.0" @@ -6438,20 +5840,11 @@ randomfill@^1.0.3: randombytes "^2.0.5" safe-buffer "^5.1.0" -range-parser@^1.0.3, range-parser@~1.2.0: +range-parser@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" -raw-body@2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" - dependencies: - bytes "3.0.0" - http-errors "1.6.2" - iconv-lite "0.4.19" - unpipe "1.0.0" - -rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: +rc@^1.2.7: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" dependencies: @@ -6460,53 +5853,26 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.2.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-dev-utils@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-5.0.1.tgz#1f396e161fe44b595db1b186a40067289bf06613" - dependencies: - address "1.0.3" - babel-code-frame "6.26.0" - chalk "1.1.3" - cross-spawn "5.1.0" - detect-port-alt "1.1.6" - escape-string-regexp "1.0.5" - filesize "3.5.11" - global-modules "1.0.0" - gzip-size "3.0.0" - inquirer "3.3.0" - is-root "1.0.0" - opn "5.2.0" - react-error-overlay "^4.0.0" - recursive-readdir "2.2.1" - shell-quote "1.6.1" - sockjs-client "1.1.4" - strip-ansi "3.0.1" - text-table "0.2.0" - -react-dom@^16.4.1: - version "16.4.1" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.1.tgz#7f8b0223b3a5fbe205116c56deb85de32685dad6" +react-dom@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" dependencies: fbjs "^0.8.16" loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.0" -react-error-overlay@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-4.0.0.tgz#d198408a85b4070937a98667f500c832f86bd5d4" - react-i18next@^7.9.0: - version "7.9.0" - resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-7.9.0.tgz#9e4bdfbfbc0d084eddf13d1cd337cbd4beea6232" + version "7.10.1" + resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-7.10.1.tgz#9e119c15970eb401b9ef178336a2e09dd120bb15" dependencies: hoist-non-react-statics "^2.3.1" html-parse-stringify2 "2.0.1" prop-types "^15.6.0" -react-is@^16.4.1: - version "16.4.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.4.1.tgz#d624c4650d2c65dbd52c72622bbf389435d9776e" +react-is@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.4.2.tgz#84891b56c2b6d9efdee577cc83501dfc5ecead88" react-jss@^8.6.0: version "8.6.1" @@ -6569,69 +5935,30 @@ react-router@^4.2.0, react-router@^4.3.1: prop-types "^15.6.1" warning "^4.0.1" -react-scripts@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-1.1.4.tgz#d5c230e707918d6dd2d06f303b10f5222d017c88" - dependencies: - autoprefixer "7.1.6" - babel-core "6.26.0" - babel-eslint "7.2.3" - babel-jest "20.0.3" - babel-loader "7.1.2" - babel-preset-react-app "^3.1.1" - babel-runtime "6.26.0" - case-sensitive-paths-webpack-plugin "2.1.1" - chalk "1.1.3" - css-loader "0.28.7" - dotenv "4.0.0" - dotenv-expand "4.2.0" - eslint "4.10.0" - eslint-config-react-app "^2.1.0" - eslint-loader "1.9.0" - eslint-plugin-flowtype "2.39.1" - eslint-plugin-import "2.8.0" - eslint-plugin-jsx-a11y "5.1.1" - eslint-plugin-react "7.4.0" - extract-text-webpack-plugin "3.0.2" - file-loader "1.1.5" - fs-extra "3.0.1" - html-webpack-plugin "2.29.0" - jest "20.0.4" - object-assign "4.1.1" - postcss-flexbugs-fixes "3.2.0" - postcss-loader "2.0.8" - promise "8.0.1" - raf "3.4.0" - react-dev-utils "^5.0.1" - resolve "1.6.0" - style-loader "0.19.0" - sw-precache-webpack-plugin "0.11.4" - url-loader "0.6.2" - webpack "3.8.1" - webpack-dev-server "2.9.4" - webpack-manifest-plugin "1.3.2" - whatwg-fetch "2.0.3" - optionalDependencies: - fsevents "^1.1.3" - react-test-renderer@^16.0.0-0, react-test-renderer@^16.4.1: - version "16.4.1" - resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.4.1.tgz#f2fb30c2c7b517db6e5b10ed20bb6b0a7ccd8d70" + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.4.2.tgz#4e03eca9359bb3210d4373f7547d1364218ef74e" dependencies: fbjs "^0.8.16" object-assign "^4.1.1" prop-types "^15.6.0" - react-is "^16.4.1" + react-is "^16.4.2" -react@^16.4.1: - version "16.4.1" - resolved "https://registry.yarnpkg.com/react/-/react-16.4.1.tgz#de51ba5764b5dbcd1f9079037b862bd26b82fe32" +react@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" dependencies: fbjs "^0.8.16" loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.0" +read-only-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0" + dependencies: + readable-stream "^2.0.2" + read-pkg-up@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" @@ -6670,7 +5997,7 @@ read-pkg@^3.0.0: normalize-package-data "^2.3.2" path-type "^3.0.0" -readable-stream@1.0: +"readable-stream@>=1.0.33-1 <1.1.0-0": version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" dependencies: @@ -6679,7 +6006,7 @@ readable-stream@1.0: isarray "0.0.1" string_decoder "~0.10.x" -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.2.2, readable-stream@^2.2.9, readable-stream@^2.3.3, readable-stream@^2.3.6: +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" dependencies: @@ -6712,11 +6039,11 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recursive-readdir@2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.1.tgz#90ef231d0778c5ce093c9a48d74e5c5422d13a99" +realpath-native@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.1.tgz#07f40a0cce8f8261e2e8b7ebebf5c95965d7b633" dependencies: - minimatch "3.0.3" + util.promisify "^1.0.0" redent@^1.0.0: version "1.0.0" @@ -6725,20 +6052,6 @@ redent@^1.0.0: indent-string "^2.1.0" strip-indent "^1.0.1" -reduce-css-calc@^1.2.6: - version "1.3.0" - resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716" - dependencies: - balanced-match "^0.4.2" - math-expression-evaluator "^1.2.14" - reduce-function-call "^1.0.1" - -reduce-function-call@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/reduce-function-call/-/reduce-function-call-1.0.2.tgz#5a200bf92e0e37751752fe45b0ab330fd4b6be99" - dependencies: - balanced-match "^0.4.2" - redux-devtools-extension@^2.13.5: version "2.13.5" resolved "https://registry.yarnpkg.com/redux-devtools-extension/-/redux-devtools-extension-2.13.5.tgz#3ff34f7227acfeef3964194f5f7fc2765e5c5a39" @@ -6766,7 +6079,13 @@ redux@^4.0.0: loose-envify "^1.1.0" symbol-observable "^1.2.0" -regenerate@^1.2.1: +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + dependencies: + regenerate "^1.4.0" + +regenerate@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" @@ -6778,12 +6097,10 @@ regenerator-runtime@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" +regenerator-transform@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" private "^0.1.6" regex-cache@^0.4.2: @@ -6799,68 +6116,46 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexpu-core@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-1.0.0.tgz#86a763f58ee4d7c2f6b102e4764050de7ed90c6b" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regexpu-core@^2.0.0: +regexpp@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.0.tgz#b2a7534a85ca1b033bcf5ce9ff8e56d4e0755365" + +regexpu-core@^4.1.3, regexpu-core@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.4.0" + regjsparser "^0.3.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" -registry-auth-token@^3.0.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" - dependencies: - rc "^1.1.6" - safe-buffer "^5.0.1" +regjsgen@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.4.0.tgz#c1eb4c89a209263f8717c782591523913ede2561" -registry-url@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" - dependencies: - rc "^1.0.1" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" +regjsparser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.3.0.tgz#3c326da7fcfd69fa0d332575a41c8c0cdf588c96" dependencies: jsesc "~0.5.0" -relateurl@0.2.x: - version "0.2.7" - resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" +reload-css@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reload-css/-/reload-css-1.0.2.tgz#6afb11162e2314feccdad6dc5fde821fd7318331" + dependencies: + query-string "^4.2.3" remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" -renderkid@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.1.tgz#898cabfc8bede4b7b91135a3ffd323e58c0db319" - dependencies: - css-select "^1.1.0" - dom-converter "~0.1" - htmlparser2 "~3.3.0" - strip-ansi "^3.0.0" - utila "~0.3" - repeat-element@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" -repeat-string@^1.5.2, repeat-string@^1.6.1: +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" @@ -6870,7 +6165,46 @@ repeating@^2.0.0: dependencies: is-finite "^1.0.0" -request@2.87.0, request@^2.79.0: +request-promise-core@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" + dependencies: + lodash "^4.13.1" + +request-promise-native@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" + dependencies: + request-promise-core "1.1.1" + stealthy-require "^1.1.0" + tough-cookie ">=2.3.3" + +request@2.79.0: + version "2.79.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + qs "~6.3.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + uuid "^3.0.0" + +request@2.87.0: version "2.87.0" resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e" dependencies: @@ -6895,41 +6229,35 @@ request@2.87.0, request@^2.79.0: tunnel-agent "^0.6.0" uuid "^3.1.0" -"request@>=2.9.0 <2.82.0": - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" +request@^2.87.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" + aws-sign2 "~0.7.0" + aws4 "^1.8.0" caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" + combined-stream "~1.0.6" + extend "~3.0.2" forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" + 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.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" + 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.0.0" + uuid "^3.3.2" require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" -require-from-string@^1.1.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418" - require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" @@ -6941,22 +6269,18 @@ require-uncached@^1.0.3: caller-path "^0.1.0" resolve-from "^1.0.0" -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - resolve-cwd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" dependencies: resolve-from "^3.0.0" -resolve-dir@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43" +resolve-dir@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" dependencies: - expand-tilde "^2.0.0" - global-modules "^1.0.0" + expand-tilde "^1.2.2" + global-modules "^0.2.3" resolve-from@^1.0.0: version "1.0.1" @@ -6978,18 +6302,19 @@ resolve@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" -resolve@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.6.0.tgz#0fbd21278b27b4004481c395349e7aba60a9ff5c" - dependencies: - path-parse "^1.0.5" - -resolve@^1.3.2, resolve@^1.5.0: +resolve@^1.1.4, resolve@^1.1.6, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.6.0: version "1.8.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" dependencies: path-parse "^1.0.5" +resp-modifier@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + restore-cursor@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" @@ -7007,7 +6332,11 @@ right-align@^0.1.1: dependencies: align-text "^0.1.1" -rimraf@2, rimraf@^2.2.8, rimraf@^2.6.1, rimraf@^2.6.2: +right-now@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" + +rimraf@2, rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" dependencies: @@ -7027,27 +6356,23 @@ rst-selector-parser@^2.2.3: lodash.flattendeep "^4.4.0" nearley "^2.7.10" +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" + run-async@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" dependencies: is-promise "^2.1.0" -rx-lite-aggregates@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" +rxjs@^5.5.2: + version "5.5.11" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.11.tgz#f733027ca43e3bec6b994473be4ab98ad43ced87" dependencies: - rx-lite "*" + symbol-observable "1.0.1" -rx-lite@*, rx-lite@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" - -safe-buffer@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" - -safe-buffer@5.1.2, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -7057,21 +6382,24 @@ safe-regex@^1.1.0: dependencies: ret "~0.1.10" -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2: +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" -sane@~1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-1.6.0.tgz#9610c452307a135d29c1fdfe2547034180c46775" +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" dependencies: - anymatch "^1.3.0" + anymatch "^2.0.0" + capture-exit "^1.2.0" exec-sh "^0.2.0" - fb-watchman "^1.8.0" - minimatch "^3.0.2" + fb-watchman "^2.0.0" + micromatch "^3.1.4" minimist "^1.1.1" walker "~1.0.5" - watch "~0.10.0" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" sass-graph@^2.1.1, sass-graph@^2.2.4: version "2.2.4" @@ -7082,16 +6410,10 @@ sass-graph@^2.1.1, sass-graph@^2.2.4: scss-tokenizer "^0.2.3" yargs "^7.0.0" -sax@^1.2.1, sax@^1.2.4, sax@~1.2.1: +sax@>=0.6.0, sax@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" -schema-utils@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" - dependencies: - ajv "^5.0.0" - scss-tokenizer@^0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" @@ -7099,25 +6421,9 @@ scss-tokenizer@^0.2.3: js-base64 "^2.1.8" source-map "^0.4.2" -select-hose@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" - -selfsigned@^1.9.1: - version "1.10.3" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.3.tgz#d628ecf9e3735f84e8bafba936b3cf85bea43823" - dependencies: - node-forge "0.7.5" - -semver-diff@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" - dependencies: - semver "^5.0.3" - -"semver@2 || 3 || 4 || 5", semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: + version "5.5.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" semver@~5.3.0: version "5.3.0" @@ -7141,19 +6447,7 @@ send@0.16.2: range-parser "~1.2.0" statuses "~1.4.0" -serve-index@^1.7.2: - version "1.9.1" - resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" - dependencies: - 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" - -serve-static@1.13.2: +serve-static@^1.10.0: version "1.13.2" resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" dependencies: @@ -7162,10 +6456,6 @@ serve-static@1.13.2: parseurl "~1.3.2" send "0.16.2" -serviceworker-cache-polyfill@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/serviceworker-cache-polyfill/-/serviceworker-cache-polyfill-4.0.0.tgz#de19ee73bef21ab3c0740a37b33db62464babdeb" - set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -7192,25 +6482,28 @@ set-value@^2.0.0: is-plain-object "^2.0.3" split-string "^3.0.1" -setimmediate@^1.0.4, setimmediate@^1.0.5, setimmediate@~1.0.4: +setimmediate@^1.0.5, setimmediate@~1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" -setprototypeof@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" - setprototypeof@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" -sha.js@^2.4.0, sha.js@^2.4.8: +sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4: version "2.4.11" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" dependencies: inherits "^2.0.1" safe-buffer "^5.0.1" +shasum@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f" + dependencies: + json-stable-stringify "~0.0.0" + sha.js "~2.4.4" + shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" @@ -7221,7 +6514,7 @@ shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" -shell-quote@1.6.1, shell-quote@^1.6.1: +shell-quote@^1.4.2, shell-quote@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" dependencies: @@ -7238,6 +6531,20 @@ signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" +simple-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" + +simple-html-index@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/simple-html-index/-/simple-html-index-1.5.0.tgz#2c93eeaebac001d8a135fc0022bd4ade8f58996f" + dependencies: + from2-string "^1.1.0" + +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" @@ -7281,35 +6588,7 @@ sntp@1.x.x: dependencies: hoek "2.x.x" -sockjs-client@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.1.4.tgz#5babe386b775e4cf14e7520911452654016c8b12" - dependencies: - debug "^2.6.6" - eventsource "0.1.6" - faye-websocket "~0.11.0" - inherits "^2.0.1" - json3 "^3.3.2" - url-parse "^1.1.8" - -sockjs@0.3.18: - version "0.3.18" - resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.18.tgz#d9b289316ca7df77595ef299e075f0f937eb4207" - dependencies: - faye-websocket "^0.10.0" - uuid "^2.0.2" - -sort-keys@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" - dependencies: - is-plain-obj "^1.0.0" - -source-list-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.0.tgz#aaa47403f7b245a92fbc97ea08f250d6087ed085" - -source-map-resolve@^0.5.0: +source-map-resolve@^0.5.0, source-map-resolve@^0.5.1: version "0.5.2" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" dependencies: @@ -7325,13 +6604,22 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.6: + version "0.5.9" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" -source-map@0.5.x, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" +source-map@^0.1.38: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + dependencies: + amdefine ">=0.0.4" source-map@^0.4.2, source-map@^0.4.4: version "0.4.4" @@ -7339,7 +6627,11 @@ source-map@^0.4.2, source-map@^0.4.4: dependencies: amdefine ">=0.0.4" -source-map@^0.6.1, source-map@~0.6.1: +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1, source-map@~0.5.3: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + +source-map@^0.6.0, source-map@~0.6.0, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" @@ -7365,35 +6657,18 @@ spdx-license-ids@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" -spdy-transport@^2.0.18: - version "2.1.0" - resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-2.1.0.tgz#4bbb15aaffed0beefdd56ad61dbdc8ba3e2cb7a1" - dependencies: - debug "^2.6.8" - detect-node "^2.0.3" - hpack.js "^2.1.6" - obuf "^1.1.1" - readable-stream "^2.2.9" - safe-buffer "^5.0.1" - wbuf "^1.7.2" - -spdy@^3.4.1: - version "3.4.7" - resolved "https://registry.yarnpkg.com/spdy/-/spdy-3.4.7.tgz#42ff41ece5cc0f99a3a6c28aabb73f5c3b03acbc" - dependencies: - debug "^2.6.8" - handle-thing "^1.2.5" - http-deceiver "^1.2.7" - safe-buffer "^5.0.1" - select-hose "^2.0.0" - spdy-transport "^2.0.18" - split-string@^3.0.1, split-string@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" dependencies: extend-shallow "^3.0.0" +split2@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-0.2.1.tgz#02ddac9adc03ec0bb78c1282ec079ca6e85ae900" + dependencies: + through2 "~0.6.1" + split@0.3: version "0.3.3" resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" @@ -7419,6 +6694,14 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" +stack-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" + +stacked@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stacked/-/stacked-1.1.1.tgz#2c7fa38cc7e37a3411a77cd8e792de448f9f6975" + static-extend@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" @@ -7426,7 +6709,7 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" -"statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2": +"statuses@>= 1.4.0 < 2": version "1.5.0" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" @@ -7440,20 +6723,31 @@ stdout-stream@^1.4.0: dependencies: readable-stream "^2.0.1" -stream-browserify@^2.0.1: +stealthy-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + +stream-browserify@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" dependencies: inherits "~2.0.1" readable-stream "^2.0.2" +stream-combiner2@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe" + dependencies: + duplexer2 "~0.1.0" + readable-stream "^2.0.2" + stream-combiner@~0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" dependencies: duplexer "~0.1.1" -stream-http@^2.7.2: +stream-http@^2.0.0: version "2.8.3" resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" dependencies: @@ -7463,15 +6757,23 @@ stream-http@^2.7.2: to-arraybuffer "^1.0.0" xtend "^4.0.0" +stream-splicer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.0.tgz#1b63be438a133e4b671cc1935197600175910d83" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.2" + strict-uri-encode@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" -string-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" dependencies: - strip-ansi "^3.0.0" + astral-regex "^1.0.0" + strip-ansi "^4.0.0" string-width@^1.0.1, string-width@^1.0.2: version "1.0.2" @@ -7496,7 +6798,7 @@ string.prototype.padend@^3.0.0: es-abstract "^1.4.3" function-bind "^1.0.2" -string_decoder@^1.0.0, string_decoder@~1.1.1: +string_decoder@^1.1.1, string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" dependencies: @@ -7510,7 +6812,13 @@ stringstream@~0.0.4: version "0.0.6" resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" -strip-ansi@3.0.1, strip-ansi@^3.0.0, strip-ansi@^3.0.1: +strip-ansi@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220" + dependencies: + ansi-regex "^0.2.1" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" dependencies: @@ -7532,6 +6840,12 @@ strip-bom@^2.0.0: dependencies: is-utf8 "^0.2.0" +strip-css-comments@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-css-comments/-/strip-css-comments-3.0.0.tgz#7a5625eff8a2b226cf8947a11254da96e13dae89" + dependencies: + is-regexp "^1.0.0" + strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" @@ -7542,90 +6856,59 @@ strip-indent@^1.0.1: dependencies: get-stdin "^4.0.1" -strip-json-comments@~2.0.1: +strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" -style-loader@0.19.0: - version "0.19.0" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.19.0.tgz#7258e788f0fee6a42d710eaf7d6c2412a4c50759" +subarg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" dependencies: - loader-utils "^1.0.2" - schema-utils "^0.3.0" + minimist "^1.1.0" + +supports-color@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.3.1.tgz#15758df09d8ff3b4acc307539fabe27095e1042d" + +supports-color@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" -supports-color@^3.1.2, supports-color@^3.2.3: +supports-color@^3.1.2: version "3.2.3" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" dependencies: has-flag "^1.0.0" -supports-color@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - -supports-color@^5.3.0, supports-color@^5.4.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" dependencies: has-flag "^3.0.0" -svgo@^0.7.0: - version "0.7.2" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5" - dependencies: - 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" - -sw-precache-webpack-plugin@0.11.4: - version "0.11.4" - resolved "https://registry.yarnpkg.com/sw-precache-webpack-plugin/-/sw-precache-webpack-plugin-0.11.4.tgz#a695017e54eed575551493a519dc1da8da2dc5e0" - dependencies: - del "^2.2.2" - sw-precache "^5.1.1" - uglify-js "^3.0.13" - -sw-precache@^5.1.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/sw-precache/-/sw-precache-5.2.1.tgz#06134f319eec68f3b9583ce9a7036b1c119f7179" - dependencies: - dom-urls "^1.1.0" - es6-promise "^4.0.5" - glob "^7.1.1" - lodash.defaults "^4.2.0" - lodash.template "^4.4.0" - meow "^3.7.0" - mkdirp "^0.5.1" - pretty-bytes "^4.0.2" - sw-toolbox "^3.4.0" - update-notifier "^2.3.0" - -sw-toolbox@^3.4.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/sw-toolbox/-/sw-toolbox-3.6.0.tgz#26df1d1c70348658e4dea2884319149b7b3183b5" - dependencies: - path-to-regexp "^1.0.1" - serviceworker-cache-polyfill "^4.0.0" +symbol-observable@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.1.tgz#8340fc4702c3122df5d22288f88283f513d3fdd4" symbol-observable@^1.1.0, symbol-observable@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" -symbol-tree@^3.2.1: +symbol-tree@^3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" -table@^4.0.1, table@^4.0.2: +syntax-error@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" + dependencies: + acorn-node "^1.2.0" + +table@^4.0.2, table@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc" dependencies: @@ -7636,10 +6919,6 @@ table@^4.0.1, table@^4.0.2: slice-ansi "1.0.0" string-width "^2.1.1" -tapable@^0.2.7: - version "0.2.8" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" - tar@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" @@ -7649,8 +6928,8 @@ tar@^2.0.0: inherits "2" tar@^4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.4.tgz#ec8409fae9f665a4355cc3b4087d0820232bb8cd" + version "4.4.6" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" dependencies: chownr "^1.0.1" fs-minipass "^1.2.5" @@ -7660,11 +6939,12 @@ tar@^4: safe-buffer "^5.1.2" yallist "^3.0.2" -term-size@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" +term-color@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/term-color/-/term-color-1.0.1.tgz#38e192553a473e35e41604ff5199846bf8117a3a" dependencies: - execa "^0.7.0" + ansi-styles "2.0.1" + supports-color "1.3.1" test-exclude@^4.2.1: version "4.2.1" @@ -7676,7 +6956,7 @@ test-exclude@^4.2.1: read-pkg-up "^1.0.1" require-main-filename "^1.0.1" -text-table@0.2.0, text-table@~0.2.0: +text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -7689,31 +6969,37 @@ theming@^1.3.0: is-plain-object "^2.0.1" prop-types "^15.5.8" -throat@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-3.2.0.tgz#50cb0670edbc40237b9e347d7e1f88e4620af836" +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" -through@2, through@^2.3.6, through@^2.3.8, through@~2.3, through@~2.3.1: +through2@2.0.x, through2@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + +through2@~0.6.1: + version "0.6.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" + dependencies: + readable-stream ">=1.0.33-1 <1.1.0-0" + xtend ">=4.0.0 <4.1.0-0" + +through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8, through@~2.3, through@~2.3.1: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" -thunky@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.0.2.tgz#a862e018e3fb1ea2ec3fce5d55605cf57f247371" - -time-stamp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-2.0.0.tgz#95c6a44530e15ba8d6f4a3ecb8c3a3fac46da357" - timed-out@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" -timers-browserify@^2.0.4: - version "2.0.10" - resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" +timers-browserify@^1.0.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d" dependencies: - setimmediate "^1.0.4" + process "~0.11.0" tmp@^0.0.33: version "0.0.33" @@ -7733,6 +7019,10 @@ to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + to-object-path@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" @@ -7755,11 +7045,7 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" -toposort@^1.0.0: - version "1.0.7" - resolved "https://registry.yarnpkg.com/toposort/-/toposort-1.0.7.tgz#2e68442d9f64ec720b8cc89e6443ac6caa950029" - -tough-cookie@^2.3.2: +tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" dependencies: @@ -7772,14 +7058,20 @@ tough-cookie@~2.3.0, tough-cookie@~2.3.3: dependencies: punycode "^1.4.1" -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + dependencies: + punycode "^2.1.0" "traverse@>=0.3.0 <0.4": version "0.3.9" resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9" +traverse@^0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + trim-newlines@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" @@ -7794,9 +7086,9 @@ trim-right@^1.0.1: dependencies: glob "^6.0.4" -tty-browserify@0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" +tty-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811" tunnel-agent@^0.6.0: version "0.6.0" @@ -7804,6 +7096,10 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" @@ -7814,13 +7110,6 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -type-is@~1.6.15, type-is@~1.6.16: - version "1.6.16" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" - dependencies: - media-typer "0.3.0" - mime-types "~2.1.18" - typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" @@ -7829,14 +7118,7 @@ ua-parser-js@^0.7.18: version "0.7.18" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" -uglify-js@3.4.x, uglify-js@^3.0.13: - version "3.4.5" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.5.tgz#650889c0766cf0f6fd5346cea09cd212f544be69" - dependencies: - commander "~2.16.0" - source-map "~0.6.1" - -uglify-js@^2.6, uglify-js@^2.8.29: +uglify-js@^2.6: version "2.8.29" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" dependencies: @@ -7849,18 +7131,46 @@ uglify-to-browserify@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" -uglifyjs-webpack-plugin@^0.4.6: - version "0.4.6" - resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz#b951f4abb6bd617e66f63eb891498e391763e309" +ultron@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" + +umd@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf" + +undeclared-identifiers@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz#7d850a98887cff4bd0bf64999c014d08ed6d1acc" dependencies: - source-map "^0.5.6" - uglify-js "^2.8.29" - webpack-sources "^1.0.1" + acorn-node "^1.3.0" + get-assigned-identifiers "^1.2.0" + simple-concat "^1.0.0" + xtend "^4.0.1" underscore@~1.4.4: version "1.4.4" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.4.4.tgz#61a6a32010622afa07963bf325203cf12239d604" +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + union-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" @@ -7870,28 +7180,10 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^0.4.3" -uniq@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" - -uniqs@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" - -unique-string@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" - dependencies: - crypto-random-string "^1.0.0" - universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - unset-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" @@ -7899,10 +7191,6 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" -unzip-response@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" - unzipper@^0.8.11: version "0.8.14" resolved "https://registry.yarnpkg.com/unzipper/-/unzipper-0.8.14.tgz#ade0524cd2fc14d11b8de258be22f9d247d3f79b" @@ -7921,60 +7209,22 @@ upath@^1.0.5: version "1.1.0" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.0.tgz#35256597e46a581db4793d0ce47fa9aebfc9fabd" -update-notifier@^2.3.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" - dependencies: - boxen "^1.2.1" - chalk "^2.0.1" - configstore "^3.0.0" - import-lazy "^2.1.0" - is-ci "^1.0.10" - is-installed-globally "^0.1.0" - is-npm "^1.0.0" - latest-version "^3.0.0" - semver-diff "^2.0.0" - xdg-basedir "^3.0.0" - -upper-case@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" - -uri-js@^4.2.1: +uri-js@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" dependencies: punycode "^2.1.0" -urijs@^1.16.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.1.tgz#5b0ff530c0cbde8386f6342235ba5ca6e995d25a" - urix@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" -url-loader@0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-0.6.2.tgz#a007a7109620e9d988d14bce677a1decb9a993f7" - dependencies: - loader-utils "^1.0.2" - mime "^1.4.1" - schema-utils "^0.3.0" - url-parse-lax@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" dependencies: prepend-http "^1.0.1" -url-parse@^1.1.8, url-parse@~1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.1.tgz#4dec9dad3dc8585f862fed461d2e19bbf623df30" - dependencies: - querystringify "^2.0.0" - requires-port "^1.0.0" - url-template@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21" @@ -7983,7 +7233,11 @@ url-to-options@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" -url@^0.11.0: +url-trim@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-trim/-/url-trim-1.0.0.tgz#40057e2f164b88e5daca7269da47e6d1dd837adc" + +url@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" dependencies: @@ -7998,41 +7252,32 @@ util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + util@0.10.3: version "0.10.3" resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" dependencies: inherits "2.0.1" -util@^0.10.3: +util@~0.10.1: version "0.10.4" resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" dependencies: inherits "2.0.3" -utila@~0.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/utila/-/utila-0.3.3.tgz#d7e8e7d7e309107092b05f8d9688824d633a4226" - -utila@~0.4: - version "0.4.0" - resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - -uuid@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" - -uuid@^3.0.0, uuid@^3.1.0: +uuid@^3.0.0, uuid@^3.1.0, uuid@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" validate-npm-package-license@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338" + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" dependencies: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" @@ -8041,14 +7286,6 @@ value-equal@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-0.4.0.tgz#c5bdd2f54ee093c04839d71ce2e4758a6890abc7" -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - -vendors@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.2.tgz#7fcb5eef9f5623b156bcea89ec37d63676f21801" - verror@1.10.0: version "1.10.0" resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" @@ -8057,16 +7294,20 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vm-browserify@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" - dependencies: - indexof "0.0.1" +vm-browserify@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" void-elements@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + dependencies: + browser-process-hrtime "^0.1.2" + walker@~1.0.5: version "1.0.7" resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" @@ -8080,155 +7321,74 @@ warning@^3.0.0: loose-envify "^1.0.0" warning@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.1.tgz#66ce376b7fbfe8a887c22bdf0e7349d73d397745" + version "4.0.2" + resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.2.tgz#aa6876480872116fa3e11d434b0d0d8d91e44607" dependencies: loose-envify "^1.0.0" -watch@~0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" - -watchpack@^1.4.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00" +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" dependencies: - chokidar "^2.0.2" - graceful-fs "^4.1.2" - neo-async "^2.5.0" + exec-sh "^0.2.0" + minimist "^1.2.0" -wbuf@^1.1.0, wbuf@^1.7.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" +watchify-middleware@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/watchify-middleware/-/watchify-middleware-1.8.0.tgz#8f7cb9c528022be8525a7e066c10e2fd8c544be6" dependencies: - minimalistic-assert "^1.0.0" + concat-stream "^1.5.0" + debounce "^1.0.0" + events "^1.0.2" + object-assign "^4.0.1" + strip-ansi "^3.0.0" + watchify "^3.3.1" -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" +watchify@^3.3.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/watchify/-/watchify-3.11.0.tgz#03f1355c643955e7ab8dcbf399f624644221330f" + dependencies: + anymatch "^1.3.0" + browserify "^16.1.0" + chokidar "^1.0.0" + defined "^1.0.0" + outpipe "^1.1.0" + through2 "^2.0.0" + xtend "^4.0.0" -webidl-conversions@^4.0.0: +webidl-conversions@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" -webpack-dev-middleware@^1.11.0: - version "1.12.2" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz#f8fc1120ce3b4fc5680ceecb43d777966b21105e" +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.4.tgz#63fb016b7435b795d9025632c086a5209dbd2621" dependencies: - memory-fs "~0.4.1" - mime "^1.5.0" - path-is-absolute "^1.0.0" - range-parser "^1.0.3" - time-stamp "^2.0.0" - -webpack-dev-server@2.9.4: - version "2.9.4" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-2.9.4.tgz#7883e61759c6a4b33e9b19ec4037bd4ab61428d1" - dependencies: - ansi-html "0.0.7" - array-includes "^3.0.3" - bonjour "^3.5.0" - chokidar "^1.6.0" - compression "^1.5.2" - connect-history-api-fallback "^1.3.0" - debug "^3.1.0" - del "^3.0.0" - express "^4.13.3" - html-entities "^1.2.0" - http-proxy-middleware "~0.17.4" - import-local "^0.1.1" - internal-ip "1.2.0" - ip "^1.1.5" - killable "^1.0.0" - loglevel "^1.4.1" - opn "^5.1.0" - portfinder "^1.0.9" - selfsigned "^1.9.1" - serve-index "^1.7.2" - sockjs "0.3.18" - sockjs-client "1.1.4" - spdy "^3.4.1" - strip-ansi "^3.0.1" - supports-color "^4.2.1" - webpack-dev-middleware "^1.11.0" - yargs "^6.6.0" - -webpack-manifest-plugin@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/webpack-manifest-plugin/-/webpack-manifest-plugin-1.3.2.tgz#5ea8ee5756359ddc1d98814324fe43496349a7d4" - dependencies: - fs-extra "^0.30.0" - lodash ">=3.5 <5" - -webpack-sources@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack@3.8.1: - version "3.8.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.8.1.tgz#b16968a81100abe61608b0153c9159ef8bb2bd83" - dependencies: - acorn "^5.0.0" - acorn-dynamic-import "^2.0.0" - ajv "^5.1.5" - ajv-keywords "^2.0.0" - async "^2.1.2" - enhanced-resolve "^3.4.0" - escope "^3.6.0" - interpret "^1.0.0" - json-loader "^0.5.4" - json5 "^0.5.1" - loader-runner "^2.3.0" - loader-utils "^1.1.0" - memory-fs "~0.4.1" - mkdirp "~0.5.0" - node-libs-browser "^2.0.0" - source-map "^0.5.3" - supports-color "^4.2.1" - tapable "^0.2.7" - uglifyjs-webpack-plugin "^0.4.6" - watchpack "^1.4.0" - webpack-sources "^1.0.1" - yargs "^8.0.2" - -websocket-driver@>=0.5.1: - version "0.7.0" - resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.0.tgz#0caf9d2d755d93aee049d4bdd0d3fe2cca2a24eb" - dependencies: - http-parser-js ">=0.4.0" - websocket-extensions ">=0.1.1" - -websocket-extensions@>=0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29" - -whatwg-encoding@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.3.tgz#57c235bc8657e914d24e1a397d3c82daee0a6ba3" - dependencies: - iconv-lite "0.4.19" - -whatwg-fetch@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" + iconv-lite "0.4.23" whatwg-fetch@>=0.10.0: version "2.0.4" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" -whatwg-url@^4.3.0: - version "4.8.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.8.0.tgz#d2981aa9148c1e00a41c5a6131166ab4683bbcc0" - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" +whatwg-mimetype@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz#f0f21d76cbba72362eb609dbed2a30cd17fcc7d4" -whet.extend@~0.9.9: - version "0.9.9" - resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1" +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" which-module@^1.0.0: version "1.0.0" @@ -8238,7 +7398,7 @@ which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" -which@1, which@^1.2.12, which@^1.2.14, which@^1.2.9, which@^1.3.0: +which@1, which@^1.2.12, which@^1.2.4, which@^1.2.9, which@^1.3.0: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" dependencies: @@ -8250,12 +7410,6 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2 || 2" -widest-line@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" - dependencies: - string-width "^2.1.1" - window-size@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" @@ -8276,12 +7430,6 @@ wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" -worker-farm@^1.3.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.6.0.tgz#aecc405976fab5a95526180846f0dba288f3a4a0" - dependencies: - errno "~0.1.7" - wrap-ansi@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" @@ -8293,7 +7441,7 @@ wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" -write-file-atomic@^2.0.0: +write-file-atomic@^2.1.0: version "2.3.0" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" dependencies: @@ -8307,19 +7455,39 @@ write@^0.2.1: dependencies: mkdirp "^0.5.1" -xdg-basedir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" +ws@^1.1.1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" + dependencies: + options ">=0.0.5" + ultron "1.0.x" -xml-name-validator@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + +xml2js@^0.4.9: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" xml@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" -xtend@^4.0.0: +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" @@ -8342,24 +7510,35 @@ yargs-parser@^2.4.1: camelcase "^3.0.0" lodash.assign "^4.0.6" -yargs-parser@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" - dependencies: - camelcase "^3.0.0" - yargs-parser@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" dependencies: camelcase "^3.0.0" -yargs-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" dependencies: camelcase "^4.1.0" +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + yargs@^4.2.0: version "4.8.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0" @@ -8379,25 +7558,7 @@ yargs@^4.2.0: y18n "^3.2.1" yargs-parser "^2.4.1" -yargs@^6.6.0: - version "6.6.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" - dependencies: - 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 "^4.2.0" - -yargs@^7.0.0, yargs@^7.0.2: +yargs@^7.0.0: version "7.1.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" dependencies: @@ -8415,24 +7576,6 @@ yargs@^7.0.0, yargs@^7.0.2: y18n "^3.2.1" yargs-parser "^5.0.0" -yargs@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" - dependencies: - camelcase "^4.1.0" - cliui "^3.2.0" - decamelize "^1.1.1" - get-caller-file "^1.0.1" - os-locale "^2.0.0" - read-pkg-up "^2.0.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^7.0.0" - yargs@~3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index 965bddf2b0..c404aa5d84 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -503,9 +503,13 @@ java.awt.headless true + + sonia.scm.ui.proxy + http://localhost:9966 + - /scm + / ${project.basedir}/src/main/conf/jetty.xml 0 From 4699166f877ba6de319782600b064798a1d1b823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Fri, 24 Aug 2018 08:43:04 +0200 Subject: [PATCH 075/143] Change self link for files to content --- .../resources/FileObjectToFileObjectDtoMapper.java | 11 +++++------ .../FileObjectToFileObjectDtoMapperTest.java | 13 ++++++++++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java index a3d1cae6b5..bc814c7e0c 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/FileObjectToFileObjectDtoMapper.java @@ -12,8 +12,6 @@ import sonia.scm.repository.SubRepository; import javax.inject.Inject; import java.net.URI; -import static de.otto.edison.hal.Link.link; - @Mapper public abstract class FileObjectToFileObjectDtoMapper extends BaseMapper { @@ -27,10 +25,11 @@ public abstract class FileObjectToFileObjectDtoMapper extends BaseMapper Date: Fri, 24 Aug 2018 08:52:19 +0200 Subject: [PATCH 076/143] Handle empty files in content --- .../scm/api/v2/resources/ContentResource.java | 4 +++- .../api/v2/resources/ContentResourceTest.java | 22 +++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java index 63c361538c..3a032aba1a 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ContentResource.java @@ -142,7 +142,9 @@ public class ContentResource { try { byte[] buffer = new byte[HEAD_BUFFER_SIZE]; int length = stream.read(buffer); - if (length < buffer.length) { + if (length < 0) { // empty file + return new byte[]{}; + } else if (length < buffer.length) { return Arrays.copyOf(buffer, length); } else { return buffer; diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ContentResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ContentResourceTest.java index 9302a4fcfd..3d898119fb 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ContentResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ContentResourceTest.java @@ -108,17 +108,6 @@ public class ContentResourceTest { assertEquals("text/plain", response.getHeaderString("Content-Type")); } - @Test - public void shouldRecognizeShebangSourceCode() throws Exception { - mockContentFromResource("someScript.sh"); - - Response response = contentResource.get(NAMESPACE, REPO_NAME, REV, "someScript.sh"); - assertEquals(200, response.getStatus()); - - assertEquals("PYTHON", response.getHeaderString("Language")); - assertEquals("application/x-sh", response.getHeaderString("Content-Type")); - } - @Test public void shouldHandleRandomByteFile() throws Exception { mockContentFromResource("JustBytes"); @@ -142,6 +131,17 @@ public class ContentResourceTest { assertTrue("stream has to be closed after reading head", stream.isClosed()); } + @Test + public void shouldHandleEmptyFile() throws Exception { + mockContent("empty", new byte[]{}); + + Response response = contentResource.get(NAMESPACE, REPO_NAME, REV, "empty"); + assertEquals(200, response.getStatus()); + + assertFalse(response.getHeaders().containsKey("Language")); + assertEquals("application/octet-stream", response.getHeaderString("Content-Type")); + } + private void mockContentFromResource(String fileName) throws Exception { URL url = Resources.getResource(fileName); mockContent(fileName, Resources.toByteArray(url)); From 0642a4c8bc346f86484740cd5b873970801347b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Fri, 24 Aug 2018 09:15:15 +0200 Subject: [PATCH 077/143] Fix integration test using self link instead of content link --- scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java index 0d0ded260e..c5376a3ff2 100644 --- a/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java +++ b/scm-it/src/test/java/sonia/scm/it/RepositoryAccessITCase.java @@ -89,7 +89,7 @@ public class RepositoryAccessITCase { .then() .statusCode(HttpStatus.SC_OK) .extract() - .path("files.find{it.name=='a.txt'}._links.content.href"); + .path("files.find{it.name=='a.txt'}._links.self.href"); given() .when() .get(rootContentUrl) @@ -110,7 +110,7 @@ public class RepositoryAccessITCase { .then() .statusCode(HttpStatus.SC_OK) .extract() - .path("files[0]._links.content.href"); + .path("files[0]._links.self.href"); System.out.println(subfolderContentUrl); given() .when() From 3015937fc762d10a8cc7cd1a8d296d644698513d Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 11:01:08 +0200 Subject: [PATCH 078/143] added extension point for repository detail information --- .../repos/components/RepositoryDetailTable.js | 56 ++++++++++++++++++ .../src/repos/components/RepositoryDetails.js | 57 +++++-------------- 2 files changed, 71 insertions(+), 42 deletions(-) create mode 100644 scm-ui/src/repos/components/RepositoryDetailTable.js diff --git a/scm-ui/src/repos/components/RepositoryDetailTable.js b/scm-ui/src/repos/components/RepositoryDetailTable.js new file mode 100644 index 0000000000..109b44b8ea --- /dev/null +++ b/scm-ui/src/repos/components/RepositoryDetailTable.js @@ -0,0 +1,56 @@ +//@flow +import React from "react"; +import type { Repository } from "../types/Repositories"; +import MailLink from "../../components/MailLink"; +import DateFromNow from "../../components/DateFromNow"; +import { translate } from "react-i18next"; + +type Props = { + repository: Repository, + // context props + t: string => string +}; + +class RepositoryDetailTable extends React.Component { + render() { + const { repository, t } = this.props; + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{t("repository.name")}{repository.name}
{t("repository.type")}{repository.type}
{t("repository.contact")} + +
{t("repository.description")}{repository.description}
{t("repository.creationDate")} + +
{t("repository.lastModified")} + +
+ ); + } +} + +export default translate("repos")(RepositoryDetailTable); diff --git a/scm-ui/src/repos/components/RepositoryDetails.js b/scm-ui/src/repos/components/RepositoryDetails.js index 83a4f164aa..aec8285a96 100644 --- a/scm-ui/src/repos/components/RepositoryDetails.js +++ b/scm-ui/src/repos/components/RepositoryDetails.js @@ -1,56 +1,29 @@ //@flow import React from "react"; -import { translate } from "react-i18next"; import type { Repository } from "../types/Repositories"; -import MailLink from "../../components/MailLink"; -import DateFromNow from "../../components/DateFromNow"; +import RepositoryDetailTable from "./RepositoryDetailTable"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; type Props = { - repository: Repository, - // context props - t: string => string + repository: Repository }; class RepositoryDetails extends React.Component { render() { - const { repository, t } = this.props; + const { repository } = this.props; return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{t("repository.name")}{repository.name}
{t("repository.type")}{repository.type}
{t("repository.contact")} - -
{t("repository.description")}{repository.description}
{t("repository.creationDate")} - -
{t("repository.lastModified")} - -
+
+ +
+ +
+
); } } -export default translate("repos")(RepositoryDetails); +export default RepositoryDetails; From 4ec7c141dd75b4948b2a1e3ac96aca806d780cdc Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 11:01:37 +0200 Subject: [PATCH 079/143] added extension point for repository avatar --- .../repos/components/list/RepositoryAvatar.js | 23 +++++++++++++++++++ .../repos/components/list/RepositoryEntry.js | 6 ++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 scm-ui/src/repos/components/list/RepositoryAvatar.js diff --git a/scm-ui/src/repos/components/list/RepositoryAvatar.js b/scm-ui/src/repos/components/list/RepositoryAvatar.js new file mode 100644 index 0000000000..6c79f59aee --- /dev/null +++ b/scm-ui/src/repos/components/list/RepositoryAvatar.js @@ -0,0 +1,23 @@ +//@flow +import React from "react"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import type { Repository } from "../../types/Repositories"; + +type Props = { + repository: Repository +}; + +class RepositoryAvatar extends React.Component { + render() { + const { repository } = this.props; + return ( +

+ + Logo + +

+ ); + } +} + +export default RepositoryAvatar; diff --git a/scm-ui/src/repos/components/list/RepositoryEntry.js b/scm-ui/src/repos/components/list/RepositoryEntry.js index b9e1d533d7..f0dad89bd2 100644 --- a/scm-ui/src/repos/components/list/RepositoryEntry.js +++ b/scm-ui/src/repos/components/list/RepositoryEntry.js @@ -6,6 +6,8 @@ import type { Repository } from "../../types/Repositories"; import DateFromNow from "../../../components/DateFromNow"; import RepositoryEntryLink from "./RepositoryEntryLink"; import classNames from "classnames"; +import { ExtensionPoint } from "@scm-manager/ui-extensions"; +import RepositoryAvatar from "./RepositoryAvatar"; const styles = { outer: { @@ -83,9 +85,7 @@ class RepositoryEntry extends React.Component {
-

- Logo -

+
From c342e1d57cbef5f027099885691e19aa7d678928 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 11:02:11 +0200 Subject: [PATCH 080/143] update @scm-manager/ui-extensions --- scm-ui/package.json | 2 +- scm-ui/yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scm-ui/package.json b/scm-ui/package.json index 20fcb4b523..49c83aee38 100644 --- a/scm-ui/package.json +++ b/scm-ui/package.json @@ -5,7 +5,7 @@ "private": true, "main": "src/index.js", "dependencies": { - "@scm-manager/ui-extensions": "^0.0.3", + "@scm-manager/ui-extensions": "^0.0.5", "bulma": "^0.7.1", "classnames": "^2.2.5", "font-awesome": "^4.7.0", diff --git a/scm-ui/yarn.lock b/scm-ui/yarn.lock index a9f77fa1c5..473669bb64 100644 --- a/scm-ui/yarn.lock +++ b/scm-ui/yarn.lock @@ -725,9 +725,9 @@ node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.3.tgz#0dccc3132105ecff579fa389ea18fc2b40c19c96" +"@scm-manager/ui-extensions@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.4.tgz#466aa4f5caef5f5826d0ee190a87d9d847b72fdf" dependencies: react "^16.4.2" react-dom "^16.4.2" From 8fa130816969b0ce7f694e969e9dd22529f400d9 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 11:03:35 +0200 Subject: [PATCH 081/143] implemented avatar and information extension point for svn, hg and git --- scm-plugins/pom.xml | 49 +- scm-plugins/scm-git-plugin/package.json | 6 +- scm-plugins/scm-git-plugin/pom.xml | 32 - .../src/main/js/CloneInformation.js | 31 - .../scm-git-plugin/src/main/js/GitAvatar.js | 15 + .../src/main/js/ProtocolInformation.js | 54 + .../scm-git-plugin/src/main/js/index.js | 10 +- .../src/main/webapp/images/git-logo.png | Bin 0 -> 13898 bytes scm-plugins/scm-git-plugin/yarn.lock | 4315 +++++++++++-- scm-plugins/scm-hg-plugin/package.json | 13 + .../scm-hg-plugin/src/main/js/HgAvatar.js | 15 + .../src/main/js/ProtocolInformation.js | 60 + .../scm-hg-plugin/src/main/js/index.js | 10 + .../src/main/webapp/images/hg-logo.png | Bin 0 -> 5658 bytes scm-plugins/scm-hg-plugin/yarn.lock | 5585 +++++++++++++++++ scm-plugins/scm-svn-plugin/package.json | 13 + .../src/main/js/ProtocolInformation.js | 28 + .../scm-svn-plugin/src/main/js/SvnAvatar.js | 15 + .../scm-svn-plugin/src/main/js/index.js | 10 + .../src/main/webapp/images/svn-logo.gif | Bin 0 -> 7946 bytes scm-plugins/scm-svn-plugin/yarn.lock | 5585 +++++++++++++++++ scm-ui/public/index.html | 4 +- 22 files changed, 15316 insertions(+), 534 deletions(-) delete mode 100644 scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js create mode 100644 scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js create mode 100644 scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js create mode 100644 scm-plugins/scm-git-plugin/src/main/webapp/images/git-logo.png create mode 100644 scm-plugins/scm-hg-plugin/package.json create mode 100644 scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js create mode 100644 scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js create mode 100644 scm-plugins/scm-hg-plugin/src/main/js/index.js create mode 100644 scm-plugins/scm-hg-plugin/src/main/webapp/images/hg-logo.png create mode 100644 scm-plugins/scm-hg-plugin/yarn.lock create mode 100644 scm-plugins/scm-svn-plugin/package.json create mode 100644 scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.js create mode 100644 scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js create mode 100644 scm-plugins/scm-svn-plugin/src/main/js/index.js create mode 100644 scm-plugins/scm-svn-plugin/src/main/webapp/images/svn-logo.gif create mode 100644 scm-plugins/scm-svn-plugin/yarn.lock diff --git a/scm-plugins/pom.xml b/scm-plugins/pom.xml index f9065babc2..7aca95359d 100644 --- a/scm-plugins/pom.xml +++ b/scm-plugins/pom.xml @@ -21,7 +21,7 @@ scm-svn-plugin scm-legacy-plugin - + @@ -30,16 +30,16 @@ ${servlet.version} provided - + sonia.scm scm-core 2.0.0-SNAPSHOT provided - + - + sonia.scm scm-annotation-processor @@ -60,7 +60,7 @@ lombok provided - + @@ -107,9 +107,9 @@ - + - + sonia.scm.maven smp-maven-plugin @@ -135,7 +135,40 @@ - + + + com.github.sdorra + buildfrontend-maven-plugin + 2.0.1 + + + 8.11.3 + + + YARN + 1.7.0 + + false + + + + + install + process-resources + + install + + + + build + compile + + run + + + + + diff --git a/scm-plugins/scm-git-plugin/package.json b/scm-plugins/scm-git-plugin/package.json index 803733e650..a01cefe503 100644 --- a/scm-plugins/scm-git-plugin/package.json +++ b/scm-plugins/scm-git-plugin/package.json @@ -2,12 +2,12 @@ "name": "@scm-manager/scm-git-plugin", "main": "src/main/js/index.js", "scripts": { - "build": "ui-bundler build" + "build": "ui-bundler plugin" }, "dependencies": { - "@scm-manager/ui-extensions": "^0.0.3" + "@scm-manager/ui-extensions": "^0.0.5" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.2" + "@scm-manager/ui-bundler": "^0.0.3" } } diff --git a/scm-plugins/scm-git-plugin/pom.xml b/scm-plugins/scm-git-plugin/pom.xml index 68aaecb789..65d720d495 100644 --- a/scm-plugins/scm-git-plugin/pom.xml +++ b/scm-plugins/scm-git-plugin/pom.xml @@ -61,38 +61,6 @@ - - com.github.sdorra - buildfrontend-maven-plugin - 2.0.1 - - - 8.11.3 - - - YARN - 1.7.0 - - - - - - install - process-resources - - install - - - - build - compile - - run - - - - - diff --git a/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js b/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js deleted file mode 100644 index 4bb0f565f2..0000000000 --- a/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.js +++ /dev/null @@ -1,31 +0,0 @@ -//@flow -import React from 'react'; - -// TODO flow types ??? -type Props = { - repository: Object -} - -class CloneInformation extends React.Component { - - render() { - const { repository } = this.repository; - if (repository.type !== "git") { - return null; - } - if (!repository._links.httpProtocol) { - return null; - } - return ( -
-

Git

-

-          git clone { repository._links.httpProtocol }
-        
-
- ); - } - -} - -export default CloneInformation; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js new file mode 100644 index 0000000000..3bb4b376e8 --- /dev/null +++ b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js @@ -0,0 +1,15 @@ +//@flow +import React from 'react'; + +type Props = { +}; + +class GitAvatar extends React.Component { + + render() { + return Git Logo; + } + +} + +export default GitAvatar; diff --git a/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js new file mode 100644 index 0000000000..3d11b11c91 --- /dev/null +++ b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js @@ -0,0 +1,54 @@ +//@flow +import React from 'react'; + +// TODO flow types ??? +type Props = { + repository: Object +} + +class ProtocolInformation extends React.Component { + + render() { + const { repository } = this.props; + if (!repository._links.httpProtocol) { + return null; + } + return ( +
+

Clone the repository

+
+          git clone {repository._links.httpProtocol.href}
+        
+

Create a new repository

+
+          
+            git init {repository.name}
+            
+ echo "# {repository.name}" > README.md +
+ git add README.md +
+ git commit -m "added readme" +
+ git remote add origin {repository._links.httpProtocol.href} +
+ git push -u origin master +
+
+
+

Push an existing repository

+
+          
+            git remote add origin {repository._links.httpProtocol.href}
+            
+ git push -u origin master +
+
+
+
+ ); + } + +} + +export default ProtocolInformation; diff --git a/scm-plugins/scm-git-plugin/src/main/js/index.js b/scm-plugins/scm-git-plugin/src/main/js/index.js index 80f7385257..9c5045bafe 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/index.js +++ b/scm-plugins/scm-git-plugin/src/main/js/index.js @@ -1,4 +1,10 @@ import { binder } from "@scm-manager/ui-extensions"; -import CloneInformation from './CloneInformation'; +import ProtocolInformation from './ProtocolInformation'; +import GitAvatar from './GitAvatar'; -binder.bind("repos.repository-details.informations", CloneInformation); +const gitPredicate = (props: Object) => { + return props.repository && props.repository.type === "git"; +}; + +binder.bind("repos.repository-details.information", ProtocolInformation, gitPredicate); +binder.bind("repos.repository-avatar", GitAvatar, gitPredicate); diff --git a/scm-plugins/scm-git-plugin/src/main/webapp/images/git-logo.png b/scm-plugins/scm-git-plugin/src/main/webapp/images/git-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..ed9393dc368a51d27f5f4a86b89aa47afe7bc9b7 GIT binary patch literal 13898 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 PISd9Qtt?e5@g?|w^zEk* literal 0 HcmV?d00001 diff --git a/scm-plugins/scm-git-plugin/yarn.lock b/scm-plugins/scm-git-plugin/yarn.lock index d11e8ff65a..083606280e 100644 --- a/scm-plugins/scm-git-plugin/yarn.lock +++ b/scm-plugins/scm-git-plugin/yarn.lock @@ -2,23 +2,23 @@ # yarn lockfile v1 -"@babel/code-frame@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.1.tgz#5c2154415d6c09959a71845ef519d11157e95d10" +"@babel/code-frame@7.0.0-rc.2", "@babel/code-frame@^7.0.0-beta.35": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.2.tgz#12b6daeb408238360744649d16c0e9fa7ab3859e" dependencies: - "@babel/highlight" "7.0.0-rc.1" + "@babel/highlight" "7.0.0-rc.2" -"@babel/core@^7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-rc.1.tgz#53c84fd562e13325f123d5951184eec97b958204" +"@babel/core@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-rc.2.tgz#dcb46b3adb63e35b1e82c35d9130d9c27be58427" dependencies: - "@babel/code-frame" "7.0.0-rc.1" - "@babel/generator" "7.0.0-rc.1" - "@babel/helpers" "7.0.0-rc.1" - "@babel/parser" "7.0.0-rc.1" - "@babel/template" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helpers" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" convert-source-map "^1.1.0" debug "^3.1.0" json5 "^0.5.0" @@ -27,575 +27,610 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/generator@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-rc.1.tgz#739c87d70b31aeed802bd6bc9fd51480065c45e8" +"@babel/generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-rc.2.tgz#7aed8fb4ef1bdcc168225096b5b431744ba76bf8" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" jsesc "^2.5.1" lodash "^4.17.10" source-map "^0.5.0" trim-right "^1.0.1" -"@babel/helper-annotate-as-pure@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-rc.1.tgz#4a9042a4a35f835d45c649f68f364cc7ed7dcb05" +"@babel/helper-annotate-as-pure@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-rc.2.tgz#490fa0e8cfe11305c3310485221c958817957cc7" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-rc.1.tgz#df64de2375585e23a0aaa5708ea137fb21157374" +"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-rc.2.tgz#47904c65b4059893be8b9d16bfeac320df601ffa" dependencies: - "@babel/helper-explode-assignable-expression" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-explode-assignable-expression" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-builder-react-jsx@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-rc.1.tgz#d6fdf43cf671e50b3667431007732136cb059a5f" +"@babel/helper-builder-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-rc.2.tgz#ba4018ba4d5ab50e24330c3e98bbbebd7286dbf0" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" esutils "^2.0.0" -"@babel/helper-call-delegate@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-rc.1.tgz#7516f71b13c81560bb91fb6b1fae3a1e0345d37d" +"@babel/helper-call-delegate@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-rc.2.tgz#faa254987fc3b5b90a4dc366d9f65f9a1b083174" dependencies: - "@babel/helper-hoist-variables" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-define-map@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-rc.1.tgz#a7f920b33651bc540253313b336864754926e75b" +"@babel/helper-define-map@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-rc.2.tgz#68f19b9f125a0985e7b81841b35cddb1e4ae1c6e" dependencies: - "@babel/helper-function-name" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" lodash "^4.17.10" -"@babel/helper-explode-assignable-expression@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-rc.1.tgz#114359f835a2d97161a895444e45b80317c6d765" +"@babel/helper-explode-assignable-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-rc.2.tgz#df9a0094aca800e3b40a317a1b3d434a61ee158f" dependencies: - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-function-name@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-rc.1.tgz#20b2cc836a53c669f297c8d309fc553385c5cdde" +"@babel/helper-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-rc.2.tgz#ad7bb9df383c5f53e4bf38c0fe0c7f93e6a27729" dependencies: - "@babel/helper-get-function-arity" "7.0.0-rc.1" - "@babel/template" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-get-function-arity@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-rc.1.tgz#60185957f72ed73766ce74c836ac574921743c46" +"@babel/helper-get-function-arity@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-rc.2.tgz#323cb82e2d805b40c0c36be1dfcb8ffcbd0434f3" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-hoist-variables@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-rc.1.tgz#6d0ff35d599fc7dd9dadaac444e99b7976238aec" +"@babel/helper-hoist-variables@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-rc.2.tgz#4bc902f06545b60d10f2fa1058a99730df6197b4" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-member-expression-to-functions@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-rc.1.tgz#03a3b200fc00f8100dbcef9a351b69cfc0234b4f" +"@babel/helper-member-expression-to-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-rc.2.tgz#5a9c585f86a35428860d8c93a315317ba565106c" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-module-imports@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-rc.1.tgz#c6269fa9dc451152895f185f0339d45f32c52e75" +"@babel/helper-module-imports@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-rc.2.tgz#982f30e71431d3ea7e00b1b48da774c60470a21d" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-module-transforms@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-rc.2.tgz#d9b2697790875a014282973ed74343bb3ad3c7c5" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" lodash "^4.17.10" -"@babel/helper-module-transforms@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-rc.1.tgz#15aa371352a37d527b233bd22d25f709ae5feaba" +"@babel/helper-optimise-call-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-rc.2.tgz#6ddfecaf9470f96de38704223646d9c20dcc2377" dependencies: - "@babel/helper-module-imports" "7.0.0-rc.1" - "@babel/helper-simple-access" "7.0.0-rc.1" - "@babel/helper-split-export-declaration" "7.0.0-rc.1" - "@babel/template" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" - lodash "^4.17.10" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-optimise-call-expression@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-rc.1.tgz#482d8251870f61d88c9800fd3e58128e14ff8c98" - dependencies: - "@babel/types" "7.0.0-rc.1" +"@babel/helper-plugin-utils@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.2.tgz#95bc3225bf6aeda5a5ebc90af2546b5b9317c0b4" -"@babel/helper-plugin-utils@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.1.tgz#3e277eae59818e7d4caf4174f58a7a00d441336e" - -"@babel/helper-regex@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-rc.1.tgz#591bf828846d91fea8c93d1bf3030bd99dbd94ce" +"@babel/helper-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-rc.2.tgz#445d802c3c50cb146a93458f421c77a7f041b495" dependencies: lodash "^4.17.10" -"@babel/helper-remap-async-to-generator@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-rc.1.tgz#cc32d270ca868245d0ac0a32d70dc83a6ce77db9" +"@babel/helper-remap-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-rc.2.tgz#2025ec555eed8275fcbe24532ab1f083ff973707" dependencies: - "@babel/helper-annotate-as-pure" "7.0.0-rc.1" - "@babel/helper-wrap-function" "7.0.0-rc.1" - "@babel/template" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-wrap-function" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-replace-supers@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-rc.1.tgz#cab8d7a6c758e4561fb285f4725c850d68c1c3db" +"@babel/helper-replace-supers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-rc.2.tgz#dcf619512a2171e35c0494aeb539a621f6ce7de2" dependencies: - "@babel/helper-member-expression-to-functions" "7.0.0-rc.1" - "@babel/helper-optimise-call-expression" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-simple-access@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-rc.1.tgz#ab3b179b5f009a1e17207b227c37410ad8d73949" +"@babel/helper-simple-access@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-rc.2.tgz#34043948cda9e6b883527bb827711bd427fea914" dependencies: - "@babel/template" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" - lodash "^4.17.10" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-split-export-declaration@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-rc.1.tgz#b00323834343fd0210f1f46c7a53521ad53efa5e" +"@babel/helper-split-export-declaration@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-rc.2.tgz#726b2dec4e46baeab32db67caa6e88b6521464f8" dependencies: - "@babel/types" "7.0.0-rc.1" + "@babel/types" "7.0.0-rc.2" -"@babel/helper-wrap-function@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-rc.1.tgz#168454fe350e9ead8d91cdc581597ea506e951ff" +"@babel/helper-wrap-function@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-rc.2.tgz#788cd70072254eefd33fc1f3936ba24cced28f48" dependencies: - "@babel/helper-function-name" "7.0.0-rc.1" - "@babel/template" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/helpers@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-rc.1.tgz#e59092cdf4b28026b3fc9d272e27e0ef152b4bee" +"@babel/helpers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-rc.2.tgz#e21f54451824f55b4f5022c6e9d6fa7df65e8746" dependencies: - "@babel/template" "7.0.0-rc.1" - "@babel/traverse" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/highlight@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.1.tgz#e0ca4731fa4786f7b9500421d6ff5e5a7753e81e" +"@babel/highlight@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.2.tgz#0af688a69e3709d9cf392e1837cda18c08d34d4f" dependencies: chalk "^2.0.0" esutils "^2.0.2" - js-tokens "^3.0.0" + js-tokens "^4.0.0" -"@babel/parser@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-rc.1.tgz#d009a9bba8175d7b971e30cd03535b278c44082d" +"@babel/parser@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-rc.2.tgz#a98c01af5834e71d48a5108e3aeeee333cdf26c4" -"@babel/plugin-proposal-async-generator-functions@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-rc.1.tgz#70d4ca787485487370a82e380c39c8c233bca639" +"@babel/plugin-proposal-async-generator-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-rc.2.tgz#0f3b63fa74a8ffcd9cf1f4821a4725d2696a8622" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-remap-async-to-generator" "7.0.0-rc.1" - "@babel/plugin-syntax-async-generators" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" -"@babel/plugin-proposal-object-rest-spread@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-rc.1.tgz#bc7ce898a48831fd733b251fd5ae46f986c905d8" +"@babel/plugin-proposal-class-properties@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.0.0-rc.2.tgz#71f4f2297ec9c0848b57c231ef913bc83d49d85a" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/plugin-syntax-class-properties" "7.0.0-rc.2" -"@babel/plugin-proposal-optional-catch-binding@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-rc.1.tgz#4ee80c9e4b6feb4c0c737bd996da3ee3fb9837d2" +"@babel/plugin-proposal-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.0.0-rc.2.tgz#ea4fd95eb00877e138e3e9f19969e66d9d47b3eb" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-json-strings" "7.0.0-rc.2" -"@babel/plugin-proposal-unicode-property-regex@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-rc.1.tgz#02d0c33839eb52c93164907fb43b36c5a4afbc6c" +"@babel/plugin-proposal-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-rc.2.tgz#5552e7a4c80cde25f28dfcc6d050831d1d88a01f" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-regex" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + +"@babel/plugin-proposal-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-rc.2.tgz#61c5968932b6d1e9e5f028b3476f8d55bc317e1f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + +"@babel/plugin-proposal-unicode-property-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-rc.2.tgz#6be37bb04dab59745c2a5e9f0472f8d5f6178330" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" regexpu-core "^4.2.0" -"@babel/plugin-syntax-async-generators@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-rc.1.tgz#71d016f1a241d5e735b120f6cb94b8c57d53d255" +"@babel/plugin-syntax-async-generators@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-rc.2.tgz#2d1726dd0b4d375e1c16fcb983ab4d89c0eeb2b3" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-syntax-flow@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-rc.1.tgz#1c0165eb2fa7c5769eaf27f2bfb46e7df5d3f034" +"@babel/plugin-syntax-class-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.0.0-rc.2.tgz#3ecbb8ba2878f07fdc350f7b7bf4bb88d071e846" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-syntax-jsx@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-rc.1.tgz#f7d19fa482f6bf42225c4b3d8f14e825e3fa325a" +"@babel/plugin-syntax-flow@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-rc.2.tgz#9a7538905383db328d6c36507ec05c9f89f2f8ab" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-syntax-object-rest-spread@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-rc.1.tgz#42032fd87fb3b18f5686a0ab957d7f6f0db26618" +"@babel/plugin-syntax-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0-rc.2.tgz#6c16304a379620034190c06b50da3812351967f2" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-syntax-optional-catch-binding@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-rc.1.tgz#c125fedf2fe59e4b510c202b1a912634d896fbb8" +"@babel/plugin-syntax-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-rc.2.tgz#c070fd6057ad85c43ba4e7819723e28e760824ff" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-arrow-functions@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-rc.1.tgz#95b369e6ded8425a00464609d29e1fd017b331b0" +"@babel/plugin-syntax-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-rc.2.tgz#551e2e0a8916d63b4ddf498afde649c8a7eee1b5" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-async-to-generator@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-rc.1.tgz#9e22abec137ded152e83c3aebb4d4fb1ad7cba59" +"@babel/plugin-syntax-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-rc.2.tgz#8c752fe1a79490682a32836cefe03c3bd49d2180" dependencies: - "@babel/helper-module-imports" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-remap-async-to-generator" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-block-scoped-functions@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-rc.1.tgz#1b23adf0fb3a7395f6f0596a80039cfba6516750" +"@babel/plugin-transform-arrow-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-rc.2.tgz#ab00f72ea24535dc47940962c3a96c656f4335c8" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-block-scoping@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-rc.1.tgz#1a61565131ffd1022c04f9d3bcc4bdececf17859" +"@babel/plugin-transform-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-rc.2.tgz#44a125e68baf24d617a9e48a4fc518371633ebf3" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoped-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-rc.2.tgz#953fa99802af1045b607b0f1cb2235419ee78482" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoping@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-rc.2.tgz#ce5aaebaabde05af5ee2e0bdaccc7727bb4566a6" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" lodash "^4.17.10" -"@babel/plugin-transform-classes@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-rc.1.tgz#1d73cbceb4b4adca4cdad5f8f84a5c517fc0e06d" +"@babel/plugin-transform-classes@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-rc.2.tgz#900550c5fcd76e42a6f72b0e8661e82d6e36ceb5" dependencies: - "@babel/helper-annotate-as-pure" "7.0.0-rc.1" - "@babel/helper-define-map" "7.0.0-rc.1" - "@babel/helper-function-name" "7.0.0-rc.1" - "@babel/helper-optimise-call-expression" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-replace-supers" "7.0.0-rc.1" - "@babel/helper-split-export-declaration" "7.0.0-rc.1" + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-define-map" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-rc.1.tgz#767c6e54e6928de6f1f4de341cee1ec58edce1cf" +"@babel/plugin-transform-computed-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-rc.2.tgz#06e61765c350368c61eadbe0cd37c6835c21e665" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-destructuring@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-rc.1.tgz#d72932088542ae1c11188cb36d58cd18ddd55aa8" +"@babel/plugin-transform-destructuring@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-rc.2.tgz#ef82b75032275e2eaeba5cf4719b12b8263320b4" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-dotall-regex@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-rc.1.tgz#3209d77c7905883482ff9d527c2f96d0db83df0a" +"@babel/plugin-transform-dotall-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-rc.2.tgz#012766ab7dcdf6afea5b3a1366f3e6fff368a37f" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-regex" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" regexpu-core "^4.1.3" -"@babel/plugin-transform-duplicate-keys@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-rc.1.tgz#59d0c76877720446f83f1fbbad7c33670c5b19b9" +"@babel/plugin-transform-duplicate-keys@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-rc.2.tgz#d60eeb2ff7ed31b9e691c880a97dc2e8f7b0dd95" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-exponentiation-operator@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-rc.1.tgz#b8a7b7862a1e3b14510ad60e496ce5b54c2220d1" +"@babel/plugin-transform-exponentiation-operator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-rc.2.tgz#171a4b44c5bb8ba9a57190f65f87f8da045d1db3" dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-flow-strip-types@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-rc.1.tgz#dd69161fd75bc0c68803c0c6051730d559cc2d85" +"@babel/plugin-transform-flow-strip-types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-rc.2.tgz#87c482c195a3a5e2b8d392928db386a2b034c224" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-flow" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-flow" "7.0.0-rc.2" -"@babel/plugin-transform-for-of@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-rc.1.tgz#1ad4f8986003f38db9251fb694c4f86657e9ec18" +"@babel/plugin-transform-for-of@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-rc.2.tgz#2ef81a326faf68fb7eca37a3ebf45c5426f84bae" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-function-name@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-rc.1.tgz#e61149309db0d74df4ea3a566aac7b8794520e2d" +"@babel/plugin-transform-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-rc.2.tgz#c69c2241fdf3b8430bd6b98d06d7097e91b01bff" dependencies: - "@babel/helper-function-name" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-literals@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-rc.1.tgz#314e118e99574ab5292aea92136c26e3dc8c4abb" +"@babel/plugin-transform-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-rc.2.tgz#a4475d70d91c7dbed6c4ee280b3b1bfcd8221324" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-modules-amd@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-rc.1.tgz#3f7d83c9ecf0bf5733748e119696cc50ae05987f" +"@babel/plugin-transform-modules-amd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-rc.2.tgz#f3c37e6de732c8ac07df01ea164cf976409de469" dependencies: - "@babel/helper-module-transforms" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-modules-commonjs@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-rc.1.tgz#475bd3e6c3b86bb38307f715e0cbdb6cb2f431c2" +"@babel/plugin-transform-modules-commonjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-rc.2.tgz#f6475129473b635bd68cbbab69448c76eb52718c" dependencies: - "@babel/helper-module-transforms" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-simple-access" "7.0.0-rc.1" + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" -"@babel/plugin-transform-modules-systemjs@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-rc.1.tgz#6aca100a57c49e2622f29f177a3e088cc50ecd2e" +"@babel/plugin-transform-modules-systemjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-rc.2.tgz#ced5ac5556f0e6068b1c5d600bff2e68004038ee" dependencies: - "@babel/helper-hoist-variables" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-modules-umd@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-rc.1.tgz#1a584cb37d252de63c90030f76c3d7d3d0ea1241" +"@babel/plugin-transform-modules-umd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-rc.2.tgz#0e6eeb1e9138064a2ef28991bf03fa4d14536410" dependencies: - "@babel/helper-module-transforms" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-new-target@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-rc.1.tgz#e5839320686b3c97b82bd24157282565503ae569" +"@babel/plugin-transform-new-target@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-rc.2.tgz#5b70d3e202a4d677ba6b12762395a85cb1ddc935" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-object-super@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-rc.1.tgz#03ffbcce806af7546fead73cecb43c0892b809f3" +"@babel/plugin-transform-object-super@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-rc.2.tgz#2c521240b3f817a4d08915022d1d889ee1ff10ec" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-replace-supers" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" -"@babel/plugin-transform-parameters@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-rc.1.tgz#c3f2f1fe179b58c968b3253cb412c8d83a3d5abc" +"@babel/plugin-transform-parameters@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-rc.2.tgz#5f81577721a3ce6ebc0bdc572209f75e3b723e3d" dependencies: - "@babel/helper-call-delegate" "7.0.0-rc.1" - "@babel/helper-get-function-arity" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-call-delegate" "7.0.0-rc.2" + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-react-display-name@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-rc.1.tgz#ffc71260d7920e49be54b7ad301a8af40f780c15" +"@babel/plugin-transform-react-display-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-rc.2.tgz#b8a4ee0e098abefbbbd9386db703deaca54429a7" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-react-jsx-self@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.0.0-rc.1.tgz#45557ef5662e4f59aedb0910b2bdfbe45769a4a7" +"@babel/plugin-transform-react-jsx-self@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.0.0-rc.2.tgz#12ed61957d968a0f9c694064f720f7f4246ce980" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" -"@babel/plugin-transform-react-jsx-source@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-rc.1.tgz#48cc2e0a09f1db49c8d9a960ce2dc3a988ae7013" +"@babel/plugin-transform-react-jsx-source@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-rc.2.tgz#b67ab723b83eb58cbb58041897c7081392355430" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" -"@babel/plugin-transform-react-jsx@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-rc.1.tgz#d2eb176ca2b7fa212b56f8fd4052a404fddc2a99" +"@babel/plugin-transform-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-rc.2.tgz#43f40c43c3c09a4304b1e82b04ff69acf13069c1" dependencies: - "@babel/helper-builder-react-jsx" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-syntax-jsx" "7.0.0-rc.1" + "@babel/helper-builder-react-jsx" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" -"@babel/plugin-transform-regenerator@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-rc.1.tgz#8c5488ab75b7c9004d8bcf3f48a5814f946b5bb0" +"@babel/plugin-transform-regenerator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-rc.2.tgz#35c26152b0ddff76d93ca1fcf55417b16111ade8" dependencies: regenerator-transform "^0.13.3" -"@babel/plugin-transform-shorthand-properties@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-rc.1.tgz#21724d2199d988ffad690de8dbdce8b834a7f313" +"@babel/plugin-transform-shorthand-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-rc.2.tgz#b920f4ffdcc4bbe75917cfb2e22f685a6771c231" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-spread@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-rc.1.tgz#3ad6d96f42175ecf7c03d92313fa1f5c24a69637" +"@babel/plugin-transform-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-rc.2.tgz#827e032c206c9f08d01d3d43bb8800e573b3a501" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-sticky-regex@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-rc.1.tgz#88079689a70d80c8e9b159572979a9c2b80f7c38" +"@babel/plugin-transform-sticky-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-rc.2.tgz#b9febc20c1624455e8d5ca1008fb32315e3a414b" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-regex" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" -"@babel/plugin-transform-template-literals@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-rc.1.tgz#c22533ce23554a0d596b208158b34b9975feb9e6" +"@babel/plugin-transform-template-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-rc.2.tgz#89d701611bff91cceb478542921178f83f5a70c6" dependencies: - "@babel/helper-annotate-as-pure" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-typeof-symbol@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-rc.1.tgz#51c628dfcd2a5b6c1792b90e4f2f24b7eb993389" +"@babel/plugin-transform-typeof-symbol@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-rc.2.tgz#3c9a0721f54ad8bbc8f469b6720304d843fd1ebe" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" -"@babel/plugin-transform-unicode-regex@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-rc.1.tgz#b6c77bdb9a2823108210a174318ddd3c1ab6f3ce" +"@babel/plugin-transform-unicode-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-rc.2.tgz#6bc3d9e927151baa3c3715d3c46316ac3d8b4a2e" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/helper-regex" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" regexpu-core "^4.1.3" -"@babel/preset-env@^7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-rc.1.tgz#cb87a82fd3e44005219cd9f1cb3e9fdba907aae5" +"@babel/preset-env@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-rc.2.tgz#66f7ed731234b67ee9a6189f1df60203873ac98b" dependencies: - "@babel/helper-module-imports" "7.0.0-rc.1" - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-proposal-async-generator-functions" "7.0.0-rc.1" - "@babel/plugin-proposal-object-rest-spread" "7.0.0-rc.1" - "@babel/plugin-proposal-optional-catch-binding" "7.0.0-rc.1" - "@babel/plugin-proposal-unicode-property-regex" "7.0.0-rc.1" - "@babel/plugin-syntax-async-generators" "7.0.0-rc.1" - "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.1" - "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.1" - "@babel/plugin-transform-arrow-functions" "7.0.0-rc.1" - "@babel/plugin-transform-async-to-generator" "7.0.0-rc.1" - "@babel/plugin-transform-block-scoped-functions" "7.0.0-rc.1" - "@babel/plugin-transform-block-scoping" "7.0.0-rc.1" - "@babel/plugin-transform-classes" "7.0.0-rc.1" - "@babel/plugin-transform-computed-properties" "7.0.0-rc.1" - "@babel/plugin-transform-destructuring" "7.0.0-rc.1" - "@babel/plugin-transform-dotall-regex" "7.0.0-rc.1" - "@babel/plugin-transform-duplicate-keys" "7.0.0-rc.1" - "@babel/plugin-transform-exponentiation-operator" "7.0.0-rc.1" - "@babel/plugin-transform-for-of" "7.0.0-rc.1" - "@babel/plugin-transform-function-name" "7.0.0-rc.1" - "@babel/plugin-transform-literals" "7.0.0-rc.1" - "@babel/plugin-transform-modules-amd" "7.0.0-rc.1" - "@babel/plugin-transform-modules-commonjs" "7.0.0-rc.1" - "@babel/plugin-transform-modules-systemjs" "7.0.0-rc.1" - "@babel/plugin-transform-modules-umd" "7.0.0-rc.1" - "@babel/plugin-transform-new-target" "7.0.0-rc.1" - "@babel/plugin-transform-object-super" "7.0.0-rc.1" - "@babel/plugin-transform-parameters" "7.0.0-rc.1" - "@babel/plugin-transform-regenerator" "7.0.0-rc.1" - "@babel/plugin-transform-shorthand-properties" "7.0.0-rc.1" - "@babel/plugin-transform-spread" "7.0.0-rc.1" - "@babel/plugin-transform-sticky-regex" "7.0.0-rc.1" - "@babel/plugin-transform-template-literals" "7.0.0-rc.1" - "@babel/plugin-transform-typeof-symbol" "7.0.0-rc.1" - "@babel/plugin-transform-unicode-regex" "7.0.0-rc.1" + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-proposal-async-generator-functions" "7.0.0-rc.2" + "@babel/plugin-proposal-json-strings" "7.0.0-rc.2" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-proposal-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-proposal-unicode-property-regex" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-transform-arrow-functions" "7.0.0-rc.2" + "@babel/plugin-transform-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoped-functions" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoping" "7.0.0-rc.2" + "@babel/plugin-transform-classes" "7.0.0-rc.2" + "@babel/plugin-transform-computed-properties" "7.0.0-rc.2" + "@babel/plugin-transform-destructuring" "7.0.0-rc.2" + "@babel/plugin-transform-dotall-regex" "7.0.0-rc.2" + "@babel/plugin-transform-duplicate-keys" "7.0.0-rc.2" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-rc.2" + "@babel/plugin-transform-for-of" "7.0.0-rc.2" + "@babel/plugin-transform-function-name" "7.0.0-rc.2" + "@babel/plugin-transform-literals" "7.0.0-rc.2" + "@babel/plugin-transform-modules-amd" "7.0.0-rc.2" + "@babel/plugin-transform-modules-commonjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-systemjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-umd" "7.0.0-rc.2" + "@babel/plugin-transform-new-target" "7.0.0-rc.2" + "@babel/plugin-transform-object-super" "7.0.0-rc.2" + "@babel/plugin-transform-parameters" "7.0.0-rc.2" + "@babel/plugin-transform-regenerator" "7.0.0-rc.2" + "@babel/plugin-transform-shorthand-properties" "7.0.0-rc.2" + "@babel/plugin-transform-spread" "7.0.0-rc.2" + "@babel/plugin-transform-sticky-regex" "7.0.0-rc.2" + "@babel/plugin-transform-template-literals" "7.0.0-rc.2" + "@babel/plugin-transform-typeof-symbol" "7.0.0-rc.2" + "@babel/plugin-transform-unicode-regex" "7.0.0-rc.2" browserslist "^3.0.0" invariant "^2.2.2" js-levenshtein "^1.1.3" semver "^5.3.0" -"@babel/preset-flow@^7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0-rc.1.tgz#d7a9e4a39bdd5355dc708a70fbbf7ce49a4b429b" +"@babel/preset-flow@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0-rc.2.tgz#415539cd74968b1d2ae5b53fe9572f8d16a355b9" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-transform-flow-strip-types" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-flow-strip-types" "7.0.0-rc.2" -"@babel/preset-react@^7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0-rc.1.tgz#8d51eb0861627fd913ac645dbdd5dc424fcc7445" +"@babel/preset-react@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0-rc.2.tgz#5430f089db83095df4cf134b2e8e8c39619ca60c" dependencies: - "@babel/helper-plugin-utils" "7.0.0-rc.1" - "@babel/plugin-transform-react-display-name" "7.0.0-rc.1" - "@babel/plugin-transform-react-jsx" "7.0.0-rc.1" - "@babel/plugin-transform-react-jsx-self" "7.0.0-rc.1" - "@babel/plugin-transform-react-jsx-source" "7.0.0-rc.1" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-react-display-name" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-self" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-source" "7.0.0-rc.2" -"@babel/template@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-rc.1.tgz#5f9c0a481c9f22ecdb84697b3c3a34eadeeca23c" +"@babel/template@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-rc.2.tgz#53f6be6c1336ddc7744625c9bdca9d10be5d5d72" dependencies: - "@babel/code-frame" "7.0.0-rc.1" - "@babel/parser" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" - lodash "^4.17.10" + "@babel/code-frame" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" -"@babel/traverse@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-rc.1.tgz#867b4b45ada2d51ae2d0076f1c1d5880f8557158" +"@babel/traverse@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-rc.2.tgz#6e54ebe82aa1b3b3cf5ec05594bc14d7c59c9766" dependencies: - "@babel/code-frame" "7.0.0-rc.1" - "@babel/generator" "7.0.0-rc.1" - "@babel/helper-function-name" "7.0.0-rc.1" - "@babel/helper-split-export-declaration" "7.0.0-rc.1" - "@babel/parser" "7.0.0-rc.1" - "@babel/types" "7.0.0-rc.1" + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" debug "^3.1.0" globals "^11.1.0" lodash "^4.17.10" -"@babel/types@7.0.0-rc.1": - version "7.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-rc.1.tgz#6abf6d14ddd9fc022617e5b62e6b32f4fa6526ad" +"@babel/types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-rc.2.tgz#8e025b78764cee8751823e308558a3ca144ebd9d" dependencies: esutils "^2.0.2" lodash "^4.17.10" to-fast-properties "^2.0.0" -"@scm-manager/ui-bundler@^0.0.2": - version "0.0.2" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.2.tgz#1e1dc698aacb5145b1d2dd30a250e01f7ed504ca" +"@scm-manager/ui-bundler@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" dependencies: - "@babel/core" "^7.0.0-rc.1" - "@babel/preset-env" "^7.0.0-rc.1" - "@babel/preset-flow" "^7.0.0-rc.1" - "@babel/preset-react" "^7.0.0-rc.1" + "@babel/core" "^7.0.0-rc.2" + "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" + "@babel/preset-env" "^7.0.0-rc.2" + "@babel/preset-flow" "^7.0.0-rc.2" + "@babel/preset-react" "^7.0.0-rc.2" + babel-core "^7.0.0-0" + babel-jest "^23.4.2" babelify "^9.0.0" browserify "^16.2.2" + browserify-css "^0.14.0" + budo "^11.3.2" colors "^1.3.1" commander "^2.17.1" + jest "^23.5.0" + jest-junit "^5.1.0" node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.3.tgz#0dccc3132105ecff579fa389ea18fc2b40c19c96" +"@scm-manager/ui-extensions@^0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.5.tgz#4336f10a65b428841e2e15c6059d58f8409a5f9f" dependencies: react "^16.4.2" react-dom "^16.4.2" @@ -607,12 +642,26 @@ JSONStream@^1.0.3: jsonparse "^1.2.0" through ">=2.2.7 <3" +abab@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + acorn-dynamic-import@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" dependencies: acorn "^5.0.0" +acorn-globals@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.1.0.tgz#ab716025dbe17c54d3ef81d32ece2b2d99fe2538" + dependencies: + acorn "^5.0.0" + acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.5.2.tgz#2ca723df19d997b05824b69f6c7fb091fc42c322" @@ -625,26 +674,124 @@ acorn@^5.0.0, acorn@^5.7.1: version "5.7.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8" +acorn@^5.5.3: + version "5.7.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.2.tgz#91fa871883485d06708800318404e72bfb26dcc5" + +ajv@^5.3.0: + version "5.5.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-escapes@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" + +ansi-regex@^0.2.0, ansi-regex@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9" + ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + +ansi-styles@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.0.1.tgz#b033f57f93e2d28adeb8bc11138fa13da0fd20a3" + +ansi-styles@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" + ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" -ansi-styles@^3.2.1: +ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" dependencies: color-convert "^1.9.0" +anymatch@^1.3.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" + dependencies: + micromatch "^2.1.5" + normalize-path "^2.0.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +append-transform@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" + dependencies: + default-require-extensions "^2.0.0" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" dependencies: sprintf-js "~1.0.2" +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + array-filter@~0.0.0: version "0.0.1" resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" @@ -657,6 +804,18 @@ array-reduce@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + asap@~2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" @@ -689,22 +848,205 @@ assert@^1.4.0: dependencies: util "0.10.3" +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + +async@^1.4.0: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@^2.1.4: + version "2.6.1" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" + dependencies: + lodash "^4.17.10" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + aws-sign2@~0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" -aws4@^1.2.1: +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + +aws4@^1.2.1, aws4@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.0.0, babel-core@^6.26.0: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + dependencies: + 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" + +babel-core@^7.0.0-0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + +babel-generator@^6.18.0, babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + dependencies: + 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" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-jest@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.2.tgz#f276de67798a5d68f2d6e87ff518c2f6e1609877" + dependencies: + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-istanbul@^4.1.6: + version "4.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" + dependencies: + babel-plugin-syntax-object-rest-spread "^6.13.0" + find-up "^2.1.0" + istanbul-lib-instrument "^1.10.1" + test-exclude "^4.2.1" + +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" + +babel-plugin-syntax-object-rest-spread@^6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" + dependencies: + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + dependencies: + 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" + +babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + dependencies: + 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" + +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + babelify@^9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/babelify/-/babelify-9.0.0.tgz#6b2e39ffeeda3765aee60eeb5b581fd947cc64ec" +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -713,12 +1055,28 @@ base64-js@^1.0.2: version "1.3.0" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + dependencies: + 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" + bcrypt-pbkdf@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" dependencies: tweetnacl "^0.14.3" +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" + bluebird@^3.3.3: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -727,6 +1085,14 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" +bole@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bole/-/bole-2.0.0.tgz#d8aa1c690467bfb4fe11b874acb2e8387e382615" + dependencies: + core-util-is ">=1.0.1 <1.1.0-0" + individual ">=3.0.0 <3.1.0-0" + json-stringify-safe ">=5.0.0 <5.1.0-0" + boom@2.x.x: version "2.10.1" resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" @@ -740,6 +1106,29 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + dependencies: + 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" + brorand@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" @@ -755,7 +1144,11 @@ browser-pack@^6.0.1: through2 "^2.0.0" umd "^3.0.0" -browser-resolve@^1.11.0, browser-resolve@^1.7.0: +browser-process-hrtime@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" + +browser-resolve@^1.11.0, browser-resolve@^1.11.3, browser-resolve@^1.7.0: version "1.11.3" resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" dependencies: @@ -780,6 +1173,19 @@ browserify-cipher@^1.0.0: browserify-des "^1.0.0" evp_bytestokey "^1.0.0" +browserify-css@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/browserify-css/-/browserify-css-0.14.0.tgz#5ece581aa6f8c9aab262956fd06d57c526c9a334" + dependencies: + clean-css "^4.1.5" + concat-stream "^1.6.0" + css "^2.2.1" + find-node-modules "^1.0.4" + lodash "^4.17.4" + mime "^1.3.6" + strip-css-comments "^3.0.0" + through2 "2.0.x" + browserify-des@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" @@ -814,7 +1220,7 @@ browserify-zlib@~0.2.0: dependencies: pako "~1.0.5" -browserify@^16.2.2: +browserify@^16.1.0, browserify@^16.2.2: version "16.2.2" resolved "https://registry.yarnpkg.com/browserify/-/browserify-16.2.2.tgz#4b1f66ba0e54fa39dbc5aa4be9629142143d91b0" dependencies: @@ -874,6 +1280,47 @@ browserslist@^3.0.0: caniuse-lite "^1.0.30000844" electron-to-chromium "^1.3.47" +bser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" + dependencies: + node-int64 "^0.4.0" + +budo@^11.3.2: + version "11.3.2" + resolved "https://registry.yarnpkg.com/budo/-/budo-11.3.2.tgz#ab943492cadbb0abaf9126b4c8c94eac2440adae" + dependencies: + bole "^2.0.0" + browserify "^16.1.0" + chokidar "^1.0.1" + connect-pushstate "^1.1.0" + escape-html "^1.0.3" + events "^1.0.2" + garnish "^5.0.0" + get-ports "^1.0.2" + inject-lr-script "^2.1.0" + internal-ip "^3.0.1" + micromatch "^2.2.0" + on-finished "^2.3.0" + on-headers "^1.0.1" + once "^1.3.2" + opn "^3.0.2" + path-is-absolute "^1.0.1" + pem "^1.8.3" + reload-css "^1.0.0" + resolve "^1.1.6" + serve-static "^1.10.0" + simple-html-index "^1.4.0" + stacked "^1.1.1" + stdout-stream "^1.4.0" + strip-ansi "^3.0.0" + subarg "^1.0.0" + term-color "^1.0.1" + url-trim "^1.0.0" + watchify-middleware "^1.8.0" + ws "^1.1.1" + xtend "^4.0.0" + buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" @@ -889,23 +1336,80 @@ buffer@^5.0.2: base64-js "^1.0.2" ieee754 "^1.1.4" +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + builtin-status-codes@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + dependencies: + 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" + cached-path-relative@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7" +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + caniuse-lite@^1.0.30000844: version "1.0.30000878" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz#c644c39588dd42d3498e952234c372e5a40a4123" +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" + dependencies: + rsvp "^3.3.3" + caseless@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" -chalk@^1.1.1: +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" + dependencies: + 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" + +chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" dependencies: @@ -915,7 +1419,7 @@ chalk@^1.1.1: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0: +chalk@^2.0.0, chalk@^2.0.1: version "2.4.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" dependencies: @@ -923,6 +1427,33 @@ chalk@^2.0.0: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +charenc@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" + +chokidar@^1.0.0, chokidar@^1.0.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +chownr@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" + +ci-info@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.4.0.tgz#4841d53cad49f11b827b648ebde27a6e189b412f" + cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" @@ -930,6 +1461,52 @@ cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: inherits "^2.0.1" safe-buffer "^5.0.1" +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-css@^4.1.5: + version "4.2.1" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" + dependencies: + source-map "~0.6.0" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + color-convert@^1.9.0: version "1.9.2" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" @@ -953,7 +1530,7 @@ combine-source-map@^0.8.0, combine-source-map@~0.8.0: lodash.memoize "~3.0.3" source-map "~0.5.3" -combined-stream@^1.0.5, combined-stream@~1.0.5: +combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5, combined-stream@~1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" dependencies: @@ -963,11 +1540,19 @@ commander@^2.17.1, commander@^2.9.0: version "2.17.1" resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" +compare-versions@^3.1.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.1.tgz#1ede3172b713c15f7c7beb98cb74d2d82576dad3" + +component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" -concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: +concat-stream@^1.5.0, concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: version "1.6.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" dependencies: @@ -976,17 +1561,25 @@ concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: readable-stream "^2.2.2" typedarray "^0.0.6" +connect-pushstate@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/connect-pushstate/-/connect-pushstate-1.1.0.tgz#bcab224271c439604a0fb0f614c0a5f563e88e24" + console-browserify@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" dependencies: date-now "^0.1.4" +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + constants-browserify@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" -convert-source-map@^1.1.0: +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" @@ -994,11 +1587,19 @@ convert-source-map@~1.1.0: version "1.1.3" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + core-js@^1.0.0: version "1.2.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" -core-util-is@1.0.2, core-util-is@~1.0.0: +core-js@^2.4.0, core-js@^2.5.0: + version "2.5.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" + +core-util-is@1.0.2, "core-util-is@>=1.0.1 <1.1.0-0", core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -1040,6 +1641,28 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +crypt@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" + cryptiles@2.x.x: version "2.0.5" resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" @@ -1062,22 +1685,113 @@ crypto-browserify@^3.0.0: randombytes "^2.0.0" randomfill "^1.0.3" +css@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.3.tgz#f861f4ba61e79bedc962aa548e5780fd95cbc6be" + dependencies: + inherits "^2.0.1" + source-map "^0.1.38" + source-map-resolve "^0.5.1" + urix "^0.1.0" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" + +cssstyle@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" + dependencies: + cssom "0.3.x" + dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" dependencies: assert-plus "^1.0.0" +data-urls@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.1.tgz#d416ac3896918f29ca84d81085bc3705834da579" + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.1.0" + whatwg-url "^7.0.0" + date-now@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" +debounce@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + dependencies: + ms "2.0.0" + debug@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" dependencies: ms "2.0.0" +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +default-gateway@^2.6.0: + version "2.7.2" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-2.7.2.tgz#b7ef339e5e024b045467af403d50348db4642d0f" + dependencies: + execa "^0.10.0" + ip-regex "^2.1.0" + +default-require-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" + dependencies: + strip-bom "^3.0.0" + +define-properties@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + defined@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" @@ -1086,6 +1800,14 @@ delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + deps-sort@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5" @@ -1102,6 +1824,30 @@ des.js@^1.0.0: inherits "^2.0.1" minimalistic-assert "^1.0.0" +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + +detect-file@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63" + dependencies: + fs-exists-sync "^0.1.0" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + detective@^5.0.2: version "5.1.0" resolved "https://registry.yarnpkg.com/detective/-/detective-5.1.0.tgz#7a20d89236d7b331ccea65832e7123b5551bb7cb" @@ -1110,6 +1856,10 @@ detective@^5.0.2: defined "^1.0.0" minimist "^1.1.1" +diff@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" @@ -1122,6 +1872,12 @@ domain-browser@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + dependencies: + webidl-conversions "^4.0.2" + duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" @@ -1135,6 +1891,10 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + electron-to-chromium@^1.3.47: version "1.3.59" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.59.tgz#6377db04d8d3991d6286c72ed5c3fde6f4aaf112" @@ -1151,24 +1911,87 @@ elliptic@^6.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.0" +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + encoding@^0.1.11: version "0.1.12" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" dependencies: iconv-lite "~0.4.13" -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: +error-ex@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.5.1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" + dependencies: + es-to-primitive "^1.1.1" + function-bind "^1.1.1" + has "^1.0.1" + is-callable "^1.1.3" + is-regex "^1.0.4" + +es-to-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" + dependencies: + is-callable "^1.1.1" + is-date-object "^1.0.1" + is-symbol "^1.0.1" + +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + +escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" +escodegen@^1.9.1: + version "1.11.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + esprima@^2.6.0: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + +estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + esutils@^2.0.0, esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + +events@^1.0.2: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + events@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/events/-/events-2.1.0.tgz#2a9a1e18e6106e0e812aa9ebd4a819b3c29c0ba5" @@ -1180,10 +2003,117 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: md5.js "^1.3.4" safe-buffer "^5.1.1" -extend@~3.0.0: +exec-sh@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" + dependencies: + merge "^1.2.0" + +execa@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" + dependencies: + cross-spawn "^6.0.0" + 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" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + dependencies: + 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" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + dependencies: + 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" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +expand-tilde@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449" + dependencies: + os-homedir "^1.0.1" + +expect@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.5.0.tgz#18999a0eef8f8acf99023fde766d9c323c2562ed" + dependencies: + ansi-styles "^3.2.0" + jest-diff "^23.5.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.0, extend@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + dependencies: + 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" + extsprintf@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" @@ -1192,6 +2122,24 @@ extsprintf@^1.2.0: version "1.4.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" +fast-deep-equal@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + dependencies: + bser "^2.0.0" + fbjs@^0.8.16: version "0.8.17" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" @@ -1204,6 +2152,75 @@ fbjs@^0.8.16: setimmediate "^1.0.5" ua-parser-js "^0.7.18" +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + +fileset@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +find-node-modules@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-1.0.4.tgz#b6deb3cccb699c87037677bcede2c5f5862b2550" + dependencies: + findup-sync "0.4.2" + merge "^1.2.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + dependencies: + locate-path "^2.0.0" + +findup-sync@0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.2.tgz#a8117d0f73124f5a4546839579fe52d7129fb5e5" + dependencies: + detect-file "^0.1.0" + is-glob "^2.0.1" + micromatch "^2.3.7" + resolve-dir "^0.1.0" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -1216,14 +2233,90 @@ form-data@~2.1.1: combined-stream "^1.0.5" mime-types "^2.1.12" +form-data@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" + dependencies: + asynckit "^0.4.0" + combined-stream "1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + +from2-string@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/from2-string/-/from2-string-1.1.0.tgz#18282b27d08a267cb3030cd2b8b4b0f212af752a" + dependencies: + from2 "^2.0.3" + +from2@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-exists-sync@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + dependencies: + minipass "^2.2.1" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" +fsevents@^1.0.0, fsevents@^1.2.3: + version "1.2.4" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" + dependencies: + nan "^2.9.2" + node-pre-gyp "^0.10.0" + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" +garnish@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/garnish/-/garnish-5.2.0.tgz#bed43659382e4b198e33c793897be7c701e65577" + dependencies: + chalk "^0.5.1" + minimist "^1.1.0" + pad-left "^2.0.0" + pad-right "^0.2.2" + prettier-bytes "^1.0.3" + pretty-ms "^2.1.0" + right-now "^1.0.0" + split2 "^0.2.1" + stdout-stream "^1.4.0" + url-trim "^1.0.0" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + 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" + generate-function@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" @@ -1238,13 +2331,44 @@ get-assigned-identifiers@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1" +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + +get-ports@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-ports/-/get-ports-1.0.3.tgz#f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8" + dependencies: + map-limit "0.0.1" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" dependencies: assert-plus "^1.0.0" -glob@^7.1.0: +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^7.0.3, glob@^7.0.5, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: @@ -1255,10 +2379,52 @@ glob@^7.1.0: once "^1.3.0" path-is-absolute "^1.0.0" +global-modules@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" + dependencies: + global-prefix "^0.1.4" + is-windows "^0.2.0" + +global-prefix@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f" + dependencies: + homedir-polyfill "^1.0.0" + ini "^1.3.4" + is-windows "^0.2.0" + which "^1.2.12" + globals@^11.1.0: version "11.7.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + +handlebars@^4.0.3: + version "4.0.11" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + har-validator@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" @@ -1268,17 +2434,65 @@ har-validator@~2.0.6: is-my-json-valid "^2.12.4" pinkie-promise "^2.0.0" +har-validator@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" + dependencies: + ajv "^5.3.0" + har-schema "^2.0.0" + +has-ansi@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e" + dependencies: + ansi-regex "^0.2.0" + has-ansi@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" dependencies: ansi-regex "^2.0.0" +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" -has@^1.0.0: +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.0, has@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" dependencies: @@ -1319,10 +2533,42 @@ hoek@2.x.x: version "2.16.3" resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +homedir-polyfill@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + dependencies: + parse-passwd "^1.0.0" + +hosted-git-info@^2.1.4: + version "2.7.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + dependencies: + whatwg-encoding "^1.0.1" + htmlescape@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351" +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + http-signature@~1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" @@ -1331,20 +2577,55 @@ http-signature@~1.1.0: jsprim "^1.2.2" sshpk "^1.7.0" +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" -iconv-lite@~0.4.13: +iconv-lite@0.4.23, iconv-lite@~0.4.13: version "0.4.23" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" dependencies: safer-buffer ">= 2.1.2 < 3" +iconv-lite@^0.4.4: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + dependencies: + safer-buffer ">= 2.1.2 < 3" + ieee754@^1.1.4: version "1.1.12" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b" +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + dependencies: + minimatch "^3.0.4" + +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" + dependencies: + pkg-dir "^2.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +"individual@>=3.0.0 <3.1.0-0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/individual/-/individual-3.0.0.tgz#e7ca4f85f8957b018734f285750dc22ec2f9862d" + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -1360,6 +2641,16 @@ inherits@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" +ini@^1.3.4, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + +inject-lr-script@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/inject-lr-script/-/inject-lr-script-2.1.0.tgz#e61b5e84c118733906cbea01ec3d746698a39f65" + dependencies: + resp-modifier "^6.0.0" + inline-source-map@~0.6.0: version "0.6.2" resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5" @@ -1381,16 +2672,155 @@ insert-module-globals@^7.0.0: undeclared-identifiers "^1.1.2" xtend "^4.0.0" -invariant@^2.2.2: +internal-ip@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-3.0.1.tgz#df5c99876e1d2eb2ea2d74f520e3f669a00ece27" + dependencies: + default-gateway "^2.6.0" + ipaddr.js "^1.5.2" + +invariant@^2.2.2, invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" dependencies: loose-envify "^1.0.0" -is-buffer@^1.1.0: +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +ip-regex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + +ipaddr.js@^1.5.2: + version "1.8.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.1.tgz#fa4b79fa47fd3def5e3b159825161c0a519c9427" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.0, is-buffer@^1.1.5, is-buffer@~1.1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-callable@^1.1.1, is-callable@^1.1.3: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + +is-ci@^1.0.10: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.0.tgz#3f4a08d6303a09882cef3f0fb97439c5f5ce2d53" + dependencies: + ci-info "^1.3.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0, is-finite@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + is-my-ip-valid@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" @@ -1405,25 +2835,99 @@ is-my-json-valid@^2.12.4: jsonpointer "^4.0.0" xtend "^4.0.0" +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + is-property@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" -is-stream@^1.0.1: +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + dependencies: + has "^1.0.1" + +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + +is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" +is-symbol@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" + is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +is-windows@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + isarray@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" isomorphic-fetch@^2.1.1: version "2.2.1" @@ -1436,18 +2940,381 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" +istanbul-api@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" + dependencies: + async "^2.1.4" + compare-versions "^3.1.0" + fileset "^2.0.2" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-hook "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-report "^1.1.4" + istanbul-lib-source-maps "^1.2.4" + istanbul-reports "^1.3.0" + js-yaml "^3.7.0" + mkdirp "^0.5.1" + once "^1.4.0" + +istanbul-lib-coverage@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" + +istanbul-lib-hook@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.1.tgz#f614ec45287b2a8fc4f07f5660af787575601805" + dependencies: + append-transform "^1.0.0" + +istanbul-lib-instrument@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.18.0" + istanbul-lib-coverage "^1.2.0" + semver "^5.3.0" + +istanbul-lib-report@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz#e886cdf505c4ebbd8e099e4396a90d0a28e2acb5" + dependencies: + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + path-parse "^1.0.5" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.2.4: + version "1.2.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" + dependencies: + debug "^3.1.0" + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + rimraf "^2.6.1" + source-map "^0.5.3" + +istanbul-reports@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" + dependencies: + handlebars "^4.0.3" + +jest-changed-files@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" + dependencies: + throat "^4.0.0" + +jest-cli@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.5.0.tgz#d316b8e34a38a610a1efc4f0403d8ef8a55e4492" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.1.11" + import-local "^1.0.0" + is-ci "^1.0.10" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.2" + jest-config "^23.5.0" + jest-environment-jsdom "^23.4.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.5.0" + jest-runner "^23.5.0" + jest-runtime "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" + micromatch "^2.3.11" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" + slash "^1.0.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" + which "^1.2.12" + yargs "^11.0.0" + +jest-config@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.5.0.tgz#3770fba03f7507ee15f3b8867c742e48f31a9773" + dependencies: + babel-core "^6.0.0" + babel-jest "^23.4.2" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.5.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + pretty-format "^23.5.0" + +jest-diff@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.5.0.tgz#250651a433dd0050290a07642946cc9baaf06fba" + dependencies: + chalk "^2.0.1" + diff "^3.2.0" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" + dependencies: + detect-newline "^2.1.0" + +jest-each@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.5.0.tgz#77f7e2afe6132a80954b920006e78239862b10ba" + dependencies: + chalk "^2.0.1" + pretty-format "^23.5.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + jsdom "^11.5.1" + +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" + +jest-haste-map@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.5.0.tgz#d4ca618188bd38caa6cb20349ce6610e194a8065" + dependencies: + fb-watchman "^2.0.0" + graceful-fs "^4.1.11" + invariant "^2.2.4" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" + micromatch "^2.3.11" + sane "^2.0.0" + +jest-jasmine2@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.5.0.tgz#05fe7f1788e650eeb5a03929e6461ea2e9f3db53" + dependencies: + babel-traverse "^6.0.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.5.0" + is-generator-fn "^1.0.0" + jest-diff "^23.5.0" + jest-each "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + pretty-format "^23.5.0" + +jest-junit@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-5.1.0.tgz#e8e497d810a829bf02783125aab74b5df6caa8fe" + dependencies: + jest-validate "^23.0.1" + mkdirp "^0.5.1" + strip-ansi "^4.0.0" + xml "^1.0.1" + +jest-leak-detector@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.5.0.tgz#14ac2a785bd625160a2ea968fd5d98b7dcea3e64" + dependencies: + pretty-format "^23.5.0" + +jest-matcher-utils@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.5.0.tgz#0e2ea67744cab78c9ab15011c4d888bdd3e49e2a" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" + dependencies: + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" + micromatch "^2.3.11" + slash "^1.0.0" + stack-utils "^1.0.1" + +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" + +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" + +jest-resolve-dependencies@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.5.0.tgz#10c4d135beb9d2256de1fedc7094916c3ad74af7" + dependencies: + jest-regex-util "^23.3.0" + jest-snapshot "^23.5.0" + +jest-resolve@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.5.0.tgz#3b8e7f67e84598f0caf63d1530bd8534a189d0e6" + dependencies: + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" + +jest-runner@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.5.0.tgz#570f7a044da91648b5bb9b6baacdd511076c71d7" + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.5.0" + jest-jasmine2 "^23.5.0" + jest-leak-detector "^23.5.0" + jest-message-util "^23.4.0" + jest-runtime "^23.5.0" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.5.0.tgz#eb503525a196dc32f2f9974e3482d26bdf7b63ce" + dependencies: + babel-core "^6.0.0" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" + convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + realpath-native "^1.0.0" + slash "^1.0.0" + strip-bom "3.0.0" + write-file-atomic "^2.1.0" + yargs "^11.0.0" + +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" + +jest-snapshot@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.5.0.tgz#cc368ebd8513e1175e2a7277f37a801b7358ae79" + dependencies: + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-resolve "^23.5.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^23.5.0" + semver "^5.5.0" + +jest-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" + dependencies: + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.4.0" + mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" + +jest-validate@^23.0.1, jest-validate@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.5.0.tgz#f5df8f761cf43155e1b2e21d6e9de8a2852d0231" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.5.0" + +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + dependencies: + merge-stream "^1.0.1" + +jest@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.5.0.tgz#80de353d156ea5ea4a7332f7962ac79135fbc62e" + dependencies: + import-local "^1.0.0" + jest-cli "^23.5.0" + js-levenshtein@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.3.tgz#3ef627df48ec8cf24bacf05c0f184ff30ef413c5" -js-tokens@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - -"js-tokens@^3.0.0 || ^4.0.0": +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + js-yaml@3.6.1: version "3.6.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" @@ -1455,10 +3322,52 @@ js-yaml@3.6.1: argparse "^1.0.7" esprima "^2.6.0" +js-yaml@^3.7.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + jsesc@^2.5.1: version "2.5.1" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" @@ -1467,6 +3376,10 @@ jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" +json-schema-traverse@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" + json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" @@ -1477,11 +3390,11 @@ json-stable-stringify@~0.0.0: dependencies: jsonify "~0.0.0" -json-stringify-safe@~5.0.1: +"json-stringify-safe@>=5.0.0 <5.1.0-0", json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" -json5@^0.5.0: +json5@^0.5.0, json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" @@ -1506,6 +3419,30 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + +kleur@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.1.tgz#7cc64b0d188d0dcbc98bdcdfdda2cc10619ddce8" + labeled-stream-splicer@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926" @@ -1514,15 +3451,61 @@ labeled-stream-splicer@^2.0.0: isarray "^2.0.4" stream-splicer "^2.0.0" +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + lcov-parse@0.0.10: version "0.0.10" resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + lodash.memoize@~3.0.3: version "3.0.4" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f" -lodash@^4.17.10: +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + +lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" @@ -1530,12 +3513,49 @@ log-driver@1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" dependencies: js-tokens "^3.0.0 || ^4.0.0" +lru-cache@^4.0.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + dependencies: + tmpl "1.0.x" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + +map-limit@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/map-limit/-/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38" + dependencies: + once "~1.3.0" + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + dependencies: + object-visit "^1.0.0" + +math-random@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" + md5.js@^1.3.4: version "1.3.4" resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" @@ -1543,6 +3563,66 @@ md5.js@^1.3.4: hash-base "^3.0.0" inherits "^2.0.1" +md5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" + dependencies: + charenc "~0.0.1" + crypt "~0.0.1" + is-buffer "~1.1.1" + +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + dependencies: + mimic-fn "^1.0.0" + +merge-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + dependencies: + readable-stream "^2.0.1" + +merge@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" + +micromatch@^2.1.5, micromatch@^2.2.0, micromatch@^2.3.11, micromatch@^2.3.7: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + 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" + +micromatch@^3.1.4, micromatch@^3.1.8: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + dependencies: + 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" + miller-rabin@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" @@ -1554,12 +3634,24 @@ mime-db@~1.35.0: version "1.35.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" -mime-types@^2.1.12, mime-types@~2.1.7: +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.7: version "2.1.19" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" dependencies: mime-db "~1.35.0" +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" + +mime@^1.3.6: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -1568,7 +3660,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" -minimatch@^3.0.4: +minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: @@ -1578,11 +3670,35 @@ minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" -minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1: +minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" -mkdirp@^0.5.0: +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + +minipass@^2.2.1, minipass@^2.3.3: + version "2.3.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" + dependencies: + minipass "^2.2.1" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.0, mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" dependencies: @@ -1612,6 +3728,42 @@ ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" +nan@^2.9.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + dependencies: + 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" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +needle@^2.2.1: + version "2.2.2" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418" + dependencies: + debug "^2.1.2" + iconv-lite "^0.4.4" + sax "^1.2.4" + +nice-try@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -1619,28 +3771,259 @@ node-fetch@^1.0.1: encoding "^0.1.11" is-stream "^1.0.1" +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + node-mkdirs@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/node-mkdirs/-/node-mkdirs-0.0.1.tgz#b20f50ba796a4f543c04a69942d06d06f8aaf552" +node-notifier@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" + dependencies: + growly "^1.3.0" + semver "^5.4.1" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" + dependencies: + 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@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + dependencies: + 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@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +npm-bundled@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" + +npm-packlist@^1.1.6: + version "1.1.11" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + dependencies: + 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@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +nwsapi@^2.0.7: + version "2.0.8" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.8.tgz#e3603579b7e162b3dbedae4fb24e46f771d8fa24" + oauth-sign@~0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" -object-assign@^4.1.0, object-assign@^4.1.1: +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" -once@^1.3.0: +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-keys@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + dependencies: + isobject "^3.0.0" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + dependencies: + isobject "^3.0.1" + +on-finished@^2.3.0, on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + dependencies: + ee-first "1.1.1" + +on-headers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + +once@^1.3.0, once@^1.3.2, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" dependencies: wrappy "1" +once@~1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + dependencies: + wrappy "1" + +opn@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/opn/-/opn-3.0.3.tgz#b6d99e7399f78d65c3baaffef1fb288e9b85243a" + dependencies: + object-assign "^4.0.1" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +options@>=0.0.5: + version "0.0.6" + resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" + os-browserify@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +outpipe@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/outpipe/-/outpipe-1.1.1.tgz#50cf8616365e87e031e29a5ec9339a3da4725fa2" + dependencies: + shell-quote "^1.4.2" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + dependencies: + p-try "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + dependencies: + p-limit "^1.1.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + +pad-left@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pad-left/-/pad-left-2.1.0.tgz#16e6a3b2d44a8e138cb0838cc7cb403a4fc9e994" + dependencies: + repeat-string "^1.5.4" + +pad-right@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774" + dependencies: + repeat-string "^1.5.2" + pako@~1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" @@ -1661,14 +4044,63 @@ parse-asn1@^5.0.0: evp_bytestokey "^1.0.0" pbkdf2 "^3.0.3" +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +parse-ms@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + +parseurl@~1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + path-browserify@~0.0.0: version "0.0.1" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + path-parse@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" @@ -1677,6 +4109,14 @@ path-platform@~0.11.15: version "0.11.15" resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + pbkdf2@^3.0.3: version "3.0.16" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c" @@ -1687,6 +4127,23 @@ pbkdf2@^3.0.3: safe-buffer "^5.0.1" sha.js "^2.4.8" +pem@^1.8.3: + version "1.12.5" + resolved "https://registry.yarnpkg.com/pem/-/pem-1.12.5.tgz#97bf2e459537c54e0ee5b0aa11b5ca18d6b5fef2" + dependencies: + md5 "^2.2.1" + os-tmpdir "^1.0.1" + safe-buffer "^5.1.1" + which "^1.2.4" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + pinkie-promise@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" @@ -1697,6 +4154,20 @@ pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + dependencies: + find-up "^2.1.0" + +plur@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + pom-parser@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/pom-parser/-/pom-parser-1.1.1.tgz#6fab4d2498e87c862072ab205aa88b1209e5f966" @@ -1706,7 +4177,38 @@ pom-parser@^1.1.1: traverse "^0.6.6" xml2js "^0.4.9" -private@^0.1.6: +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +prettier-bytes@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prettier-bytes/-/prettier-bytes-1.0.4.tgz#994b02aa46f699c50b6257b5faaa7fe2557e62d6" + +pretty-format@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.5.0.tgz#0f9601ad9da70fe690a269cd3efca732c210687c" + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +pretty-ms@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-2.1.0.tgz#4257c256df3fb0b451d6affaab021884126981dc" + dependencies: + is-finite "^1.0.1" + parse-ms "^1.0.0" + plur "^1.0.0" + +private@^0.1.6, private@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -1724,6 +4226,13 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prompts@^0.1.9: + version "0.1.14" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" + dependencies: + kleur "^2.0.1" + sisteransi "^0.1.1" + prop-types@^15.6.0: version "15.6.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" @@ -1731,6 +4240,14 @@ prop-types@^15.6.0: loose-envify "^1.3.1" object-assign "^4.1.1" +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +psl@^1.1.24: + version "1.1.29" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" + public-encrypt@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" @@ -1749,10 +4266,25 @@ punycode@^1.3.2, punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + qs@~6.3.0: version "6.3.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + +query-string@^4.2.3: + version "4.3.4" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" + dependencies: + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + querystring-es3@~0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" @@ -1761,6 +4293,14 @@ querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" +randomatic@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116" + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" @@ -1774,6 +4314,19 @@ randomfill@^1.0.3: randombytes "^2.0.5" safe-buffer "^5.1.0" +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + react-dom@^16.4.2: version "16.4.2" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" @@ -1798,7 +4351,31 @@ read-only-stream@^2.0.0: dependencies: readable-stream "^2.0.2" -readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +"readable-stream@>=1.0.33-1 <1.1.0-0": + version "1.0.34" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" dependencies: @@ -1810,6 +4387,21 @@ readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable string_decoder "~1.1.1" util-deprecate "~1.0.1" +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +realpath-native@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.1.tgz#07f40a0cce8f8261e2e8b7ebebf5c95965d7b633" + dependencies: + util.promisify "^1.0.0" + regenerate-unicode-properties@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" @@ -1820,12 +4412,29 @@ regenerate@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + regenerator-transform@^0.13.3: version "0.13.3" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" dependencies: private "^0.1.6" +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + regexpu-core@^4.1.3, regexpu-core@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" @@ -1847,6 +4456,44 @@ regjsparser@^0.3.0: dependencies: jsesc "~0.5.0" +reload-css@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reload-css/-/reload-css-1.0.2.tgz#6afb11162e2314feccdad6dc5fde821fd7318331" + dependencies: + query-string "^4.2.3" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request-promise-core@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" + dependencies: + lodash "^4.13.1" + +request-promise-native@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" + dependencies: + request-promise-core "1.1.1" + stealthy-require "^1.1.0" + tough-cookie ">=2.3.3" + request@2.79.0: version "2.79.0" resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" @@ -1872,16 +4519,97 @@ request@2.79.0: tunnel-agent "~0.4.1" uuid "^3.0.0" +request@^2.87.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + dependencies: + 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" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + dependencies: + resolve-from "^3.0.0" + +resolve-dir@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" + dependencies: + expand-tilde "^1.2.2" + global-modules "^0.2.3" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + resolve@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" -resolve@^1.1.4, resolve@^1.3.2, resolve@^1.4.0: +resolve@^1.1.4, resolve@^1.1.6, resolve@^1.3.2, resolve@^1.4.0: version "1.8.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" dependencies: path-parse "^1.0.5" +resp-modifier@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +right-now@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" + +rimraf@^2.5.4, rimraf@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + dependencies: + glob "^7.0.5" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -1889,26 +4617,108 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" + safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + dependencies: + ret "~0.1.10" + "safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" -sax@>=0.6.0: +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" + dependencies: + anymatch "^2.0.0" + capture-exit "^1.2.0" + exec-sh "^0.2.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" + +sax@>=0.6.0, sax@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" -semver@^5.3.0, semver@^5.4.1: +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: version "5.5.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" +send@0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" + dependencies: + 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" + +serve-static@^1.10.0: + version "1.13.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.2" + send "0.16.2" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + setimmediate@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4: version "2.4.11" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" @@ -1923,7 +4733,17 @@ shasum@^1.0.0: json-stable-stringify "~0.0.0" sha.js "~2.4.4" -shell-quote@^1.6.1: +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shell-quote@^1.4.2, shell-quote@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" dependencies: @@ -1932,20 +4752,146 @@ shell-quote@^1.6.1: array-reduce "~0.0.0" jsonify "~0.0.0" +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + simple-concat@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" +simple-html-index@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/simple-html-index/-/simple-html-index-1.5.0.tgz#2c93eeaebac001d8a135fc0022bd4ade8f58996f" + dependencies: + from2-string "^1.1.0" + +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + dependencies: + 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" + sntp@1.x.x: version "1.0.9" resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" dependencies: hoek "2.x.x" -source-map@^0.5.0, source-map@~0.5.3: +source-map-resolve@^0.5.0, source-map-resolve@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + dependencies: + 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@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + dependencies: + source-map "^0.5.6" + +source-map-support@^0.5.6: + version "0.5.9" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + +source-map@^0.1.38: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1, source-map@~0.5.3: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" +source-map@^0.6.0, source-map@~0.6.0, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + +spdx-correct@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + dependencies: + extend-shallow "^3.0.0" + +split2@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-0.2.1.tgz#02ddac9adc03ec0bb78c1282ec079ca6e85ae900" + dependencies: + through2 "~0.6.1" + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -1965,6 +4911,39 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" +stack-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" + +stacked@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stacked/-/stacked-1.1.1.tgz#2c7fa38cc7e37a3411a77cd8e792de448f9f6975" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + +statuses@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + +stdout-stream@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" + dependencies: + readable-stream "^2.0.1" + +stealthy-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + stream-browserify@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" @@ -1996,51 +4975,175 @@ stream-splicer@^2.0.0: inherits "^2.0.1" readable-stream "^2.0.2" +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + string_decoder@^1.1.1, string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" dependencies: safe-buffer "~5.1.0" +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + stringstream@~0.0.4: version "0.0.6" resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" -strip-ansi@^3.0.0: +strip-ansi@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220" + dependencies: + ansi-regex "^0.2.1" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" dependencies: ansi-regex "^2.0.0" +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + dependencies: + ansi-regex "^3.0.0" + +strip-bom@3.0.0, strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-css-comments@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-css-comments/-/strip-css-comments-3.0.0.tgz#7a5625eff8a2b226cf8947a11254da96e13dae89" + dependencies: + is-regexp "^1.0.0" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + subarg@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" dependencies: minimist "^1.1.0" +supports-color@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.3.1.tgz#15758df09d8ff3b4acc307539fabe27095e1042d" + +supports-color@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" +supports-color@^3.1.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + dependencies: + has-flag "^1.0.0" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" dependencies: has-flag "^3.0.0" +symbol-tree@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + syntax-error@^1.1.1: version "1.4.0" resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" dependencies: acorn-node "^1.2.0" -through2@^2.0.0: +tar@^4: + version "4.4.6" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" + dependencies: + chownr "^1.0.1" + fs-minipass "^1.2.5" + minipass "^2.3.3" + minizlib "^1.1.0" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" + +term-color@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/term-color/-/term-color-1.0.1.tgz#38e192553a473e35e41604ff5199846bf8117a3a" + dependencies: + ansi-styles "2.0.1" + supports-color "1.3.1" + +test-exclude@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa" + dependencies: + arrify "^1.0.1" + micromatch "^3.1.8" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + +through2@2.0.x, through2@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" dependencies: readable-stream "^2.1.5" xtend "~4.0.1" +through2@~0.6.1: + version "0.6.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" + dependencies: + readable-stream ">=1.0.33-1 <1.1.0-0" + xtend ">=4.0.0 <4.1.0-0" + "through@>=2.2.7 <3": version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -2051,20 +5154,63 @@ timers-browserify@^1.0.1: dependencies: process "~0.11.0" +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + tough-cookie@~2.3.0: version "2.3.4" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" dependencies: punycode "^1.4.1" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + dependencies: + punycode "^2.1.0" + traverse@^0.6.6: version "0.6.6" resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" @@ -2077,6 +5223,12 @@ tty-browserify@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811" +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + tunnel-agent@~0.4.1: version "0.4.3" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" @@ -2085,6 +5237,12 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" @@ -2093,6 +5251,23 @@ ua-parser-js@^0.7.18: version "0.7.18" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" +uglify-js@^2.6: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +ultron@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" + umd@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf" @@ -2125,6 +5300,30 @@ unicode-property-aliases-ecmascript@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + +url-trim@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-trim/-/url-trim-1.0.0.tgz#40057e2f164b88e5daca7269da47e6d1dd837adc" + url@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" @@ -2132,10 +5331,21 @@ url@~0.11.0: punycode "1.3.2" querystring "0.2.0" +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + util@0.10.3: version "0.10.3" resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" @@ -2148,10 +5358,17 @@ util@~0.10.1: dependencies: inherits "2.0.3" -uuid@^3.0.0: +uuid@^3.0.0, uuid@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + verror@1.10.0: version "1.10.0" resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" @@ -2164,14 +5381,150 @@ vm-browserify@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + dependencies: + browser-process-hrtime "^0.1.2" + +walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + dependencies: + makeerror "1.0.x" + +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" + +watchify-middleware@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/watchify-middleware/-/watchify-middleware-1.8.0.tgz#8f7cb9c528022be8525a7e066c10e2fd8c544be6" + dependencies: + concat-stream "^1.5.0" + debounce "^1.0.0" + events "^1.0.2" + object-assign "^4.0.1" + strip-ansi "^3.0.0" + watchify "^3.3.1" + +watchify@^3.3.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/watchify/-/watchify-3.11.0.tgz#03f1355c643955e7ab8dcbf399f624644221330f" + dependencies: + anymatch "^1.3.0" + browserify "^16.1.0" + chokidar "^1.0.0" + defined "^1.0.0" + outpipe "^1.1.0" + through2 "^2.0.0" + xtend "^4.0.0" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.4.tgz#63fb016b7435b795d9025632c086a5209dbd2621" + dependencies: + iconv-lite "0.4.23" + whatwg-fetch@>=0.10.0: version "2.0.4" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" +whatwg-mimetype@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz#f0f21d76cbba72362eb609dbed2a30cd17fcc7d4" + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + +which@^1.2.12, which@^1.2.4, which@^1.2.9, which@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + dependencies: + string-width "^1.0.2 || 2" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" +write-file-atomic@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +ws@^1.1.1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" + dependencies: + options ">=0.0.5" + ultron "1.0.x" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + xml2js@^0.4.9: version "0.4.19" resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" @@ -2179,10 +5532,58 @@ xml2js@^0.4.9: sax ">=0.6.0" xmlbuilder "~9.0.1" +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + xmlbuilder@~9.0.1: version "9.0.7" resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" -xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" + +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" + dependencies: + camelcase "^4.1.0" + +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" diff --git a/scm-plugins/scm-hg-plugin/package.json b/scm-plugins/scm-hg-plugin/package.json new file mode 100644 index 0000000000..3f08153700 --- /dev/null +++ b/scm-plugins/scm-hg-plugin/package.json @@ -0,0 +1,13 @@ +{ + "name": "@scm-manager/scm-hg-plugin", + "main": "src/main/js/index.js", + "scripts": { + "build": "ui-bundler plugin" + }, + "dependencies": { + "@scm-manager/ui-extensions": "^0.0.5" + }, + "devDependencies": { + "@scm-manager/ui-bundler": "^0.0.3" + } +} diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js new file mode 100644 index 0000000000..a1c63ef119 --- /dev/null +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js @@ -0,0 +1,15 @@ +//@flow +import React from 'react'; + +type Props = { +}; + +class HgAvatar extends React.Component { + + render() { + return Mercurial Logo; + } + +} + +export default HgAvatar; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js new file mode 100644 index 0000000000..e8ec86c3c3 --- /dev/null +++ b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js @@ -0,0 +1,60 @@ +//@flow +import React from 'react'; + +// TODO flow types ??? +type Props = { + repository: Object +} + +class ProtocolInformation extends React.Component { + + render() { + const { repository } = this.props; + if (!repository._links.httpProtocol) { + return null; + } + return ( +
+

Clone the repository

+
+          hg clone {repository._links.httpProtocol.href}
+        
+

Create a new repository

+
+          
+            hg init {repository.name}
+            
+ echo "[paths]" > .hg/hgrc +
+ echo "default = {repository._links.httpProtocol.href}" > .hg/hgrc +
+ echo "# {repository.name}" > README.md +
+ hg add README.md +
+ hg commit -m "added readme" +
+
+ hg push +
+
+
+

Push an existing repository

+
+          
+            # add the repository url as default to your .hg/hgrc e.g:
+            
+ default = {repository._links.httpProtocol.href} +
+ # push to remote repository +
+ hg push +
+
+
+ ); + } + +} + +export default ProtocolInformation; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/index.js b/scm-plugins/scm-hg-plugin/src/main/js/index.js new file mode 100644 index 0000000000..82479e2471 --- /dev/null +++ b/scm-plugins/scm-hg-plugin/src/main/js/index.js @@ -0,0 +1,10 @@ +import { binder } from "@scm-manager/ui-extensions"; +import ProtocolInformation from './ProtocolInformation'; +import HgAvatar from './HgAvatar'; + +const hgPredicate = (props: Object) => { + return props.repository && props.repository.type === "hg"; +}; + +binder.bind("repos.repository-details.information", ProtocolInformation, hgPredicate); +binder.bind("repos.repository-avatar", HgAvatar, hgPredicate); diff --git a/scm-plugins/scm-hg-plugin/src/main/webapp/images/hg-logo.png b/scm-plugins/scm-hg-plugin/src/main/webapp/images/hg-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..0f72285da6b55e48021c9068c692fc13638d529d GIT binary patch literal 5658 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 A>Hq)$ literal 0 HcmV?d00001 diff --git a/scm-plugins/scm-hg-plugin/yarn.lock b/scm-plugins/scm-hg-plugin/yarn.lock new file mode 100644 index 0000000000..fe08344881 --- /dev/null +++ b/scm-plugins/scm-hg-plugin/yarn.lock @@ -0,0 +1,5585 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@7.0.0-rc.2", "@babel/code-frame@^7.0.0-beta.35": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-rc.2.tgz#12b6daeb408238360744649d16c0e9fa7ab3859e" + dependencies: + "@babel/highlight" "7.0.0-rc.2" + +"@babel/core@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-rc.2.tgz#dcb46b3adb63e35b1e82c35d9130d9c27be58427" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helpers" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + convert-source-map "^1.1.0" + debug "^3.1.0" + json5 "^0.5.0" + lodash "^4.17.10" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-rc.2.tgz#7aed8fb4ef1bdcc168225096b5b431744ba76bf8" + dependencies: + "@babel/types" "7.0.0-rc.2" + jsesc "^2.5.1" + lodash "^4.17.10" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-rc.2.tgz#490fa0e8cfe11305c3310485221c958817957cc7" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-rc.2.tgz#47904c65b4059893be8b9d16bfeac320df601ffa" + dependencies: + "@babel/helper-explode-assignable-expression" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-builder-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-rc.2.tgz#ba4018ba4d5ab50e24330c3e98bbbebd7286dbf0" + dependencies: + "@babel/types" "7.0.0-rc.2" + esutils "^2.0.0" + +"@babel/helper-call-delegate@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-rc.2.tgz#faa254987fc3b5b90a4dc366d9f65f9a1b083174" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-define-map@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-rc.2.tgz#68f19b9f125a0985e7b81841b35cddb1e4ae1c6e" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/helper-explode-assignable-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-rc.2.tgz#df9a0094aca800e3b40a317a1b3d434a61ee158f" + dependencies: + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-rc.2.tgz#ad7bb9df383c5f53e4bf38c0fe0c7f93e6a27729" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-get-function-arity@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-rc.2.tgz#323cb82e2d805b40c0c36be1dfcb8ffcbd0434f3" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-hoist-variables@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-rc.2.tgz#4bc902f06545b60d10f2fa1058a99730df6197b4" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-member-expression-to-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-rc.2.tgz#5a9c585f86a35428860d8c93a315317ba565106c" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-module-imports@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-rc.2.tgz#982f30e71431d3ea7e00b1b48da774c60470a21d" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-module-transforms@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-rc.2.tgz#d9b2697790875a014282973ed74343bb3ad3c7c5" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/helper-optimise-call-expression@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-rc.2.tgz#6ddfecaf9470f96de38704223646d9c20dcc2377" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-plugin-utils@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.2.tgz#95bc3225bf6aeda5a5ebc90af2546b5b9317c0b4" + +"@babel/helper-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-rc.2.tgz#445d802c3c50cb146a93458f421c77a7f041b495" + dependencies: + lodash "^4.17.10" + +"@babel/helper-remap-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-rc.2.tgz#2025ec555eed8275fcbe24532ab1f083ff973707" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-wrap-function" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-replace-supers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-rc.2.tgz#dcf619512a2171e35c0494aeb539a621f6ce7de2" + dependencies: + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-simple-access@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-rc.2.tgz#34043948cda9e6b883527bb827711bd427fea914" + dependencies: + "@babel/template" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-split-export-declaration@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-rc.2.tgz#726b2dec4e46baeab32db67caa6e88b6521464f8" + dependencies: + "@babel/types" "7.0.0-rc.2" + +"@babel/helper-wrap-function@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-rc.2.tgz#788cd70072254eefd33fc1f3936ba24cced28f48" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/helpers@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-rc.2.tgz#e21f54451824f55b4f5022c6e9d6fa7df65e8746" + dependencies: + "@babel/template" "7.0.0-rc.2" + "@babel/traverse" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/highlight@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-rc.2.tgz#0af688a69e3709d9cf392e1837cda18c08d34d4f" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + +"@babel/parser@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0-rc.2.tgz#a98c01af5834e71d48a5108e3aeeee333cdf26c4" + +"@babel/plugin-proposal-async-generator-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-rc.2.tgz#0f3b63fa74a8ffcd9cf1f4821a4725d2696a8622" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" + +"@babel/plugin-proposal-class-properties@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.0.0-rc.2.tgz#71f4f2297ec9c0848b57c231ef913bc83d49d85a" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-member-expression-to-functions" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/plugin-syntax-class-properties" "7.0.0-rc.2" + +"@babel/plugin-proposal-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.0.0-rc.2.tgz#ea4fd95eb00877e138e3e9f19969e66d9d47b3eb" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-json-strings" "7.0.0-rc.2" + +"@babel/plugin-proposal-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-rc.2.tgz#5552e7a4c80cde25f28dfcc6d050831d1d88a01f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + +"@babel/plugin-proposal-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-rc.2.tgz#61c5968932b6d1e9e5f028b3476f8d55bc317e1f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + +"@babel/plugin-proposal-unicode-property-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-rc.2.tgz#6be37bb04dab59745c2a5e9f0472f8d5f6178330" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.2.0" + +"@babel/plugin-syntax-async-generators@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-rc.2.tgz#2d1726dd0b4d375e1c16fcb983ab4d89c0eeb2b3" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-class-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.0.0-rc.2.tgz#3ecbb8ba2878f07fdc350f7b7bf4bb88d071e846" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-flow@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-rc.2.tgz#9a7538905383db328d6c36507ec05c9f89f2f8ab" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-json-strings@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0-rc.2.tgz#6c16304a379620034190c06b50da3812351967f2" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-rc.2.tgz#c070fd6057ad85c43ba4e7819723e28e760824ff" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-object-rest-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-rc.2.tgz#551e2e0a8916d63b4ddf498afde649c8a7eee1b5" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-syntax-optional-catch-binding@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-rc.2.tgz#8c752fe1a79490682a32836cefe03c3bd49d2180" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-arrow-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-rc.2.tgz#ab00f72ea24535dc47940962c3a96c656f4335c8" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-async-to-generator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-rc.2.tgz#44a125e68baf24d617a9e48a4fc518371633ebf3" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-remap-async-to-generator" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoped-functions@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-rc.2.tgz#953fa99802af1045b607b0f1cb2235419ee78482" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-block-scoping@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-rc.2.tgz#ce5aaebaabde05af5ee2e0bdaccc7727bb4566a6" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + lodash "^4.17.10" + +"@babel/plugin-transform-classes@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-rc.2.tgz#900550c5fcd76e42a6f72b0e8661e82d6e36ceb5" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-define-map" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-optimise-call-expression" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-rc.2.tgz#06e61765c350368c61eadbe0cd37c6835c21e665" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-destructuring@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-rc.2.tgz#ef82b75032275e2eaeba5cf4719b12b8263320b4" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-dotall-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-rc.2.tgz#012766ab7dcdf6afea5b3a1366f3e6fff368a37f" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.1.3" + +"@babel/plugin-transform-duplicate-keys@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-rc.2.tgz#d60eeb2ff7ed31b9e691c880a97dc2e8f7b0dd95" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-exponentiation-operator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-rc.2.tgz#171a4b44c5bb8ba9a57190f65f87f8da045d1db3" + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-flow-strip-types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-rc.2.tgz#87c482c195a3a5e2b8d392928db386a2b034c224" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-flow" "7.0.0-rc.2" + +"@babel/plugin-transform-for-of@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-rc.2.tgz#2ef81a326faf68fb7eca37a3ebf45c5426f84bae" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-function-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-rc.2.tgz#c69c2241fdf3b8430bd6b98d06d7097e91b01bff" + dependencies: + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-rc.2.tgz#a4475d70d91c7dbed6c4ee280b3b1bfcd8221324" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-amd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-rc.2.tgz#f3c37e6de732c8ac07df01ea164cf976409de469" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-commonjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-rc.2.tgz#f6475129473b635bd68cbbab69448c76eb52718c" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-simple-access" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-systemjs@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-rc.2.tgz#ced5ac5556f0e6068b1c5d600bff2e68004038ee" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-modules-umd@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-rc.2.tgz#0e6eeb1e9138064a2ef28991bf03fa4d14536410" + dependencies: + "@babel/helper-module-transforms" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-new-target@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-rc.2.tgz#5b70d3e202a4d677ba6b12762395a85cb1ddc935" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-object-super@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-rc.2.tgz#2c521240b3f817a4d08915022d1d889ee1ff10ec" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-replace-supers" "7.0.0-rc.2" + +"@babel/plugin-transform-parameters@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-rc.2.tgz#5f81577721a3ce6ebc0bdc572209f75e3b723e3d" + dependencies: + "@babel/helper-call-delegate" "7.0.0-rc.2" + "@babel/helper-get-function-arity" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-react-display-name@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-rc.2.tgz#b8a4ee0e098abefbbbd9386db703deaca54429a7" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx-self@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.0.0-rc.2.tgz#12ed61957d968a0f9c694064f720f7f4246ce980" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx-source@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-rc.2.tgz#b67ab723b83eb58cbb58041897c7081392355430" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-react-jsx@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-rc.2.tgz#43f40c43c3c09a4304b1e82b04ff69acf13069c1" + dependencies: + "@babel/helper-builder-react-jsx" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-syntax-jsx" "7.0.0-rc.2" + +"@babel/plugin-transform-regenerator@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-rc.2.tgz#35c26152b0ddff76d93ca1fcf55417b16111ade8" + dependencies: + regenerator-transform "^0.13.3" + +"@babel/plugin-transform-shorthand-properties@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-rc.2.tgz#b920f4ffdcc4bbe75917cfb2e22f685a6771c231" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-spread@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-rc.2.tgz#827e032c206c9f08d01d3d43bb8800e573b3a501" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-sticky-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-rc.2.tgz#b9febc20c1624455e8d5ca1008fb32315e3a414b" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + +"@babel/plugin-transform-template-literals@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-rc.2.tgz#89d701611bff91cceb478542921178f83f5a70c6" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-typeof-symbol@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-rc.2.tgz#3c9a0721f54ad8bbc8f469b6720304d843fd1ebe" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + +"@babel/plugin-transform-unicode-regex@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-rc.2.tgz#6bc3d9e927151baa3c3715d3c46316ac3d8b4a2e" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/helper-regex" "7.0.0-rc.2" + regexpu-core "^4.1.3" + +"@babel/preset-env@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.0.0-rc.2.tgz#66f7ed731234b67ee9a6189f1df60203873ac98b" + dependencies: + "@babel/helper-module-imports" "7.0.0-rc.2" + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-proposal-async-generator-functions" "7.0.0-rc.2" + "@babel/plugin-proposal-json-strings" "7.0.0-rc.2" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-proposal-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-proposal-unicode-property-regex" "7.0.0-rc.2" + "@babel/plugin-syntax-async-generators" "7.0.0-rc.2" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-rc.2" + "@babel/plugin-syntax-optional-catch-binding" "7.0.0-rc.2" + "@babel/plugin-transform-arrow-functions" "7.0.0-rc.2" + "@babel/plugin-transform-async-to-generator" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoped-functions" "7.0.0-rc.2" + "@babel/plugin-transform-block-scoping" "7.0.0-rc.2" + "@babel/plugin-transform-classes" "7.0.0-rc.2" + "@babel/plugin-transform-computed-properties" "7.0.0-rc.2" + "@babel/plugin-transform-destructuring" "7.0.0-rc.2" + "@babel/plugin-transform-dotall-regex" "7.0.0-rc.2" + "@babel/plugin-transform-duplicate-keys" "7.0.0-rc.2" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-rc.2" + "@babel/plugin-transform-for-of" "7.0.0-rc.2" + "@babel/plugin-transform-function-name" "7.0.0-rc.2" + "@babel/plugin-transform-literals" "7.0.0-rc.2" + "@babel/plugin-transform-modules-amd" "7.0.0-rc.2" + "@babel/plugin-transform-modules-commonjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-systemjs" "7.0.0-rc.2" + "@babel/plugin-transform-modules-umd" "7.0.0-rc.2" + "@babel/plugin-transform-new-target" "7.0.0-rc.2" + "@babel/plugin-transform-object-super" "7.0.0-rc.2" + "@babel/plugin-transform-parameters" "7.0.0-rc.2" + "@babel/plugin-transform-regenerator" "7.0.0-rc.2" + "@babel/plugin-transform-shorthand-properties" "7.0.0-rc.2" + "@babel/plugin-transform-spread" "7.0.0-rc.2" + "@babel/plugin-transform-sticky-regex" "7.0.0-rc.2" + "@babel/plugin-transform-template-literals" "7.0.0-rc.2" + "@babel/plugin-transform-typeof-symbol" "7.0.0-rc.2" + "@babel/plugin-transform-unicode-regex" "7.0.0-rc.2" + browserslist "^3.0.0" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.3.0" + +"@babel/preset-flow@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0-rc.2.tgz#415539cd74968b1d2ae5b53fe9572f8d16a355b9" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-flow-strip-types" "7.0.0-rc.2" + +"@babel/preset-react@^7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0-rc.2.tgz#5430f089db83095df4cf134b2e8e8c39619ca60c" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-rc.2" + "@babel/plugin-transform-react-display-name" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-self" "7.0.0-rc.2" + "@babel/plugin-transform-react-jsx-source" "7.0.0-rc.2" + +"@babel/template@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-rc.2.tgz#53f6be6c1336ddc7744625c9bdca9d10be5d5d72" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + +"@babel/traverse@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-rc.2.tgz#6e54ebe82aa1b3b3cf5ec05594bc14d7c59c9766" + dependencies: + "@babel/code-frame" "7.0.0-rc.2" + "@babel/generator" "7.0.0-rc.2" + "@babel/helper-function-name" "7.0.0-rc.2" + "@babel/helper-split-export-declaration" "7.0.0-rc.2" + "@babel/parser" "7.0.0-rc.2" + "@babel/types" "7.0.0-rc.2" + debug "^3.1.0" + globals "^11.1.0" + lodash "^4.17.10" + +"@babel/types@7.0.0-rc.2": + version "7.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-rc.2.tgz#8e025b78764cee8751823e308558a3ca144ebd9d" + dependencies: + esutils "^2.0.2" + lodash "^4.17.10" + to-fast-properties "^2.0.0" + +"@scm-manager/ui-bundler@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" + dependencies: + "@babel/core" "^7.0.0-rc.2" + "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" + "@babel/preset-env" "^7.0.0-rc.2" + "@babel/preset-flow" "^7.0.0-rc.2" + "@babel/preset-react" "^7.0.0-rc.2" + babel-core "^7.0.0-0" + babel-jest "^23.4.2" + babelify "^9.0.0" + browserify "^16.2.2" + browserify-css "^0.14.0" + budo "^11.3.2" + colors "^1.3.1" + commander "^2.17.1" + jest "^23.5.0" + jest-junit "^5.1.0" + node-mkdirs "^0.0.1" + pom-parser "^1.1.1" + +"@scm-manager/ui-extensions@^0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.5.tgz#4336f10a65b428841e2e15c6059d58f8409a5f9f" + dependencies: + react "^16.4.2" + react-dom "^16.4.2" + +JSONStream@^1.0.3: + version "1.3.4" + resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.4.tgz#615bb2adb0cd34c8f4c447b5f6512fa1d8f16a2e" + dependencies: + jsonparse "^1.2.0" + through ">=2.2.7 <3" + +abab@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + +acorn-dynamic-import@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" + dependencies: + acorn "^5.0.0" + +acorn-globals@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.1.0.tgz#ab716025dbe17c54d3ef81d32ece2b2d99fe2538" + dependencies: + acorn "^5.0.0" + +acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.5.2.tgz#2ca723df19d997b05824b69f6c7fb091fc42c322" + dependencies: + acorn "^5.7.1" + acorn-dynamic-import "^3.0.0" + xtend "^4.0.1" + +acorn@^5.0.0, acorn@^5.5.3, acorn@^5.7.1: + version "5.7.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.2.tgz#91fa871883485d06708800318404e72bfb26dcc5" + +ajv@^5.3.0: + version "5.5.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-escapes@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" + +ansi-regex@^0.2.0, ansi-regex@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + +ansi-styles@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.0.1.tgz#b033f57f93e2d28adeb8bc11138fa13da0fd20a3" + +ansi-styles@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + dependencies: + color-convert "^1.9.0" + +anymatch@^1.3.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" + dependencies: + micromatch "^2.1.5" + normalize-path "^2.0.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +append-transform@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" + dependencies: + default-require-extensions "^2.0.0" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + +array-filter@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" + +array-map@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" + +array-reduce@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + dependencies: + util "0.10.3" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + +async@^1.4.0: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@^2.1.4: + version "2.6.1" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" + dependencies: + lodash "^4.17.10" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + +aws4@^1.2.1, aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.0.0, babel-core@^6.26.0: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + dependencies: + 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" + +babel-core@^7.0.0-0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + +babel-generator@^6.18.0, babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + dependencies: + 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" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-jest@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.2.tgz#f276de67798a5d68f2d6e87ff518c2f6e1609877" + dependencies: + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-istanbul@^4.1.6: + version "4.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" + dependencies: + babel-plugin-syntax-object-rest-spread "^6.13.0" + find-up "^2.1.0" + istanbul-lib-instrument "^1.10.1" + test-exclude "^4.2.1" + +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" + +babel-plugin-syntax-object-rest-spread@^6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" + dependencies: + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + dependencies: + 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" + +babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + dependencies: + 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" + +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babelify@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/babelify/-/babelify-9.0.0.tgz#6b2e39ffeeda3765aee60eeb5b581fd947cc64ec" + +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + +base64-js@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + dependencies: + 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" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + dependencies: + tweetnacl "^0.14.3" + +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" + +bluebird@^3.3.3: + version "3.5.1" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + +bole@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bole/-/bole-2.0.0.tgz#d8aa1c690467bfb4fe11b874acb2e8387e382615" + dependencies: + core-util-is ">=1.0.1 <1.1.0-0" + individual ">=3.0.0 <3.1.0-0" + json-stringify-safe ">=5.0.0 <5.1.0-0" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + dependencies: + 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" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + +browser-pack@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.1.0.tgz#c34ba10d0b9ce162b5af227c7131c92c2ecd5774" + dependencies: + JSONStream "^1.0.3" + combine-source-map "~0.8.0" + defined "^1.0.0" + safe-buffer "^5.1.1" + through2 "^2.0.0" + umd "^3.0.0" + +browser-process-hrtime@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" + +browser-resolve@^1.11.0, browser-resolve@^1.11.3, browser-resolve@^1.7.0: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + dependencies: + resolve "1.1.7" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-css@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/browserify-css/-/browserify-css-0.14.0.tgz#5ece581aa6f8c9aab262956fd06d57c526c9a334" + dependencies: + clean-css "^4.1.5" + concat-stream "^1.6.0" + css "^2.2.1" + find-node-modules "^1.0.4" + lodash "^4.17.4" + mime "^1.3.6" + strip-css-comments "^3.0.0" + through2 "2.0.x" + +browserify-des@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + dependencies: + pako "~1.0.5" + +browserify@^16.1.0, browserify@^16.2.2: + version "16.2.2" + resolved "https://registry.yarnpkg.com/browserify/-/browserify-16.2.2.tgz#4b1f66ba0e54fa39dbc5aa4be9629142143d91b0" + dependencies: + JSONStream "^1.0.3" + assert "^1.4.0" + browser-pack "^6.0.1" + browser-resolve "^1.11.0" + browserify-zlib "~0.2.0" + buffer "^5.0.2" + cached-path-relative "^1.0.0" + concat-stream "^1.6.0" + console-browserify "^1.1.0" + constants-browserify "~1.0.0" + crypto-browserify "^3.0.0" + defined "^1.0.0" + deps-sort "^2.0.0" + domain-browser "^1.2.0" + duplexer2 "~0.1.2" + events "^2.0.0" + glob "^7.1.0" + has "^1.0.0" + htmlescape "^1.1.0" + https-browserify "^1.0.0" + inherits "~2.0.1" + insert-module-globals "^7.0.0" + labeled-stream-splicer "^2.0.0" + mkdirp "^0.5.0" + module-deps "^6.0.0" + os-browserify "~0.3.0" + parents "^1.0.1" + path-browserify "~0.0.0" + process "~0.11.0" + punycode "^1.3.2" + querystring-es3 "~0.2.0" + read-only-stream "^2.0.0" + readable-stream "^2.0.2" + resolve "^1.1.4" + shasum "^1.0.0" + shell-quote "^1.6.1" + stream-browserify "^2.0.0" + stream-http "^2.0.0" + string_decoder "^1.1.1" + subarg "^1.0.0" + syntax-error "^1.1.1" + through2 "^2.0.0" + timers-browserify "^1.0.1" + tty-browserify "0.0.1" + url "~0.11.0" + util "~0.10.1" + vm-browserify "^1.0.0" + xtend "^4.0.0" + +browserslist@^3.0.0: + version "3.2.8" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" + dependencies: + caniuse-lite "^1.0.30000844" + electron-to-chromium "^1.3.47" + +bser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" + dependencies: + node-int64 "^0.4.0" + +budo@^11.3.2: + version "11.3.2" + resolved "https://registry.yarnpkg.com/budo/-/budo-11.3.2.tgz#ab943492cadbb0abaf9126b4c8c94eac2440adae" + dependencies: + bole "^2.0.0" + browserify "^16.1.0" + chokidar "^1.0.1" + connect-pushstate "^1.1.0" + escape-html "^1.0.3" + events "^1.0.2" + garnish "^5.0.0" + get-ports "^1.0.2" + inject-lr-script "^2.1.0" + internal-ip "^3.0.1" + micromatch "^2.2.0" + on-finished "^2.3.0" + on-headers "^1.0.1" + once "^1.3.2" + opn "^3.0.2" + path-is-absolute "^1.0.1" + pem "^1.8.3" + reload-css "^1.0.0" + resolve "^1.1.6" + serve-static "^1.10.0" + simple-html-index "^1.4.0" + stacked "^1.1.1" + stdout-stream "^1.4.0" + strip-ansi "^3.0.0" + subarg "^1.0.0" + term-color "^1.0.1" + url-trim "^1.0.0" + watchify-middleware "^1.8.0" + ws "^1.1.1" + xtend "^4.0.0" + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + +buffer@^5.0.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.0.tgz#53cf98241100099e9eeae20ee6d51d21b16e541e" + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + dependencies: + 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" + +cached-path-relative@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + +caniuse-lite@^1.0.30000844: + version "1.0.30000878" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz#c644c39588dd42d3498e952234c372e5a40a4123" + +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" + dependencies: + rsvp "^3.3.3" + +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" + dependencies: + 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" + +chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + 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" + +chalk@^2.0.0, chalk@^2.0.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +charenc@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" + +chokidar@^1.0.0, chokidar@^1.0.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +chownr@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" + +ci-info@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.4.0.tgz#4841d53cad49f11b827b648ebde27a6e189b412f" + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-css@^4.1.5: + version "4.2.1" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" + dependencies: + source-map "~0.6.0" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.2" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" + dependencies: + color-name "1.1.1" + +color-name@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689" + +colors@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.2.tgz#2df8ff573dfbf255af562f8ce7181d6b971a359b" + +combine-source-map@^0.8.0, combine-source-map@~0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b" + dependencies: + convert-source-map "~1.1.0" + inline-source-map "~0.6.0" + lodash.memoize "~3.0.3" + source-map "~0.5.3" + +combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5, combined-stream@~1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" + dependencies: + delayed-stream "~1.0.0" + +commander@^2.17.1, commander@^2.9.0: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" + +compare-versions@^3.1.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.1.tgz#1ede3172b713c15f7c7beb98cb74d2d82576dad3" + +component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.5.0, concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +connect-pushstate@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/connect-pushstate/-/connect-pushstate-1.1.0.tgz#bcab224271c439604a0fb0f614c0a5f563e88e24" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +constants-browserify@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" + +convert-source-map@~1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + +core-js@^2.4.0, core-js@^2.5.0: + version "2.5.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" + +core-util-is@1.0.2, "core-util-is@>=1.0.1 <1.1.0-0", core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +coveralls@^2.11.3: + version "2.13.3" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7" + dependencies: + js-yaml "3.6.1" + lcov-parse "0.0.10" + log-driver "1.2.5" + minimist "1.2.0" + request "2.79.0" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +crypt@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-browserify@^3.0.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +css@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.3.tgz#f861f4ba61e79bedc962aa548e5780fd95cbc6be" + dependencies: + inherits "^2.0.1" + source-map "^0.1.38" + source-map-resolve "^0.5.1" + urix "^0.1.0" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" + +cssstyle@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" + dependencies: + cssom "0.3.x" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.1.tgz#d416ac3896918f29ca84d81085bc3705834da579" + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.1.0" + whatwg-url "^7.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + +debounce@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + dependencies: + ms "2.0.0" + +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +default-gateway@^2.6.0: + version "2.7.2" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-2.7.2.tgz#b7ef339e5e024b045467af403d50348db4642d0f" + dependencies: + execa "^0.10.0" + ip-regex "^2.1.0" + +default-require-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" + dependencies: + strip-bom "^3.0.0" + +define-properties@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +defined@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + +deps-sort@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5" + dependencies: + JSONStream "^1.0.3" + shasum "^1.0.0" + subarg "^1.0.0" + through2 "^2.0.0" + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + +detect-file@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63" + dependencies: + fs-exists-sync "^0.1.0" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + +detective@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/detective/-/detective-5.1.0.tgz#7a20d89236d7b331ccea65832e7123b5551bb7cb" + dependencies: + acorn-node "^1.3.0" + defined "^1.0.0" + minimist "^1.1.1" + +diff@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +domain-browser@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + dependencies: + webidl-conversions "^4.0.2" + +duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + dependencies: + readable-stream "^2.0.2" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + +electron-to-chromium@^1.3.47: + version "1.3.61" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.61.tgz#a8ac295b28d0f03d85e37326fd16b6b6b17a1795" + +elliptic@^6.0.0: + version "6.4.1" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.1.tgz#c2d0b7776911b86722c632c3c06c60f2f819939a" + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + dependencies: + iconv-lite "~0.4.13" + +error-ex@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.5.1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" + dependencies: + es-to-primitive "^1.1.1" + function-bind "^1.1.1" + has "^1.0.1" + is-callable "^1.1.3" + is-regex "^1.0.4" + +es-to-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" + dependencies: + is-callable "^1.1.1" + is-date-object "^1.0.1" + is-symbol "^1.0.1" + +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + +escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escodegen@^1.9.1: + version "1.11.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +esprima@^2.6.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + +estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + +esutils@^2.0.0, esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + +events@^1.0.2: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + +events@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/events/-/events-2.1.0.tgz#2a9a1e18e6106e0e812aa9ebd4a819b3c29c0ba5" + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +exec-sh@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" + dependencies: + merge "^1.2.0" + +execa@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" + dependencies: + cross-spawn "^6.0.0" + 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" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + dependencies: + 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" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + dependencies: + 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" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +expand-tilde@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449" + dependencies: + os-homedir "^1.0.1" + +expect@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.5.0.tgz#18999a0eef8f8acf99023fde766d9c323c2562ed" + dependencies: + ansi-styles "^3.2.0" + jest-diff "^23.5.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + dependencies: + 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" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + +fast-deep-equal@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + dependencies: + bser "^2.0.0" + +fbjs@^0.8.16: + version "0.8.17" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + +fileset@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +find-node-modules@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-1.0.4.tgz#b6deb3cccb699c87037677bcede2c5f5862b2550" + dependencies: + findup-sync "0.4.2" + merge "^1.2.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + dependencies: + locate-path "^2.0.0" + +findup-sync@0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.2.tgz#a8117d0f73124f5a4546839579fe52d7129fb5e5" + dependencies: + detect-file "^0.1.0" + is-glob "^2.0.1" + micromatch "^2.3.7" + resolve-dir "^0.1.0" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +form-data@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" + dependencies: + asynckit "^0.4.0" + combined-stream "1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + +from2-string@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/from2-string/-/from2-string-1.1.0.tgz#18282b27d08a267cb3030cd2b8b4b0f212af752a" + dependencies: + from2 "^2.0.3" + +from2@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-exists-sync@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + dependencies: + minipass "^2.2.1" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fsevents@^1.0.0, fsevents@^1.2.3: + version "1.2.4" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" + dependencies: + nan "^2.9.2" + node-pre-gyp "^0.10.0" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + +garnish@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/garnish/-/garnish-5.2.0.tgz#bed43659382e4b198e33c793897be7c701e65577" + dependencies: + chalk "^0.5.1" + minimist "^1.1.0" + pad-left "^2.0.0" + pad-right "^0.2.2" + prettier-bytes "^1.0.3" + pretty-ms "^2.1.0" + right-now "^1.0.0" + split2 "^0.2.1" + stdout-stream "^1.4.0" + url-trim "^1.0.0" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + 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" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-assigned-identifiers@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1" + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + +get-ports@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-ports/-/get-ports-1.0.3.tgz#f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8" + dependencies: + map-limit "0.0.1" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^7.0.3, glob@^7.0.5, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + 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" + +global-modules@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" + dependencies: + global-prefix "^0.1.4" + is-windows "^0.2.0" + +global-prefix@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f" + dependencies: + homedir-polyfill "^1.0.0" + ini "^1.3.4" + is-windows "^0.2.0" + which "^1.2.12" + +globals@^11.1.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" + +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + +handlebars@^4.0.3: + version "4.0.11" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + dependencies: + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" + +har-validator@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" + dependencies: + ajv "^5.3.0" + har-schema "^2.0.0" + +has-ansi@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e" + dependencies: + ansi-regex "^0.2.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.0, has@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.5" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.5.tgz#e38ab4b85dfb1e0c40fe9265c0e9b54854c23812" + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +homedir-polyfill@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + dependencies: + parse-passwd "^1.0.0" + +hosted-git-info@^2.1.4: + version "2.7.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + dependencies: + whatwg-encoding "^1.0.1" + +htmlescape@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351" + +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + +iconv-lite@0.4.23: + version "0.4.23" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" + dependencies: + safer-buffer ">= 2.1.2 < 3" + +iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.1.12" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b" + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + dependencies: + minimatch "^3.0.4" + +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" + dependencies: + pkg-dir "^2.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +"individual@>=3.0.0 <3.1.0-0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/individual/-/individual-3.0.0.tgz#e7ca4f85f8957b018734f285750dc22ec2f9862d" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + +ini@^1.3.4, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + +inject-lr-script@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/inject-lr-script/-/inject-lr-script-2.1.0.tgz#e61b5e84c118733906cbea01ec3d746698a39f65" + dependencies: + resp-modifier "^6.0.0" + +inline-source-map@~0.6.0: + version "0.6.2" + resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5" + dependencies: + source-map "~0.5.3" + +insert-module-globals@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.0.tgz#ec87e5b42728479e327bd5c5c71611ddfb4752ba" + dependencies: + JSONStream "^1.0.3" + acorn-node "^1.5.2" + combine-source-map "^0.8.0" + concat-stream "^1.6.1" + is-buffer "^1.1.0" + path-is-absolute "^1.0.1" + process "~0.11.0" + through2 "^2.0.0" + undeclared-identifiers "^1.1.2" + xtend "^4.0.0" + +internal-ip@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-3.0.1.tgz#df5c99876e1d2eb2ea2d74f520e3f669a00ece27" + dependencies: + default-gateway "^2.6.0" + ipaddr.js "^1.5.2" + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +ip-regex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + +ipaddr.js@^1.5.2: + version "1.8.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.1.tgz#fa4b79fa47fd3def5e3b159825161c0a519c9427" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.0, is-buffer@^1.1.5, is-buffer@~1.1.1: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-callable@^1.1.1, is-callable@^1.1.3: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + +is-ci@^1.0.10: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.0.tgz#3f4a08d6303a09882cef3f0fb97439c5f5ce2d53" + dependencies: + ci-info "^1.3.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0, is-finite@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-my-ip-valid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" + +is-my-json-valid@^2.12.4: + version "2.19.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz#8fd6e40363cd06b963fa877d444bfb5eddc62175" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + is-my-ip-valid "^1.0.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + dependencies: + has "^1.0.1" + +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + +is-stream@^1.0.1, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-symbol@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +is-windows@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isarray@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +istanbul-api@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" + dependencies: + async "^2.1.4" + compare-versions "^3.1.0" + fileset "^2.0.2" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-hook "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-report "^1.1.4" + istanbul-lib-source-maps "^1.2.4" + istanbul-reports "^1.3.0" + js-yaml "^3.7.0" + mkdirp "^0.5.1" + once "^1.4.0" + +istanbul-lib-coverage@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" + +istanbul-lib-hook@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.1.tgz#f614ec45287b2a8fc4f07f5660af787575601805" + dependencies: + append-transform "^1.0.0" + +istanbul-lib-instrument@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.18.0" + istanbul-lib-coverage "^1.2.0" + semver "^5.3.0" + +istanbul-lib-report@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz#e886cdf505c4ebbd8e099e4396a90d0a28e2acb5" + dependencies: + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + path-parse "^1.0.5" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.2.4: + version "1.2.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" + dependencies: + debug "^3.1.0" + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + rimraf "^2.6.1" + source-map "^0.5.3" + +istanbul-reports@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" + dependencies: + handlebars "^4.0.3" + +jest-changed-files@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" + dependencies: + throat "^4.0.0" + +jest-cli@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.5.0.tgz#d316b8e34a38a610a1efc4f0403d8ef8a55e4492" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.1.11" + import-local "^1.0.0" + is-ci "^1.0.10" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.2" + jest-config "^23.5.0" + jest-environment-jsdom "^23.4.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.5.0" + jest-runner "^23.5.0" + jest-runtime "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" + micromatch "^2.3.11" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" + slash "^1.0.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" + which "^1.2.12" + yargs "^11.0.0" + +jest-config@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.5.0.tgz#3770fba03f7507ee15f3b8867c742e48f31a9773" + dependencies: + babel-core "^6.0.0" + babel-jest "^23.4.2" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.5.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + pretty-format "^23.5.0" + +jest-diff@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.5.0.tgz#250651a433dd0050290a07642946cc9baaf06fba" + dependencies: + chalk "^2.0.1" + diff "^3.2.0" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" + dependencies: + detect-newline "^2.1.0" + +jest-each@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.5.0.tgz#77f7e2afe6132a80954b920006e78239862b10ba" + dependencies: + chalk "^2.0.1" + pretty-format "^23.5.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + jsdom "^11.5.1" + +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" + +jest-haste-map@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.5.0.tgz#d4ca618188bd38caa6cb20349ce6610e194a8065" + dependencies: + fb-watchman "^2.0.0" + graceful-fs "^4.1.11" + invariant "^2.2.4" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" + micromatch "^2.3.11" + sane "^2.0.0" + +jest-jasmine2@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.5.0.tgz#05fe7f1788e650eeb5a03929e6461ea2e9f3db53" + dependencies: + babel-traverse "^6.0.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.5.0" + is-generator-fn "^1.0.0" + jest-diff "^23.5.0" + jest-each "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + pretty-format "^23.5.0" + +jest-junit@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-5.1.0.tgz#e8e497d810a829bf02783125aab74b5df6caa8fe" + dependencies: + jest-validate "^23.0.1" + mkdirp "^0.5.1" + strip-ansi "^4.0.0" + xml "^1.0.1" + +jest-leak-detector@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.5.0.tgz#14ac2a785bd625160a2ea968fd5d98b7dcea3e64" + dependencies: + pretty-format "^23.5.0" + +jest-matcher-utils@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.5.0.tgz#0e2ea67744cab78c9ab15011c4d888bdd3e49e2a" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" + dependencies: + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" + micromatch "^2.3.11" + slash "^1.0.0" + stack-utils "^1.0.1" + +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" + +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" + +jest-resolve-dependencies@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.5.0.tgz#10c4d135beb9d2256de1fedc7094916c3ad74af7" + dependencies: + jest-regex-util "^23.3.0" + jest-snapshot "^23.5.0" + +jest-resolve@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.5.0.tgz#3b8e7f67e84598f0caf63d1530bd8534a189d0e6" + dependencies: + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" + +jest-runner@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.5.0.tgz#570f7a044da91648b5bb9b6baacdd511076c71d7" + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.5.0" + jest-jasmine2 "^23.5.0" + jest-leak-detector "^23.5.0" + jest-message-util "^23.4.0" + jest-runtime "^23.5.0" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.5.0.tgz#eb503525a196dc32f2f9974e3482d26bdf7b63ce" + dependencies: + babel-core "^6.0.0" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" + convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + realpath-native "^1.0.0" + slash "^1.0.0" + strip-bom "3.0.0" + write-file-atomic "^2.1.0" + yargs "^11.0.0" + +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" + +jest-snapshot@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.5.0.tgz#cc368ebd8513e1175e2a7277f37a801b7358ae79" + dependencies: + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-resolve "^23.5.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^23.5.0" + semver "^5.5.0" + +jest-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" + dependencies: + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.4.0" + mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" + +jest-validate@^23.0.1, jest-validate@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.5.0.tgz#f5df8f761cf43155e1b2e21d6e9de8a2852d0231" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.5.0" + +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + dependencies: + merge-stream "^1.0.1" + +jest@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.5.0.tgz#80de353d156ea5ea4a7332f7962ac79135fbc62e" + dependencies: + import-local "^1.0.0" + jest-cli "^23.5.0" + +js-levenshtein@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.3.tgz#3ef627df48ec8cf24bacf05c0f184ff30ef413c5" + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + +js-yaml@3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +js-yaml@^3.7.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +jsesc@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + +json-schema-traverse@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz#611c23e814db375527df851193db59dd2af27f45" + dependencies: + jsonify "~0.0.0" + +"json-stringify-safe@>=5.0.0 <5.1.0-0", json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json5@^0.5.0, json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + +kleur@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.1.tgz#7cc64b0d188d0dcbc98bdcdfdda2cc10619ddce8" + +labeled-stream-splicer@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926" + dependencies: + inherits "^2.0.1" + isarray "^2.0.4" + stream-splicer "^2.0.0" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +lcov-parse@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +lodash.memoize@~3.0.3: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f" + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + +lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + +log-driver@1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +lru-cache@^4.0.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + dependencies: + tmpl "1.0.x" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + +map-limit@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/map-limit/-/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38" + dependencies: + once "~1.3.0" + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + dependencies: + object-visit "^1.0.0" + +math-random@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" + +md5.js@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +md5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" + dependencies: + charenc "~0.0.1" + crypt "~0.0.1" + is-buffer "~1.1.1" + +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + dependencies: + mimic-fn "^1.0.0" + +merge-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + dependencies: + readable-stream "^2.0.1" + +merge@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" + +micromatch@^2.1.5, micromatch@^2.2.0, micromatch@^2.3.11, micromatch@^2.3.7: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + 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" + +micromatch@^3.1.4, micromatch@^3.1.8: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + dependencies: + 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" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@~1.35.0: + version "1.35.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" + +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.7: + version "2.1.19" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" + dependencies: + mime-db "~1.35.0" + +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" + +mime@^1.3.6: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + +minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + +minipass@^2.2.1, minipass@^2.3.3: + version "2.3.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" + dependencies: + minipass "^2.2.1" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +module-deps@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.1.0.tgz#d1e1efc481c6886269f7112c52c3236188e16479" + dependencies: + JSONStream "^1.0.3" + browser-resolve "^1.7.0" + cached-path-relative "^1.0.0" + concat-stream "~1.6.0" + defined "^1.0.0" + detective "^5.0.2" + duplexer2 "^0.1.2" + inherits "^2.0.1" + parents "^1.0.0" + readable-stream "^2.0.2" + resolve "^1.4.0" + stream-combiner2 "^1.1.1" + subarg "^1.0.0" + through2 "^2.0.0" + xtend "^4.0.0" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + +nan@^2.9.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + dependencies: + 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" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +needle@^2.2.1: + version "2.2.2" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418" + dependencies: + debug "^2.1.2" + iconv-lite "^0.4.4" + sax "^1.2.4" + +nice-try@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + +node-mkdirs@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/node-mkdirs/-/node-mkdirs-0.0.1.tgz#b20f50ba796a4f543c04a69942d06d06f8aaf552" + +node-notifier@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" + dependencies: + growly "^1.3.0" + semver "^5.4.1" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" + dependencies: + 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@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + dependencies: + 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@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +npm-bundled@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" + +npm-packlist@^1.1.6: + version "1.1.11" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + dependencies: + 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@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +nwsapi@^2.0.7: + version "2.0.8" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.8.tgz#e3603579b7e162b3dbedae4fb24e46f771d8fa24" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-keys@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + dependencies: + isobject "^3.0.0" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + dependencies: + isobject "^3.0.1" + +on-finished@^2.3.0, on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + dependencies: + ee-first "1.1.1" + +on-headers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + +once@^1.3.0, once@^1.3.2, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +once@~1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + dependencies: + wrappy "1" + +opn@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/opn/-/opn-3.0.3.tgz#b6d99e7399f78d65c3baaffef1fb288e9b85243a" + dependencies: + object-assign "^4.0.1" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +options@>=0.0.5: + version "0.0.6" + resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" + +os-browserify@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +outpipe@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/outpipe/-/outpipe-1.1.1.tgz#50cf8616365e87e031e29a5ec9339a3da4725fa2" + dependencies: + shell-quote "^1.4.2" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + dependencies: + p-try "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + dependencies: + p-limit "^1.1.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + +pad-left@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pad-left/-/pad-left-2.1.0.tgz#16e6a3b2d44a8e138cb0838cc7cb403a4fc9e994" + dependencies: + repeat-string "^1.5.4" + +pad-right@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774" + dependencies: + repeat-string "^1.5.2" + +pako@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" + +parents@^1.0.0, parents@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751" + dependencies: + path-platform "~0.11.15" + +parse-asn1@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.1.tgz#f6bf293818332bd0dab54efb16087724745e6ca8" + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +parse-ms@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + +parseurl@~1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + +path-browserify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + +path-parse@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + +path-platform@~0.11.15: + version "0.11.15" + resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +pbkdf2@^3.0.3: + version "3.0.16" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c" + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +pem@^1.8.3: + version "1.12.5" + resolved "https://registry.yarnpkg.com/pem/-/pem-1.12.5.tgz#97bf2e459537c54e0ee5b0aa11b5ca18d6b5fef2" + dependencies: + md5 "^2.2.1" + os-tmpdir "^1.0.1" + safe-buffer "^5.1.1" + which "^1.2.4" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + dependencies: + find-up "^2.1.0" + +plur@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + +pom-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pom-parser/-/pom-parser-1.1.1.tgz#6fab4d2498e87c862072ab205aa88b1209e5f966" + dependencies: + bluebird "^3.3.3" + coveralls "^2.11.3" + traverse "^0.6.6" + xml2js "^0.4.9" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +prettier-bytes@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prettier-bytes/-/prettier-bytes-1.0.4.tgz#994b02aa46f699c50b6257b5faaa7fe2557e62d6" + +pretty-format@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.5.0.tgz#0f9601ad9da70fe690a269cd3efca732c210687c" + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +pretty-ms@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-2.1.0.tgz#4257c256df3fb0b451d6affaab021884126981dc" + dependencies: + is-finite "^1.0.1" + parse-ms "^1.0.0" + plur "^1.0.0" + +private@^0.1.6, private@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + +process@~0.11.0: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + dependencies: + asap "~2.0.3" + +prompts@^0.1.9: + version "0.1.14" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" + dependencies: + kleur "^2.0.1" + sisteransi "^0.1.1" + +prop-types@^15.6.0: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +psl@^1.1.24: + version "1.1.29" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" + +public-encrypt@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + +punycode@^1.3.2, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + +qs@~6.3.0: + version "6.3.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + +query-string@^4.2.3: + version "4.3.4" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" + dependencies: + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + +querystring-es3@~0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + +randomatic@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116" + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +react-dom@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +react@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +read-only-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0" + dependencies: + readable-stream "^2.0.2" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +"readable-stream@>=1.0.33-1 <1.1.0-0": + version "1.0.34" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + dependencies: + 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" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +realpath-native@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.1.tgz#07f40a0cce8f8261e2e8b7ebebf5c95965d7b633" + dependencies: + util.promisify "^1.0.0" + +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + dependencies: + regenerate "^1.4.0" + +regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + +regenerator-transform@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" + dependencies: + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexpu-core@^4.1.3, regexpu-core@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.4.0" + regjsparser "^0.3.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" + +regjsgen@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.4.0.tgz#c1eb4c89a209263f8717c782591523913ede2561" + +regjsparser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.3.0.tgz#3c326da7fcfd69fa0d332575a41c8c0cdf588c96" + dependencies: + jsesc "~0.5.0" + +reload-css@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reload-css/-/reload-css-1.0.2.tgz#6afb11162e2314feccdad6dc5fde821fd7318331" + dependencies: + query-string "^4.2.3" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request-promise-core@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" + dependencies: + lodash "^4.13.1" + +request-promise-native@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" + dependencies: + request-promise-core "1.1.1" + stealthy-require "^1.1.0" + tough-cookie ">=2.3.3" + +request@2.79.0: + version "2.79.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + qs "~6.3.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + uuid "^3.0.0" + +request@^2.87.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + dependencies: + 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" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + dependencies: + resolve-from "^3.0.0" + +resolve-dir@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" + dependencies: + expand-tilde "^1.2.2" + global-modules "^0.2.3" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + +resolve@^1.1.4, resolve@^1.1.6, resolve@^1.3.2, resolve@^1.4.0: + version "1.8.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" + dependencies: + path-parse "^1.0.5" + +resp-modifier@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +right-now@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" + +rimraf@^2.5.4, rimraf@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + dependencies: + glob "^7.0.5" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" + dependencies: + anymatch "^2.0.0" + capture-exit "^1.2.0" + exec-sh "^0.2.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" + +sax@>=0.6.0, sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: + version "5.5.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" + +send@0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" + dependencies: + 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" + +serve-static@^1.10.0: + version "1.13.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.2" + send "0.16.2" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + +sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shasum@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f" + dependencies: + json-stable-stringify "~0.0.0" + sha.js "~2.4.4" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shell-quote@^1.4.2, shell-quote@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" + dependencies: + array-filter "~0.0.0" + array-map "~0.0.0" + array-reduce "~0.0.0" + jsonify "~0.0.0" + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +simple-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" + +simple-html-index@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/simple-html-index/-/simple-html-index-1.5.0.tgz#2c93eeaebac001d8a135fc0022bd4ade8f58996f" + dependencies: + from2-string "^1.1.0" + +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + dependencies: + 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" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map-resolve@^0.5.0, source-map-resolve@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + dependencies: + 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@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + dependencies: + source-map "^0.5.6" + +source-map-support@^0.5.6: + version "0.5.9" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + +source-map@^0.1.38: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1, source-map@~0.5.3: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + +source-map@^0.6.0, source-map@~0.6.0, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + +spdx-correct@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + dependencies: + extend-shallow "^3.0.0" + +split2@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-0.2.1.tgz#02ddac9adc03ec0bb78c1282ec079ca6e85ae900" + dependencies: + through2 "~0.6.1" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + safer-buffer "^2.0.2" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stack-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" + +stacked@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stacked/-/stacked-1.1.1.tgz#2c7fa38cc7e37a3411a77cd8e792de448f9f6975" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + +statuses@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + +stdout-stream@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" + dependencies: + readable-stream "^2.0.1" + +stealthy-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + +stream-browserify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-combiner2@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe" + dependencies: + duplexer2 "~0.1.0" + readable-stream "^2.0.2" + +stream-http@^2.0.0: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-splicer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.0.tgz#1b63be438a133e4b671cc1935197600175910d83" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.2" + +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + dependencies: + safe-buffer "~5.1.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +stringstream@~0.0.4: + version "0.0.6" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" + +strip-ansi@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220" + dependencies: + ansi-regex "^0.2.1" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + dependencies: + ansi-regex "^3.0.0" + +strip-bom@3.0.0, strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-css-comments@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-css-comments/-/strip-css-comments-3.0.0.tgz#7a5625eff8a2b226cf8947a11254da96e13dae89" + dependencies: + is-regexp "^1.0.0" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +subarg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" + dependencies: + minimist "^1.1.0" + +supports-color@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.3.1.tgz#15758df09d8ff3b4acc307539fabe27095e1042d" + +supports-color@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^3.1.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + dependencies: + has-flag "^1.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + dependencies: + has-flag "^3.0.0" + +symbol-tree@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + +syntax-error@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" + dependencies: + acorn-node "^1.2.0" + +tar@^4: + version "4.4.6" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" + dependencies: + chownr "^1.0.1" + fs-minipass "^1.2.5" + minipass "^2.3.3" + minizlib "^1.1.0" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" + +term-color@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/term-color/-/term-color-1.0.1.tgz#38e192553a473e35e41604ff5199846bf8117a3a" + dependencies: + ansi-styles "2.0.1" + supports-color "1.3.1" + +test-exclude@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa" + dependencies: + arrify "^1.0.1" + micromatch "^3.1.8" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + +through2@2.0.x, through2@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + +through2@~0.6.1: + version "0.6.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" + dependencies: + readable-stream ">=1.0.33-1 <1.1.0-0" + xtend ">=4.0.0 <4.1.0-0" + +"through@>=2.2.7 <3": + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timers-browserify@^1.0.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d" + dependencies: + process "~0.11.0" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + +tough-cookie@~2.3.0: + version "2.3.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" + dependencies: + punycode "^1.4.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + dependencies: + punycode "^2.1.0" + +traverse@^0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tty-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +ua-parser-js@^0.7.18: + version "0.7.18" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" + +uglify-js@^2.6: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +ultron@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" + +umd@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf" + +undeclared-identifiers@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz#7d850a98887cff4bd0bf64999c014d08ed6d1acc" + dependencies: + acorn-node "^1.3.0" + get-assigned-identifiers "^1.2.0" + simple-concat "^1.0.0" + xtend "^4.0.1" + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + +url-trim@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-trim/-/url-trim-1.0.0.tgz#40057e2f164b88e5daca7269da47e6d1dd837adc" + +url@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + dependencies: + inherits "2.0.1" + +util@~0.10.1: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + dependencies: + inherits "2.0.3" + +uuid@^3.0.0, uuid@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vm-browserify@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" + +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + dependencies: + browser-process-hrtime "^0.1.2" + +walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + dependencies: + makeerror "1.0.x" + +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" + +watchify-middleware@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/watchify-middleware/-/watchify-middleware-1.8.0.tgz#8f7cb9c528022be8525a7e066c10e2fd8c544be6" + dependencies: + concat-stream "^1.5.0" + debounce "^1.0.0" + events "^1.0.2" + object-assign "^4.0.1" + strip-ansi "^3.0.0" + watchify "^3.3.1" + +watchify@^3.3.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/watchify/-/watchify-3.11.0.tgz#03f1355c643955e7ab8dcbf399f624644221330f" + dependencies: + anymatch "^1.3.0" + browserify "^16.1.0" + chokidar "^1.0.0" + defined "^1.0.0" + outpipe "^1.1.0" + through2 "^2.0.0" + xtend "^4.0.0" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.4.tgz#63fb016b7435b795d9025632c086a5209dbd2621" + dependencies: + iconv-lite "0.4.23" + +whatwg-fetch@>=0.10.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" + +whatwg-mimetype@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz#f0f21d76cbba72362eb609dbed2a30cd17fcc7d4" + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + +which@^1.2.12, which@^1.2.4, which@^1.2.9, which@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + dependencies: + string-width "^1.0.2 || 2" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write-file-atomic@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +ws@^1.1.1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" + dependencies: + options ">=0.0.5" + ultron "1.0.x" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + +xml2js@^0.4.9: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" + +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" + +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" + dependencies: + camelcase "^4.1.0" + +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" diff --git a/scm-plugins/scm-svn-plugin/package.json b/scm-plugins/scm-svn-plugin/package.json new file mode 100644 index 0000000000..fa91fc4969 --- /dev/null +++ b/scm-plugins/scm-svn-plugin/package.json @@ -0,0 +1,13 @@ +{ + "name": "@scm-manager/scm-svn-plugin", + "main": "src/main/js/index.js", + "scripts": { + "build": "ui-bundler plugin" + }, + "dependencies": { + "@scm-manager/ui-extensions": "^0.0.5" + }, + "devDependencies": { + "@scm-manager/ui-bundler": "^0.0.3" + } +} diff --git a/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.js b/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.js new file mode 100644 index 0000000000..20c27e1ff2 --- /dev/null +++ b/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.js @@ -0,0 +1,28 @@ +//@flow +import React from 'react'; + +// TODO flow types ??? +type Props = { + repository: Object +} + +class ProtocolInformation extends React.Component { + + render() { + const { repository } = this.props; + if (!repository._links.httpProtocol) { + return null; + } + return ( +

+

Checkout the repository

+
+          svn checkout {repository._links.httpProtocol.href}
+        
+
+ ); + } + +} + +export default ProtocolInformation; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js new file mode 100644 index 0000000000..f274a336c8 --- /dev/null +++ b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js @@ -0,0 +1,15 @@ +//@flow +import React from 'react'; + +type Props = { +}; + +class SvnAvatar extends React.Component { + + render() { + return Subversion Logo; + } + +} + +export default SvnAvatar; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/index.js b/scm-plugins/scm-svn-plugin/src/main/js/index.js new file mode 100644 index 0000000000..83e7bc6bde --- /dev/null +++ b/scm-plugins/scm-svn-plugin/src/main/js/index.js @@ -0,0 +1,10 @@ +import { binder } from "@scm-manager/ui-extensions"; +import ProtocolInformation from './ProtocolInformation'; +import SvnAvatar from './SvnAvatar'; + +const svnPredicate = (props: Object) => { + return props.repository && props.repository.type === "svn"; +}; + +binder.bind("repos.repository-details.information", ProtocolInformation, svnPredicate); +binder.bind("repos.repository-avatar", SvnAvatar, svnPredicate); diff --git a/scm-plugins/scm-svn-plugin/src/main/webapp/images/svn-logo.gif b/scm-plugins/scm-svn-plugin/src/main/webapp/images/svn-logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..b8b45c093e6b215bcc862f23f4e50eaa4885fd85 GIT binary patch literal 7946 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 Pi=2.2.7 <3" + +abab@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + +acorn-dynamic-import@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278" + dependencies: + acorn "^5.0.0" + +acorn-globals@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.1.0.tgz#ab716025dbe17c54d3ef81d32ece2b2d99fe2538" + dependencies: + acorn "^5.0.0" + +acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.5.2.tgz#2ca723df19d997b05824b69f6c7fb091fc42c322" + dependencies: + acorn "^5.7.1" + acorn-dynamic-import "^3.0.0" + xtend "^4.0.1" + +acorn@^5.0.0, acorn@^5.5.3, acorn@^5.7.1: + version "5.7.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.2.tgz#91fa871883485d06708800318404e72bfb26dcc5" + +ajv@^5.3.0: + version "5.5.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965" + dependencies: + co "^4.6.0" + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-escapes@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30" + +ansi-regex@^0.2.0, ansi-regex@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + +ansi-styles@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.0.1.tgz#b033f57f93e2d28adeb8bc11138fa13da0fd20a3" + +ansi-styles@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + dependencies: + color-convert "^1.9.0" + +anymatch@^1.3.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" + dependencies: + micromatch "^2.1.5" + normalize-path "^2.0.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +append-transform@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" + dependencies: + default-require-extensions "^2.0.0" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + +arr-flatten@^1.0.1, arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + +array-filter@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec" + +array-map@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" + +array-reduce@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + dependencies: + util "0.10.3" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + +async@^1.4.0: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@^2.1.4: + version "2.6.1" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" + dependencies: + lodash "^4.17.10" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + +aws4@^1.2.1, aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.0.0, babel-core@^6.26.0: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + dependencies: + 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" + +babel-core@^7.0.0-0: + version "7.0.0-bridge.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" + +babel-generator@^6.18.0, babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + dependencies: + 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" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-jest@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.4.2.tgz#f276de67798a5d68f2d6e87ff518c2f6e1609877" + dependencies: + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-istanbul@^4.1.6: + version "4.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" + dependencies: + babel-plugin-syntax-object-rest-spread "^6.13.0" + find-up "^2.1.0" + istanbul-lib-instrument "^1.10.1" + test-exclude "^4.2.1" + +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" + +babel-plugin-syntax-object-rest-spread@^6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" + dependencies: + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + dependencies: + 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" + +babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + dependencies: + 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" + +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babelify@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/babelify/-/babelify-9.0.0.tgz#6b2e39ffeeda3765aee60eeb5b581fd947cc64ec" + +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + +base64-js@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + dependencies: + 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" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + dependencies: + tweetnacl "^0.14.3" + +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" + +bluebird@^3.3.3: + version "3.5.1" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + +bole@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bole/-/bole-2.0.0.tgz#d8aa1c690467bfb4fe11b874acb2e8387e382615" + dependencies: + core-util-is ">=1.0.1 <1.1.0-0" + individual ">=3.0.0 <3.1.0-0" + json-stringify-safe ">=5.0.0 <5.1.0-0" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + dependencies: + 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" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + +browser-pack@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.1.0.tgz#c34ba10d0b9ce162b5af227c7131c92c2ecd5774" + dependencies: + JSONStream "^1.0.3" + combine-source-map "~0.8.0" + defined "^1.0.0" + safe-buffer "^5.1.1" + through2 "^2.0.0" + umd "^3.0.0" + +browser-process-hrtime@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" + +browser-resolve@^1.11.0, browser-resolve@^1.11.3, browser-resolve@^1.7.0: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + dependencies: + resolve "1.1.7" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-css@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/browserify-css/-/browserify-css-0.14.0.tgz#5ece581aa6f8c9aab262956fd06d57c526c9a334" + dependencies: + clean-css "^4.1.5" + concat-stream "^1.6.0" + css "^2.2.1" + find-node-modules "^1.0.4" + lodash "^4.17.4" + mime "^1.3.6" + strip-css-comments "^3.0.0" + through2 "2.0.x" + +browserify-des@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + dependencies: + pako "~1.0.5" + +browserify@^16.1.0, browserify@^16.2.2: + version "16.2.2" + resolved "https://registry.yarnpkg.com/browserify/-/browserify-16.2.2.tgz#4b1f66ba0e54fa39dbc5aa4be9629142143d91b0" + dependencies: + JSONStream "^1.0.3" + assert "^1.4.0" + browser-pack "^6.0.1" + browser-resolve "^1.11.0" + browserify-zlib "~0.2.0" + buffer "^5.0.2" + cached-path-relative "^1.0.0" + concat-stream "^1.6.0" + console-browserify "^1.1.0" + constants-browserify "~1.0.0" + crypto-browserify "^3.0.0" + defined "^1.0.0" + deps-sort "^2.0.0" + domain-browser "^1.2.0" + duplexer2 "~0.1.2" + events "^2.0.0" + glob "^7.1.0" + has "^1.0.0" + htmlescape "^1.1.0" + https-browserify "^1.0.0" + inherits "~2.0.1" + insert-module-globals "^7.0.0" + labeled-stream-splicer "^2.0.0" + mkdirp "^0.5.0" + module-deps "^6.0.0" + os-browserify "~0.3.0" + parents "^1.0.1" + path-browserify "~0.0.0" + process "~0.11.0" + punycode "^1.3.2" + querystring-es3 "~0.2.0" + read-only-stream "^2.0.0" + readable-stream "^2.0.2" + resolve "^1.1.4" + shasum "^1.0.0" + shell-quote "^1.6.1" + stream-browserify "^2.0.0" + stream-http "^2.0.0" + string_decoder "^1.1.1" + subarg "^1.0.0" + syntax-error "^1.1.1" + through2 "^2.0.0" + timers-browserify "^1.0.1" + tty-browserify "0.0.1" + url "~0.11.0" + util "~0.10.1" + vm-browserify "^1.0.0" + xtend "^4.0.0" + +browserslist@^3.0.0: + version "3.2.8" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" + dependencies: + caniuse-lite "^1.0.30000844" + electron-to-chromium "^1.3.47" + +bser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" + dependencies: + node-int64 "^0.4.0" + +budo@^11.3.2: + version "11.3.2" + resolved "https://registry.yarnpkg.com/budo/-/budo-11.3.2.tgz#ab943492cadbb0abaf9126b4c8c94eac2440adae" + dependencies: + bole "^2.0.0" + browserify "^16.1.0" + chokidar "^1.0.1" + connect-pushstate "^1.1.0" + escape-html "^1.0.3" + events "^1.0.2" + garnish "^5.0.0" + get-ports "^1.0.2" + inject-lr-script "^2.1.0" + internal-ip "^3.0.1" + micromatch "^2.2.0" + on-finished "^2.3.0" + on-headers "^1.0.1" + once "^1.3.2" + opn "^3.0.2" + path-is-absolute "^1.0.1" + pem "^1.8.3" + reload-css "^1.0.0" + resolve "^1.1.6" + serve-static "^1.10.0" + simple-html-index "^1.4.0" + stacked "^1.1.1" + stdout-stream "^1.4.0" + strip-ansi "^3.0.0" + subarg "^1.0.0" + term-color "^1.0.1" + url-trim "^1.0.0" + watchify-middleware "^1.8.0" + ws "^1.1.1" + xtend "^4.0.0" + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + +buffer@^5.0.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.0.tgz#53cf98241100099e9eeae20ee6d51d21b16e541e" + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + dependencies: + 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" + +cached-path-relative@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + +caniuse-lite@^1.0.30000844: + version "1.0.30000878" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000878.tgz#c644c39588dd42d3498e952234c372e5a40a4123" + +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" + dependencies: + rsvp "^3.3.3" + +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" + dependencies: + 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" + +chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + 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" + +chalk@^2.0.0, chalk@^2.0.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +charenc@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" + +chokidar@^1.0.0, chokidar@^1.0.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +chownr@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" + +ci-info@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.4.0.tgz#4841d53cad49f11b827b648ebde27a6e189b412f" + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-css@^4.1.5: + version "4.2.1" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" + dependencies: + source-map "~0.6.0" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.2" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147" + dependencies: + color-name "1.1.1" + +color-name@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689" + +colors@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.2.tgz#2df8ff573dfbf255af562f8ce7181d6b971a359b" + +combine-source-map@^0.8.0, combine-source-map@~0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b" + dependencies: + convert-source-map "~1.1.0" + inline-source-map "~0.6.0" + lodash.memoize "~3.0.3" + source-map "~0.5.3" + +combined-stream@1.0.6, combined-stream@^1.0.5, combined-stream@~1.0.5, combined-stream@~1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" + dependencies: + delayed-stream "~1.0.0" + +commander@^2.17.1, commander@^2.9.0: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" + +compare-versions@^3.1.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.3.1.tgz#1ede3172b713c15f7c7beb98cb74d2d82576dad3" + +component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.5.0, concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@~1.6.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +connect-pushstate@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/connect-pushstate/-/connect-pushstate-1.1.0.tgz#bcab224271c439604a0fb0f614c0a5f563e88e24" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +constants-browserify@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" + +convert-source-map@~1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + +core-js@^2.4.0, core-js@^2.5.0: + version "2.5.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" + +core-util-is@1.0.2, "core-util-is@>=1.0.1 <1.1.0-0", core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +coveralls@^2.11.3: + version "2.13.3" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7" + dependencies: + js-yaml "3.6.1" + lcov-parse "0.0.10" + log-driver "1.2.5" + minimist "1.2.0" + request "2.79.0" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^6.0.0: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +crypt@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-browserify@^3.0.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +css@^2.2.1: + version "2.2.3" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.3.tgz#f861f4ba61e79bedc962aa548e5780fd95cbc6be" + dependencies: + inherits "^2.0.1" + source-map "^0.1.38" + source-map-resolve "^0.5.1" + urix "^0.1.0" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" + +cssstyle@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" + dependencies: + cssom "0.3.x" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.1.tgz#d416ac3896918f29ca84d81085bc3705834da579" + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.1.0" + whatwg-url "^7.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + +debounce@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + dependencies: + ms "2.0.0" + +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +default-gateway@^2.6.0: + version "2.7.2" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-2.7.2.tgz#b7ef339e5e024b045467af403d50348db4642d0f" + dependencies: + execa "^0.10.0" + ip-regex "^2.1.0" + +default-require-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" + dependencies: + strip-bom "^3.0.0" + +define-properties@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +defined@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + +deps-sort@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5" + dependencies: + JSONStream "^1.0.3" + shasum "^1.0.0" + subarg "^1.0.0" + through2 "^2.0.0" + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + +detect-file@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63" + dependencies: + fs-exists-sync "^0.1.0" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + +detective@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/detective/-/detective-5.1.0.tgz#7a20d89236d7b331ccea65832e7123b5551bb7cb" + dependencies: + acorn-node "^1.3.0" + defined "^1.0.0" + minimist "^1.1.1" + +diff@^3.2.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +domain-browser@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + dependencies: + webidl-conversions "^4.0.2" + +duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" + dependencies: + readable-stream "^2.0.2" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + +electron-to-chromium@^1.3.47: + version "1.3.61" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.61.tgz#a8ac295b28d0f03d85e37326fd16b6b6b17a1795" + +elliptic@^6.0.0: + version "6.4.1" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.1.tgz#c2d0b7776911b86722c632c3c06c60f2f819939a" + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + dependencies: + iconv-lite "~0.4.13" + +error-ex@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.5.1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" + dependencies: + es-to-primitive "^1.1.1" + function-bind "^1.1.1" + has "^1.0.1" + is-callable "^1.1.3" + is-regex "^1.0.4" + +es-to-primitive@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" + dependencies: + is-callable "^1.1.1" + is-date-object "^1.0.1" + is-symbol "^1.0.1" + +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + +escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escodegen@^1.9.1: + version "1.11.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +esprima@^2.6.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + +estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + +esutils@^2.0.0, esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + +events@^1.0.2: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + +events@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/events/-/events-2.1.0.tgz#2a9a1e18e6106e0e812aa9ebd4a819b3c29c0ba5" + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +exec-sh@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" + dependencies: + merge "^1.2.0" + +execa@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" + dependencies: + cross-spawn "^6.0.0" + 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" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + dependencies: + 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" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + dependencies: + 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" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +expand-tilde@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449" + dependencies: + os-homedir "^1.0.1" + +expect@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.5.0.tgz#18999a0eef8f8acf99023fde766d9c323c2562ed" + dependencies: + ansi-styles "^3.2.0" + jest-diff "^23.5.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + dependencies: + 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" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + +fast-deep-equal@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + dependencies: + bser "^2.0.0" + +fbjs@^0.8.16: + version "0.8.17" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + +filename-regex@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" + +fileset@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.4" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^3.0.0" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +find-node-modules@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-1.0.4.tgz#b6deb3cccb699c87037677bcede2c5f5862b2550" + dependencies: + findup-sync "0.4.2" + merge "^1.2.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + dependencies: + locate-path "^2.0.0" + +findup-sync@0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.2.tgz#a8117d0f73124f5a4546839579fe52d7129fb5e5" + dependencies: + detect-file "^0.1.0" + is-glob "^2.0.1" + micromatch "^2.3.7" + resolve-dir "^0.1.0" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +form-data@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" + dependencies: + asynckit "^0.4.0" + combined-stream "1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + +from2-string@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/from2-string/-/from2-string-1.1.0.tgz#18282b27d08a267cb3030cd2b8b4b0f212af752a" + dependencies: + from2 "^2.0.3" + +from2@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-exists-sync@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" + +fs-minipass@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d" + dependencies: + minipass "^2.2.1" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fsevents@^1.0.0, fsevents@^1.2.3: + version "1.2.4" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" + dependencies: + nan "^2.9.2" + node-pre-gyp "^0.10.0" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + +garnish@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/garnish/-/garnish-5.2.0.tgz#bed43659382e4b198e33c793897be7c701e65577" + dependencies: + chalk "^0.5.1" + minimist "^1.1.0" + pad-left "^2.0.0" + pad-right "^0.2.2" + prettier-bytes "^1.0.3" + pretty-ms "^2.1.0" + right-now "^1.0.0" + split2 "^0.2.1" + stdout-stream "^1.4.0" + url-trim "^1.0.0" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + 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" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-assigned-identifiers@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1" + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + +get-ports@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-ports/-/get-ports-1.0.3.tgz#f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8" + dependencies: + map-limit "0.0.1" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^7.0.3, glob@^7.0.5, glob@^7.1.0, glob@^7.1.1, glob@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + 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" + +global-modules@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" + dependencies: + global-prefix "^0.1.4" + is-windows "^0.2.0" + +global-prefix@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f" + dependencies: + homedir-polyfill "^1.0.0" + ini "^1.3.4" + is-windows "^0.2.0" + which "^1.2.12" + +globals@^11.1.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" + +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + +handlebars@^4.0.3: + version "4.0.11" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + dependencies: + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" + +har-validator@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.0.tgz#44657f5688a22cfd4b72486e81b3a3fb11742c29" + dependencies: + ajv "^5.3.0" + har-schema "^2.0.0" + +has-ansi@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e" + dependencies: + ansi-regex "^0.2.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.0, has@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.5" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.5.tgz#e38ab4b85dfb1e0c40fe9265c0e9b54854c23812" + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +homedir-polyfill@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + dependencies: + parse-passwd "^1.0.0" + +hosted-git-info@^2.1.4: + version "2.7.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + dependencies: + whatwg-encoding "^1.0.1" + +htmlescape@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351" + +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + +iconv-lite@0.4.23: + version "0.4.23" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.23.tgz#297871f63be507adcfbfca715d0cd0eed84e9a63" + dependencies: + safer-buffer ">= 2.1.2 < 3" + +iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.1.12" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b" + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + dependencies: + minimatch "^3.0.4" + +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" + dependencies: + pkg-dir "^2.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +"individual@>=3.0.0 <3.1.0-0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/individual/-/individual-3.0.0.tgz#e7ca4f85f8957b018734f285750dc22ec2f9862d" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + +ini@^1.3.4, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + +inject-lr-script@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/inject-lr-script/-/inject-lr-script-2.1.0.tgz#e61b5e84c118733906cbea01ec3d746698a39f65" + dependencies: + resp-modifier "^6.0.0" + +inline-source-map@~0.6.0: + version "0.6.2" + resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5" + dependencies: + source-map "~0.5.3" + +insert-module-globals@^7.0.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.0.tgz#ec87e5b42728479e327bd5c5c71611ddfb4752ba" + dependencies: + JSONStream "^1.0.3" + acorn-node "^1.5.2" + combine-source-map "^0.8.0" + concat-stream "^1.6.1" + is-buffer "^1.1.0" + path-is-absolute "^1.0.1" + process "~0.11.0" + through2 "^2.0.0" + undeclared-identifiers "^1.1.2" + xtend "^4.0.0" + +internal-ip@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-3.0.1.tgz#df5c99876e1d2eb2ea2d74f520e3f669a00ece27" + dependencies: + default-gateway "^2.6.0" + ipaddr.js "^1.5.2" + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +ip-regex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" + +ipaddr.js@^1.5.2: + version "1.8.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.1.tgz#fa4b79fa47fd3def5e3b159825161c0a519c9427" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.1.0, is-buffer@^1.1.5, is-buffer@~1.1.1: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-callable@^1.1.1, is-callable@^1.1.3: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + +is-ci@^1.0.10: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.0.tgz#3f4a08d6303a09882cef3f0fb97439c5f5ce2d53" + dependencies: + ci-info "^1.3.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-dotfile@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0, is-finite@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-my-ip-valid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz#7b351b8e8edd4d3995d4d066680e664d94696824" + +is-my-json-valid@^2.12.4: + version "2.19.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz#8fd6e40363cd06b963fa877d444bfb5eddc62175" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + is-my-ip-valid "^1.0.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + dependencies: + kind-of "^3.0.2" + +is-number@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + dependencies: + isobject "^3.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + dependencies: + has "^1.0.1" + +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + +is-stream@^1.0.1, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-symbol@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +is-windows@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isarray@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +istanbul-api@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" + dependencies: + async "^2.1.4" + compare-versions "^3.1.0" + fileset "^2.0.2" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-hook "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-report "^1.1.4" + istanbul-lib-source-maps "^1.2.4" + istanbul-reports "^1.3.0" + js-yaml "^3.7.0" + mkdirp "^0.5.1" + once "^1.4.0" + +istanbul-lib-coverage@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" + +istanbul-lib-hook@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.2.1.tgz#f614ec45287b2a8fc4f07f5660af787575601805" + dependencies: + append-transform "^1.0.0" + +istanbul-lib-instrument@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.18.0" + istanbul-lib-coverage "^1.2.0" + semver "^5.3.0" + +istanbul-lib-report@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz#e886cdf505c4ebbd8e099e4396a90d0a28e2acb5" + dependencies: + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + path-parse "^1.0.5" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.2.4: + version "1.2.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.5.tgz#ffe6be4e7ab86d3603e4290d54990b14506fc9b1" + dependencies: + debug "^3.1.0" + istanbul-lib-coverage "^1.2.0" + mkdirp "^0.5.1" + rimraf "^2.6.1" + source-map "^0.5.3" + +istanbul-reports@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.3.0.tgz#2f322e81e1d9520767597dca3c20a0cce89a3554" + dependencies: + handlebars "^4.0.3" + +jest-changed-files@^23.4.2: + version "23.4.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.4.2.tgz#1eed688370cd5eebafe4ae93d34bb3b64968fe83" + dependencies: + throat "^4.0.0" + +jest-cli@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.5.0.tgz#d316b8e34a38a610a1efc4f0403d8ef8a55e4492" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.1.11" + import-local "^1.0.0" + is-ci "^1.0.10" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.4.2" + jest-config "^23.5.0" + jest-environment-jsdom "^23.4.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.5.0" + jest-runner "^23.5.0" + jest-runtime "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + jest-watcher "^23.4.0" + jest-worker "^23.2.0" + micromatch "^2.3.11" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" + slash "^1.0.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" + which "^1.2.12" + yargs "^11.0.0" + +jest-config@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.5.0.tgz#3770fba03f7507ee15f3b8867c742e48f31a9773" + dependencies: + babel-core "^6.0.0" + babel-jest "^23.4.2" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^23.4.0" + jest-environment-node "^23.4.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.5.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + pretty-format "^23.5.0" + +jest-diff@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.5.0.tgz#250651a433dd0050290a07642946cc9baaf06fba" + dependencies: + chalk "^2.0.1" + diff "^3.2.0" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" + dependencies: + detect-newline "^2.1.0" + +jest-each@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.5.0.tgz#77f7e2afe6132a80954b920006e78239862b10ba" + dependencies: + chalk "^2.0.1" + pretty-format "^23.5.0" + +jest-environment-jsdom@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.4.0.tgz#056a7952b3fea513ac62a140a2c368c79d9e6023" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + jsdom "^11.5.1" + +jest-environment-node@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.4.0.tgz#57e80ed0841dea303167cce8cd79521debafde10" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.4.0" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" + +jest-haste-map@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.5.0.tgz#d4ca618188bd38caa6cb20349ce6610e194a8065" + dependencies: + fb-watchman "^2.0.0" + graceful-fs "^4.1.11" + invariant "^2.2.4" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" + micromatch "^2.3.11" + sane "^2.0.0" + +jest-jasmine2@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.5.0.tgz#05fe7f1788e650eeb5a03929e6461ea2e9f3db53" + dependencies: + babel-traverse "^6.0.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.5.0" + is-generator-fn "^1.0.0" + jest-diff "^23.5.0" + jest-each "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + pretty-format "^23.5.0" + +jest-junit@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-5.1.0.tgz#e8e497d810a829bf02783125aab74b5df6caa8fe" + dependencies: + jest-validate "^23.0.1" + mkdirp "^0.5.1" + strip-ansi "^4.0.0" + xml "^1.0.1" + +jest-leak-detector@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.5.0.tgz#14ac2a785bd625160a2ea968fd5d98b7dcea3e64" + dependencies: + pretty-format "^23.5.0" + +jest-matcher-utils@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.5.0.tgz#0e2ea67744cab78c9ab15011c4d888bdd3e49e2a" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.5.0" + +jest-message-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.4.0.tgz#17610c50942349508d01a3d1e0bda2c079086a9f" + dependencies: + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" + micromatch "^2.3.11" + slash "^1.0.0" + stack-utils "^1.0.1" + +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" + +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" + +jest-resolve-dependencies@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.5.0.tgz#10c4d135beb9d2256de1fedc7094916c3ad74af7" + dependencies: + jest-regex-util "^23.3.0" + jest-snapshot "^23.5.0" + +jest-resolve@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.5.0.tgz#3b8e7f67e84598f0caf63d1530bd8534a189d0e6" + dependencies: + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" + +jest-runner@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.5.0.tgz#570f7a044da91648b5bb9b6baacdd511076c71d7" + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.5.0" + jest-jasmine2 "^23.5.0" + jest-leak-detector "^23.5.0" + jest-message-util "^23.4.0" + jest-runtime "^23.5.0" + jest-util "^23.4.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.5.0.tgz#eb503525a196dc32f2f9974e3482d26bdf7b63ce" + dependencies: + babel-core "^6.0.0" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" + convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.11" + jest-config "^23.5.0" + jest-haste-map "^23.5.0" + jest-message-util "^23.4.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.5.0" + jest-snapshot "^23.5.0" + jest-util "^23.4.0" + jest-validate "^23.5.0" + micromatch "^2.3.11" + realpath-native "^1.0.0" + slash "^1.0.0" + strip-bom "3.0.0" + write-file-atomic "^2.1.0" + yargs "^11.0.0" + +jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" + +jest-snapshot@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.5.0.tgz#cc368ebd8513e1175e2a7277f37a801b7358ae79" + dependencies: + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.5.0" + jest-matcher-utils "^23.5.0" + jest-message-util "^23.4.0" + jest-resolve "^23.5.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^23.5.0" + semver "^5.5.0" + +jest-util@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" + dependencies: + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.4.0" + mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" + +jest-validate@^23.0.1, jest-validate@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.5.0.tgz#f5df8f761cf43155e1b2e21d6e9de8a2852d0231" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.5.0" + +jest-watcher@^23.4.0: + version "23.4.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.4.0.tgz#d2e28ce74f8dad6c6afc922b92cabef6ed05c91c" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + dependencies: + merge-stream "^1.0.1" + +jest@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.5.0.tgz#80de353d156ea5ea4a7332f7962ac79135fbc62e" + dependencies: + import-local "^1.0.0" + jest-cli "^23.5.0" + +js-levenshtein@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.3.tgz#3ef627df48ec8cf24bacf05c0f184ff30ef413c5" + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + +js-yaml@3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +js-yaml@^3.7.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +jsesc@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + +json-schema-traverse@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz#611c23e814db375527df851193db59dd2af27f45" + dependencies: + jsonify "~0.0.0" + +"json-stringify-safe@>=5.0.0 <5.1.0-0", json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json5@^0.5.0, json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonparse@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + +kleur@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-2.0.1.tgz#7cc64b0d188d0dcbc98bdcdfdda2cc10619ddce8" + +labeled-stream-splicer@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz#9cffa32fd99e1612fd1d86a8db962416d5292926" + dependencies: + inherits "^2.0.1" + isarray "^2.0.4" + stream-splicer "^2.0.0" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +lcov-parse@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +lodash.memoize@~3.0.3: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f" + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + +lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4: + version "4.17.10" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" + +log-driver@1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +lru-cache@^4.0.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c" + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + dependencies: + tmpl "1.0.x" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + +map-limit@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/map-limit/-/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38" + dependencies: + once "~1.3.0" + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + dependencies: + object-visit "^1.0.0" + +math-random@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" + +md5.js@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +md5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" + dependencies: + charenc "~0.0.1" + crypt "~0.0.1" + is-buffer "~1.1.1" + +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + dependencies: + mimic-fn "^1.0.0" + +merge-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" + dependencies: + readable-stream "^2.0.1" + +merge@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" + +micromatch@^2.1.5, micromatch@^2.2.0, micromatch@^2.3.11, micromatch@^2.3.7: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + 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" + +micromatch@^3.1.4, micromatch@^3.1.8: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + dependencies: + 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" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@~1.35.0: + version "1.35.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47" + +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.7: + version "2.1.19" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0" + dependencies: + mime-db "~1.35.0" + +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" + +mime@^1.3.6: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + +minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + +minipass@^2.2.1, minipass@^2.3.3: + version "2.3.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957" + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb" + dependencies: + minipass "^2.2.1" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +module-deps@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.1.0.tgz#d1e1efc481c6886269f7112c52c3236188e16479" + dependencies: + JSONStream "^1.0.3" + browser-resolve "^1.7.0" + cached-path-relative "^1.0.0" + concat-stream "~1.6.0" + defined "^1.0.0" + detective "^5.0.2" + duplexer2 "^0.1.2" + inherits "^2.0.1" + parents "^1.0.0" + readable-stream "^2.0.2" + resolve "^1.4.0" + stream-combiner2 "^1.1.1" + subarg "^1.0.0" + through2 "^2.0.0" + xtend "^4.0.0" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + +nan@^2.9.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + dependencies: + 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" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +needle@^2.2.1: + version "2.2.2" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418" + dependencies: + debug "^2.1.2" + iconv-lite "^0.4.4" + sax "^1.2.4" + +nice-try@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + +node-mkdirs@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/node-mkdirs/-/node-mkdirs-0.0.1.tgz#b20f50ba796a4f543c04a69942d06d06f8aaf552" + +node-notifier@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" + dependencies: + growly "^1.3.0" + semver "^5.4.1" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc" + dependencies: + 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@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" + dependencies: + 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@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +npm-bundled@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979" + +npm-packlist@^1.1.6: + version "1.1.11" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de" + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + dependencies: + 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@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +nwsapi@^2.0.7: + version "2.0.8" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.8.tgz#e3603579b7e162b3dbedae4fb24e46f771d8fa24" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-keys@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + dependencies: + isobject "^3.0.0" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + dependencies: + isobject "^3.0.1" + +on-finished@^2.3.0, on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + dependencies: + ee-first "1.1.1" + +on-headers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + +once@^1.3.0, once@^1.3.2, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +once@~1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + dependencies: + wrappy "1" + +opn@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/opn/-/opn-3.0.3.tgz#b6d99e7399f78d65c3baaffef1fb288e9b85243a" + dependencies: + object-assign "^4.0.1" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +options@>=0.0.5: + version "0.0.6" + resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" + +os-browserify@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +outpipe@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/outpipe/-/outpipe-1.1.1.tgz#50cf8616365e87e031e29a5ec9339a3da4725fa2" + dependencies: + shell-quote "^1.4.2" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + dependencies: + p-try "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + dependencies: + p-limit "^1.1.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + +pad-left@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pad-left/-/pad-left-2.1.0.tgz#16e6a3b2d44a8e138cb0838cc7cb403a4fc9e994" + dependencies: + repeat-string "^1.5.4" + +pad-right@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774" + dependencies: + repeat-string "^1.5.2" + +pako@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258" + +parents@^1.0.0, parents@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751" + dependencies: + path-platform "~0.11.15" + +parse-asn1@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.1.tgz#f6bf293818332bd0dab54efb16087724745e6ca8" + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +parse-ms@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + +parseurl@~1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + +path-browserify@~0.0.0: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + +path-parse@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + +path-platform@~0.11.15: + version "0.11.15" + resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +pbkdf2@^3.0.3: + version "3.0.16" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c" + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +pem@^1.8.3: + version "1.12.5" + resolved "https://registry.yarnpkg.com/pem/-/pem-1.12.5.tgz#97bf2e459537c54e0ee5b0aa11b5ca18d6b5fef2" + dependencies: + md5 "^2.2.1" + os-tmpdir "^1.0.1" + safe-buffer "^5.1.1" + which "^1.2.4" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + dependencies: + find-up "^2.1.0" + +plur@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + +pom-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pom-parser/-/pom-parser-1.1.1.tgz#6fab4d2498e87c862072ab205aa88b1209e5f966" + dependencies: + bluebird "^3.3.3" + coveralls "^2.11.3" + traverse "^0.6.6" + xml2js "^0.4.9" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +prettier-bytes@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prettier-bytes/-/prettier-bytes-1.0.4.tgz#994b02aa46f699c50b6257b5faaa7fe2557e62d6" + +pretty-format@^23.5.0: + version "23.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.5.0.tgz#0f9601ad9da70fe690a269cd3efca732c210687c" + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +pretty-ms@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-2.1.0.tgz#4257c256df3fb0b451d6affaab021884126981dc" + dependencies: + is-finite "^1.0.1" + parse-ms "^1.0.0" + plur "^1.0.0" + +private@^0.1.6, private@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + +process@~0.11.0: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + dependencies: + asap "~2.0.3" + +prompts@^0.1.9: + version "0.1.14" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.14.tgz#a8e15c612c5c9ec8f8111847df3337c9cbd443b2" + dependencies: + kleur "^2.0.1" + sisteransi "^0.1.1" + +prop-types@^15.6.0: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +psl@^1.1.24: + version "1.1.29" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" + +public-encrypt@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + +punycode@^1.3.2, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + +qs@~6.3.0: + version "6.3.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + +query-string@^4.2.3: + version "4.3.4" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" + dependencies: + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + +querystring-es3@~0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + +randomatic@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116" + dependencies: + is-number "^4.0.0" + kind-of "^6.0.0" + math-random "^1.0.1" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80" + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +react-dom@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.2.tgz#4afed569689f2c561d2b8da0b819669c38a0bda4" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +react@^16.4.2: + version "16.4.2" + resolved "https://registry.yarnpkg.com/react/-/react-16.4.2.tgz#2cd90154e3a9d9dd8da2991149fdca3c260e129f" + dependencies: + fbjs "^0.8.16" + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.0" + +read-only-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0" + dependencies: + readable-stream "^2.0.2" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +"readable-stream@>=1.0.33-1 <1.1.0-0": + version "1.0.34" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + dependencies: + 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" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +realpath-native@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.1.tgz#07f40a0cce8f8261e2e8b7ebebf5c95965d7b633" + dependencies: + util.promisify "^1.0.0" + +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + dependencies: + regenerate "^1.4.0" + +regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + +regenerator-transform@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.13.3.tgz#264bd9ff38a8ce24b06e0636496b2c856b57bcbb" + dependencies: + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" + dependencies: + is-equal-shallow "^0.1.3" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexpu-core@^4.1.3, regexpu-core@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.4.0" + regjsparser "^0.3.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" + +regjsgen@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.4.0.tgz#c1eb4c89a209263f8717c782591523913ede2561" + +regjsparser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.3.0.tgz#3c326da7fcfd69fa0d332575a41c8c0cdf588c96" + dependencies: + jsesc "~0.5.0" + +reload-css@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reload-css/-/reload-css-1.0.2.tgz#6afb11162e2314feccdad6dc5fde821fd7318331" + dependencies: + query-string "^4.2.3" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request-promise-core@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" + dependencies: + lodash "^4.13.1" + +request-promise-native@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" + dependencies: + request-promise-core "1.1.1" + stealthy-require "^1.1.0" + tough-cookie ">=2.3.3" + +request@2.79.0: + version "2.79.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + qs "~6.3.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + uuid "^3.0.0" + +request@^2.87.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + dependencies: + 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" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + dependencies: + resolve-from "^3.0.0" + +resolve-dir@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e" + dependencies: + expand-tilde "^1.2.2" + global-modules "^0.2.3" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + +resolve@^1.1.4, resolve@^1.1.6, resolve@^1.3.2, resolve@^1.4.0: + version "1.8.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" + dependencies: + path-parse "^1.0.5" + +resp-modifier@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +right-now@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" + +rimraf@^2.5.4, rimraf@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + dependencies: + glob "^7.0.5" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" + dependencies: + anymatch "^2.0.0" + capture-exit "^1.2.0" + exec-sh "^0.2.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" + +sax@>=0.6.0, sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: + version "5.5.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477" + +send@0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" + dependencies: + 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" + +serve-static@^1.10.0: + version "1.13.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.2" + send "0.16.2" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + +sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shasum@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f" + dependencies: + json-stable-stringify "~0.0.0" + sha.js "~2.4.4" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shell-quote@^1.4.2, shell-quote@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767" + dependencies: + array-filter "~0.0.0" + array-map "~0.0.0" + array-reduce "~0.0.0" + jsonify "~0.0.0" + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +simple-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" + +simple-html-index@^1.4.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/simple-html-index/-/simple-html-index-1.5.0.tgz#2c93eeaebac001d8a135fc0022bd4ade8f58996f" + dependencies: + from2-string "^1.1.0" + +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + dependencies: + 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" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map-resolve@^0.5.0, source-map-resolve@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + dependencies: + 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@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + dependencies: + source-map "^0.5.6" + +source-map-support@^0.5.6: + version "0.5.9" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + +source-map@^0.1.38: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1, source-map@~0.5.3: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + +source-map@^0.6.0, source-map@~0.6.0, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + +spdx-correct@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9" + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87" + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + dependencies: + extend-shallow "^3.0.0" + +split2@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-0.2.1.tgz#02ddac9adc03ec0bb78c1282ec079ca6e85ae900" + dependencies: + through2 "~0.6.1" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.2.tgz#c6fc61648a3d9c4e764fd3fcdf4ea105e492ba98" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + safer-buffer "^2.0.2" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stack-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" + +stacked@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stacked/-/stacked-1.1.1.tgz#2c7fa38cc7e37a3411a77cd8e792de448f9f6975" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + +statuses@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + +stdout-stream@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" + dependencies: + readable-stream "^2.0.1" + +stealthy-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + +stream-browserify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-combiner2@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe" + dependencies: + duplexer2 "~0.1.0" + readable-stream "^2.0.2" + +stream-http@^2.0.0: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-splicer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.0.tgz#1b63be438a133e4b671cc1935197600175910d83" + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.2" + +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string_decoder@^1.1.1, string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + dependencies: + safe-buffer "~5.1.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +stringstream@~0.0.4: + version "0.0.6" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.6.tgz#7880225b0d4ad10e30927d167a1d6f2fd3b33a72" + +strip-ansi@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220" + dependencies: + ansi-regex "^0.2.1" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + dependencies: + ansi-regex "^3.0.0" + +strip-bom@3.0.0, strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-css-comments@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-css-comments/-/strip-css-comments-3.0.0.tgz#7a5625eff8a2b226cf8947a11254da96e13dae89" + dependencies: + is-regexp "^1.0.0" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +subarg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" + dependencies: + minimist "^1.1.0" + +supports-color@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-1.3.1.tgz#15758df09d8ff3b4acc307539fabe27095e1042d" + +supports-color@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^3.1.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + dependencies: + has-flag "^1.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + dependencies: + has-flag "^3.0.0" + +symbol-tree@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + +syntax-error@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" + dependencies: + acorn-node "^1.2.0" + +tar@^4: + version "4.4.6" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b" + dependencies: + chownr "^1.0.1" + fs-minipass "^1.2.5" + minipass "^2.3.3" + minizlib "^1.1.0" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.2" + +term-color@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/term-color/-/term-color-1.0.1.tgz#38e192553a473e35e41604ff5199846bf8117a3a" + dependencies: + ansi-styles "2.0.1" + supports-color "1.3.1" + +test-exclude@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa" + dependencies: + arrify "^1.0.1" + micromatch "^3.1.8" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + +through2@2.0.x, through2@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" + dependencies: + readable-stream "^2.1.5" + xtend "~4.0.1" + +through2@~0.6.1: + version "0.6.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" + dependencies: + readable-stream ">=1.0.33-1 <1.1.0-0" + xtend ">=4.0.0 <4.1.0-0" + +"through@>=2.2.7 <3": + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timers-browserify@^1.0.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d" + dependencies: + process "~0.11.0" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + +tough-cookie@~2.3.0: + version "2.3.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655" + dependencies: + punycode "^1.4.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + dependencies: + punycode "^2.1.0" + +traverse@^0.6.6: + version "0.6.6" + resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tty-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +ua-parser-js@^0.7.18: + version "0.7.18" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" + +uglify-js@^2.6: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +ultron@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" + +umd@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf" + +undeclared-identifiers@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz#7d850a98887cff4bd0bf64999c014d08ed6d1acc" + dependencies: + acorn-node "^1.3.0" + get-assigned-identifiers "^1.2.0" + simple-concat "^1.0.0" + xtend "^4.0.1" + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + +url-trim@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-trim/-/url-trim-1.0.0.tgz#40057e2f164b88e5daca7269da47e6d1dd837adc" + +url@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + dependencies: + inherits "2.0.1" + +util@~0.10.1: + version "0.10.4" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" + dependencies: + inherits "2.0.3" + +uuid@^3.0.0, uuid@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vm-browserify@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" + +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + dependencies: + browser-process-hrtime "^0.1.2" + +walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + dependencies: + makeerror "1.0.x" + +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" + +watchify-middleware@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/watchify-middleware/-/watchify-middleware-1.8.0.tgz#8f7cb9c528022be8525a7e066c10e2fd8c544be6" + dependencies: + concat-stream "^1.5.0" + debounce "^1.0.0" + events "^1.0.2" + object-assign "^4.0.1" + strip-ansi "^3.0.0" + watchify "^3.3.1" + +watchify@^3.3.1: + version "3.11.0" + resolved "https://registry.yarnpkg.com/watchify/-/watchify-3.11.0.tgz#03f1355c643955e7ab8dcbf399f624644221330f" + dependencies: + anymatch "^1.3.0" + browserify "^16.1.0" + chokidar "^1.0.0" + defined "^1.0.0" + outpipe "^1.1.0" + through2 "^2.0.0" + xtend "^4.0.0" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.4.tgz#63fb016b7435b795d9025632c086a5209dbd2621" + dependencies: + iconv-lite "0.4.23" + +whatwg-fetch@>=0.10.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" + +whatwg-mimetype@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz#f0f21d76cbba72362eb609dbed2a30cd17fcc7d4" + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + +which@^1.2.12, which@^1.2.4, which@^1.2.9, which@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + dependencies: + string-width "^1.0.2 || 2" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write-file-atomic@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +ws@^1.1.1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.5.tgz#cbd9e6e75e09fc5d2c90015f21f0c40875e0dd51" + dependencies: + options ">=0.0.5" + ultron "1.0.x" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + +xml2js@^0.4.9: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" + +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" + +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" + dependencies: + camelcase "^4.1.0" + +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + dependencies: + cliui "^4.0.0" + decamelize "^1.1.1" + find-up "^2.1.0" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^9.0.2" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" diff --git a/scm-ui/public/index.html b/scm-ui/public/index.html index e737e4ffe9..8a6237c9b9 100644 --- a/scm-ui/public/index.html +++ b/scm-ui/public/index.html @@ -39,6 +39,8 @@ --> - + + + From ab8f166b1d8351c2c2436bceefc006408a988430 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 12:39:58 +0200 Subject: [PATCH 082/143] added rest interface to expose plugin bundles --- .../scm/api/v2/resources/UIPluginDto.java | 25 ++++++++++ .../scm/api/v2/resources/UIRootResource.java | 46 +++++++++++++++++++ .../java/sonia/scm/filter/SecurityFilter.java | 3 +- 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDto.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDto.java new file mode 100644 index 0000000000..dfed9a3612 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDto.java @@ -0,0 +1,25 @@ +package sonia.scm.api.v2.resources; + +import de.otto.edison.hal.HalRepresentation; +import de.otto.edison.hal.Links; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +@Getter @Setter @NoArgsConstructor +public class UIPluginDto extends HalRepresentation { + + private String name; + private Iterable bundles; + + public UIPluginDto(String name, Iterable bundles) { + this.name = name; + this.bundles = bundles; + } + + @Override + protected HalRepresentation add(Links links) { + return super.add(links); + } + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java new file mode 100644 index 0000000000..36c4f85c25 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java @@ -0,0 +1,46 @@ +package sonia.scm.api.v2.resources; + +import sonia.scm.plugin.PluginLoader; +import sonia.scm.plugin.PluginWrapper; + +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import java.util.List; +import java.util.stream.Collectors; + +@Path("v2/ui") +public class UIRootResource { + + private final PluginLoader pluginLoader; + + @Inject + public UIRootResource(PluginLoader pluginLoader) { + this.pluginLoader = pluginLoader; + } + + @GET + @Path("plugins") + @Produces(MediaType.APPLICATION_JSON) + public List getInstalledPlugins() { + return pluginLoader.getInstalledPlugins() + .stream() + .filter(this::filter) + .map(this::map) + .collect(Collectors.toList()); + } + + private boolean filter(PluginWrapper plugin) { + return plugin.getPlugin().getResources() != null; + } + + private UIPluginDto map(PluginWrapper plugin) { + return new UIPluginDto( + plugin.getPlugin().getInformation().getName(), + plugin.getPlugin().getResources().getScriptResources() + ); + } + +} diff --git a/scm-webapp/src/main/java/sonia/scm/filter/SecurityFilter.java b/scm-webapp/src/main/java/sonia/scm/filter/SecurityFilter.java index 01967afd00..0d59d77027 100644 --- a/scm-webapp/src/main/java/sonia/scm/filter/SecurityFilter.java +++ b/scm-webapp/src/main/java/sonia/scm/filter/SecurityFilter.java @@ -62,7 +62,8 @@ import javax.servlet.http.HttpServletResponse; * @author Sebastian Sdorra */ @Priority(Filters.PRIORITY_AUTHORIZATION) -@WebElement(value = Filters.PATTERN_RESTAPI, morePatterns = { Filters.PATTERN_DEBUG }) +// TODO find a better way for unprotected resources +@WebElement(value = "/api/rest/(?!v2/ui).*", regex = true) public class SecurityFilter extends HttpFilter { From 4f775fe7caea1787883efe32c1ecf4e2784a381c Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 24 Aug 2018 12:43:10 +0200 Subject: [PATCH 083/143] implemented PluginLoader --- scm-plugins/scm-git-plugin/package.json | 2 +- scm-plugins/scm-hg-plugin/package.json | 2 +- scm-plugins/scm-svn-plugin/package.json | 2 +- scm-ui/package.json | 2 +- scm-ui/public/index.html | 3 - scm-ui/src/components/Loading.js | 4 +- scm-ui/src/components/PluginLoader.js | 93 +++++++++++++++++++++++++ scm-ui/src/index.js | 5 +- 8 files changed, 104 insertions(+), 9 deletions(-) create mode 100644 scm-ui/src/components/PluginLoader.js diff --git a/scm-plugins/scm-git-plugin/package.json b/scm-plugins/scm-git-plugin/package.json index a01cefe503..c679f259c8 100644 --- a/scm-plugins/scm-git-plugin/package.json +++ b/scm-plugins/scm-git-plugin/package.json @@ -5,7 +5,7 @@ "build": "ui-bundler plugin" }, "dependencies": { - "@scm-manager/ui-extensions": "^0.0.5" + "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { "@scm-manager/ui-bundler": "^0.0.3" diff --git a/scm-plugins/scm-hg-plugin/package.json b/scm-plugins/scm-hg-plugin/package.json index 3f08153700..ff7e9ab6b3 100644 --- a/scm-plugins/scm-hg-plugin/package.json +++ b/scm-plugins/scm-hg-plugin/package.json @@ -5,7 +5,7 @@ "build": "ui-bundler plugin" }, "dependencies": { - "@scm-manager/ui-extensions": "^0.0.5" + "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { "@scm-manager/ui-bundler": "^0.0.3" diff --git a/scm-plugins/scm-svn-plugin/package.json b/scm-plugins/scm-svn-plugin/package.json index fa91fc4969..195897cbbe 100644 --- a/scm-plugins/scm-svn-plugin/package.json +++ b/scm-plugins/scm-svn-plugin/package.json @@ -5,7 +5,7 @@ "build": "ui-bundler plugin" }, "dependencies": { - "@scm-manager/ui-extensions": "^0.0.5" + "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { "@scm-manager/ui-bundler": "^0.0.3" diff --git a/scm-ui/package.json b/scm-ui/package.json index 49c83aee38..267e2926ce 100644 --- a/scm-ui/package.json +++ b/scm-ui/package.json @@ -5,7 +5,7 @@ "private": true, "main": "src/index.js", "dependencies": { - "@scm-manager/ui-extensions": "^0.0.5", + "@scm-manager/ui-extensions": "^0.0.6", "bulma": "^0.7.1", "classnames": "^2.2.5", "font-awesome": "^4.7.0", diff --git a/scm-ui/public/index.html b/scm-ui/public/index.html index 8a6237c9b9..c76e55cac3 100644 --- a/scm-ui/public/index.html +++ b/scm-ui/public/index.html @@ -39,8 +39,5 @@ --> - - - diff --git a/scm-ui/src/components/Loading.js b/scm-ui/src/components/Loading.js index 0cf0d16fbe..f76e1be05b 100644 --- a/scm-ui/src/components/Loading.js +++ b/scm-ui/src/components/Loading.js @@ -25,12 +25,13 @@ const styles = { type Props = { t: string => string, + message?: string, classes: any }; class Loading extends React.Component { render() { - const { t, classes } = this.props; + const { message, t, classes } = this.props; return (
@@ -39,6 +40,7 @@ class Loading extends React.Component { src="/images/loading.svg" alt={t("loading.alt")} /> +

{message}

); diff --git a/scm-ui/src/components/PluginLoader.js b/scm-ui/src/components/PluginLoader.js new file mode 100644 index 0000000000..48dbd20a6a --- /dev/null +++ b/scm-ui/src/components/PluginLoader.js @@ -0,0 +1,93 @@ +// @flow +import * as React from "react"; +import Loading from "./Loading"; +import { apiClient } from "../apiclient"; + +type Props = { + children: React.Node +}; + +type State = { + finished: boolean, + message: string +}; + +type Plugin = { + id: string, + bundles: string[] +}; + +class PluginLoader extends React.Component { + constructor(props: Props) { + super(props); + this.state = { + finished: false, + message: "booting" + }; + } + + componentDidMount() { + this.setState({ + message: "loading plugin information" + }); + apiClient + .get("ui/plugins") + .then(response => response.text()) + .then(JSON.parse) + .then(this.loadPlugins) + .then(() => { + this.setState({ + finished: true + }); + }); + } + + loadPlugins = (plugins: Plugin[]) => { + this.setState({ + message: "loading plugins" + }); + + const promises = []; + for (let plugin of plugins) { + promises.push(this.loadPlugin(plugin)); + } + return Promise.all(promises); + }; + + loadPlugin = (plugin: Plugin) => { + this.setState({ + message: `loading ${plugin.name}` + }); + + const promises = []; + for (let bundle of plugin.bundles) { + // skip old bundles + // TODO remove old bundles + if (bundle.indexOf("/") !== 0) { + promises.push(this.loadBundle(bundle)); + } + } + return Promise.all(promises); + }; + + loadBundle = (bundle: string) => { + return fetch(bundle) + .then(response => { + return response.text(); + }) + .then(script => { + // TODO is this safe??? + eval(script); + }); + }; + + render() { + const { message, finished } = this.state; + if (finished) { + return
{this.props.children}
; + } + return ; + } +} + +export default PluginLoader; diff --git a/scm-ui/src/index.js b/scm-ui/src/index.js index ea133dd55b..d013bb946a 100644 --- a/scm-ui/src/index.js +++ b/scm-ui/src/index.js @@ -14,6 +14,7 @@ import type { BrowserHistory } from "history/createBrowserHistory"; import createReduxStore from "./createReduxStore"; import { ConnectedRouter } from "react-router-redux"; +import PluginLoader from "./components/PluginLoader"; const publicUrl: string = process.env.PUBLIC_URL || ""; @@ -36,7 +37,9 @@ ReactDOM.render( {/* ConnectedRouter will use the store from Provider automatically */} - + + + , From 128961b7457521bdda07cea13637e21d7becf1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Fri, 24 Aug 2018 14:35:58 +0200 Subject: [PATCH 084/143] Add bean validation to user, group and repository The validations are taken from the isValid methods of the corresponding model objects. --- .../scm/api/v2/resources/GroupCollectionResource.java | 3 ++- .../src/main/java/sonia/scm/api/v2/resources/GroupDto.java | 4 ++++ .../java/sonia/scm/api/v2/resources/GroupResource.java | 3 ++- .../java/sonia/scm/api/v2/resources/RepositoryDto.java | 4 +++- .../sonia/scm/api/v2/resources/RepositoryResource.java | 3 ++- .../sonia/scm/api/v2/resources/UserCollectionResource.java | 3 ++- .../src/main/java/sonia/scm/api/v2/resources/UserDto.java | 7 +++++++ .../main/java/sonia/scm/api/v2/resources/UserResource.java | 3 ++- 8 files changed, 24 insertions(+), 6 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java index acc02c0da4..8abab0f720 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupCollectionResource.java @@ -11,6 +11,7 @@ import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; +import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; @@ -85,7 +86,7 @@ public class GroupCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created group")) - public Response create(GroupDto groupDto) throws AlreadyExistsException { + public Response create(@Valid GroupDto groupDto) throws AlreadyExistsException { return adapter.create(groupDto, () -> dtoToGroupMapper.map(groupDto), group -> resourceLinks.group().self(group.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupDto.java index cb05da6568..b847412a33 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupDto.java @@ -6,7 +6,9 @@ import de.otto.edison.hal.Links; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import org.hibernate.validator.constraints.NotEmpty; +import javax.validation.constraints.Pattern; import java.time.Instant; import java.util.List; import java.util.Map; @@ -18,7 +20,9 @@ public class GroupDto extends HalRepresentation { private String description; @JsonInclude(JsonInclude.Include.NON_NULL) private Instant lastModified; + @Pattern(regexp = "^[A-z0-9\\.\\-_@]|[^ ]([A-z0-9\\.\\-_@ ]*[A-z0-9\\.\\-_@]|[^ ])?$") private String name; + @NotEmpty private String type; private Map properties; private List members; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java index e1e8e0ccdb..4dae8f26dd 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/GroupResource.java @@ -9,6 +9,7 @@ import sonia.scm.group.GroupManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; +import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -96,7 +97,7 @@ public class GroupResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("id") String name, GroupDto groupDto) throws NotFoundException { + public Response update(@PathParam("id") String name, @Valid GroupDto groupDto) throws NotFoundException { return adapter.update(name, existing -> dtoToGroupMapper.map(groupDto)); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java index cf343f8f77..c597e12d4f 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryDto.java @@ -6,6 +6,7 @@ import de.otto.edison.hal.Links; import lombok.Getter; import lombok.Setter; import org.hibernate.validator.constraints.Email; +import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.Pattern; import java.time.Instant; @@ -23,9 +24,10 @@ public class RepositoryDto extends HalRepresentation { @JsonInclude(JsonInclude.Include.NON_NULL) private Instant lastModified; private String namespace; - @Pattern(regexp = "[\\w-]+", message = "The name can only contain numbers, letters, underscore and hyphen") + @Pattern(regexp = "(?!^\\.\\.$)(?!^\\.$)(?!.*[\\\\\\[\\]])^[A-z0-9\\.][A-z0-9\\.\\-_/]*$") private String name; private boolean archived = false; + @NotEmpty private String type; protected Map properties; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java index 2d4ee9f600..99db629f07 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/RepositoryResource.java @@ -12,6 +12,7 @@ import sonia.scm.web.VndMediaType; import javax.inject.Inject; import javax.inject.Provider; +import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -125,7 +126,7 @@ public class RepositoryResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("namespace") String namespace, @PathParam("name") String name, RepositoryDto repositoryDto) throws NotFoundException { + public Response update(@PathParam("namespace") String namespace, @PathParam("name") String name, @Valid RepositoryDto repositoryDto) throws NotFoundException { return adapter.update( loadBy(namespace, name), existing -> dtoToRepositoryMapper.map(repositoryDto, existing.getId()), diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java index 550c60de5d..81c3a66c6d 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserCollectionResource.java @@ -11,6 +11,7 @@ import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; +import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; @@ -87,7 +88,7 @@ public class UserCollectionResource { }) @TypeHint(TypeHint.NO_CONTENT.class) @ResponseHeaders(@ResponseHeader(name = "Location", description = "uri to the created user")) - public Response create(UserDto userDto) throws AlreadyExistsException { + public Response create(@Valid UserDto userDto) throws AlreadyExistsException { return adapter.create(userDto, () -> dtoToUserMapper.map(userDto, ""), user -> resourceLinks.user().self(user.getName())); diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserDto.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserDto.java index cf7bf90504..6d07d27e32 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserDto.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserDto.java @@ -6,7 +6,10 @@ import de.otto.edison.hal.Links; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import org.hibernate.validator.constraints.Email; +import org.hibernate.validator.constraints.NotEmpty; +import javax.validation.constraints.Pattern; import java.time.Instant; import java.util.Map; @@ -15,12 +18,16 @@ public class UserDto extends HalRepresentation { private boolean active; private boolean admin; private Instant creationDate; + @NotEmpty private String displayName; @JsonInclude(JsonInclude.Include.NON_NULL) private Instant lastModified; + @NotEmpty @Email private String mail; + @Pattern(regexp = "^[A-z0-9\\.\\-_@]|[^ ]([A-z0-9\\.\\-_@ ]*[A-z0-9\\.\\-_@]|[^ ])?$") private String name; private String password; + @NotEmpty private String type; private Map properties; diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java index 687c94e4ff..dddfcfb886 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UserResource.java @@ -9,6 +9,7 @@ import sonia.scm.user.UserManager; import sonia.scm.web.VndMediaType; import javax.inject.Inject; +import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -96,7 +97,7 @@ public class UserResource { @ResponseCode(code = 500, condition = "internal server error") }) @TypeHint(TypeHint.NO_CONTENT.class) - public Response update(@PathParam("id") String name, UserDto userDto) throws NotFoundException { + public Response update(@PathParam("id") String name, @Valid UserDto userDto) throws NotFoundException { return adapter.update(name, existing -> dtoToUserMapper.map(userDto, existing.getPassword())); } } From fafb336512212c357521db3532cf29360cdbc5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Fri, 24 Aug 2018 16:30:43 +0200 Subject: [PATCH 085/143] Fix tests for validation --- .../src/main/java/sonia/scm/user/UserTestData.java | 10 ++++++---- .../resources/sonia/scm/api/v2/group-test-update.json | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scm-test/src/main/java/sonia/scm/user/UserTestData.java b/scm-test/src/main/java/sonia/scm/user/UserTestData.java index 67a2d33b0b..eb5e8d6e28 100644 --- a/scm-test/src/main/java/sonia/scm/user/UserTestData.java +++ b/scm-test/src/main/java/sonia/scm/user/UserTestData.java @@ -111,8 +111,9 @@ public final class UserTestData */ public static User createTrillian() { - return new User("trillian", "Tricia McMillan", - "tricia.mcmillan@hitchhiker.com"); + User user = new User("trillian", "Tricia McMillan", "tricia.mcmillan@hitchhiker.com"); + user.setType("xml"); + return user; } /** @@ -123,7 +124,8 @@ public final class UserTestData */ public static User createZaphod() { - return new User("zaphod", "Zaphod Beeblebrox", - "zaphod.beeblebrox@hitchhiker.com"); + User user = new User("zaphod", "Zaphod Beeblebrox", "zaphod.beeblebrox@hitchhiker.com"); + user.setType("xml"); + return user; } } diff --git a/scm-webapp/src/test/resources/sonia/scm/api/v2/group-test-update.json b/scm-webapp/src/test/resources/sonia/scm/api/v2/group-test-update.json index fd41ff5837..324a2ef3c0 100644 --- a/scm-webapp/src/test/resources/sonia/scm/api/v2/group-test-update.json +++ b/scm-webapp/src/test/resources/sonia/scm/api/v2/group-test-update.json @@ -1,6 +1,7 @@ { "description": "Updated description", "name": "admin", + "type": "xml", "_embedded": { "members": [ { From 56b629fa9de49944cc7ad56ef9591e74a63b67b1 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 27 Aug 2018 12:59:26 +0200 Subject: [PATCH 086/143] use hateoas style resource for ui plugins --- .../main/java/sonia/scm/web/VndMediaType.java | 3 + scm-plugins/scm-git-plugin/yarn.lock | 6 +- scm-plugins/scm-hg-plugin/yarn.lock | 6 +- scm-plugins/scm-svn-plugin/yarn.lock | 6 +- scm-ui/src/components/PluginLoader.js | 1 + scm-ui/yarn.lock | 6 +- .../scm/api/v2/resources/MapperModule.java | 4 + .../scm/api/v2/resources/ResourceLinks.java | 33 ++++ .../UIPluginDtoCollectionMapper.java | 46 +++++ .../api/v2/resources/UIPluginDtoMapper.java | 34 ++++ .../api/v2/resources/UIPluginResource.java | 91 +++++++++ .../scm/api/v2/resources/UIRootResource.java | 36 +--- .../api/v2/resources/ResourceLinksMock.java | 2 + .../api/v2/resources/UIRootResourceTest.java | 180 ++++++++++++++++++ .../AbstractResourceManagerTest.java | 2 + 15 files changed, 414 insertions(+), 42 deletions(-) create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoCollectionMapper.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java create mode 100644 scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java create mode 100644 scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java diff --git a/scm-core/src/main/java/sonia/scm/web/VndMediaType.java b/scm-core/src/main/java/sonia/scm/web/VndMediaType.java index 1e439a6a16..b2218f2a84 100644 --- a/scm-core/src/main/java/sonia/scm/web/VndMediaType.java +++ b/scm-core/src/main/java/sonia/scm/web/VndMediaType.java @@ -24,6 +24,9 @@ public class VndMediaType { public static final String CONFIG = PREFIX + "config" + SUFFIX; public static final String REPOSITORY_TYPE_COLLECTION = PREFIX + "repositoryTypeCollection" + SUFFIX; public static final String REPOSITORY_TYPE = PREFIX + "repositoryType" + SUFFIX; + public static final String UI_PLUGIN = PREFIX + "uiPlugin" + SUFFIX; + public static final String UI_PLUGIN_COLLECTION = PREFIX + "uiPluginCollection" + SUFFIX; + public static final String ME = PREFIX + "me" + SUFFIX; private VndMediaType() { diff --git a/scm-plugins/scm-git-plugin/yarn.lock b/scm-plugins/scm-git-plugin/yarn.lock index 083606280e..7c78c61b03 100644 --- a/scm-plugins/scm-git-plugin/yarn.lock +++ b/scm-plugins/scm-git-plugin/yarn.lock @@ -628,9 +628,9 @@ node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.5.tgz#4336f10a65b428841e2e15c6059d58f8409a5f9f" +"@scm-manager/ui-extensions@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.6.tgz#1508acdabdf552ac9d832e8cb078d4eeae48b7c7" dependencies: react "^16.4.2" react-dom "^16.4.2" diff --git a/scm-plugins/scm-hg-plugin/yarn.lock b/scm-plugins/scm-hg-plugin/yarn.lock index fe08344881..7c4ef63c1e 100644 --- a/scm-plugins/scm-hg-plugin/yarn.lock +++ b/scm-plugins/scm-hg-plugin/yarn.lock @@ -628,9 +628,9 @@ node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.5.tgz#4336f10a65b428841e2e15c6059d58f8409a5f9f" +"@scm-manager/ui-extensions@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.6.tgz#1508acdabdf552ac9d832e8cb078d4eeae48b7c7" dependencies: react "^16.4.2" react-dom "^16.4.2" diff --git a/scm-plugins/scm-svn-plugin/yarn.lock b/scm-plugins/scm-svn-plugin/yarn.lock index fe08344881..7c4ef63c1e 100644 --- a/scm-plugins/scm-svn-plugin/yarn.lock +++ b/scm-plugins/scm-svn-plugin/yarn.lock @@ -628,9 +628,9 @@ node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.5": - version "0.0.5" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.5.tgz#4336f10a65b428841e2e15c6059d58f8409a5f9f" +"@scm-manager/ui-extensions@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.6.tgz#1508acdabdf552ac9d832e8cb078d4eeae48b7c7" dependencies: react "^16.4.2" react-dom "^16.4.2" diff --git a/scm-ui/src/components/PluginLoader.js b/scm-ui/src/components/PluginLoader.js index 48dbd20a6a..a41bf8231f 100644 --- a/scm-ui/src/components/PluginLoader.js +++ b/scm-ui/src/components/PluginLoader.js @@ -34,6 +34,7 @@ class PluginLoader extends React.Component { .get("ui/plugins") .then(response => response.text()) .then(JSON.parse) + .then(pluginCollection => pluginCollection._embedded.plugins) .then(this.loadPlugins) .then(() => { this.setState({ diff --git a/scm-ui/yarn.lock b/scm-ui/yarn.lock index 473669bb64..5f5e1f05ed 100644 --- a/scm-ui/yarn.lock +++ b/scm-ui/yarn.lock @@ -725,9 +725,9 @@ node-mkdirs "^0.0.1" pom-parser "^1.1.1" -"@scm-manager/ui-extensions@^0.0.4": - version "0.0.4" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.4.tgz#466aa4f5caef5f5826d0ee190a87d9d847b72fdf" +"@scm-manager/ui-extensions@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-extensions/-/ui-extensions-0.0.6.tgz#1508acdabdf552ac9d832e8cb078d4eeae48b7c7" dependencies: react "^16.4.2" react-dom "^16.4.2" diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java index 0ac6929689..ed69553f1d 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/MapperModule.java @@ -26,6 +26,10 @@ public class MapperModule extends AbstractModule { bind(BranchToBranchDtoMapper.class).to(Mappers.getMapper(BranchToBranchDtoMapper.class).getClass()); + // no mapstruct required + bind(UIPluginDtoMapper.class); + bind(UIPluginDtoCollectionMapper.class); + bind(UriInfoStore.class).in(ServletScopes.REQUEST); } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java index 319bbec32b..b9b3cd41c6 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/ResourceLinks.java @@ -314,4 +314,37 @@ class ResourceLinks { return permissionLinkBuilder.method("getRepositoryResource").parameters(namespace, name).method("permissions").parameters().method("getPermissionCollectionResource").parameters().method("getAll").parameters().href(); } } + + + public UIPluginLinks uiPlugin() { + return new UIPluginLinks(uriInfoStore.get()); + } + + static class UIPluginLinks { + private final LinkBuilder uiPluginLinkBuilder; + + UIPluginLinks(UriInfo uriInfo) { + uiPluginLinkBuilder = new LinkBuilder(uriInfo, UIRootResource.class, UIPluginResource.class); + } + + String self(String id) { + return uiPluginLinkBuilder.method("plugins").parameters().method("getInstalledPlugin").parameters(id).href(); + } + } + + public UIPluginCollectionLinks uiPluginCollection() { + return new UIPluginCollectionLinks(uriInfoStore.get()); + } + + static class UIPluginCollectionLinks { + private final LinkBuilder uiPluginCollectionLinkBuilder; + + UIPluginCollectionLinks(UriInfo uriInfo) { + uiPluginCollectionLinkBuilder = new LinkBuilder(uriInfo, UIRootResource.class, UIPluginResource.class); + } + + String self() { + return uiPluginCollectionLinkBuilder.method("plugins").parameters().method("getInstalledPlugins").parameters().href(); + } + } } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoCollectionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoCollectionMapper.java new file mode 100644 index 0000000000..f032650d8a --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoCollectionMapper.java @@ -0,0 +1,46 @@ +package sonia.scm.api.v2.resources; + +import com.google.inject.Inject; +import de.otto.edison.hal.Embedded; +import de.otto.edison.hal.HalRepresentation; +import de.otto.edison.hal.Links; +import sonia.scm.plugin.PluginWrapper; + +import java.util.Collection; +import java.util.List; + +import static de.otto.edison.hal.Embedded.embeddedBuilder; +import static de.otto.edison.hal.Links.linkingTo; +import static java.util.stream.Collectors.toList; + +public class UIPluginDtoCollectionMapper { + + private final ResourceLinks resourceLinks; + private final UIPluginDtoMapper mapper; + + @Inject + public UIPluginDtoCollectionMapper(ResourceLinks resourceLinks, UIPluginDtoMapper mapper) { + this.resourceLinks = resourceLinks; + this.mapper = mapper; + } + + public HalRepresentation map(Collection plugins) { + List dtos = plugins.stream().map(mapper::map).collect(toList()); + return new HalRepresentation(createLinks(), embedDtos(dtos)); + } + + private Links createLinks() { + String baseUrl = resourceLinks.uiPluginCollection().self(); + + Links.Builder linksBuilder = linkingTo() + .with(Links.linkingTo().self(baseUrl).build()); + return linksBuilder.build(); + } + + private Embedded embedDtos(List dtos) { + return embeddedBuilder() + .with("plugins", dtos) + .build(); + } + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java new file mode 100644 index 0000000000..7ef2cbded3 --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java @@ -0,0 +1,34 @@ +package sonia.scm.api.v2.resources; + +import de.otto.edison.hal.Links; +import sonia.scm.plugin.PluginWrapper; + +import javax.inject.Inject; + +import static de.otto.edison.hal.Links.linkingTo; + +public class UIPluginDtoMapper { + + private ResourceLinks resourceLinks; + + @Inject + public UIPluginDtoMapper(ResourceLinks resourceLinks) { + this.resourceLinks = resourceLinks; + } + + public UIPluginDto map(PluginWrapper plugin) { + UIPluginDto dto = new UIPluginDto( + plugin.getPlugin().getInformation().getName(), + plugin.getPlugin().getResources().getScriptResources() + ); + + Links.Builder linksBuilder = linkingTo() + .self(resourceLinks.uiPlugin() + .self(plugin.getId())); + + dto.add(linksBuilder.build()); + + return dto; + } + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java new file mode 100644 index 0000000000..0807c600ff --- /dev/null +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java @@ -0,0 +1,91 @@ +package sonia.scm.api.v2.resources; + +import com.webcohesion.enunciate.metadata.rs.ResponseCode; +import com.webcohesion.enunciate.metadata.rs.StatusCodes; +import com.webcohesion.enunciate.metadata.rs.TypeHint; +import de.otto.edison.hal.HalRepresentation; +import sonia.scm.plugin.PluginLoader; +import sonia.scm.plugin.PluginWrapper; +import sonia.scm.web.VndMediaType; + +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.Response; +import java.util.List; +import java.util.Optional; +import java.util.stream.Collectors; + +public class UIPluginResource { + + private final PluginLoader pluginLoader; + private final UIPluginDtoCollectionMapper collectionMapper; + private final UIPluginDtoMapper mapper; + + @Inject + public UIPluginResource(PluginLoader pluginLoader, UIPluginDtoCollectionMapper collectionMapper, UIPluginDtoMapper mapper) { + this.pluginLoader = pluginLoader; + this.collectionMapper = collectionMapper; + this.mapper = mapper; + } + + /** + * Returns a collection of installed plugins and their ui bundles. + * + * @return collection of installed plugins. + */ + @GET + @Path("") + @StatusCodes({ + @ResponseCode(code = 200, condition = "success"), + @ResponseCode(code = 500, condition = "internal server error") + }) + @TypeHint(CollectionDto.class) + @Produces(VndMediaType.UI_PLUGIN_COLLECTION) + public Response getInstalledPlugins() { + List plugins = pluginLoader.getInstalledPlugins() + .stream() + .filter(this::filter) + .collect(Collectors.toList()); + + return Response.ok(collectionMapper.map(plugins)).build(); + } + + /** + * Returns the installed plugin with the given id. + * + * @param id id of plugin + * + * @return installed plugin with specified id + */ + @GET + @Path("{id}") + @StatusCodes({ + @ResponseCode(code = 200, condition = "success"), + @ResponseCode(code = 404, condition = "not found"), + @ResponseCode(code = 500, condition = "internal server error") + }) + @TypeHint(UIPluginDto.class) + @Produces(VndMediaType.UI_PLUGIN) + public Response getInstalledPlugin(@PathParam("id") String id) { + Optional uiPluginDto = pluginLoader.getInstalledPlugins() + .stream() + .filter(this::filter) + .filter(plugin -> id.equals(plugin.getId())) + .map(mapper::map) + .findFirst(); + + if (uiPluginDto.isPresent()) { + return Response.ok(uiPluginDto.get()).build(); + } else { + return Response.status(Response.Status.NOT_FOUND).build(); + } + } + + private boolean filter(PluginWrapper plugin) { + return plugin.getPlugin().getResources() != null; + } + +} diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java index 36c4f85c25..92df0ccb68 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIRootResource.java @@ -1,46 +1,22 @@ package sonia.scm.api.v2.resources; -import sonia.scm.plugin.PluginLoader; -import sonia.scm.plugin.PluginWrapper; - import javax.inject.Inject; -import javax.ws.rs.GET; +import javax.inject.Provider; import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import java.util.List; -import java.util.stream.Collectors; @Path("v2/ui") public class UIRootResource { - private final PluginLoader pluginLoader; + private Provider uiPluginResourceProvider; @Inject - public UIRootResource(PluginLoader pluginLoader) { - this.pluginLoader = pluginLoader; + public UIRootResource(Provider uiPluginResourceProvider) { + this.uiPluginResourceProvider = uiPluginResourceProvider; } - @GET @Path("plugins") - @Produces(MediaType.APPLICATION_JSON) - public List getInstalledPlugins() { - return pluginLoader.getInstalledPlugins() - .stream() - .filter(this::filter) - .map(this::map) - .collect(Collectors.toList()); - } - - private boolean filter(PluginWrapper plugin) { - return plugin.getPlugin().getResources() != null; - } - - private UIPluginDto map(PluginWrapper plugin) { - return new UIPluginDto( - plugin.getPlugin().getInformation().getName(), - plugin.getPlugin().getResources().getScriptResources() - ); + public UIPluginResource plugins() { + return uiPluginResourceProvider.get(); } } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksMock.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksMock.java index 882d754329..b876cf8a95 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksMock.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/ResourceLinksMock.java @@ -28,6 +28,8 @@ public class ResourceLinksMock { when(resourceLinks.branch()).thenReturn(new ResourceLinks.BranchLinks(uriInfo)); when(resourceLinks.repositoryType()).thenReturn(new ResourceLinks.RepositoryTypeLinks(uriInfo)); when(resourceLinks.repositoryTypeCollection()).thenReturn(new ResourceLinks.RepositoryTypeCollectionLinks(uriInfo)); + when(resourceLinks.uiPluginCollection()).thenReturn(new ResourceLinks.UIPluginCollectionLinks(uriInfo)); + when(resourceLinks.uiPlugin()).thenReturn(new ResourceLinks.UIPluginLinks(uriInfo)); return resourceLinks; } diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java new file mode 100644 index 0000000000..4e8c2d43b8 --- /dev/null +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java @@ -0,0 +1,180 @@ +package sonia.scm.api.v2.resources; + +import com.google.common.collect.Lists; +import com.google.common.collect.Sets; +import com.google.inject.util.Providers; +import org.jboss.resteasy.core.Dispatcher; +import org.jboss.resteasy.mock.MockDispatcherFactory; +import org.jboss.resteasy.mock.MockHttpRequest; +import org.jboss.resteasy.mock.MockHttpResponse; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.junit.MockitoJUnitRunner; +import sonia.scm.api.rest.resources.PluginResource; +import sonia.scm.plugin.*; +import sonia.scm.web.VndMediaType; + +import java.net.URI; +import java.net.URISyntaxException; +import java.util.HashSet; +import java.util.List; + +import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND; +import static javax.servlet.http.HttpServletResponse.SC_OK; +import static org.hamcrest.Matchers.equalToIgnoringCase; +import static org.junit.Assert.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +@RunWith(MockitoJUnitRunner.Silent.class) +public class UIRootResourceTest { + + private final Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); + + @Mock + private PluginLoader pluginLoader; + + private final URI baseUri = URI.create("/"); + private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); + + @Before + public void setUpRestService() { + UIPluginDtoMapper mapper = new UIPluginDtoMapper(resourceLinks); + UIPluginDtoCollectionMapper collectionMapper = new UIPluginDtoCollectionMapper(resourceLinks, mapper); + + UIPluginResource pluginResource = new UIPluginResource(pluginLoader, collectionMapper, mapper); + UIRootResource rootResource = new UIRootResource(Providers.of(pluginResource)); + + dispatcher.getRegistry().addSingletonResource(rootResource); + } + + @Test + public void shouldHaveVndCollectionMediaType() throws URISyntaxException { + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + String contentType = response.getOutputHeaders().getFirst("Content-Type").toString(); + assertThat(VndMediaType.UI_PLUGIN_COLLECTION, equalToIgnoringCase(contentType)); + } + + @Test + public void shouldReturnNotFoundIfPluginNotAvailable() throws URISyntaxException { + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins/awesome"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_NOT_FOUND, response.getStatus()); + } + + @Test + public void shouldReturnNotFoundIfPluginHasNoResources() throws URISyntaxException { + mockPlugins(mockPlugin("awesome")); + + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins/awesome"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_NOT_FOUND, response.getStatus()); + } + + @Test + public void shouldReturnPlugin() throws URISyntaxException { + mockPlugins(mockPlugin("awesome", "Awesome", createPluginResources("my/awesome.bundle.js"))); + + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins/awesome"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + assertTrue(response.getContentAsString().contains("Awesome")); + assertTrue(response.getContentAsString().contains("my/awesome.bundle.js")); + } + + @Test + public void shouldReturnPlugins() throws URISyntaxException { + mockPlugins( + mockPlugin("awesome", "Awesome", createPluginResources("my/awesome.bundle.js")), + mockPlugin("special", "Special", createPluginResources("my/special.bundle.js")) + ); + + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + assertTrue(response.getContentAsString().contains("Awesome")); + assertTrue(response.getContentAsString().contains("my/awesome.bundle.js")); + assertTrue(response.getContentAsString().contains("Special")); + assertTrue(response.getContentAsString().contains("my/special.bundle.js")); + } + + @Test + public void shouldNotReturnPluginsWithoutResources() throws URISyntaxException { + mockPlugins( + mockPlugin("awesome", "Awesome", createPluginResources("my/awesome.bundle.js")), + mockPlugin("special") + ); + + MockHttpRequest request = MockHttpRequest.get("/v2/ui/plugins"); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + assertTrue(response.getContentAsString().contains("Awesome")); + assertTrue(response.getContentAsString().contains("my/awesome.bundle.js")); + assertFalse(response.getContentAsString().contains("Special")); + } + + @Test + public void shouldHaveSelfLink() throws Exception { + mockPlugins(mockPlugin("awesome", "Awesome", createPluginResources("my/bundle.js"))); + + String uri = "/v2/ui/plugins/awesome"; + MockHttpRequest request = MockHttpRequest.get(uri); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + assertTrue(response.getContentAsString().contains("\"self\":{\"href\":\"" + uri + "\"}")); + } + + private void mockPlugins(PluginWrapper... plugins) { + when(pluginLoader.getInstalledPlugins()).thenReturn(Lists.newArrayList(plugins)); + } + + private PluginResources createPluginResources(String... bundles) { + HashSet scripts = Sets.newHashSet(bundles); + HashSet styles = Sets.newHashSet(); + return new PluginResources(scripts, styles); + } + + private PluginWrapper mockPlugin(String id) { + return mockPlugin(id, id, null); + } + + private PluginWrapper mockPlugin(String id, String name, PluginResources pluginResources) { + PluginWrapper wrapper = mock(PluginWrapper.class); + when(wrapper.getId()).thenReturn(id); + + Plugin plugin = mock(Plugin.class); + when(wrapper.getPlugin()).thenReturn(plugin); + when(plugin.getResources()).thenReturn(pluginResources); + + PluginInformation information = mock(PluginInformation.class); + when(plugin.getInformation()).thenReturn(information); + when(information.getName()).thenReturn(name); + + return wrapper; + } +} diff --git a/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java b/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java index 1e75049178..fb6ab364ca 100644 --- a/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java +++ b/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java @@ -38,6 +38,7 @@ import java.util.Map; import java.util.Set; import static org.junit.Assert.*; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import static org.hamcrest.Matchers.*; @@ -49,6 +50,7 @@ import sonia.scm.plugin.PluginLoader; * * @author Sebastian Sdorra */ +@Ignore @RunWith(MockitoJUnitRunner.class) public class AbstractResourceManagerTest extends ResourceManagerTestBase { From 3f1b2db031414f693d17f153bf7bfbafeb1dfc81 Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Mon, 27 Aug 2018 14:19:07 +0200 Subject: [PATCH 087/143] Fixed typo --- .../java/sonia/scm/api/v2/ValidationExceptionMapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java index 53681bc9af..c6af6b8921 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/ValidationExceptionMapper.java @@ -37,10 +37,10 @@ public class ValidationExceptionMapper implements ExceptionMapper violoations; + private List violations; - public ValidationError(List violoations) { - this.violoations = violoations; + public ValidationError(List violations) { + this.violations = violations; } } From d7a229a08209ae381a8c0b12d82f5f369f52b91c Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Mon, 27 Aug 2018 14:49:52 +0200 Subject: [PATCH 088/143] Removed unused Exception --- .../sonia/scm/repository/BranchNotFoundException.java | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java diff --git a/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java b/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java deleted file mode 100644 index a4a1c66d67..0000000000 --- a/scm-core/src/main/java/sonia/scm/repository/BranchNotFoundException.java +++ /dev/null @@ -1,9 +0,0 @@ -package sonia.scm.repository; - -import sonia.scm.NotFoundException; - -public class BranchNotFoundException extends NotFoundException { - public BranchNotFoundException(String branch) { - super("branch", branch); - } -} From 4713339f907ad3714dad83e6b45ce2f19c2b4c0a Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Mon, 27 Aug 2018 14:50:16 +0200 Subject: [PATCH 089/143] Removed commented out code --- .../resources/RepositoryImportResource.java | 39 ++----------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java index 4ffb349057..8a5ba8b1e3 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryImportResource.java @@ -33,8 +33,6 @@ package sonia.scm.api.rest.resources; -//~--- non-JDK imports -------------------------------------------------------- - import com.google.common.base.MoreObjects; import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; @@ -52,14 +50,7 @@ import sonia.scm.NotFoundException; import sonia.scm.NotSupportedFeatuerException; import sonia.scm.Type; import sonia.scm.api.rest.RestActionUploadResult; -import sonia.scm.repository.AdvancedImportHandler; -import sonia.scm.repository.ImportHandler; -import sonia.scm.repository.ImportResult; -import sonia.scm.repository.InternalRepositoryException; -import sonia.scm.repository.Repository; -import sonia.scm.repository.RepositoryHandler; -import sonia.scm.repository.RepositoryManager; -import sonia.scm.repository.RepositoryType; +import sonia.scm.repository.*; import sonia.scm.repository.api.Command; import sonia.scm.repository.api.RepositoryService; import sonia.scm.repository.api.RepositoryServiceFactory; @@ -67,21 +58,8 @@ import sonia.scm.repository.api.UnbundleCommandBuilder; import sonia.scm.security.Role; import sonia.scm.util.IOUtil; -import javax.ws.rs.Consumes; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import javax.ws.rs.*; +import javax.ws.rs.core.*; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @@ -97,8 +75,6 @@ import java.util.Set; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; -//~--- JDK imports ------------------------------------------------------------ - /** * Rest resource for importing repositories. * @@ -278,10 +254,6 @@ public class RepositoryImportResource service = serviceFactory.create(repository); service.getPullCommand().pull(request.getUrl()); } -// catch (RepositoryException ex) -// { -// handleImportFailure(ex, repository); -// } catch (IOException ex) { handleImportFailure(ex, repository); @@ -435,11 +407,6 @@ public class RepositoryImportResource logger.warn("exception occured durring directory import", ex); response = Response.serverError().build(); } -// catch (RepositoryException ex) -// { -// logger.warn("exception occured durring directory import", ex); -// response = Response.serverError().build(); -// } } else { From b09c46abcf9c91fa7edc3822c15428bf1b2a8f8d Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 27 Aug 2018 15:45:56 +0200 Subject: [PATCH 090/143] remove old ui --- .../java/sonia/scm/resources/Resource.java | 76 --- .../sonia/scm/resources/ResourceHandler.java | 75 --- .../resources/ResourceHandlerComparator.java | 73 --- .../sonia/scm/resources/ResourceManager.java | 74 --- .../scm/resources/ResourceNameComparator.java | 79 --- .../sonia/scm/resources/ResourceType.java | 102 ---- .../ResourceHandlerComparatorTest.java | 141 ------ scm-plugins/scm-git-plugin/package.json | 2 +- .../main/resources/META-INF/scm/plugin.xml | 4 - .../main/resources/sonia/scm/git.config.js | 232 --------- scm-plugins/scm-git-plugin/yarn.lock | 28 +- scm-plugins/scm-hg-plugin/package.json | 2 +- .../main/resources/META-INF/scm/plugin.xml | 9 +- .../resources/sonia/scm/hg.config-wizard.js | 449 ------------------ .../src/main/resources/sonia/scm/hg.config.js | 287 ----------- scm-plugins/scm-hg-plugin/yarn.lock | 28 +- scm-plugins/scm-svn-plugin/package.json | 2 +- .../main/resources/META-INF/scm/plugin.xml | 6 +- .../main/resources/sonia/scm/svn.config.js | 159 ------- scm-plugins/scm-svn-plugin/yarn.lock | 28 +- scm-webapp/pom.xml | 2 +- .../main/java/sonia/scm/ScmServletModule.java | 17 - .../sonia/scm/resources/AbstractResource.java | 215 --------- .../resources/AbstractResourceManager.java | 314 ------------ .../resources/AbstractResourceServlet.java | 165 ------- .../sonia/scm/resources/DefaultResource.java | 135 ------ .../scm/resources/DefaultResourceManager.java | 111 ----- .../scm/resources/DevelopmentResource.java | 135 ------ .../resources/DevelopmentResourceManager.java | 117 ----- .../scm/resources/ScriptResourceServlet.java | 78 --- .../sonia/scm/template/TemplateServlet.java | 31 +- scm-webapp/src/main/webapp/index.html | 10 + .../AbstractResourceManagerTest.java | 97 ---- .../resources/DefaultResourceManagerTest.java | 78 --- .../resources/ResourceManagerTestBase.java | 112 ----- 35 files changed, 99 insertions(+), 3374 deletions(-) delete mode 100644 scm-core/src/main/java/sonia/scm/resources/Resource.java delete mode 100644 scm-core/src/main/java/sonia/scm/resources/ResourceHandler.java delete mode 100644 scm-core/src/main/java/sonia/scm/resources/ResourceHandlerComparator.java delete mode 100644 scm-core/src/main/java/sonia/scm/resources/ResourceManager.java delete mode 100644 scm-core/src/main/java/sonia/scm/resources/ResourceNameComparator.java delete mode 100644 scm-core/src/main/java/sonia/scm/resources/ResourceType.java delete mode 100644 scm-core/src/test/java/sonia/scm/resources/ResourceHandlerComparatorTest.java delete mode 100644 scm-plugins/scm-git-plugin/src/main/resources/sonia/scm/git.config.js delete mode 100644 scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js delete mode 100644 scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config.js delete mode 100644 scm-plugins/scm-svn-plugin/src/main/resources/sonia/scm/svn.config.js delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/AbstractResource.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceServlet.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/DefaultResource.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/DefaultResourceManager.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResource.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResourceManager.java delete mode 100644 scm-webapp/src/main/java/sonia/scm/resources/ScriptResourceServlet.java create mode 100644 scm-webapp/src/main/webapp/index.html delete mode 100644 scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java delete mode 100644 scm-webapp/src/test/java/sonia/scm/resources/DefaultResourceManagerTest.java delete mode 100644 scm-webapp/src/test/java/sonia/scm/resources/ResourceManagerTestBase.java diff --git a/scm-core/src/main/java/sonia/scm/resources/Resource.java b/scm-core/src/main/java/sonia/scm/resources/Resource.java deleted file mode 100644 index 83b737453b..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/Resource.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -package sonia.scm.resources; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; -import java.io.OutputStream; - -/** - * This class represents a web resource (Stylesheet or JavaScript file). - * - * @author Sebastian Sdorra - * @since 1.12 - */ -public interface Resource -{ - - /** - * Copies the content of the resource to the given {@link OutputStream}. - * - * - * @param output stream to copy the content of the resource - * - * @throws IOException - */ - public void copyTo(OutputStream output) throws IOException; - - //~--- get methods ---------------------------------------------------------- - - /** - * Returns the name of the resource. - * - * - * @return name of the resource - */ - public String getName(); - - /** - * Returns the type of the resource. - * - * - * @return type of resource - */ - public ResourceType getType(); -} diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceHandler.java b/scm-core/src/main/java/sonia/scm/resources/ResourceHandler.java deleted file mode 100644 index f48f0d71fd..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceHandler.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.plugin.ExtensionPoint; - -//~--- JDK imports ------------------------------------------------------------ - -import java.net.URL; - -/** - * - * @author Sebastian Sdorra - */ -@ExtensionPoint -public interface ResourceHandler -{ - - /** - * Method description - * - * - * @return - */ - public String getName(); - - /** - * Method description - * - * - * @return - */ - public URL getResource(); - - /** - * Method description - * - * - * @return - */ - public ResourceType getType(); -} diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceHandlerComparator.java b/scm-core/src/main/java/sonia/scm/resources/ResourceHandlerComparator.java deleted file mode 100644 index c818eb6c73..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceHandlerComparator.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.util.Util; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Comparator; - -/** - * - * @author Sebastian Sdorra - */ -public class ResourceHandlerComparator - implements Comparator, Serializable -{ - - /** Field description */ - private static final long serialVersionUID = -1760229246326556762L; - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param handler - * @param otherHandler - * - * @return - */ - @Override - public int compare(ResourceHandler handler, ResourceHandler otherHandler) - { - return Util.compare(handler.getName(), otherHandler.getName()); - } -} diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java b/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java deleted file mode 100644 index 8fa9187ad7..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceManager.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -package sonia.scm.resources; - -//~--- JDK imports ------------------------------------------------------------ - -import java.util.List; - -/** - * This class collects and manages {@link Resource} - * which are used by the web interface. - * - * TODO remove before 2.0.0 - * - * @author Sebastian Sdorra - * @since 1.12 - * @deprecated unnecessary for new ui - */ -@Deprecated -public interface ResourceManager -{ - - /** - * Returns the resource with given name and type or - * null if no such resource exists. - * - * - * @param type type of the resource - * @param name name of the resource - * - * @return the resource with given name and type - */ - public Resource getResource(ResourceType type, String name); - - /** - * Returns the resources of the given type. - * - * - * @param type type of the resources to return - * - * @return resources of the given type - */ - public List getResources(ResourceType type); -} diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceNameComparator.java b/scm-core/src/main/java/sonia/scm/resources/ResourceNameComparator.java deleted file mode 100644 index 910e545db7..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceNameComparator.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.util.Util; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.Serializable; - -import java.util.Comparator; - -/** - * Compare {@link Resource} objects by its name. - * - * @author Sebastian Sdorra - * @since 1.16 - */ -public class ResourceNameComparator - implements Comparator, Serializable -{ - - /** Field description */ - public static final ResourceNameComparator INSTANCE = - new ResourceNameComparator(); - - /** Field description */ - private static final long serialVersionUID = 3474356901608301437L; - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param resource - * @param otherResource - * - * @return - */ - @Override - public int compare(Resource resource, Resource otherResource) - { - return Util.compare(resource.getName(), otherResource.getName()); - } -} diff --git a/scm-core/src/main/java/sonia/scm/resources/ResourceType.java b/scm-core/src/main/java/sonia/scm/resources/ResourceType.java deleted file mode 100644 index faf3ac2a54..0000000000 --- a/scm-core/src/main/java/sonia/scm/resources/ResourceType.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -/** - * This class represents the type of {@link Resource}. - * - * @author Sebastian Sdorra - */ -public enum ResourceType -{ - - /** - * Resource type for javascript resources - */ - SCRIPT("text/javascript", "js"), - - /** - * Resource type for stylesheet (css) resources - */ - STYLESHEET("text/css", "css"); - - /** - * Constructs a new resource type - * - * - * @param contentType content type of the resource type - * @param extension file extension of the resource type - */ - private ResourceType(String contentType, String extension) - { - this.contentType = contentType; - this.extension = extension; - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Returns the content type of the resource type. - * - * - * @return content type of the resource type - * - * @since 1.12 - */ - public String getContentType() - { - return contentType; - } - - /** - * Returns the file extension of the resource type. - * - * - * @return file extension of the resource type - * - * @since 1.12 - */ - public String getExtension() - { - return extension; - } - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - private final String contentType; - - /** Field description */ - private final String extension; -} diff --git a/scm-core/src/test/java/sonia/scm/resources/ResourceHandlerComparatorTest.java b/scm-core/src/test/java/sonia/scm/resources/ResourceHandlerComparatorTest.java deleted file mode 100644 index 2573a6ec08..0000000000 --- a/scm-core/src/test/java/sonia/scm/resources/ResourceHandlerComparatorTest.java +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import org.junit.Test; - -import static org.junit.Assert.*; - -//~--- JDK imports ------------------------------------------------------------ - -import java.net.URL; - -import java.util.Arrays; - -/** - * - * @author Sebastian Sdorra - */ -public class ResourceHandlerComparatorTest -{ - - /** - * Method description - * - */ - @Test - public void testCompare() - { - ResourceHandler[] handlers = new ResourceHandler[4]; - - handlers[0] = new DummyResourceHandler("xyz"); - handlers[1] = new DummyResourceHandler("abc"); - handlers[2] = new DummyResourceHandler(null); - handlers[3] = new DummyResourceHandler("mno"); - Arrays.sort(handlers, new ResourceHandlerComparator()); - assertEquals("abc", handlers[0].getName()); - assertEquals("mno", handlers[1].getName()); - assertEquals("xyz", handlers[2].getName()); - assertEquals(null, handlers[3].getName()); - } - - //~--- inner classes -------------------------------------------------------- - - /** - * Class description - * - * - * @version Enter version here..., 2011-01-18 - * @author Sebastian Sdorra - */ - private static class DummyResourceHandler implements ResourceHandler - { - - /** - * Constructs ... - * - * - * @param name - */ - public DummyResourceHandler(String name) - { - this.name = name; - } - - //~--- get methods -------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - @Override - public String getName() - { - return name; - } - - /** - * Method description - * - * - * @return - */ - @Override - public URL getResource() - { - throw new UnsupportedOperationException("Not supported yet."); - } - - /** - * Method description - * - * - * @return - */ - @Override - public ResourceType getType() - { - throw new UnsupportedOperationException("Not supported yet."); - } - - //~--- fields ------------------------------------------------------------- - - /** Field description */ - private String name; - } -} diff --git a/scm-plugins/scm-git-plugin/package.json b/scm-plugins/scm-git-plugin/package.json index c679f259c8..1be11b7e3b 100644 --- a/scm-plugins/scm-git-plugin/package.json +++ b/scm-plugins/scm-git-plugin/package.json @@ -8,6 +8,6 @@ "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.3" + "@scm-manager/ui-bundler": "^0.0.4" } } diff --git a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/plugin.xml b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/plugin.xml index bc3689618d..ff699441a8 100644 --- a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/plugin.xml +++ b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/plugin.xml @@ -59,9 +59,5 @@ ${project.parent.version} - - - - diff --git a/scm-plugins/scm-git-plugin/src/main/resources/sonia/scm/git.config.js b/scm-plugins/scm-git-plugin/src/main/resources/sonia/scm/git.config.js deleted file mode 100644 index 45d347aa88..0000000000 --- a/scm-plugins/scm-git-plugin/src/main/resources/sonia/scm/git.config.js +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Ext.ns("Sonia.git"); - -Sonia.git.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, { - - // labels - titleText: 'Git Settings', - repositoryDirectoryText: 'Repository directory', - gcExpressionText: 'Git GC Cron Expression', - disabledText: 'Disabled', - - // helpTexts - repositoryDirectoryHelpText: 'Location of the Git repositories.', - // TODO i18n - gcExpressionHelpText: '

Use Quartz Cron Expressions (SECOND MINUTE HOUR DAYOFMONTH MONTH DAYOFWEEK) to run git gc in intervals.

\n\ - \n\ - \n\ - \n\ - \n\ - \n\ - \n\ - \n\ -
SECONDSeconds within the minute (0–59)
MINUTEMinutes within the hour (0–59)
HOURThe hour of the day (0–23)
DAYOFMONTHThe day of the month (1–31)
MONTHThe month (1–12)
DAYOFWEEKThe day of the week (MON, TUE, WED, THU, FRI, SAT, SUN)
\n\ -

E.g.: To run the task on every sunday at two o\'clock in the morning: 0 0 2 ? * SUN

\n\ -

For more informations please have a look at Quartz CronTrigger

', - disabledHelpText: 'Enable or disable the Git plugin.\n\ - Note you have to reload the page, after changing this value.', - - initComponent: function(){ - - var config = { - title : this.titleText, - configUrl: restUrl + 'config/repositories/git', - items : [{ - xtype: 'textfield', - name: 'repositoryDirectory', - fieldLabel: this.repositoryDirectoryText, - helpText: this.repositoryDirectoryHelpText, - allowBlank : false - },{ - xtype: 'textfield', - name: 'gc-expression', - fieldLabel: this.gcExpressionText, - helpText: this.gcExpressionHelpText, - allowBlank : true - },{ - xtype: 'checkbox', - name: 'disabled', - fieldLabel: this.disabledText, - inputValue: 'true', - helpText: this.disabledHelpText - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.git.ConfigPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("gitConfigPanel", Sonia.git.ConfigPanel); - -// add default branch chooser to settings panel -Sonia.git.GitSettingsFormPanel = Ext.extend(Sonia.repository.SettingsFormPanel, { - - defaultBranchText: 'Default Branch', - defaultBranchHelpText: 'The default branch which is show first on source or commit view.', - - modifyDefaultConfig: function(config){ - if (this.item) { - var position = -1; - for ( var i=0; i= 0) { - config.items.splice(position, 0, defaultBranchComboxBox); - } else { - config.items.push(defaultBranchComboxBox); - } - } - }, - - getDefaultBranch: function(item){ - if (item.properties) { - for ( var i=0; i{0}', - xtype: 'repositoryExtendedInfoPanel' - }); - main.registerSettingsForm('git', { - xtype: 'gitSettingsForm' - }); -}); - -// register panel - -registerConfigPanel({ - xtype : 'gitConfigPanel' -}); - -// register type icon - -Sonia.repository.typeIcons['git'] = 'resources/images/icons/16x16/git.png'; diff --git a/scm-plugins/scm-git-plugin/yarn.lock b/scm-plugins/scm-git-plugin/yarn.lock index 7c78c61b03..cc31e7d80d 100644 --- a/scm-plugins/scm-git-plugin/yarn.lock +++ b/scm-plugins/scm-git-plugin/yarn.lock @@ -606,9 +606,9 @@ lodash "^4.17.10" to-fast-properties "^2.0.0" -"@scm-manager/ui-bundler@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" +"@scm-manager/ui-bundler@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.4.tgz#0191a026d25b826692bccbc2b76d550388dd5528" dependencies: "@babel/core" "^7.0.0-rc.2" "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" @@ -623,6 +623,7 @@ budo "^11.3.2" colors "^1.3.1" commander "^2.17.1" + fast-xml-parser "^3.12.0" jest "^23.5.0" jest-junit "^5.1.0" node-mkdirs "^0.0.1" @@ -2134,6 +2135,12 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" +fast-xml-parser@^3.12.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.12.0.tgz#84ddcd98ca005f94e99af3ac387adc32ffb239d8" + dependencies: + nimnjs "^1.3.2" + fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" @@ -3764,6 +3771,21 @@ nice-try@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" +nimn-date-parser@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/nimn-date-parser/-/nimn-date-parser-1.0.0.tgz#4ce55d1fd5ea206bbe82b76276f7b7c582139351" + +nimn_schema_builder@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/nimn_schema_builder/-/nimn_schema_builder-1.1.0.tgz#b370ccf5b647d66e50b2dcfb20d0aa12468cd247" + +nimnjs@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/nimnjs/-/nimnjs-1.3.2.tgz#a6a877968d87fad836375a4f616525e55079a5ba" + dependencies: + nimn-date-parser "^1.0.0" + nimn_schema_builder "^1.0.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" diff --git a/scm-plugins/scm-hg-plugin/package.json b/scm-plugins/scm-hg-plugin/package.json index ff7e9ab6b3..79ce34010f 100644 --- a/scm-plugins/scm-hg-plugin/package.json +++ b/scm-plugins/scm-hg-plugin/package.json @@ -8,6 +8,6 @@ "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.3" + "@scm-manager/ui-bundler": "^0.0.4" } } diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/plugin.xml b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/plugin.xml index 22dd3dbdb5..1d0b05c4a8 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/plugin.xml +++ b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/plugin.xml @@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. http://bitbucket.org/sdorra/scm-manager - +jo --> @@ -42,7 +42,7 @@ --> - + 2 @@ -61,9 +61,4 @@ ${project.parent.version} - - - - - diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js deleted file mode 100644 index 9a42c5eb1d..0000000000 --- a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js +++ /dev/null @@ -1,449 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Ext.ns("Sonia.hg"); - -Sonia.hg.ConfigWizard = Ext.extend(Ext.Window,{ - - hgConfig: null, - title: 'Mercurial Configuration Wizard', - - initComponent: function(){ - - this.addEvents('finish'); - - var config = { - title: this.title, - layout: 'fit', - width: 420, - height: 140, - closable: true, - resizable: true, - plain: true, - border: false, - modal: true, - bodyCssClass: 'x-panel-mc', - items: [{ - id: 'hgConfigWizardPanel', - xtype: 'hgConfigWizardPanel', - hgConfig: this.hgConfig, - listeners: { - finish: { - fn: this.onFinish, - scope: this - } - } - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.hg.ConfigWizard.superclass.initComponent.apply(this, arguments); - }, - - onFinish: function(config){ - this.fireEvent('finish', config); - this.close(); - } - -}); - -Sonia.hg.InstallationJsonReader = function(){ - this.RecordType = Ext.data.Record.create([{ - name: "path", - mapping: "path", - type: "string" - }]); -}; - -Ext.extend(Sonia.hg.InstallationJsonReader, Ext.data.JsonReader, { - - readRecords: function(o){ - this.jsonData = o; - - if (debug){ - console.debug('read installation data from json'); - console.debug(o); - } - - var records = []; - var paths = o.path; - for ( var i=0; i
\ - {id} (hg: {hg-version}, py: {python-version}, size: {size:fileSize})\ -
', - - // text - backText: 'Back', - nextText: 'Next', - finishText: 'Finish', - configureLocalText: 'Configure local installation', - configureRemoteText: 'Download and install', - loadingText: 'Loading ...', - hgInstallationText: 'Mercurial Installation', - pythonInstallationText: 'Python Installation', - hgPackageText: 'Mercurial Package', - errorTitleText: 'Error', - packageInstallationFailedText: 'Package installation failed', - installPackageText: 'install mercurial package {0}', - - initComponent: function(){ - this.addEvents('finish'); - - var packageStore = new Ext.data.JsonStore({ - storeId: 'pkgStore', - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'config/repositories/hg/packages', - disableCaching: false - }), - fields: [ 'id', 'hg-version', 'python-version', 'size' ], - root: 'package', - listeners: { - load: { - fn: this.checkIfPackageAvailable, - scope: this - } - } - }); - - var hgInstallationStore = new Ext.data.Store({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'config/repositories/hg/installations/hg' - }), - fields: [ 'path' ], - reader: new Sonia.hg.InstallationJsonReader(), - autoLoad: true, - autoDestroy: true - }); - - var pythonInstallationStore = new Ext.data.Store({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'config/repositories/hg/installations/python' - }), - fields: [ 'path' ], - reader: new Sonia.hg.InstallationJsonReader(), - autoLoad: true, - autoDestroy: true - }); - - var config = { - layout: 'card', - activeItem: 0, - bodyStyle: 'padding: 5px', - defaults: { - bodyCssClass: 'x-panel-mc', - border: false, - labelWidth: 120, - width: 250 - }, - bbar: ['->',{ - id: 'move-prev', - text: this.backText, - handler: this.navHandler.createDelegate(this, [-1]), - disabled: true, - scope: this - },{ - id: 'move-next', - text: this.nextText, - handler: this.navHandler.createDelegate(this, [1]), - scope: this - },{ - id: 'finish', - text: this.finishText, - handler: this.applyChanges, - scope: this, - disabled: true - }], - items: [{ - id: 'cod', - items: [{ - id: 'configureOrDownload', - xtype: 'radiogroup', - name: 'configureOrDownload', - columns: 1, - items: [{ - boxLabel: this.configureLocalText, - name: 'cod', - inputValue: 'localInstall', - checked: true - },{ - id: 'remoteInstallRadio', - boxLabel: this.configureRemoteText, - name: 'cod', - inputValue: 'remoteInstall', - disabled: true - }] - }], - listeners: { - render: { - fn: function(panel){ - panel.body.mask(this.loadingText); - var store = Ext.StoreMgr.lookup('pkgStore'); - store.load.defer(100, store); - }, - scope: this - } - } - },{ - id: 'localInstall', - layout: 'form', - defaults: { - width: 250 - }, - items: [{ - id: 'mercurial', - fieldLabel: this.hgInstallationText, - name: 'mercurial', - xtype: 'combo', - readOnly: false, - triggerAction: 'all', - lazyRender: true, - mode: 'local', - editable: true, - store: hgInstallationStore, - valueField: 'path', - displayField: 'path', - allowBlank: false, - value: this.hgConfig.hgBinary - },{ - id: 'python', - fieldLabel: this.pythonInstallationText, - name: 'python', - xtype: 'combo', - readOnly: false, - triggerAction: 'all', - lazyRender: true, - mode: 'local', - editable: true, - store: pythonInstallationStore, - valueField: 'path', - displayField: 'path', - allowBlank: false, - value: this.hgConfig.pythonBinary - }] - },{ - id: 'remoteInstall', - layout: 'form', - defaults: { - width: 250 - }, - items: [{ - id: 'package', - fieldLabel: this.hgPackageText, - name: 'package', - xtype: 'combo', - readOnly: false, - triggerAction: 'all', - lazyRender: true, - mode: 'local', - editable: false, - store: packageStore, - valueField: 'id', - displayField: 'id', - allowBlank: false, - tpl: this.packageTemplate, - listeners: { - select: function(){ - Ext.getCmp('finish').setDisabled(false); - } - } - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.hg.ConfigWizardPanel.superclass.initComponent.apply(this, arguments); - }, - - checkIfPackageAvailable: function(store){ - Ext.getCmp('cod').body.unmask(); - var c = store.getTotalCount(); - if ( debug ){ - console.debug( "found " + c + " package(s)" ); - } - if ( c > 0 ){ - Ext.getCmp('remoteInstallRadio').setDisabled(false); - } - }, - - navHandler: function(direction){ - var layout = this.getLayout(); - var id = layout.activeItem.id; - - var next = -1; - - if ( id === 'cod' && direction === 1 ){ - var v = Ext.getCmp('configureOrDownload').getValue().getRawValue(); - var df = false; - if ( v === 'localInstall' ){ - next = 1; - } else if ( v === 'remoteInstall' ){ - next = 2; - df = true; - } - Ext.getCmp('move-prev').setDisabled(false); - Ext.getCmp('move-next').setDisabled(true); - Ext.getCmp('finish').setDisabled(df); - } - else if (direction === -1 && (id === 'localInstall' || id === 'remoteInstall')) { - next = 0; - Ext.getCmp('move-prev').setDisabled(true); - Ext.getCmp('move-next').setDisabled(false); - Ext.getCmp('finish').setDisabled(true); - } - - if ( next >= 0 ){ - layout.setActiveItem(next); - } - }, - - applyChanges: function(){ - var v = Ext.getCmp('configureOrDownload').getValue().getRawValue(); - if ( v === 'localInstall' ){ - this.applyLocalConfiguration(); - } else if ( v === 'remoteInstall' ){ - this.applyRemoteConfiguration(); - } - }, - - applyRemoteConfiguration: function(){ - if ( debug ){ - console.debug( "apply remote configuration" ); - } - - var pkg = Ext.getCmp('package').getValue(); - if ( debug ){ - console.debug( 'install mercurial package ' + pkg ); - } - - var lbox = Ext.MessageBox.show({ - title: this.loadingText, - msg: String.format(this.installPackageText, pkg), - width: 300, - wait: true, - animate: true, - progress: true, - closable: false - }); - - Ext.Ajax.request({ - url: restUrl + 'config/repositories/hg/packages/' + pkg, - method: 'POST', - scope: this, - timeout: 900000, // 15min - success: function(){ - if ( debug ){ - console.debug('package successfully installed'); - } - lbox.hide(); - this.fireEvent('finish'); - }, - failure: function(){ - if ( debug ){ - console.debug('package installation failed'); - } - lbox.hide(); - Ext.MessageBox.show({ - title: this.errorTitleText, - msg: this.packageInstallationFailedText, - buttons: Ext.MessageBox.OK, - icon:Ext.MessageBox.ERROR - }); - } - }); - - - }, - - applyLocalConfiguration: function(){ - if ( debug ){ - console.debug( "apply remote configuration" ); - } - var mercurial = Ext.getCmp('mercurial').getValue(); - var python = Ext.getCmp('python').getValue(); - if (debug){ - console.debug( 'configure mercurial=' + mercurial + " and python=" + python ); - } - delete this.hgConfig.pythonPath; - delete this.hgConfig.useOptimizedBytecode; - this.hgConfig.hgBinary = mercurial; - this.hgConfig.pythonBinary = python; - - if ( debug ){ - console.debug( this.hgConfig ); - } - - this.fireEvent('finish', this.hgConfig); - } - -}); - -// register xtype -Ext.reg('hgConfigWizardPanel', Sonia.hg.ConfigWizardPanel); - - -// i18n - -if ( i18n && i18n.country === 'de' ){ - - Ext.override(Sonia.hg.ConfigWizardPanel, { - - backText: 'Zurück', - nextText: 'Weiter', - finishText: 'Fertigstellen', - configureLocalText: 'Eine lokale Installation Konfigurieren', - configureRemoteText: 'Herunterladen und installieren', - loadingText: 'Lade ...', - hgInstallationText: 'Mercurial Installation', - pythonInstallationText: 'Python Installation', - hgPackageText: 'Mercurial Package', - errorTitleText: 'Fehler', - packageInstallationFailedText: 'Package Installation fehlgeschlagen', - installPackageText: 'Installiere Mercurial-Package {0}' - - }); - -} \ No newline at end of file diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config.js b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config.js deleted file mode 100644 index 3fe5202a10..0000000000 --- a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config.js +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Ext.ns("Sonia.hg"); - -Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, { - - // labels - titleText: 'Mercurial Settings', - hgBinaryText: 'HG Binary', - pythonBinaryText: 'Python Binary', - pythonPathText: 'Python Module Search Path', - repositoryDirectoryText: 'Repository directory', - useOptimizedBytecodeText: 'Optimized Bytecode (.pyo)', - configWizardText: 'Start Configuration Wizard', - configWizardLabelText: 'Start Configuration Wizard', - encodingText: 'Encoding', - disabledText: 'Disabled', - showRevisionInIdText: 'Show Revision', - - // helpText - hgBinaryHelpText: 'Location of Mercurial binary.', - pythonBinaryHelpText: 'Location of Python binary.', - pythonPathHelpText: 'Python Module Search Path (PYTHONPATH).', - repositoryDirectoryHelpText: 'Location of the Mercurial repositories.', - useOptimizedBytecodeHelpText: 'Use the Python "-O" switch.', - encodingHelpText: 'Repository Encoding.', - disabledHelpText: 'Enable or disable the Mercurial plugin. \n\ - Note you have to reload the page, after changing this value.', - showRevisionInIdHelpText: 'Show revision as part of the node id. Note: \n\ - You have to restart the ApplicationServer to affect cached changesets.', - - initComponent: function(){ - - var config = { - title : this.titleText, - items : [{ - xtype : 'textfield', - fieldLabel : this.hgBinaryText, - name : 'hgBinary', - allowBlank : false, - helpText: this.hgBinaryHelpText - },{ - xtype : 'textfield', - fieldLabel : this.pythonBinaryText, - name : 'pythonBinary', - allowBlank : false, - helpText: this.pythonBinaryHelpText - },{ - xtype : 'textfield', - fieldLabel : this.pythonPathText, - name : 'pythonPath', - helpText: this.pythonPathHelpText - },{ - xtype: 'textfield', - name: 'repositoryDirectory', - fieldLabel: this.repositoryDirectoryText, - helpText: this.repositoryDirectoryHelpText, - allowBlank : false - },{ - xtype: 'textfield', - name: 'encoding', - fieldLabel: this.encodingText, - helpText: this.encodingHelpText, - allowBlank : false - },{ - xtype: 'checkbox', - name: 'useOptimizedBytecode', - fieldLabel: this.useOptimizedBytecodeText, - inputValue: 'true', - helpText: this.useOptimizedBytecodeHelpText - },{ - xtype: 'checkbox', - name: 'showRevisionInId', - fieldLabel: this.showRevisionInIdText, - inputValue: 'true', - helpText: this.showRevisionInIdHelpText - },{ - xtype: 'checkbox', - name: 'disabled', - fieldLabel: this.disabledText, - inputValue: 'true', - helpText: this.disabledHelpText - },{ - xtype: 'button', - text: this.configWizardText, - fieldLabel: this.configWizardLabelText, - handler: function(){ - var config = this.getForm().getValues(); - var wizard = new Sonia.hg.ConfigWizard({ - hgConfig: config - }); - wizard.on('finish', function(config){ - var self = Ext.getCmp('hgConfigForm'); - if ( config ){ - if (debug){ - console.debug( 'load config from wizard and submit to server' ); - } - self.loadConfig( self.el, 'config/repositories/hg/auto-configuration', 'POST', config ); - } else { - if (debug){ - console.debug( 'reload config' ); - } - self.onLoad(self.el); - } - }, this); - wizard.show(); - }, - scope: this - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.hg.ConfigPanel.superclass.initComponent.apply(this, arguments); - }, - - onSubmit: function(values){ - this.el.mask(this.submitText); - Ext.Ajax.request({ - url: restUrl + 'config/repositories/hg', - method: 'POST', - jsonData: values, - scope: this, - disableCaching: true, - success: function(){ - this.el.unmask(); - }, - failure: function(){ - this.el.unmask(); - alert('failure'); - } - }); - }, - - onLoad: function(el){ - this.loadConfig(el, 'config/repositories/hg', 'GET'); - }, - - loadConfig: function(el, url, method, config){ - var tid = setTimeout( function(){ el.mask(this.loadingText); }, 100); - Ext.Ajax.request({ - url: restUrl + url, - method: method, - jsonData: config, - scope: this, - disableCaching: true, - success: function(response){ - var obj = Ext.decode(response.responseText); - this.load(obj); - clearTimeout(tid); - el.unmask(); - }, - failure: function(){ - el.unmask(); - clearTimeout(tid); - alert('failure'); - } - }); - } - -}); - -Ext.reg("hgConfigPanel", Sonia.hg.ConfigPanel); - -// i18n - -if ( i18n && i18n.country === 'de' ){ - - Ext.override(Sonia.hg.ConfigPanel, { - - // labels - titleText: 'Mercurial Einstellungen', - hgBinaryText: 'HG Pfad', - pythonBinaryText: 'Python Pfad', - pythonPathText: 'Python Modul Suchpfad', - repositoryDirectoryText: 'Repository-Verzeichnis', - useOptimizedBytecodeText: 'Optimierter Bytecode (.pyo)', - autoConfigText: 'Einstellungen automatisch laden', - autoConfigLabelText: 'Automatische Einstellung', - configWizardText: 'Konfigurations-Assistenten starten', - configWizardLabelText: 'Konfigurations-Assistent', - disabledText: 'Deaktivieren', - showRevisionInIdText: 'Zeige Revision an', - - // helpText - hgBinaryHelpText: 'Pfad zum "hg" Befehl.', - pythonBinaryHelpText: 'Pfad zum "python" Befehl.', - pythonPathHelpText: 'Python Modul Suchpfad (PYTHONPATH).', - repositoryDirectoryHelpText: 'Verzeichnis der Mercurial-Repositories.', - useOptimizedBytecodeHelpText: 'Optimierten Bytecode verwenden (python -O).', - disabledHelpText: 'Aktivieren oder deaktivieren des Mercurial Plugins.\n\ - Die Seite muss neu geladen werden wenn dieser Wert geändert wird.', - showRevisionInIdHelpText: 'Zeige die Revision als teil der NodeId an. \n\ - Der ApplicationServer muss neugestartet werden um zwischengespeicherte\n\ - Changesets zuändern.' - }); - -} - -// register information panel - -initCallbacks.push(function(main){ - main.registerInfoPanel('hg', { - checkoutTemplate: 'hg clone {0}', - xtype: 'repositoryExtendedInfoPanel' - }); -}); - -// register config panel - -registerConfigPanel({ - id: 'hgConfigForm', - xtype : 'hgConfigPanel' -}); - -// register type icon - -Sonia.repository.typeIcons['hg'] = 'resources/images/icons/16x16/mercurial.png'; - -// override ChangesetViewerGrid to render changeset id's with revisions - -Ext.override(Sonia.repository.ChangesetViewerGrid, { - - isMercurialRepository: function(){ - return this.repository.type === 'hg'; - }, - - getChangesetId: function(id, record){ - if ( this.isMercurialRepository() ){ - var rev = Sonia.util.getProperty(record.get('properties'), 'hg.rev'); - if ( rev ){ - id = rev + ':' + id; - } - } - return id; - }, - - getParentIds: function(id, record){ - var parents = record.get('parents'); - if ( this.isMercurialRepository() ){ - if ( parents && parents.length > 0 ){ - var properties = record.get('properties'); - var rev = Sonia.util.getProperty(properties, 'hg.p1.rev'); - if (rev){ - parents[0] = rev + ':' + parents[0]; - } - if ( parents.length > 1 ){ - rev = Sonia.util.getProperty(properties, 'hg.p2.rev'); - if (rev){ - parents[1] = rev + ':' + parents[1]; - } - } - } - } - return parents; - } - -}); \ No newline at end of file diff --git a/scm-plugins/scm-hg-plugin/yarn.lock b/scm-plugins/scm-hg-plugin/yarn.lock index 7c4ef63c1e..07c1653563 100644 --- a/scm-plugins/scm-hg-plugin/yarn.lock +++ b/scm-plugins/scm-hg-plugin/yarn.lock @@ -606,9 +606,9 @@ lodash "^4.17.10" to-fast-properties "^2.0.0" -"@scm-manager/ui-bundler@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" +"@scm-manager/ui-bundler@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.4.tgz#0191a026d25b826692bccbc2b76d550388dd5528" dependencies: "@babel/core" "^7.0.0-rc.2" "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" @@ -623,6 +623,7 @@ budo "^11.3.2" colors "^1.3.1" commander "^2.17.1" + fast-xml-parser "^3.12.0" jest "^23.5.0" jest-junit "^5.1.0" node-mkdirs "^0.0.1" @@ -2130,6 +2131,12 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" +fast-xml-parser@^3.12.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.12.0.tgz#84ddcd98ca005f94e99af3ac387adc32ffb239d8" + dependencies: + nimnjs "^1.3.2" + fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" @@ -3760,6 +3767,21 @@ nice-try@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" +nimn-date-parser@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/nimn-date-parser/-/nimn-date-parser-1.0.0.tgz#4ce55d1fd5ea206bbe82b76276f7b7c582139351" + +nimn_schema_builder@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/nimn_schema_builder/-/nimn_schema_builder-1.1.0.tgz#b370ccf5b647d66e50b2dcfb20d0aa12468cd247" + +nimnjs@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/nimnjs/-/nimnjs-1.3.2.tgz#a6a877968d87fad836375a4f616525e55079a5ba" + dependencies: + nimn-date-parser "^1.0.0" + nimn_schema_builder "^1.0.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" diff --git a/scm-plugins/scm-svn-plugin/package.json b/scm-plugins/scm-svn-plugin/package.json index 195897cbbe..c073279b97 100644 --- a/scm-plugins/scm-svn-plugin/package.json +++ b/scm-plugins/scm-svn-plugin/package.json @@ -8,6 +8,6 @@ "@scm-manager/ui-extensions": "^0.0.6" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.3" + "@scm-manager/ui-bundler": "^0.0.4" } } diff --git a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml index 86b4f4f843..302abd2b10 100644 --- a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml +++ b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml @@ -59,9 +59,5 @@ ${project.parent.version} - - - - - \ No newline at end of file + diff --git a/scm-plugins/scm-svn-plugin/src/main/resources/sonia/scm/svn.config.js b/scm-plugins/scm-svn-plugin/src/main/resources/sonia/scm/svn.config.js deleted file mode 100644 index e379ed38f6..0000000000 --- a/scm-plugins/scm-svn-plugin/src/main/resources/sonia/scm/svn.config.js +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Ext.ns("Sonia.svn"); - -Sonia.svn.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, { - - // labels - titleText: 'Subversion Settings', - repositoryDirectoryText: 'Repository directory', - noneCompatibility: 'No compatibility modus', - pre14CompatibleText: 'Pre 1.4 Compatible', - pre15CompatibleText: 'Pre 1.5 Compatible', - pre16CompatibleText: 'Pre 1.6 Compatible', - pre17CompatibleText: 'Pre 1.7 Compatible', - with17CompatibleText: 'With 1.7 Compatible', - enableGZipText: 'Enable GZip Encoding', - disabledText: 'Disabled', - - // helpTexts - repositoryDirectoryHelpText: 'Location of the Suberversion repositories.', - disabledHelpText: 'Enable or disable the Subversion plugin.\n\ - Note you have to reload the page, after changing this value.', - enableGZipHelpText: 'Enable GZip encoding for svn responses.', - - initComponent: function(){ - - var config = { - title : this.titleText, - configUrl: restUrl + 'config/repositories/svn', - items : [{ - xtype: 'textfield', - name: 'repositoryDirectory', - fieldLabel: this.repositoryDirectoryText, - helpText: this.repositoryDirectoryHelpText, - allowBlank : false - },{ - xtype: 'radiogroup', - name: 'compatibility', - columns: 1, - items: [{ - boxLabel: this.noneCompatibility, - inputValue: 'NONE', - name: 'compatibility' - },{ - boxLabel: this.pre14CompatibleText, - inputValue: 'PRE14', - name: 'compatibility' - },{ - boxLabel: this.pre15CompatibleText, - inputValue: 'PRE15', - name: 'compatibility' - },{ - boxLabel: this.pre16CompatibleText, - inputValue: 'PRE16', - name: 'compatibility' - },{ - boxLabel: this.pre17CompatibleText, - inputValue: 'PRE17', - name: 'compatibility' - },{ - boxLabel: this.with17CompatibleText, - inputValue: 'WITH17', - name: 'compatibility' - }] - },{ - xtype: 'checkbox', - name: 'enable-gzip', - fieldLabel: this.enableGZipText, - inputValue: 'true', - helpText: this.enableGZipHelpText - },{ - xtype: 'checkbox', - name: 'disabled', - fieldLabel: this.disabledText, - inputValue: 'true', - helpText: this.disabledHelpText - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.svn.ConfigPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("svnConfigPanel", Sonia.svn.ConfigPanel); - -// i18n - -if ( i18n && i18n.country === 'de' ){ - - Ext.override(Sonia.svn.ConfigPanel, { - - // labels - titleText: 'Subversion Einstellungen', - repositoryDirectoryText: 'Repository-Verzeichnis', - noneCompatibility: 'Kein Kompatiblitätsmodus', - pre14CompatibleText: 'Mit Versionen vor 1.4 kompatibel', - pre15CompatibleText: 'Mit Versionen vor 1.5 kompatibel', - pre16CompatibleText: 'Mit Versionen vor 1.6 kompatibel', - pre17CompatibleText: 'Mit Versionen vor 1.7 kompatibel', - with17CompatibleText: 'Mit Version 1.7 kompatibel', - disabledText: 'Deaktivieren', - - // helpTexts - repositoryDirectoryHelpText: 'Verzeichnis der Subversion-Repositories.', - disabledHelpText: 'Aktivieren oder deaktivieren des Subversion Plugins.\n\ - Die Seite muss neu geladen werden wenn dieser Wert geändert wird.' - }); - -} - -// register information panel - -initCallbacks.push(function(main){ - main.registerInfoPanel('svn', { - checkoutTemplate: 'svn checkout {0}', - xtype: 'repositoryExtendedInfoPanel' - }); -}); - -// register panel - -registerConfigPanel({ - xtype : 'svnConfigPanel' -}); - -// register type icon - -Sonia.repository.typeIcons['svn'] = 'resources/images/icons/16x16/subversion.png'; diff --git a/scm-plugins/scm-svn-plugin/yarn.lock b/scm-plugins/scm-svn-plugin/yarn.lock index 7c4ef63c1e..07c1653563 100644 --- a/scm-plugins/scm-svn-plugin/yarn.lock +++ b/scm-plugins/scm-svn-plugin/yarn.lock @@ -606,9 +606,9 @@ lodash "^4.17.10" to-fast-properties "^2.0.0" -"@scm-manager/ui-bundler@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" +"@scm-manager/ui-bundler@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.4.tgz#0191a026d25b826692bccbc2b76d550388dd5528" dependencies: "@babel/core" "^7.0.0-rc.2" "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" @@ -623,6 +623,7 @@ budo "^11.3.2" colors "^1.3.1" commander "^2.17.1" + fast-xml-parser "^3.12.0" jest "^23.5.0" jest-junit "^5.1.0" node-mkdirs "^0.0.1" @@ -2130,6 +2131,12 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" +fast-xml-parser@^3.12.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.12.0.tgz#84ddcd98ca005f94e99af3ac387adc32ffb239d8" + dependencies: + nimnjs "^1.3.2" + fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" @@ -3760,6 +3767,21 @@ nice-try@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" +nimn-date-parser@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/nimn-date-parser/-/nimn-date-parser-1.0.0.tgz#4ce55d1fd5ea206bbe82b76276f7b7c582139351" + +nimn_schema_builder@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/nimn_schema_builder/-/nimn_schema_builder-1.1.0.tgz#b370ccf5b647d66e50b2dcfb20d0aa12468cd247" + +nimnjs@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/nimnjs/-/nimnjs-1.3.2.tgz#a6a877968d87fad836375a4f616525e55079a5ba" + dependencies: + nimn-date-parser "^1.0.0" + nimn_schema_builder "^1.0.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" diff --git a/scm-webapp/pom.xml b/scm-webapp/pom.xml index c404aa5d84..aac1450caf 100644 --- a/scm-webapp/pom.xml +++ b/scm-webapp/pom.xml @@ -509,7 +509,7 @@ - / + /scm ${project.basedir}/src/main/conf/jetty.xml 0 diff --git a/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java b/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java index 7ee89ba16e..1d627de8ed 100644 --- a/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java +++ b/scm-webapp/src/main/java/sonia/scm/ScmServletModule.java @@ -63,10 +63,6 @@ import sonia.scm.repository.api.HookContextFactory; import sonia.scm.repository.api.RepositoryServiceFactory; import sonia.scm.repository.spi.HookEventFacade; import sonia.scm.repository.xml.XmlRepositoryDAO; -import sonia.scm.resources.DefaultResourceManager; -import sonia.scm.resources.DevelopmentResourceManager; -import sonia.scm.resources.ResourceManager; -import sonia.scm.resources.ScriptResourceServlet; import sonia.scm.schedule.QuartzScheduler; import sonia.scm.schedule.Scheduler; import sonia.scm.security.*; @@ -266,16 +262,6 @@ public class ScmServletModule extends ServletModule transformers.addBinding().to(JsonContentTransformer.class); bind(AdvancedHttpClient.class).to(DefaultAdvancedHttpClient.class); - // bind resourcemanager - if (context.getStage() == Stage.DEVELOPMENT) - { - bind(ResourceManager.class, DevelopmentResourceManager.class); - } - else - { - bind(ResourceManager.class, DefaultResourceManager.class); - } - // bind repository service factory bind(RepositoryServiceFactory.class); @@ -295,9 +281,6 @@ public class ScmServletModule extends ServletModule // debug servlet serve(PATTERN_DEBUG).with(DebugServlet.class); - // plugin resources - serve(PATTERN_PLUGIN_SCRIPT).with(ScriptResourceServlet.class); - // template serve(PATTERN_INDEX, "/").with(TemplateServlet.class); diff --git a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResource.java b/scm-webapp/src/main/java/sonia/scm/resources/AbstractResource.java deleted file mode 100644 index d5b21befe6..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResource.java +++ /dev/null @@ -1,215 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import com.google.common.io.Resources; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import sonia.scm.plugin.PluginLoader; -import sonia.scm.util.Util; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; -import java.io.OutputStream; - -import java.net.URL; - -import java.util.Collections; -import java.util.List; - -/** - * - * @author Sebastian Sdorra - */ -public abstract class AbstractResource implements Resource -{ - - /** - * the logger for AbstractResource - */ - private static final Logger logger = - LoggerFactory.getLogger(AbstractResource.class); - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * @param pluginLoader - * @param resources - * @param resourceHandlers - */ - public AbstractResource(PluginLoader pluginLoader, List resources, - List resourceHandlers) - { - this.pluginLoader = pluginLoader; - this.resources = resources; - this.resourceHandlers = resourceHandlers; - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param stream - * - * @throws IOException - */ - protected void appendResources(OutputStream stream) throws IOException - { - if (Util.isNotEmpty(resources)) - { - for (String resource : resources) - { - appendResource(stream, resource); - } - } - - if (Util.isNotEmpty(resourceHandlers)) - { - Collections.sort(resourceHandlers, new ResourceHandlerComparator()); - - for (ResourceHandler resourceHandler : resourceHandlers) - { - processResourceHandler(stream, resourceHandler); - } - } - } - - /** - * Method description - * - * - * @param stream - * @param path - * - * @throws IOException - */ - private void appendResource(OutputStream stream, String path) - throws IOException - { - URL resource = getResourceAsURL(path); - - if (resource != null) - { - Resources.copy(resource, stream); - } - else if (logger.isWarnEnabled()) - { - logger.warn("could not find resource {}", path); - } - } - - /** - * Method description - * - * - * @param stream - * @param resourceHandler - * - * @throws IOException - */ - private void processResourceHandler(OutputStream stream, - ResourceHandler resourceHandler) - throws IOException - { - if (resourceHandler.getType() == getType()) - { - if (logger.isTraceEnabled()) - { - logger.trace("process resource handler {}", resourceHandler.getClass()); - } - - URL resource = resourceHandler.getResource(); - - if (resource != null) - { - Resources.copy(resource, stream); - } - else if (logger.isDebugEnabled()) - { - logger.debug("resource handler {} does not return a resource", - resourceHandler.getClass()); - } - } - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param path - * - * @return - */ - private URL getResourceAsURL(String path) - { - URL resource = null; - ClassLoader classLoader = pluginLoader.getUberClassLoader(); - - if (classLoader != null) - { - String classLoaderResource = path; - - if (classLoaderResource.startsWith("/")) - { - classLoaderResource = classLoaderResource.substring(1); - } - - resource = classLoader.getResource(classLoaderResource); - } - - return resource; - } - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - protected final List resourceHandlers; - - /** Field description */ - protected final List resources; - - /** Field description */ - private final PluginLoader pluginLoader; -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java b/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java deleted file mode 100644 index 4772acdf0c..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceManager.java +++ /dev/null @@ -1,314 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.plugin.Plugin; -import sonia.scm.plugin.PluginLoader; -import sonia.scm.plugin.PluginResources; - -//~--- JDK imports ------------------------------------------------------------ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; -import java.util.stream.Collectors; - -import javax.servlet.ServletContext; -import sonia.scm.plugin.PluginWrapper; - -/** - * - * @author Sebastian Sdorra - */ -public abstract class AbstractResourceManager implements ResourceManager -{ - - /** - * Constructs ... - * - * @param pluginLoader - * @param resourceHandlers - */ - protected AbstractResourceManager(PluginLoader pluginLoader, - Set resourceHandlers) - { - this.pluginLoader = pluginLoader; - this.resourceHandlers = resourceHandlers; - collectResources(resourceMap); - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param resourceMap - */ - protected abstract void collectResources(Map resourceMap); - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @param type - * @param name - * - * @return - */ - @Override - public Resource getResource(ResourceType type, String name) - { - return resourceMap.get(new ResourceKey(name, type)); - } - - /** - * Method description - * - * - * @param type - * - * @return - */ - @Override - public List getResources(ResourceType type) - { - List resources = new ArrayList<>(); - - for (Entry e : resourceMap.entrySet()) - { - if (e.getKey().getType() == type) - { - resources.add(e.getValue()); - } - } - - Collections.sort(resources, ResourceNameComparator.INSTANCE); - - return resources; - } - - /** - * Method description - * - * - * @return - */ - protected List getScriptResources() - { - List resources = new ArrayList<>(); - Collection wrappers = pluginLoader.getInstalledPlugins(); - - if (wrappers != null) - { - for (PluginWrapper plugin : wrappers) - { - processPlugin(resources, plugin.getPlugin()); - } - } - - // fix order of script resources, see https://goo.gl/ok03l4 - Collections.sort(resources); - - return resources; - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param resources - * @param plugin - */ - private void processPlugin(List resources, Plugin plugin) - { - PluginResources pluginResources = plugin.getResources(); - - if (pluginResources != null) - { - Set scriptResources = pluginResources.getScriptResources(); - - if (scriptResources != null) - { - // filter new resources and keep only the old ones, which are starting with a / - List filtered = scriptResources.stream() - .filter((res) -> res.startsWith("/")) - .collect(Collectors.toList()); - - resources.addAll(filtered); - } - } - } - - //~--- inner classes -------------------------------------------------------- - - /** - * Class description - * - * - * @version Enter version here..., 12/02/03 - * @author Enter your name here... - */ - protected static class ResourceKey - { - - /** - * Constructs ... - * - * - * @param name - * @param type - */ - public ResourceKey(String name, ResourceType type) - { - this.name = name; - this.type = type; - } - - //~--- methods ------------------------------------------------------------ - - /** - * Method description - * - * - * @param obj - * - * @return - */ - @Override - public boolean equals(Object obj) - { - if (obj == null) - { - return false; - } - - if (getClass() != obj.getClass()) - { - return false; - } - - final ResourceKey other = (ResourceKey) obj; - - if ((this.name == null) - ? (other.name != null) - : !this.name.equals(other.name)) - { - return false; - } - - return this.type == other.type; - } - - /** - * Method description - * - * - * @return - */ - @Override - public int hashCode() - { - int hash = 7; - - hash = 53 * hash + ((this.name != null) - ? this.name.hashCode() - : 0); - hash = 53 * hash + ((this.type != null) - ? this.type.hashCode() - : 0); - - return hash; - } - - //~--- get methods -------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - public String getName() - { - return name; - } - - /** - * Method description - * - * - * @return - */ - public ResourceType getType() - { - return type; - } - - //~--- fields ------------------------------------------------------------- - - /** Field description */ - private final String name; - - /** Field description */ - private final ResourceType type; - } - - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - protected PluginLoader pluginLoader; - - /** Field description */ - protected Set resourceHandlers; - - /** Field description */ - protected Map resourceMap = new HashMap<>(); - - /** Field description */ - protected ServletContext servletContext; -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceServlet.java b/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceServlet.java deleted file mode 100644 index 74a6291a98..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/AbstractResourceServlet.java +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import sonia.scm.util.HttpUtil; -import sonia.scm.util.IOUtil; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; -import java.io.OutputStream; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * - * @author Sebastian Sdorra - */ -public abstract class AbstractResourceServlet extends HttpServlet -{ - - /** Field description */ - private static final long serialVersionUID = -1774434741744054387L; - - /** - * the logger for AbstractResourceServlet - */ - private static final Logger logger = - LoggerFactory.getLogger(AbstractResourceServlet.class); - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * @param resourceManager - */ - public AbstractResourceServlet(ResourceManager resourceManager) - { - this.resourceManager = resourceManager; - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - protected abstract ResourceType getType(); - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param request - * @param response - * - * @throws IOException - * @throws ServletException - */ - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException - { - String uri = HttpUtil.getStrippedURI(request); - ResourceType type = getType(); - String nameSeparator = HttpUtil.SEPARATOR_PATH.concat( - type.getExtension()).concat( - HttpUtil.SEPARATOR_PATH); - int index = uri.indexOf(nameSeparator); - - if (index > 0) - { - String name = uri.substring(index + nameSeparator.length()); - Resource resource = resourceManager.getResource(type, name); - - if (resource != null) - { - printResource(response, resource); - } - else - { - if (logger.isWarnEnabled()) - { - logger.warn("no resource with type {} and name {} found", type, name); - } - - response.sendError(HttpServletResponse.SC_NOT_FOUND); - } - } - else - { - response.sendError(HttpServletResponse.SC_NOT_FOUND); - } - } - - /** - * Method description - * - * - * @param response - * @param resource - * - * @throws IOException - */ - private void printResource(HttpServletResponse response, Resource resource) - throws IOException - { - response.setContentType(resource.getType().getContentType()); - - try (OutputStream output = response.getOutputStream()) - { - resource.copyTo(output); - } - } - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - private final ResourceManager resourceManager; -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/DefaultResource.java b/scm-webapp/src/main/java/sonia/scm/resources/DefaultResource.java deleted file mode 100644 index d17b79cfd2..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/DefaultResource.java +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.plugin.PluginLoader; -import sonia.scm.util.ChecksumUtil; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; - -import java.util.List; - -/** - * - * @author Sebastian Sdorra - */ -public final class DefaultResource extends AbstractResource -{ - - /** - * Constructs ... - * - * - * @param pluginLoader - * @param resources - * @param resourceHandlers - * @param type - * - * @throws IOException - */ - public DefaultResource(PluginLoader pluginLoader, List resources, - List resourceHandlers, ResourceType type) - throws IOException - { - super(pluginLoader, resources, resourceHandlers); - this.type = type; - - try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) - { - appendResources(baos); - this.content = baos.toByteArray(); - this.name = ChecksumUtil.createChecksum(this.content).concat(".").concat( - type.getExtension()); - } - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param output - * - * @throws IOException - */ - @Override - public void copyTo(OutputStream output) throws IOException - { - output.write(content); - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - @Override - public String getName() - { - return name; - } - - /** - * Method description - * - * - * @return - */ - @Override - public ResourceType getType() - { - return type; - } - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - private final byte[] content; - - /** Field description */ - private final String name; - - /** Field description */ - private final ResourceType type; -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/DefaultResourceManager.java b/scm-webapp/src/main/java/sonia/scm/resources/DefaultResourceManager.java deleted file mode 100644 index 269e260190..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/DefaultResourceManager.java +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import com.google.common.collect.Lists; -import com.google.inject.Inject; -import com.google.inject.Singleton; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import sonia.scm.plugin.PluginLoader; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; - -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * - * @author Sebastian Sdorra - */ -@Singleton -public class DefaultResourceManager extends AbstractResourceManager -{ - - /** - * the logger for DefaultResourceManager - */ - private static final Logger logger = - LoggerFactory.getLogger(DefaultResourceManager.class); - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * @param pluginLoader - * @param resourceHandlers - */ - @Inject - public DefaultResourceManager(PluginLoader pluginLoader, - Set resourceHandlers) - { - super(pluginLoader, resourceHandlers); - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param resourceMap - */ - @Override - protected void collectResources(Map resourceMap) - { - List resources = getScriptResources(); - - try - { - Resource resource = new DefaultResource(pluginLoader, resources, - Lists.newArrayList(resourceHandlers), - ResourceType.SCRIPT); - - resourceMap.put(new ResourceKey(resource.getName(), ResourceType.SCRIPT), - resource); - } - catch (IOException ex) - { - logger.error("could not collect resources", ex); - } - } -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResource.java b/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResource.java deleted file mode 100644 index a699c4fc23..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResource.java +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import sonia.scm.plugin.PluginLoader; -import sonia.scm.util.HttpUtil; - -//~--- JDK imports ------------------------------------------------------------ - -import java.io.IOException; -import java.io.OutputStream; - -import java.util.List; - -/** - * - * @author Sebastian Sdorra - */ -public final class DevelopmentResource extends AbstractResource -{ - - /** - * Constructs ... - * - * - * @param pluginLoader - * @param resources - * @param resourceHandlers - * @param name - * @param type - */ - public DevelopmentResource(PluginLoader pluginLoader, List resources, - List resourceHandlers, String name, ResourceType type) - { - super(pluginLoader, resources, resourceHandlers); - this.type = type; - - if (name.startsWith(HttpUtil.SEPARATOR_PATH)) - { - name = name.substring(1); - } - - String ext = ".".concat(type.getExtension()); - - if (!name.endsWith(ext)) - { - name = name.concat(ext); - } - - this.name = name; - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param output - * - * @throws IOException - */ - @Override - public void copyTo(OutputStream output) throws IOException - { - appendResources(output); - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - @Override - public String getName() - { - return name; - } - - /** - * Method description - * - * - * @return - */ - @Override - public ResourceType getType() - { - return type; - } - - //~--- fields --------------------------------------------------------------- - - /** Field description */ - private final String name; - - /** Field description */ - private final ResourceType type; -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResourceManager.java b/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResourceManager.java deleted file mode 100644 index c378bb6dae..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/DevelopmentResourceManager.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import com.google.inject.Inject; -import com.google.inject.Singleton; - -import sonia.scm.plugin.PluginLoader; - -//~--- JDK imports ------------------------------------------------------------ - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * - * @author Sebastian Sdorra - */ -@Singleton -public class DevelopmentResourceManager extends AbstractResourceManager -{ - - /** Field description */ - public static final String PREFIX_HANDLER = "handler/"; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * @param pluginLoader - * @param resourceHandlers - */ - @Inject - public DevelopmentResourceManager(PluginLoader pluginLoader, - Set resourceHandlers) - { - super(pluginLoader, resourceHandlers); - } - - //~--- methods -------------------------------------------------------------- - - /** - * Method description - * - * - * @param resourceMap - */ - @Override - @SuppressWarnings("unchecked") - protected void collectResources(Map resourceMap) - { - List scripts = getScriptResources(); - - for (String script : scripts) - { - Resource resource = new DevelopmentResource(pluginLoader, - Arrays.asList(script), Collections.EMPTY_LIST, - script, ResourceType.SCRIPT); - - resourceMap.put(new ResourceKey(resource.getName(), ResourceType.SCRIPT), - resource); - } - - for (ResourceHandler handler : resourceHandlers) - { - String name = handler.getName(); - - if (name.startsWith("/")) - { - name = name.substring(1); - } - - name = PREFIX_HANDLER.concat(name); - resourceMap.put(new ResourceKey(name, ResourceType.SCRIPT), - new DevelopmentResource(pluginLoader, Collections.EMPTY_LIST, - Arrays.asList(handler), name, ResourceType.SCRIPT)); - } - } -} diff --git a/scm-webapp/src/main/java/sonia/scm/resources/ScriptResourceServlet.java b/scm-webapp/src/main/java/sonia/scm/resources/ScriptResourceServlet.java deleted file mode 100644 index d7ccc4747f..0000000000 --- a/scm-webapp/src/main/java/sonia/scm/resources/ScriptResourceServlet.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -package sonia.scm.resources; - -//~--- non-JDK imports -------------------------------------------------------- - -import com.google.inject.Inject; -import com.google.inject.Singleton; - -/** - * - * @author Sebastian Sdorra - */ -@Singleton -public class ScriptResourceServlet extends AbstractResourceServlet -{ - - /** Field description */ - private static final long serialVersionUID = 1279211769033477225L; - - //~--- constructors --------------------------------------------------------- - - /** - * Constructs ... - * - * - * @param resourceManager - */ - @Inject - public ScriptResourceServlet(ResourceManager resourceManager) - { - super(resourceManager); - } - - //~--- get methods ---------------------------------------------------------- - - /** - * Method description - * - * - * @return - */ - @Override - protected ResourceType getType() - { - return ResourceType.SCRIPT; - } -} diff --git a/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java b/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java index 89e6baa685..21a8608e45 100644 --- a/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java +++ b/scm-webapp/src/main/java/sonia/scm/template/TemplateServlet.java @@ -38,30 +38,23 @@ package sonia.scm.template; import com.google.common.collect.ImmutableSet; import com.google.inject.Inject; import com.google.inject.Singleton; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import sonia.scm.SCMContextProvider; import sonia.scm.config.ScmConfiguration; -import sonia.scm.resources.ResourceManager; -import sonia.scm.resources.ResourceType; import sonia.scm.util.IOUtil; -//~--- JDK imports ------------------------------------------------------------ - +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.Writer; - import java.util.HashMap; import java.util.Locale; import java.util.Map; import java.util.Set; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +//~--- JDK imports ------------------------------------------------------------ /** * @@ -100,15 +93,12 @@ public class TemplateServlet extends HttpServlet * @param context * @param templateEngineFactory * @param configuration - * @param resourceManager */ @Inject public TemplateServlet(SCMContextProvider context, - TemplateEngineFactory templateEngineFactory, - ResourceManager resourceManager, ScmConfiguration configuration) + TemplateEngineFactory templateEngineFactory, ScmConfiguration configuration) { this.templateEngineFactory = templateEngineFactory; - this.resourceManager = resourceManager; this.configuration = configuration; this.version = context.getVersion(); } @@ -123,21 +113,17 @@ public class TemplateServlet extends HttpServlet * @param response * * @throws IOException - * @throws ServletException */ @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { - Map params = new HashMap(); + Map params = new HashMap<>(); String contextPath = request.getContextPath(); params.put("contextPath", contextPath); params.put("configuration", configuration); params.put("version", version); - params.put("scripts", resourceManager.getResources(ResourceType.SCRIPT)); - Locale l = request.getLocale(); if (l == null) @@ -242,9 +228,6 @@ public class TemplateServlet extends HttpServlet /** Field description */ private final ScmConfiguration configuration; - /** Field description */ - private final ResourceManager resourceManager; - /** Field description */ private final TemplateEngineFactory templateEngineFactory; diff --git a/scm-webapp/src/main/webapp/index.html b/scm-webapp/src/main/webapp/index.html new file mode 100644 index 0000000000..e149a39434 --- /dev/null +++ b/scm-webapp/src/main/webapp/index.html @@ -0,0 +1,10 @@ + + + + + Title + + + + + diff --git a/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java b/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java deleted file mode 100644 index fb6ab364ca..0000000000 --- a/scm-webapp/src/test/java/sonia/scm/resources/AbstractResourceManagerTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/*** - * Copyright (c) 2015, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * https://bitbucket.org/sdorra/scm-manager - * - */ - -package sonia.scm.resources; - -import com.google.common.collect.ImmutableSet; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.Set; -import static org.junit.Assert.*; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import static org.hamcrest.Matchers.*; -import org.mockito.junit.MockitoJUnitRunner; -import sonia.scm.plugin.PluginLoader; - -/** - * Unit tests for {@link AbstractResourceManager}. - * - * @author Sebastian Sdorra - */ -@Ignore -@RunWith(MockitoJUnitRunner.class) -public class AbstractResourceManagerTest extends ResourceManagerTestBase -{ - - private DummyResourceManager resourceManager; - - @Before - public void setUp() - { - Set resourceHandlers = ImmutableSet.of(resourceHandler); - resourceManager = new DummyResourceManager(pluginLoader, resourceHandlers); - } - - /** - * Test {@link AbstractResourceManager#getScriptResources()} in the correct order. - * - * @throws java.io.IOException - * - * @see Issue 809 - */ - @Test - public void testGetScriptResources() throws IOException - { - appendScriptResources("a/b.js", "z/a.js", "a/a.js"); - List scripts = resourceManager.getScriptResources(); - assertThat(scripts, contains("a/a.js", "a/b.js", "z/a.js")); - } - - private static class DummyResourceManager extends AbstractResourceManager - { - - public DummyResourceManager(PluginLoader pluginLoader, Set resourceHandlers) - { - super(pluginLoader, resourceHandlers); - } - - @Override - protected void collectResources(Map resourceMap) - { - } - - } - -} diff --git a/scm-webapp/src/test/java/sonia/scm/resources/DefaultResourceManagerTest.java b/scm-webapp/src/test/java/sonia/scm/resources/DefaultResourceManagerTest.java deleted file mode 100644 index 489ac9f13d..0000000000 --- a/scm-webapp/src/test/java/sonia/scm/resources/DefaultResourceManagerTest.java +++ /dev/null @@ -1,78 +0,0 @@ -/*** - * Copyright (c) 2015, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * https://bitbucket.org/sdorra/scm-manager - * - */ - -package sonia.scm.resources; - -import com.google.common.collect.ImmutableSet; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.junit.MockitoJUnitRunner; - -import java.io.IOException; -import java.util.List; -import java.util.Set; - -import static org.junit.Assert.assertEquals; - -/** - * Unit tests for {@link DefaultResourceManager}. - * - * @author Sebastian Sdorra - */ -@RunWith(MockitoJUnitRunner.Silent.class) -public class DefaultResourceManagerTest extends ResourceManagerTestBase { - - private DefaultResourceManager resourceManager; - - /** - * Set up {@link DefaultResourceManager} for tests. - */ - @Before - public void setUp() - { - Set resourceHandlers = ImmutableSet.of(resourceHandler); - resourceManager = new DefaultResourceManager(pluginLoader, resourceHandlers); - } - - /** - * Test {@link DefaultResourceManager#getResources(sonia.scm.resources.ResourceType)} method. - * @throws java.io.IOException - */ - @Test - public void testGetResources() throws IOException - { - appendScriptResources("a/b.js", "z/a.js", "a/a.js"); - List resources = resourceManager.getResources(ResourceType.SCRIPT); - assertEquals(1, resources.size()); - } - -} diff --git a/scm-webapp/src/test/java/sonia/scm/resources/ResourceManagerTestBase.java b/scm-webapp/src/test/java/sonia/scm/resources/ResourceManagerTestBase.java deleted file mode 100644 index 164caf6f8c..0000000000 --- a/scm-webapp/src/test/java/sonia/scm/resources/ResourceManagerTestBase.java +++ /dev/null @@ -1,112 +0,0 @@ -/*** - * Copyright (c) 2015, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * https://bitbucket.org/sdorra/scm-manager - * - */ - -package sonia.scm.resources; - -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Sets; -import java.io.IOException; -import java.nio.file.Path; -import java.util.List; -import java.util.Set; -import javax.servlet.ServletContext; -import org.junit.Rule; -import org.junit.rules.TemporaryFolder; -import org.mockito.Mock; -import static org.mockito.Mockito.when; -import sonia.scm.plugin.Plugin; -import sonia.scm.plugin.PluginCondition; -import sonia.scm.plugin.PluginInformation; -import sonia.scm.plugin.PluginLoader; -import sonia.scm.plugin.PluginResources; -import sonia.scm.plugin.PluginWrapper; -import sonia.scm.plugin.WebResourceLoader; - -/** - * Base class for {@link ResourceManager} tests. - * - * @author Sebastian Sdorra - */ -public abstract class ResourceManagerTestBase -{ - - @Mock - protected ServletContext servletContext; - - @Mock - protected PluginLoader pluginLoader; - - @Mock - protected ResourceHandler resourceHandler; - - @Mock - protected WebResourceLoader webResourceLoader; - - @Rule - public TemporaryFolder tempFolder = new TemporaryFolder(); - - /** - * Append scripts resources to plugin loader. - * - * @param resources resource names - * - * @throws IOException - */ - protected void appendScriptResources(String... resources) throws IOException - { - Set scripts = Sets.newHashSet(resources); - Set styles = Sets.newHashSet(); - Set dependencies = Sets.newHashSet(); - - - Plugin plugin = new Plugin( - 2, - new PluginInformation(), - new PluginResources(scripts, styles), - new PluginCondition(), - false, - dependencies - ); - - Path pluginPath = tempFolder.newFolder().toPath(); - - PluginWrapper wrapper = new PluginWrapper( - plugin, - Thread.currentThread().getContextClassLoader(), - webResourceLoader, - pluginPath - ); - - List plugins = ImmutableList.of(wrapper); - - when(pluginLoader.getInstalledPlugins()).thenReturn(plugins); - } -} From e6e1c5871aaac4433784a96ff08eb60df1dda26c Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 27 Aug 2018 15:47:02 +0200 Subject: [PATCH 091/143] restore context path support --- .../scm-git-plugin/src/main/js/GitAvatar.js | 3 +- .../scm-hg-plugin/src/main/js/HgAvatar.js | 3 +- .../scm-svn-plugin/src/main/js/SvnAvatar.js | 3 +- scm-ui/package.json | 2 +- scm-ui/public/index.html | 13 +++++--- scm-ui/src/apiclient.js | 6 ++-- scm-ui/src/components/Image.js | 18 ++++++++++ scm-ui/src/components/Loading.js | 3 +- scm-ui/src/components/Logo.js | 3 +- scm-ui/src/components/PluginLoader.js | 6 +--- scm-ui/src/containers/Login.js | 3 +- scm-ui/src/i18n.js | 4 +-- scm-ui/src/index.js | 4 +-- .../repos/components/list/RepositoryAvatar.js | 3 +- scm-ui/src/urls.js | 6 ++++ scm-ui/yarn.lock | 28 ++++++++++++++-- .../api/v2/resources/UIPluginDtoMapper.java | 33 +++++++++++++++++-- .../api/v2/resources/UIPluginResource.java | 1 - .../api/v2/resources/UIRootResourceTest.java | 26 +++++++++++++-- 19 files changed, 132 insertions(+), 36 deletions(-) create mode 100644 scm-ui/src/components/Image.js create mode 100644 scm-ui/src/urls.js diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js index 3bb4b376e8..6af17b95bf 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js +++ b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.js @@ -7,7 +7,8 @@ type Props = { class GitAvatar extends React.Component { render() { - return Git Logo; + // TODO we have to use Image from ui-components + return Git Logo; } } diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js index a1c63ef119..9c4d808df1 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.js @@ -7,7 +7,8 @@ type Props = { class HgAvatar extends React.Component { render() { - return Mercurial Logo; + // TODO we have to use Image from ui-components + return Mercurial Logo; } } diff --git a/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js index f274a336c8..4a6ba0fc94 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js +++ b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.js @@ -7,7 +7,8 @@ type Props = { class SvnAvatar extends React.Component { render() { - return Subversion Logo; + // TODO we have to use Image from ui-components + return Subversion Logo; } } diff --git a/scm-ui/package.json b/scm-ui/package.json index 267e2926ce..ed86702874 100644 --- a/scm-ui/package.json +++ b/scm-ui/package.json @@ -40,7 +40,7 @@ "pre-commit": "jest && flow && eslint src" }, "devDependencies": { - "@scm-manager/ui-bundler": "^0.0.3", + "@scm-manager/ui-bundler": "^0.0.4", "babel-eslint": "^8.2.6", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", diff --git a/scm-ui/public/index.html b/scm-ui/public/index.html index c76e55cac3..b253786fe3 100644 --- a/scm-ui/public/index.html +++ b/scm-ui/public/index.html @@ -8,8 +8,8 @@ manifest.json provides metadata used when your web app is added to the homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ --> - - + + - + SCM-Manager @@ -37,7 +37,10 @@ To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> - - + + + diff --git a/scm-ui/src/apiclient.js b/scm-ui/src/apiclient.js index 0ef0182120..7bf3232260 100644 --- a/scm-ui/src/apiclient.js +++ b/scm-ui/src/apiclient.js @@ -1,7 +1,5 @@ // @flow - -// get api base url from environment -const apiUrl = process.env.API_URL || process.env.PUBLIC_URL || ""; +import { contextPath } from "./urls"; export const NOT_FOUND_ERROR = Error("not found"); export const UNAUTHORIZED_ERROR = Error("unauthorized"); @@ -34,7 +32,7 @@ export function createUrl(url: string) { if (url.indexOf("/") !== 0) { urlWithStartingSlash = "/" + urlWithStartingSlash; } - return `${apiUrl}/api/rest/v2${urlWithStartingSlash}`; + return `${contextPath}/api/rest/v2${urlWithStartingSlash}`; } class ApiClient { diff --git a/scm-ui/src/components/Image.js b/scm-ui/src/components/Image.js new file mode 100644 index 0000000000..a81754dac9 --- /dev/null +++ b/scm-ui/src/components/Image.js @@ -0,0 +1,18 @@ +//@flow +import React from "react"; +import { withContextPath } from "../urls"; + +type Props = { + src: string, + alt: string, + className: any +}; + +class Image extends React.Component { + render() { + const { src, alt, className } = this.props; + return {alt}; + } +} + +export default Image; diff --git a/scm-ui/src/components/Loading.js b/scm-ui/src/components/Loading.js index f76e1be05b..0a472ecb02 100644 --- a/scm-ui/src/components/Loading.js +++ b/scm-ui/src/components/Loading.js @@ -2,6 +2,7 @@ import React from "react"; import { translate } from "react-i18next"; import injectSheet from "react-jss"; +import Image from "./Image"; const styles = { wrapper: { @@ -35,7 +36,7 @@ class Loading extends React.Component { return (
")}},updateHeaderSortState:function(){var b=this.ds.getSortState();if(!b){return}if(!this.sortState||(this.sortState.field!=b.field||this.sortState.direction!=b.direction)){this.grid.fireEvent("sortchange",this.grid,b)}this.sortState=b;var c=this.cm.findColumnIndex(b.field);if(c!=-1){var a=b.direction;this.updateSortIcon(c,a)}},clearHeaderSortState:function(){if(!this.sortState){return}this.grid.fireEvent("sortchange",this.grid,null);this.mainHd.select("td").removeClass(this.sortClasses);delete this.sortState},destroy:function(){var j=this,a=j.grid,d=a.getGridEl(),i=j.dragZone,g=j.splitZone,h=j.columnDrag,e=j.columnDrop,k=j.scrollToTopTask,c,b;if(k&&k.cancel){k.cancel()}Ext.destroyMembers(j,"colMenu","hmenu");j.initData(null,null);j.purgeListeners();Ext.fly(j.innerHd).un("click",j.handleHdDown,j);if(a.enableColumnMove){c=h.dragData;b=h.proxy;Ext.destroy(h.el,b.ghost,b.el,e.el,e.proxyTop,e.proxyBottom,c.ddel,c.header);if(b.anim){Ext.destroy(b.anim)}delete b.ghost;delete c.ddel;delete c.header;h.destroy();delete Ext.dd.DDM.locationCache[h.id];delete h._domRef;delete e.proxyTop;delete e.proxyBottom;e.destroy();delete Ext.dd.DDM.locationCache["gridHeader"+d.id];delete e._domRef;delete Ext.dd.DDM.ids[e.ddGroup]}if(g){g.destroy();delete g._domRef;delete Ext.dd.DDM.ids["gridSplitters"+d.id]}Ext.fly(j.innerHd).removeAllListeners();Ext.removeNode(j.innerHd);delete j.innerHd;Ext.destroy(j.el,j.mainWrap,j.mainHd,j.scroller,j.mainBody,j.focusEl,j.resizeMarker,j.resizeProxy,j.activeHdBtn,j._flyweight,i,g);delete a.container;if(i){i.destroy()}Ext.dd.DDM.currentTarget=null;delete Ext.dd.DDM.locationCache[d.id];Ext.EventManager.removeResizeListener(j.onWindowResize,j)},onDenyColumnHide:function(){},render:function(){if(this.autoFill){var a=this.grid.ownerCt;if(a&&a.getLayout()){a.on("afterlayout",function(){this.fitColumns(true,true);this.updateHeaders();this.updateHeaderSortState()},this,{single:true})}}else{if(this.forceFit){this.fitColumns(true,false)}else{if(this.grid.autoExpandColumn){this.autoExpand(true)}}}this.grid.getGridEl().dom.innerHTML=this.renderUI();this.afterRenderUI()},initData:function(a,e){var b=this;if(b.ds){var d=b.ds;d.un("add",b.onAdd,b);d.un("load",b.onLoad,b);d.un("clear",b.onClear,b);d.un("remove",b.onRemove,b);d.un("update",b.onUpdate,b);d.un("datachanged",b.onDataChange,b);if(d!==a&&d.autoDestroy){d.destroy()}}if(a){a.on({scope:b,load:b.onLoad,add:b.onAdd,remove:b.onRemove,update:b.onUpdate,clear:b.onClear,datachanged:b.onDataChange})}if(b.cm){var c=b.cm;c.un("configchange",b.onColConfigChange,b);c.un("widthchange",b.onColWidthChange,b);c.un("headerchange",b.onHeaderChange,b);c.un("hiddenchange",b.onHiddenChange,b);c.un("columnmoved",b.onColumnMove,b)}if(e){delete b.lastViewWidth;e.on({scope:b,configchange:b.onColConfigChange,widthchange:b.onColWidthChange,headerchange:b.onHeaderChange,hiddenchange:b.onHiddenChange,columnmoved:b.onColumnMove})}b.ds=a;b.cm=e},onDataChange:function(){this.refresh(true);this.updateHeaderSortState();this.syncFocusEl(0)},onClear:function(){this.refresh();this.syncFocusEl(0)},onUpdate:function(b,a){this.refreshRow(a)},onAdd:function(b,a,c){this.insertRows(b,c,c+(a.length-1))},onRemove:function(b,a,c,d){if(d!==true){this.fireEvent("beforerowremoved",this,c,a)}this.removeRow(c);if(d!==true){this.processRows(c);this.applyEmptyText();this.fireEvent("rowremoved",this,c,a)}},onLoad:function(){if(Ext.isGecko){if(!this.scrollToTopTask){this.scrollToTopTask=new Ext.util.DelayedTask(this.scrollToTop,this)}this.scrollToTopTask.delay(1)}else{this.scrollToTop()}},onColWidthChange:function(a,b,c){this.updateColumnWidth(b,c)},onHeaderChange:function(a,b,c){this.updateHeaders()},onHiddenChange:function(a,b,c){this.updateColumnHidden(b,c)},onColumnMove:function(a,c,b){this.indexMap=null;this.refresh(true);this.restoreScroll(this.getScrollState());this.afterMove(b);this.grid.fireEvent("columnmove",c,b)},onColConfigChange:function(){delete this.lastViewWidth;this.indexMap=null;this.refresh(true)},initUI:function(a){a.on("headerclick",this.onHeaderClick,this)},initEvents:Ext.emptyFn,onHeaderClick:function(b,a){if(this.headersDisabled||!this.cm.isSortable(a)){return}b.stopEditing(true);b.store.sort(this.cm.getDataIndex(a))},onRowOver:function(b,a){var c=this.findRowIndex(a);if(c!==false){this.addRowClass(c,this.rowOverCls)}},onRowOut:function(b,a){var c=this.findRowIndex(a);if(c!==false&&!b.within(this.getRow(c),true)){this.removeRowClass(c,this.rowOverCls)}},onRowSelect:function(a){this.addRowClass(a,this.selectedRowClass)},onRowDeselect:function(a){this.removeRowClass(a,this.selectedRowClass)},onCellSelect:function(c,b){var a=this.getCell(c,b);if(a){this.fly(a).addClass("x-grid3-cell-selected")}},onCellDeselect:function(c,b){var a=this.getCell(c,b);if(a){this.fly(a).removeClass("x-grid3-cell-selected")}},handleWheel:function(a){a.stopPropagation()},onColumnSplitterMoved:function(a,b){this.userResized=true;this.grid.colModel.setColumnWidth(a,b,true);if(this.forceFit){this.fitColumns(true,false,a);this.updateAllColumnWidths()}else{this.updateColumnWidth(a,b);this.syncHeaderScroll()}this.grid.fireEvent("columnresize",a,b)},beforeColMenuShow:function(){var b=this.cm,d=b.getColumnCount(),a=this.colMenu,c;a.removeAll();for(c=0;c0){if(!this.cm.isHidden(a-1)){return a}a--}return undefined},handleHdOver:function(c,b){var d=this.findHeaderCell(b);if(d&&!this.headersDisabled){var a=this.fly(d);this.activeHdRef=b;this.activeHdIndex=this.getCellIndex(d);this.activeHdRegion=a.getRegion();if(!this.isMenuDisabled(this.activeHdIndex,a)){a.addClass("x-grid3-hd-over");this.activeHdBtn=a.child(".x-grid3-hd-btn");if(this.activeHdBtn){this.activeHdBtn.dom.style.height=(d.firstChild.offsetHeight-1)+"px"}}}},handleHdOut:function(b,a){var c=this.findHeaderCell(a);if(c&&(!Ext.isIE||!b.within(c,true))){this.activeHdRef=null;this.fly(c).removeClass("x-grid3-hd-over");c.style.cursor=""}},isMenuDisabled:function(a,b){return this.cm.isMenuDisabled(a)},hasRows:function(){var a=this.mainBody.dom.firstChild;return a&&a.nodeType==1&&a.className!="x-grid-empty"},isHideableColumn:function(a){return !a.hidden},bind:function(a,b){this.initData(a,b)}});Ext.grid.GridView.SplitDragZone=Ext.extend(Ext.dd.DDProxy,{constructor:function(a,b){this.grid=a;this.view=a.getView();this.marker=this.view.resizeMarker;this.proxy=this.view.resizeProxy;Ext.grid.GridView.SplitDragZone.superclass.constructor.call(this,b,"gridSplitters"+this.grid.getGridEl().id,{dragElId:Ext.id(this.proxy.dom),resizeFrame:false});this.scroll=false;this.hw=this.view.splitHandleWidth||5},b4StartDrag:function(a,e){this.dragHeadersDisabled=this.view.headersDisabled;this.view.headersDisabled=true;var d=this.view.mainWrap.getHeight();this.marker.setHeight(d);this.marker.show();this.marker.alignTo(this.view.getHeaderCell(this.cellIndex),"tl-tl",[-2,0]);this.proxy.setHeight(d);var b=this.cm.getColumnWidth(this.cellIndex),c=Math.max(b-this.grid.minColumnWidth,0);this.resetConstraints();this.setXConstraint(c,1000);this.setYConstraint(0,0);this.minX=a-c;this.maxX=a+1000;this.startPos=a;Ext.dd.DDProxy.prototype.b4StartDrag.call(this,a,e)},allowHeaderDrag:function(a){return true},handleMouseDown:function(a){var h=this.view.findHeaderCell(a.getTarget());if(h&&this.allowHeaderDrag(a)){var k=this.view.fly(h).getXY(),c=k[0],i=a.getXY(),b=i[0],g=h.offsetWidth,d=false;if((b-c)<=this.hw){d=-1}else{if((c+g)-b<=this.hw){d=0}}if(d!==false){this.cm=this.grid.colModel;var j=this.view.getCellIndex(h);if(d==-1){if(j+d<0){return}while(this.cm.isHidden(j+d)){--d;if(j+d<0){return}}}this.cellIndex=j+d;this.split=h.dom;if(this.cm.isResizable(this.cellIndex)&&!this.cm.isFixed(this.cellIndex)){Ext.grid.GridView.SplitDragZone.superclass.handleMouseDown.apply(this,arguments)}}else{if(this.view.columnDrag){this.view.columnDrag.callHandleMouseDown(a)}}}},endDrag:function(g){this.marker.hide();var a=this.view,c=Math.max(this.minX,g.getPageX()),d=c-this.startPos,b=this.dragHeadersDisabled;a.onColumnSplitterMoved(this.cellIndex,this.cm.getColumnWidth(this.cellIndex)+d);setTimeout(function(){a.headersDisabled=b},50)},autoOffset:function(){this.setDelta(0,0)}});Ext.grid.PivotGridView=Ext.extend(Ext.grid.GridView,{colHeaderCellCls:"grid-hd-group-cell",title:"",getColumnHeaders:function(){return this.grid.topAxis.buildHeaders()},getRowHeaders:function(){return this.grid.leftAxis.buildHeaders()},renderRows:function(a,t){var b=this.grid,o=b.extractData(),p=o.length,g=this.templates,s=b.renderer,h=typeof s=="function",w=this.getCellCls,n=typeof w=="function",d=g.cell,x=g.row,k=[],q={},c="width:"+this.getGridInnerWidth()+"px;",l,r,e,v,m;a=a||0;t=Ext.isDefined(t)?t:p-1;for(v=0;v','
','
','
{title}
','
','
',"
",'
',"
",'
','
','
{body}
','',"
","
",'
 
','
 
',"
- {t("loading.alt")} string @@ -9,7 +10,7 @@ type Props = { class Logo extends React.Component { render() { const { t } = this.props; - return {t("logo.alt")}; + return {t("logo.alt")}; } } diff --git a/scm-ui/src/components/PluginLoader.js b/scm-ui/src/components/PluginLoader.js index a41bf8231f..cdb48127fc 100644 --- a/scm-ui/src/components/PluginLoader.js +++ b/scm-ui/src/components/PluginLoader.js @@ -62,11 +62,7 @@ class PluginLoader extends React.Component { const promises = []; for (let bundle of plugin.bundles) { - // skip old bundles - // TODO remove old bundles - if (bundle.indexOf("/") !== 0) { - promises.push(this.loadBundle(bundle)); - } + promises.push(this.loadBundle(bundle)); } return Promise.all(promises); }; diff --git a/scm-ui/src/containers/Login.js b/scm-ui/src/containers/Login.js index 8735f1bdcb..f807bb01bb 100644 --- a/scm-ui/src/containers/Login.js +++ b/scm-ui/src/containers/Login.js @@ -16,6 +16,7 @@ import { SubmitButton } from "../components/buttons"; import classNames from "classnames"; import ErrorNotification from "../components/ErrorNotification"; +import Image from "../components/Image"; const styles = { avatar: { @@ -105,7 +106,7 @@ class Login extends React.Component {

{t("login.subtitle")}

- {t("login.logo-alt")} { return (

- Logo + Logo

); diff --git a/scm-ui/src/urls.js b/scm-ui/src/urls.js new file mode 100644 index 0000000000..74e5388e16 --- /dev/null +++ b/scm-ui/src/urls.js @@ -0,0 +1,6 @@ +// @flow +export const contextPath = window.ctxPath || ""; + +export function withContextPath(path: string) { + return contextPath + path; +} diff --git a/scm-ui/yarn.lock b/scm-ui/yarn.lock index 5f5e1f05ed..7dadc52924 100644 --- a/scm-ui/yarn.lock +++ b/scm-ui/yarn.lock @@ -703,9 +703,9 @@ node-fetch "^2.1.1" url-template "^2.0.8" -"@scm-manager/ui-bundler@^0.0.3": - version "0.0.3" - resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.3.tgz#06f99d8b17e9aa1bb6e69c2732160e1f46724c3c" +"@scm-manager/ui-bundler@^0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@scm-manager/ui-bundler/-/ui-bundler-0.0.4.tgz#0191a026d25b826692bccbc2b76d550388dd5528" dependencies: "@babel/core" "^7.0.0-rc.2" "@babel/plugin-proposal-class-properties" "^7.0.0-rc.2" @@ -720,6 +720,7 @@ budo "^11.3.2" colors "^1.3.1" commander "^2.17.1" + fast-xml-parser "^3.12.0" jest "^23.5.0" jest-junit "^5.1.0" node-mkdirs "^0.0.1" @@ -2830,6 +2831,12 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" +fast-xml-parser@^3.12.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.12.0.tgz#84ddcd98ca005f94e99af3ac387adc32ffb239d8" + dependencies: + nimnjs "^1.3.2" + fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" @@ -5040,6 +5047,21 @@ nice-try@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" +nimn-date-parser@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/nimn-date-parser/-/nimn-date-parser-1.0.0.tgz#4ce55d1fd5ea206bbe82b76276f7b7c582139351" + +nimn_schema_builder@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/nimn_schema_builder/-/nimn_schema_builder-1.1.0.tgz#b370ccf5b647d66e50b2dcfb20d0aa12468cd247" + +nimnjs@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/nimnjs/-/nimnjs-1.3.2.tgz#a6a877968d87fad836375a4f616525e55079a5ba" + dependencies: + nimn-date-parser "^1.0.0" + nimn_schema_builder "^1.0.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java index 7ef2cbded3..10ae79b5bf 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginDtoMapper.java @@ -1,25 +1,34 @@ package sonia.scm.api.v2.resources; +import com.google.common.base.Strings; import de.otto.edison.hal.Links; import sonia.scm.plugin.PluginWrapper; +import sonia.scm.util.HttpUtil; import javax.inject.Inject; +import javax.servlet.http.HttpServletRequest; + +import java.util.Collections; +import java.util.Set; +import java.util.stream.Collectors; import static de.otto.edison.hal.Links.linkingTo; public class UIPluginDtoMapper { - private ResourceLinks resourceLinks; + private final ResourceLinks resourceLinks; + private final HttpServletRequest request; @Inject - public UIPluginDtoMapper(ResourceLinks resourceLinks) { + public UIPluginDtoMapper(ResourceLinks resourceLinks, HttpServletRequest request) { this.resourceLinks = resourceLinks; + this.request = request; } public UIPluginDto map(PluginWrapper plugin) { UIPluginDto dto = new UIPluginDto( plugin.getPlugin().getInformation().getName(), - plugin.getPlugin().getResources().getScriptResources() + getScriptResources(plugin) ); Links.Builder linksBuilder = linkingTo() @@ -31,4 +40,22 @@ public class UIPluginDtoMapper { return dto; } + private Set getScriptResources(PluginWrapper wrapper) { + Set scriptResources = wrapper.getPlugin().getResources().getScriptResources(); + if (scriptResources != null) { + return scriptResources.stream() + .map(this::addContextPath) + .collect(Collectors.toSet()); + } + return Collections.emptySet(); + } + + private String addContextPath(String resource) { + String ctxPath = request.getContextPath(); + if (Strings.isNullOrEmpty(ctxPath)) { + return resource; + } + return HttpUtil.append(ctxPath, resource); + } + } diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java index 0807c600ff..a76c39dd69 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/UIPluginResource.java @@ -3,7 +3,6 @@ package sonia.scm.api.v2.resources; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; import com.webcohesion.enunciate.metadata.rs.TypeHint; -import de.otto.edison.hal.HalRepresentation; import sonia.scm.plugin.PluginLoader; import sonia.scm.plugin.PluginWrapper; import sonia.scm.web.VndMediaType; diff --git a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java index 4e8c2d43b8..99a1435923 100644 --- a/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java +++ b/scm-webapp/src/test/java/sonia/scm/api/v2/resources/UIRootResourceTest.java @@ -12,14 +12,13 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; -import sonia.scm.api.rest.resources.PluginResource; import sonia.scm.plugin.*; import sonia.scm.web.VndMediaType; +import javax.servlet.http.HttpServletRequest; import java.net.URI; import java.net.URISyntaxException; import java.util.HashSet; -import java.util.List; import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND; import static javax.servlet.http.HttpServletResponse.SC_OK; @@ -36,12 +35,15 @@ public class UIRootResourceTest { @Mock private PluginLoader pluginLoader; + @Mock + private HttpServletRequest request; + private final URI baseUri = URI.create("/"); private final ResourceLinks resourceLinks = ResourceLinksMock.createMock(baseUri); @Before public void setUpRestService() { - UIPluginDtoMapper mapper = new UIPluginDtoMapper(resourceLinks); + UIPluginDtoMapper mapper = new UIPluginDtoMapper(resourceLinks, request); UIPluginDtoCollectionMapper collectionMapper = new UIPluginDtoCollectionMapper(resourceLinks, mapper); UIPluginResource pluginResource = new UIPluginResource(pluginLoader, collectionMapper, mapper); @@ -149,6 +151,24 @@ public class UIRootResourceTest { assertTrue(response.getContentAsString().contains("\"self\":{\"href\":\"" + uri + "\"}")); } + @Test + public void shouldHaveBundleWithContextPath() throws Exception { + when(request.getContextPath()).thenReturn("/scm"); + mockPlugins(mockPlugin("awesome", "Awesome", createPluginResources("my/bundle.js"))); + + String uri = "/v2/ui/plugins/awesome"; + MockHttpRequest request = MockHttpRequest.get(uri); + MockHttpResponse response = new MockHttpResponse(); + + dispatcher.invoke(request, response); + + assertEquals(SC_OK, response.getStatus()); + + System.out.println(); + + assertTrue(response.getContentAsString().contains("/scm/my/bundle.js")); + } + private void mockPlugins(PluginWrapper... plugins) { when(pluginLoader.getInstalledPlugins()).thenReturn(Lists.newArrayList(plugins)); } From 5ae8494e949aa38b2d8de81ddb8531385fe56816 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 27 Aug 2018 15:51:17 +0200 Subject: [PATCH 092/143] remove old javascript resources --- scm-webapp/src/main/webapp/index.mustache | 247 - .../src/main/webapp/resources/css/style.css | 254 - .../extjs/adapter/ext/ext-base-debug.js | 2909 - .../resources/extjs/adapter/ext/ext-base.js | 7 - .../jquery/ext-jquery-adapter-debug.js | 1817 - .../adapter/jquery/ext-jquery-adapter.js | 7 - .../prototype/ext-prototype-adapter-debug.js | 1846 - .../prototype/ext-prototype-adapter.js | 7 - .../adapter/yui/ext-yui-adapter-debug.js | 1612 - .../extjs/adapter/yui/ext-yui-adapter.js | 7 - .../extjs/ext-all-debug-w-comments.js | 78980 ---------------- .../webapp/resources/extjs/ext-all-debug.js | 52079 ---------- .../main/webapp/resources/extjs/ext-all.js | 11 - .../resources/extjs/i18n/ext-lang-de.js | 346 - .../resources/extjs/i18n/ext-lang-es.js | 319 - .../resources/extjs/resources/charts.swf | Bin 81653 -> 0 bytes .../resources/extjs/resources/css/README.txt | 6 - .../resources/extjs/resources/css/debug.css | 43 - .../extjs/resources/css/ext-all-notheme.css | 5326 -- .../resources/extjs/resources/css/ext-all.css | 6993 -- .../extjs/resources/css/reset-min.css | 7 - .../extjs/resources/css/structure/borders.css | 54 - .../extjs/resources/css/structure/box.css | 80 - .../extjs/resources/css/structure/button.css | 445 - .../extjs/resources/css/structure/combo.css | 45 - .../extjs/resources/css/structure/core.css | 341 - .../resources/css/structure/date-picker.css | 271 - .../extjs/resources/css/structure/dd.css | 61 - .../extjs/resources/css/structure/debug.css | 26 - .../extjs/resources/css/structure/dialog.css | 59 - .../extjs/resources/css/structure/editor.css | 92 - .../extjs/resources/css/structure/form.css | 597 - .../extjs/resources/css/structure/grid.css | 588 - .../extjs/resources/css/structure/layout.css | 296 - .../resources/css/structure/list-view.css | 86 - .../extjs/resources/css/structure/menu.css | 245 - .../resources/css/structure/panel-reset.css | 130 - .../extjs/resources/css/structure/panel.css | 493 - .../resources/css/structure/pivotgrid.css | 65 - .../resources/css/structure/progress.css | 46 - .../extjs/resources/css/structure/qtips.css | 153 - .../extjs/resources/css/structure/reset.css | 13 - .../resources/css/structure/resizable.css | 149 - .../extjs/resources/css/structure/slider.css | 103 - .../extjs/resources/css/structure/tabs.css | 392 - .../extjs/resources/css/structure/toolbar.css | 246 - .../extjs/resources/css/structure/tree.css | 218 - .../extjs/resources/css/structure/window.css | 222 - .../resources/css/theme-access/borders.css | 25 - .../extjs/resources/css/theme-access/box.css | 74 - .../resources/css/theme-access/button.css | 136 - .../resources/css/theme-access/combo.css | 43 - .../extjs/resources/css/theme-access/core.css | 81 - .../css/theme-access/date-picker.css | 145 - .../extjs/resources/css/theme-access/dd.css | 29 - .../resources/css/theme-access/debug.css | 24 - .../resources/css/theme-access/dialog.css | 34 - .../resources/css/theme-access/editor.css | 16 - .../extjs/resources/css/theme-access/form.css | 176 - .../extjs/resources/css/theme-access/grid.css | 288 - .../resources/css/theme-access/layout.css | 56 - .../resources/css/theme-access/list-view.css | 43 - .../extjs/resources/css/theme-access/menu.css | 79 - .../resources/css/theme-access/panel.css | 94 - .../resources/css/theme-access/progress.css | 35 - .../resources/css/theme-access/qtips.css | 44 - .../resources/css/theme-access/resizable.css | 44 - .../resources/css/theme-access/slider.css | 21 - .../extjs/resources/css/theme-access/tabs.css | 119 - .../resources/css/theme-access/toolbar.css | 120 - .../extjs/resources/css/theme-access/tree.css | 165 - .../resources/css/theme-access/window.css | 87 - .../resources/css/theme-gray/borders.css | 29 - .../extjs/resources/css/theme-gray/box.css | 74 - .../extjs/resources/css/theme-gray/button.css | 94 - .../extjs/resources/css/theme-gray/combo.css | 43 - .../extjs/resources/css/theme-gray/core.css | 83 - .../resources/css/theme-gray/date-picker.css | 143 - .../extjs/resources/css/theme-gray/dd.css | 29 - .../extjs/resources/css/theme-gray/debug.css | 24 - .../extjs/resources/css/theme-gray/dialog.css | 34 - .../extjs/resources/css/theme-gray/editor.css | 13 - .../extjs/resources/css/theme-gray/form.css | 117 - .../extjs/resources/css/theme-gray/grid.css | 276 - .../extjs/resources/css/theme-gray/layout.css | 53 - .../resources/css/theme-gray/list-view.css | 37 - .../extjs/resources/css/theme-gray/menu.css | 82 - .../extjs/resources/css/theme-gray/panel.css | 87 - .../resources/css/theme-gray/pivotgrid.css | 28 - .../resources/css/theme-gray/progress.css | 32 - .../extjs/resources/css/theme-gray/qtips.css | 44 - .../resources/css/theme-gray/resizable.css | 43 - .../extjs/resources/css/theme-gray/slider.css | 21 - .../extjs/resources/css/theme-gray/tabs.css | 127 - .../resources/css/theme-gray/toolbar.css | 95 - .../extjs/resources/css/theme-gray/tree.css | 157 - .../extjs/resources/css/theme-gray/window.css | 86 - .../extjs/resources/css/visual/borders.css | 25 - .../extjs/resources/css/visual/box.css | 74 - .../extjs/resources/css/visual/button.css | 94 - .../extjs/resources/css/visual/combo.css | 43 - .../extjs/resources/css/visual/core.css | 82 - .../resources/css/visual/date-picker.css | 143 - .../extjs/resources/css/visual/dd.css | 29 - .../extjs/resources/css/visual/debug.css | 24 - .../extjs/resources/css/visual/dialog.css | 34 - .../extjs/resources/css/visual/editor.css | 13 - .../extjs/resources/css/visual/form.css | 123 - .../extjs/resources/css/visual/grid.css | 277 - .../extjs/resources/css/visual/layout.css | 53 - .../extjs/resources/css/visual/list-view.css | 37 - .../extjs/resources/css/visual/menu.css | 87 - .../extjs/resources/css/visual/panel.css | 87 - .../extjs/resources/css/visual/pivotgrid.css | 28 - .../extjs/resources/css/visual/progress.css | 32 - .../extjs/resources/css/visual/qtips.css | 44 - .../extjs/resources/css/visual/resizable.css | 43 - .../extjs/resources/css/visual/slider.css | 21 - .../extjs/resources/css/visual/tabs.css | 127 - .../extjs/resources/css/visual/toolbar.css | 95 - .../extjs/resources/css/visual/tree.css | 152 - .../extjs/resources/css/visual/window.css | 86 - .../extjs/resources/css/xtheme-access.css | 1820 - .../extjs/resources/css/xtheme-blue.css | 1674 - .../extjs/resources/css/xtheme-gray.css | 1682 - .../extjs/resources/css/xtheme-scm.css | 1401 - .../extjs/resources/css/xtheme-scm.less | 1417 - .../extjs/resources/css/xtheme-scmslate.css | 761 - .../extjs/resources/css/yourtheme.css | 1652 - .../extjs/resources/expressinstall.swf | Bin 4823 -> 0 bytes .../images/access/box/corners-blue.gif | Bin 1010 -> 0 bytes .../resources/images/access/box/corners.gif | Bin 1005 -> 0 bytes .../resources/images/access/box/l-blue.gif | Bin 810 -> 0 bytes .../extjs/resources/images/access/box/l.gif | Bin 810 -> 0 bytes .../resources/images/access/box/r-blue.gif | Bin 810 -> 0 bytes .../extjs/resources/images/access/box/r.gif | Bin 810 -> 0 bytes .../resources/images/access/box/tb-blue.gif | Bin 843 -> 0 bytes .../extjs/resources/images/access/box/tb.gif | Bin 839 -> 0 bytes .../resources/images/access/button/arrow.gif | Bin 833 -> 0 bytes .../resources/images/access/button/btn.gif | Bin 2871 -> 0 bytes .../images/access/button/group-cs.gif | Bin 2459 -> 0 bytes .../images/access/button/group-lr.gif | Bin 861 -> 0 bytes .../images/access/button/group-tb.gif | Bin 70 -> 0 bytes .../images/access/button/s-arrow-b-noline.gif | Bin 904 -> 0 bytes .../images/access/button/s-arrow-b.gif | Bin 943 -> 0 bytes .../images/access/button/s-arrow-bo.gif | Bin 961 -> 0 bytes .../images/access/button/s-arrow-noline.gif | Bin 875 -> 0 bytes .../images/access/button/s-arrow-o.gif | Bin 155 -> 0 bytes .../images/access/button/s-arrow.gif | Bin 956 -> 0 bytes .../images/access/editor/tb-sprite.gif | Bin 1994 -> 0 bytes .../resources/images/access/form/checkbox.gif | Bin 2061 -> 0 bytes .../images/access/form/clear-trigger.gif | Bin 2027 -> 0 bytes .../images/access/form/clear-trigger.psd | Bin 41047 -> 0 bytes .../images/access/form/date-trigger.gif | Bin 1620 -> 0 bytes .../images/access/form/date-trigger.psd | Bin 46095 -> 0 bytes .../images/access/form/error-tip-corners.gif | Bin 4183 -> 0 bytes .../images/access/form/exclamation.gif | Bin 614 -> 0 bytes .../resources/images/access/form/radio.gif | Bin 1746 -> 0 bytes .../images/access/form/search-trigger.gif | Bin 1534 -> 0 bytes .../images/access/form/search-trigger.psd | Bin 49761 -> 0 bytes .../resources/images/access/form/text-bg.gif | Bin 66 -> 0 bytes .../images/access/form/trigger-tpl.gif | Bin 908 -> 0 bytes .../resources/images/access/form/trigger.gif | Bin 1451 -> 0 bytes .../resources/images/access/form/trigger.psd | Bin 44793 -> 0 bytes .../images/access/grid/arrow-left-white.gif | Bin 825 -> 0 bytes .../images/access/grid/arrow-right-white.gif | Bin 825 -> 0 bytes .../images/access/grid/col-move-bottom.gif | Bin 868 -> 0 bytes .../images/access/grid/col-move-top.gif | Bin 869 -> 0 bytes .../resources/images/access/grid/columns.gif | Bin 962 -> 0 bytes .../resources/images/access/grid/dirty.gif | Bin 68 -> 0 bytes .../resources/images/access/grid/done.gif | Bin 133 -> 0 bytes .../resources/images/access/grid/drop-no.gif | Bin 947 -> 0 bytes .../resources/images/access/grid/drop-yes.gif | Bin 860 -> 0 bytes .../images/access/grid/footer-bg.gif | Bin 834 -> 0 bytes .../images/access/grid/grid-blue-hd.gif | Bin 829 -> 0 bytes .../images/access/grid/grid-blue-split.gif | Bin 47 -> 0 bytes .../images/access/grid/grid-hrow.gif | Bin 855 -> 0 bytes .../images/access/grid/grid-loading.gif | Bin 701 -> 0 bytes .../images/access/grid/grid-split.gif | Bin 817 -> 0 bytes .../images/access/grid/grid-vista-hd.gif | Bin 829 -> 0 bytes .../images/access/grid/grid3-hd-btn.gif | Bin 419 -> 0 bytes .../images/access/grid/grid3-hrow-over.gif | Bin 268 -> 0 bytes .../images/access/grid/grid3-hrow.gif | Bin 164 -> 0 bytes .../access/grid/grid3-special-col-bg.gif | Bin 162 -> 0 bytes .../access/grid/grid3-special-col-sel-bg.gif | Bin 162 -> 0 bytes .../resources/images/access/grid/group-by.gif | Bin 917 -> 0 bytes .../images/access/grid/group-collapse.gif | Bin 77 -> 0 bytes .../access/grid/group-expand-sprite.gif | Bin 131 -> 0 bytes .../images/access/grid/group-expand.gif | Bin 82 -> 0 bytes .../resources/images/access/grid/hd-pop.gif | Bin 839 -> 0 bytes .../images/access/grid/hmenu-asc.gif | Bin 931 -> 0 bytes .../images/access/grid/hmenu-desc.gif | Bin 930 -> 0 bytes .../images/access/grid/hmenu-lock.gif | Bin 955 -> 0 bytes .../images/access/grid/hmenu-lock.png | Bin 648 -> 0 bytes .../images/access/grid/hmenu-unlock.gif | Bin 971 -> 0 bytes .../images/access/grid/hmenu-unlock.png | Bin 697 -> 0 bytes .../images/access/grid/invalid_line.gif | Bin 46 -> 0 bytes .../resources/images/access/grid/loading.gif | Bin 771 -> 0 bytes .../resources/images/access/grid/mso-hd.gif | Bin 875 -> 0 bytes .../resources/images/access/grid/nowait.gif | Bin 884 -> 0 bytes .../access/grid/page-first-disabled.gif | Bin 340 -> 0 bytes .../images/access/grid/page-first.gif | Bin 96 -> 0 bytes .../images/access/grid/page-last-disabled.gif | Bin 340 -> 0 bytes .../images/access/grid/page-last.gif | Bin 96 -> 0 bytes .../images/access/grid/page-next-disabled.gif | Bin 195 -> 0 bytes .../images/access/grid/page-next.gif | Bin 82 -> 0 bytes .../images/access/grid/page-prev-disabled.gif | Bin 197 -> 0 bytes .../images/access/grid/page-prev.gif | Bin 82 -> 0 bytes .../images/access/grid/pick-button.gif | Bin 1036 -> 0 bytes .../resources/images/access/grid/refresh.gif | Bin 91 -> 0 bytes .../images/access/grid/row-check-sprite.gif | Bin 1083 -> 0 bytes .../images/access/grid/row-expand-sprite.gif | Bin 955 -> 0 bytes .../resources/images/access/grid/row-over.gif | Bin 823 -> 0 bytes .../resources/images/access/grid/row-sel.gif | Bin 823 -> 0 bytes .../resources/images/access/grid/sort-hd.gif | Bin 2075 -> 0 bytes .../resources/images/access/grid/sort_asc.gif | Bin 74 -> 0 bytes .../images/access/grid/sort_desc.gif | Bin 73 -> 0 bytes .../resources/images/access/grid/wait.gif | Bin 1100 -> 0 bytes .../resources/images/access/menu/checked.gif | Bin 959 -> 0 bytes .../images/access/menu/group-checked.gif | Bin 856 -> 0 bytes .../images/access/menu/item-over.gif | Bin 820 -> 0 bytes .../images/access/menu/menu-parent.gif | Bin 73 -> 0 bytes .../resources/images/access/menu/menu.gif | Bin 826 -> 0 bytes .../images/access/menu/unchecked.gif | Bin 941 -> 0 bytes .../images/access/panel/corners-sprite.gif | Bin 577 -> 0 bytes .../images/access/panel/left-right.gif | Bin 52 -> 0 bytes .../images/access/panel/light-hd.gif | Bin 161 -> 0 bytes .../images/access/panel/tool-sprite-tpl.gif | Bin 971 -> 0 bytes .../images/access/panel/tool-sprites.gif | Bin 1981 -> 0 bytes .../access/panel/tools-sprites-trans.gif | Bin 2843 -> 0 bytes .../images/access/panel/top-bottom.gif | Bin 116 -> 0 bytes .../access/panel/white-corners-sprite.gif | Bin 1366 -> 0 bytes .../images/access/panel/white-left-right.gif | Bin 52 -> 0 bytes .../images/access/panel/white-top-bottom.gif | Bin 115 -> 0 bytes .../images/access/progress/progress-bg.gif | Bin 151 -> 0 bytes .../resources/images/access/qtip/close.gif | Bin 972 -> 0 bytes .../images/access/qtip/tip-anchor-sprite.gif | Bin 951 -> 0 bytes .../images/access/qtip/tip-sprite.gif | Bin 3376 -> 0 bytes .../images/access/shared/glass-bg.gif | Bin 103 -> 0 bytes .../images/access/shared/hd-sprite.gif | Bin 673 -> 0 bytes .../images/access/shared/left-btn.gif | Bin 77 -> 0 bytes .../images/access/shared/right-btn.gif | Bin 79 -> 0 bytes .../images/access/sizer/e-handle-dark.gif | Bin 248 -> 0 bytes .../images/access/sizer/e-handle.gif | Bin 753 -> 0 bytes .../images/access/sizer/ne-handle-dark.gif | Bin 66 -> 0 bytes .../images/access/sizer/ne-handle.gif | Bin 115 -> 0 bytes .../images/access/sizer/nw-handle-dark.gif | Bin 66 -> 0 bytes .../images/access/sizer/nw-handle.gif | Bin 114 -> 0 bytes .../images/access/sizer/s-handle-dark.gif | Bin 246 -> 0 bytes .../images/access/sizer/s-handle.gif | Bin 494 -> 0 bytes .../images/access/sizer/se-handle-dark.gif | Bin 65 -> 0 bytes .../images/access/sizer/se-handle.gif | Bin 114 -> 0 bytes .../resources/images/access/sizer/square.gif | Bin 123 -> 0 bytes .../images/access/sizer/sw-handle-dark.gif | Bin 66 -> 0 bytes .../images/access/sizer/sw-handle.gif | Bin 116 -> 0 bytes .../images/access/slider/slider-bg.png | Bin 3636 -> 0 bytes .../images/access/slider/slider-thumb.png | Bin 3436 -> 0 bytes .../images/access/slider/slider-v-bg.png | Bin 3630 -> 0 bytes .../images/access/slider/slider-v-thumb.png | Bin 3432 -> 0 bytes .../images/access/tabs/scroll-left.gif | Bin 996 -> 0 bytes .../images/access/tabs/scroll-right.gif | Bin 999 -> 0 bytes .../access/tabs/tab-btm-inactive-left-bg.gif | Bin 130 -> 0 bytes .../access/tabs/tab-btm-inactive-right-bg.gif | Bin 513 -> 0 bytes .../images/access/tabs/tab-btm-left-bg.gif | Bin 512 -> 0 bytes .../images/access/tabs/tab-btm-right-bg.gif | Bin 117 -> 0 bytes .../images/access/tabs/tab-close.gif | Bin 76 -> 0 bytes .../images/access/tabs/tab-strip-bg.gif | Bin 827 -> 0 bytes .../images/access/tabs/tab-strip-btm-bg.gif | Bin 70 -> 0 bytes .../images/access/tabs/tabs-sprite.gif | Bin 1221 -> 0 bytes .../resources/images/access/toolbar/bg.gif | Bin 82 -> 0 bytes .../images/access/toolbar/btn-arrow-light.gif | Bin 916 -> 0 bytes .../images/access/toolbar/btn-arrow.gif | Bin 919 -> 0 bytes .../images/access/toolbar/btn-over-bg.gif | Bin 837 -> 0 bytes .../images/access/toolbar/gray-bg.gif | Bin 832 -> 0 bytes .../resources/images/access/toolbar/more.gif | Bin 67 -> 0 bytes .../images/access/toolbar/s-arrow-bo.gif | Bin 186 -> 0 bytes .../images/access/toolbar/tb-btn-sprite.gif | Bin 1127 -> 0 bytes .../access/toolbar/tb-xl-btn-sprite.gif | Bin 1663 -> 0 bytes .../images/access/toolbar/tb-xl-sep.gif | Bin 810 -> 0 bytes .../resources/images/access/tree/arrows.gif | Bin 183 -> 0 bytes .../resources/images/access/tree/drop-add.gif | Bin 1001 -> 0 bytes .../images/access/tree/drop-between.gif | Bin 907 -> 0 bytes .../resources/images/access/tree/drop-no.gif | Bin 949 -> 0 bytes .../images/access/tree/drop-over.gif | Bin 911 -> 0 bytes .../images/access/tree/drop-under.gif | Bin 911 -> 0 bytes .../resources/images/access/tree/drop-yes.gif | Bin 1016 -> 0 bytes .../images/access/tree/elbow-end-minus-nl.gif | Bin 86 -> 0 bytes .../images/access/tree/elbow-end-minus.gif | Bin 104 -> 0 bytes .../images/access/tree/elbow-end-plus-nl.gif | Bin 89 -> 0 bytes .../images/access/tree/elbow-end-plus.gif | Bin 108 -> 0 bytes .../images/access/tree/elbow-end.gif | Bin 844 -> 0 bytes .../images/access/tree/elbow-line.gif | Bin 846 -> 0 bytes .../images/access/tree/elbow-minus-nl.gif | Bin 86 -> 0 bytes .../images/access/tree/elbow-minus.gif | Bin 106 -> 0 bytes .../images/access/tree/elbow-plus-nl.gif | Bin 89 -> 0 bytes .../images/access/tree/elbow-plus.gif | Bin 111 -> 0 bytes .../resources/images/access/tree/elbow.gif | Bin 850 -> 0 bytes .../images/access/tree/folder-open.gif | Bin 342 -> 0 bytes .../resources/images/access/tree/folder.gif | Bin 340 -> 0 bytes .../resources/images/access/tree/leaf.gif | Bin 945 -> 0 bytes .../resources/images/access/tree/loading.gif | Bin 771 -> 0 bytes .../extjs/resources/images/access/tree/s.gif | Bin 43 -> 0 bytes .../images/access/window/icon-error.gif | Bin 256 -> 0 bytes .../images/access/window/icon-info.gif | Bin 172 -> 0 bytes .../images/access/window/icon-question.gif | Bin 217 -> 0 bytes .../images/access/window/icon-warning.gif | Bin 173 -> 0 bytes .../images/access/window/left-corners.png | Bin 3612 -> 0 bytes .../images/access/window/left-right.png | Bin 3578 -> 0 bytes .../images/access/window/right-corners.png | Bin 3612 -> 0 bytes .../images/access/window/top-bottom.png | Bin 3600 -> 0 bytes .../images/default/box/corners-blue.gif | Bin 1010 -> 0 bytes .../resources/images/default/box/corners.gif | Bin 1005 -> 0 bytes .../resources/images/default/box/l-blue.gif | Bin 810 -> 0 bytes .../extjs/resources/images/default/box/l.gif | Bin 810 -> 0 bytes .../resources/images/default/box/r-blue.gif | Bin 810 -> 0 bytes .../extjs/resources/images/default/box/r.gif | Bin 810 -> 0 bytes .../resources/images/default/box/tb-blue.gif | Bin 851 -> 0 bytes .../extjs/resources/images/default/box/tb.gif | Bin 839 -> 0 bytes .../resources/images/default/button/arrow.gif | Bin 828 -> 0 bytes .../resources/images/default/button/btn.gif | Bin 4298 -> 0 bytes .../images/default/button/group-cs.gif | Bin 2459 -> 0 bytes .../images/default/button/group-lr.gif | Bin 861 -> 0 bytes .../images/default/button/group-tb.gif | Bin 846 -> 0 bytes .../default/button/s-arrow-b-noline.gif | Bin 898 -> 0 bytes .../images/default/button/s-arrow-b.gif | Bin 937 -> 0 bytes .../images/default/button/s-arrow-bo.gif | Bin 139 -> 0 bytes .../images/default/button/s-arrow-noline.gif | Bin 863 -> 0 bytes .../images/default/button/s-arrow-o.gif | Bin 937 -> 0 bytes .../images/default/button/s-arrow.gif | Bin 937 -> 0 bytes .../resources/images/default/dd/drop-add.gif | Bin 1001 -> 0 bytes .../resources/images/default/dd/drop-no.gif | Bin 949 -> 0 bytes .../resources/images/default/dd/drop-yes.gif | Bin 1016 -> 0 bytes .../images/default/editor/tb-sprite.gif | Bin 2072 -> 0 bytes .../images/default/form/checkbox.gif | Bin 2061 -> 0 bytes .../images/default/form/clear-trigger.gif | Bin 1988 -> 0 bytes .../images/default/form/clear-trigger.psd | Bin 11804 -> 0 bytes .../images/default/form/date-trigger.gif | Bin 1603 -> 0 bytes .../images/default/form/date-trigger.psd | Bin 12377 -> 0 bytes .../images/default/form/error-tip-corners.gif | Bin 4183 -> 0 bytes .../images/default/form/exclamation.gif | Bin 996 -> 0 bytes .../resources/images/default/form/radio.gif | Bin 1746 -> 0 bytes .../images/default/form/search-trigger.gif | Bin 2182 -> 0 bytes .../images/default/form/search-trigger.psd | Bin 15601 -> 0 bytes .../resources/images/default/form/text-bg.gif | Bin 819 -> 0 bytes .../images/default/form/trigger-square.gif | Bin 1810 -> 0 bytes .../images/default/form/trigger-square.psd | Bin 36542 -> 0 bytes .../images/default/form/trigger-tpl.gif | Bin 1487 -> 0 bytes .../resources/images/default/form/trigger.gif | Bin 1816 -> 0 bytes .../resources/images/default/form/trigger.psd | Bin 37599 -> 0 bytes .../resources/images/default/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/default/grid/arrow-left-white.gif | Bin 825 -> 0 bytes .../images/default/grid/arrow-right-white.gif | Bin 825 -> 0 bytes .../images/default/grid/col-move-bottom.gif | Bin 868 -> 0 bytes .../images/default/grid/col-move-top.gif | Bin 869 -> 0 bytes .../resources/images/default/grid/columns.gif | Bin 962 -> 0 bytes .../resources/images/default/grid/dirty.gif | Bin 832 -> 0 bytes .../resources/images/default/grid/done.gif | Bin 133 -> 0 bytes .../resources/images/default/grid/drop-no.gif | Bin 947 -> 0 bytes .../images/default/grid/drop-yes.gif | Bin 860 -> 0 bytes .../images/default/grid/footer-bg.gif | Bin 834 -> 0 bytes .../images/default/grid/grid-blue-hd.gif | Bin 829 -> 0 bytes .../images/default/grid/grid-blue-split.gif | Bin 817 -> 0 bytes .../images/default/grid/grid-hrow.gif | Bin 855 -> 0 bytes .../images/default/grid/grid-loading.gif | Bin 701 -> 0 bytes .../images/default/grid/grid-split.gif | Bin 817 -> 0 bytes .../images/default/grid/grid-vista-hd.gif | Bin 829 -> 0 bytes .../images/default/grid/grid3-hd-btn.gif | Bin 1229 -> 0 bytes .../images/default/grid/grid3-hrow-over.gif | Bin 823 -> 0 bytes .../images/default/grid/grid3-hrow.gif | Bin 836 -> 0 bytes .../images/default/grid/grid3-rowheader.gif | Bin 43 -> 0 bytes .../default/grid/grid3-special-col-bg.gif | Bin 837 -> 0 bytes .../default/grid/grid3-special-col-sel-bg.gif | Bin 843 -> 0 bytes .../images/default/grid/group-by.gif | Bin 917 -> 0 bytes .../images/default/grid/group-collapse.gif | Bin 881 -> 0 bytes .../default/grid/group-expand-sprite.gif | Bin 955 -> 0 bytes .../images/default/grid/group-expand.gif | Bin 884 -> 0 bytes .../resources/images/default/grid/hd-pop.gif | Bin 839 -> 0 bytes .../images/default/grid/hmenu-asc.gif | Bin 931 -> 0 bytes .../images/default/grid/hmenu-desc.gif | Bin 930 -> 0 bytes .../images/default/grid/hmenu-lock.gif | Bin 955 -> 0 bytes .../images/default/grid/hmenu-lock.png | Bin 648 -> 0 bytes .../images/default/grid/hmenu-unlock.gif | Bin 971 -> 0 bytes .../images/default/grid/hmenu-unlock.png | Bin 697 -> 0 bytes .../images/default/grid/invalid_line.gif | Bin 815 -> 0 bytes .../resources/images/default/grid/loading.gif | Bin 771 -> 0 bytes .../resources/images/default/grid/mso-hd.gif | Bin 875 -> 0 bytes .../resources/images/default/grid/nowait.gif | Bin 884 -> 0 bytes .../default/grid/page-first-disabled.gif | Bin 925 -> 0 bytes .../images/default/grid/page-first.gif | Bin 925 -> 0 bytes .../default/grid/page-last-disabled.gif | Bin 923 -> 0 bytes .../images/default/grid/page-last.gif | Bin 923 -> 0 bytes .../default/grid/page-next-disabled.gif | Bin 875 -> 0 bytes .../images/default/grid/page-next.gif | Bin 875 -> 0 bytes .../default/grid/page-prev-disabled.gif | Bin 879 -> 0 bytes .../images/default/grid/page-prev.gif | Bin 879 -> 0 bytes .../images/default/grid/pick-button.gif | Bin 1036 -> 0 bytes .../images/default/grid/refresh-disabled.gif | Bin 577 -> 0 bytes .../resources/images/default/grid/refresh.gif | Bin 977 -> 0 bytes .../images/default/grid/row-check-sprite.gif | Bin 1083 -> 0 bytes .../images/default/grid/row-expand-sprite.gif | Bin 955 -> 0 bytes .../images/default/grid/row-over.gif | Bin 823 -> 0 bytes .../resources/images/default/grid/row-sel.gif | Bin 823 -> 0 bytes .../resources/images/default/grid/sort-hd.gif | Bin 1473 -> 0 bytes .../images/default/grid/sort_asc.gif | Bin 830 -> 0 bytes .../images/default/grid/sort_desc.gif | Bin 833 -> 0 bytes .../resources/images/default/grid/wait.gif | Bin 1100 -> 0 bytes .../images/default/layout/collapse.gif | Bin 842 -> 0 bytes .../images/default/layout/expand.gif | Bin 842 -> 0 bytes .../images/default/layout/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/default/layout/mini-bottom.gif | Bin 856 -> 0 bytes .../images/default/layout/mini-left.gif | Bin 871 -> 0 bytes .../images/default/layout/mini-right.gif | Bin 872 -> 0 bytes .../images/default/layout/mini-top.gif | Bin 856 -> 0 bytes .../images/default/layout/ns-collapse.gif | Bin 842 -> 0 bytes .../images/default/layout/ns-expand.gif | Bin 843 -> 0 bytes .../images/default/layout/panel-close.gif | Bin 829 -> 0 bytes .../images/default/layout/panel-title-bg.gif | Bin 838 -> 0 bytes .../default/layout/panel-title-light-bg.gif | Bin 835 -> 0 bytes .../resources/images/default/layout/stick.gif | Bin 874 -> 0 bytes .../resources/images/default/layout/stuck.gif | Bin 92 -> 0 bytes .../images/default/layout/tab-close-on.gif | Bin 880 -> 0 bytes .../images/default/layout/tab-close.gif | Bin 859 -> 0 bytes .../resources/images/default/menu/checked.gif | Bin 959 -> 0 bytes .../images/default/menu/group-checked.gif | Bin 891 -> 0 bytes .../images/default/menu/item-over.gif | Bin 820 -> 0 bytes .../images/default/menu/menu-parent.gif | Bin 854 -> 0 bytes .../resources/images/default/menu/menu.gif | Bin 834 -> 0 bytes .../images/default/menu/unchecked.gif | Bin 941 -> 0 bytes .../images/default/panel/corners-sprite.gif | Bin 1418 -> 0 bytes .../images/default/panel/left-right.gif | Bin 815 -> 0 bytes .../images/default/panel/light-hd.gif | Bin 827 -> 0 bytes .../images/default/panel/tool-sprite-tpl.gif | Bin 971 -> 0 bytes .../images/default/panel/tool-sprites.gif | Bin 5421 -> 0 bytes .../default/panel/tools-sprites-trans.gif | Bin 2843 -> 0 bytes .../images/default/panel/top-bottom.gif | Bin 875 -> 0 bytes .../images/default/panel/top-bottom.png | Bin 218 -> 0 bytes .../default/panel/white-corners-sprite.gif | Bin 1366 -> 0 bytes .../images/default/panel/white-left-right.gif | Bin 815 -> 0 bytes .../images/default/panel/white-top-bottom.gif | Bin 872 -> 0 bytes .../images/default/progress/progress-bg.gif | Bin 834 -> 0 bytes .../resources/images/default/qtip/bg.gif | Bin 1091 -> 0 bytes .../resources/images/default/qtip/close.gif | Bin 972 -> 0 bytes .../images/default/qtip/tip-anchor-sprite.gif | Bin 951 -> 0 bytes .../images/default/qtip/tip-sprite.gif | Bin 4271 -> 0 bytes .../extjs/resources/images/default/s.gif | Bin 43 -> 0 bytes .../resources/images/default/shadow-c.png | Bin 118 -> 0 bytes .../resources/images/default/shadow-lr.png | Bin 135 -> 0 bytes .../extjs/resources/images/default/shadow.png | Bin 311 -> 0 bytes .../images/default/shared/blue-loading.gif | Bin 3236 -> 0 bytes .../images/default/shared/calendar.gif | Bin 979 -> 0 bytes .../images/default/shared/glass-bg.gif | Bin 873 -> 0 bytes .../images/default/shared/hd-sprite.gif | Bin 1099 -> 0 bytes .../images/default/shared/large-loading.gif | Bin 3236 -> 0 bytes .../images/default/shared/left-btn.gif | Bin 870 -> 0 bytes .../images/default/shared/loading-balls.gif | Bin 2118 -> 0 bytes .../images/default/shared/right-btn.gif | Bin 871 -> 0 bytes .../images/default/shared/warning.gif | Bin 960 -> 0 bytes .../images/default/sizer/e-handle-dark.gif | Bin 1062 -> 0 bytes .../images/default/sizer/e-handle.gif | Bin 1586 -> 0 bytes .../images/default/sizer/ne-handle-dark.gif | Bin 839 -> 0 bytes .../images/default/sizer/ne-handle.gif | Bin 854 -> 0 bytes .../images/default/sizer/nw-handle-dark.gif | Bin 839 -> 0 bytes .../images/default/sizer/nw-handle.gif | Bin 853 -> 0 bytes .../images/default/sizer/s-handle-dark.gif | Bin 1060 -> 0 bytes .../images/default/sizer/s-handle.gif | Bin 1318 -> 0 bytes .../images/default/sizer/se-handle-dark.gif | Bin 838 -> 0 bytes .../images/default/sizer/se-handle.gif | Bin 853 -> 0 bytes .../resources/images/default/sizer/square.gif | Bin 864 -> 0 bytes .../images/default/sizer/sw-handle-dark.gif | Bin 839 -> 0 bytes .../images/default/sizer/sw-handle.gif | Bin 855 -> 0 bytes .../images/default/slider/slider-bg.png | Bin 300 -> 0 bytes .../images/default/slider/slider-thumb.png | Bin 933 -> 0 bytes .../images/default/slider/slider-v-bg.png | Bin 288 -> 0 bytes .../images/default/slider/slider-v-thumb.png | Bin 883 -> 0 bytes .../images/default/tabs/scroll-left.gif | Bin 1295 -> 0 bytes .../images/default/tabs/scroll-right.gif | Bin 1300 -> 0 bytes .../images/default/tabs/scroller-bg.gif | Bin 1100 -> 0 bytes .../default/tabs/tab-btm-inactive-left-bg.gif | Bin 886 -> 0 bytes .../tabs/tab-btm-inactive-right-bg.gif | Bin 1386 -> 0 bytes .../images/default/tabs/tab-btm-left-bg.gif | Bin 1402 -> 0 bytes .../default/tabs/tab-btm-over-left-bg.gif | Bin 191 -> 0 bytes .../default/tabs/tab-btm-over-right-bg.gif | Bin 638 -> 0 bytes .../images/default/tabs/tab-btm-right-bg.gif | Bin 863 -> 0 bytes .../images/default/tabs/tab-close.gif | Bin 896 -> 0 bytes .../images/default/tabs/tab-strip-bg.gif | Bin 835 -> 0 bytes .../images/default/tabs/tab-strip-bg.png | Bin 259 -> 0 bytes .../images/default/tabs/tab-strip-btm-bg.gif | Bin 826 -> 0 bytes .../images/default/tabs/tabs-sprite.gif | Bin 2120 -> 0 bytes .../resources/images/default/toolbar/bg.gif | Bin 904 -> 0 bytes .../default/toolbar/btn-arrow-light.gif | Bin 916 -> 0 bytes .../images/default/toolbar/btn-arrow.gif | Bin 919 -> 0 bytes .../images/default/toolbar/btn-over-bg.gif | Bin 837 -> 0 bytes .../images/default/toolbar/gray-bg.gif | Bin 832 -> 0 bytes .../resources/images/default/toolbar/more.gif | Bin 845 -> 0 bytes .../images/default/toolbar/tb-bg.gif | Bin 862 -> 0 bytes .../images/default/toolbar/tb-btn-sprite.gif | Bin 1127 -> 0 bytes .../default/toolbar/tb-xl-btn-sprite.gif | Bin 1663 -> 0 bytes .../images/default/toolbar/tb-xl-sep.gif | Bin 810 -> 0 bytes .../resources/images/default/tree/arrows.gif | Bin 617 -> 0 bytes .../images/default/tree/drop-add.gif | Bin 1001 -> 0 bytes .../images/default/tree/drop-between.gif | Bin 907 -> 0 bytes .../resources/images/default/tree/drop-no.gif | Bin 949 -> 0 bytes .../images/default/tree/drop-over.gif | Bin 911 -> 0 bytes .../images/default/tree/drop-under.gif | Bin 911 -> 0 bytes .../images/default/tree/drop-yes.gif | Bin 1016 -> 0 bytes .../default/tree/elbow-end-minus-nl.gif | Bin 898 -> 0 bytes .../images/default/tree/elbow-end-minus.gif | Bin 905 -> 0 bytes .../images/default/tree/elbow-end-plus-nl.gif | Bin 900 -> 0 bytes .../images/default/tree/elbow-end-plus.gif | Bin 907 -> 0 bytes .../images/default/tree/elbow-end.gif | Bin 844 -> 0 bytes .../images/default/tree/elbow-line.gif | Bin 846 -> 0 bytes .../images/default/tree/elbow-minus-nl.gif | Bin 898 -> 0 bytes .../images/default/tree/elbow-minus.gif | Bin 908 -> 0 bytes .../images/default/tree/elbow-plus-nl.gif | Bin 900 -> 0 bytes .../images/default/tree/elbow-plus.gif | Bin 910 -> 0 bytes .../resources/images/default/tree/elbow.gif | Bin 850 -> 0 bytes .../images/default/tree/folder-open.gif | Bin 956 -> 0 bytes .../resources/images/default/tree/folder.gif | Bin 952 -> 0 bytes .../resources/images/default/tree/leaf.gif | Bin 945 -> 0 bytes .../resources/images/default/tree/loading.gif | Bin 771 -> 0 bytes .../extjs/resources/images/default/tree/s.gif | Bin 43 -> 0 bytes .../images/default/window/icon-error.gif | Bin 1669 -> 0 bytes .../images/default/window/icon-info.gif | Bin 1586 -> 0 bytes .../images/default/window/icon-question.gif | Bin 1607 -> 0 bytes .../images/default/window/icon-warning.gif | Bin 1483 -> 0 bytes .../images/default/window/left-corners.png | Bin 200 -> 0 bytes .../images/default/window/left-corners.psd | Bin 15576 -> 0 bytes .../images/default/window/left-right.png | Bin 152 -> 0 bytes .../images/default/window/left-right.psd | Bin 24046 -> 0 bytes .../images/default/window/right-corners.png | Bin 256 -> 0 bytes .../images/default/window/right-corners.psd | Bin 15530 -> 0 bytes .../images/default/window/top-bottom.png | Bin 180 -> 0 bytes .../images/default/window/top-bottom.psd | Bin 32128 -> 0 bytes .../images/gray/button/btn-arrow.gif | Bin 870 -> 0 bytes .../images/gray/button/btn-sprite.gif | Bin 1222 -> 0 bytes .../resources/images/gray/button/btn.gif | Bin 3319 -> 0 bytes .../resources/images/gray/button/group-cs.gif | Bin 2459 -> 0 bytes .../resources/images/gray/button/group-lr.gif | Bin 861 -> 0 bytes .../resources/images/gray/button/group-tb.gif | Bin 846 -> 0 bytes .../images/gray/button/s-arrow-bo.gif | Bin 123 -> 0 bytes .../images/gray/button/s-arrow-o.gif | Bin 139 -> 0 bytes .../images/gray/form/clear-trigger.gif | Bin 1425 -> 0 bytes .../images/gray/form/date-trigger.gif | Bin 929 -> 0 bytes .../images/gray/form/search-trigger.gif | Bin 2220 -> 0 bytes .../images/gray/form/trigger-square.gif | Bin 1071 -> 0 bytes .../resources/images/gray/form/trigger.gif | Bin 1080 -> 0 bytes .../resources/images/gray/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/gray/grid/col-move-bottom.gif | Bin 177 -> 0 bytes .../images/gray/grid/col-move-top.gif | Bin 178 -> 0 bytes .../images/gray/grid/grid3-hd-btn.gif | Bin 482 -> 0 bytes .../images/gray/grid/grid3-hrow-over.gif | Bin 56 -> 0 bytes .../images/gray/grid/grid3-hrow-over2.gif | Bin 107 -> 0 bytes .../resources/images/gray/grid/grid3-hrow.gif | Bin 836 -> 0 bytes .../images/gray/grid/grid3-hrow2.gif | Bin 107 -> 0 bytes .../images/gray/grid/grid3-special-col-bg.gif | Bin 158 -> 0 bytes .../gray/grid/grid3-special-col-bg2.gif | Bin 158 -> 0 bytes .../gray/grid/grid3-special-col-sel-bg.gif | Bin 158 -> 0 bytes .../images/gray/grid/group-collapse.gif | Bin 136 -> 0 bytes .../images/gray/grid/group-expand-sprite.gif | Bin 196 -> 0 bytes .../images/gray/grid/group-expand.gif | Bin 138 -> 0 bytes .../resources/images/gray/grid/page-first.gif | Bin 327 -> 0 bytes .../resources/images/gray/grid/page-last.gif | Bin 325 -> 0 bytes .../resources/images/gray/grid/page-next.gif | Bin 183 -> 0 bytes .../resources/images/gray/grid/page-prev.gif | Bin 186 -> 0 bytes .../resources/images/gray/grid/refresh.gif | Bin 570 -> 0 bytes .../images/gray/grid/row-expand-sprite.gif | Bin 196 -> 0 bytes .../resources/images/gray/grid/sort-hd.gif | Bin 2731 -> 0 bytes .../resources/images/gray/grid/sort_asc.gif | Bin 59 -> 0 bytes .../resources/images/gray/grid/sort_desc.gif | Bin 59 -> 0 bytes .../images/gray/menu/group-checked.gif | Bin 295 -> 0 bytes .../images/gray/menu/item-over-disabled.gif | Bin 49 -> 0 bytes .../resources/images/gray/menu/item-over.gif | Bin 850 -> 0 bytes .../images/gray/menu/menu-parent.gif | Bin 165 -> 0 bytes .../images/gray/panel/corners-sprite.gif | Bin 1402 -> 0 bytes .../images/gray/panel/left-right.gif | Bin 815 -> 0 bytes .../resources/images/gray/panel/light-hd.gif | Bin 827 -> 0 bytes .../images/gray/panel/tool-sprite-tpl.gif | Bin 971 -> 0 bytes .../images/gray/panel/tool-sprites.gif | Bin 5835 -> 0 bytes .../images/gray/panel/tools-sprites-trans.gif | Bin 1981 -> 0 bytes .../images/gray/panel/top-bottom.gif | Bin 871 -> 0 bytes .../images/gray/panel/top-bottom.png | Bin 218 -> 0 bytes .../gray/panel/white-corners-sprite.gif | Bin 1365 -> 0 bytes .../images/gray/panel/white-left-right.gif | Bin 815 -> 0 bytes .../images/gray/panel/white-top-bottom.gif | Bin 860 -> 0 bytes .../images/gray/progress/progress-bg.gif | Bin 107 -> 0 bytes .../extjs/resources/images/gray/qtip/bg.gif | Bin 1024 -> 0 bytes .../resources/images/gray/qtip/close.gif | Bin 972 -> 0 bytes .../images/gray/qtip/tip-anchor-sprite.gif | Bin 164 -> 0 bytes .../resources/images/gray/qtip/tip-sprite.gif | Bin 3241 -> 0 bytes .../extjs/resources/images/gray/s.gif | Bin 43 -> 0 bytes .../images/gray/shared/hd-sprite.gif | Bin 305 -> 0 bytes .../resources/images/gray/shared/left-btn.gif | Bin 106 -> 0 bytes .../images/gray/shared/right-btn.gif | Bin 107 -> 0 bytes .../resources/images/gray/sizer/e-handle.gif | Bin 753 -> 0 bytes .../resources/images/gray/sizer/ne-handle.gif | Bin 128 -> 0 bytes .../resources/images/gray/sizer/nw-handle.gif | Bin 114 -> 0 bytes .../resources/images/gray/sizer/s-handle.gif | Bin 494 -> 0 bytes .../resources/images/gray/sizer/se-handle.gif | Bin 114 -> 0 bytes .../resources/images/gray/sizer/square.gif | Bin 123 -> 0 bytes .../resources/images/gray/sizer/sw-handle.gif | Bin 116 -> 0 bytes .../images/gray/slider/slider-thumb.png | Bin 675 -> 0 bytes .../images/gray/slider/slider-v-thumb.png | Bin 632 -> 0 bytes .../images/gray/tabs/scroll-left.gif | Bin 1260 -> 0 bytes .../images/gray/tabs/scroll-right.gif | Bin 1269 -> 0 bytes .../images/gray/tabs/scroller-bg.gif | Bin 1090 -> 0 bytes .../gray/tabs/tab-btm-inactive-left-bg.gif | Bin 881 -> 0 bytes .../gray/tabs/tab-btm-inactive-right-bg.gif | Bin 1383 -> 0 bytes .../images/gray/tabs/tab-btm-left-bg.gif | Bin 1402 -> 0 bytes .../images/gray/tabs/tab-btm-over-left-bg.gif | Bin 189 -> 0 bytes .../gray/tabs/tab-btm-over-right-bg.gif | Bin 635 -> 0 bytes .../images/gray/tabs/tab-btm-right-bg.gif | Bin 863 -> 0 bytes .../resources/images/gray/tabs/tab-close.gif | Bin 896 -> 0 bytes .../images/gray/tabs/tab-strip-bg.gif | Bin 835 -> 0 bytes .../images/gray/tabs/tab-strip-bg.png | Bin 259 -> 0 bytes .../images/gray/tabs/tab-strip-btm-bg.gif | Bin 826 -> 0 bytes .../images/gray/tabs/tabs-sprite.gif | Bin 2109 -> 0 bytes .../resources/images/gray/toolbar/bg.gif | Bin 854 -> 0 bytes .../images/gray/toolbar/btn-arrow-light.gif | Bin 916 -> 0 bytes .../images/gray/toolbar/btn-arrow.gif | Bin 919 -> 0 bytes .../images/gray/toolbar/btn-over-bg.gif | Bin 837 -> 0 bytes .../resources/images/gray/toolbar/gray-bg.gif | Bin 815 -> 0 bytes .../resources/images/gray/toolbar/more.gif | Bin 67 -> 0 bytes .../resources/images/gray/toolbar/tb-bg.gif | Bin 862 -> 0 bytes .../images/gray/toolbar/tb-btn-sprite.gif | Bin 1021 -> 0 bytes .../resources/images/gray/tree/arrows.gif | Bin 407 -> 0 bytes .../images/gray/tree/elbow-end-minus-nl.gif | Bin 149 -> 0 bytes .../images/gray/tree/elbow-end-minus.gif | Bin 154 -> 0 bytes .../images/gray/tree/elbow-end-plus-nl.gif | Bin 151 -> 0 bytes .../images/gray/tree/elbow-end-plus.gif | Bin 156 -> 0 bytes .../images/gray/window/icon-error.gif | Bin 1669 -> 0 bytes .../images/gray/window/icon-info.gif | Bin 1586 -> 0 bytes .../images/gray/window/icon-question.gif | Bin 1607 -> 0 bytes .../images/gray/window/icon-warning.gif | Bin 1483 -> 0 bytes .../images/gray/window/left-corners.png | Bin 293 -> 0 bytes .../images/gray/window/left-right.png | Bin 136 -> 0 bytes .../images/gray/window/right-corners.png | Bin 293 -> 0 bytes .../images/gray/window/top-bottom.png | Bin 210 -> 0 bytes .../resources/images/slate/button/btn.gif | Bin 2976 -> 0 bytes .../images/slate/button/group-cs.gif | Bin 2114 -> 0 bytes .../images/slate/button/group-lr.gif | Bin 80 -> 0 bytes .../images/slate/button/group-tb.gif | Bin 284 -> 0 bytes .../images/slate/button/s-arrow-bo.gif | Bin 139 -> 0 bytes .../images/slate/button/s-arrow-o.gif | Bin 139 -> 0 bytes .../images/slate/editor/tb-sprite.gif | Bin 1994 -> 0 bytes .../images/slate/form/clear-trigger.gif | Bin 2091 -> 0 bytes .../images/slate/form/date-trigger.gif | Bin 1612 -> 0 bytes .../images/slate/form/search-trigger.gif | Bin 2345 -> 0 bytes .../images/slate/form/trigger-tpl.gif | Bin 1506 -> 0 bytes .../resources/images/slate/form/trigger.gif | Bin 1657 -> 0 bytes .../resources/images/slate/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/slate/grid/arrow-left-white.gif | Bin 825 -> 0 bytes .../images/slate/grid/arrow-right-white.gif | Bin 825 -> 0 bytes .../images/slate/grid/col-move-bottom.gif | Bin 868 -> 0 bytes .../images/slate/grid/col-move-top.gif | Bin 869 -> 0 bytes .../resources/images/slate/grid/footer-bg.gif | Bin 834 -> 0 bytes .../images/slate/grid/grid-blue-hd.gif | Bin 829 -> 0 bytes .../images/slate/grid/grid-blue-split.gif | Bin 47 -> 0 bytes .../resources/images/slate/grid/grid-hrow.gif | Bin 855 -> 0 bytes .../images/slate/grid/grid-split.gif | Bin 817 -> 0 bytes .../images/slate/grid/grid-vista-hd.gif | Bin 829 -> 0 bytes .../images/slate/grid/grid3-hd-btn.gif | Bin 1220 -> 0 bytes .../images/slate/grid/grid3-hrow-over.gif | Bin 834 -> 0 bytes .../images/slate/grid/grid3-hrow.gif | Bin 836 -> 0 bytes .../slate/grid/grid3-special-col-bg.gif | Bin 837 -> 0 bytes .../slate/grid/grid3-special-col-sel-bg.gif | Bin 847 -> 0 bytes .../images/slate/grid/group-expand-sprite.gif | Bin 955 -> 0 bytes .../resources/images/slate/grid/mso-hd.gif | Bin 875 -> 0 bytes .../images/slate/grid/page-first-disabled.gif | Bin 925 -> 0 bytes .../images/slate/grid/page-first.gif | Bin 925 -> 0 bytes .../images/slate/grid/page-last-disabled.gif | Bin 923 -> 0 bytes .../resources/images/slate/grid/page-last.gif | Bin 923 -> 0 bytes .../images/slate/grid/page-next-disabled.gif | Bin 875 -> 0 bytes .../resources/images/slate/grid/page-next.gif | Bin 875 -> 0 bytes .../images/slate/grid/page-prev-disabled.gif | Bin 879 -> 0 bytes .../resources/images/slate/grid/page-prev.gif | Bin 879 -> 0 bytes .../resources/images/slate/grid/refresh.png | Bin 912 -> 0 bytes .../resources/images/slate/grid/row-over.gif | Bin 823 -> 0 bytes .../resources/images/slate/grid/row-sel.gif | Bin 823 -> 0 bytes .../resources/images/slate/grid/sort_asc.gif | Bin 830 -> 0 bytes .../resources/images/slate/grid/sort_desc.gif | Bin 833 -> 0 bytes .../images/slate/menu/item-over - Copy.gif | Bin 833 -> 0 bytes .../resources/images/slate/menu/item-over.gif | Bin 833 -> 0 bytes .../images/slate/menu/menu-parent.gif | Bin 853 -> 0 bytes .../resources/images/slate/menu/menu.gif | Bin 839 -> 0 bytes .../images/slate/panel/corners-sprite.gif | Bin 1383 -> 0 bytes .../images/slate/panel/left-right.gif | Bin 815 -> 0 bytes .../resources/images/slate/panel/light-hd.gif | Bin 844 -> 0 bytes .../images/slate/panel/tool-sprite-tpl.gif | Bin 1197 -> 0 bytes .../images/slate/panel/tool-sprites.gif | Bin 5787 -> 0 bytes .../slate/panel/tools-sprites-trans.gif | Bin 2640 -> 0 bytes .../images/slate/panel/top-bottom.gif | Bin 878 -> 0 bytes .../images/slate/panel/top-bottom.png | Bin 218 -> 0 bytes .../slate/panel/white-corners-sprite.gif | Bin 1365 -> 0 bytes .../images/slate/panel/white-left-right.gif | Bin 805 -> 0 bytes .../images/slate/panel/white-top-bottom.gif | Bin 864 -> 0 bytes .../images/slate/progress/progress-bg.gif | Bin 282 -> 0 bytes .../extjs/resources/images/slate/qtip/bg.gif | Bin 1091 -> 0 bytes .../resources/images/slate/qtip/close.gif | Bin 972 -> 0 bytes .../images/slate/qtip/tip-sprite.gif | Bin 4129 -> 0 bytes .../extjs/resources/images/slate/s.gif | Bin 43 -> 0 bytes .../images/slate/shared/glass-bg.gif | Bin 873 -> 0 bytes .../images/slate/shared/hd-sprite.gif | Bin 1099 -> 0 bytes .../images/slate/shared/left-btn.gif | Bin 878 -> 0 bytes .../images/slate/shared/right-btn.gif | Bin 879 -> 0 bytes .../images/slate/sizer/e-handle-dark.gif | Bin 1069 -> 0 bytes .../resources/images/slate/sizer/e-handle.gif | Bin 1599 -> 0 bytes .../images/slate/sizer/ne-handle-dark.gif | Bin 843 -> 0 bytes .../images/slate/sizer/ne-handle.gif | Bin 839 -> 0 bytes .../images/slate/sizer/nw-handle-dark.gif | Bin 841 -> 0 bytes .../images/slate/sizer/nw-handle.gif | Bin 839 -> 0 bytes .../images/slate/sizer/s-handle-dark.gif | Bin 1051 -> 0 bytes .../resources/images/slate/sizer/s-handle.gif | Bin 1311 -> 0 bytes .../images/slate/sizer/se-handle-dark.gif | Bin 844 -> 0 bytes .../images/slate/sizer/se-handle.gif | Bin 838 -> 0 bytes .../resources/images/slate/sizer/square.gif | Bin 841 -> 0 bytes .../images/slate/sizer/sw-handle-dark.gif | Bin 844 -> 0 bytes .../images/slate/sizer/sw-handle.gif | Bin 839 -> 0 bytes .../images/slate/slider/slider-bg.png | Bin 300 -> 0 bytes .../images/slate/slider/slider-thumb.png | Bin 1288 -> 0 bytes .../images/slate/slider/slider-v-bg.png | Bin 288 -> 0 bytes .../images/slate/slider/slider-v-thumb.png | Bin 1437 -> 0 bytes .../images/slate/tabs/scroll-left.gif | Bin 1260 -> 0 bytes .../images/slate/tabs/scroll-right.gif | Bin 1269 -> 0 bytes .../images/slate/tabs/scroller-bg.gif | Bin 1090 -> 0 bytes .../slate/tabs/tab-btm-inactive-left-bg.gif | Bin 883 -> 0 bytes .../slate/tabs/tab-btm-inactive-right-bg.gif | Bin 1553 -> 0 bytes .../images/slate/tabs/tab-btm-left-bg.gif | Bin 1586 -> 0 bytes .../images/slate/tabs/tab-btm-right-bg.gif | Bin 888 -> 0 bytes .../resources/images/slate/tabs/tab-close.gif | Bin 853 -> 0 bytes .../images/slate/tabs/tab-strip-bg.gif | Bin 906 -> 0 bytes .../images/slate/tabs/tab-strip-bg.png | Bin 259 -> 0 bytes .../images/slate/tabs/tab-strip-btm-bg.gif | Bin 826 -> 0 bytes .../images/slate/tabs/tabs-sprite.gif | Bin 2625 -> 0 bytes .../resources/images/slate/toolbar/bg.gif | Bin 842 -> 0 bytes .../images/slate/toolbar/btn-arrow-light.gif | Bin 916 -> 0 bytes .../images/slate/toolbar/btn-arrow.gif | Bin 908 -> 0 bytes .../images/slate/toolbar/btn-over-bg.gif | Bin 829 -> 0 bytes .../images/slate/toolbar/gray-bg.gif | Bin 832 -> 0 bytes .../resources/images/slate/toolbar/tb-bg.gif | Bin 862 -> 0 bytes .../images/slate/toolbar/tb-btn-sprite.gif | Bin 1070 -> 0 bytes .../images/slate/window/icon-error.gif | Bin 1669 -> 0 bytes .../images/slate/window/icon-info.gif | Bin 1586 -> 0 bytes .../images/slate/window/icon-question.gif | Bin 1607 -> 0 bytes .../images/slate/window/icon-warning.gif | Bin 1483 -> 0 bytes .../images/slate/window/left-corners.png | Bin 432 -> 0 bytes .../images/slate/window/left-right.png | Bin 154 -> 0 bytes .../images/slate/window/right-corners.png | Bin 459 -> 0 bytes .../images/slate/window/top-bottom.png | Bin 457 -> 0 bytes .../resources/images/tp/box/corners-blue.gif | Bin 1009 -> 0 bytes .../extjs/resources/images/tp/box/corners.gif | Bin 1001 -> 0 bytes .../extjs/resources/images/tp/box/l-blue.gif | Bin 802 -> 0 bytes .../extjs/resources/images/tp/box/l.gif | Bin 802 -> 0 bytes .../extjs/resources/images/tp/box/r-blue.gif | Bin 802 -> 0 bytes .../extjs/resources/images/tp/box/r.gif | Bin 802 -> 0 bytes .../extjs/resources/images/tp/box/tb-blue.gif | Bin 844 -> 0 bytes .../extjs/resources/images/tp/box/tb.gif | Bin 831 -> 0 bytes .../resources/images/tp/button/arrow.gif | Bin 829 -> 0 bytes .../resources/images/tp/button/btn-arrow.gif | Bin 869 -> 0 bytes .../resources/images/tp/button/btn-sprite.gif | Bin 1239 -> 0 bytes .../extjs/resources/images/tp/button/btn.gif | Bin 3336 -> 0 bytes .../resources/images/tp/button/group-cs.gif | Bin 2452 -> 0 bytes .../resources/images/tp/button/group-lr.gif | Bin 861 -> 0 bytes .../resources/images/tp/button/group-tb.gif | Bin 851 -> 0 bytes .../images/tp/button/s-arrow-b-noline.gif | Bin 898 -> 0 bytes .../resources/images/tp/button/s-arrow-b.gif | Bin 937 -> 0 bytes .../resources/images/tp/button/s-arrow-bo.gif | Bin 139 -> 0 bytes .../images/tp/button/s-arrow-noline.gif | Bin 863 -> 0 bytes .../resources/images/tp/button/s-arrow-o.gif | Bin 139 -> 0 bytes .../resources/images/tp/button/s-arrow.gif | Bin 937 -> 0 bytes .../extjs/resources/images/tp/dd/drop-add.gif | Bin 1001 -> 0 bytes .../extjs/resources/images/tp/dd/drop-no.gif | Bin 949 -> 0 bytes .../extjs/resources/images/tp/dd/drop-yes.gif | Bin 1016 -> 0 bytes .../resources/images/tp/editor/tb-sprite.gif | Bin 2067 -> 0 bytes .../resources/images/tp/form/checkbox.gif | Bin 2085 -> 0 bytes .../images/tp/form/clear-trigger.gif | Bin 1756 -> 0 bytes .../resources/images/tp/form/date-trigger.gif | Bin 1491 -> 0 bytes .../images/tp/form/error-tip-corners.gif | Bin 4183 -> 0 bytes .../resources/images/tp/form/exclamation.gif | Bin 996 -> 0 bytes .../extjs/resources/images/tp/form/radio.gif | Bin 1761 -> 0 bytes .../images/tp/form/search-trigger.gif | Bin 1754 -> 0 bytes .../resources/images/tp/form/text-bg.gif | Bin 813 -> 0 bytes .../images/tp/form/trigger-square.gif | Bin 1680 -> 0 bytes .../resources/images/tp/form/trigger-tpl.gif | Bin 1479 -> 0 bytes .../resources/images/tp/form/trigger.gif | Bin 1820 -> 0 bytes .../extjs/resources/images/tp/gradient-bg.gif | Bin 1560 -> 0 bytes .../images/tp/grid/col-move-bottom.gif | Bin 868 -> 0 bytes .../resources/images/tp/grid/col-move-top.gif | Bin 868 -> 0 bytes .../resources/images/tp/grid/columns.gif | Bin 962 -> 0 bytes .../extjs/resources/images/tp/grid/dirty.gif | Bin 830 -> 0 bytes .../extjs/resources/images/tp/grid/done.gif | Bin 135 -> 0 bytes .../resources/images/tp/grid/drop-no.gif | Bin 943 -> 0 bytes .../resources/images/tp/grid/drop-yes.gif | Bin 852 -> 0 bytes .../resources/images/tp/grid/grid-hrow.gif | Bin 847 -> 0 bytes .../resources/images/tp/grid/grid-loading.gif | Bin 1110 -> 0 bytes .../resources/images/tp/grid/grid-split.gif | Bin 809 -> 0 bytes .../resources/images/tp/grid/grid3-hd-btn.gif | Bin 1207 -> 0 bytes .../images/tp/grid/grid3-hrow-over.gif | Bin 51 -> 0 bytes .../images/tp/grid/grid3-hrow-over2.gif | Bin 102 -> 0 bytes .../resources/images/tp/grid/grid3-hrow.gif | Bin 833 -> 0 bytes .../resources/images/tp/grid/grid3-hrow2.gif | Bin 102 -> 0 bytes .../images/tp/grid/grid3-rowheader.gif | Bin 35 -> 0 bytes .../images/tp/grid/grid3-special-col-bg.gif | Bin 835 -> 0 bytes .../images/tp/grid/grid3-special-col-bg2.gif | Bin 835 -> 0 bytes .../tp/grid/grid3-special-col-sel-bg.gif | Bin 835 -> 0 bytes .../resources/images/tp/grid/group-by.gif | Bin 917 -> 0 bytes .../images/tp/grid/group-collapse.gif | Bin 895 -> 0 bytes .../images/tp/grid/group-expand-sprite.gif | Bin 198 -> 0 bytes .../resources/images/tp/grid/group-expand.gif | Bin 902 -> 0 bytes .../extjs/resources/images/tp/grid/hd-pop.gif | Bin 838 -> 0 bytes .../resources/images/tp/grid/hmenu-asc.gif | Bin 931 -> 0 bytes .../resources/images/tp/grid/hmenu-desc.gif | Bin 931 -> 0 bytes .../resources/images/tp/grid/hmenu-lock.gif | Bin 955 -> 0 bytes .../resources/images/tp/grid/hmenu-lock.png | Bin 529 -> 0 bytes .../resources/images/tp/grid/hmenu-unlock.gif | Bin 971 -> 0 bytes .../resources/images/tp/grid/hmenu-unlock.png | Bin 585 -> 0 bytes .../resources/images/tp/grid/invalid_line.gif | Bin 815 -> 0 bytes .../resources/images/tp/grid/loading.gif | Bin 842 -> 0 bytes .../images/tp/grid/page-first-disabled.gif | Bin 925 -> 0 bytes .../resources/images/tp/grid/page-first.gif | Bin 327 -> 0 bytes .../images/tp/grid/page-last-disabled.gif | Bin 923 -> 0 bytes .../resources/images/tp/grid/page-last.gif | Bin 325 -> 0 bytes .../images/tp/grid/page-next-disabled.gif | Bin 875 -> 0 bytes .../resources/images/tp/grid/page-next.gif | Bin 183 -> 0 bytes .../images/tp/grid/page-prev-disabled.gif | Bin 879 -> 0 bytes .../resources/images/tp/grid/page-prev.gif | Bin 186 -> 0 bytes .../resources/images/tp/grid/refresh.gif | Bin 570 -> 0 bytes .../images/tp/grid/row-check-sprite.gif | Bin 1088 -> 0 bytes .../images/tp/grid/row-expand-sprite.gif | Bin 201 -> 0 bytes .../resources/images/tp/grid/row-over.gif | Bin 818 -> 0 bytes .../resources/images/tp/grid/row-sel.gif | Bin 818 -> 0 bytes .../resources/images/tp/grid/sort-hd.gif | Bin 1622 -> 0 bytes .../resources/images/tp/grid/sort_asc.gif | Bin 60 -> 0 bytes .../resources/images/tp/grid/sort_desc.gif | Bin 60 -> 0 bytes .../resources/images/tp/layout/collapse.gif | Bin 843 -> 0 bytes .../resources/images/tp/layout/expand.gif | Bin 1236 -> 0 bytes .../images/tp/layout/gradient-bg.gif | Bin 1560 -> 0 bytes .../images/tp/layout/mini-bottom.gif | Bin 854 -> 0 bytes .../resources/images/tp/layout/mini-left.gif | Bin 872 -> 0 bytes .../resources/images/tp/layout/mini-right.gif | Bin 872 -> 0 bytes .../resources/images/tp/layout/mini-top.gif | Bin 857 -> 0 bytes .../images/tp/layout/ns-collapse.gif | Bin 843 -> 0 bytes .../resources/images/tp/layout/ns-expand.gif | Bin 842 -> 0 bytes .../images/tp/layout/panel-close.gif | Bin 829 -> 0 bytes .../images/tp/layout/panel-title-bg.gif | Bin 833 -> 0 bytes .../images/tp/layout/panel-title-light-bg.gif | Bin 829 -> 0 bytes .../resources/images/tp/layout/stick.gif | Bin 848 -> 0 bytes .../resources/images/tp/layout/stuck.gif | Bin 65 -> 0 bytes .../images/tp/layout/tab-close-on.gif | Bin 872 -> 0 bytes .../resources/images/tp/layout/tab-close.gif | Bin 856 -> 0 bytes .../resources/images/tp/menu/checked.gif | Bin 959 -> 0 bytes .../images/tp/menu/group-checked.gif | Bin 890 -> 0 bytes .../images/tp/menu/item-over-disabled.gif | Bin 43 -> 0 bytes .../resources/images/tp/menu/item-over.gif | Bin 842 -> 0 bytes .../resources/images/tp/menu/menu-parent.gif | Bin 851 -> 0 bytes .../extjs/resources/images/tp/menu/menu.gif | Bin 826 -> 0 bytes .../resources/images/tp/menu/unchecked.gif | Bin 941 -> 0 bytes .../resources/images/tp/multiselect/clear.gif | Bin 1180 -> 0 bytes .../images/tp/multiselect/clearfocus.gif | Bin 1179 -> 0 bytes .../images/tp/multiselect/clearinvalid.gif | Bin 1205 -> 0 bytes .../resources/images/tp/multiselect/close.gif | Bin 173 -> 0 bytes .../images/tp/multiselect/expand.gif | Bin 1236 -> 0 bytes .../images/tp/multiselect/expandfocus.gif | Bin 1235 -> 0 bytes .../images/tp/multiselect/expandinvalid.gif | Bin 1264 -> 0 bytes .../images/tp/panel/corners-sprite.gif | Bin 1401 -> 0 bytes .../images/tp/panel/corners-sprite_b.gif | Bin 1401 -> 0 bytes .../resources/images/tp/panel/left-right.gif | Bin 807 -> 0 bytes .../resources/images/tp/panel/light-hd.gif | Bin 821 -> 0 bytes .../images/tp/panel/tool-sprite-tpl.gif | Bin 972 -> 0 bytes .../images/tp/panel/tool-sprites.gif | Bin 5669 -> 0 bytes .../images/tp/panel/tool-sprites.png | Bin 14146 -> 0 bytes .../images/tp/panel/tools-sprites-trans.gif | Bin 2856 -> 0 bytes .../resources/images/tp/panel/top-bottom.gif | Bin 869 -> 0 bytes .../resources/images/tp/panel/top-bottom.png | Bin 195 -> 0 bytes .../images/tp/panel/top-bottom_bc.gif | Bin 869 -> 0 bytes .../images/tp/panel/white-corners-sprite.gif | Bin 1365 -> 0 bytes .../images/tp/panel/white-left-right.gif | Bin 807 -> 0 bytes .../images/tp/panel/white-top-bottom.gif | Bin 864 -> 0 bytes .../images/tp/progress/progress-bg.gif | Bin 102 -> 0 bytes .../extjs/resources/images/tp/qtip/bg.gif | Bin 1032 -> 0 bytes .../extjs/resources/images/tp/qtip/close.gif | Bin 976 -> 0 bytes .../images/tp/qtip/tip-anchor-sprite.gif | Bin 187 -> 0 bytes .../resources/images/tp/qtip/tip-sprite.gif | Bin 3270 -> 0 bytes .../images/tp/qtip/tip-sprite_old.gif | Bin 4045 -> 0 bytes .../resources/extjs/resources/images/tp/s.gif | Bin 43 -> 0 bytes .../extjs/resources/images/tp/shadow-c.png | Bin 74 -> 0 bytes .../extjs/resources/images/tp/shadow-lr.png | Bin 88 -> 0 bytes .../extjs/resources/images/tp/shadow.png | Bin 189 -> 0 bytes .../resources/images/tp/shared/calendar.gif | Bin 981 -> 0 bytes .../resources/images/tp/shared/glass-bg.gif | Bin 872 -> 0 bytes .../resources/images/tp/shared/hd-sprite.gif | Bin 1019 -> 0 bytes .../images/tp/shared/large-loading.gif | Bin 3231 -> 0 bytes .../resources/images/tp/shared/left-btn.gif | Bin 124 -> 0 bytes .../images/tp/shared/loading-balls.gif | Bin 5275 -> 0 bytes .../resources/images/tp/shared/right-btn.gif | Bin 124 -> 0 bytes .../resources/images/tp/shared/warning.gif | Bin 960 -> 0 bytes .../images/tp/sizer/e-handle-dark.gif | Bin 1060 -> 0 bytes .../resources/images/tp/sizer/e-handle.gif | Bin 773 -> 0 bytes .../images/tp/sizer/ne-handle-dark.gif | Bin 839 -> 0 bytes .../resources/images/tp/sizer/ne-handle.gif | Bin 106 -> 0 bytes .../images/tp/sizer/nw-handle-dark.gif | Bin 841 -> 0 bytes .../resources/images/tp/sizer/nw-handle.gif | Bin 106 -> 0 bytes .../images/tp/sizer/s-handle-dark.gif | Bin 1060 -> 0 bytes .../resources/images/tp/sizer/s-handle.gif | Bin 515 -> 0 bytes .../images/tp/sizer/se-handle-dark.gif | Bin 842 -> 0 bytes .../resources/images/tp/sizer/se-handle.gif | Bin 106 -> 0 bytes .../resources/images/tp/sizer/square.gif | Bin 115 -> 0 bytes .../images/tp/sizer/sw-handle-dark.gif | Bin 838 -> 0 bytes .../resources/images/tp/sizer/sw-handle.gif | Bin 108 -> 0 bytes .../resources/images/tp/slider/slider-bg.png | Bin 928 -> 0 bytes .../images/tp/slider/slider-thumb.png | Bin 799 -> 0 bytes .../images/tp/slider/slider-v-bg.png | Bin 927 -> 0 bytes .../images/tp/slider/slider-v-thumb.png | Bin 1219 -> 0 bytes .../images/tp/spinner/spinner-split.gif | Bin 47 -> 0 bytes .../resources/images/tp/spinner/spinner.gif | Bin 3422 -> 0 bytes .../resources/images/tp/tabs/scroll-left.gif | Bin 1261 -> 0 bytes .../resources/images/tp/tabs/scroll-right.gif | Bin 1269 -> 0 bytes .../resources/images/tp/tabs/scroller-bg.gif | Bin 1081 -> 0 bytes .../tp/tabs/tab-btm-inactive-left-bg.gif | Bin 874 -> 0 bytes .../tp/tabs/tab-btm-inactive-right-bg.gif | Bin 1377 -> 0 bytes .../images/tp/tabs/tab-btm-left-bg.gif | Bin 1394 -> 0 bytes .../images/tp/tabs/tab-btm-over-left-bg.gif | Bin 874 -> 0 bytes .../images/tp/tabs/tab-btm-over-right-bg.gif | Bin 1373 -> 0 bytes .../images/tp/tabs/tab-btm-right-bg.gif | Bin 855 -> 0 bytes .../resources/images/tp/tabs/tab-close.gif | Bin 893 -> 0 bytes .../resources/images/tp/tabs/tab-strip-bg.gif | Bin 827 -> 0 bytes .../resources/images/tp/tabs/tab-strip-bg.png | Bin 147 -> 0 bytes .../images/tp/tabs/tab-strip-btm-bg.gif | Bin 820 -> 0 bytes .../resources/images/tp/tabs/tabs-sprite.gif | Bin 2086 -> 0 bytes .../extjs/resources/images/tp/toolbar/bg.gif | Bin 853 -> 0 bytes .../images/tp/toolbar/btn-arrow-light.gif | Bin 914 -> 0 bytes .../resources/images/tp/toolbar/btn-arrow.gif | Bin 919 -> 0 bytes .../images/tp/toolbar/btn-over-bg.gif | Bin 831 -> 0 bytes .../resources/images/tp/toolbar/gray-bg.gif | Bin 807 -> 0 bytes .../resources/images/tp/toolbar/more.gif | Bin 67 -> 0 bytes .../resources/images/tp/toolbar/tb-bg.gif | Bin 855 -> 0 bytes .../images/tp/toolbar/tb-btn-sprite.gif | Bin 1023 -> 0 bytes .../images/tp/toolbar/tb-xl-btn-sprite.gif | Bin 1669 -> 0 bytes .../resources/images/tp/toolbar/tb-xl-sep.gif | Bin 802 -> 0 bytes .../extjs/resources/images/tp/tree/arrows.gif | Bin 1017 -> 0 bytes .../resources/images/tp/tree/drop-add.gif | Bin 1001 -> 0 bytes .../resources/images/tp/tree/drop-between.gif | Bin 907 -> 0 bytes .../resources/images/tp/tree/drop-no.gif | Bin 949 -> 0 bytes .../resources/images/tp/tree/drop-over.gif | Bin 911 -> 0 bytes .../resources/images/tp/tree/drop-under.gif | Bin 911 -> 0 bytes .../resources/images/tp/tree/drop-yes.gif | Bin 1016 -> 0 bytes .../images/tp/tree/elbow-end-minus-nl.gif | Bin 149 -> 0 bytes .../images/tp/tree/elbow-end-minus.gif | Bin 154 -> 0 bytes .../images/tp/tree/elbow-end-plus-nl.gif | Bin 151 -> 0 bytes .../images/tp/tree/elbow-end-plus.gif | Bin 156 -> 0 bytes .../resources/images/tp/tree/elbow-end.gif | Bin 844 -> 0 bytes .../resources/images/tp/tree/elbow-line.gif | Bin 846 -> 0 bytes .../images/tp/tree/elbow-minus-nl.gif | Bin 898 -> 0 bytes .../resources/images/tp/tree/elbow-minus.gif | Bin 908 -> 0 bytes .../images/tp/tree/elbow-plus-nl.gif | Bin 900 -> 0 bytes .../resources/images/tp/tree/elbow-plus.gif | Bin 910 -> 0 bytes .../extjs/resources/images/tp/tree/elbow.gif | Bin 850 -> 0 bytes .../resources/images/tp/tree/folder-open.gif | Bin 956 -> 0 bytes .../extjs/resources/images/tp/tree/folder.gif | Bin 952 -> 0 bytes .../extjs/resources/images/tp/tree/leaf.gif | Bin 945 -> 0 bytes .../resources/images/tp/tree/loading.gif | Bin 842 -> 0 bytes .../extjs/resources/images/tp/tree/s.gif | Bin 43 -> 0 bytes .../resources/images/tp/window/icon-error.gif | Bin 1669 -> 0 bytes .../resources/images/tp/window/icon-info.gif | Bin 1586 -> 0 bytes .../images/tp/window/icon-question.gif | Bin 1607 -> 0 bytes .../images/tp/window/icon-warning.gif | Bin 1483 -> 0 bytes .../images/tp/window/left-corners.png | Bin 236 -> 0 bytes .../images/tp/window/left-corners_ie6.png | Bin 239 -> 0 bytes .../resources/images/tp/window/left-right.png | Bin 86 -> 0 bytes .../images/tp/window/left-right_ie6.png | Bin 86 -> 0 bytes .../images/tp/window/right-corners.png | Bin 240 -> 0 bytes .../images/tp/window/right-corners_ie6.png | Bin 241 -> 0 bytes .../resources/images/tp/window/top-bottom.png | Bin 176 -> 0 bytes .../images/tp/window/top-bottom_ie6.png | Bin 174 -> 0 bytes .../images/vista/basic-dialog/bg-center.gif | Bin 865 -> 0 bytes .../images/vista/basic-dialog/bg-left.gif | Bin 1039 -> 0 bytes .../images/vista/basic-dialog/bg-right.gif | Bin 1039 -> 0 bytes .../images/vista/basic-dialog/close.gif | Bin 350 -> 0 bytes .../images/vista/basic-dialog/collapse.gif | Bin 333 -> 0 bytes .../images/vista/basic-dialog/dlg-bg.gif | Bin 27857 -> 0 bytes .../images/vista/basic-dialog/e-handle.gif | Bin 995 -> 0 bytes .../images/vista/basic-dialog/expand.gif | Bin 351 -> 0 bytes .../images/vista/basic-dialog/hd-sprite.gif | Bin 462 -> 0 bytes .../images/vista/basic-dialog/s-handle.gif | Bin 992 -> 0 bytes .../images/vista/basic-dialog/se-handle.gif | Bin 833 -> 0 bytes .../images/vista/basic-dialog/w-handle.gif | Bin 817 -> 0 bytes .../resources/images/vista/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/vista/grid/grid-split.gif | Bin 817 -> 0 bytes .../images/vista/grid/grid-vista-hd.gif | Bin 829 -> 0 bytes .../images/vista/layout/collapse.gif | Bin 842 -> 0 bytes .../resources/images/vista/layout/expand.gif | Bin 842 -> 0 bytes .../images/vista/layout/gradient-bg.gif | Bin 1202 -> 0 bytes .../images/vista/layout/ns-collapse.gif | Bin 842 -> 0 bytes .../images/vista/layout/ns-expand.gif | Bin 843 -> 0 bytes .../images/vista/layout/panel-close.gif | Bin 829 -> 0 bytes .../images/vista/layout/panel-title-bg.gif | Bin 888 -> 0 bytes .../vista/layout/panel-title-light-bg.gif | Bin 846 -> 0 bytes .../resources/images/vista/layout/stick.gif | Bin 872 -> 0 bytes .../images/vista/layout/tab-close-on.gif | Bin 880 -> 0 bytes .../images/vista/layout/tab-close.gif | Bin 844 -> 0 bytes .../extjs/resources/images/vista/qtip/bg.gif | Bin 1024 -> 0 bytes .../images/vista/qtip/tip-sprite.gif | Bin 4183 -> 0 bytes .../extjs/resources/images/vista/s.gif | Bin 43 -> 0 bytes .../images/vista/sizer/e-handle-dark.gif | Bin 1062 -> 0 bytes .../resources/images/vista/sizer/e-handle.gif | Bin 1586 -> 0 bytes .../images/vista/sizer/ne-handle-dark.gif | Bin 839 -> 0 bytes .../images/vista/sizer/ne-handle.gif | Bin 854 -> 0 bytes .../images/vista/sizer/nw-handle-dark.gif | Bin 839 -> 0 bytes .../images/vista/sizer/nw-handle.gif | Bin 853 -> 0 bytes .../images/vista/sizer/s-handle-dark.gif | Bin 1060 -> 0 bytes .../resources/images/vista/sizer/s-handle.gif | Bin 1318 -> 0 bytes .../images/vista/sizer/se-handle-dark.gif | Bin 838 -> 0 bytes .../images/vista/sizer/se-handle.gif | Bin 853 -> 0 bytes .../images/vista/sizer/sw-handle-dark.gif | Bin 839 -> 0 bytes .../images/vista/sizer/sw-handle.gif | Bin 855 -> 0 bytes .../vista/tabs/tab-btm-inactive-left-bg.gif | Bin 879 -> 0 bytes .../vista/tabs/tab-btm-inactive-right-bg.gif | Bin 1609 -> 0 bytes .../images/vista/tabs/tab-btm-left-bg.gif | Bin 895 -> 0 bytes .../images/vista/tabs/tab-btm-right-bg.gif | Bin 1608 -> 0 bytes .../images/vista/tabs/tab-sprite.gif | Bin 3150 -> 0 bytes .../images/vista/toolbar/gray-bg.gif | Bin 839 -> 0 bytes .../images/vista/toolbar/tb-btn-sprite.gif | Bin 1110 -> 0 bytes .../resources/images/yourtheme/README.txt | 2 - .../images/yourtheme/box/corners-blue.gif | Bin 1010 -> 0 bytes .../images/yourtheme/box/corners.gif | Bin 1005 -> 0 bytes .../resources/images/yourtheme/box/l-blue.gif | Bin 810 -> 0 bytes .../resources/images/yourtheme/box/l.gif | Bin 810 -> 0 bytes .../resources/images/yourtheme/box/r-blue.gif | Bin 810 -> 0 bytes .../resources/images/yourtheme/box/r.gif | Bin 810 -> 0 bytes .../images/yourtheme/box/tb-blue.gif | Bin 851 -> 0 bytes .../resources/images/yourtheme/box/tb.gif | Bin 839 -> 0 bytes .../images/yourtheme/button/arrow.gif | Bin 828 -> 0 bytes .../resources/images/yourtheme/button/btn.gif | Bin 4298 -> 0 bytes .../images/yourtheme/button/group-cs.gif | Bin 2459 -> 0 bytes .../images/yourtheme/button/group-lr.gif | Bin 861 -> 0 bytes .../images/yourtheme/button/group-tb.gif | Bin 846 -> 0 bytes .../yourtheme/button/s-arrow-b-noline.gif | Bin 898 -> 0 bytes .../images/yourtheme/button/s-arrow-b.gif | Bin 937 -> 0 bytes .../images/yourtheme/button/s-arrow-bo.gif | Bin 139 -> 0 bytes .../yourtheme/button/s-arrow-noline.gif | Bin 863 -> 0 bytes .../images/yourtheme/button/s-arrow-o.gif | Bin 937 -> 0 bytes .../images/yourtheme/button/s-arrow.gif | Bin 937 -> 0 bytes .../images/yourtheme/dd/drop-add.gif | Bin 1001 -> 0 bytes .../resources/images/yourtheme/dd/drop-no.gif | Bin 949 -> 0 bytes .../images/yourtheme/dd/drop-yes.gif | Bin 1016 -> 0 bytes .../images/yourtheme/editor/tb-sprite.gif | Bin 2072 -> 0 bytes .../images/yourtheme/form/checkbox.gif | Bin 2061 -> 0 bytes .../images/yourtheme/form/clear-trigger.gif | Bin 1988 -> 0 bytes .../images/yourtheme/form/clear-trigger.psd | Bin 11804 -> 0 bytes .../images/yourtheme/form/date-trigger.gif | Bin 1603 -> 0 bytes .../images/yourtheme/form/date-trigger.psd | Bin 12377 -> 0 bytes .../yourtheme/form/error-tip-corners.gif | Bin 4183 -> 0 bytes .../images/yourtheme/form/exclamation.gif | Bin 996 -> 0 bytes .../resources/images/yourtheme/form/radio.gif | Bin 1746 -> 0 bytes .../images/yourtheme/form/search-trigger.gif | Bin 2182 -> 0 bytes .../images/yourtheme/form/search-trigger.psd | Bin 15601 -> 0 bytes .../images/yourtheme/form/text-bg.gif | Bin 819 -> 0 bytes .../images/yourtheme/form/trigger-square.gif | Bin 1810 -> 0 bytes .../images/yourtheme/form/trigger-square.psd | Bin 36542 -> 0 bytes .../images/yourtheme/form/trigger-tpl.gif | Bin 1487 -> 0 bytes .../images/yourtheme/form/trigger.gif | Bin 1816 -> 0 bytes .../images/yourtheme/form/trigger.psd | Bin 37599 -> 0 bytes .../images/yourtheme/gradient-bg.gif | Bin 1472 -> 0 bytes .../yourtheme/grid/arrow-left-white.gif | Bin 825 -> 0 bytes .../yourtheme/grid/arrow-right-white.gif | Bin 825 -> 0 bytes .../images/yourtheme/grid/col-move-bottom.gif | Bin 868 -> 0 bytes .../images/yourtheme/grid/col-move-top.gif | Bin 869 -> 0 bytes .../images/yourtheme/grid/columns.gif | Bin 962 -> 0 bytes .../resources/images/yourtheme/grid/dirty.gif | Bin 832 -> 0 bytes .../resources/images/yourtheme/grid/done.gif | Bin 133 -> 0 bytes .../images/yourtheme/grid/drop-no.gif | Bin 947 -> 0 bytes .../images/yourtheme/grid/drop-yes.gif | Bin 860 -> 0 bytes .../images/yourtheme/grid/footer-bg.gif | Bin 834 -> 0 bytes .../images/yourtheme/grid/grid-blue-hd.gif | Bin 829 -> 0 bytes .../images/yourtheme/grid/grid-blue-split.gif | Bin 817 -> 0 bytes .../images/yourtheme/grid/grid-hrow.gif | Bin 855 -> 0 bytes .../images/yourtheme/grid/grid-loading.gif | Bin 701 -> 0 bytes .../images/yourtheme/grid/grid-split.gif | Bin 817 -> 0 bytes .../images/yourtheme/grid/grid-vista-hd.gif | Bin 829 -> 0 bytes .../images/yourtheme/grid/grid3-hd-btn.gif | Bin 1229 -> 0 bytes .../images/yourtheme/grid/grid3-hrow-over.gif | Bin 823 -> 0 bytes .../images/yourtheme/grid/grid3-hrow.gif | Bin 836 -> 0 bytes .../yourtheme/grid/grid3-special-col-bg.gif | Bin 837 -> 0 bytes .../grid/grid3-special-col-sel-bg.gif | Bin 843 -> 0 bytes .../images/yourtheme/grid/group-by.gif | Bin 917 -> 0 bytes .../images/yourtheme/grid/group-collapse.gif | Bin 881 -> 0 bytes .../yourtheme/grid/group-expand-sprite.gif | Bin 955 -> 0 bytes .../images/yourtheme/grid/group-expand.gif | Bin 884 -> 0 bytes .../images/yourtheme/grid/hd-pop.gif | Bin 839 -> 0 bytes .../images/yourtheme/grid/hmenu-asc.gif | Bin 931 -> 0 bytes .../images/yourtheme/grid/hmenu-desc.gif | Bin 930 -> 0 bytes .../images/yourtheme/grid/hmenu-lock.gif | Bin 955 -> 0 bytes .../images/yourtheme/grid/hmenu-lock.png | Bin 648 -> 0 bytes .../images/yourtheme/grid/hmenu-unlock.gif | Bin 971 -> 0 bytes .../images/yourtheme/grid/hmenu-unlock.png | Bin 697 -> 0 bytes .../images/yourtheme/grid/invalid_line.gif | Bin 815 -> 0 bytes .../images/yourtheme/grid/loading.gif | Bin 771 -> 0 bytes .../images/yourtheme/grid/mso-hd.gif | Bin 875 -> 0 bytes .../images/yourtheme/grid/nowait.gif | Bin 884 -> 0 bytes .../yourtheme/grid/page-first-disabled.gif | Bin 925 -> 0 bytes .../images/yourtheme/grid/page-first.gif | Bin 925 -> 0 bytes .../yourtheme/grid/page-last-disabled.gif | Bin 923 -> 0 bytes .../images/yourtheme/grid/page-last.gif | Bin 923 -> 0 bytes .../yourtheme/grid/page-next-disabled.gif | Bin 875 -> 0 bytes .../images/yourtheme/grid/page-next.gif | Bin 875 -> 0 bytes .../yourtheme/grid/page-prev-disabled.gif | Bin 879 -> 0 bytes .../images/yourtheme/grid/page-prev.gif | Bin 879 -> 0 bytes .../images/yourtheme/grid/pick-button.gif | Bin 1036 -> 0 bytes .../images/yourtheme/grid/refresh.gif | Bin 977 -> 0 bytes .../yourtheme/grid/row-check-sprite.gif | Bin 1083 -> 0 bytes .../yourtheme/grid/row-expand-sprite.gif | Bin 955 -> 0 bytes .../images/yourtheme/grid/row-over.gif | Bin 823 -> 0 bytes .../images/yourtheme/grid/row-sel.gif | Bin 823 -> 0 bytes .../images/yourtheme/grid/sort-hd.gif | Bin 1473 -> 0 bytes .../images/yourtheme/grid/sort_asc.gif | Bin 830 -> 0 bytes .../images/yourtheme/grid/sort_desc.gif | Bin 833 -> 0 bytes .../resources/images/yourtheme/grid/wait.gif | Bin 1100 -> 0 bytes .../images/yourtheme/layout/collapse.gif | Bin 842 -> 0 bytes .../images/yourtheme/layout/expand.gif | Bin 842 -> 0 bytes .../images/yourtheme/layout/gradient-bg.gif | Bin 1472 -> 0 bytes .../images/yourtheme/layout/mini-bottom.gif | Bin 856 -> 0 bytes .../images/yourtheme/layout/mini-left.gif | Bin 871 -> 0 bytes .../images/yourtheme/layout/mini-right.gif | Bin 872 -> 0 bytes .../images/yourtheme/layout/mini-top.gif | Bin 856 -> 0 bytes .../images/yourtheme/layout/ns-collapse.gif | Bin 842 -> 0 bytes .../images/yourtheme/layout/ns-expand.gif | Bin 843 -> 0 bytes .../images/yourtheme/layout/panel-close.gif | Bin 829 -> 0 bytes .../yourtheme/layout/panel-title-bg.gif | Bin 838 -> 0 bytes .../yourtheme/layout/panel-title-light-bg.gif | Bin 835 -> 0 bytes .../images/yourtheme/layout/stick.gif | Bin 874 -> 0 bytes .../images/yourtheme/layout/stuck.gif | Bin 92 -> 0 bytes .../images/yourtheme/layout/tab-close-on.gif | Bin 880 -> 0 bytes .../images/yourtheme/layout/tab-close.gif | Bin 859 -> 0 bytes .../images/yourtheme/menu/checked.gif | Bin 959 -> 0 bytes .../images/yourtheme/menu/group-checked.gif | Bin 891 -> 0 bytes .../images/yourtheme/menu/item-over.gif | Bin 820 -> 0 bytes .../images/yourtheme/menu/menu-parent.gif | Bin 854 -> 0 bytes .../resources/images/yourtheme/menu/menu.gif | Bin 834 -> 0 bytes .../images/yourtheme/menu/unchecked.gif | Bin 941 -> 0 bytes .../images/yourtheme/panel/corners-sprite.gif | Bin 1418 -> 0 bytes .../images/yourtheme/panel/left-right.gif | Bin 815 -> 0 bytes .../images/yourtheme/panel/light-hd.gif | Bin 827 -> 0 bytes .../yourtheme/panel/tool-sprite-tpl.gif | Bin 971 -> 0 bytes .../images/yourtheme/panel/tool-sprites.gif | Bin 4392 -> 0 bytes .../yourtheme/panel/tools-sprites-trans.gif | Bin 2843 -> 0 bytes .../images/yourtheme/panel/top-bottom.gif | Bin 875 -> 0 bytes .../images/yourtheme/panel/top-bottom.png | Bin 218 -> 0 bytes .../yourtheme/panel/white-corners-sprite.gif | Bin 1366 -> 0 bytes .../yourtheme/panel/white-left-right.gif | Bin 815 -> 0 bytes .../yourtheme/panel/white-top-bottom.gif | Bin 872 -> 0 bytes .../images/yourtheme/progress/progress-bg.gif | Bin 834 -> 0 bytes .../resources/images/yourtheme/qtip/bg.gif | Bin 1091 -> 0 bytes .../resources/images/yourtheme/qtip/close.gif | Bin 972 -> 0 bytes .../yourtheme/qtip/tip-anchor-sprite.gif | Bin 951 -> 0 bytes .../images/yourtheme/qtip/tip-sprite.gif | Bin 4271 -> 0 bytes .../extjs/resources/images/yourtheme/s.gif | Bin 43 -> 0 bytes .../resources/images/yourtheme/shadow-c.png | Bin 118 -> 0 bytes .../resources/images/yourtheme/shadow-lr.png | Bin 135 -> 0 bytes .../resources/images/yourtheme/shadow.png | Bin 311 -> 0 bytes .../images/yourtheme/shared/blue-loading.gif | Bin 3236 -> 0 bytes .../images/yourtheme/shared/calendar.gif | Bin 979 -> 0 bytes .../images/yourtheme/shared/glass-bg.gif | Bin 873 -> 0 bytes .../images/yourtheme/shared/hd-sprite.gif | Bin 1099 -> 0 bytes .../images/yourtheme/shared/large-loading.gif | Bin 3236 -> 0 bytes .../images/yourtheme/shared/left-btn.gif | Bin 870 -> 0 bytes .../images/yourtheme/shared/loading-balls.gif | Bin 2118 -> 0 bytes .../images/yourtheme/shared/right-btn.gif | Bin 871 -> 0 bytes .../images/yourtheme/shared/warning.gif | Bin 960 -> 0 bytes .../images/yourtheme/sizer/e-handle-dark.gif | Bin 1062 -> 0 bytes .../images/yourtheme/sizer/e-handle.gif | Bin 1586 -> 0 bytes .../images/yourtheme/sizer/ne-handle-dark.gif | Bin 839 -> 0 bytes .../images/yourtheme/sizer/ne-handle.gif | Bin 854 -> 0 bytes .../images/yourtheme/sizer/nw-handle-dark.gif | Bin 839 -> 0 bytes .../images/yourtheme/sizer/nw-handle.gif | Bin 853 -> 0 bytes .../images/yourtheme/sizer/s-handle-dark.gif | Bin 1060 -> 0 bytes .../images/yourtheme/sizer/s-handle.gif | Bin 1318 -> 0 bytes .../images/yourtheme/sizer/se-handle-dark.gif | Bin 838 -> 0 bytes .../images/yourtheme/sizer/se-handle.gif | Bin 853 -> 0 bytes .../images/yourtheme/sizer/square.gif | Bin 864 -> 0 bytes .../images/yourtheme/sizer/sw-handle-dark.gif | Bin 839 -> 0 bytes .../images/yourtheme/sizer/sw-handle.gif | Bin 855 -> 0 bytes .../images/yourtheme/slider/slider-bg.png | Bin 300 -> 0 bytes .../images/yourtheme/slider/slider-thumb.png | Bin 933 -> 0 bytes .../images/yourtheme/slider/slider-v-bg.png | Bin 288 -> 0 bytes .../yourtheme/slider/slider-v-thumb.png | Bin 883 -> 0 bytes .../images/yourtheme/tabs/scroll-left.gif | Bin 1295 -> 0 bytes .../images/yourtheme/tabs/scroll-right.gif | Bin 1300 -> 0 bytes .../images/yourtheme/tabs/scroller-bg.gif | Bin 1100 -> 0 bytes .../tabs/tab-btm-inactive-left-bg.gif | Bin 886 -> 0 bytes .../tabs/tab-btm-inactive-right-bg.gif | Bin 1386 -> 0 bytes .../images/yourtheme/tabs/tab-btm-left-bg.gif | Bin 1402 -> 0 bytes .../yourtheme/tabs/tab-btm-over-left-bg.gif | Bin 191 -> 0 bytes .../yourtheme/tabs/tab-btm-over-right-bg.gif | Bin 638 -> 0 bytes .../yourtheme/tabs/tab-btm-right-bg.gif | Bin 863 -> 0 bytes .../images/yourtheme/tabs/tab-close.gif | Bin 896 -> 0 bytes .../images/yourtheme/tabs/tab-strip-bg.gif | Bin 835 -> 0 bytes .../images/yourtheme/tabs/tab-strip-bg.png | Bin 259 -> 0 bytes .../yourtheme/tabs/tab-strip-btm-bg.gif | Bin 826 -> 0 bytes .../images/yourtheme/tabs/tabs-sprite.gif | Bin 2120 -> 0 bytes .../resources/images/yourtheme/toolbar/bg.gif | Bin 904 -> 0 bytes .../yourtheme/toolbar/btn-arrow-light.gif | Bin 916 -> 0 bytes .../images/yourtheme/toolbar/btn-arrow.gif | Bin 919 -> 0 bytes .../images/yourtheme/toolbar/btn-over-bg.gif | Bin 837 -> 0 bytes .../images/yourtheme/toolbar/gray-bg.gif | Bin 832 -> 0 bytes .../images/yourtheme/toolbar/more.gif | Bin 845 -> 0 bytes .../images/yourtheme/toolbar/tb-bg.gif | Bin 862 -> 0 bytes .../yourtheme/toolbar/tb-btn-sprite.gif | Bin 1127 -> 0 bytes .../yourtheme/toolbar/tb-xl-btn-sprite.gif | Bin 1663 -> 0 bytes .../images/yourtheme/toolbar/tb-xl-sep.gif | Bin 810 -> 0 bytes .../images/yourtheme/tree/arrows.gif | Bin 617 -> 0 bytes .../images/yourtheme/tree/drop-add.gif | Bin 1001 -> 0 bytes .../images/yourtheme/tree/drop-between.gif | Bin 907 -> 0 bytes .../images/yourtheme/tree/drop-no.gif | Bin 949 -> 0 bytes .../images/yourtheme/tree/drop-over.gif | Bin 911 -> 0 bytes .../images/yourtheme/tree/drop-under.gif | Bin 911 -> 0 bytes .../images/yourtheme/tree/drop-yes.gif | Bin 1016 -> 0 bytes .../yourtheme/tree/elbow-end-minus-nl.gif | Bin 898 -> 0 bytes .../images/yourtheme/tree/elbow-end-minus.gif | Bin 905 -> 0 bytes .../yourtheme/tree/elbow-end-plus-nl.gif | Bin 900 -> 0 bytes .../images/yourtheme/tree/elbow-end-plus.gif | Bin 907 -> 0 bytes .../images/yourtheme/tree/elbow-end.gif | Bin 844 -> 0 bytes .../images/yourtheme/tree/elbow-line.gif | Bin 846 -> 0 bytes .../images/yourtheme/tree/elbow-minus-nl.gif | Bin 898 -> 0 bytes .../images/yourtheme/tree/elbow-minus.gif | Bin 908 -> 0 bytes .../images/yourtheme/tree/elbow-plus-nl.gif | Bin 900 -> 0 bytes .../images/yourtheme/tree/elbow-plus.gif | Bin 910 -> 0 bytes .../resources/images/yourtheme/tree/elbow.gif | Bin 850 -> 0 bytes .../images/yourtheme/tree/folder-open.gif | Bin 956 -> 0 bytes .../images/yourtheme/tree/folder.gif | Bin 952 -> 0 bytes .../resources/images/yourtheme/tree/leaf.gif | Bin 945 -> 0 bytes .../images/yourtheme/tree/loading.gif | Bin 771 -> 0 bytes .../resources/images/yourtheme/tree/s.gif | Bin 43 -> 0 bytes .../images/yourtheme/window/icon-error.gif | Bin 1669 -> 0 bytes .../images/yourtheme/window/icon-info.gif | Bin 1586 -> 0 bytes .../images/yourtheme/window/icon-question.gif | Bin 1607 -> 0 bytes .../images/yourtheme/window/icon-warning.gif | Bin 1483 -> 0 bytes .../images/yourtheme/window/left-corners.png | Bin 200 -> 0 bytes .../images/yourtheme/window/left-corners.psd | Bin 15576 -> 0 bytes .../images/yourtheme/window/left-right.png | Bin 152 -> 0 bytes .../images/yourtheme/window/left-right.psd | Bin 24046 -> 0 bytes .../images/yourtheme/window/right-corners.png | Bin 256 -> 0 bytes .../images/yourtheme/window/right-corners.psd | Bin 15530 -> 0 bytes .../images/yourtheme/window/top-bottom.png | Bin 180 -> 0 bytes .../images/yourtheme/window/top-bottom.psd | Bin 32128 -> 0 bytes .../resources/extjs/util/CheckColumn.js | 71 - .../resources/extjs/util/FileUploadField.js | 184 - .../src/main/webapp/resources/images/add.gif | Bin 995 -> 0 bytes .../src/main/webapp/resources/images/add.png | Bin 733 -> 0 bytes .../main/webapp/resources/images/archive.png | Bin 555 -> 0 bytes .../main/webapp/resources/images/delete.gif | Bin 990 -> 0 bytes .../main/webapp/resources/images/delete.png | Bin 715 -> 0 bytes .../main/webapp/resources/images/document.gif | Bin 237 -> 0 bytes .../main/webapp/resources/images/document.png | Bin 330 -> 0 bytes .../main/webapp/resources/images/favicon.ico | Bin 1150 -> 0 bytes .../webapp/resources/images/folder-remote.gif | Bin 1050 -> 0 bytes .../webapp/resources/images/folder-remote.png | Bin 697 -> 0 bytes .../main/webapp/resources/images/folder.gif | Bin 617 -> 0 bytes .../main/webapp/resources/images/folder.png | Bin 581 -> 0 bytes .../resources/images/header-backgound.jpg | Bin 346 -> 0 bytes .../src/main/webapp/resources/images/help.gif | Bin 1048 -> 0 bytes .../src/main/webapp/resources/images/help.png | Bin 932 -> 0 bytes .../resources/images/icons/16x16/git.png | Bin 917 -> 0 bytes .../images/icons/16x16/mercurial.png | Bin 762 -> 0 bytes .../images/icons/16x16/subversion.png | Bin 886 -> 0 bytes .../main/webapp/resources/images/modify.gif | Bin 331 -> 0 bytes .../main/webapp/resources/images/reload.gif | Bin 1012 -> 0 bytes .../main/webapp/resources/images/reload.png | Bin 912 -> 0 bytes .../main/webapp/resources/images/scm-logo.jpg | Bin 6026 -> 0 bytes .../src/main/webapp/resources/images/tag.gif | Bin 623 -> 0 bytes .../main/webapp/resources/images/warning.png | Bin 666 -> 0 bytes .../sonia.action.changepasswordwindow.js | 131 - .../js/action/sonia.action.exceptionwindow.js | 94 - .../resources/js/action/sonia.action.js | 31 - .../js/config/sonia.config.configform.js | 118 - .../js/config/sonia.config.configpanel.js | 57 - .../resources/js/config/sonia.config.js | 56 - .../config/sonia.config.repositoryconfig.js | 47 - .../js/config/sonia.config.scmconfigpanel.js | 323 - .../config/sonia.config.simpleconfigform.js | 93 - .../js/group/sonia.group.formpanel.js | 146 - .../resources/js/group/sonia.group.grid.js | 163 - .../webapp/resources/js/group/sonia.group.js | 54 - .../js/group/sonia.group.memberformpanel.js | 170 - .../resources/js/group/sonia.group.panel.js | 204 - .../group/sonia.group.propertiesformpanel.js | 59 - .../src/main/webapp/resources/js/i18n/de.js | 686 - .../src/main/webapp/resources/js/i18n/es.js | 668 - .../resources/js/login/sonia.login.form.js | 171 - .../webapp/resources/js/login/sonia.login.js | 31 - .../resources/js/login/sonia.login.window.js | 65 - .../js/navigation/sonia.navigation.js | 31 - .../navigation/sonia.navigation.navpanel.js | 91 - .../navigation/sonia.navigation.navsection.js | 120 - .../resources/js/override/ext.data.store.js | 55 - .../resources/js/override/ext.form.field.js | 95 - .../resources/js/override/ext.form.vtypes.js | 91 - .../js/override/ext.grid.columnmodel.js | 58 - .../js/override/ext.grid.gridpanel.js | 82 - .../js/override/ext.grid.groupingview.js | 72 - .../resources/js/override/ext.util.format.js | 66 - .../webapp/resources/js/panel/sonia.panel.js | 33 - .../sonia.panel.syntaxhighlighterpanel.js | 259 - .../js/plugin/sonia.plugin.center.js | 180 - .../resources/js/plugin/sonia.plugin.grid.js | 195 - .../resources/js/plugin/sonia.plugin.js | 32 - .../resources/js/plugin/sonia.plugin.store.js | 44 - .../js/plugin/sonia.plugin.uploadform.js | 106 - .../repository/sonia.repository.blamepanel.js | 151 - .../sonia.repository.branchcombobox.js | 66 - .../sonia.repository.changesetpanel.js | 187 - .../sonia.repository.changesetviewergrid.js | 258 - .../sonia.repository.changesetviewerpanel.js | 220 - .../sonia.repository.commitpanel.js | 167 - .../sonia.repository.contentpanel.js | 234 - .../repository/sonia.repository.diffpanel.js | 100 - .../sonia.repository.extendedinfopanel.js | 115 - .../repository/sonia.repository.formpanel.js | 177 - .../js/repository/sonia.repository.grid.js | 530 - .../sonia.repository.healthcheckfailure.js | 142 - .../sonia.repository.importwindow.js | 583 - .../repository/sonia.repository.infopanel.js | 188 - .../js/repository/sonia.repository.js | 220 - .../js/repository/sonia.repository.panel.js | 484 - .../sonia.repository.permissionformpanel.js | 227 - .../sonia.repository.propertiesformpanel.js | 118 - .../sonia.repository.repositorybrowser.js | 540 - .../sonia.repository.settingsformpanel.js | 95 - .../sonia.repository.tagcombobox.js | 65 - .../resources/js/rest/sonia.rest.formpanel.js | 123 - .../resources/js/rest/sonia.rest.grid.js | 168 - .../webapp/resources/js/rest/sonia.rest.js | 57 - .../resources/js/rest/sonia.rest.jsonstore.js | 51 - .../resources/js/rest/sonia.rest.panel.js | 61 - .../resources/js/security/sonia.security.js | 48 - .../sonia.security.permissionspanel.js | 235 - .../main/webapp/resources/js/sonia.core.js | 38 - .../main/webapp/resources/js/sonia.global.js | 129 - .../main/webapp/resources/js/sonia.history.js | 188 - .../src/main/webapp/resources/js/sonia.scm.js | 692 - .../resources/js/uistate/sonia.uistate.js | 31 - .../sonia.uistate.webstorageprovider.js | 78 - .../resources/js/user/sonia.user.formpanel.js | 192 - .../resources/js/user/sonia.user.grid.js | 146 - .../webapp/resources/js/user/sonia.user.js | 58 - .../resources/js/user/sonia.user.panel.js | 216 - .../webapp/resources/js/util/sonia.util.js | 200 - .../resources/js/util/sonia.util.link.js | 67 - .../resources/js/util/sonia.util.tip.js | 77 - .../main/webapp/resources/moment/lang/de.js | 4 - .../main/webapp/resources/moment/moment.js | 1213 - .../syntaxhighlighter/scripts/shAutoloader.js | 17 - .../syntaxhighlighter/scripts/shBrushAS3.js | 59 - .../scripts/shBrushAppleScript.js | 75 - .../syntaxhighlighter/scripts/shBrushBash.js | 59 - .../scripts/shBrushCSharp.js | 65 - .../scripts/shBrushColdFusion.js | 100 - .../syntaxhighlighter/scripts/shBrushCpp.js | 97 - .../syntaxhighlighter/scripts/shBrushCss.js | 91 - .../scripts/shBrushDelphi.js | 55 - .../syntaxhighlighter/scripts/shBrushDiff.js | 41 - .../scripts/shBrushErlang.js | 52 - .../scripts/shBrushGroovy.js | 67 - .../scripts/shBrushJScript.js | 52 - .../syntaxhighlighter/scripts/shBrushJava.js | 41 - .../scripts/shBrushJavaFX.js | 58 - .../syntaxhighlighter/scripts/shBrushPerl.js | 72 - .../syntaxhighlighter/scripts/shBrushPhp.js | 88 - .../syntaxhighlighter/scripts/shBrushPlain.js | 33 - .../scripts/shBrushPowerShell.js | 74 - .../scripts/shBrushPython.js | 64 - .../syntaxhighlighter/scripts/shBrushRuby.js | 55 - .../syntaxhighlighter/scripts/shBrushSass.js | 94 - .../syntaxhighlighter/scripts/shBrushScala.js | 51 - .../syntaxhighlighter/scripts/shBrushSql.js | 66 - .../syntaxhighlighter/scripts/shBrushVb.js | 56 - .../syntaxhighlighter/scripts/shBrushXml.js | 69 - .../syntaxhighlighter/scripts/shCore.js | 17 - .../syntaxhighlighter/scripts/shLegacy.js | 17 - .../syntaxhighlighter/src/shAutoloader.js | 130 - .../resources/syntaxhighlighter/src/shCore.js | 1721 - .../syntaxhighlighter/src/shLegacy.js | 157 - .../syntaxhighlighter/styles/shCore.css | 226 - .../styles/shCoreDefault.css | 328 - .../syntaxhighlighter/styles/shCoreDjango.css | 331 - .../styles/shCoreEclipse.css | 339 - .../syntaxhighlighter/styles/shCoreEmacs.css | 324 - .../styles/shCoreFadeToGrey.css | 328 - .../styles/shCoreMDUltra.css | 324 - .../styles/shCoreMidnight.css | 324 - .../styles/shCoreNetbeans.css | 235 - .../syntaxhighlighter/styles/shCoreRDark.css | 324 - .../styles/shThemeDefault.css | 117 - .../styles/shThemeDjango.css | 120 - .../styles/shThemeEclipse.css | 128 - .../syntaxhighlighter/styles/shThemeEmacs.css | 113 - .../styles/shThemeFadeToGrey.css | 117 - .../styles/shThemeMDUltra.css | 113 - .../styles/shThemeMidnight.css | 113 - .../styles/shThemeNetbeans.css | 67 - .../syntaxhighlighter/styles/shThemeRDark.css | 113 - 1399 files changed, 196378 deletions(-) delete mode 100644 scm-webapp/src/main/webapp/index.mustache delete mode 100644 scm-webapp/src/main/webapp/resources/css/style.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/ext/ext-base-debug.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/ext/ext-base.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/jquery/ext-jquery-adapter-debug.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/jquery/ext-jquery-adapter.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter-debug.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter-debug.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/ext-all-debug-w-comments.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/ext-all-debug.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/ext-all.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/i18n/ext-lang-de.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/i18n/ext-lang-es.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/charts.swf delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/README.txt delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/debug.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all-notheme.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/reset-min.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/borders.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/box.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/button.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/combo.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/core.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/date-picker.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dd.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/debug.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dialog.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/editor.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/form.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/grid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/layout.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/list-view.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/menu.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel-reset.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/pivotgrid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/progress.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/qtips.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/reset.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/resizable.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/slider.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tabs.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/toolbar.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tree.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/window.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/borders.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/box.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/button.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/combo.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/core.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/date-picker.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dd.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/debug.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dialog.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/editor.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/form.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/grid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/layout.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/list-view.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/menu.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/panel.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/progress.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/qtips.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/resizable.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/slider.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tabs.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/toolbar.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tree.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/window.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/borders.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/box.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/button.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/combo.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/core.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/date-picker.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dd.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/debug.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dialog.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/editor.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/form.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/grid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/layout.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/list-view.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/menu.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/panel.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/pivotgrid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/progress.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/qtips.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/resizable.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/slider.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tabs.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/toolbar.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tree.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/window.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/borders.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/box.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/button.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/combo.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/core.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/date-picker.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dd.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/debug.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dialog.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/editor.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/form.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/grid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/layout.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/list-view.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/menu.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/panel.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/pivotgrid.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/progress.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/qtips.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/resizable.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/slider.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tabs.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/toolbar.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tree.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/window.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-access.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-blue.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-gray.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.less delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scmslate.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/css/yourtheme.css delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/expressinstall.swf delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/corners-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/group-cs.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/group-lr.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/group-tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-b-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-b.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-bo.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-o.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/editor/tb-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/checkbox.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/error-tip-corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/exclamation.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/radio.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/search-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/search-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/text-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-left-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-right-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/columns.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/dirty.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/done.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/footer-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-vista-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-hd-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-hrow-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-sel-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-by.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hd-pop.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-unlock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-unlock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/invalid_line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/mso-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/nowait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-last-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-last.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/pick-button.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/refresh.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-check-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-sel.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/wait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/group-checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/item-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu-parent.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/unchecked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/light-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tool-sprite-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tool-sprites.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tools-sprites-trans.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/progress/progress-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-anchor-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/glass-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/hd-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/left-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/right-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/e-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/ne-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/ne-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/nw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/nw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/s-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/se-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-v-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-v-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/scroll-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/scroll-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-inactive-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-inactive-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-strip-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-strip-btm-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tabs-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-arrow-light.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-over-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/gray-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/more.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/s-arrow-bo.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/tb-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/tb-xl-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/tb-xl-sep.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/arrows.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-add.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-between.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-under.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder-open.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/leaf.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-error.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-info.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-question.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/left-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/left-right.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/right-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/corners-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/tb-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-cs.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-lr.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-bo.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-o.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/dd/drop-add.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/dd/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/dd/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/editor/tb-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/checkbox.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/date-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/date-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/error-tip-corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/exclamation.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/radio.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/search-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/search-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/text-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-left-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-right-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/columns.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/dirty.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/done.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/footer-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-vista-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-hd-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-hrow-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-rowheader.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-by.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hd-pop.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-unlock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-unlock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/invalid_line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/mso-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/nowait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-last-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-last.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-next-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-next.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/pick-button.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-check-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-sel.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/sort-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/sort_asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/sort_desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/wait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-light-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/stick.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/stuck.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close-on.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/group-checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/item-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu-parent.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/unchecked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/light-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/tool-sprite-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/tool-sprites.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/tools-sprites-trans.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/white-corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/white-left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/white-top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/progress/progress-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-anchor-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow-c.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow-lr.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/blue-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/calendar.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/glass-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/hd-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/large-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/left-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/loading-balls.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/right-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/e-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/s-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-v-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-v-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroll-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroll-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroller-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-inactive-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-inactive-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-over-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-btm-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tabs-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-arrow-light.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-over-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/gray-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/more.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-xl-sep.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/arrows.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-add.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-between.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-under.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder-open.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/leaf.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-error.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-info.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-question.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-corners.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-right.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-right.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/right-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/right-corners.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/top-bottom.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/btn-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-cs.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-lr.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-bo.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-o.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/clear-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/date-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/search-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/trigger-square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hd-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow-over2.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow2.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-bg2.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-first.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-last.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-next.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-prev.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/refresh.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/row-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort_asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort_desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/group-checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/menu-parent.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/light-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprite-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprites.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tools-sprites-trans.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/progress/progress-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/hd-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/left-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/right-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/ne-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/nw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/sw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-v-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroller-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-over-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-strip-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-strip-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-strip-btm-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tabs-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-arrow-light.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-over-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/gray-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/more.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/tb-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/tb-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/arrows.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-error.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-info.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-question.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/left-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/left-right.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/right-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/top-bottom.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-cs.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-lr.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-tb.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-bo.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-o.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/editor/tb-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/clear-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/date-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/search-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/trigger-tpl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/gradient-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-left-white.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-right-white.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-top.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/footer-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-split.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-hrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-split.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-vista-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-hd-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-hrow-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-hrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-sel-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/group-expand-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/mso-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-last-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-last.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-prev-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-prev.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/refresh.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/row-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/row-sel.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/sort_asc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/sort_desc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/item-over - Copy.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/item-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/menu-parent.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/menu.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/corners-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/left-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/light-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprite-tpl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprites.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tools-sprites-trans.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/top-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/top-bottom.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-corners-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-left-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-top-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/progress/progress-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/tip-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/s.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/glass-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/hd-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/left-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/right-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/e-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/e-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/ne-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/ne-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/se-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/se-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/square.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/sw-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/sw-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-thumb.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-v-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-v-thumb.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroll-left.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroll-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroller-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-inactive-left-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-inactive-right-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-left-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-right-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-strip-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-strip-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-strip-btm-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tabs-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-arrow-light.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-arrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-over-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/gray-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/tb-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/tb-btn-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-error.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-info.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-question.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-warning.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/left-corners.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/left-right.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/right-corners.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/top-bottom.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners-blue.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/l-blue.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/l.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/r-blue.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/r.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb-blue.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/arrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/btn-arrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/btn-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/group-cs.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/group-lr.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/group-tb.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-b-noline.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-b.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-bo.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-noline.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-o.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/dd/drop-add.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/dd/drop-no.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/dd/drop-yes.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/editor/tb-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/checkbox.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/clear-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/date-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/error-tip-corners.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/exclamation.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/radio.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/search-trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/text-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-square.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-tpl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/gradient-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-top.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/columns.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/dirty.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/done.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/drop-no.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/drop-yes.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid-hrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid-loading.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid-split.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hd-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow-over2.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow2.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-rowheader.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-special-col-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-special-col-bg2.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-special-col-sel-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-by.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-collapse.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hd-pop.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-asc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-desc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/invalid_line.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/loading.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-first-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-first.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-last-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-last.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-next-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-next.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/refresh.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-check-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-expand-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-sel.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/sort-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/sort_asc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/sort_desc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/collapse.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/expand.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/gradient-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-left.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-top.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/ns-collapse.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/ns-expand.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-title-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-title-light-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/stick.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/stuck.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/tab-close-on.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/tab-close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/checked.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/group-checked.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over-disabled.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/menu-parent.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/menu.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/unchecked.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/clear.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/clearfocus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/clearinvalid.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/expand.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/expandfocus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/expandinvalid.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/corners-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/corners-sprite_b.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/left-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/light-hd.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprite-tpl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tools-sprites-trans.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/top-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/top-bottom.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/top-bottom_bc.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-corners-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-left-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-top-bottom.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/progress/progress-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/tip-anchor-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/tip-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/tip-sprite_old.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/s.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-c.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-lr.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/calendar.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/glass-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/hd-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/large-loading.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/left-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/loading-balls.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/right-btn.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/warning.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/e-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/e-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/ne-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/ne-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/nw-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/nw-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/s-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/s-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/se-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/se-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/square.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle-dark.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-thumb.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-v-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-v-thumb.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/spinner/spinner-split.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/spinner/spinner.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroll-left.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroll-right.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroller-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-left-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-right-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-left-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-over-left-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-over-right-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-right-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-close.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-btm-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tabs-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-arrow-light.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-arrow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-over-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/gray-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/more.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-bg.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-btn-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-xl-btn-sprite.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-xl-sep.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/arrows.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-add.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-between.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-no.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-over.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-under.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-yes.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-minus-nl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-minus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus-nl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-line.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus-nl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-plus-nl.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-plus.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder-open.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/leaf.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/loading.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/s.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-error.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-info.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-question.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-warning.gif delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/left-corners.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/left-corners_ie6.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/left-right.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/left-right_ie6.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners_ie6.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/top-bottom.png delete mode 100755 scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/top-bottom_ie6.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/bg-center.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/bg-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/bg-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/dlg-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/hd-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/w-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-vista-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-title-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-title-light-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/stick.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/tab-close-on.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/qtip/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/qtip/tip-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/s-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/se-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-inactive-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-inactive-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/toolbar/gray-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/toolbar/tb-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/README.txt delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/corners-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/tb-blue.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-cs.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-lr.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-tb.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-bo.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-noline.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-o.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/dd/drop-add.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/dd/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/dd/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/editor/tb-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/checkbox.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/date-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/date-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/error-tip-corners.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/exclamation.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/radio.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/search-trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/search-trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/text-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-left-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-right-white.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/columns.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/dirty.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/done.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/footer-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-split.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-vista-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-hd-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-hrow-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-hrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-sel-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-by.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hd-pop.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-unlock.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-unlock.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/invalid_line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/mso-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/nowait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-last-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-last.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-next-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-next.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev-disabled.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/pick-button.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/refresh.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-check-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-expand-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-sel.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/sort-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/sort_asc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/sort_desc.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/wait.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/gradient-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-top.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-collapse.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-expand.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-light-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/stick.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/stuck.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close-on.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/group-checked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/item-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu-parent.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/unchecked.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/light-hd.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/tool-sprite-tpl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/tool-sprites.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/tools-sprites-trans.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/white-corners-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/white-left-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/white-top-bottom.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/progress/progress-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-anchor-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow-c.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow-lr.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/blue-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/calendar.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/glass-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/hd-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/large-loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/left-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/loading-balls.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/right-btn.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/e-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/e-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/s-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/s-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/square.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle-dark.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-v-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-v-thumb.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroll-left.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroll-right.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroller-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-inactive-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-inactive-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-over-left-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-over-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-right-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-close.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-btm-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tabs-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-arrow-light.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-arrow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-over-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/gray-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/more.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-bg.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-xl-btn-sprite.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-xl-sep.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/arrows.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-add.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-between.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-no.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-over.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-under.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-yes.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-line.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-plus-nl.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-plus.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder-open.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/leaf.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/loading.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/s.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-error.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-info.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-question.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-warning.gif delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-corners.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-right.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-right.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/right-corners.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/right-corners.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/top-bottom.png delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/top-bottom.psd delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/util/CheckColumn.js delete mode 100644 scm-webapp/src/main/webapp/resources/extjs/util/FileUploadField.js delete mode 100644 scm-webapp/src/main/webapp/resources/images/add.gif delete mode 100755 scm-webapp/src/main/webapp/resources/images/add.png delete mode 100755 scm-webapp/src/main/webapp/resources/images/archive.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/delete.gif delete mode 100755 scm-webapp/src/main/webapp/resources/images/delete.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/document.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/document.png delete mode 100755 scm-webapp/src/main/webapp/resources/images/favicon.ico delete mode 100644 scm-webapp/src/main/webapp/resources/images/folder-remote.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/folder-remote.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/folder.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/folder.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/header-backgound.jpg delete mode 100644 scm-webapp/src/main/webapp/resources/images/help.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/help.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/icons/16x16/git.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/icons/16x16/mercurial.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/icons/16x16/subversion.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/modify.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/reload.gif delete mode 100644 scm-webapp/src/main/webapp/resources/images/reload.png delete mode 100644 scm-webapp/src/main/webapp/resources/images/scm-logo.jpg delete mode 100644 scm-webapp/src/main/webapp/resources/images/tag.gif delete mode 100755 scm-webapp/src/main/webapp/resources/images/warning.png delete mode 100644 scm-webapp/src/main/webapp/resources/js/action/sonia.action.changepasswordwindow.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/action/sonia.action.exceptionwindow.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/action/sonia.action.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.configform.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.configpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.repositoryconfig.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/config/sonia.config.simpleconfigform.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.formpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.memberformpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/group/sonia.group.propertiesformpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/i18n/de.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/i18n/es.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/login/sonia.login.form.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/login/sonia.login.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/login/sonia.login.window.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.navpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.navsection.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.data.store.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.form.field.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.form.vtypes.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.grid.columnmodel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.grid.gridpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.grid.groupingview.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.syntaxhighlighterpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.center.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.grid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.store.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.uploadform.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.blamepanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.branchcombobox.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewergrid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewerpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.commitpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.contentpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.diffpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.extendedinfopanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.formpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.healthcheckfailure.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.importwindow.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.propertiesformpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.repositorybrowser.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.settingsformpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.tagcombobox.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.formpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.jsonstore.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/security/sonia.security.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/security/sonia.security.permissionspanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/sonia.core.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/sonia.global.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/sonia.history.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/sonia.scm.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/uistate/sonia.uistate.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/uistate/sonia.uistate.webstorageprovider.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/user/sonia.user.formpanel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/user/sonia.user.grid.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/user/sonia.user.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/user/sonia.user.panel.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/util/sonia.util.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/util/sonia.util.link.js delete mode 100644 scm-webapp/src/main/webapp/resources/js/util/sonia.util.tip.js delete mode 100644 scm-webapp/src/main/webapp/resources/moment/lang/de.js delete mode 100644 scm-webapp/src/main/webapp/resources/moment/moment.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shAutoloader.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushAS3.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushAppleScript.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushBash.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCSharp.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushColdFusion.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCpp.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCss.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDelphi.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDiff.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushErlang.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushGroovy.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJScript.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJava.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJavaFX.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPerl.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPhp.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPlain.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPowerShell.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPython.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushRuby.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSass.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushScala.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSql.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushVb.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushXml.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shCore.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shLegacy.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shAutoloader.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shCore.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shLegacy.js delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCore.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreDefault.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreDjango.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreEclipse.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreEmacs.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreFadeToGrey.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreMDUltra.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreMidnight.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreNetbeans.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shCoreRDark.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeDefault.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeDjango.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeEclipse.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeEmacs.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeFadeToGrey.css delete mode 100755 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeMDUltra.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeMidnight.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeNetbeans.css delete mode 100644 scm-webapp/src/main/webapp/resources/syntaxhighlighter/styles/shThemeRDark.css diff --git a/scm-webapp/src/main/webapp/index.mustache b/scm-webapp/src/main/webapp/index.mustache deleted file mode 100644 index fec01e96ca..0000000000 --- a/scm-webapp/src/main/webapp/index.mustache +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{#scripts}} - - {{/scripts}} - - {{#nonDefaultLocale}} - - - - {{/nonDefaultLocale}} - - SCM Manager - - - - -
- - - -
-
-
-
-

SCM Managers

-
-
-
-
- - - -
- - -
- - -
- - - - \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/css/style.css b/scm-webapp/src/main/webapp/resources/css/style.css deleted file mode 100644 index deb968f35e..0000000000 --- a/scm-webapp/src/main/webapp/resources/css/style.css +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -/* - Document : style - Created on : Aug 18, 2010, 3:14:05 PM - Author : Sebastian Sdorra - Description: - Purpose of the stylesheet follows. -*/ - -/* - TODO customize this sample style - Syntax recommendation http://www.w3.org/TR/REC-CSS2/ -*/ - -body { - font-size: 12px; -} - -a { - color: #004077; - text-decoration: none; -} - -a:hover { - color: #004077; -} - -a:visited { - color: #004077; -} - -a.scm-browser:hover { - cursor: pointer; -} - -a.scm-link:hover { - cursor: pointer; -} - -#north-panel { - background-image: url(../images/header-backgound.jpg); - background-repeat: repeat-x; -} - -.right-side { - float: right; -} - -.left-side { - float: left; -} - -#south { - font-size: 12px; -} - -#footer a { - color: #666; - font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; - margin-top: 20px; -} - -.scm-form-help-button { - vertical-align: middle; - margin-left: 2px; -} - -.scm-form-combo-help-button { - vertical-align: middle; - margin-left: 19px; -} - -.scm-form-textarea-help-button { - vertical-align: top; - margin-left: 2px; -} - -.scm-form-fileupload-help-button { - position: absolute; - right: -19px; -} - -.scm-nav-item { - cursor: pointer; -} - -.cs-mod { - height: 16px; -} - -.cs-mod img { - vertical-align: middle; -} - -.cs-mod-txt { - margin: 0 3px; -} - -.changeset-tags { - margin-bottom: 5px; -} - -.cs-tag, .cs-branch { - height: 18px; - vertical-align: middle; - display: inline-block; - border: 1px solid gray; - border-radius: 4px; -} - -.cs-tag a, .cs-branch a { - padding: 5px; -} - -.cs-tag { - background-image: url(../images/tag.gif); - background-repeat: no-repeat; - background-position: 1px 1px; -} - -.cs-tag a { - margin-left: 16px; -} - -.scm-commit { - margin-bottom: 65px; -} - -.scm-commit h1 { - margin-bottom: 5px; -} - -ul.scm-modifications { - border-top: 1px solid darkgray; - border-bottom: 1px solid darkgray; - clear: both; - vertical-align: middle; -} - -ul.scm-modifications li { - background-color: transparent; - background-repeat: no-repeat; - background-position: 0 0.2em; - padding: 3px 3px 3px 20px; - display: block; -} - -li.scm-added { - background-image: url(../images/add.png); -} - -li.scm-modified { - /* TODO create png image */ - background-image: url(../images/modify.gif); -} - -li.scm-removed { - background-image: url(../images/delete.png); -} - - -div.noscript-container { - background-color: #ffffff; - margin: 10px; - color: #202020; - font-family: Verdana,Helvetica,Arial,sans-serif; - font-size: 12px; - margin: 1em; -} - -div.noscript-container h1 { - font-size: 18px; - font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif; - font-weight: bold; - margin: 0.5em 0em; - padding: 0px; - color: #D20005; - border-bottom: 1px solid #AFAFAF; -} - -/* - * FileUploadField component styles - */ -.x-form-file-wrap { - position: relative; - height: 22px; -} -.x-form-file-wrap .x-form-file { - position: absolute; - right: 0; - -moz-opacity: 0; - filter:alpha(opacity: 0); - opacity: 0; - z-index: 2; - height: 22px; -} -.x-form-file-wrap .x-form-file-btn { - position: absolute; - right: 0; - z-index: 1; -} -.x-form-file-wrap .x-form-file-text { - position: absolute; - left: 0; - z-index: 3; - color: #777; -} - -.upload-icon { - background: url('../images/add.png') no-repeat 0 0 !important; -} - -.unhealthy { - color: red; -} - -/** import **/ -.import-fu { - margin-right: 24px; -} - -.import-fu input { - width: 215px; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/ext/ext-base-debug.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/ext/ext-base-debug.js deleted file mode 100644 index 2950952944..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/ext/ext-base-debug.js +++ /dev/null @@ -1,2909 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -// for old browsers -window.undefined = window.undefined; - -/** - * @class Ext - * Ext core utilities and functions. - * @singleton - */ - -Ext = { - /** - * The version of the framework - * @type String - */ - version : '3.4.0', - versionDetail : { - major : 3, - minor : 4, - patch : 0 - } -}; - -/** - * Copies all the properties of config to obj. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @param {Object} defaults A different object that will also be applied for default values - * @return {Object} returns obj - * @member Ext apply - */ -Ext.apply = function(o, c, defaults){ - // no "this" reference for friendly out of scope calls - if(defaults){ - Ext.apply(o, defaults); - } - if(o && c && typeof c == 'object'){ - for(var p in c){ - o[p] = c[p]; - } - } - return o; -}; - -(function(){ - var idSeed = 0, - toString = Object.prototype.toString, - ua = navigator.userAgent.toLowerCase(), - check = function(r){ - return r.test(ua); - }, - DOC = document, - docMode = DOC.documentMode, - isStrict = DOC.compatMode == "CSS1Compat", - isOpera = check(/opera/), - isChrome = check(/\bchrome\b/), - isWebKit = check(/webkit/), - isSafari = !isChrome && check(/safari/), - isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2 - isSafari3 = isSafari && check(/version\/3/), - isSafari4 = isSafari && check(/version\/4/), - isIE = !isOpera && check(/msie/), - isIE7 = isIE && (check(/msie 7/) || docMode == 7), - isIE8 = isIE && (check(/msie 8/) && docMode != 7), - isIE9 = isIE && check(/msie 9/), - isIE6 = isIE && !isIE7 && !isIE8 && !isIE9, - isGecko = !isWebKit && check(/gecko/), - isGecko2 = isGecko && check(/rv:1\.8/), - isGecko3 = isGecko && check(/rv:1\.9/), - isBorderBox = isIE && !isStrict, - isWindows = check(/windows|win32/), - isMac = check(/macintosh|mac os x/), - isAir = check(/adobeair/), - isLinux = check(/linux/), - isSecure = /^https/i.test(window.location.protocol); - - // remove css image flicker - if(isIE6){ - try{ - DOC.execCommand("BackgroundImageCache", false, true); - }catch(e){} - } - - Ext.apply(Ext, { - /** - * URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent - * the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). - * @type String - */ - SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', - /** - * True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode - * @type Boolean - */ - isStrict : isStrict, - /** - * True if the page is running over SSL - * @type Boolean - */ - isSecure : isSecure, - /** - * True when the document is fully initialized and ready for action - * @type Boolean - */ - isReady : false, - - /** - * True if the {@link Ext.Fx} Class is available - * @type Boolean - * @property enableFx - */ - - /** - * HIGHLY EXPERIMENTAL - * True to force css based border-box model override and turning off javascript based adjustments. This is a - * runtime configuration and must be set before onReady. - * @type Boolean - */ - enableForcedBoxModel : false, - - /** - * True to automatically uncache orphaned Ext.Elements periodically (defaults to true) - * @type Boolean - */ - enableGarbageCollector : true, - - /** - * True to automatically purge event listeners during garbageCollection (defaults to false). - * @type Boolean - */ - enableListenerCollection : false, - - /** - * EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed. - * Currently not optimized for performance. - * @type Boolean - */ - enableNestedListenerRemoval : false, - - /** - * Indicates whether to use native browser parsing for JSON methods. - * This option is ignored if the browser does not support native JSON methods. - * Note: Native JSON methods will not work with objects that have functions. - * Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) - * @type Boolean - */ - USE_NATIVE_JSON : false, - - /** - * Copies all the properties of config to obj if they don't already exist. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @return {Object} returns obj - */ - applyIf : function(o, c){ - if(o){ - for(var p in c){ - if(!Ext.isDefined(o[p])){ - o[p] = c[p]; - } - } - } - return o; - }, - - /** - * Generates unique ids. If the element already has an id, it is unchanged - * @param {Mixed} el (optional) The element to generate an id for - * @param {String} prefix (optional) Id prefix (defaults "ext-gen") - * @return {String} The generated Id. - */ - id : function(el, prefix){ - el = Ext.getDom(el, true) || {}; - if (!el.id) { - el.id = (prefix || "ext-gen") + (++idSeed); - } - return el.id; - }, - - /** - *

Extends one class to create a subclass and optionally overrides members with the passed literal. This method - * also adds the function "override()" to the subclass that can be used to override members of the class.

- * For example, to create a subclass of Ext GridPanel: - *

-MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
-    constructor: function(config) {
-
-//      Create configuration for this Grid.
-        var store = new Ext.data.Store({...});
-        var colModel = new Ext.grid.ColumnModel({...});
-
-//      Create a new config object containing our computed properties
-//      *plus* whatever was in the config parameter.
-        config = Ext.apply({
-            store: store,
-            colModel: colModel
-        }, config);
-
-        MyGridPanel.superclass.constructor.call(this, config);
-
-//      Your postprocessing here
-    },
-
-    yourMethod: function() {
-        // etc.
-    }
-});
-
- * - *

This function also supports a 3-argument call in which the subclass's constructor is - * passed as an argument. In this form, the parameters are as follows:

- *
    - *
  • subclass : Function
    The subclass constructor.
  • - *
  • superclass : Function
    The constructor of class being extended
  • - *
  • overrides : Object
    A literal with members which are copied into the subclass's - * prototype, and are therefore shared among all instances of the new class.
  • - *
- * - * @param {Function} superclass The constructor of class being extended. - * @param {Object} overrides

A literal with members which are copied into the subclass's - * prototype, and are therefore shared between all instances of the new class.

- *

This may contain a special member named constructor. This is used - * to define the constructor of the new class, and is returned. If this property is - * not specified, a constructor is generated and returned which just calls the - * superclass's constructor passing on its parameters.

- *

It is essential that you call the superclass constructor in any provided constructor. See example code.

- * @return {Function} The subclass constructor from the overrides parameter, or a generated one if not provided. - */ - extend : function(){ - // inline overrides - var io = function(o){ - for(var m in o){ - this[m] = o[m]; - } - }; - var oc = Object.prototype.constructor; - - return function(sb, sp, overrides){ - if(typeof sp == 'object'){ - overrides = sp; - sp = sb; - sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);}; - } - var F = function(){}, - sbp, - spp = sp.prototype; - - F.prototype = spp; - sbp = sb.prototype = new F(); - sbp.constructor=sb; - sb.superclass=spp; - if(spp.constructor == oc){ - spp.constructor=sp; - } - sb.override = function(o){ - Ext.override(sb, o); - }; - sbp.superclass = sbp.supr = (function(){ - return spp; - }); - sbp.override = io; - Ext.override(sb, overrides); - sb.extend = function(o){return Ext.extend(sb, o);}; - return sb; - }; - }(), - - /** - * Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name. - * Usage:

-Ext.override(MyClass, {
-    newMethod1: function(){
-        // etc.
-    },
-    newMethod2: function(foo){
-        // etc.
-    }
-});
-
- * @param {Object} origclass The class to override - * @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal - * containing one or more methods. - * @method override - */ - override : function(origclass, overrides){ - if(overrides){ - var p = origclass.prototype; - Ext.apply(p, overrides); - if(Ext.isIE && overrides.hasOwnProperty('toString')){ - p.toString = overrides.toString; - } - } - }, - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method namespace - */ - namespace : function(){ - var len1 = arguments.length, - i = 0, - len2, - j, - main, - ns, - sub, - current; - - for(; i < len1; ++i) { - main = arguments[i]; - ns = arguments[i].split('.'); - current = window[ns[0]]; - if (current === undefined) { - current = window[ns[0]] = {}; - } - sub = ns.slice(1); - len2 = sub.length; - for(j = 0; j < len2; ++j) { - current = current[sub[j]] = current[sub[j]] || {}; - } - } - return current; - }, - - /** - * Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. - * @param {Object} o - * @param {String} pre (optional) A prefix to add to the url encoded string - * @return {String} - */ - urlEncode : function(o, pre){ - var empty, - buf = [], - e = encodeURIComponent; - - Ext.iterate(o, function(key, item){ - empty = Ext.isEmpty(item); - Ext.each(empty ? key : item, function(val){ - buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : ''); - }); - }); - if(!pre){ - buf.shift(); - pre = ''; - } - return pre + buf.join(''); - }, - - /** - * Takes an encoded URL and and converts it to an object. Example:

-Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
-Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
-
- * @param {String} string - * @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false). - * @return {Object} A literal with members - */ - urlDecode : function(string, overwrite){ - if(Ext.isEmpty(string)){ - return {}; - } - var obj = {}, - pairs = string.split('&'), - d = decodeURIComponent, - name, - value; - Ext.each(pairs, function(pair) { - pair = pair.split('='); - name = d(pair[0]); - value = d(pair[1]); - obj[name] = overwrite || !obj[name] ? value : - [].concat(obj[name]).concat(value); - }); - return obj; - }, - - /** - * Appends content to the query string of a URL, handling logic for whether to place - * a question mark or ampersand. - * @param {String} url The URL to append to. - * @param {String} s The content to append to the URL. - * @return (String) The resulting URL - */ - urlAppend : function(url, s){ - if(!Ext.isEmpty(s)){ - return url + (url.indexOf('?') === -1 ? '?' : '&') + s; - } - return url; - }, - - /** - * Converts any iterable (numeric indices and a length property) into a true array - * Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on. - * For strings, use this instead: "abc".match(/./g) => [a,b,c]; - * @param {Iterable} the iterable object to be turned into a true Array. - * @return (Array) array - */ - toArray : function(){ - return isIE ? - function(a, i, j, res){ - res = []; - for(var x = 0, len = a.length; x < len; x++) { - res.push(a[x]); - } - return res.slice(i || 0, j || res.length); - } : - function(a, i, j){ - return Array.prototype.slice.call(a, i || 0, j || a.length); - }; - }(), - - isIterable : function(v){ - //check for array or arguments - if(Ext.isArray(v) || v.callee){ - return true; - } - //check for node list type - if(/NodeList|HTMLCollection/.test(toString.call(v))){ - return true; - } - //NodeList has an item and length property - //IXMLDOMNodeList has nextNode method, needs to be checked first. - return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length)); - }, - - /** - * Iterates an array calling the supplied function. - * @param {Array/NodeList/Mixed} array The array to be iterated. If this - * argument is not really an array, the supplied function is called once. - * @param {Function} fn The function to be called with each item. If the - * supplied function returns false, iteration stops and this method returns - * the current index. This function is called with - * the following arguments: - *
    - *
  • item : Mixed - *
    The item at the current index - * in the passed array
  • - *
  • index : Number - *
    The current index within the array
  • - *
  • allItems : Array - *
    The array passed as the first - * argument to Ext.each.
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. - * Defaults to the item at the current index - * within the passed array. - * @return See description for the fn parameter. - */ - each : function(array, fn, scope){ - if(Ext.isEmpty(array, true)){ - return; - } - if(!Ext.isIterable(array) || Ext.isPrimitive(array)){ - array = [array]; - } - for(var i = 0, len = array.length; i < len; i++){ - if(fn.call(scope || array[i], array[i], i, array) === false){ - return i; - }; - } - }, - - /** - * Iterates either the elements in an array, or each of the properties in an object. - * Note: If you are only iterating arrays, it is better to call {@link #each}. - * @param {Object/Array} object The object or array to be iterated - * @param {Function} fn The function to be called for each iteration. - * The iteration will stop if the supplied function returns false, or - * all array elements / object properties have been covered. The signature - * varies depending on the type of object being interated: - *
    - *
  • Arrays : (Object item, Number index, Array allItems) - *
    - * When iterating an array, the supplied function is called with each item.
  • - *
  • Objects : (String key, Object value, Object) - *
    - * When iterating an object, the supplied function is called with each key-value pair in - * the object, and the iterated object
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. Defaults to - * the object being iterated. - */ - iterate : function(obj, fn, scope){ - if(Ext.isEmpty(obj)){ - return; - } - if(Ext.isIterable(obj)){ - Ext.each(obj, fn, scope); - return; - }else if(typeof obj == 'object'){ - for(var prop in obj){ - if(obj.hasOwnProperty(prop)){ - if(fn.call(scope || obj, prop, obj[prop], obj) === false){ - return; - }; - } - } - } - }, - - /** - * Return the dom node for the passed String (id), dom node, or Ext.Element. - * Optional 'strict' flag is needed for IE since it can return 'name' and - * 'id' elements by using getElementById. - * Here are some examples: - *

-// gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
-    var dom = Ext.getDom(el);
-    // do something with the dom node
-}
-         * 
- * Note: the dom node to be found actually needs to exist (be rendered, etc) - * when this method is called to be successful. - * @param {Mixed} el - * @return HTMLElement - */ - getDom : function(el, strict){ - if(!el || !DOC){ - return null; - } - if (el.dom){ - return el.dom; - } else { - if (typeof el == 'string') { - var e = DOC.getElementById(el); - // IE returns elements with the 'name' and 'id' attribute. - // we do a strict check to return the element with only the id attribute - if (e && isIE && strict) { - if (el == e.getAttribute('id')) { - return e; - } else { - return null; - } - } - return e; - } else { - return el; - } - } - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getBody : function(){ - return Ext.get(DOC.body || DOC.documentElement); - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getHead : function() { - var head; - - return function() { - if (head == undefined) { - head = Ext.get(DOC.getElementsByTagName("head")[0]); - } - - return head; - }; - }(), - - /** - * Removes a DOM node from the document. - */ - /** - *

Removes this element from the document, removes all DOM event listeners, and deletes the cache reference. - * All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is - * true, then DOM event listeners are also removed from all child nodes. The body node - * will be ignored if passed in.

- * @param {HTMLElement} node The node to remove - */ - removeNode : isIE && !isIE8 ? function(){ - var d; - return function(n){ - if(n && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - d = d || DOC.createElement('div'); - d.appendChild(n); - d.innerHTML = ''; - delete Ext.elCache[n.id]; - } - }; - }() : function(n){ - if(n && n.parentNode && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - n.parentNode.removeChild(n); - delete Ext.elCache[n.id]; - } - }, - - /** - *

Returns true if the passed value is empty.

- *

The value is deemed to be empty if it is

    - *
  • null
  • - *
  • undefined
  • - *
  • an empty array
  • - *
  • a zero length string (Unless the allowBlank parameter is true)
  • - *
- * @param {Mixed} value The value to test - * @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false) - * @return {Boolean} - */ - isEmpty : function(v, allowBlank){ - return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false); - }, - - /** - * Returns true if the passed value is a JavaScript array, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isArray : function(v){ - return toString.apply(v) === '[object Array]'; - }, - - /** - * Returns true if the passed object is a JavaScript date object, otherwise false. - * @param {Object} object The object to test - * @return {Boolean} - */ - isDate : function(v){ - return toString.apply(v) === '[object Date]'; - }, - - /** - * Returns true if the passed value is a JavaScript Object, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isObject : function(v){ - return !!v && Object.prototype.toString.call(v) === '[object Object]'; - }, - - /** - * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isPrimitive : function(v){ - return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v); - }, - - /** - * Returns true if the passed value is a JavaScript Function, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isFunction : function(v){ - return toString.apply(v) === '[object Function]'; - }, - - /** - * Returns true if the passed value is a number. Returns false for non-finite numbers. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isNumber : function(v){ - return typeof v === 'number' && isFinite(v); - }, - - /** - * Returns true if the passed value is a string. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isString : function(v){ - return typeof v === 'string'; - }, - - /** - * Returns true if the passed value is a boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isBoolean : function(v){ - return typeof v === 'boolean'; - }, - - /** - * Returns true if the passed value is an HTMLElement - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isElement : function(v) { - return v ? !!v.tagName : false; - }, - - /** - * Returns true if the passed value is not undefined. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isDefined : function(v){ - return typeof v !== 'undefined'; - }, - - /** - * True if the detected browser is Opera. - * @type Boolean - */ - isOpera : isOpera, - /** - * True if the detected browser uses WebKit. - * @type Boolean - */ - isWebKit : isWebKit, - /** - * True if the detected browser is Chrome. - * @type Boolean - */ - isChrome : isChrome, - /** - * True if the detected browser is Safari. - * @type Boolean - */ - isSafari : isSafari, - /** - * True if the detected browser is Safari 3.x. - * @type Boolean - */ - isSafari3 : isSafari3, - /** - * True if the detected browser is Safari 4.x. - * @type Boolean - */ - isSafari4 : isSafari4, - /** - * True if the detected browser is Safari 2.x. - * @type Boolean - */ - isSafari2 : isSafari2, - /** - * True if the detected browser is Internet Explorer. - * @type Boolean - */ - isIE : isIE, - /** - * True if the detected browser is Internet Explorer 6.x. - * @type Boolean - */ - isIE6 : isIE6, - /** - * True if the detected browser is Internet Explorer 7.x. - * @type Boolean - */ - isIE7 : isIE7, - /** - * True if the detected browser is Internet Explorer 8.x. - * @type Boolean - */ - isIE8 : isIE8, - /** - * True if the detected browser is Internet Explorer 9.x. - * @type Boolean - */ - isIE9 : isIE9, - /** - * True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). - * @type Boolean - */ - isGecko : isGecko, - /** - * True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). - * @type Boolean - */ - isGecko2 : isGecko2, - /** - * True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). - * @type Boolean - */ - isGecko3 : isGecko3, - /** - * True if the detected browser is Internet Explorer running in non-strict mode. - * @type Boolean - */ - isBorderBox : isBorderBox, - /** - * True if the detected platform is Linux. - * @type Boolean - */ - isLinux : isLinux, - /** - * True if the detected platform is Windows. - * @type Boolean - */ - isWindows : isWindows, - /** - * True if the detected platform is Mac OS. - * @type Boolean - */ - isMac : isMac, - /** - * True if the detected platform is Adobe Air. - * @type Boolean - */ - isAir : isAir - }); - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method ns - */ - Ext.ns = Ext.namespace; -})(); - -Ext.ns('Ext.util', 'Ext.lib', 'Ext.data', 'Ext.supports'); - -Ext.elCache = {}; - -/** - * @class Function - * These functions are available on every Function object (any JavaScript function). - */ -Ext.apply(Function.prototype, { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-sayHi('Fred'); // alerts "Hi, Fred"
-
-// create a new function that validates input without
-// directly modifying the original function:
-var sayHiToFriend = sayHi.createInterceptor(function(name){
-    return name == 'Brian';
-});
-
-sayHiToFriend('Fred');  // no alert
-sayHiToFriend('Brian'); // alerts "Hi, Brian"
-
- * @param {Function} fcn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor : function(fcn, scope){ - var method = this; - return !Ext.isFunction(fcn) ? - this : - function() { - var me = this, - args = arguments; - fcn.target = me; - fcn.method = method; - return (fcn.apply(scope || me || window, args) !== false) ? - method.apply(me || window, args) : - null; - }; - }, - - /** - * Creates a callback that passes arguments[0], arguments[1], arguments[2], ... - * Call directly on any function. Example: myFunction.createCallback(arg1, arg2) - * Will create a function that is bound to those 2 args. If a specific scope is required in the - * callback, use {@link #createDelegate} instead. The function returned by createCallback always - * executes in the window scope. - *

This method is required when you want to pass arguments to a callback function. If no arguments - * are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn). - * However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function - * would simply execute immediately when the code is parsed. Example usage: - *


-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// clicking the button alerts "Hi, Fred"
-new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody(),
-    handler: sayHi.createCallback('Fred')
-});
-
- * @return {Function} The new function - */ - createCallback : function(/*args...*/){ - // make args available, in function below - var args = arguments, - method = this; - return function() { - return method.apply(window, args); - }; - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: this.myFunction.createDelegate(this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *

-var sayHi = function(name){
-    // Note this use of "this.text" here.  This function expects to
-    // execute within a scope that contains a text property.  In this
-    // example, the "this" variable is pointing to the btn object that
-    // was passed in createDelegate below.
-    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
-}
-
-var btn = new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody()
-});
-
-// This callback will execute in the scope of the
-// button instance. Clicking the button alerts
-// "Hi, Fred. You clicked the "Say Hi" button."
-btn.on('click', sayHi.createDelegate(btn, ['Fred']));
-
- * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate : function(obj, args, appendArgs){ - var method = this; - return function() { - var callArgs = args || arguments; - if (appendArgs === true){ - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - }else if (Ext.isNumber(appendArgs)){ - callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); // splice them in - } - return method.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// executes immediately:
-sayHi('Fred');
-
-// executes after 2 seconds:
-sayHi.defer(2000, this, ['Fred']);
-
-// this syntax is sometimes useful for deferring
-// execution of an anonymous function:
-(function(){
-    alert('Anonymous');
-}).defer(100);
-
- * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer : function(millis, obj, args, appendArgs){ - var fn = this.createDelegate(obj, args, appendArgs); - if(millis > 0){ - return setTimeout(fn, millis); - } - fn(); - return 0; - } -}); - -/** - * @class String - * These functions are available on every String object. - */ -Ext.applyIf(String, { - /** - * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each - * token must be unique, and must increment in the format {0}, {1}, etc. Example usage: - *

-var cls = 'my-class', text = 'Some text';
-var s = String.format('<div class="{0}">{1}</div>', cls, text);
-// s now contains the string: '<div class="my-class">Some text</div>'
-     * 
- * @param {String} string The tokenized string to be formatted - * @param {String} value1 The value to replace token {0} - * @param {String} value2 Etc... - * @return {String} The formatted string - * @static - */ - format : function(format){ - var args = Ext.toArray(arguments, 1); - return format.replace(/\{(\d+)\}/g, function(m, i){ - return args[i]; - }); - } -}); - -/** - * @class Array - */ -Ext.applyIf(Array.prototype, { - /** - * Checks whether or not the specified object exists in the array. - * @param {Object} o The object to check for - * @param {Number} from (Optional) The index at which to begin the search - * @return {Number} The index of o in the array (or -1 if it is not found) - */ - indexOf : function(o, from){ - var len = this.length; - from = from || 0; - from += (from < 0) ? len : 0; - for (; from < len; ++from){ - if(this[from] === o){ - return from; - } - } - return -1; - }, - - /** - * Removes the specified object from the array. If the object is not found nothing happens. - * @param {Object} o The object to remove - * @return {Array} this array - */ - remove : function(o){ - var index = this.indexOf(o); - if(index != -1){ - this.splice(index, 1); - } - return this; - } -}); -/** - * @class Ext.util.TaskRunner - * Provides the ability to execute one or more arbitrary tasks in a multithreaded - * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but - * if needed, you can create separate instances of TaskRunner. Any number of - * separate tasks can be started at any time and will run independently of each - * other. Example usage: - *

-// Start a simple clock task that updates a div once per second
-var updateClock = function(){
-    Ext.fly('clock').update(new Date().format('g:i:s A'));
-} 
-var task = {
-    run: updateClock,
-    interval: 1000 //1 second
-}
-var runner = new Ext.util.TaskRunner();
-runner.start(task);
-
-// equivalent using TaskMgr
-Ext.TaskMgr.start({
-    run: updateClock,
-    interval: 1000
-});
-
- * 
- *

See the {@link #start} method for details about how to configure a task object.

- * Also see {@link Ext.util.DelayedTask}. - * - * @constructor - * @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance - * (defaults to 10) - */ -Ext.util.TaskRunner = function(interval){ - interval = interval || 10; - var tasks = [], - removeQueue = [], - id = 0, - running = false, - - // private - stopThread = function(){ - running = false; - clearInterval(id); - id = 0; - }, - - // private - startThread = function(){ - if(!running){ - running = true; - id = setInterval(runTasks, interval); - } - }, - - // private - removeTask = function(t){ - removeQueue.push(t); - if(t.onStop){ - t.onStop.apply(t.scope || t); - } - }, - - // private - runTasks = function(){ - var rqLen = removeQueue.length, - now = new Date().getTime(); - - if(rqLen > 0){ - for(var i = 0; i < rqLen; i++){ - tasks.remove(removeQueue[i]); - } - removeQueue = []; - if(tasks.length < 1){ - stopThread(); - return; - } - } - for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){ - t = tasks[i]; - itime = now - t.taskRunTime; - if(t.interval <= itime){ - rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]); - t.taskRunTime = now; - if(rt === false || t.taskRunCount === t.repeat){ - removeTask(t); - return; - } - } - if(t.duration && t.duration <= (now - t.taskStartTime)){ - removeTask(t); - } - } - }; - - /** - * Starts a new task. - * @method start - * @param {Object} task

A config object that supports the following properties:

    - *
  • run : Function

    The function to execute each time the task is invoked. The - * function will be called at each interval and passed the args argument if specified, and the - * current invocation count if not.

    - *

    If a particular scope (this reference) is required, be sure to specify it using the scope argument.

    - *

    Return false from this function to terminate the task.

  • - *
  • interval : Number
    The frequency in milliseconds with which the task - * should be invoked.
  • - *
  • args : Array
    (optional) An array of arguments to be passed to the function - * specified by run. If not specified, the current invocation count is passed.
  • - *
  • scope : Object
    (optional) The scope (this reference) in which to execute the - * run function. Defaults to the task config object.
  • - *
  • duration : Number
    (optional) The length of time in milliseconds to invoke - * the task before stopping automatically (defaults to indefinite).
  • - *
  • repeat : Number
    (optional) The number of times to invoke the task before - * stopping automatically (defaults to indefinite).
  • - *

- *

Before each invocation, Ext injects the property taskRunCount into the task object so - * that calculations based on the repeat count can be performed.

- * @return {Object} The task - */ - this.start = function(task){ - tasks.push(task); - task.taskStartTime = new Date().getTime(); - task.taskRunTime = 0; - task.taskRunCount = 0; - startThread(); - return task; - }; - - /** - * Stops an existing running task. - * @method stop - * @param {Object} task The task to stop - * @return {Object} The task - */ - this.stop = function(task){ - removeTask(task); - return task; - }; - - /** - * Stops all tasks that are currently running. - * @method stopAll - */ - this.stopAll = function(){ - stopThread(); - for(var i = 0, len = tasks.length; i < len; i++){ - if(tasks[i].onStop){ - tasks[i].onStop(); - } - } - tasks = []; - removeQueue = []; - }; -}; - -/** - * @class Ext.TaskMgr - * @extends Ext.util.TaskRunner - * A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See - * {@link Ext.util.TaskRunner} for supported methods and task config properties. - *

-// Start a simple clock task that updates a div once per second
-var task = {
-    run: function(){
-        Ext.fly('clock').update(new Date().format('g:i:s A'));
-    },
-    interval: 1000 //1 second
-}
-Ext.TaskMgr.start(task);
-
- *

See the {@link #start} method for details about how to configure a task object.

- * @singleton - */ -Ext.TaskMgr = new Ext.util.TaskRunner();(function(){ - var libFlyweight; - - function fly(el) { - if (!libFlyweight) { - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; - } - - (function(){ - var doc = document, - isCSS1 = doc.compatMode == "CSS1Compat", - MAX = Math.max, - ROUND = Math.round, - PARSEINT = parseInt; - - Ext.lib.Dom = { - isAncestor : function(p, c) { - var ret = false; - - p = Ext.getDom(p); - c = Ext.getDom(c); - if (p && c) { - if (p.contains) { - return p.contains(c); - } else if (p.compareDocumentPosition) { - return !!(p.compareDocumentPosition(c) & 16); - } else { - while (c = c.parentNode) { - ret = c == p || ret; - } - } - } - return ret; - }, - - getViewWidth : function(full) { - return full ? this.getDocumentWidth() : this.getViewportWidth(); - }, - - getViewHeight : function(full) { - return full ? this.getDocumentHeight() : this.getViewportHeight(); - }, - - getDocumentHeight: function() { - return MAX(!isCSS1 ? doc.body.scrollHeight : doc.documentElement.scrollHeight, this.getViewportHeight()); - }, - - getDocumentWidth: function() { - return MAX(!isCSS1 ? doc.body.scrollWidth : doc.documentElement.scrollWidth, this.getViewportWidth()); - }, - - getViewportHeight: function(){ - return Ext.isIE ? - (Ext.isStrict ? doc.documentElement.clientHeight : doc.body.clientHeight) : - self.innerHeight; - }, - - getViewportWidth : function() { - return !Ext.isStrict && !Ext.isOpera ? doc.body.clientWidth : - Ext.isIE ? doc.documentElement.clientWidth : self.innerWidth; - }, - - getY : function(el) { - return this.getXY(el)[1]; - }, - - getX : function(el) { - return this.getXY(el)[0]; - }, - - getXY : function(el) { - var p, - pe, - b, - bt, - bl, - dbd, - x = 0, - y = 0, - scroll, - hasAbsolute, - bd = (doc.body || doc.documentElement), - ret = [0,0]; - - el = Ext.getDom(el); - - if(el != bd){ - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - ret = [ROUND(b.left + scroll.left), ROUND(b.top + scroll.top)]; - } else { - p = el; - hasAbsolute = fly(el).isStyle("position", "absolute"); - - while (p) { - pe = fly(p); - x += p.offsetLeft; - y += p.offsetTop; - - hasAbsolute = hasAbsolute || pe.isStyle("position", "absolute"); - - if (Ext.isGecko) { - y += bt = PARSEINT(pe.getStyle("borderTopWidth"), 10) || 0; - x += bl = PARSEINT(pe.getStyle("borderLeftWidth"), 10) || 0; - - if (p != el && !pe.isStyle('overflow','visible')) { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - dbd = fly(bd); - x += PARSEINT(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += PARSEINT(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && !fly(p).isStyle("display", "inline"))) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - ret = [x,y]; - } - } - return ret; - }, - - setXY : function(el, xy) { - (el = Ext.fly(el, '_setXY')).position(); - - var pts = el.translatePoints(xy), - style = el.dom.style, - pos; - - for (pos in pts) { - if (!isNaN(pts[pos])) { - style[pos] = pts[pos] + "px"; - } - } - }, - - setX : function(el, x) { - this.setXY(el, [x, false]); - }, - - setY : function(el, y) { - this.setXY(el, [false, y]); - } - }; -})();Ext.lib.Event = function() { - var loadComplete = false, - unloadListeners = {}, - retryCount = 0, - onAvailStack = [], - _interval, - locked = false, - win = window, - doc = document, - - // constants - POLL_RETRYS = 200, - POLL_INTERVAL = 20, - TYPE = 0, - FN = 1, - OBJ = 2, - ADJ_SCOPE = 3, - SCROLLLEFT = 'scrollLeft', - SCROLLTOP = 'scrollTop', - UNLOAD = 'unload', - MOUSEOVER = 'mouseover', - MOUSEOUT = 'mouseout', - // private - doAdd = function() { - var ret; - if (win.addEventListener) { - ret = function(el, eventName, fn, capture) { - if (eventName == 'mouseenter') { - fn = fn.createInterceptor(checkRelatedTarget); - el.addEventListener(MOUSEOVER, fn, (capture)); - } else if (eventName == 'mouseleave') { - fn = fn.createInterceptor(checkRelatedTarget); - el.addEventListener(MOUSEOUT, fn, (capture)); - } else { - el.addEventListener(eventName, fn, (capture)); - } - return fn; - }; - } else if (win.attachEvent) { - ret = function(el, eventName, fn, capture) { - el.attachEvent("on" + eventName, fn); - return fn; - }; - } else { - ret = function(){}; - } - return ret; - }(), - // private - doRemove = function(){ - var ret; - if (win.removeEventListener) { - ret = function (el, eventName, fn, capture) { - if (eventName == 'mouseenter') { - eventName = MOUSEOVER; - } else if (eventName == 'mouseleave') { - eventName = MOUSEOUT; - } - el.removeEventListener(eventName, fn, (capture)); - }; - } else if (win.detachEvent) { - ret = function (el, eventName, fn) { - el.detachEvent("on" + eventName, fn); - }; - } else { - ret = function(){}; - } - return ret; - }(); - - function checkRelatedTarget(e) { - return !elContains(e.currentTarget, pub.getRelatedTarget(e)); - } - - function elContains(parent, child) { - if(parent && parent.firstChild){ - while(child) { - if(child === parent) { - return true; - } - child = child.parentNode; - if(child && (child.nodeType != 1)) { - child = null; - } - } - } - return false; - } - - // private - function _tryPreloadAttach() { - var ret = false, - notAvail = [], - element, i, v, override, - tryAgain = !loadComplete || (retryCount > 0); - - if(!locked){ - locked = true; - - for(i = 0; i < onAvailStack.length; ++i){ - v = onAvailStack[i]; - if(v && (element = doc.getElementById(v.id))){ - if(!v.checkReady || loadComplete || element.nextSibling || (doc && doc.body)) { - override = v.override; - element = override ? (override === true ? v.obj : override) : element; - v.fn.call(element, v.obj); - onAvailStack.remove(v); - --i; - }else{ - notAvail.push(v); - } - } - } - - retryCount = (notAvail.length === 0) ? 0 : retryCount - 1; - - if (tryAgain) { - startInterval(); - } else { - clearInterval(_interval); - _interval = null; - } - ret = !(locked = false); - } - return ret; - } - - // private - function startInterval() { - if(!_interval){ - var callback = function() { - _tryPreloadAttach(); - }; - _interval = setInterval(callback, POLL_INTERVAL); - } - } - - // private - function getScroll() { - var dd = doc.documentElement, - db = doc.body; - if(dd && (dd[SCROLLTOP] || dd[SCROLLLEFT])){ - return [dd[SCROLLLEFT], dd[SCROLLTOP]]; - }else if(db){ - return [db[SCROLLLEFT], db[SCROLLTOP]]; - }else{ - return [0, 0]; - } - } - - // private - function getPageCoord (ev, xy) { - ev = ev.browserEvent || ev; - var coord = ev['page' + xy]; - if (!coord && coord !== 0) { - coord = ev['client' + xy] || 0; - - if (Ext.isIE) { - coord += getScroll()[xy == "X" ? 0 : 1]; - } - } - - return coord; - } - - var pub = { - extAdapter: true, - onAvailable : function(p_id, p_fn, p_obj, p_override) { - onAvailStack.push({ - id: p_id, - fn: p_fn, - obj: p_obj, - override: p_override, - checkReady: false }); - - retryCount = POLL_RETRYS; - startInterval(); - }, - - // This function should ALWAYS be called from Ext.EventManager - addListener: function(el, eventName, fn) { - el = Ext.getDom(el); - if (el && fn) { - if (eventName == UNLOAD) { - if (unloadListeners[el.id] === undefined) { - unloadListeners[el.id] = []; - } - unloadListeners[el.id].push([eventName, fn]); - return fn; - } - return doAdd(el, eventName, fn, false); - } - return false; - }, - - // This function should ALWAYS be called from Ext.EventManager - removeListener: function(el, eventName, fn) { - el = Ext.getDom(el); - var i, len, li, lis; - if (el && fn) { - if(eventName == UNLOAD){ - if((lis = unloadListeners[el.id]) !== undefined){ - for(i = 0, len = lis.length; i < len; i++){ - if((li = lis[i]) && li[TYPE] == eventName && li[FN] == fn){ - unloadListeners[el.id].splice(i, 1); - } - } - } - return; - } - doRemove(el, eventName, fn, false); - } - }, - - getTarget : function(ev) { - ev = ev.browserEvent || ev; - return this.resolveTextNode(ev.target || ev.srcElement); - }, - - resolveTextNode : Ext.isGecko ? function(node){ - if(!node){ - return; - } - // work around firefox bug, https://bugzilla.mozilla.org/show_bug.cgi?id=101197 - var s = HTMLElement.prototype.toString.call(node); - if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){ - return; - } - return node.nodeType == 3 ? node.parentNode : node; - } : function(node){ - return node && node.nodeType == 3 ? node.parentNode : node; - }, - - getRelatedTarget : function(ev) { - ev = ev.browserEvent || ev; - return this.resolveTextNode(ev.relatedTarget || - (/(mouseout|mouseleave)/.test(ev.type) ? ev.toElement : - /(mouseover|mouseenter)/.test(ev.type) ? ev.fromElement : null)); - }, - - getPageX : function(ev) { - return getPageCoord(ev, "X"); - }, - - getPageY : function(ev) { - return getPageCoord(ev, "Y"); - }, - - - getXY : function(ev) { - return [this.getPageX(ev), this.getPageY(ev)]; - }, - - stopEvent : function(ev) { - this.stopPropagation(ev); - this.preventDefault(ev); - }, - - stopPropagation : function(ev) { - ev = ev.browserEvent || ev; - if (ev.stopPropagation) { - ev.stopPropagation(); - } else { - ev.cancelBubble = true; - } - }, - - preventDefault : function(ev) { - ev = ev.browserEvent || ev; - if (ev.preventDefault) { - ev.preventDefault(); - } else { - if (ev.keyCode) { - ev.keyCode = 0; - } - ev.returnValue = false; - } - }, - - getEvent : function(e) { - e = e || win.event; - if (!e) { - var c = this.getEvent.caller; - while (c) { - e = c.arguments[0]; - if (e && Event == e.constructor) { - break; - } - c = c.caller; - } - } - return e; - }, - - getCharCode : function(ev) { - ev = ev.browserEvent || ev; - return ev.charCode || ev.keyCode || 0; - }, - - //clearCache: function() {}, - // deprecated, call from EventManager - getListeners : function(el, eventName) { - Ext.EventManager.getListeners(el, eventName); - }, - - // deprecated, call from EventManager - purgeElement : function(el, recurse, eventName) { - Ext.EventManager.purgeElement(el, recurse, eventName); - }, - - _load : function(e) { - loadComplete = true; - - if (Ext.isIE && e !== true) { - // IE8 complains that _load is null or not an object - // so lets remove self via arguments.callee - doRemove(win, "load", arguments.callee); - } - }, - - _unload : function(e) { - var EU = Ext.lib.Event, - i, v, ul, id, len, scope; - - for (id in unloadListeners) { - ul = unloadListeners[id]; - for (i = 0, len = ul.length; i < len; i++) { - v = ul[i]; - if (v) { - try{ - scope = v[ADJ_SCOPE] ? (v[ADJ_SCOPE] === true ? v[OBJ] : v[ADJ_SCOPE]) : win; - v[FN].call(scope, EU.getEvent(e), v[OBJ]); - }catch(ex){} - } - } - }; - - Ext.EventManager._unload(); - - doRemove(win, UNLOAD, EU._unload); - } - }; - - // Initialize stuff. - pub.on = pub.addListener; - pub.un = pub.removeListener; - if (doc && doc.body) { - pub._load(true); - } else { - doAdd(win, "load", pub._load); - } - doAdd(win, UNLOAD, pub._unload); - _tryPreloadAttach(); - - return pub; -}(); -/* -* Portions of this file are based on pieces of Yahoo User Interface Library -* Copyright (c) 2007, Yahoo! Inc. All rights reserved. -* YUI licensed under the BSD License: -* http://developer.yahoo.net/yui/license.txt -*/ -Ext.lib.Ajax = function() { - var activeX = ['Msxml2.XMLHTTP.6.0', - 'Msxml2.XMLHTTP.3.0', - 'Msxml2.XMLHTTP'], - CONTENTTYPE = 'Content-Type'; - - // private - function setHeader(o) { - var conn = o.conn, - prop, - headers = {}; - - function setTheHeaders(conn, headers){ - for (prop in headers) { - if (headers.hasOwnProperty(prop)) { - conn.setRequestHeader(prop, headers[prop]); - } - } - } - - Ext.apply(headers, pub.headers, pub.defaultHeaders); - setTheHeaders(conn, headers); - delete pub.headers; - } - - // private - function createExceptionObject(tId, callbackArg, isAbort, isTimeout) { - return { - tId : tId, - status : isAbort ? -1 : 0, - statusText : isAbort ? 'transaction aborted' : 'communication failure', - isAbort: isAbort, - isTimeout: isTimeout, - argument : callbackArg - }; - } - - // private - function initHeader(label, value) { - (pub.headers = pub.headers || {})[label] = value; - } - - // private - function createResponseObject(o, callbackArg) { - var headerObj = {}, - headerStr, - conn = o.conn, - t, - s, - // see: https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223 - isBrokenStatus = conn.status == 1223; - - try { - headerStr = o.conn.getAllResponseHeaders(); - Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){ - t = v.indexOf(':'); - if(t >= 0){ - s = v.substr(0, t).toLowerCase(); - if(v.charAt(t + 1) == ' '){ - ++t; - } - headerObj[s] = v.substr(t + 1); - } - }); - } catch(e) {} - - return { - tId : o.tId, - // Normalize the status and statusText when IE returns 1223, see the above link. - status : isBrokenStatus ? 204 : conn.status, - statusText : isBrokenStatus ? 'No Content' : conn.statusText, - getResponseHeader : function(header){return headerObj[header.toLowerCase()];}, - getAllResponseHeaders : function(){return headerStr;}, - responseText : conn.responseText, - responseXML : conn.responseXML, - argument : callbackArg - }; - } - - // private - function releaseObject(o) { - if (o.tId) { - pub.conn[o.tId] = null; - } - o.conn = null; - o = null; - } - - // private - function handleTransactionResponse(o, callback, isAbort, isTimeout) { - if (!callback) { - releaseObject(o); - return; - } - - var httpStatus, responseObject; - - try { - if (o.conn.status !== undefined && o.conn.status != 0) { - httpStatus = o.conn.status; - } - else { - httpStatus = 13030; - } - } - catch(e) { - httpStatus = 13030; - } - - if ((httpStatus >= 200 && httpStatus < 300) || (Ext.isIE && httpStatus == 1223)) { - responseObject = createResponseObject(o, callback.argument); - if (callback.success) { - if (!callback.scope) { - callback.success(responseObject); - } - else { - callback.success.apply(callback.scope, [responseObject]); - } - } - } - else { - switch (httpStatus) { - case 12002: - case 12029: - case 12030: - case 12031: - case 12152: - case 13030: - responseObject = createExceptionObject(o.tId, callback.argument, (isAbort ? isAbort : false), isTimeout); - if (callback.failure) { - if (!callback.scope) { - callback.failure(responseObject); - } - else { - callback.failure.apply(callback.scope, [responseObject]); - } - } - break; - default: - responseObject = createResponseObject(o, callback.argument); - if (callback.failure) { - if (!callback.scope) { - callback.failure(responseObject); - } - else { - callback.failure.apply(callback.scope, [responseObject]); - } - } - } - } - - releaseObject(o); - responseObject = null; - } - - function checkResponse(o, callback, conn, tId, poll, cbTimeout){ - if (conn && conn.readyState == 4) { - clearInterval(poll[tId]); - poll[tId] = null; - - if (cbTimeout) { - clearTimeout(pub.timeout[tId]); - pub.timeout[tId] = null; - } - handleTransactionResponse(o, callback); - } - } - - function checkTimeout(o, callback){ - pub.abort(o, callback, true); - } - - - // private - function handleReadyState(o, callback){ - callback = callback || {}; - var conn = o.conn, - tId = o.tId, - poll = pub.poll, - cbTimeout = callback.timeout || null; - - if (cbTimeout) { - pub.conn[tId] = conn; - pub.timeout[tId] = setTimeout(checkTimeout.createCallback(o, callback), cbTimeout); - } - poll[tId] = setInterval(checkResponse.createCallback(o, callback, conn, tId, poll, cbTimeout), pub.pollInterval); - } - - // private - function asyncRequest(method, uri, callback, postData) { - var o = getConnectionObject() || null; - - if (o) { - o.conn.open(method, uri, true); - - if (pub.useDefaultXhrHeader) { - initHeader('X-Requested-With', pub.defaultXhrHeader); - } - - if(postData && pub.useDefaultHeader && (!pub.headers || !pub.headers[CONTENTTYPE])){ - initHeader(CONTENTTYPE, pub.defaultPostHeader); - } - - if (pub.defaultHeaders || pub.headers) { - setHeader(o); - } - - handleReadyState(o, callback); - o.conn.send(postData || null); - } - return o; - } - - // private - function getConnectionObject() { - var o; - - try { - if (o = createXhrObject(pub.transactionId)) { - pub.transactionId++; - } - } catch(e) { - } finally { - return o; - } - } - - // private - function createXhrObject(transactionId) { - var http; - - try { - http = new XMLHttpRequest(); - } catch(e) { - for (var i = Ext.isIE6 ? 1 : 0; i < activeX.length; ++i) { - try { - http = new ActiveXObject(activeX[i]); - break; - } catch(e) {} - } - } finally { - return {conn : http, tId : transactionId}; - } - } - - var pub = { - request : function(method, uri, cb, data, options) { - if(options){ - var me = this, - xmlData = options.xmlData, - jsonData = options.jsonData, - hs; - - Ext.applyIf(me, options); - - if(xmlData || jsonData){ - hs = me.headers; - if(!hs || !hs[CONTENTTYPE]){ - initHeader(CONTENTTYPE, xmlData ? 'text/xml' : 'application/json'); - } - data = xmlData || (!Ext.isPrimitive(jsonData) ? Ext.encode(jsonData) : jsonData); - } - } - return asyncRequest(method || options.method || "POST", uri, cb, data); - }, - - serializeForm : function(form) { - var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, - hasSubmit = false, - encoder = encodeURIComponent, - name, - data = '', - type, - hasValue; - - Ext.each(fElements, function(element){ - name = element.name; - type = element.type; - - if (!element.disabled && name) { - if (/select-(one|multiple)/i.test(type)) { - Ext.each(element.options, function(opt){ - if (opt.selected) { - hasValue = opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified; - data += String.format("{0}={1}&", encoder(name), encoder(hasValue ? opt.value : opt.text)); - } - }); - } else if (!(/file|undefined|reset|button/i.test(type))) { - if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) { - data += encoder(name) + '=' + encoder(element.value) + '&'; - hasSubmit = /submit/i.test(type); - } - } - } - }); - return data.substr(0, data.length - 1); - }, - - useDefaultHeader : true, - defaultPostHeader : 'application/x-www-form-urlencoded; charset=UTF-8', - useDefaultXhrHeader : true, - defaultXhrHeader : 'XMLHttpRequest', - poll : {}, - timeout : {}, - conn: {}, - pollInterval : 50, - transactionId : 0, - -// This is never called - Is it worth exposing this? -// setProgId : function(id) { -// activeX.unshift(id); -// }, - -// This is never called - Is it worth exposing this? -// setDefaultPostHeader : function(b) { -// this.useDefaultHeader = b; -// }, - -// This is never called - Is it worth exposing this? -// setDefaultXhrHeader : function(b) { -// this.useDefaultXhrHeader = b; -// }, - -// This is never called - Is it worth exposing this? -// setPollingInterval : function(i) { -// if (typeof i == 'number' && isFinite(i)) { -// this.pollInterval = i; -// } -// }, - -// This is never called - Is it worth exposing this? -// resetDefaultHeaders : function() { -// this.defaultHeaders = null; -// }, - - abort : function(o, callback, isTimeout) { - var me = this, - tId = o.tId, - isAbort = false; - - if (me.isCallInProgress(o)) { - o.conn.abort(); - clearInterval(me.poll[tId]); - me.poll[tId] = null; - clearTimeout(pub.timeout[tId]); - me.timeout[tId] = null; - - handleTransactionResponse(o, callback, (isAbort = true), isTimeout); - } - return isAbort; - }, - - isCallInProgress : function(o) { - // if there is a connection and readyState is not 0 or 4 - return o.conn && !{0:true,4:true}[o.conn.readyState]; - } - }; - return pub; -}();(function(){ - var EXTLIB = Ext.lib, - noNegatives = /width|height|opacity|padding/i, - offsetAttribute = /^((width|height)|(top|left))$/, - defaultUnit = /width|height|top$|bottom$|left$|right$/i, - offsetUnit = /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i, - isset = function(v){ - return typeof v !== 'undefined'; - }, - now = function(){ - return new Date(); - }; - - EXTLIB.Anim = { - motion : function(el, args, duration, easing, cb, scope) { - return this.run(el, args, duration, easing, cb, scope, Ext.lib.Motion); - }, - - run : function(el, args, duration, easing, cb, scope, type) { - type = type || Ext.lib.AnimBase; - if (typeof easing == "string") { - easing = Ext.lib.Easing[easing]; - } - var anim = new type(el, args, duration, easing); - anim.animateX(function() { - if(Ext.isFunction(cb)){ - cb.call(scope); - } - }); - return anim; - } - }; - - EXTLIB.AnimBase = function(el, attributes, duration, method) { - if (el) { - this.init(el, attributes, duration, method); - } - }; - - EXTLIB.AnimBase.prototype = { - doMethod: function(attr, start, end) { - var me = this; - return me.method(me.curFrame, start, end - start, me.totalFrames); - }, - - - setAttr: function(attr, val, unit) { - if (noNegatives.test(attr) && val < 0) { - val = 0; - } - Ext.fly(this.el, '_anim').setStyle(attr, val + unit); - }, - - - getAttr: function(attr) { - var el = Ext.fly(this.el), - val = el.getStyle(attr), - a = offsetAttribute.exec(attr) || []; - - if (val !== 'auto' && !offsetUnit.test(val)) { - return parseFloat(val); - } - - return (!!(a[2]) || (el.getStyle('position') == 'absolute' && !!(a[3]))) ? el.dom['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)] : 0; - }, - - - getDefaultUnit: function(attr) { - return defaultUnit.test(attr) ? 'px' : ''; - }, - - animateX : function(callback, scope) { - var me = this, - f = function() { - me.onComplete.removeListener(f); - if (Ext.isFunction(callback)) { - callback.call(scope || me, me); - } - }; - me.onComplete.addListener(f, me); - me.animate(); - }, - - - setRunAttr: function(attr) { - var me = this, - a = this.attributes[attr], - to = a.to, - by = a.by, - from = a.from, - unit = a.unit, - ra = (this.runAttrs[attr] = {}), - end; - - if (!isset(to) && !isset(by)){ - return false; - } - - var start = isset(from) ? from : me.getAttr(attr); - if (isset(to)) { - end = to; - }else if(isset(by)) { - if (Ext.isArray(start)){ - end = []; - for(var i=0,len=start.length; i 0 && isFinite(tweak)){ - if(tween.curFrame + tweak >= frames){ - tweak = frames - (frame + 1); - } - tween.curFrame += tweak; - } - }; - }; - - EXTLIB.Bezier = new function() { - - this.getPosition = function(points, t) { - var n = points.length, - tmp = [], - c = 1 - t, - i, - j; - - for (i = 0; i < n; ++i) { - tmp[i] = [points[i][0], points[i][1]]; - } - - for (j = 1; j < n; ++j) { - for (i = 0; i < n - j; ++i) { - tmp[i][0] = c * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0]; - tmp[i][1] = c * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; - } - } - - return [ tmp[0][0], tmp[0][1] ]; - - }; - }; - - - EXTLIB.Easing = { - easeNone: function (t, b, c, d) { - return c * t / d + b; - }, - - - easeIn: function (t, b, c, d) { - return c * (t /= d) * t + b; - }, - - - easeOut: function (t, b, c, d) { - return -c * (t /= d) * (t - 2) + b; - } - }; - - (function() { - EXTLIB.Motion = function(el, attributes, duration, method) { - if (el) { - EXTLIB.Motion.superclass.constructor.call(this, el, attributes, duration, method); - } - }; - - Ext.extend(EXTLIB.Motion, Ext.lib.AnimBase); - - var superclass = EXTLIB.Motion.superclass, - pointsRe = /^points$/i; - - Ext.apply(EXTLIB.Motion.prototype, { - setAttr: function(attr, val, unit){ - var me = this, - setAttr = superclass.setAttr; - - if (pointsRe.test(attr)) { - unit = unit || 'px'; - setAttr.call(me, 'left', val[0], unit); - setAttr.call(me, 'top', val[1], unit); - } else { - setAttr.call(me, attr, val, unit); - } - }, - - getAttr: function(attr){ - var me = this, - getAttr = superclass.getAttr; - - return pointsRe.test(attr) ? [getAttr.call(me, 'left'), getAttr.call(me, 'top')] : getAttr.call(me, attr); - }, - - doMethod: function(attr, start, end){ - var me = this; - - return pointsRe.test(attr) - ? EXTLIB.Bezier.getPosition(me.runAttrs[attr], me.method(me.curFrame, 0, 100, me.totalFrames) / 100) - : superclass.doMethod.call(me, attr, start, end); - }, - - setRunAttr: function(attr){ - if(pointsRe.test(attr)){ - - var me = this, - el = this.el, - points = this.attributes.points, - control = points.control || [], - from = points.from, - to = points.to, - by = points.by, - DOM = EXTLIB.Dom, - start, - i, - end, - len, - ra; - - - if(control.length > 0 && !Ext.isArray(control[0])){ - control = [control]; - }else{ - /* - var tmp = []; - for (i = 0,len = control.length; i < len; ++i) { - tmp[i] = control[i]; - } - control = tmp; - */ - } - - Ext.fly(el, '_anim').position(); - DOM.setXY(el, isset(from) ? from : DOM.getXY(el)); - start = me.getAttr('points'); - - - if(isset(to)){ - end = translateValues.call(me, to, start); - for (i = 0,len = control.length; i < len; ++i) { - control[i] = translateValues.call(me, control[i], start); - } - } else if (isset(by)) { - end = [start[0] + by[0], start[1] + by[1]]; - - for (i = 0,len = control.length; i < len; ++i) { - control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ]; - } - } - - ra = this.runAttrs[attr] = [start]; - if (control.length > 0) { - ra = ra.concat(control); - } - - ra[ra.length] = end; - }else{ - superclass.setRunAttr.call(this, attr); - } - } - }); - - var translateValues = function(val, start) { - var pageXY = EXTLIB.Dom.getXY(this.el); - return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]]; - }; - })(); -})();// Easing functions -(function(){ - // shortcuts to aid compression - var abs = Math.abs, - pi = Math.PI, - asin = Math.asin, - pow = Math.pow, - sin = Math.sin, - EXTLIB = Ext.lib; - - Ext.apply(EXTLIB.Easing, { - - easeBoth: function (t, b, c, d) { - return ((t /= d / 2) < 1) ? c / 2 * t * t + b : -c / 2 * ((--t) * (t - 2) - 1) + b; - }, - - easeInStrong: function (t, b, c, d) { - return c * (t /= d) * t * t * t + b; - }, - - easeOutStrong: function (t, b, c, d) { - return -c * ((t = t / d - 1) * t * t * t - 1) + b; - }, - - easeBothStrong: function (t, b, c, d) { - return ((t /= d / 2) < 1) ? c / 2 * t * t * t * t + b : -c / 2 * ((t -= 2) * t * t * t - 2) + b; - }, - - elasticIn: function (t, b, c, d, a, p) { - if (t == 0 || (t /= d) == 1) { - return t == 0 ? b : b + c; - } - p = p || (d * .3); - - var s; - if (a >= abs(c)) { - s = p / (2 * pi) * asin(c / a); - } else { - a = c; - s = p / 4; - } - - return -(a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b; - - }, - - elasticOut: function (t, b, c, d, a, p) { - if (t == 0 || (t /= d) == 1) { - return t == 0 ? b : b + c; - } - p = p || (d * .3); - - var s; - if (a >= abs(c)) { - s = p / (2 * pi) * asin(c / a); - } else { - a = c; - s = p / 4; - } - - return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b; - }, - - elasticBoth: function (t, b, c, d, a, p) { - if (t == 0 || (t /= d / 2) == 2) { - return t == 0 ? b : b + c; - } - - p = p || (d * (.3 * 1.5)); - - var s; - if (a >= abs(c)) { - s = p / (2 * pi) * asin(c / a); - } else { - a = c; - s = p / 4; - } - - return t < 1 ? - -.5 * (a * pow(2, 10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p)) + b : - a * pow(2, -10 * (t -= 1)) * sin((t * d - s) * (2 * pi) / p) * .5 + c + b; - }, - - backIn: function (t, b, c, d, s) { - s = s || 1.70158; - return c * (t /= d) * t * ((s + 1) * t - s) + b; - }, - - - backOut: function (t, b, c, d, s) { - if (!s) { - s = 1.70158; - } - return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; - }, - - - backBoth: function (t, b, c, d, s) { - s = s || 1.70158; - - return ((t /= d / 2 ) < 1) ? - c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b : - c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b; - }, - - - bounceIn: function (t, b, c, d) { - return c - EXTLIB.Easing.bounceOut(d - t, 0, c, d) + b; - }, - - - bounceOut: function (t, b, c, d) { - if ((t /= d) < (1 / 2.75)) { - return c * (7.5625 * t * t) + b; - } else if (t < (2 / 2.75)) { - return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b; - } else if (t < (2.5 / 2.75)) { - return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b; - } - return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b; - }, - - - bounceBoth: function (t, b, c, d) { - return (t < d / 2) ? - EXTLIB.Easing.bounceIn(t * 2, 0, c, d) * .5 + b : - EXTLIB.Easing.bounceOut(t * 2 - d, 0, c, d) * .5 + c * .5 + b; - } - }); -})(); - -(function() { - var EXTLIB = Ext.lib; - // Color Animation - EXTLIB.Anim.color = function(el, args, duration, easing, cb, scope) { - return EXTLIB.Anim.run(el, args, duration, easing, cb, scope, EXTLIB.ColorAnim); - }; - - EXTLIB.ColorAnim = function(el, attributes, duration, method) { - EXTLIB.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method); - }; - - Ext.extend(EXTLIB.ColorAnim, EXTLIB.AnimBase); - - var superclass = EXTLIB.ColorAnim.superclass, - colorRE = /color$/i, - transparentRE = /^transparent|rgba\(0, 0, 0, 0\)$/, - rgbRE = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i, - hexRE= /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i, - hex3RE = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i, - isset = function(v){ - return typeof v !== 'undefined'; - }; - - // private - function parseColor(s) { - var pi = parseInt, - base, - out = null, - c; - - if (s.length == 3) { - return s; - } - - Ext.each([hexRE, rgbRE, hex3RE], function(re, idx){ - base = (idx % 2 == 0) ? 16 : 10; - c = re.exec(s); - if(c && c.length == 4){ - out = [pi(c[1], base), pi(c[2], base), pi(c[3], base)]; - return false; - } - }); - return out; - } - - Ext.apply(EXTLIB.ColorAnim.prototype, { - getAttr : function(attr) { - var me = this, - el = me.el, - val; - if(colorRE.test(attr)){ - while(el && transparentRE.test(val = Ext.fly(el).getStyle(attr))){ - el = el.parentNode; - val = "fff"; - } - }else{ - val = superclass.getAttr.call(me, attr); - } - return val; - }, - - doMethod : function(attr, start, end) { - var me = this, - val, - floor = Math.floor, - i, - len, - v; - - if(colorRE.test(attr)){ - val = []; - end = end || []; - - for(i = 0, len = start.length; i < len; i++) { - v = start[i]; - val[i] = superclass.doMethod.call(me, attr, v, end[i]); - } - val = 'rgb(' + floor(val[0]) + ',' + floor(val[1]) + ',' + floor(val[2]) + ')'; - }else{ - val = superclass.doMethod.call(me, attr, start, end); - } - return val; - }, - - setRunAttr : function(attr) { - var me = this, - a = me.attributes[attr], - to = a.to, - by = a.by, - ra; - - superclass.setRunAttr.call(me, attr); - ra = me.runAttrs[attr]; - if(colorRE.test(attr)){ - var start = parseColor(ra.start), - end = parseColor(ra.end); - - if(!isset(to) && isset(by)){ - end = parseColor(by); - for(var i=0,len=start.length; i0){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(;c0){for(var p=0;p0);if(!A){A=true;for(I=0;I=0){B=s.substr(0,A).toLowerCase();if(s.charAt(A+1)==" "){++A}C[B]=s.substr(A+1)}})}catch(z){}return{tId:u.tId,status:v?204:w.status,statusText:v?"No Content":w.statusText,getResponseHeader:function(s){return C[s.toLowerCase()]},getAllResponseHeaders:function(){return x},responseText:w.responseText,responseXML:w.responseXML,argument:y}}function o(s){if(s.tId){k.conn[s.tId]=null}s.conn=null;s=null}function f(x,y,t,s){if(!y){o(x);return}var v,u;try{if(x.conn.status!==undefined&&x.conn.status!=0){v=x.conn.status}else{v=13030}}catch(w){v=13030}if((v>=200&&v<300)||(Ext.isIE&&v==1223)){u=p(x,y.argument);if(y.success){if(!y.scope){y.success(u)}else{y.success.apply(y.scope,[u])}}}else{switch(v){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:u=e(x.tId,y.argument,(t?t:false),s);if(y.failure){if(!y.scope){y.failure(u)}else{y.failure.apply(y.scope,[u])}}break;default:u=p(x,y.argument);if(y.failure){if(!y.scope){y.failure(u)}else{y.failure.apply(y.scope,[u])}}}}o(x);u=null}function m(u,x,s,w,t,v){if(s&&s.readyState==4){clearInterval(t[w]);t[w]=null;if(v){clearTimeout(k.timeout[w]);k.timeout[w]=null}f(u,x)}}function r(s,t){k.abort(s,t,true)}function n(u,x){x=x||{};var s=u.conn,w=u.tId,t=k.poll,v=x.timeout||null;if(v){k.conn[w]=s;k.timeout[w]=setTimeout(r.createCallback(u,x),v)}t[w]=setInterval(m.createCallback(u,x,s,w,t,v),k.pollInterval)}function i(w,t,v,s){var u=l()||null;if(u){u.conn.open(w,t,true);if(k.useDefaultXhrHeader){j("X-Requested-With",k.defaultXhrHeader)}if(s&&k.useDefaultHeader&&(!k.headers||!k.headers[d])){j(d,k.defaultPostHeader)}if(k.defaultHeaders||k.headers){h(u)}n(u,v);u.conn.send(s||null)}return u}function l(){var t;try{if(t=q(k.transactionId)){k.transactionId++}}catch(s){}finally{return t}}function q(v){var s;try{s=new XMLHttpRequest()}catch(u){for(var t=Ext.isIE6?1:0;t0&&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(s[0])){s=[s]}else{}Ext.fly(p,"_anim").position();A.setXY(p,j(x)?x:A.getXY(p));o=w.getAttr("points");if(j(y)){q=k.call(w,y,o);for(r=0,t=s.length;r0){n=n.concat(s)}n[n.length]=q}else{m.setRunAttr.call(this,u)}}});var k=function(n,p){var o=g.Dom.getXY(this.el);return[n[0]-o[0]+p[0],n[1]-o[1]+p[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'about:blank', except for IE in secure mode, which is 'javascript:""'). - * @type String - */ - SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', - /** - * True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode - * @type Boolean - */ - isStrict : isStrict, - /** - * True if the page is running over SSL - * @type Boolean - */ - isSecure : isSecure, - /** - * True when the document is fully initialized and ready for action - * @type Boolean - */ - isReady : false, - - /** - * True if the {@link Ext.Fx} Class is available - * @type Boolean - * @property enableFx - */ - - /** - * HIGHLY EXPERIMENTAL - * True to force css based border-box model override and turning off javascript based adjustments. This is a - * runtime configuration and must be set before onReady. - * @type Boolean - */ - enableForcedBoxModel : false, - - /** - * True to automatically uncache orphaned Ext.Elements periodically (defaults to true) - * @type Boolean - */ - enableGarbageCollector : true, - - /** - * True to automatically purge event listeners during garbageCollection (defaults to false). - * @type Boolean - */ - enableListenerCollection : false, - - /** - * EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed. - * Currently not optimized for performance. - * @type Boolean - */ - enableNestedListenerRemoval : false, - - /** - * Indicates whether to use native browser parsing for JSON methods. - * This option is ignored if the browser does not support native JSON methods. - * Note: Native JSON methods will not work with objects that have functions. - * Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) - * @type Boolean - */ - USE_NATIVE_JSON : false, - - /** - * Copies all the properties of config to obj if they don't already exist. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @return {Object} returns obj - */ - applyIf : function(o, c){ - if(o){ - for(var p in c){ - if(!Ext.isDefined(o[p])){ - o[p] = c[p]; - } - } - } - return o; - }, - - /** - * Generates unique ids. If the element already has an id, it is unchanged - * @param {Mixed} el (optional) The element to generate an id for - * @param {String} prefix (optional) Id prefix (defaults "ext-gen") - * @return {String} The generated Id. - */ - id : function(el, prefix){ - el = Ext.getDom(el, true) || {}; - if (!el.id) { - el.id = (prefix || "ext-gen") + (++idSeed); - } - return el.id; - }, - - /** - *

Extends one class to create a subclass and optionally overrides members with the passed literal. This method - * also adds the function "override()" to the subclass that can be used to override members of the class.

- * For example, to create a subclass of Ext GridPanel: - *

-MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
-    constructor: function(config) {
-
-//      Create configuration for this Grid.
-        var store = new Ext.data.Store({...});
-        var colModel = new Ext.grid.ColumnModel({...});
-
-//      Create a new config object containing our computed properties
-//      *plus* whatever was in the config parameter.
-        config = Ext.apply({
-            store: store,
-            colModel: colModel
-        }, config);
-
-        MyGridPanel.superclass.constructor.call(this, config);
-
-//      Your postprocessing here
-    },
-
-    yourMethod: function() {
-        // etc.
-    }
-});
-
- * - *

This function also supports a 3-argument call in which the subclass's constructor is - * passed as an argument. In this form, the parameters are as follows:

- *
    - *
  • subclass : Function
    The subclass constructor.
  • - *
  • superclass : Function
    The constructor of class being extended
  • - *
  • overrides : Object
    A literal with members which are copied into the subclass's - * prototype, and are therefore shared among all instances of the new class.
  • - *
- * - * @param {Function} superclass The constructor of class being extended. - * @param {Object} overrides

A literal with members which are copied into the subclass's - * prototype, and are therefore shared between all instances of the new class.

- *

This may contain a special member named constructor. This is used - * to define the constructor of the new class, and is returned. If this property is - * not specified, a constructor is generated and returned which just calls the - * superclass's constructor passing on its parameters.

- *

It is essential that you call the superclass constructor in any provided constructor. See example code.

- * @return {Function} The subclass constructor from the overrides parameter, or a generated one if not provided. - */ - extend : function(){ - // inline overrides - var io = function(o){ - for(var m in o){ - this[m] = o[m]; - } - }; - var oc = Object.prototype.constructor; - - return function(sb, sp, overrides){ - if(typeof sp == 'object'){ - overrides = sp; - sp = sb; - sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);}; - } - var F = function(){}, - sbp, - spp = sp.prototype; - - F.prototype = spp; - sbp = sb.prototype = new F(); - sbp.constructor=sb; - sb.superclass=spp; - if(spp.constructor == oc){ - spp.constructor=sp; - } - sb.override = function(o){ - Ext.override(sb, o); - }; - sbp.superclass = sbp.supr = (function(){ - return spp; - }); - sbp.override = io; - Ext.override(sb, overrides); - sb.extend = function(o){return Ext.extend(sb, o);}; - return sb; - }; - }(), - - /** - * Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name. - * Usage:

-Ext.override(MyClass, {
-    newMethod1: function(){
-        // etc.
-    },
-    newMethod2: function(foo){
-        // etc.
-    }
-});
-
- * @param {Object} origclass The class to override - * @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal - * containing one or more methods. - * @method override - */ - override : function(origclass, overrides){ - if(overrides){ - var p = origclass.prototype; - Ext.apply(p, overrides); - if(Ext.isIE && overrides.hasOwnProperty('toString')){ - p.toString = overrides.toString; - } - } - }, - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method namespace - */ - namespace : function(){ - var len1 = arguments.length, - i = 0, - len2, - j, - main, - ns, - sub, - current; - - for(; i < len1; ++i) { - main = arguments[i]; - ns = arguments[i].split('.'); - current = window[ns[0]]; - if (current === undefined) { - current = window[ns[0]] = {}; - } - sub = ns.slice(1); - len2 = sub.length; - for(j = 0; j < len2; ++j) { - current = current[sub[j]] = current[sub[j]] || {}; - } - } - return current; - }, - - /** - * Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. - * @param {Object} o - * @param {String} pre (optional) A prefix to add to the url encoded string - * @return {String} - */ - urlEncode : function(o, pre){ - var empty, - buf = [], - e = encodeURIComponent; - - Ext.iterate(o, function(key, item){ - empty = Ext.isEmpty(item); - Ext.each(empty ? key : item, function(val){ - buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : ''); - }); - }); - if(!pre){ - buf.shift(); - pre = ''; - } - return pre + buf.join(''); - }, - - /** - * Takes an encoded URL and and converts it to an object. Example:

-Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
-Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
-
- * @param {String} string - * @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false). - * @return {Object} A literal with members - */ - urlDecode : function(string, overwrite){ - if(Ext.isEmpty(string)){ - return {}; - } - var obj = {}, - pairs = string.split('&'), - d = decodeURIComponent, - name, - value; - Ext.each(pairs, function(pair) { - pair = pair.split('='); - name = d(pair[0]); - value = d(pair[1]); - obj[name] = overwrite || !obj[name] ? value : - [].concat(obj[name]).concat(value); - }); - return obj; - }, - - /** - * Appends content to the query string of a URL, handling logic for whether to place - * a question mark or ampersand. - * @param {String} url The URL to append to. - * @param {String} s The content to append to the URL. - * @return (String) The resulting URL - */ - urlAppend : function(url, s){ - if(!Ext.isEmpty(s)){ - return url + (url.indexOf('?') === -1 ? '?' : '&') + s; - } - return url; - }, - - /** - * Converts any iterable (numeric indices and a length property) into a true array - * Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on. - * For strings, use this instead: "abc".match(/./g) => [a,b,c]; - * @param {Iterable} the iterable object to be turned into a true Array. - * @return (Array) array - */ - toArray : function(){ - return isIE ? - function(a, i, j, res){ - res = []; - for(var x = 0, len = a.length; x < len; x++) { - res.push(a[x]); - } - return res.slice(i || 0, j || res.length); - } : - function(a, i, j){ - return Array.prototype.slice.call(a, i || 0, j || a.length); - }; - }(), - - isIterable : function(v){ - //check for array or arguments - if(Ext.isArray(v) || v.callee){ - return true; - } - //check for node list type - if(/NodeList|HTMLCollection/.test(toString.call(v))){ - return true; - } - //NodeList has an item and length property - //IXMLDOMNodeList has nextNode method, needs to be checked first. - return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length)); - }, - - /** - * Iterates an array calling the supplied function. - * @param {Array/NodeList/Mixed} array The array to be iterated. If this - * argument is not really an array, the supplied function is called once. - * @param {Function} fn The function to be called with each item. If the - * supplied function returns false, iteration stops and this method returns - * the current index. This function is called with - * the following arguments: - *
    - *
  • item : Mixed - *
    The item at the current index - * in the passed array
  • - *
  • index : Number - *
    The current index within the array
  • - *
  • allItems : Array - *
    The array passed as the first - * argument to Ext.each.
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. - * Defaults to the item at the current index - * within the passed array. - * @return See description for the fn parameter. - */ - each : function(array, fn, scope){ - if(Ext.isEmpty(array, true)){ - return; - } - if(!Ext.isIterable(array) || Ext.isPrimitive(array)){ - array = [array]; - } - for(var i = 0, len = array.length; i < len; i++){ - if(fn.call(scope || array[i], array[i], i, array) === false){ - return i; - }; - } - }, - - /** - * Iterates either the elements in an array, or each of the properties in an object. - * Note: If you are only iterating arrays, it is better to call {@link #each}. - * @param {Object/Array} object The object or array to be iterated - * @param {Function} fn The function to be called for each iteration. - * The iteration will stop if the supplied function returns false, or - * all array elements / object properties have been covered. The signature - * varies depending on the type of object being interated: - *
    - *
  • Arrays : (Object item, Number index, Array allItems) - *
    - * When iterating an array, the supplied function is called with each item.
  • - *
  • Objects : (String key, Object value, Object) - *
    - * When iterating an object, the supplied function is called with each key-value pair in - * the object, and the iterated object
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. Defaults to - * the object being iterated. - */ - iterate : function(obj, fn, scope){ - if(Ext.isEmpty(obj)){ - return; - } - if(Ext.isIterable(obj)){ - Ext.each(obj, fn, scope); - return; - }else if(typeof obj == 'object'){ - for(var prop in obj){ - if(obj.hasOwnProperty(prop)){ - if(fn.call(scope || obj, prop, obj[prop], obj) === false){ - return; - }; - } - } - } - }, - - /** - * Return the dom node for the passed String (id), dom node, or Ext.Element. - * Optional 'strict' flag is needed for IE since it can return 'name' and - * 'id' elements by using getElementById. - * Here are some examples: - *

-// gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
-    var dom = Ext.getDom(el);
-    // do something with the dom node
-}
-         * 
- * Note: the dom node to be found actually needs to exist (be rendered, etc) - * when this method is called to be successful. - * @param {Mixed} el - * @return HTMLElement - */ - getDom : function(el, strict){ - if(!el || !DOC){ - return null; - } - if (el.dom){ - return el.dom; - } else { - if (typeof el == 'string') { - var e = DOC.getElementById(el); - // IE returns elements with the 'name' and 'id' attribute. - // we do a strict check to return the element with only the id attribute - if (e && isIE && strict) { - if (el == e.getAttribute('id')) { - return e; - } else { - return null; - } - } - return e; - } else { - return el; - } - } - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getBody : function(){ - return Ext.get(DOC.body || DOC.documentElement); - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getHead : function() { - var head; - - return function() { - if (head == undefined) { - head = Ext.get(DOC.getElementsByTagName("head")[0]); - } - - return head; - }; - }(), - - /** - * Removes a DOM node from the document. - */ - /** - *

Removes this element from the document, removes all DOM event listeners, and deletes the cache reference. - * All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is - * true, then DOM event listeners are also removed from all child nodes. The body node - * will be ignored if passed in.

- * @param {HTMLElement} node The node to remove - */ - removeNode : isIE && !isIE8 ? function(){ - var d; - return function(n){ - if(n && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - d = d || DOC.createElement('div'); - d.appendChild(n); - d.innerHTML = ''; - delete Ext.elCache[n.id]; - } - }; - }() : function(n){ - if(n && n.parentNode && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - n.parentNode.removeChild(n); - delete Ext.elCache[n.id]; - } - }, - - /** - *

Returns true if the passed value is empty.

- *

The value is deemed to be empty if it is

    - *
  • null
  • - *
  • undefined
  • - *
  • an empty array
  • - *
  • a zero length string (Unless the allowBlank parameter is true)
  • - *
- * @param {Mixed} value The value to test - * @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false) - * @return {Boolean} - */ - isEmpty : function(v, allowBlank){ - return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false); - }, - - /** - * Returns true if the passed value is a JavaScript array, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isArray : function(v){ - return toString.apply(v) === '[object Array]'; - }, - - /** - * Returns true if the passed object is a JavaScript date object, otherwise false. - * @param {Object} object The object to test - * @return {Boolean} - */ - isDate : function(v){ - return toString.apply(v) === '[object Date]'; - }, - - /** - * Returns true if the passed value is a JavaScript Object, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isObject : function(v){ - return !!v && Object.prototype.toString.call(v) === '[object Object]'; - }, - - /** - * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isPrimitive : function(v){ - return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v); - }, - - /** - * Returns true if the passed value is a JavaScript Function, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isFunction : function(v){ - return toString.apply(v) === '[object Function]'; - }, - - /** - * Returns true if the passed value is a number. Returns false for non-finite numbers. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isNumber : function(v){ - return typeof v === 'number' && isFinite(v); - }, - - /** - * Returns true if the passed value is a string. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isString : function(v){ - return typeof v === 'string'; - }, - - /** - * Returns true if the passed value is a boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isBoolean : function(v){ - return typeof v === 'boolean'; - }, - - /** - * Returns true if the passed value is an HTMLElement - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isElement : function(v) { - return v ? !!v.tagName : false; - }, - - /** - * Returns true if the passed value is not undefined. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isDefined : function(v){ - return typeof v !== 'undefined'; - }, - - /** - * True if the detected browser is Opera. - * @type Boolean - */ - isOpera : isOpera, - /** - * True if the detected browser uses WebKit. - * @type Boolean - */ - isWebKit : isWebKit, - /** - * True if the detected browser is Chrome. - * @type Boolean - */ - isChrome : isChrome, - /** - * True if the detected browser is Safari. - * @type Boolean - */ - isSafari : isSafari, - /** - * True if the detected browser is Safari 3.x. - * @type Boolean - */ - isSafari3 : isSafari3, - /** - * True if the detected browser is Safari 4.x. - * @type Boolean - */ - isSafari4 : isSafari4, - /** - * True if the detected browser is Safari 2.x. - * @type Boolean - */ - isSafari2 : isSafari2, - /** - * True if the detected browser is Internet Explorer. - * @type Boolean - */ - isIE : isIE, - /** - * True if the detected browser is Internet Explorer 6.x. - * @type Boolean - */ - isIE6 : isIE6, - /** - * True if the detected browser is Internet Explorer 7.x. - * @type Boolean - */ - isIE7 : isIE7, - /** - * True if the detected browser is Internet Explorer 8.x. - * @type Boolean - */ - isIE8 : isIE8, - /** - * True if the detected browser is Internet Explorer 9.x. - * @type Boolean - */ - isIE9 : isIE9, - /** - * True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). - * @type Boolean - */ - isGecko : isGecko, - /** - * True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). - * @type Boolean - */ - isGecko2 : isGecko2, - /** - * True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). - * @type Boolean - */ - isGecko3 : isGecko3, - /** - * True if the detected browser is Internet Explorer running in non-strict mode. - * @type Boolean - */ - isBorderBox : isBorderBox, - /** - * True if the detected platform is Linux. - * @type Boolean - */ - isLinux : isLinux, - /** - * True if the detected platform is Windows. - * @type Boolean - */ - isWindows : isWindows, - /** - * True if the detected platform is Mac OS. - * @type Boolean - */ - isMac : isMac, - /** - * True if the detected platform is Adobe Air. - * @type Boolean - */ - isAir : isAir - }); - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method ns - */ - Ext.ns = Ext.namespace; -})(); - -Ext.ns('Ext.util', 'Ext.lib', 'Ext.data', 'Ext.supports'); - -Ext.elCache = {}; - -/** - * @class Function - * These functions are available on every Function object (any JavaScript function). - */ -Ext.apply(Function.prototype, { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-sayHi('Fred'); // alerts "Hi, Fred"
-
-// create a new function that validates input without
-// directly modifying the original function:
-var sayHiToFriend = sayHi.createInterceptor(function(name){
-    return name == 'Brian';
-});
-
-sayHiToFriend('Fred');  // no alert
-sayHiToFriend('Brian'); // alerts "Hi, Brian"
-
- * @param {Function} fcn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor : function(fcn, scope){ - var method = this; - return !Ext.isFunction(fcn) ? - this : - function() { - var me = this, - args = arguments; - fcn.target = me; - fcn.method = method; - return (fcn.apply(scope || me || window, args) !== false) ? - method.apply(me || window, args) : - null; - }; - }, - - /** - * Creates a callback that passes arguments[0], arguments[1], arguments[2], ... - * Call directly on any function. Example: myFunction.createCallback(arg1, arg2) - * Will create a function that is bound to those 2 args. If a specific scope is required in the - * callback, use {@link #createDelegate} instead. The function returned by createCallback always - * executes in the window scope. - *

This method is required when you want to pass arguments to a callback function. If no arguments - * are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn). - * However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function - * would simply execute immediately when the code is parsed. Example usage: - *


-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// clicking the button alerts "Hi, Fred"
-new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody(),
-    handler: sayHi.createCallback('Fred')
-});
-
- * @return {Function} The new function - */ - createCallback : function(/*args...*/){ - // make args available, in function below - var args = arguments, - method = this; - return function() { - return method.apply(window, args); - }; - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: this.myFunction.createDelegate(this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *

-var sayHi = function(name){
-    // Note this use of "this.text" here.  This function expects to
-    // execute within a scope that contains a text property.  In this
-    // example, the "this" variable is pointing to the btn object that
-    // was passed in createDelegate below.
-    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
-}
-
-var btn = new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody()
-});
-
-// This callback will execute in the scope of the
-// button instance. Clicking the button alerts
-// "Hi, Fred. You clicked the "Say Hi" button."
-btn.on('click', sayHi.createDelegate(btn, ['Fred']));
-
- * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate : function(obj, args, appendArgs){ - var method = this; - return function() { - var callArgs = args || arguments; - if (appendArgs === true){ - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - }else if (Ext.isNumber(appendArgs)){ - callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); // splice them in - } - return method.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// executes immediately:
-sayHi('Fred');
-
-// executes after 2 seconds:
-sayHi.defer(2000, this, ['Fred']);
-
-// this syntax is sometimes useful for deferring
-// execution of an anonymous function:
-(function(){
-    alert('Anonymous');
-}).defer(100);
-
- * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer : function(millis, obj, args, appendArgs){ - var fn = this.createDelegate(obj, args, appendArgs); - if(millis > 0){ - return setTimeout(fn, millis); - } - fn(); - return 0; - } -}); - -/** - * @class String - * These functions are available on every String object. - */ -Ext.applyIf(String, { - /** - * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each - * token must be unique, and must increment in the format {0}, {1}, etc. Example usage: - *

-var cls = 'my-class', text = 'Some text';
-var s = String.format('<div class="{0}">{1}</div>', cls, text);
-// s now contains the string: '<div class="my-class">Some text</div>'
-     * 
- * @param {String} string The tokenized string to be formatted - * @param {String} value1 The value to replace token {0} - * @param {String} value2 Etc... - * @return {String} The formatted string - * @static - */ - format : function(format){ - var args = Ext.toArray(arguments, 1); - return format.replace(/\{(\d+)\}/g, function(m, i){ - return args[i]; - }); - } -}); - -/** - * @class Array - */ -Ext.applyIf(Array.prototype, { - /** - * Checks whether or not the specified object exists in the array. - * @param {Object} o The object to check for - * @param {Number} from (Optional) The index at which to begin the search - * @return {Number} The index of o in the array (or -1 if it is not found) - */ - indexOf : function(o, from){ - var len = this.length; - from = from || 0; - from += (from < 0) ? len : 0; - for (; from < len; ++from){ - if(this[from] === o){ - return from; - } - } - return -1; - }, - - /** - * Removes the specified object from the array. If the object is not found nothing happens. - * @param {Object} o The object to remove - * @return {Array} this array - */ - remove : function(o){ - var index = this.indexOf(o); - if(index != -1){ - this.splice(index, 1); - } - return this; - } -}); -/** - * @class Ext.util.TaskRunner - * Provides the ability to execute one or more arbitrary tasks in a multithreaded - * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but - * if needed, you can create separate instances of TaskRunner. Any number of - * separate tasks can be started at any time and will run independently of each - * other. Example usage: - *

-// Start a simple clock task that updates a div once per second
-var updateClock = function(){
-    Ext.fly('clock').update(new Date().format('g:i:s A'));
-} 
-var task = {
-    run: updateClock,
-    interval: 1000 //1 second
-}
-var runner = new Ext.util.TaskRunner();
-runner.start(task);
-
-// equivalent using TaskMgr
-Ext.TaskMgr.start({
-    run: updateClock,
-    interval: 1000
-});
-
- * 
- *

See the {@link #start} method for details about how to configure a task object.

- * Also see {@link Ext.util.DelayedTask}. - * - * @constructor - * @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance - * (defaults to 10) - */ -Ext.util.TaskRunner = function(interval){ - interval = interval || 10; - var tasks = [], - removeQueue = [], - id = 0, - running = false, - - // private - stopThread = function(){ - running = false; - clearInterval(id); - id = 0; - }, - - // private - startThread = function(){ - if(!running){ - running = true; - id = setInterval(runTasks, interval); - } - }, - - // private - removeTask = function(t){ - removeQueue.push(t); - if(t.onStop){ - t.onStop.apply(t.scope || t); - } - }, - - // private - runTasks = function(){ - var rqLen = removeQueue.length, - now = new Date().getTime(); - - if(rqLen > 0){ - for(var i = 0; i < rqLen; i++){ - tasks.remove(removeQueue[i]); - } - removeQueue = []; - if(tasks.length < 1){ - stopThread(); - return; - } - } - for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){ - t = tasks[i]; - itime = now - t.taskRunTime; - if(t.interval <= itime){ - rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]); - t.taskRunTime = now; - if(rt === false || t.taskRunCount === t.repeat){ - removeTask(t); - return; - } - } - if(t.duration && t.duration <= (now - t.taskStartTime)){ - removeTask(t); - } - } - }; - - /** - * Starts a new task. - * @method start - * @param {Object} task

A config object that supports the following properties:

    - *
  • run : Function

    The function to execute each time the task is invoked. The - * function will be called at each interval and passed the args argument if specified, and the - * current invocation count if not.

    - *

    If a particular scope (this reference) is required, be sure to specify it using the scope argument.

    - *

    Return false from this function to terminate the task.

  • - *
  • interval : Number
    The frequency in milliseconds with which the task - * should be invoked.
  • - *
  • args : Array
    (optional) An array of arguments to be passed to the function - * specified by run. If not specified, the current invocation count is passed.
  • - *
  • scope : Object
    (optional) The scope (this reference) in which to execute the - * run function. Defaults to the task config object.
  • - *
  • duration : Number
    (optional) The length of time in milliseconds to invoke - * the task before stopping automatically (defaults to indefinite).
  • - *
  • repeat : Number
    (optional) The number of times to invoke the task before - * stopping automatically (defaults to indefinite).
  • - *

- *

Before each invocation, Ext injects the property taskRunCount into the task object so - * that calculations based on the repeat count can be performed.

- * @return {Object} The task - */ - this.start = function(task){ - tasks.push(task); - task.taskStartTime = new Date().getTime(); - task.taskRunTime = 0; - task.taskRunCount = 0; - startThread(); - return task; - }; - - /** - * Stops an existing running task. - * @method stop - * @param {Object} task The task to stop - * @return {Object} The task - */ - this.stop = function(task){ - removeTask(task); - return task; - }; - - /** - * Stops all tasks that are currently running. - * @method stopAll - */ - this.stopAll = function(){ - stopThread(); - for(var i = 0, len = tasks.length; i < len; i++){ - if(tasks[i].onStop){ - tasks[i].onStop(); - } - } - tasks = []; - removeQueue = []; - }; -}; - -/** - * @class Ext.TaskMgr - * @extends Ext.util.TaskRunner - * A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See - * {@link Ext.util.TaskRunner} for supported methods and task config properties. - *

-// Start a simple clock task that updates a div once per second
-var task = {
-    run: function(){
-        Ext.fly('clock').update(new Date().format('g:i:s A'));
-    },
-    interval: 1000 //1 second
-}
-Ext.TaskMgr.start(task);
-
- *

See the {@link #start} method for details about how to configure a task object.

- * @singleton - */ -Ext.TaskMgr = new Ext.util.TaskRunner();if(typeof jQuery == "undefined"){ - throw "Unable to load Ext, jQuery not found."; -} - -(function(){ -var libFlyweight; - -Ext.lib.Dom = { - getViewWidth : function(full){ - // jQuery doesn't report full window size on document query, so max both - return full ? Math.max(jQuery(document).width(),jQuery(window).width()) : jQuery(window).width(); - }, - - getViewHeight : function(full){ - // jQuery doesn't report full window size on document query, so max both - return full ? Math.max(jQuery(document).height(),jQuery(window).height()) : jQuery(window).height(); - }, - - isAncestor : function(p, c){ - var ret = false; - - p = Ext.getDom(p); - c = Ext.getDom(c); - if (p && c) { - if (p.contains) { - return p.contains(c); - } else if (p.compareDocumentPosition) { - return !!(p.compareDocumentPosition(c) & 16); - } else { - while (c = c.parentNode) { - ret = c == p || ret; - } - } - } - return ret; - }, - - getRegion : function(el){ - return Ext.lib.Region.getRegion(el); - }, - - ////////////////////////////////////////////////////////////////////////////////////// - // Use of jQuery.offset() removed to promote consistent behavior across libs. - // JVS 05/23/07 - ////////////////////////////////////////////////////////////////////////////////////// - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - getXY : function(el) { - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} -Ext.lib.Event = { - getPageX : function(e){ - e = e.browserEvent || e; - return e.pageX; - }, - - getPageY : function(e){ - e = e.browserEvent || e; - return e.pageY; - }, - - getXY : function(e){ - e = e.browserEvent || e; - return [e.pageX, e.pageY]; - }, - - getTarget : function(e){ - return e.target; - }, - - // all Ext events will go through event manager which provides scoping - on : function(el, eventName, fn, scope, override){ - jQuery(el).bind(eventName, fn); - }, - - un : function(el, eventName, fn){ - jQuery(el).unbind(eventName, fn); - }, - - purgeElement : function(el){ - jQuery(el).unbind(); - }, - - preventDefault : function(e){ - e = e.browserEvent || e; - if(e.preventDefault){ - e.preventDefault(); - }else{ - e.returnValue = false; - } - }, - - stopPropagation : function(e){ - e = e.browserEvent || e; - if(e.stopPropagation){ - e.stopPropagation(); - }else{ - e.cancelBubble = true; - } - }, - - stopEvent : function(e){ - this.preventDefault(e); - this.stopPropagation(e); - }, - - onAvailable : function(id, fn, scope){ - var start = new Date(); - var f = function(){ - if(start.getElapsed() > 10000){ - clearInterval(iid); - } - var el = document.getElementById(id); - if(el){ - clearInterval(iid); - fn.call(scope||window, el); - } - }; - var iid = setInterval(f, 50); - }, - - resolveTextNode: Ext.isGecko ? function(node){ - if(!node){ - return; - } - var s = HTMLElement.prototype.toString.call(node); - if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){ - return; - } - return node.nodeType == 3 ? node.parentNode : node; - } : function(node){ - return node && node.nodeType == 3 ? node.parentNode : node; - }, - - getRelatedTarget: function(ev) { - ev = ev.browserEvent || ev; - var t = ev.relatedTarget; - if (!t) { - if (ev.type == "mouseout") { - t = ev.toElement; - } else if (ev.type == "mouseover") { - t = ev.fromElement; - } - } - - return this.resolveTextNode(t); - } -}; - -Ext.lib.Ajax = function(){ - var createComplete = function(cb){ - return function(xhr, status){ - if((status == 'error' || status == 'timeout') && cb.failure){ - cb.failure.call(cb.scope||window, createResponse(cb, xhr)); - }else if(cb.success){ - cb.success.call(cb.scope||window, createResponse(cb, xhr)); - } - }; - }; - - var createResponse = function(cb, xhr){ - var headerObj = {}, - headerStr, - t, - s; - - try { - headerStr = xhr.getAllResponseHeaders(); - Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){ - t = v.indexOf(':'); - if(t >= 0){ - s = v.substr(0, t).toLowerCase(); - if(v.charAt(t + 1) == ' '){ - ++t; - } - headerObj[s] = v.substr(t + 1); - } - }); - } catch(e) {} - - return { - responseText: xhr.responseText, - responseXML : xhr.responseXML, - argument: cb.argument, - status: xhr.status, - statusText: xhr.statusText, - getResponseHeader : function(header){ - return headerObj[header.toLowerCase()]; - }, - getAllResponseHeaders : function(){ - return headerStr; - } - }; - }; - return { - request : function(method, uri, cb, data, options){ - var o = { - type: method, - url: uri, - data: data, - timeout: cb.timeout, - complete: createComplete(cb) - }; - - if(options){ - var hs = options.headers; - if(options.xmlData){ - o.data = options.xmlData; - o.processData = false; - o.type = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'text/xml'; - } - }else if(options.jsonData){ - o.data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - o.processData = false; - o.type = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'application/json'; - } - } - if(hs){ - o.beforeSend = function(xhr){ - for (var h in hs) { - if (hs.hasOwnProperty(h)) { - xhr.setRequestHeader(h, hs[h]); - } - } - }; - } - } - jQuery.ajax(o); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - jQuery.ajax({ - type: Ext.getDom(form).method ||'POST', - url: uri, - data: jQuery(form).serialize()+(data?'&'+data:''), - timeout: cb.timeout, - complete: createComplete(cb) - }); - }, - - isCallInProgress : function(trans){ - return false; - }, - - abort : function(trans){ - return false; - }, - - serializeForm : function(form){ - return jQuery(form.dom||form).serialize(); - } - }; -}(); - -Ext.lib.Anim = function(){ - var createAnim = function(cb, scope){ - var animated = true; - return { - stop : function(skipToLast){ - // do nothing - }, - - isAnimated : function(){ - return animated; - }, - - proxyCallback : function(){ - animated = false; - Ext.callback(cb, scope); - } - }; - }; - return { - scroll : function(el, args, duration, easing, cb, scope){ - // scroll anim not supported so just scroll immediately - var anim = createAnim(cb, scope); - el = Ext.getDom(el); - if(typeof args.scroll.to[0] == 'number'){ - el.scrollLeft = args.scroll.to[0]; - } - if(typeof args.scroll.to[1] == 'number'){ - el.scrollTop = args.scroll.to[1]; - } - anim.proxyCallback(); - return anim; - }, - - motion : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - color : function(el, args, duration, easing, cb, scope){ - // color anim not supported, so execute callback immediately - var anim = createAnim(cb, scope); - anim.proxyCallback(); - return anim; - }, - - run : function(el, args, duration, easing, cb, scope, type){ - var anim = createAnim(cb, scope), e = Ext.fly(el, '_animrun'); - var o = {}; - for(var k in args){ - switch(k){ // jquery doesn't support, so convert - case 'points': - var by, pts; - e.position(); - if(by = args.points.by){ - var xy = e.getXY(); - pts = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); - }else{ - pts = e.translatePoints(args.points.to); - } - o.left = pts.left; - o.top = pts.top; - if(!parseInt(e.getStyle('left'), 10)){ // auto bug - e.setLeft(0); - } - if(!parseInt(e.getStyle('top'), 10)){ - e.setTop(0); - } - if(args.points.from){ - e.setXY(args.points.from); - } - break; - case 'width': - o.width = args.width.to; - if (args.width.from) - e.setWidth(args.width.from); - break; - case 'height': - o.height = args.height.to; - if (args.height.from) - e.setHeight(args.height.from); - break; - case 'opacity': - o.opacity = args.opacity.to; - if (args.opacity.from) - e.setOpacity(args.opacity.from); - break; - case 'left': - o.left = args.left.to; - if (args.left.from) - e.setLeft(args.left.from); - break; - case 'top': - o.top = args.top.to; - if (args.top.from) - e.setTop(args.top.from); - break; - // jQuery can't handle callback, scope, and xy arguments, so break here - case 'callback': - case 'scope': - case 'xy': - break; - - default: - o[k] = args[k].to; - if (args[k].from) - e.setStyle(k, args[k].from); - break; - } - } - // TODO: find out about easing plug in? - jQuery(el).animate(o, duration*1000, undefined, anim.proxyCallback); - return anim; - } - }; -}(); - - -Ext.lib.Region = function(t, r, b, l) { - this.top = t; - this[1] = t; - this.right = r; - this.bottom = b; - this.left = l; - this[0] = l; -}; - -Ext.lib.Region.prototype = { - contains : function(region) { - return ( region.left >= this.left && - region.right <= this.right && - region.top >= this.top && - region.bottom <= this.bottom ); - - }, - - getArea : function() { - return ( (this.bottom - this.top) * (this.right - this.left) ); - }, - - intersect : function(region) { - var t = Math.max( this.top, region.top ); - var r = Math.min( this.right, region.right ); - var b = Math.min( this.bottom, region.bottom ); - var l = Math.max( this.left, region.left ); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } else { - return null; - } - }, - union : function(region) { - var t = Math.min( this.top, region.top ); - var r = Math.max( this.right, region.right ); - var b = Math.max( this.bottom, region.bottom ); - var l = Math.min( this.left, region.left ); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; - }, - - adjust : function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; - } -}; - -Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el); - - var t = p[1]; - var r = p[0] + el.offsetWidth; - var b = p[1] + el.offsetHeight; - var l = p[0]; - - return new Ext.lib.Region(t, r, b, l); -}; - -Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - this.x = this.right = this.left = this[0] = x; - this.y = this.top = this.bottom = this[1] = y; -}; - -Ext.lib.Point.prototype = new Ext.lib.Region(); - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/jquery/ext-jquery-adapter.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/jquery/ext-jquery-adapter.js deleted file mode 100644 index 3b8695956c..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/jquery/ext-jquery-adapter.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -window.undefined=window.undefined;Ext={version:"3.4.0",versionDetail:{major:3,minor:4,patch:0}};Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var g=0,u=Object.prototype.toString,v=navigator.userAgent.toLowerCase(),A=function(e){return e.test(v)},i=document,n=i.documentMode,l=i.compatMode=="CSS1Compat",C=A(/opera/),h=A(/\bchrome\b/),w=A(/webkit/),z=!h&&A(/safari/),f=z&&A(/applewebkit\/4/),b=z&&A(/version\/3/),D=z&&A(/version\/4/),t=!C&&A(/msie/),r=t&&(A(/msie 7/)||n==7),q=t&&(A(/msie 8/)&&n!=7),p=t&&A(/msie 9/),s=t&&!r&&!q&&!p,o=!w&&A(/gecko/),d=o&&A(/rv:1\.8/),a=o&&A(/rv:1\.9/),x=t&&!l,B=A(/windows|win32/),k=A(/macintosh|mac os x/),j=A(/adobeair/),m=A(/linux/),c=/^https/i.test(window.location.protocol);if(s){try{i.execCommand("BackgroundImageCache",false,true)}catch(y){}}Ext.apply(Ext,{SSL_SECURE_URL:c&&t?'javascript:""':"about:blank",isStrict:l,isSecure:c,isReady:false,enableForcedBoxModel:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(E,F){if(E){for(var e in F){if(!Ext.isDefined(E[e])){E[e]=F[e]}}}return E},id:function(e,E){e=Ext.getDom(e,true)||{};if(!e.id){e.id=(E||"ext-gen")+(++g)}return e.id},extend:function(){var E=function(G){for(var F in G){this[F]=G[F]}};var e=Object.prototype.constructor;return function(L,I,K){if(typeof I=="object"){K=I;I=L;L=K.constructor!=e?K.constructor:function(){I.apply(this,arguments)}}var H=function(){},J,G=I.prototype;H.prototype=G;J=L.prototype=new H();J.constructor=L;L.superclass=G;if(G.constructor==e){G.constructor=I}L.override=function(F){Ext.override(L,F)};J.superclass=J.supr=(function(){return G});J.override=E;Ext.override(L,K);L.extend=function(F){return Ext.extend(L,F)};return L}}(),override:function(e,F){if(F){var E=e.prototype;Ext.apply(E,F);if(Ext.isIE&&F.hasOwnProperty("toString")){E.toString=F.toString}}},namespace:function(){var G=arguments.length,H=0,E,F,e,J,I,K;for(;H0){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(;c0){for(var p=0;p10000){clearInterval(h)}var f=document.getElementById(j);if(f){clearInterval(h);e.call(d||window,f)}};var h=setInterval(g,50)},resolveTextNode:Ext.isGecko?function(e){if(!e){return}var d=HTMLElement.prototype.toString.call(e);if(d=="[xpconnect wrapped native prototype]"||d=="[object XULElement]"){return}return e.nodeType==3?e.parentNode:e}:function(d){return d&&d.nodeType==3?d.parentNode:d},getRelatedTarget:function(e){e=e.browserEvent||e;var d=e.relatedTarget;if(!d){if(e.type=="mouseout"){d=e.toElement}else{if(e.type=="mouseover"){d=e.fromElement}}}return this.resolveTextNode(d)}};Ext.lib.Ajax=function(){var d=function(f){return function(h,g){if((g=="error"||g=="timeout")&&f.failure){f.failure.call(f.scope||window,e(f,h))}else{if(f.success){f.success.call(f.scope||window,e(f,h))}}}};var e=function(f,l){var h={},j,g,i;try{j=l.getAllResponseHeaders();Ext.each(j.replace(/\r\n/g,"\n").split("\n"),function(m){g=m.indexOf(":");if(g>=0){i=m.substr(0,g).toLowerCase();if(m.charAt(g+1)==" "){++g}h[i]=m.substr(g+1)}})}catch(k){}return{responseText:l.responseText,responseXML:l.responseXML,argument:f.argument,status:l.status,statusText:l.statusText,getResponseHeader:function(m){return h[m.toLowerCase()]},getAllResponseHeaders:function(){return j}}};return{request:function(l,i,f,j,g){var k={type:l,url:i,data:j,timeout:f.timeout,complete:d(f)};if(g){var h=g.headers;if(g.xmlData){k.data=g.xmlData;k.processData=false;k.type=(l?l:(g.method?g.method:"POST"));if(!h||!h["Content-Type"]){k.contentType="text/xml"}}else{if(g.jsonData){k.data=typeof g.jsonData=="object"?Ext.encode(g.jsonData):g.jsonData;k.processData=false;k.type=(l?l:(g.method?g.method:"POST"));if(!h||!h["Content-Type"]){k.contentType="application/json"}}}if(h){k.beforeSend=function(n){for(var m in h){if(h.hasOwnProperty(m)){n.setRequestHeader(m,h[m])}}}}}jQuery.ajax(k)},formRequest:function(j,i,g,k,f,h){jQuery.ajax({type:Ext.getDom(j).method||"POST",url:i,data:jQuery(j).serialize()+(k?"&"+k:""),timeout:g.timeout,complete:d(g)})},isCallInProgress:function(f){return false},abort:function(f){return false},serializeForm:function(f){return jQuery(f.dom||f).serialize()}}}();Ext.lib.Anim=function(){var d=function(e,f){var g=true;return{stop:function(h){},isAnimated:function(){return g},proxyCallback:function(){g=false;Ext.callback(e,f)}}};return{scroll:function(h,f,j,k,e,g){var i=d(e,g);h=Ext.getDom(h);if(typeof f.scroll.to[0]=="number"){h.scrollLeft=f.scroll.to[0]}if(typeof f.scroll.to[1]=="number"){h.scrollTop=f.scroll.to[1]}i.proxyCallback();return i},motion:function(h,f,i,j,e,g){return this.run(h,f,i,j,e,g)},color:function(h,f,j,k,e,g){var i=d(e,g);i.proxyCallback();return i},run:function(g,q,j,p,h,s,r){var l=d(h,s),m=Ext.fly(g,"_animrun");var f={};for(var i in q){switch(i){case"points":var n,u;m.position();if(n=q.points.by){var t=m.getXY();u=m.translatePoints([t[0]+n[0],t[1]+n[1]])}else{u=m.translatePoints(q.points.to)}f.left=u.left;f.top=u.top;if(!parseInt(m.getStyle("left"),10)){m.setLeft(0)}if(!parseInt(m.getStyle("top"),10)){m.setTop(0)}if(q.points.from){m.setXY(q.points.from)}break;case"width":f.width=q.width.to;if(q.width.from){m.setWidth(q.width.from)}break;case"height":f.height=q.height.to;if(q.height.from){m.setHeight(q.height.from)}break;case"opacity":f.opacity=q.opacity.to;if(q.opacity.from){m.setOpacity(q.opacity.from)}break;case"left":f.left=q.left.to;if(q.left.from){m.setLeft(q.left.from)}break;case"top":f.top=q.top.to;if(q.top.from){m.setTop(q.top.from)}break;case"callback":case"scope":case"xy":break;default:f[i]=q[i].to;if(q[i].from){m.setStyle(i,q[i].from)}break}}jQuery(g).animate(f,j*1000,undefined,l.proxyCallback);return l}}}();Ext.lib.Region=function(f,g,d,e){this.top=f;this[1]=f;this.right=g;this.bottom=d;this.left=e;this[0]=e};Ext.lib.Region.prototype={contains:function(d){return(d.left>=this.left&&d.right<=this.right&&d.top>=this.top&&d.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(h){var f=Math.max(this.top,h.top);var g=Math.min(this.right,h.right);var d=Math.min(this.bottom,h.bottom);var e=Math.max(this.left,h.left);if(d>=f&&g>=e){return new Ext.lib.Region(f,g,d,e)}else{return null}},union:function(h){var f=Math.min(this.top,h.top);var g=Math.max(this.right,h.right);var d=Math.max(this.bottom,h.bottom);var e=Math.min(this.left,h.left);return new Ext.lib.Region(f,g,d,e)},constrainTo:function(d){this.top=this.top.constrain(d.top,d.bottom);this.bottom=this.bottom.constrain(d.top,d.bottom);this.left=this.left.constrain(d.left,d.right);this.right=this.right.constrain(d.left,d.right);return this},adjust:function(f,e,d,g){this.top+=f;this.left+=e;this.right+=g;this.bottom+=d;return this}};Ext.lib.Region.getRegion=function(g){var i=Ext.lib.Dom.getXY(g);var f=i[1];var h=i[0]+g.offsetWidth;var d=i[1]+g.offsetHeight;var e=i[0];return new Ext.lib.Region(f,h,d,e)};Ext.lib.Point=function(d,e){if(Ext.isArray(d)){e=d[1];d=d[0]}this.x=this.right=this.left=this[0]=d;this.y=this.top=this.bottom=this[1]=e};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function a(){var d=Function.prototype;delete d.createSequence;delete d.defer;delete d.createDelegate;delete d.createCallback;delete d.createInterceptor;window.detachEvent("onunload",a)}window.attachEvent("onunload",a)}})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter-debug.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter-debug.js deleted file mode 100644 index d23741b9f3..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter-debug.js +++ /dev/null @@ -1,1846 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -// for old browsers -window.undefined = window.undefined; - -/** - * @class Ext - * Ext core utilities and functions. - * @singleton - */ - -Ext = { - /** - * The version of the framework - * @type String - */ - version : '3.4.0', - versionDetail : { - major : 3, - minor : 4, - patch : 0 - } -}; - -/** - * Copies all the properties of config to obj. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @param {Object} defaults A different object that will also be applied for default values - * @return {Object} returns obj - * @member Ext apply - */ -Ext.apply = function(o, c, defaults){ - // no "this" reference for friendly out of scope calls - if(defaults){ - Ext.apply(o, defaults); - } - if(o && c && typeof c == 'object'){ - for(var p in c){ - o[p] = c[p]; - } - } - return o; -}; - -(function(){ - var idSeed = 0, - toString = Object.prototype.toString, - ua = navigator.userAgent.toLowerCase(), - check = function(r){ - return r.test(ua); - }, - DOC = document, - docMode = DOC.documentMode, - isStrict = DOC.compatMode == "CSS1Compat", - isOpera = check(/opera/), - isChrome = check(/\bchrome\b/), - isWebKit = check(/webkit/), - isSafari = !isChrome && check(/safari/), - isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2 - isSafari3 = isSafari && check(/version\/3/), - isSafari4 = isSafari && check(/version\/4/), - isIE = !isOpera && check(/msie/), - isIE7 = isIE && (check(/msie 7/) || docMode == 7), - isIE8 = isIE && (check(/msie 8/) && docMode != 7), - isIE9 = isIE && check(/msie 9/), - isIE6 = isIE && !isIE7 && !isIE8 && !isIE9, - isGecko = !isWebKit && check(/gecko/), - isGecko2 = isGecko && check(/rv:1\.8/), - isGecko3 = isGecko && check(/rv:1\.9/), - isBorderBox = isIE && !isStrict, - isWindows = check(/windows|win32/), - isMac = check(/macintosh|mac os x/), - isAir = check(/adobeair/), - isLinux = check(/linux/), - isSecure = /^https/i.test(window.location.protocol); - - // remove css image flicker - if(isIE6){ - try{ - DOC.execCommand("BackgroundImageCache", false, true); - }catch(e){} - } - - Ext.apply(Ext, { - /** - * URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent - * the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). - * @type String - */ - SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', - /** - * True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode - * @type Boolean - */ - isStrict : isStrict, - /** - * True if the page is running over SSL - * @type Boolean - */ - isSecure : isSecure, - /** - * True when the document is fully initialized and ready for action - * @type Boolean - */ - isReady : false, - - /** - * True if the {@link Ext.Fx} Class is available - * @type Boolean - * @property enableFx - */ - - /** - * HIGHLY EXPERIMENTAL - * True to force css based border-box model override and turning off javascript based adjustments. This is a - * runtime configuration and must be set before onReady. - * @type Boolean - */ - enableForcedBoxModel : false, - - /** - * True to automatically uncache orphaned Ext.Elements periodically (defaults to true) - * @type Boolean - */ - enableGarbageCollector : true, - - /** - * True to automatically purge event listeners during garbageCollection (defaults to false). - * @type Boolean - */ - enableListenerCollection : false, - - /** - * EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed. - * Currently not optimized for performance. - * @type Boolean - */ - enableNestedListenerRemoval : false, - - /** - * Indicates whether to use native browser parsing for JSON methods. - * This option is ignored if the browser does not support native JSON methods. - * Note: Native JSON methods will not work with objects that have functions. - * Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) - * @type Boolean - */ - USE_NATIVE_JSON : false, - - /** - * Copies all the properties of config to obj if they don't already exist. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @return {Object} returns obj - */ - applyIf : function(o, c){ - if(o){ - for(var p in c){ - if(!Ext.isDefined(o[p])){ - o[p] = c[p]; - } - } - } - return o; - }, - - /** - * Generates unique ids. If the element already has an id, it is unchanged - * @param {Mixed} el (optional) The element to generate an id for - * @param {String} prefix (optional) Id prefix (defaults "ext-gen") - * @return {String} The generated Id. - */ - id : function(el, prefix){ - el = Ext.getDom(el, true) || {}; - if (!el.id) { - el.id = (prefix || "ext-gen") + (++idSeed); - } - return el.id; - }, - - /** - *

Extends one class to create a subclass and optionally overrides members with the passed literal. This method - * also adds the function "override()" to the subclass that can be used to override members of the class.

- * For example, to create a subclass of Ext GridPanel: - *

-MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
-    constructor: function(config) {
-
-//      Create configuration for this Grid.
-        var store = new Ext.data.Store({...});
-        var colModel = new Ext.grid.ColumnModel({...});
-
-//      Create a new config object containing our computed properties
-//      *plus* whatever was in the config parameter.
-        config = Ext.apply({
-            store: store,
-            colModel: colModel
-        }, config);
-
-        MyGridPanel.superclass.constructor.call(this, config);
-
-//      Your postprocessing here
-    },
-
-    yourMethod: function() {
-        // etc.
-    }
-});
-
- * - *

This function also supports a 3-argument call in which the subclass's constructor is - * passed as an argument. In this form, the parameters are as follows:

- *
    - *
  • subclass : Function
    The subclass constructor.
  • - *
  • superclass : Function
    The constructor of class being extended
  • - *
  • overrides : Object
    A literal with members which are copied into the subclass's - * prototype, and are therefore shared among all instances of the new class.
  • - *
- * - * @param {Function} superclass The constructor of class being extended. - * @param {Object} overrides

A literal with members which are copied into the subclass's - * prototype, and are therefore shared between all instances of the new class.

- *

This may contain a special member named constructor. This is used - * to define the constructor of the new class, and is returned. If this property is - * not specified, a constructor is generated and returned which just calls the - * superclass's constructor passing on its parameters.

- *

It is essential that you call the superclass constructor in any provided constructor. See example code.

- * @return {Function} The subclass constructor from the overrides parameter, or a generated one if not provided. - */ - extend : function(){ - // inline overrides - var io = function(o){ - for(var m in o){ - this[m] = o[m]; - } - }; - var oc = Object.prototype.constructor; - - return function(sb, sp, overrides){ - if(typeof sp == 'object'){ - overrides = sp; - sp = sb; - sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);}; - } - var F = function(){}, - sbp, - spp = sp.prototype; - - F.prototype = spp; - sbp = sb.prototype = new F(); - sbp.constructor=sb; - sb.superclass=spp; - if(spp.constructor == oc){ - spp.constructor=sp; - } - sb.override = function(o){ - Ext.override(sb, o); - }; - sbp.superclass = sbp.supr = (function(){ - return spp; - }); - sbp.override = io; - Ext.override(sb, overrides); - sb.extend = function(o){return Ext.extend(sb, o);}; - return sb; - }; - }(), - - /** - * Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name. - * Usage:

-Ext.override(MyClass, {
-    newMethod1: function(){
-        // etc.
-    },
-    newMethod2: function(foo){
-        // etc.
-    }
-});
-
- * @param {Object} origclass The class to override - * @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal - * containing one or more methods. - * @method override - */ - override : function(origclass, overrides){ - if(overrides){ - var p = origclass.prototype; - Ext.apply(p, overrides); - if(Ext.isIE && overrides.hasOwnProperty('toString')){ - p.toString = overrides.toString; - } - } - }, - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method namespace - */ - namespace : function(){ - var len1 = arguments.length, - i = 0, - len2, - j, - main, - ns, - sub, - current; - - for(; i < len1; ++i) { - main = arguments[i]; - ns = arguments[i].split('.'); - current = window[ns[0]]; - if (current === undefined) { - current = window[ns[0]] = {}; - } - sub = ns.slice(1); - len2 = sub.length; - for(j = 0; j < len2; ++j) { - current = current[sub[j]] = current[sub[j]] || {}; - } - } - return current; - }, - - /** - * Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. - * @param {Object} o - * @param {String} pre (optional) A prefix to add to the url encoded string - * @return {String} - */ - urlEncode : function(o, pre){ - var empty, - buf = [], - e = encodeURIComponent; - - Ext.iterate(o, function(key, item){ - empty = Ext.isEmpty(item); - Ext.each(empty ? key : item, function(val){ - buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : ''); - }); - }); - if(!pre){ - buf.shift(); - pre = ''; - } - return pre + buf.join(''); - }, - - /** - * Takes an encoded URL and and converts it to an object. Example:

-Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
-Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
-
- * @param {String} string - * @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false). - * @return {Object} A literal with members - */ - urlDecode : function(string, overwrite){ - if(Ext.isEmpty(string)){ - return {}; - } - var obj = {}, - pairs = string.split('&'), - d = decodeURIComponent, - name, - value; - Ext.each(pairs, function(pair) { - pair = pair.split('='); - name = d(pair[0]); - value = d(pair[1]); - obj[name] = overwrite || !obj[name] ? value : - [].concat(obj[name]).concat(value); - }); - return obj; - }, - - /** - * Appends content to the query string of a URL, handling logic for whether to place - * a question mark or ampersand. - * @param {String} url The URL to append to. - * @param {String} s The content to append to the URL. - * @return (String) The resulting URL - */ - urlAppend : function(url, s){ - if(!Ext.isEmpty(s)){ - return url + (url.indexOf('?') === -1 ? '?' : '&') + s; - } - return url; - }, - - /** - * Converts any iterable (numeric indices and a length property) into a true array - * Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on. - * For strings, use this instead: "abc".match(/./g) => [a,b,c]; - * @param {Iterable} the iterable object to be turned into a true Array. - * @return (Array) array - */ - toArray : function(){ - return isIE ? - function(a, i, j, res){ - res = []; - for(var x = 0, len = a.length; x < len; x++) { - res.push(a[x]); - } - return res.slice(i || 0, j || res.length); - } : - function(a, i, j){ - return Array.prototype.slice.call(a, i || 0, j || a.length); - }; - }(), - - isIterable : function(v){ - //check for array or arguments - if(Ext.isArray(v) || v.callee){ - return true; - } - //check for node list type - if(/NodeList|HTMLCollection/.test(toString.call(v))){ - return true; - } - //NodeList has an item and length property - //IXMLDOMNodeList has nextNode method, needs to be checked first. - return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length)); - }, - - /** - * Iterates an array calling the supplied function. - * @param {Array/NodeList/Mixed} array The array to be iterated. If this - * argument is not really an array, the supplied function is called once. - * @param {Function} fn The function to be called with each item. If the - * supplied function returns false, iteration stops and this method returns - * the current index. This function is called with - * the following arguments: - *
    - *
  • item : Mixed - *
    The item at the current index - * in the passed array
  • - *
  • index : Number - *
    The current index within the array
  • - *
  • allItems : Array - *
    The array passed as the first - * argument to Ext.each.
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. - * Defaults to the item at the current index - * within the passed array. - * @return See description for the fn parameter. - */ - each : function(array, fn, scope){ - if(Ext.isEmpty(array, true)){ - return; - } - if(!Ext.isIterable(array) || Ext.isPrimitive(array)){ - array = [array]; - } - for(var i = 0, len = array.length; i < len; i++){ - if(fn.call(scope || array[i], array[i], i, array) === false){ - return i; - }; - } - }, - - /** - * Iterates either the elements in an array, or each of the properties in an object. - * Note: If you are only iterating arrays, it is better to call {@link #each}. - * @param {Object/Array} object The object or array to be iterated - * @param {Function} fn The function to be called for each iteration. - * The iteration will stop if the supplied function returns false, or - * all array elements / object properties have been covered. The signature - * varies depending on the type of object being interated: - *
    - *
  • Arrays : (Object item, Number index, Array allItems) - *
    - * When iterating an array, the supplied function is called with each item.
  • - *
  • Objects : (String key, Object value, Object) - *
    - * When iterating an object, the supplied function is called with each key-value pair in - * the object, and the iterated object
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. Defaults to - * the object being iterated. - */ - iterate : function(obj, fn, scope){ - if(Ext.isEmpty(obj)){ - return; - } - if(Ext.isIterable(obj)){ - Ext.each(obj, fn, scope); - return; - }else if(typeof obj == 'object'){ - for(var prop in obj){ - if(obj.hasOwnProperty(prop)){ - if(fn.call(scope || obj, prop, obj[prop], obj) === false){ - return; - }; - } - } - } - }, - - /** - * Return the dom node for the passed String (id), dom node, or Ext.Element. - * Optional 'strict' flag is needed for IE since it can return 'name' and - * 'id' elements by using getElementById. - * Here are some examples: - *

-// gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
-    var dom = Ext.getDom(el);
-    // do something with the dom node
-}
-         * 
- * Note: the dom node to be found actually needs to exist (be rendered, etc) - * when this method is called to be successful. - * @param {Mixed} el - * @return HTMLElement - */ - getDom : function(el, strict){ - if(!el || !DOC){ - return null; - } - if (el.dom){ - return el.dom; - } else { - if (typeof el == 'string') { - var e = DOC.getElementById(el); - // IE returns elements with the 'name' and 'id' attribute. - // we do a strict check to return the element with only the id attribute - if (e && isIE && strict) { - if (el == e.getAttribute('id')) { - return e; - } else { - return null; - } - } - return e; - } else { - return el; - } - } - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getBody : function(){ - return Ext.get(DOC.body || DOC.documentElement); - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getHead : function() { - var head; - - return function() { - if (head == undefined) { - head = Ext.get(DOC.getElementsByTagName("head")[0]); - } - - return head; - }; - }(), - - /** - * Removes a DOM node from the document. - */ - /** - *

Removes this element from the document, removes all DOM event listeners, and deletes the cache reference. - * All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is - * true, then DOM event listeners are also removed from all child nodes. The body node - * will be ignored if passed in.

- * @param {HTMLElement} node The node to remove - */ - removeNode : isIE && !isIE8 ? function(){ - var d; - return function(n){ - if(n && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - d = d || DOC.createElement('div'); - d.appendChild(n); - d.innerHTML = ''; - delete Ext.elCache[n.id]; - } - }; - }() : function(n){ - if(n && n.parentNode && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - n.parentNode.removeChild(n); - delete Ext.elCache[n.id]; - } - }, - - /** - *

Returns true if the passed value is empty.

- *

The value is deemed to be empty if it is

    - *
  • null
  • - *
  • undefined
  • - *
  • an empty array
  • - *
  • a zero length string (Unless the allowBlank parameter is true)
  • - *
- * @param {Mixed} value The value to test - * @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false) - * @return {Boolean} - */ - isEmpty : function(v, allowBlank){ - return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false); - }, - - /** - * Returns true if the passed value is a JavaScript array, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isArray : function(v){ - return toString.apply(v) === '[object Array]'; - }, - - /** - * Returns true if the passed object is a JavaScript date object, otherwise false. - * @param {Object} object The object to test - * @return {Boolean} - */ - isDate : function(v){ - return toString.apply(v) === '[object Date]'; - }, - - /** - * Returns true if the passed value is a JavaScript Object, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isObject : function(v){ - return !!v && Object.prototype.toString.call(v) === '[object Object]'; - }, - - /** - * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isPrimitive : function(v){ - return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v); - }, - - /** - * Returns true if the passed value is a JavaScript Function, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isFunction : function(v){ - return toString.apply(v) === '[object Function]'; - }, - - /** - * Returns true if the passed value is a number. Returns false for non-finite numbers. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isNumber : function(v){ - return typeof v === 'number' && isFinite(v); - }, - - /** - * Returns true if the passed value is a string. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isString : function(v){ - return typeof v === 'string'; - }, - - /** - * Returns true if the passed value is a boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isBoolean : function(v){ - return typeof v === 'boolean'; - }, - - /** - * Returns true if the passed value is an HTMLElement - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isElement : function(v) { - return v ? !!v.tagName : false; - }, - - /** - * Returns true if the passed value is not undefined. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isDefined : function(v){ - return typeof v !== 'undefined'; - }, - - /** - * True if the detected browser is Opera. - * @type Boolean - */ - isOpera : isOpera, - /** - * True if the detected browser uses WebKit. - * @type Boolean - */ - isWebKit : isWebKit, - /** - * True if the detected browser is Chrome. - * @type Boolean - */ - isChrome : isChrome, - /** - * True if the detected browser is Safari. - * @type Boolean - */ - isSafari : isSafari, - /** - * True if the detected browser is Safari 3.x. - * @type Boolean - */ - isSafari3 : isSafari3, - /** - * True if the detected browser is Safari 4.x. - * @type Boolean - */ - isSafari4 : isSafari4, - /** - * True if the detected browser is Safari 2.x. - * @type Boolean - */ - isSafari2 : isSafari2, - /** - * True if the detected browser is Internet Explorer. - * @type Boolean - */ - isIE : isIE, - /** - * True if the detected browser is Internet Explorer 6.x. - * @type Boolean - */ - isIE6 : isIE6, - /** - * True if the detected browser is Internet Explorer 7.x. - * @type Boolean - */ - isIE7 : isIE7, - /** - * True if the detected browser is Internet Explorer 8.x. - * @type Boolean - */ - isIE8 : isIE8, - /** - * True if the detected browser is Internet Explorer 9.x. - * @type Boolean - */ - isIE9 : isIE9, - /** - * True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). - * @type Boolean - */ - isGecko : isGecko, - /** - * True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). - * @type Boolean - */ - isGecko2 : isGecko2, - /** - * True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). - * @type Boolean - */ - isGecko3 : isGecko3, - /** - * True if the detected browser is Internet Explorer running in non-strict mode. - * @type Boolean - */ - isBorderBox : isBorderBox, - /** - * True if the detected platform is Linux. - * @type Boolean - */ - isLinux : isLinux, - /** - * True if the detected platform is Windows. - * @type Boolean - */ - isWindows : isWindows, - /** - * True if the detected platform is Mac OS. - * @type Boolean - */ - isMac : isMac, - /** - * True if the detected platform is Adobe Air. - * @type Boolean - */ - isAir : isAir - }); - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method ns - */ - Ext.ns = Ext.namespace; -})(); - -Ext.ns('Ext.util', 'Ext.lib', 'Ext.data', 'Ext.supports'); - -Ext.elCache = {}; - -/** - * @class Function - * These functions are available on every Function object (any JavaScript function). - */ -Ext.apply(Function.prototype, { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-sayHi('Fred'); // alerts "Hi, Fred"
-
-// create a new function that validates input without
-// directly modifying the original function:
-var sayHiToFriend = sayHi.createInterceptor(function(name){
-    return name == 'Brian';
-});
-
-sayHiToFriend('Fred');  // no alert
-sayHiToFriend('Brian'); // alerts "Hi, Brian"
-
- * @param {Function} fcn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor : function(fcn, scope){ - var method = this; - return !Ext.isFunction(fcn) ? - this : - function() { - var me = this, - args = arguments; - fcn.target = me; - fcn.method = method; - return (fcn.apply(scope || me || window, args) !== false) ? - method.apply(me || window, args) : - null; - }; - }, - - /** - * Creates a callback that passes arguments[0], arguments[1], arguments[2], ... - * Call directly on any function. Example: myFunction.createCallback(arg1, arg2) - * Will create a function that is bound to those 2 args. If a specific scope is required in the - * callback, use {@link #createDelegate} instead. The function returned by createCallback always - * executes in the window scope. - *

This method is required when you want to pass arguments to a callback function. If no arguments - * are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn). - * However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function - * would simply execute immediately when the code is parsed. Example usage: - *


-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// clicking the button alerts "Hi, Fred"
-new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody(),
-    handler: sayHi.createCallback('Fred')
-});
-
- * @return {Function} The new function - */ - createCallback : function(/*args...*/){ - // make args available, in function below - var args = arguments, - method = this; - return function() { - return method.apply(window, args); - }; - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: this.myFunction.createDelegate(this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *

-var sayHi = function(name){
-    // Note this use of "this.text" here.  This function expects to
-    // execute within a scope that contains a text property.  In this
-    // example, the "this" variable is pointing to the btn object that
-    // was passed in createDelegate below.
-    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
-}
-
-var btn = new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody()
-});
-
-// This callback will execute in the scope of the
-// button instance. Clicking the button alerts
-// "Hi, Fred. You clicked the "Say Hi" button."
-btn.on('click', sayHi.createDelegate(btn, ['Fred']));
-
- * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate : function(obj, args, appendArgs){ - var method = this; - return function() { - var callArgs = args || arguments; - if (appendArgs === true){ - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - }else if (Ext.isNumber(appendArgs)){ - callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); // splice them in - } - return method.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// executes immediately:
-sayHi('Fred');
-
-// executes after 2 seconds:
-sayHi.defer(2000, this, ['Fred']);
-
-// this syntax is sometimes useful for deferring
-// execution of an anonymous function:
-(function(){
-    alert('Anonymous');
-}).defer(100);
-
- * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer : function(millis, obj, args, appendArgs){ - var fn = this.createDelegate(obj, args, appendArgs); - if(millis > 0){ - return setTimeout(fn, millis); - } - fn(); - return 0; - } -}); - -/** - * @class String - * These functions are available on every String object. - */ -Ext.applyIf(String, { - /** - * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each - * token must be unique, and must increment in the format {0}, {1}, etc. Example usage: - *

-var cls = 'my-class', text = 'Some text';
-var s = String.format('<div class="{0}">{1}</div>', cls, text);
-// s now contains the string: '<div class="my-class">Some text</div>'
-     * 
- * @param {String} string The tokenized string to be formatted - * @param {String} value1 The value to replace token {0} - * @param {String} value2 Etc... - * @return {String} The formatted string - * @static - */ - format : function(format){ - var args = Ext.toArray(arguments, 1); - return format.replace(/\{(\d+)\}/g, function(m, i){ - return args[i]; - }); - } -}); - -/** - * @class Array - */ -Ext.applyIf(Array.prototype, { - /** - * Checks whether or not the specified object exists in the array. - * @param {Object} o The object to check for - * @param {Number} from (Optional) The index at which to begin the search - * @return {Number} The index of o in the array (or -1 if it is not found) - */ - indexOf : function(o, from){ - var len = this.length; - from = from || 0; - from += (from < 0) ? len : 0; - for (; from < len; ++from){ - if(this[from] === o){ - return from; - } - } - return -1; - }, - - /** - * Removes the specified object from the array. If the object is not found nothing happens. - * @param {Object} o The object to remove - * @return {Array} this array - */ - remove : function(o){ - var index = this.indexOf(o); - if(index != -1){ - this.splice(index, 1); - } - return this; - } -}); -/** - * @class Ext.util.TaskRunner - * Provides the ability to execute one or more arbitrary tasks in a multithreaded - * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but - * if needed, you can create separate instances of TaskRunner. Any number of - * separate tasks can be started at any time and will run independently of each - * other. Example usage: - *

-// Start a simple clock task that updates a div once per second
-var updateClock = function(){
-    Ext.fly('clock').update(new Date().format('g:i:s A'));
-} 
-var task = {
-    run: updateClock,
-    interval: 1000 //1 second
-}
-var runner = new Ext.util.TaskRunner();
-runner.start(task);
-
-// equivalent using TaskMgr
-Ext.TaskMgr.start({
-    run: updateClock,
-    interval: 1000
-});
-
- * 
- *

See the {@link #start} method for details about how to configure a task object.

- * Also see {@link Ext.util.DelayedTask}. - * - * @constructor - * @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance - * (defaults to 10) - */ -Ext.util.TaskRunner = function(interval){ - interval = interval || 10; - var tasks = [], - removeQueue = [], - id = 0, - running = false, - - // private - stopThread = function(){ - running = false; - clearInterval(id); - id = 0; - }, - - // private - startThread = function(){ - if(!running){ - running = true; - id = setInterval(runTasks, interval); - } - }, - - // private - removeTask = function(t){ - removeQueue.push(t); - if(t.onStop){ - t.onStop.apply(t.scope || t); - } - }, - - // private - runTasks = function(){ - var rqLen = removeQueue.length, - now = new Date().getTime(); - - if(rqLen > 0){ - for(var i = 0; i < rqLen; i++){ - tasks.remove(removeQueue[i]); - } - removeQueue = []; - if(tasks.length < 1){ - stopThread(); - return; - } - } - for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){ - t = tasks[i]; - itime = now - t.taskRunTime; - if(t.interval <= itime){ - rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]); - t.taskRunTime = now; - if(rt === false || t.taskRunCount === t.repeat){ - removeTask(t); - return; - } - } - if(t.duration && t.duration <= (now - t.taskStartTime)){ - removeTask(t); - } - } - }; - - /** - * Starts a new task. - * @method start - * @param {Object} task

A config object that supports the following properties:

    - *
  • run : Function

    The function to execute each time the task is invoked. The - * function will be called at each interval and passed the args argument if specified, and the - * current invocation count if not.

    - *

    If a particular scope (this reference) is required, be sure to specify it using the scope argument.

    - *

    Return false from this function to terminate the task.

  • - *
  • interval : Number
    The frequency in milliseconds with which the task - * should be invoked.
  • - *
  • args : Array
    (optional) An array of arguments to be passed to the function - * specified by run. If not specified, the current invocation count is passed.
  • - *
  • scope : Object
    (optional) The scope (this reference) in which to execute the - * run function. Defaults to the task config object.
  • - *
  • duration : Number
    (optional) The length of time in milliseconds to invoke - * the task before stopping automatically (defaults to indefinite).
  • - *
  • repeat : Number
    (optional) The number of times to invoke the task before - * stopping automatically (defaults to indefinite).
  • - *

- *

Before each invocation, Ext injects the property taskRunCount into the task object so - * that calculations based on the repeat count can be performed.

- * @return {Object} The task - */ - this.start = function(task){ - tasks.push(task); - task.taskStartTime = new Date().getTime(); - task.taskRunTime = 0; - task.taskRunCount = 0; - startThread(); - return task; - }; - - /** - * Stops an existing running task. - * @method stop - * @param {Object} task The task to stop - * @return {Object} The task - */ - this.stop = function(task){ - removeTask(task); - return task; - }; - - /** - * Stops all tasks that are currently running. - * @method stopAll - */ - this.stopAll = function(){ - stopThread(); - for(var i = 0, len = tasks.length; i < len; i++){ - if(tasks[i].onStop){ - tasks[i].onStop(); - } - } - tasks = []; - removeQueue = []; - }; -}; - -/** - * @class Ext.TaskMgr - * @extends Ext.util.TaskRunner - * A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See - * {@link Ext.util.TaskRunner} for supported methods and task config properties. - *

-// Start a simple clock task that updates a div once per second
-var task = {
-    run: function(){
-        Ext.fly('clock').update(new Date().format('g:i:s A'));
-    },
-    interval: 1000 //1 second
-}
-Ext.TaskMgr.start(task);
-
- *

See the {@link #start} method for details about how to configure a task object.

- * @singleton - */ -Ext.TaskMgr = new Ext.util.TaskRunner();(function(){ - -var libFlyweight, - version = Prototype.Version.split('.'), - mouseEnterSupported = (parseInt(version[0], 10) >= 2) || (parseInt(version[1], 10) >= 7) || (parseInt(version[2], 10) >= 1), - mouseCache = {}, - elContains = function(parent, child) { - if(parent && parent.firstChild){ - while(child) { - if(child === parent) { - return true; - } - child = child.parentNode; - if(child && (child.nodeType != 1)) { - child = null; - } - } - } - return false; - }, - checkRelatedTarget = function(e) { - return !elContains(e.currentTarget, Ext.lib.Event.getRelatedTarget(e)); - }; - -Ext.lib.Dom = { - getViewWidth : function(full){ - return full ? this.getDocumentWidth() : this.getViewportWidth(); - }, - - getViewHeight : function(full){ - return full ? this.getDocumentHeight() : this.getViewportHeight(); - }, - - getDocumentHeight: function() { // missing from prototype? - var scrollHeight = (document.compatMode != "CSS1Compat") ? document.body.scrollHeight : document.documentElement.scrollHeight; - return Math.max(scrollHeight, this.getViewportHeight()); - }, - - getDocumentWidth: function() { // missing from prototype? - var scrollWidth = (document.compatMode != "CSS1Compat") ? document.body.scrollWidth : document.documentElement.scrollWidth; - return Math.max(scrollWidth, this.getViewportWidth()); - }, - - getViewportHeight: function() { // missing from prototype? - var height = self.innerHeight; - var mode = document.compatMode; - - if ( (mode || Ext.isIE) && !Ext.isOpera ) { - height = (mode == "CSS1Compat") ? - document.documentElement.clientHeight : // Standards - document.body.clientHeight; // Quirks - } - - return height; - }, - - getViewportWidth: function() { // missing from prototype? - var width = self.innerWidth; // Safari - var mode = document.compatMode; - - if (mode || Ext.isIE) { // IE, Gecko, Opera - width = (mode == "CSS1Compat") ? - document.documentElement.clientWidth : // Standards - document.body.clientWidth; // Quirks - } - return width; - }, - - isAncestor : function(p, c){ // missing from prototype? - var ret = false; - - p = Ext.getDom(p); - c = Ext.getDom(c); - if (p && c) { - if (p.contains) { - return p.contains(c); - } else if (p.compareDocumentPosition) { - return !!(p.compareDocumentPosition(c) & 16); - } else { - while (c = c.parentNode) { - ret = c == p || ret; - } - } - } - return ret; - }, - - getRegion : function(el){ - return Ext.lib.Region.getRegion(el); - }, - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - getXY : function(el){ // this initially used Position.cumulativeOffset but it is not accurate enough - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ // this initially used Position.cumulativeOffset but it is not accurate enough - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -Ext.lib.Event = { - getPageX : function(e){ - return Event.pointerX(e.browserEvent || e); - }, - - getPageY : function(e){ - return Event.pointerY(e.browserEvent || e); - }, - - getXY : function(e){ - e = e.browserEvent || e; - return [Event.pointerX(e), Event.pointerY(e)]; - }, - - getTarget : function(e){ - return Event.element(e.browserEvent || e); - }, - - resolveTextNode: Ext.isGecko ? function(node){ - if(!node){ - return; - } - var s = HTMLElement.prototype.toString.call(node); - if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){ - return; - } - return node.nodeType == 3 ? node.parentNode : node; - } : function(node){ - return node && node.nodeType == 3 ? node.parentNode : node; - }, - - getRelatedTarget: function(ev) { // missing from prototype? - ev = ev.browserEvent || ev; - var t = ev.relatedTarget; - if (!t) { - if (ev.type == "mouseout") { - t = ev.toElement; - } else if (ev.type == "mouseover") { - t = ev.fromElement; - } - } - - return this.resolveTextNode(t); - }, - - on : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id] || (mouseCache[el.id] = {}); - item[eventName] = fn; - fn = fn.createInterceptor(checkRelatedTarget); - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - Event.observe(el, eventName, fn, false); - }, - - un : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id], - ev = item && item[eventName]; - - if(ev){ - fn = ev.fn; - delete item[eventName]; - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - } - Event.stopObserving(el, eventName, fn, false); - }, - - purgeElement : function(el){ - // no equiv? - }, - - preventDefault : function(e){ // missing from prototype? - e = e.browserEvent || e; - if(e.preventDefault) { - e.preventDefault(); - } else { - e.returnValue = false; - } - }, - - stopPropagation : function(e){ // missing from prototype? - e = e.browserEvent || e; - if(e.stopPropagation) { - e.stopPropagation(); - } else { - e.cancelBubble = true; - } - }, - - stopEvent : function(e){ - Event.stop(e.browserEvent || e); - }, - - onAvailable : function(id, fn, scope){ // no equiv - var start = new Date(), iid; - var f = function(){ - if(start.getElapsed() > 10000){ - clearInterval(iid); - } - var el = document.getElementById(id); - if(el){ - clearInterval(iid); - fn.call(scope||window, el); - } - }; - iid = setInterval(f, 50); - } -}; - -Ext.lib.Ajax = function(){ - var createSuccess = function(cb){ - return cb.success ? function(xhr){ - cb.success.call(cb.scope||window, createResponse(cb, xhr)); - } : Ext.emptyFn; - }; - var createFailure = function(cb){ - return cb.failure ? function(xhr){ - cb.failure.call(cb.scope||window, createResponse(cb, xhr)); - } : Ext.emptyFn; - }; - var createResponse = function(cb, xhr){ - var headerObj = {}, - headerStr, - t, - s; - - try { - headerStr = xhr.getAllResponseHeaders(); - Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){ - t = v.indexOf(':'); - if(t >= 0){ - s = v.substr(0, t).toLowerCase(); - if(v.charAt(t + 1) == ' '){ - ++t; - } - headerObj[s] = v.substr(t + 1); - } - }); - } catch(e) {} - - return { - responseText: xhr.responseText, - responseXML : xhr.responseXML, - argument: cb.argument, - status: xhr.status, - statusText: xhr.statusText, - getResponseHeader : function(header){ - return headerObj[header.toLowerCase()]; - }, - getAllResponseHeaders : function(){ - return headerStr; - } - }; - }; - return { - request : function(method, uri, cb, data, options){ - var o = { - method: method, - parameters: data || '', - timeout: cb.timeout, - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }; - if(options){ - var hs = options.headers; - if(hs){ - o.requestHeaders = hs; - } - if(options.xmlData){ - method = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'text/xml'; - } - o.postBody = options.xmlData; - delete o.parameters; - } - if(options.jsonData){ - method = (method ? method : (options.method ? options.method : 'POST')); - if (!hs || !hs['Content-Type']){ - o.contentType = 'application/json'; - } - o.postBody = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - delete o.parameters; - } - } - new Ajax.Request(uri, o); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - new Ajax.Request(uri, { - method: Ext.getDom(form).method ||'POST', - parameters: Form.serialize(form)+(data?'&'+data:''), - timeout: cb.timeout, - onSuccess: createSuccess(cb), - onFailure: createFailure(cb) - }); - }, - - isCallInProgress : function(trans){ - return false; - }, - - abort : function(trans){ - return false; - }, - - serializeForm : function(form){ - return Form.serialize(form.dom||form); - } - }; -}(); - - -Ext.lib.Anim = function(){ - - var easings = { - easeOut: function(pos) { - return 1-Math.pow(1-pos,2); - }, - easeIn: function(pos) { - return 1-Math.pow(1-pos,2); - } - }; - var createAnim = function(cb, scope){ - return { - stop : function(skipToLast){ - this.effect.cancel(); - }, - - isAnimated : function(){ - return this.effect.state == 'running'; - }, - - proxyCallback : function(){ - Ext.callback(cb, scope); - } - }; - }; - return { - scroll : function(el, args, duration, easing, cb, scope){ - // not supported so scroll immediately? - var anim = createAnim(cb, scope); - el = Ext.getDom(el); - if(typeof args.scroll.to[0] == 'number'){ - el.scrollLeft = args.scroll.to[0]; - } - if(typeof args.scroll.to[1] == 'number'){ - el.scrollTop = args.scroll.to[1]; - } - anim.proxyCallback(); - return anim; - }, - - motion : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - color : function(el, args, duration, easing, cb, scope){ - return this.run(el, args, duration, easing, cb, scope); - }, - - run : function(el, args, duration, easing, cb, scope, type){ - var o = {}; - for(var k in args){ - switch(k){ // scriptaculous doesn't support, so convert these - case 'points': - var by, pts, e = Ext.fly(el, '_animrun'); - e.position(); - if(by = args.points.by){ - var xy = e.getXY(); - pts = e.translatePoints([xy[0]+by[0], xy[1]+by[1]]); - }else{ - pts = e.translatePoints(args.points.to); - } - o.left = pts.left+'px'; - o.top = pts.top+'px'; - break; - case 'width': - o.width = args.width.to+'px'; - break; - case 'height': - o.height = args.height.to+'px'; - break; - case 'opacity': - o.opacity = String(args.opacity.to); - break; - default: - o[k] = String(args[k].to); - break; - } - } - var anim = createAnim(cb, scope); - anim.effect = new Effect.Morph(Ext.id(el), { - duration: duration, - afterFinish: anim.proxyCallback, - transition: easings[easing] || Effect.Transitions.linear, - style: o - }); - return anim; - } - }; -}(); - - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} - -Ext.lib.Region = function(t, r, b, l) { - this.top = t; - this[1] = t; - this.right = r; - this.bottom = b; - this.left = l; - this[0] = l; -}; - -Ext.lib.Region.prototype = { - contains : function(region) { - return ( region.left >= this.left && - region.right <= this.right && - region.top >= this.top && - region.bottom <= this.bottom ); - - }, - - getArea : function() { - return ( (this.bottom - this.top) * (this.right - this.left) ); - }, - - intersect : function(region) { - var t = Math.max( this.top, region.top ); - var r = Math.min( this.right, region.right ); - var b = Math.min( this.bottom, region.bottom ); - var l = Math.max( this.left, region.left ); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } else { - return null; - } - }, - union : function(region) { - var t = Math.min( this.top, region.top ); - var r = Math.max( this.right, region.right ); - var b = Math.max( this.bottom, region.bottom ); - var l = Math.min( this.left, region.left ); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; - }, - - adjust : function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; - } -}; - -Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el); - - var t = p[1]; - var r = p[0] + el.offsetWidth; - var b = p[1] + el.offsetHeight; - var l = p[0]; - - return new Ext.lib.Region(t, r, b, l); -}; - -Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - this.x = this.right = this.left = this[0] = x; - this.y = this.top = this.bottom = this[1] = y; -}; - -Ext.lib.Point.prototype = new Ext.lib.Region(); - - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter.js deleted file mode 100644 index eb1ebb8066..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/prototype/ext-prototype-adapter.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -window.undefined=window.undefined;Ext={version:"3.4.0",versionDetail:{major:3,minor:4,patch:0}};Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var g=0,u=Object.prototype.toString,v=navigator.userAgent.toLowerCase(),A=function(e){return e.test(v)},i=document,n=i.documentMode,l=i.compatMode=="CSS1Compat",C=A(/opera/),h=A(/\bchrome\b/),w=A(/webkit/),z=!h&&A(/safari/),f=z&&A(/applewebkit\/4/),b=z&&A(/version\/3/),D=z&&A(/version\/4/),t=!C&&A(/msie/),r=t&&(A(/msie 7/)||n==7),q=t&&(A(/msie 8/)&&n!=7),p=t&&A(/msie 9/),s=t&&!r&&!q&&!p,o=!w&&A(/gecko/),d=o&&A(/rv:1\.8/),a=o&&A(/rv:1\.9/),x=t&&!l,B=A(/windows|win32/),k=A(/macintosh|mac os x/),j=A(/adobeair/),m=A(/linux/),c=/^https/i.test(window.location.protocol);if(s){try{i.execCommand("BackgroundImageCache",false,true)}catch(y){}}Ext.apply(Ext,{SSL_SECURE_URL:c&&t?'javascript:""':"about:blank",isStrict:l,isSecure:c,isReady:false,enableForcedBoxModel:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(E,F){if(E){for(var e in F){if(!Ext.isDefined(E[e])){E[e]=F[e]}}}return E},id:function(e,E){e=Ext.getDom(e,true)||{};if(!e.id){e.id=(E||"ext-gen")+(++g)}return e.id},extend:function(){var E=function(G){for(var F in G){this[F]=G[F]}};var e=Object.prototype.constructor;return function(L,I,K){if(typeof I=="object"){K=I;I=L;L=K.constructor!=e?K.constructor:function(){I.apply(this,arguments)}}var H=function(){},J,G=I.prototype;H.prototype=G;J=L.prototype=new H();J.constructor=L;L.superclass=G;if(G.constructor==e){G.constructor=I}L.override=function(F){Ext.override(L,F)};J.superclass=J.supr=(function(){return G});J.override=E;Ext.override(L,K);L.extend=function(F){return Ext.extend(L,F)};return L}}(),override:function(e,F){if(F){var E=e.prototype;Ext.apply(E,F);if(Ext.isIE&&F.hasOwnProperty("toString")){E.toString=F.toString}}},namespace:function(){var G=arguments.length,H=0,E,F,e,J,I,K;for(;H0){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(;c0){for(var p=0;p=2)||(parseInt(a[1],10)>=7)||(parseInt(a[2],10)>=1),g={},d=function(i,j){if(i&&i.firstChild){while(j){if(j===i){return true}j=j.parentNode;if(j&&(j.nodeType!=1)){j=null}}}return false},b=function(i){return !d(i.currentTarget,Ext.lib.Event.getRelatedTarget(i))};Ext.lib.Dom={getViewWidth:function(i){return i?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(i){return i?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){var i=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;return Math.max(i,this.getViewportHeight())},getDocumentWidth:function(){var i=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;return Math.max(i,this.getViewportWidth())},getViewportHeight:function(){var i=self.innerHeight;var j=document.compatMode;if((j||Ext.isIE)&&!Ext.isOpera){i=(j=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return i},getViewportWidth:function(){var i=self.innerWidth;var j=document.compatMode;if(j||Ext.isIE){i=(j=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return i},isAncestor:function(j,k){var i=false;j=Ext.getDom(j);k=Ext.getDom(k);if(j&&k){if(j.contains){return j.contains(k)}else{if(j.compareDocumentPosition){return !!(j.compareDocumentPosition(k)&16)}else{while(k=k.parentNode){i=k==j||i}}}}return i},getRegion:function(i){return Ext.lib.Region.getRegion(i)},getY:function(i){return this.getXY(i)[1]},getX:function(i){return this.getXY(i)[0]},getXY:function(k){var j,o,r,s,n=(document.body||document.documentElement);k=Ext.getDom(k);if(k==n){return[0,0]}if(k.getBoundingClientRect){r=k.getBoundingClientRect();s=f(document).getScroll();return[Math.round(r.left+s.left),Math.round(r.top+s.top)]}var t=0,q=0;j=k;var i=f(k).getStyle("position")=="absolute";while(j){t+=j.offsetLeft;q+=j.offsetTop;if(!i&&f(j).getStyle("position")=="absolute"){i=true}if(Ext.isGecko){o=f(j);var u=parseInt(o.getStyle("borderTopWidth"),10)||0;var l=parseInt(o.getStyle("borderLeftWidth"),10)||0;t+=l;q+=u;if(j!=k&&o.getStyle("overflow")!="visible"){t+=l;q+=u}}j=j.offsetParent}if(Ext.isSafari&&i){t-=n.offsetLeft;q-=n.offsetTop}if(Ext.isGecko&&!i){var m=f(n);t+=parseInt(m.getStyle("borderLeftWidth"),10)||0;q+=parseInt(m.getStyle("borderTopWidth"),10)||0}j=k.parentNode;while(j&&j!=n){if(!Ext.isOpera||(j.tagName!="TR"&&f(j).getStyle("display")!="inline")){t-=j.scrollLeft;q-=j.scrollTop}j=j.parentNode}return[t,q]},setXY:function(i,j){i=Ext.fly(i,"_setXY");i.position();var k=i.translatePoints(j);if(j[0]!==false){i.dom.style.left=k.left+"px"}if(j[1]!==false){i.dom.style.top=k.top+"px"}},setX:function(j,i){this.setXY(j,[i,false])},setY:function(i,j){this.setXY(i,[false,j])}};Ext.lib.Event={getPageX:function(i){return Event.pointerX(i.browserEvent||i)},getPageY:function(i){return Event.pointerY(i.browserEvent||i)},getXY:function(i){i=i.browserEvent||i;return[Event.pointerX(i),Event.pointerY(i)]},getTarget:function(i){return Event.element(i.browserEvent||i)},resolveTextNode:Ext.isGecko?function(j){if(!j){return}var i=HTMLElement.prototype.toString.call(j);if(i=="[xpconnect wrapped native prototype]"||i=="[object XULElement]"){return}return j.nodeType==3?j.parentNode:j}:function(i){return i&&i.nodeType==3?i.parentNode:i},getRelatedTarget:function(j){j=j.browserEvent||j;var i=j.relatedTarget;if(!i){if(j.type=="mouseout"){i=j.toElement}else{if(j.type=="mouseover"){i=j.fromElement}}}return this.resolveTextNode(i)},on:function(k,i,j){if((i=="mouseenter"||i=="mouseleave")&&!h){var l=g[k.id]||(g[k.id]={});l[i]=j;j=j.createInterceptor(b);i=(i=="mouseenter")?"mouseover":"mouseout"}Event.observe(k,i,j,false)},un:function(k,i,j){if((i=="mouseenter"||i=="mouseleave")&&!h){var m=g[k.id],l=m&&m[i];if(l){j=l.fn;delete m[i];i=(i=="mouseenter")?"mouseover":"mouseout"}}Event.stopObserving(k,i,j,false)},purgeElement:function(i){},preventDefault:function(i){i=i.browserEvent||i;if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}},stopPropagation:function(i){i=i.browserEvent||i;if(i.stopPropagation){i.stopPropagation()}else{i.cancelBubble=true}},stopEvent:function(i){Event.stop(i.browserEvent||i)},onAvailable:function(n,j,i){var m=new Date(),l;var k=function(){if(m.getElapsed()>10000){clearInterval(l)}var o=document.getElementById(n);if(o){clearInterval(l);j.call(i||window,o)}};l=setInterval(k,50)}};Ext.lib.Ajax=function(){var k=function(l){return l.success?function(m){l.success.call(l.scope||window,i(l,m))}:Ext.emptyFn};var j=function(l){return l.failure?function(m){l.failure.call(l.scope||window,i(l,m))}:Ext.emptyFn};var i=function(l,r){var n={},p,m,o;try{p=r.getAllResponseHeaders();Ext.each(p.replace(/\r\n/g,"\n").split("\n"),function(s){m=s.indexOf(":");if(m>=0){o=s.substr(0,m).toLowerCase();if(s.charAt(m+1)==" "){++m}n[o]=s.substr(m+1)}})}catch(q){}return{responseText:r.responseText,responseXML:r.responseXML,argument:l.argument,status:r.status,statusText:r.statusText,getResponseHeader:function(s){return n[s.toLowerCase()]},getAllResponseHeaders:function(){return p}}};return{request:function(s,p,l,q,m){var r={method:s,parameters:q||"",timeout:l.timeout,onSuccess:k(l),onFailure:j(l)};if(m){var n=m.headers;if(n){r.requestHeaders=n}if(m.xmlData){s=(s?s:(m.method?m.method:"POST"));if(!n||!n["Content-Type"]){r.contentType="text/xml"}r.postBody=m.xmlData;delete r.parameters}if(m.jsonData){s=(s?s:(m.method?m.method:"POST"));if(!n||!n["Content-Type"]){r.contentType="application/json"}r.postBody=typeof m.jsonData=="object"?Ext.encode(m.jsonData):m.jsonData;delete r.parameters}}new Ajax.Request(p,r)},formRequest:function(p,o,m,q,l,n){new Ajax.Request(o,{method:Ext.getDom(p).method||"POST",parameters:Form.serialize(p)+(q?"&"+q:""),timeout:m.timeout,onSuccess:k(m),onFailure:j(m)})},isCallInProgress:function(l){return false},abort:function(l){return false},serializeForm:function(l){return Form.serialize(l.dom||l)}}}();Ext.lib.Anim=function(){var i={easeOut:function(k){return 1-Math.pow(1-k,2)},easeIn:function(k){return 1-Math.pow(1-k,2)}};var j=function(k,l){return{stop:function(m){this.effect.cancel()},isAnimated:function(){return this.effect.state=="running"},proxyCallback:function(){Ext.callback(k,l)}}};return{scroll:function(n,l,p,q,k,m){var o=j(k,m);n=Ext.getDom(n);if(typeof l.scroll.to[0]=="number"){n.scrollLeft=l.scroll.to[0]}if(typeof l.scroll.to[1]=="number"){n.scrollTop=l.scroll.to[1]}o.proxyCallback();return o},motion:function(n,l,o,p,k,m){return this.run(n,l,o,p,k,m)},color:function(n,l,o,p,k,m){return this.run(n,l,o,p,k,m)},run:function(m,v,r,u,n,x,w){var l={};for(var q in v){switch(q){case"points":var t,z,s=Ext.fly(m,"_animrun");s.position();if(t=v.points.by){var y=s.getXY();z=s.translatePoints([y[0]+t[0],y[1]+t[1]])}else{z=s.translatePoints(v.points.to)}l.left=z.left+"px";l.top=z.top+"px";break;case"width":l.width=v.width.to+"px";break;case"height":l.height=v.height.to+"px";break;case"opacity":l.opacity=String(v.opacity.to);break;default:l[q]=String(v[q].to);break}}var p=j(n,x);p.effect=new Effect.Morph(Ext.id(m),{duration:r,afterFinish:p.proxyCallback,transition:i[u]||Effect.Transitions.linear,style:l});return p}}}();function f(i){if(!e){e=new Ext.Element.Flyweight()}e.dom=i;return e}Ext.lib.Region=function(k,m,i,j){this.top=k;this[1]=k;this.right=m;this.bottom=i;this.left=j;this[0]=j};Ext.lib.Region.prototype={contains:function(i){return(i.left>=this.left&&i.right<=this.right&&i.top>=this.top&&i.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(n){var k=Math.max(this.top,n.top);var m=Math.min(this.right,n.right);var i=Math.min(this.bottom,n.bottom);var j=Math.max(this.left,n.left);if(i>=k&&m>=j){return new Ext.lib.Region(k,m,i,j)}else{return null}},union:function(n){var k=Math.min(this.top,n.top);var m=Math.max(this.right,n.right);var i=Math.max(this.bottom,n.bottom);var j=Math.min(this.left,n.left);return new Ext.lib.Region(k,m,i,j)},constrainTo:function(i){this.top=this.top.constrain(i.top,i.bottom);this.bottom=this.bottom.constrain(i.top,i.bottom);this.left=this.left.constrain(i.left,i.right);this.right=this.right.constrain(i.left,i.right);return this},adjust:function(k,j,i,m){this.top+=k;this.left+=j;this.right+=m;this.bottom+=i;return this}};Ext.lib.Region.getRegion=function(m){var o=Ext.lib.Dom.getXY(m);var k=o[1];var n=o[0]+m.offsetWidth;var i=o[1]+m.offsetHeight;var j=o[0];return new Ext.lib.Region(k,n,i,j)};Ext.lib.Point=function(i,j){if(Ext.isArray(i)){j=i[1];i=i[0]}this.x=this.right=this.left=this[0]=i;this.y=this.top=this.bottom=this[1]=j};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function c(){var i=Function.prototype;delete i.createSequence;delete i.defer;delete i.createDelegate;delete i.createCallback;delete i.createInterceptor;window.detachEvent("onunload",c)}window.attachEvent("onunload",c)}})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter-debug.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter-debug.js deleted file mode 100644 index 621ad03967..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter-debug.js +++ /dev/null @@ -1,1612 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -// for old browsers -window.undefined = window.undefined; - -/** - * @class Ext - * Ext core utilities and functions. - * @singleton - */ - -Ext = { - /** - * The version of the framework - * @type String - */ - version : '3.4.0', - versionDetail : { - major : 3, - minor : 4, - patch : 0 - } -}; - -/** - * Copies all the properties of config to obj. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @param {Object} defaults A different object that will also be applied for default values - * @return {Object} returns obj - * @member Ext apply - */ -Ext.apply = function(o, c, defaults){ - // no "this" reference for friendly out of scope calls - if(defaults){ - Ext.apply(o, defaults); - } - if(o && c && typeof c == 'object'){ - for(var p in c){ - o[p] = c[p]; - } - } - return o; -}; - -(function(){ - var idSeed = 0, - toString = Object.prototype.toString, - ua = navigator.userAgent.toLowerCase(), - check = function(r){ - return r.test(ua); - }, - DOC = document, - docMode = DOC.documentMode, - isStrict = DOC.compatMode == "CSS1Compat", - isOpera = check(/opera/), - isChrome = check(/\bchrome\b/), - isWebKit = check(/webkit/), - isSafari = !isChrome && check(/safari/), - isSafari2 = isSafari && check(/applewebkit\/4/), // unique to Safari 2 - isSafari3 = isSafari && check(/version\/3/), - isSafari4 = isSafari && check(/version\/4/), - isIE = !isOpera && check(/msie/), - isIE7 = isIE && (check(/msie 7/) || docMode == 7), - isIE8 = isIE && (check(/msie 8/) && docMode != 7), - isIE9 = isIE && check(/msie 9/), - isIE6 = isIE && !isIE7 && !isIE8 && !isIE9, - isGecko = !isWebKit && check(/gecko/), - isGecko2 = isGecko && check(/rv:1\.8/), - isGecko3 = isGecko && check(/rv:1\.9/), - isBorderBox = isIE && !isStrict, - isWindows = check(/windows|win32/), - isMac = check(/macintosh|mac os x/), - isAir = check(/adobeair/), - isLinux = check(/linux/), - isSecure = /^https/i.test(window.location.protocol); - - // remove css image flicker - if(isIE6){ - try{ - DOC.execCommand("BackgroundImageCache", false, true); - }catch(e){} - } - - Ext.apply(Ext, { - /** - * URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent - * the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). - * @type String - */ - SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', - /** - * True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode - * @type Boolean - */ - isStrict : isStrict, - /** - * True if the page is running over SSL - * @type Boolean - */ - isSecure : isSecure, - /** - * True when the document is fully initialized and ready for action - * @type Boolean - */ - isReady : false, - - /** - * True if the {@link Ext.Fx} Class is available - * @type Boolean - * @property enableFx - */ - - /** - * HIGHLY EXPERIMENTAL - * True to force css based border-box model override and turning off javascript based adjustments. This is a - * runtime configuration and must be set before onReady. - * @type Boolean - */ - enableForcedBoxModel : false, - - /** - * True to automatically uncache orphaned Ext.Elements periodically (defaults to true) - * @type Boolean - */ - enableGarbageCollector : true, - - /** - * True to automatically purge event listeners during garbageCollection (defaults to false). - * @type Boolean - */ - enableListenerCollection : false, - - /** - * EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed. - * Currently not optimized for performance. - * @type Boolean - */ - enableNestedListenerRemoval : false, - - /** - * Indicates whether to use native browser parsing for JSON methods. - * This option is ignored if the browser does not support native JSON methods. - * Note: Native JSON methods will not work with objects that have functions. - * Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) - * @type Boolean - */ - USE_NATIVE_JSON : false, - - /** - * Copies all the properties of config to obj if they don't already exist. - * @param {Object} obj The receiver of the properties - * @param {Object} config The source of the properties - * @return {Object} returns obj - */ - applyIf : function(o, c){ - if(o){ - for(var p in c){ - if(!Ext.isDefined(o[p])){ - o[p] = c[p]; - } - } - } - return o; - }, - - /** - * Generates unique ids. If the element already has an id, it is unchanged - * @param {Mixed} el (optional) The element to generate an id for - * @param {String} prefix (optional) Id prefix (defaults "ext-gen") - * @return {String} The generated Id. - */ - id : function(el, prefix){ - el = Ext.getDom(el, true) || {}; - if (!el.id) { - el.id = (prefix || "ext-gen") + (++idSeed); - } - return el.id; - }, - - /** - *

Extends one class to create a subclass and optionally overrides members with the passed literal. This method - * also adds the function "override()" to the subclass that can be used to override members of the class.

- * For example, to create a subclass of Ext GridPanel: - *

-MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
-    constructor: function(config) {
-
-//      Create configuration for this Grid.
-        var store = new Ext.data.Store({...});
-        var colModel = new Ext.grid.ColumnModel({...});
-
-//      Create a new config object containing our computed properties
-//      *plus* whatever was in the config parameter.
-        config = Ext.apply({
-            store: store,
-            colModel: colModel
-        }, config);
-
-        MyGridPanel.superclass.constructor.call(this, config);
-
-//      Your postprocessing here
-    },
-
-    yourMethod: function() {
-        // etc.
-    }
-});
-
- * - *

This function also supports a 3-argument call in which the subclass's constructor is - * passed as an argument. In this form, the parameters are as follows:

- *
    - *
  • subclass : Function
    The subclass constructor.
  • - *
  • superclass : Function
    The constructor of class being extended
  • - *
  • overrides : Object
    A literal with members which are copied into the subclass's - * prototype, and are therefore shared among all instances of the new class.
  • - *
- * - * @param {Function} superclass The constructor of class being extended. - * @param {Object} overrides

A literal with members which are copied into the subclass's - * prototype, and are therefore shared between all instances of the new class.

- *

This may contain a special member named constructor. This is used - * to define the constructor of the new class, and is returned. If this property is - * not specified, a constructor is generated and returned which just calls the - * superclass's constructor passing on its parameters.

- *

It is essential that you call the superclass constructor in any provided constructor. See example code.

- * @return {Function} The subclass constructor from the overrides parameter, or a generated one if not provided. - */ - extend : function(){ - // inline overrides - var io = function(o){ - for(var m in o){ - this[m] = o[m]; - } - }; - var oc = Object.prototype.constructor; - - return function(sb, sp, overrides){ - if(typeof sp == 'object'){ - overrides = sp; - sp = sb; - sb = overrides.constructor != oc ? overrides.constructor : function(){sp.apply(this, arguments);}; - } - var F = function(){}, - sbp, - spp = sp.prototype; - - F.prototype = spp; - sbp = sb.prototype = new F(); - sbp.constructor=sb; - sb.superclass=spp; - if(spp.constructor == oc){ - spp.constructor=sp; - } - sb.override = function(o){ - Ext.override(sb, o); - }; - sbp.superclass = sbp.supr = (function(){ - return spp; - }); - sbp.override = io; - Ext.override(sb, overrides); - sb.extend = function(o){return Ext.extend(sb, o);}; - return sb; - }; - }(), - - /** - * Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name. - * Usage:

-Ext.override(MyClass, {
-    newMethod1: function(){
-        // etc.
-    },
-    newMethod2: function(foo){
-        // etc.
-    }
-});
-
- * @param {Object} origclass The class to override - * @param {Object} overrides The list of functions to add to origClass. This should be specified as an object literal - * containing one or more methods. - * @method override - */ - override : function(origclass, overrides){ - if(overrides){ - var p = origclass.prototype; - Ext.apply(p, overrides); - if(Ext.isIE && overrides.hasOwnProperty('toString')){ - p.toString = overrides.toString; - } - } - }, - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method namespace - */ - namespace : function(){ - var len1 = arguments.length, - i = 0, - len2, - j, - main, - ns, - sub, - current; - - for(; i < len1; ++i) { - main = arguments[i]; - ns = arguments[i].split('.'); - current = window[ns[0]]; - if (current === undefined) { - current = window[ns[0]] = {}; - } - sub = ns.slice(1); - len2 = sub.length; - for(j = 0; j < len2; ++j) { - current = current[sub[j]] = current[sub[j]] || {}; - } - } - return current; - }, - - /** - * Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. - * @param {Object} o - * @param {String} pre (optional) A prefix to add to the url encoded string - * @return {String} - */ - urlEncode : function(o, pre){ - var empty, - buf = [], - e = encodeURIComponent; - - Ext.iterate(o, function(key, item){ - empty = Ext.isEmpty(item); - Ext.each(empty ? key : item, function(val){ - buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : ''); - }); - }); - if(!pre){ - buf.shift(); - pre = ''; - } - return pre + buf.join(''); - }, - - /** - * Takes an encoded URL and and converts it to an object. Example:

-Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
-Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
-
- * @param {String} string - * @param {Boolean} overwrite (optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false). - * @return {Object} A literal with members - */ - urlDecode : function(string, overwrite){ - if(Ext.isEmpty(string)){ - return {}; - } - var obj = {}, - pairs = string.split('&'), - d = decodeURIComponent, - name, - value; - Ext.each(pairs, function(pair) { - pair = pair.split('='); - name = d(pair[0]); - value = d(pair[1]); - obj[name] = overwrite || !obj[name] ? value : - [].concat(obj[name]).concat(value); - }); - return obj; - }, - - /** - * Appends content to the query string of a URL, handling logic for whether to place - * a question mark or ampersand. - * @param {String} url The URL to append to. - * @param {String} s The content to append to the URL. - * @return (String) The resulting URL - */ - urlAppend : function(url, s){ - if(!Ext.isEmpty(s)){ - return url + (url.indexOf('?') === -1 ? '?' : '&') + s; - } - return url; - }, - - /** - * Converts any iterable (numeric indices and a length property) into a true array - * Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on. - * For strings, use this instead: "abc".match(/./g) => [a,b,c]; - * @param {Iterable} the iterable object to be turned into a true Array. - * @return (Array) array - */ - toArray : function(){ - return isIE ? - function(a, i, j, res){ - res = []; - for(var x = 0, len = a.length; x < len; x++) { - res.push(a[x]); - } - return res.slice(i || 0, j || res.length); - } : - function(a, i, j){ - return Array.prototype.slice.call(a, i || 0, j || a.length); - }; - }(), - - isIterable : function(v){ - //check for array or arguments - if(Ext.isArray(v) || v.callee){ - return true; - } - //check for node list type - if(/NodeList|HTMLCollection/.test(toString.call(v))){ - return true; - } - //NodeList has an item and length property - //IXMLDOMNodeList has nextNode method, needs to be checked first. - return ((typeof v.nextNode != 'undefined' || v.item) && Ext.isNumber(v.length)); - }, - - /** - * Iterates an array calling the supplied function. - * @param {Array/NodeList/Mixed} array The array to be iterated. If this - * argument is not really an array, the supplied function is called once. - * @param {Function} fn The function to be called with each item. If the - * supplied function returns false, iteration stops and this method returns - * the current index. This function is called with - * the following arguments: - *
    - *
  • item : Mixed - *
    The item at the current index - * in the passed array
  • - *
  • index : Number - *
    The current index within the array
  • - *
  • allItems : Array - *
    The array passed as the first - * argument to Ext.each.
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. - * Defaults to the item at the current index - * within the passed array. - * @return See description for the fn parameter. - */ - each : function(array, fn, scope){ - if(Ext.isEmpty(array, true)){ - return; - } - if(!Ext.isIterable(array) || Ext.isPrimitive(array)){ - array = [array]; - } - for(var i = 0, len = array.length; i < len; i++){ - if(fn.call(scope || array[i], array[i], i, array) === false){ - return i; - }; - } - }, - - /** - * Iterates either the elements in an array, or each of the properties in an object. - * Note: If you are only iterating arrays, it is better to call {@link #each}. - * @param {Object/Array} object The object or array to be iterated - * @param {Function} fn The function to be called for each iteration. - * The iteration will stop if the supplied function returns false, or - * all array elements / object properties have been covered. The signature - * varies depending on the type of object being interated: - *
    - *
  • Arrays : (Object item, Number index, Array allItems) - *
    - * When iterating an array, the supplied function is called with each item.
  • - *
  • Objects : (String key, Object value, Object) - *
    - * When iterating an object, the supplied function is called with each key-value pair in - * the object, and the iterated object
  • - *
- * @param {Object} scope The scope (this reference) in which the specified function is executed. Defaults to - * the object being iterated. - */ - iterate : function(obj, fn, scope){ - if(Ext.isEmpty(obj)){ - return; - } - if(Ext.isIterable(obj)){ - Ext.each(obj, fn, scope); - return; - }else if(typeof obj == 'object'){ - for(var prop in obj){ - if(obj.hasOwnProperty(prop)){ - if(fn.call(scope || obj, prop, obj[prop], obj) === false){ - return; - }; - } - } - } - }, - - /** - * Return the dom node for the passed String (id), dom node, or Ext.Element. - * Optional 'strict' flag is needed for IE since it can return 'name' and - * 'id' elements by using getElementById. - * Here are some examples: - *

-// gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
-    var dom = Ext.getDom(el);
-    // do something with the dom node
-}
-         * 
- * Note: the dom node to be found actually needs to exist (be rendered, etc) - * when this method is called to be successful. - * @param {Mixed} el - * @return HTMLElement - */ - getDom : function(el, strict){ - if(!el || !DOC){ - return null; - } - if (el.dom){ - return el.dom; - } else { - if (typeof el == 'string') { - var e = DOC.getElementById(el); - // IE returns elements with the 'name' and 'id' attribute. - // we do a strict check to return the element with only the id attribute - if (e && isIE && strict) { - if (el == e.getAttribute('id')) { - return e; - } else { - return null; - } - } - return e; - } else { - return el; - } - } - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getBody : function(){ - return Ext.get(DOC.body || DOC.documentElement); - }, - - /** - * Returns the current document body as an {@link Ext.Element}. - * @return Ext.Element The document body - */ - getHead : function() { - var head; - - return function() { - if (head == undefined) { - head = Ext.get(DOC.getElementsByTagName("head")[0]); - } - - return head; - }; - }(), - - /** - * Removes a DOM node from the document. - */ - /** - *

Removes this element from the document, removes all DOM event listeners, and deletes the cache reference. - * All DOM event listeners are removed from this element. If {@link Ext#enableNestedListenerRemoval} is - * true, then DOM event listeners are also removed from all child nodes. The body node - * will be ignored if passed in.

- * @param {HTMLElement} node The node to remove - */ - removeNode : isIE && !isIE8 ? function(){ - var d; - return function(n){ - if(n && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - d = d || DOC.createElement('div'); - d.appendChild(n); - d.innerHTML = ''; - delete Ext.elCache[n.id]; - } - }; - }() : function(n){ - if(n && n.parentNode && n.tagName != 'BODY'){ - (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n); - n.parentNode.removeChild(n); - delete Ext.elCache[n.id]; - } - }, - - /** - *

Returns true if the passed value is empty.

- *

The value is deemed to be empty if it is

    - *
  • null
  • - *
  • undefined
  • - *
  • an empty array
  • - *
  • a zero length string (Unless the allowBlank parameter is true)
  • - *
- * @param {Mixed} value The value to test - * @param {Boolean} allowBlank (optional) true to allow empty strings (defaults to false) - * @return {Boolean} - */ - isEmpty : function(v, allowBlank){ - return v === null || v === undefined || ((Ext.isArray(v) && !v.length)) || (!allowBlank ? v === '' : false); - }, - - /** - * Returns true if the passed value is a JavaScript array, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isArray : function(v){ - return toString.apply(v) === '[object Array]'; - }, - - /** - * Returns true if the passed object is a JavaScript date object, otherwise false. - * @param {Object} object The object to test - * @return {Boolean} - */ - isDate : function(v){ - return toString.apply(v) === '[object Date]'; - }, - - /** - * Returns true if the passed value is a JavaScript Object, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isObject : function(v){ - return !!v && Object.prototype.toString.call(v) === '[object Object]'; - }, - - /** - * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isPrimitive : function(v){ - return Ext.isString(v) || Ext.isNumber(v) || Ext.isBoolean(v); - }, - - /** - * Returns true if the passed value is a JavaScript Function, otherwise false. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isFunction : function(v){ - return toString.apply(v) === '[object Function]'; - }, - - /** - * Returns true if the passed value is a number. Returns false for non-finite numbers. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isNumber : function(v){ - return typeof v === 'number' && isFinite(v); - }, - - /** - * Returns true if the passed value is a string. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isString : function(v){ - return typeof v === 'string'; - }, - - /** - * Returns true if the passed value is a boolean. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isBoolean : function(v){ - return typeof v === 'boolean'; - }, - - /** - * Returns true if the passed value is an HTMLElement - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isElement : function(v) { - return v ? !!v.tagName : false; - }, - - /** - * Returns true if the passed value is not undefined. - * @param {Mixed} value The value to test - * @return {Boolean} - */ - isDefined : function(v){ - return typeof v !== 'undefined'; - }, - - /** - * True if the detected browser is Opera. - * @type Boolean - */ - isOpera : isOpera, - /** - * True if the detected browser uses WebKit. - * @type Boolean - */ - isWebKit : isWebKit, - /** - * True if the detected browser is Chrome. - * @type Boolean - */ - isChrome : isChrome, - /** - * True if the detected browser is Safari. - * @type Boolean - */ - isSafari : isSafari, - /** - * True if the detected browser is Safari 3.x. - * @type Boolean - */ - isSafari3 : isSafari3, - /** - * True if the detected browser is Safari 4.x. - * @type Boolean - */ - isSafari4 : isSafari4, - /** - * True if the detected browser is Safari 2.x. - * @type Boolean - */ - isSafari2 : isSafari2, - /** - * True if the detected browser is Internet Explorer. - * @type Boolean - */ - isIE : isIE, - /** - * True if the detected browser is Internet Explorer 6.x. - * @type Boolean - */ - isIE6 : isIE6, - /** - * True if the detected browser is Internet Explorer 7.x. - * @type Boolean - */ - isIE7 : isIE7, - /** - * True if the detected browser is Internet Explorer 8.x. - * @type Boolean - */ - isIE8 : isIE8, - /** - * True if the detected browser is Internet Explorer 9.x. - * @type Boolean - */ - isIE9 : isIE9, - /** - * True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). - * @type Boolean - */ - isGecko : isGecko, - /** - * True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). - * @type Boolean - */ - isGecko2 : isGecko2, - /** - * True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). - * @type Boolean - */ - isGecko3 : isGecko3, - /** - * True if the detected browser is Internet Explorer running in non-strict mode. - * @type Boolean - */ - isBorderBox : isBorderBox, - /** - * True if the detected platform is Linux. - * @type Boolean - */ - isLinux : isLinux, - /** - * True if the detected platform is Windows. - * @type Boolean - */ - isWindows : isWindows, - /** - * True if the detected platform is Mac OS. - * @type Boolean - */ - isMac : isMac, - /** - * True if the detected platform is Adobe Air. - * @type Boolean - */ - isAir : isAir - }); - - /** - * Creates namespaces to be used for scoping variables and classes so that they are not global. - * Specifying the last node of a namespace implicitly creates all other nodes. Usage: - *

-Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
-
- * @param {String} namespace1 - * @param {String} namespace2 - * @param {String} etc - * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created) - * @method ns - */ - Ext.ns = Ext.namespace; -})(); - -Ext.ns('Ext.util', 'Ext.lib', 'Ext.data', 'Ext.supports'); - -Ext.elCache = {}; - -/** - * @class Function - * These functions are available on every Function object (any JavaScript function). - */ -Ext.apply(Function.prototype, { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-sayHi('Fred'); // alerts "Hi, Fred"
-
-// create a new function that validates input without
-// directly modifying the original function:
-var sayHiToFriend = sayHi.createInterceptor(function(name){
-    return name == 'Brian';
-});
-
-sayHiToFriend('Fred');  // no alert
-sayHiToFriend('Brian'); // alerts "Hi, Brian"
-
- * @param {Function} fcn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor : function(fcn, scope){ - var method = this; - return !Ext.isFunction(fcn) ? - this : - function() { - var me = this, - args = arguments; - fcn.target = me; - fcn.method = method; - return (fcn.apply(scope || me || window, args) !== false) ? - method.apply(me || window, args) : - null; - }; - }, - - /** - * Creates a callback that passes arguments[0], arguments[1], arguments[2], ... - * Call directly on any function. Example: myFunction.createCallback(arg1, arg2) - * Will create a function that is bound to those 2 args. If a specific scope is required in the - * callback, use {@link #createDelegate} instead. The function returned by createCallback always - * executes in the window scope. - *

This method is required when you want to pass arguments to a callback function. If no arguments - * are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn). - * However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function - * would simply execute immediately when the code is parsed. Example usage: - *


-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// clicking the button alerts "Hi, Fred"
-new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody(),
-    handler: sayHi.createCallback('Fred')
-});
-
- * @return {Function} The new function - */ - createCallback : function(/*args...*/){ - // make args available, in function below - var args = arguments, - method = this; - return function() { - return method.apply(window, args); - }; - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: this.myFunction.createDelegate(this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *

-var sayHi = function(name){
-    // Note this use of "this.text" here.  This function expects to
-    // execute within a scope that contains a text property.  In this
-    // example, the "this" variable is pointing to the btn object that
-    // was passed in createDelegate below.
-    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
-}
-
-var btn = new Ext.Button({
-    text: 'Say Hi',
-    renderTo: Ext.getBody()
-});
-
-// This callback will execute in the scope of the
-// button instance. Clicking the button alerts
-// "Hi, Fred. You clicked the "Say Hi" button."
-btn.on('click', sayHi.createDelegate(btn, ['Fred']));
-
- * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate : function(obj, args, appendArgs){ - var method = this; - return function() { - var callArgs = args || arguments; - if (appendArgs === true){ - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - }else if (Ext.isNumber(appendArgs)){ - callArgs = Array.prototype.slice.call(arguments, 0); // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); // splice them in - } - return method.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *

-var sayHi = function(name){
-    alert('Hi, ' + name);
-}
-
-// executes immediately:
-sayHi('Fred');
-
-// executes after 2 seconds:
-sayHi.defer(2000, this, ['Fred']);
-
-// this syntax is sometimes useful for deferring
-// execution of an anonymous function:
-(function(){
-    alert('Anonymous');
-}).defer(100);
-
- * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer : function(millis, obj, args, appendArgs){ - var fn = this.createDelegate(obj, args, appendArgs); - if(millis > 0){ - return setTimeout(fn, millis); - } - fn(); - return 0; - } -}); - -/** - * @class String - * These functions are available on every String object. - */ -Ext.applyIf(String, { - /** - * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each - * token must be unique, and must increment in the format {0}, {1}, etc. Example usage: - *

-var cls = 'my-class', text = 'Some text';
-var s = String.format('<div class="{0}">{1}</div>', cls, text);
-// s now contains the string: '<div class="my-class">Some text</div>'
-     * 
- * @param {String} string The tokenized string to be formatted - * @param {String} value1 The value to replace token {0} - * @param {String} value2 Etc... - * @return {String} The formatted string - * @static - */ - format : function(format){ - var args = Ext.toArray(arguments, 1); - return format.replace(/\{(\d+)\}/g, function(m, i){ - return args[i]; - }); - } -}); - -/** - * @class Array - */ -Ext.applyIf(Array.prototype, { - /** - * Checks whether or not the specified object exists in the array. - * @param {Object} o The object to check for - * @param {Number} from (Optional) The index at which to begin the search - * @return {Number} The index of o in the array (or -1 if it is not found) - */ - indexOf : function(o, from){ - var len = this.length; - from = from || 0; - from += (from < 0) ? len : 0; - for (; from < len; ++from){ - if(this[from] === o){ - return from; - } - } - return -1; - }, - - /** - * Removes the specified object from the array. If the object is not found nothing happens. - * @param {Object} o The object to remove - * @return {Array} this array - */ - remove : function(o){ - var index = this.indexOf(o); - if(index != -1){ - this.splice(index, 1); - } - return this; - } -}); -/** - * @class Ext.util.TaskRunner - * Provides the ability to execute one or more arbitrary tasks in a multithreaded - * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but - * if needed, you can create separate instances of TaskRunner. Any number of - * separate tasks can be started at any time and will run independently of each - * other. Example usage: - *

-// Start a simple clock task that updates a div once per second
-var updateClock = function(){
-    Ext.fly('clock').update(new Date().format('g:i:s A'));
-} 
-var task = {
-    run: updateClock,
-    interval: 1000 //1 second
-}
-var runner = new Ext.util.TaskRunner();
-runner.start(task);
-
-// equivalent using TaskMgr
-Ext.TaskMgr.start({
-    run: updateClock,
-    interval: 1000
-});
-
- * 
- *

See the {@link #start} method for details about how to configure a task object.

- * Also see {@link Ext.util.DelayedTask}. - * - * @constructor - * @param {Number} interval (optional) The minimum precision in milliseconds supported by this TaskRunner instance - * (defaults to 10) - */ -Ext.util.TaskRunner = function(interval){ - interval = interval || 10; - var tasks = [], - removeQueue = [], - id = 0, - running = false, - - // private - stopThread = function(){ - running = false; - clearInterval(id); - id = 0; - }, - - // private - startThread = function(){ - if(!running){ - running = true; - id = setInterval(runTasks, interval); - } - }, - - // private - removeTask = function(t){ - removeQueue.push(t); - if(t.onStop){ - t.onStop.apply(t.scope || t); - } - }, - - // private - runTasks = function(){ - var rqLen = removeQueue.length, - now = new Date().getTime(); - - if(rqLen > 0){ - for(var i = 0; i < rqLen; i++){ - tasks.remove(removeQueue[i]); - } - removeQueue = []; - if(tasks.length < 1){ - stopThread(); - return; - } - } - for(var i = 0, t, itime, rt, len = tasks.length; i < len; ++i){ - t = tasks[i]; - itime = now - t.taskRunTime; - if(t.interval <= itime){ - rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]); - t.taskRunTime = now; - if(rt === false || t.taskRunCount === t.repeat){ - removeTask(t); - return; - } - } - if(t.duration && t.duration <= (now - t.taskStartTime)){ - removeTask(t); - } - } - }; - - /** - * Starts a new task. - * @method start - * @param {Object} task

A config object that supports the following properties:

    - *
  • run : Function

    The function to execute each time the task is invoked. The - * function will be called at each interval and passed the args argument if specified, and the - * current invocation count if not.

    - *

    If a particular scope (this reference) is required, be sure to specify it using the scope argument.

    - *

    Return false from this function to terminate the task.

  • - *
  • interval : Number
    The frequency in milliseconds with which the task - * should be invoked.
  • - *
  • args : Array
    (optional) An array of arguments to be passed to the function - * specified by run. If not specified, the current invocation count is passed.
  • - *
  • scope : Object
    (optional) The scope (this reference) in which to execute the - * run function. Defaults to the task config object.
  • - *
  • duration : Number
    (optional) The length of time in milliseconds to invoke - * the task before stopping automatically (defaults to indefinite).
  • - *
  • repeat : Number
    (optional) The number of times to invoke the task before - * stopping automatically (defaults to indefinite).
  • - *

- *

Before each invocation, Ext injects the property taskRunCount into the task object so - * that calculations based on the repeat count can be performed.

- * @return {Object} The task - */ - this.start = function(task){ - tasks.push(task); - task.taskStartTime = new Date().getTime(); - task.taskRunTime = 0; - task.taskRunCount = 0; - startThread(); - return task; - }; - - /** - * Stops an existing running task. - * @method stop - * @param {Object} task The task to stop - * @return {Object} The task - */ - this.stop = function(task){ - removeTask(task); - return task; - }; - - /** - * Stops all tasks that are currently running. - * @method stopAll - */ - this.stopAll = function(){ - stopThread(); - for(var i = 0, len = tasks.length; i < len; i++){ - if(tasks[i].onStop){ - tasks[i].onStop(); - } - } - tasks = []; - removeQueue = []; - }; -}; - -/** - * @class Ext.TaskMgr - * @extends Ext.util.TaskRunner - * A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See - * {@link Ext.util.TaskRunner} for supported methods and task config properties. - *

-// Start a simple clock task that updates a div once per second
-var task = {
-    run: function(){
-        Ext.fly('clock').update(new Date().format('g:i:s A'));
-    },
-    interval: 1000 //1 second
-}
-Ext.TaskMgr.start(task);
-
- *

See the {@link #start} method for details about how to configure a task object.

- * @singleton - */ -Ext.TaskMgr = new Ext.util.TaskRunner();if(typeof YAHOO == "undefined"){ - throw "Unable to load Ext, core YUI utilities (yahoo, dom, event) not found."; -} - -(function(){ - var E = YAHOO.util.Event, - D = YAHOO.util.Dom, - CN = YAHOO.util.Connect, - ES = YAHOO.util.Easing, - A = YAHOO.util.Anim, - libFlyweight, - version = YAHOO.env.getVersion('yahoo').version.split('.'), - mouseEnterSupported = parseInt(version[0], 10) >= 3, - mouseCache = {}, - elContains = function(parent, child){ - if(parent && parent.firstChild){ - while(child){ - if(child === parent){ - return true; - } - child = child.parentNode; - if(child && (child.nodeType != 1)){ - child = null; - } - } - } - return false; - }, checkRelatedTarget = function(e){ - return !elContains(e.currentTarget, Ext.lib.Event.getRelatedTarget(e)); - }; - -Ext.lib.Dom = { - getViewWidth : function(full){ - return full ? D.getDocumentWidth() : D.getViewportWidth(); - }, - - getViewHeight : function(full){ - return full ? D.getDocumentHeight() : D.getViewportHeight(); - }, - - isAncestor : function(haystack, needle){ - return D.isAncestor(haystack, needle); - }, - - getRegion : function(el){ - return D.getRegion(el); - }, - - getY : function(el){ - return this.getXY(el)[1]; - }, - - getX : function(el){ - return this.getXY(el)[0]; - }, - - // original version based on YahooUI getXY - // this version fixes several issues in Safari and FF - // and boosts performance by removing the batch overhead, repetitive dom lookups and array index calls - getXY : function(el){ - var p, pe, b, scroll, bd = (document.body || document.documentElement); - el = Ext.getDom(el); - - if(el == bd){ - return [0, 0]; - } - - if (el.getBoundingClientRect) { - b = el.getBoundingClientRect(); - scroll = fly(document).getScroll(); - return [Math.round(b.left + scroll.left), Math.round(b.top + scroll.top)]; - } - var x = 0, y = 0; - - p = el; - - var hasAbsolute = fly(el).getStyle("position") == "absolute"; - - while (p) { - - x += p.offsetLeft; - y += p.offsetTop; - - if (!hasAbsolute && fly(p).getStyle("position") == "absolute") { - hasAbsolute = true; - } - - if (Ext.isGecko) { - pe = fly(p); - - var bt = parseInt(pe.getStyle("borderTopWidth"), 10) || 0; - var bl = parseInt(pe.getStyle("borderLeftWidth"), 10) || 0; - - - x += bl; - y += bt; - - - if (p != el && pe.getStyle('overflow') != 'visible') { - x += bl; - y += bt; - } - } - p = p.offsetParent; - } - - if (Ext.isSafari && hasAbsolute) { - x -= bd.offsetLeft; - y -= bd.offsetTop; - } - - if (Ext.isGecko && !hasAbsolute) { - var dbd = fly(bd); - x += parseInt(dbd.getStyle("borderLeftWidth"), 10) || 0; - y += parseInt(dbd.getStyle("borderTopWidth"), 10) || 0; - } - - p = el.parentNode; - while (p && p != bd) { - if (!Ext.isOpera || (p.tagName != 'TR' && fly(p).getStyle("display") != "inline")) { - x -= p.scrollLeft; - y -= p.scrollTop; - } - p = p.parentNode; - } - return [x, y]; - }, - - setXY : function(el, xy){ - el = Ext.fly(el, '_setXY'); - el.position(); - var pts = el.translatePoints(xy); - if(xy[0] !== false){ - el.dom.style.left = pts.left + "px"; - } - if(xy[1] !== false){ - el.dom.style.top = pts.top + "px"; - } - }, - - setX : function(el, x){ - this.setXY(el, [x, false]); - }, - - setY : function(el, y){ - this.setXY(el, [false, y]); - } -}; - -Ext.lib.Event = { - getPageX : function(e){ - return E.getPageX(e.browserEvent || e); - }, - - getPageY : function(e){ - return E.getPageY(e.browserEvent || e); - }, - - getXY : function(e){ - return E.getXY(e.browserEvent || e); - }, - - getTarget : function(e){ - return E.getTarget(e.browserEvent || e); - }, - - getRelatedTarget : function(e){ - return E.getRelatedTarget(e.browserEvent || e); - }, - - on : function(el, eventName, fn, scope, override){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id] || (mouseCache[el.id] = {}); - item[eventName] = fn; - fn = fn.createInterceptor(checkRelatedTarget); - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - E.on(el, eventName, fn, scope, override); - }, - - un : function(el, eventName, fn){ - if((eventName == 'mouseenter' || eventName == 'mouseleave') && !mouseEnterSupported){ - var item = mouseCache[el.id], - ev = item && item[eventName]; - - if(ev){ - fn = ev.fn; - delete item[eventName]; - eventName = (eventName == 'mouseenter') ? 'mouseover' : 'mouseout'; - } - } - E.removeListener(el, eventName, fn);; - }, - - purgeElement : function(el){ - E.purgeElement(el); - }, - - preventDefault : function(e){ - E.preventDefault(e.browserEvent || e); - }, - - stopPropagation : function(e){ - E.stopPropagation(e.browserEvent || e); - }, - - stopEvent : function(e){ - E.stopEvent(e.browserEvent || e); - }, - - onAvailable : function(el, fn, scope, override){ - return E.onAvailable(el, fn, scope, override); - } -}; - -Ext.lib.Ajax = { - request : function(method, uri, cb, data, options){ - if(options){ - var hs = options.headers; - if(hs){ - for(var h in hs){ - if(hs.hasOwnProperty(h)){ - CN.initHeader(h, hs[h], false); - } - } - } - if(options.xmlData){ - if (!hs || !hs['Content-Type']){ - CN.initHeader('Content-Type', 'text/xml', false); - } - method = (method ? method : (options.method ? options.method : 'POST')); - data = options.xmlData; - }else if(options.jsonData){ - if (!hs || !hs['Content-Type']){ - CN.initHeader('Content-Type', 'application/json', false); - } - method = (method ? method : (options.method ? options.method : 'POST')); - data = typeof options.jsonData == 'object' ? Ext.encode(options.jsonData) : options.jsonData; - } - } - return CN.asyncRequest(method, uri, cb, data); - }, - - formRequest : function(form, uri, cb, data, isUpload, sslUri){ - CN.setForm(form, isUpload, sslUri); - return CN.asyncRequest(Ext.getDom(form).method ||'POST', uri, cb, data); - }, - - isCallInProgress : function(trans){ - return CN.isCallInProgress(trans); - }, - - abort : function(trans){ - return CN.abort(trans); - }, - - serializeForm : function(form){ - var d = CN.setForm(form.dom || form); - CN.resetFormState(); - return d; - } -}; - -Ext.lib.Region = YAHOO.util.Region; -Ext.lib.Point = YAHOO.util.Point; - - -Ext.lib.Anim = { - scroll : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.Scroll); - }, - - motion : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.Motion); - }, - - color : function(el, args, duration, easing, cb, scope){ - this.run(el, args, duration, easing, cb, scope, YAHOO.util.ColorAnim); - }, - - run : function(el, args, duration, easing, cb, scope, type){ - type = type || YAHOO.util.Anim; - if(typeof easing == "string"){ - easing = YAHOO.util.Easing[easing]; - } - var anim = new type(el, args, duration, easing); - anim.animateX(function(){ - Ext.callback(cb, scope); - }); - return anim; - } -}; - -// all lib flyweight calls use their own flyweight to prevent collisions with developer flyweights -function fly(el){ - if(!libFlyweight){ - libFlyweight = new Ext.Element.Flyweight(); - } - libFlyweight.dom = el; - return libFlyweight; -} - -// prevent IE leaks -if(Ext.isIE) { - function fnCleanUp() { - var p = Function.prototype; - delete p.createSequence; - delete p.defer; - delete p.createDelegate; - delete p.createCallback; - delete p.createInterceptor; - - window.detachEvent("onunload", fnCleanUp); - } - window.attachEvent("onunload", fnCleanUp); -} -// various overrides - -// add ability for callbacks with animations -if(YAHOO.util.Anim){ - YAHOO.util.Anim.prototype.animateX = function(callback, scope){ - var f = function(){ - this.onComplete.unsubscribe(f); - if(typeof callback == "function"){ - callback.call(scope || this, this); - } - }; - this.onComplete.subscribe(f, this, true); - this.animate(); - }; -} - -if(YAHOO.util.DragDrop && Ext.dd.DragDrop){ - YAHOO.util.DragDrop.defaultPadding = Ext.dd.DragDrop.defaultPadding; - YAHOO.util.DragDrop.constrainTo = Ext.dd.DragDrop.constrainTo; -} - -YAHOO.util.Dom.getXY = function(el) { - var f = function(el) { - return Ext.lib.Dom.getXY(el); - }; - return YAHOO.util.Dom.batch(el, f, YAHOO.util.Dom, true); -}; - - -// workaround for Safari anim duration speed problems -if(YAHOO.util.AnimMgr){ - YAHOO.util.AnimMgr.fps = 1000; -} - -YAHOO.util.Region.prototype.adjust = function(t, l, b, r){ - this.top += t; - this.left += l; - this.right += r; - this.bottom += b; - return this; -}; - -YAHOO.util.Region.prototype.constrainTo = function(r) { - this.top = this.top.constrain(r.top, r.bottom); - this.bottom = this.bottom.constrain(r.top, r.bottom); - this.left = this.left.constrain(r.left, r.right); - this.right = this.right.constrain(r.left, r.right); - return this; -}; - - -})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter.js b/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter.js deleted file mode 100644 index 222610e675..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/adapter/yui/ext-yui-adapter.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -window.undefined=window.undefined;Ext={version:"3.4.0",versionDetail:{major:3,minor:4,patch:0}};Ext.apply=function(d,e,b){if(b){Ext.apply(d,b)}if(d&&e&&typeof e=="object"){for(var a in e){d[a]=e[a]}}return d};(function(){var g=0,u=Object.prototype.toString,v=navigator.userAgent.toLowerCase(),A=function(e){return e.test(v)},i=document,n=i.documentMode,l=i.compatMode=="CSS1Compat",C=A(/opera/),h=A(/\bchrome\b/),w=A(/webkit/),z=!h&&A(/safari/),f=z&&A(/applewebkit\/4/),b=z&&A(/version\/3/),D=z&&A(/version\/4/),t=!C&&A(/msie/),r=t&&(A(/msie 7/)||n==7),q=t&&(A(/msie 8/)&&n!=7),p=t&&A(/msie 9/),s=t&&!r&&!q&&!p,o=!w&&A(/gecko/),d=o&&A(/rv:1\.8/),a=o&&A(/rv:1\.9/),x=t&&!l,B=A(/windows|win32/),k=A(/macintosh|mac os x/),j=A(/adobeair/),m=A(/linux/),c=/^https/i.test(window.location.protocol);if(s){try{i.execCommand("BackgroundImageCache",false,true)}catch(y){}}Ext.apply(Ext,{SSL_SECURE_URL:c&&t?'javascript:""':"about:blank",isStrict:l,isSecure:c,isReady:false,enableForcedBoxModel:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(E,F){if(E){for(var e in F){if(!Ext.isDefined(E[e])){E[e]=F[e]}}}return E},id:function(e,E){e=Ext.getDom(e,true)||{};if(!e.id){e.id=(E||"ext-gen")+(++g)}return e.id},extend:function(){var E=function(G){for(var F in G){this[F]=G[F]}};var e=Object.prototype.constructor;return function(L,I,K){if(typeof I=="object"){K=I;I=L;L=K.constructor!=e?K.constructor:function(){I.apply(this,arguments)}}var H=function(){},J,G=I.prototype;H.prototype=G;J=L.prototype=new H();J.constructor=L;L.superclass=G;if(G.constructor==e){G.constructor=I}L.override=function(F){Ext.override(L,F)};J.superclass=J.supr=(function(){return G});J.override=E;Ext.override(L,K);L.extend=function(F){return Ext.extend(L,F)};return L}}(),override:function(e,F){if(F){var E=e.prototype;Ext.apply(E,F);if(Ext.isIE&&F.hasOwnProperty("toString")){E.toString=F.toString}}},namespace:function(){var G=arguments.length,H=0,E,F,e,J,I,K;for(;H0){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(;c0){for(var p=0;p=3,l={},e=function(n,o){if(n&&n.firstChild){while(o){if(o===n){return true}o=o.parentNode;if(o&&(o.nodeType!=1)){o=null}}}return false},i=function(n){return !e(n.currentTarget,Ext.lib.Event.getRelatedTarget(n))};Ext.lib.Dom={getViewWidth:function(n){return n?b.getDocumentWidth():b.getViewportWidth()},getViewHeight:function(n){return n?b.getDocumentHeight():b.getViewportHeight()},isAncestor:function(n,o){return b.isAncestor(n,o)},getRegion:function(n){return b.getRegion(n)},getY:function(n){return this.getXY(n)[1]},getX:function(n){return this.getXY(n)[0]},getXY:function(q){var o,u,w,z,t=(document.body||document.documentElement);q=Ext.getDom(q);if(q==t){return[0,0]}if(q.getBoundingClientRect){w=q.getBoundingClientRect();z=g(document).getScroll();return[Math.round(w.left+z.left),Math.round(w.top+z.top)]}var A=0,v=0;o=q;var n=g(q).getStyle("position")=="absolute";while(o){A+=o.offsetLeft;v+=o.offsetTop;if(!n&&g(o).getStyle("position")=="absolute"){n=true}if(Ext.isGecko){u=g(o);var B=parseInt(u.getStyle("borderTopWidth"),10)||0;var r=parseInt(u.getStyle("borderLeftWidth"),10)||0;A+=r;v+=B;if(o!=q&&u.getStyle("overflow")!="visible"){A+=r;v+=B}}o=o.offsetParent}if(Ext.isSafari&&n){A-=t.offsetLeft;v-=t.offsetTop}if(Ext.isGecko&&!n){var s=g(t);A+=parseInt(s.getStyle("borderLeftWidth"),10)||0;v+=parseInt(s.getStyle("borderTopWidth"),10)||0}o=q.parentNode;while(o&&o!=t){if(!Ext.isOpera||(o.tagName!="TR"&&g(o).getStyle("display")!="inline")){A-=o.scrollLeft;v-=o.scrollTop}o=o.parentNode}return[A,v]},setXY:function(n,o){n=Ext.fly(n,"_setXY");n.position();var p=n.translatePoints(o);if(o[0]!==false){n.dom.style.left=p.left+"px"}if(o[1]!==false){n.dom.style.top=p.top+"px"}},setX:function(o,n){this.setXY(o,[n,false])},setY:function(n,o){this.setXY(n,[false,o])}};Ext.lib.Event={getPageX:function(n){return m.getPageX(n.browserEvent||n)},getPageY:function(n){return m.getPageY(n.browserEvent||n)},getXY:function(n){return m.getXY(n.browserEvent||n)},getTarget:function(n){return m.getTarget(n.browserEvent||n)},getRelatedTarget:function(n){return m.getRelatedTarget(n.browserEvent||n)},on:function(r,n,q,p,o){if((n=="mouseenter"||n=="mouseleave")&&!a){var s=l[r.id]||(l[r.id]={});s[n]=q;q=q.createInterceptor(i);n=(n=="mouseenter")?"mouseover":"mouseout"}m.on(r,n,q,p,o)},un:function(p,n,o){if((n=="mouseenter"||n=="mouseleave")&&!a){var r=l[p.id],q=r&&r[n];if(q){o=q.fn;delete r[n];n=(n=="mouseenter")?"mouseover":"mouseout"}}m.removeListener(p,n,o)},purgeElement:function(n){m.purgeElement(n)},preventDefault:function(n){m.preventDefault(n.browserEvent||n)},stopPropagation:function(n){m.stopPropagation(n.browserEvent||n)},stopEvent:function(n){m.stopEvent(n.browserEvent||n)},onAvailable:function(q,p,o,n){return m.onAvailable(q,p,o,n)}};Ext.lib.Ajax={request:function(t,r,n,s,o){if(o){var p=o.headers;if(p){for(var q in p){if(p.hasOwnProperty(q)){f.initHeader(q,p[q],false)}}}if(o.xmlData){if(!p||!p["Content-Type"]){f.initHeader("Content-Type","text/xml",false)}t=(t?t:(o.method?o.method:"POST"));s=o.xmlData}else{if(o.jsonData){if(!p||!p["Content-Type"]){f.initHeader("Content-Type","application/json",false)}t=(t?t:(o.method?o.method:"POST"));s=typeof o.jsonData=="object"?Ext.encode(o.jsonData):o.jsonData}}}return f.asyncRequest(t,r,n,s)},formRequest:function(r,q,o,s,n,p){f.setForm(r,n,p);return f.asyncRequest(Ext.getDom(r).method||"POST",q,o,s)},isCallInProgress:function(n){return f.isCallInProgress(n)},abort:function(n){return f.abort(n)},serializeForm:function(n){var o=f.setForm(n.dom||n);f.resetFormState();return o}};Ext.lib.Region=YAHOO.util.Region;Ext.lib.Point=YAHOO.util.Point;Ext.lib.Anim={scroll:function(q,o,r,s,n,p){this.run(q,o,r,s,n,p,YAHOO.util.Scroll)},motion:function(q,o,r,s,n,p){this.run(q,o,r,s,n,p,YAHOO.util.Motion)},color:function(q,o,r,s,n,p){this.run(q,o,r,s,n,p,YAHOO.util.ColorAnim)},run:function(r,o,t,u,n,q,p){p=p||YAHOO.util.Anim;if(typeof u=="string"){u=YAHOO.util.Easing[u]}var s=new p(r,o,t,u);s.animateX(function(){Ext.callback(n,q)});return s}};function g(n){if(!j){j=new Ext.Element.Flyweight()}j.dom=n;return j}if(Ext.isIE){function d(){var n=Function.prototype;delete n.createSequence;delete n.defer;delete n.createDelegate;delete n.createCallback;delete n.createInterceptor;window.detachEvent("onunload",d)}window.attachEvent("onunload",d)}if(YAHOO.util.Anim){YAHOO.util.Anim.prototype.animateX=function(p,n){var o=function(){this.onComplete.unsubscribe(o);if(typeof p=="function"){p.call(n||this,this)}};this.onComplete.subscribe(o,this,true);this.animate()}}if(YAHOO.util.DragDrop&&Ext.dd.DragDrop){YAHOO.util.DragDrop.defaultPadding=Ext.dd.DragDrop.defaultPadding;YAHOO.util.DragDrop.constrainTo=Ext.dd.DragDrop.constrainTo}YAHOO.util.Dom.getXY=function(n){var o=function(p){return Ext.lib.Dom.getXY(p)};return YAHOO.util.Dom.batch(n,o,YAHOO.util.Dom,true)};if(YAHOO.util.AnimMgr){YAHOO.util.AnimMgr.fps=1000}YAHOO.util.Region.prototype.adjust=function(p,o,n,q){this.top+=p;this.left+=o;this.right+=q;this.bottom+=n;return this};YAHOO.util.Region.prototype.constrainTo=function(n){this.top=this.top.constrain(n.top,n.bottom);this.bottom=this.bottom.constrain(n.top,n.bottom);this.left=this.left.constrain(n.left,n.right);this.right=this.right.constrain(n.left,n.right);return this}})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug-w-comments.js b/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug-w-comments.js deleted file mode 100644 index eb10d3b1a4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug-w-comments.js +++ /dev/null @@ -1,78980 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -(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, - 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(), - args = Array.prototype.slice.call(arguments, 0); - if(!l.tasks) { - l.tasks = []; - } - l.tasks.push(task); - task.delay(o.delay || 10, function(){ - l.tasks.remove(task); - h.apply(scope, args); - }, scope); - }; -}; - -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.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, - 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; - } - - /** - * @ignore - * Fix for IE9 createContextualFragment missing method - */ - function createContextualFragment(html){ - var div = document.createElement("div"), - fragment = document.createDocumentFragment(), - i = 0, - length, childNodes; - - div.innerHTML = html; - childNodes = div.childNodes; - length = childNodes.length; - - for (; i < length; i++) { - fragment.appendChild(childNodes[i].cloneNode(true)); - } - - return fragment; - } - - 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 matches; - - el = Ext.fly(el); - if (typeof styles == "function") { - styles = styles.call(); - } - if (typeof styles == "string") { - /** - * Since we're using the g flag on the regex, we need to set the lastIndex. - * This automatically happens on some implementations, but not others, see: - * http://stackoverflow.com/questions/2645273/javascript-regular-expression-literal-persists-between-function-calls - * http://blog.stevenlevithan.com/archives/fixing-javascript-regexp - */ - cssRe.lastIndex = 0; - 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, - range, - rangeEl, - setStart, - frag, - 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); - if (!range.createContextualFragment) { - frag = createContextualFragment(html); - } - else { - 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]); - if (!range.createContextualFragment) { - frag = createContextualFragment(html); - } - else { - 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.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 || ''); -}; -/* - * 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] attribute "foo" 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, - xml, - hasXml; - - for(var i = 0, ci; ci = cs[i]; i++){ - // skip non-element nodes. - if(ci.nodeType != 1){ - continue; - } - // only need to do this for the first node - if(!hasXml){ - xml = Ext.DomQuery.isXml(ci); - hasXml = true; - } - - // we only need to change the property names if we're dealing with html nodes, not XML - if(!xml){ - 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?(["']?)(.*?)\4)?[\]\}])/, - select: 'n = byAttribute(n, "{2}", "{5}", "{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; - } - }; -};/** - * @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 DH = Ext.DomHelper, - 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 Ext.isBorderBox || Ext.isForcedBorderBox || noBoxAdjust[(this.dom.tagName || "").toLowerCase()]; - }, - - /** - *

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: (function(){ - var test = document.createElement('table'), - isBrokenOnTable = false, - hasGetAttribute = 'getAttribute' in test, - unknownRe = /undefined|unknown/; - - if (hasGetAttribute) { - - try { - test.getAttribute('ext:qtip'); - } catch (e) { - isBrokenOnTable = true; - } - - return function(name, ns) { - var el = this.dom, - value; - - if (el.getAttributeNS) { - value = el.getAttributeNS(ns, name) || null; - } - - if (value == null) { - if (ns) { - if (isBrokenOnTable && el.tagName.toUpperCase() == 'TABLE') { - try { - value = el.getAttribute(ns + ':' + name); - } catch (e) { - value = ''; - } - } else { - value = el.getAttribute(ns + ':' + name); - } - } else { - value = el.getAttribute(name) || el[name]; - } - } - return value || ''; - }; - } else { - return function(name, ns) { - var el = this.om, - value, - attribute; - - if (ns) { - attribute = el[ns + ':' + name]; - value = unknownRe.test(typeof attribute) ? undefined : attribute; - } else { - value = el[name]; - } - return value || ''; - }; - } - test = null; - })(), - - /** - * 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(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( -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.Element.addMethods(function(){ - // local style camelizing for speed - var supports = Ext.supports, - propCache = {}, - camelRe = /(-[a-z])/gi, - view = document.defaultView, - opacityRe = /alpha\(opacity=(.*)\)/i, - trimRe = /^\s+|\s+$/g, - EL = Ext.Element, - spacesRe = /\s+/, - wordsRe = /\w/g, - 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' ? (supports.cssFloat ? 'cssFloat' : 'styleFloat') : 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; - - if(el == document){ - return null; - } - prop = chkCache(prop); - out = (v = el.style[prop]) ? v : - (cs = view.getComputedStyle(el, "")) ? cs[prop] : null; - - // Ignore cases when the margin is correctly reported as 0, the bug only shows - // numbers larger. - if(prop == 'marginRight' && out != '0px' && !supports.correctRightMargin){ - display = el.style.display; - el.style.display = 'inline-block'; - out = view.getComputedStyle(el, '').marginRight; - el.style.display = display; - } - - if(prop == 'backgroundColor' && out == 'rgba(0, 0, 0, 0)' && !supports.correctTransparentColor){ - out = 'transparent'; - } - 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; - - 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 - */ -(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({ - /** - * 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 - */ -/** - * 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; - -/** - * Visibility mode constant for use with {@link #setVisibilityMode}. Use offsets (x and y positioning offscreen) - * to hide element. - * @static - * @type Number - */ -Ext.Element.OFFSETS = 3; - - -Ext.Element.ASCLASS = 4; - -/** - * Defaults to 'x-hide-nosize' - * @static - * @type String - */ -Ext.Element.visibilityCls = 'x-hide-nosize'; - -Ext.Element.addMethods(function(){ - var El = Ext.Element, - OPACITY = "opacity", - VISIBILITY = "visibility", - DISPLAY = "display", - HIDDEN = "hidden", - OFFSETS = "offsets", - ASCLASS = "asclass", - NONE = "none", - NOSIZE = 'nosize', - ORIGINALDISPLAY = 'originalDisplay', - VISMODE = 'visibilityMode', - ISVISIBLE = 'isVisible', - data = El.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() { - var me = this, - dom = me.dom, - visible = data(dom, ISVISIBLE); - - if(typeof visible == 'boolean'){ //return the cached value if registered - return visible; - } - //Determine the current state based on display states - visible = !me.isStyle(VISIBILITY, HIDDEN) && - !me.isStyle(DISPLAY, NONE) && - !((getVisMode(dom) == El.ASCLASS) && me.hasClass(me.visibilityCls || El.visibilityCls)); - - data(dom, ISVISIBLE, visible); - return visible; - }, - - /** - * 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, isVisibility, isOffsets, isNosize, - dom = me.dom, - visMode = getVisMode(dom); - - - // hideMode string override - if (typeof animate == 'string'){ - switch (animate) { - case DISPLAY: - visMode = El.DISPLAY; - break; - case VISIBILITY: - visMode = El.VISIBILITY; - break; - case OFFSETS: - visMode = El.OFFSETS; - break; - case NOSIZE: - case ASCLASS: - visMode = El.ASCLASS; - break; - } - me.setVisibilityMode(visMode); - animate = false; - } - - if (!animate || !me.anim) { - if(visMode == El.ASCLASS ){ - - me[visible?'removeClass':'addClass'](me.visibilityCls || El.visibilityCls); - - } else if (visMode == El.DISPLAY){ - - return me.setDisplayed(visible); - - } else if (visMode == El.OFFSETS){ - - 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: ''}); - delete me.hideModeStyles; - } - - }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(){ - visible || me.setVisible(false).setOpacity(1); - }); - } - data(dom, ISVISIBLE, visible); //set logical visibility state - return me; - }, - - - /** - * @private - * Determine if the Element has a relevant height and width available based - * upon current logical visibility state - */ - hasMetrics : function(){ - var dom = this.dom; - return this.isVisible() || (getVisMode(dom) == El.VISIBILITY); - }, - - /** - * 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; - } - }; -}());(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, - 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; - -/** - * @private - * Copies all of the functions from Ext.Element's prototype onto CompositeElementLite's prototype. - * This is called twice - once immediately below, and once again after additional Ext.Element - * are added in Ext JS - */ -Ext.CompositeElementLite.importElementMethods = function() { - var fnName, - ElProto = Ext.Element.prototype, - CelProto = Ext.CompositeElementLite.prototype; - - for (fnName in ElProto) { - if (typeof ElProto[fnName] == 'function'){ - (function(fnName) { - CelProto[fnName] = CelProto[fnName] || function() { - return this.invoke(fnName, arguments); - }; - }).call(CelProto, fnName); - - } - } -}; - -Ext.CompositeElementLite.importElementMethods(); - -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; -(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.

    - *

    Also note that it's not possible to check the response code of the hidden iframe, so the success handler will ALWAYS fire.

    - * @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 : Ext.num(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.applyIf(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.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 json ? 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.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, - 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 === false) { - 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.isIE8 ? 'ext-ie8' : 'ext-ie9'))) - : 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"); - } - - // add to the parent to allow for selectors like ".ext-strict .ext-ie" - if (Ext.isStrict || Ext.isBorderBox) { - var p = bd.parentNode; - if (p) { - if (!Ext.isStrict) { - Ext.fly(p, '_internal').addClass('x-quirks'); - if (Ext.isIE && !Ext.isStrict) { - Ext.isIEQuirks = true; - } - } - Ext.fly(p, '_internal').addClass(((Ext.isStrict && Ext.isIE ) || (!Ext.enableForcedBoxModel && !Ext.isIE)) ? ' ext-strict' : ' ext-border-box'); - } - } - // Forced border box model class applied to all elements. Bypassing javascript based box model adjustments - // in favor of css. This is for non-IE browsers. - if (Ext.enableForcedBoxModel && !Ext.isIE) { - Ext.isForcedBorderBox = true; - cls.push("ext-forced-border-box"); - } - - Ext.fly(bd, '_internal').addClass(cls); - return true; - }; - - if (!initExtCss()) { - Ext.onReady(initExtCss); - } -})(); - -/** - * Code used to detect certain browser feature/quirks/bugs at startup. - */ -(function(){ - var supports = Ext.apply(Ext.supports, { - /** - * In Webkit, there is an issue with getting the margin right property, see - * https://bugs.webkit.org/show_bug.cgi?id=13343 - */ - correctRightMargin: true, - - /** - * Webkit browsers return rgba(0, 0, 0) when a transparent color is used - */ - correctTransparentColor: true, - - /** - * IE uses styleFloat, not cssFloat for the float property. - */ - cssFloat: true - }); - - var supportTests = function(){ - var div = document.createElement('div'), - doc = document, - view, - last; - - div.innerHTML = '
    '; - doc.body.appendChild(div); - last = div.lastChild; - - if((view = doc.defaultView)){ - if(view.getComputedStyle(div.firstChild.firstChild, null).marginRight != '0px'){ - supports.correctRightMargin = false; - } - if(view.getComputedStyle(last, null).backgroundColor != 'transparent'){ - supports.correctTransparentColor = false; - } - } - supports.cssFloat = !!last.style.cssFloat; - doc.body.removeChild(div); - }; - - if (Ext.isReady) { - supportTests(); - } else { - Ext.onReady(supportTests); - } -})(); - - -/** - * @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, - clickRe = /(dbl)?click/, - // 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} : {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(clickRe.test(e.type) && 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.Loader - * @singleton - * Simple class to help load JavaScript files on demand - */ -Ext.Loader = Ext.apply({}, { - /** - * Loads a given set of .js files. Calls the callback function when all files have been loaded - * Set preserveOrder to true to ensure non-parallel loading of files if load order is important - * @param {Array} fileList Array of all files to load - * @param {Function} callback Callback to call after all files have been loaded - * @param {Object} scope The scope to call the callback in - * @param {Boolean} preserveOrder True to make files load in serial, one after the other (defaults to false) - */ - load: function(fileList, callback, scope, preserveOrder) { - var scope = scope || this, - head = document.getElementsByTagName("head")[0], - fragment = document.createDocumentFragment(), - numFiles = fileList.length, - loadedFiles = 0, - me = this; - - /** - * Loads a particular file from the fileList by index. This is used when preserving order - */ - var loadFileIndex = function(index) { - head.appendChild( - me.buildScriptTag(fileList[index], onFileLoaded) - ); - }; - - /** - * Callback function which is called after each file has been loaded. This calls the callback - * passed to load once the final file in the fileList has been loaded - */ - var onFileLoaded = function() { - loadedFiles ++; - - //if this was the last file, call the callback, otherwise load the next file - if (numFiles == loadedFiles && typeof callback == 'function') { - callback.call(scope); - } else { - if (preserveOrder === true) { - loadFileIndex(loadedFiles); - } - } - }; - - if (preserveOrder === true) { - loadFileIndex.call(this, 0); - } else { - //load each file (most browsers will do this in parallel) - Ext.each(fileList, function(file, index) { - fragment.appendChild( - this.buildScriptTag(file, onFileLoaded) - ); - }, this); - - head.appendChild(fragment); - } - }, - - /** - * @private - * Creates and returns a script tag, but does not place it into the document. If a callback function - * is passed, this is called when the script has been loaded - * @param {String} filename The name of the file to create a script tag for - * @param {Function} callback Optional callback, which is called when the script has been loaded - * @return {Element} The new script ta - */ - buildScriptTag: function(filename, callback) { - var script = document.createElement('script'); - script.type = "text/javascript"; - script.src = filename; - - //IE has a different way of handling <script> loads, so we need to check for it here - if (script.readyState) { - script.onreadystatechange = function() { - if (script.readyState == "loaded" || script.readyState == "complete") { - script.onreadystatechange = null; - callback(); - } - }; - } else { - script.onload = callback; - } - - return script; - } -}); -/** - * @class Ext - */ - -Ext.ns("Ext.grid", "Ext.list", "Ext.dd", "Ext.tree", "Ext.form", "Ext.menu", - "Ext.state", "Ext.layout.boxOverflow", "Ext.app", "Ext.ux", "Ext.chart", "Ext.direct", "Ext.slider"); - /** - * Namespace alloted for extensions to the framework. - * @property ux - * @type Object - */ - -Ext.apply(Ext, function(){ - var E = Ext, - idSeed = 0, - scrollWidth = null; - - return { - /** - * A reusable empty function - * @property - * @type Function - */ - emptyFn : function(){}, - - /** - * URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. - * In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server. - * For other browsers it uses an inline data URL. - * @type String - */ - BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 || Ext.isAir ? - 'http:/' + '/www.extjs.com/s.gif' : - 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==', - - extendX : function(supr, fn){ - return Ext.extend(supr, fn(supr.prototype)); - }, - - /** - * Returns the current HTML document object as an {@link Ext.Element}. - * @return Ext.Element The document - */ - getDoc : function(){ - return Ext.get(document); - }, - - /** - * Utility method for validating that a value is numeric, returning the specified default value if it is not. - * @param {Mixed} value Should be a number, but any type will be handled appropriately - * @param {Number} defaultValue The value to return if the original value is non-numeric - * @return {Number} Value, if numeric, else defaultValue - */ - num : function(v, defaultValue){ - v = Number(Ext.isEmpty(v) || Ext.isArray(v) || typeof v == 'boolean' || (typeof v == 'string' && v.trim().length == 0) ? NaN : v); - return isNaN(v) ? defaultValue : v; - }, - - /** - *

    Utility method for returning a default value if the passed value is empty.

    - *

    The value is deemed to be empty if it is

      - *
    • null
    • - *
    • undefined
    • - *
    • an empty array
    • - *
    • a zero length string (Unless the allowBlank parameter is true)
    • - *
    - * @param {Mixed} value The value to test - * @param {Mixed} defaultValue The value to return if the original value is empty - * @param {Boolean} allowBlank (optional) true to allow zero length strings to qualify as non-empty (defaults to false) - * @return {Mixed} value, if non-empty, else defaultValue - */ - value : function(v, defaultValue, allowBlank){ - return Ext.isEmpty(v, allowBlank) ? defaultValue : v; - }, - - /** - * Escapes the passed string for use in a regular expression - * @param {String} str - * @return {String} - */ - escapeRe : function(s) { - return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1"); - }, - - sequence : function(o, name, fn, scope){ - o[name] = o[name].createSequence(fn, scope); - }, - - /** - * Applies event listeners to elements by selectors when the document is ready. - * The event name is specified with an @ suffix. - *
    
    -Ext.addBehaviors({
    -    // add a listener for click on all anchors in element with id foo
    -    '#foo a@click' : function(e, t){
    -        // do something
    -    },
    -
    -    // add the same listener to multiple selectors (separated by comma BEFORE the @)
    -    '#foo a, #bar span.some-class@mouseover' : function(){
    -        // do something
    -    }
    -});
    -         * 
    - * @param {Object} obj The list of behaviors to apply - */ - addBehaviors : function(o){ - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.addBehaviors(o); - }); - } else { - var cache = {}, // simple cache for applying multiple behaviors to same selector does query multiple times - parts, - b, - s; - for (b in o) { - if ((parts = b.split('@'))[1]) { // for Object prototype breakers - s = parts[0]; - if(!cache[s]){ - cache[s] = Ext.select(s); - } - cache[s].on(parts[1], o[b]); - } - } - cache = null; - } - }, - - /** - * Utility method for getting the width of the browser scrollbar. This can differ depending on - * operating system settings, such as the theme or font size. - * @param {Boolean} force (optional) true to force a recalculation of the value. - * @return {Number} The width of the scrollbar. - */ - getScrollBarWidth: function(force){ - if(!Ext.isReady){ - return 0; - } - - if(force === true || scrollWidth === null){ - // Append our div, do our calculation and then remove it - var div = Ext.getBody().createChild('
    '), - child = div.child('div', true); - var w1 = child.offsetWidth; - div.setStyle('overflow', (Ext.isWebKit || Ext.isGecko) ? 'auto' : 'scroll'); - var w2 = child.offsetWidth; - div.remove(); - // Need to add 2 to ensure we leave enough space - scrollWidth = w1 - w2 + 2; - } - return scrollWidth; - }, - - - // deprecated - combine : function(){ - var as = arguments, l = as.length, r = []; - for(var i = 0; i < l; i++){ - var a = as[i]; - if(Ext.isArray(a)){ - r = r.concat(a); - }else if(a.length !== undefined && !a.substr){ - r = r.concat(Array.prototype.slice.call(a, 0)); - }else{ - r.push(a); - } - } - return r; - }, - - /** - * Copies a set of named properties fom the source object to the destination object. - *

    example:

    
    -ImageComponent = Ext.extend(Ext.BoxComponent, {
    -    initComponent: function() {
    -        this.autoEl = { tag: 'img' };
    -        MyComponent.superclass.initComponent.apply(this, arguments);
    -        this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');
    -    }
    -});
    -         * 
    - * @param {Object} dest The destination object. - * @param {Object} source The source object. - * @param {Array/String} names Either an Array of property names, or a comma-delimited list - * of property names to copy. - * @return {Object} The modified object. - */ - copyTo : function(dest, source, names){ - if(typeof names == 'string'){ - names = names.split(/[,;\s]/); - } - Ext.each(names, function(name){ - if(source.hasOwnProperty(name)){ - dest[name] = source[name]; - } - }, this); - return dest; - }, - - /** - * Attempts to destroy any objects passed to it by removing all event listeners, removing them from the - * DOM (if applicable) and calling their destroy functions (if available). This method is primarily - * intended for arguments of type {@link Ext.Element} and {@link Ext.Component}, but any subclass of - * {@link Ext.util.Observable} can be passed in. Any number of elements and/or components can be - * passed into this function in a single call as separate arguments. - * @param {Mixed} arg1 An {@link Ext.Element}, {@link Ext.Component}, or an Array of either of these to destroy - * @param {Mixed} arg2 (optional) - * @param {Mixed} etc... (optional) - */ - destroy : function(){ - Ext.each(arguments, function(arg){ - if(arg){ - if(Ext.isArray(arg)){ - this.destroy.apply(this, arg); - }else if(typeof arg.destroy == 'function'){ - arg.destroy(); - }else if(arg.dom){ - arg.remove(); - } - } - }, this); - }, - - /** - * Attempts to destroy and then remove a set of named properties of the passed object. - * @param {Object} o The object (most likely a Component) who's properties you wish to destroy. - * @param {Mixed} arg1 The name of the property to destroy and remove from the object. - * @param {Mixed} etc... More property names to destroy and remove. - */ - destroyMembers : function(o, arg1, arg2, etc){ - for(var i = 1, a = arguments, len = a.length; i < len; i++) { - Ext.destroy(o[a[i]]); - delete o[a[i]]; - } - }, - - /** - * Creates a copy of the passed Array with falsy values removed. - * @param {Array/NodeList} arr The Array from which to remove falsy values. - * @return {Array} The new, compressed Array. - */ - clean : function(arr){ - var ret = []; - Ext.each(arr, function(v){ - if(!!v){ - ret.push(v); - } - }); - return ret; - }, - - /** - * Creates a copy of the passed Array, filtered to contain only unique values. - * @param {Array} arr The Array to filter - * @return {Array} The new Array containing unique values. - */ - unique : function(arr){ - var ret = [], - collect = {}; - - Ext.each(arr, function(v) { - if(!collect[v]){ - ret.push(v); - } - collect[v] = true; - }); - return ret; - }, - - /** - * Recursively flattens into 1-d Array. Injects Arrays inline. - * @param {Array} arr The array to flatten - * @return {Array} The new, flattened array. - */ - flatten : function(arr){ - var worker = []; - function rFlatten(a) { - Ext.each(a, function(v) { - if(Ext.isArray(v)){ - rFlatten(v); - }else{ - worker.push(v); - } - }); - return worker; - } - return rFlatten(arr); - }, - - /** - * Returns the minimum value in the Array. - * @param {Array|NodeList} arr The Array from which to select the minimum value. - * @param {Function} comp (optional) a function to perform the comparision which determines minimization. - * If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 - * @return {Object} The minimum value in the Array. - */ - min : function(arr, comp){ - var ret = arr[0]; - comp = comp || function(a,b){ return a < b ? -1 : 1; }; - Ext.each(arr, function(v) { - ret = comp(ret, v) == -1 ? ret : v; - }); - return ret; - }, - - /** - * Returns the maximum value in the Array - * @param {Array|NodeList} arr The Array from which to select the maximum value. - * @param {Function} comp (optional) a function to perform the comparision which determines maximization. - * If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 - * @return {Object} The maximum value in the Array. - */ - max : function(arr, comp){ - var ret = arr[0]; - comp = comp || function(a,b){ return a > b ? 1 : -1; }; - Ext.each(arr, function(v) { - ret = comp(ret, v) == 1 ? ret : v; - }); - return ret; - }, - - /** - * Calculates the mean of the Array - * @param {Array} arr The Array to calculate the mean value of. - * @return {Number} The mean. - */ - mean : function(arr){ - return arr.length > 0 ? Ext.sum(arr) / arr.length : undefined; - }, - - /** - * Calculates the sum of the Array - * @param {Array} arr The Array to calculate the sum value of. - * @return {Number} The sum. - */ - sum : function(arr){ - var ret = 0; - Ext.each(arr, function(v) { - ret += v; - }); - return ret; - }, - - /** - * Partitions the set into two sets: a true set and a false set. - * Example: - * Example2: - *
    
    -// Example 1:
    -Ext.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]
    -
    -// Example 2:
    -Ext.partition(
    -    Ext.query("p"),
    -    function(val){
    -        return val.className == "class1"
    -    }
    -);
    -// true are those paragraph elements with a className of "class1",
    -// false set are those that do not have that className.
    -         * 
    - * @param {Array|NodeList} arr The array to partition - * @param {Function} truth (optional) a function to determine truth. If this is omitted the element - * itself must be able to be evaluated for its truthfulness. - * @return {Array} [true,false] - */ - partition : function(arr, truth){ - var ret = [[],[]]; - Ext.each(arr, function(v, i, a) { - ret[ (truth && truth(v, i, a)) || (!truth && v) ? 0 : 1].push(v); - }); - return ret; - }, - - /** - * Invokes a method on each item in an Array. - *
    
    -// Example:
    -Ext.invoke(Ext.query("p"), "getAttribute", "id");
    -// [el1.getAttribute("id"), el2.getAttribute("id"), ..., elN.getAttribute("id")]
    -         * 
    - * @param {Array|NodeList} arr The Array of items to invoke the method on. - * @param {String} methodName The method name to invoke. - * @param {...*} args Arguments to send into the method invocation. - * @return {Array} The results of invoking the method on each item in the array. - */ - invoke : function(arr, methodName){ - var ret = [], - args = Array.prototype.slice.call(arguments, 2); - Ext.each(arr, function(v,i) { - if (v && typeof v[methodName] == 'function') { - ret.push(v[methodName].apply(v, args)); - } else { - ret.push(undefined); - } - }); - return ret; - }, - - /** - * Plucks the value of a property from each item in the Array - *
    
    -// Example:
    -Ext.pluck(Ext.query("p"), "className"); // [el1.className, el2.className, ..., elN.className]
    -         * 
    - * @param {Array|NodeList} arr The Array of items to pluck the value from. - * @param {String} prop The property name to pluck from each element. - * @return {Array} The value from each item in the Array. - */ - pluck : function(arr, prop){ - var ret = []; - Ext.each(arr, function(v) { - ret.push( v[prop] ); - }); - return ret; - }, - - /** - *

    Zips N sets together.

    - *
    
    -// Example 1:
    -Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
    -// Example 2:
    -Ext.zip(
    -    [ "+", "-", "+"],
    -    [  12,  10,  22],
    -    [  43,  15,  96],
    -    function(a, b, c){
    -        return "$" + a + "" + b + "." + c
    -    }
    -); // ["$+12.43", "$-10.15", "$+22.96"]
    -         * 
    - * @param {Arrays|NodeLists} arr This argument may be repeated. Array(s) to contribute values. - * @param {Function} zipper (optional) The last item in the argument list. This will drive how the items are zipped together. - * @return {Array} The zipped set. - */ - zip : function(){ - var parts = Ext.partition(arguments, function( val ){ return typeof val != 'function'; }), - arrs = parts[0], - fn = parts[1][0], - len = Ext.max(Ext.pluck(arrs, "length")), - ret = []; - - for (var i = 0; i < len; i++) { - ret[i] = []; - if(fn){ - ret[i] = fn.apply(fn, Ext.pluck(arrs, i)); - }else{ - for (var j = 0, aLen = arrs.length; j < aLen; j++){ - ret[i].push( arrs[j][i] ); - } - } - } - return ret; - }, - - /** - * This is shorthand reference to {@link Ext.ComponentMgr#get}. - * Looks up an existing {@link Ext.Component Component} by {@link Ext.Component#id id} - * @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. - */ - getCmp : function(id){ - return Ext.ComponentMgr.get(id); - }, - - /** - * By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash, - * you may want to set this to true. - * @type Boolean - */ - useShims: E.isIE6 || (E.isMac && E.isGecko2), - - // inpired by a similar function in mootools library - /** - * Returns the type of object that is passed in. If the object passed in is null or undefined it - * return false otherwise it returns one of the following values:
      - *
    • string: If the object passed is a string
    • - *
    • number: If the object passed is a number
    • - *
    • boolean: If the object passed is a boolean value
    • - *
    • date: If the object passed is a Date object
    • - *
    • function: If the object passed is a function reference
    • - *
    • object: If the object passed is an object
    • - *
    • array: If the object passed is an array
    • - *
    • regexp: If the object passed is a regular expression
    • - *
    • element: If the object passed is a DOM Element
    • - *
    • nodelist: If the object passed is a DOM NodeList
    • - *
    • textnode: If the object passed is a DOM text node and contains something other than whitespace
    • - *
    • whitespace: If the object passed is a DOM text node and contains only whitespace
    • - *
    - * @param {Mixed} object - * @return {String} - */ - type : function(o){ - if(o === undefined || o === null){ - return false; - } - if(o.htmlElement){ - return 'element'; - } - var t = typeof o; - if(t == 'object' && o.nodeName) { - switch(o.nodeType) { - case 1: return 'element'; - case 3: return (/\S/).test(o.nodeValue) ? 'textnode' : 'whitespace'; - } - } - if(t == 'object' || t == 'function') { - switch(o.constructor) { - case Array: return 'array'; - case RegExp: return 'regexp'; - case Date: return 'date'; - } - if(typeof o.length == 'number' && typeof o.item == 'function') { - return 'nodelist'; - } - } - return t; - }, - - intercept : function(o, name, fn, scope){ - o[name] = o[name].createInterceptor(fn, scope); - }, - - // internal - callback : function(cb, scope, args, delay){ - if(typeof cb == 'function'){ - if(delay){ - cb.defer(delay, scope, args || []); - }else{ - cb.apply(scope, args || []); - } - } - } - }; -}()); - -/** - * @class Function - * These functions are available on every Function object (any JavaScript function). - */ -Ext.apply(Function.prototype, { - /** - * Create a combined function call sequence of the original function + the passed function. - * The resulting function returns the results of the original function. - * The passed fcn is called with the parameters of the original function. Example usage: - *
    
    -var sayHi = function(name){
    -    alert('Hi, ' + name);
    -}
    -
    -sayHi('Fred'); // alerts "Hi, Fred"
    -
    -var sayGoodbye = sayHi.createSequence(function(name){
    -    alert('Bye, ' + name);
    -});
    -
    -sayGoodbye('Fred'); // both alerts show
    -
    - * @param {Function} fcn The function to sequence - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createSequence : function(fcn, scope){ - var method = this; - return (typeof fcn != 'function') ? - this : - function(){ - var retval = method.apply(this || window, arguments); - fcn.apply(scope || this || window, arguments); - return retval; - }; - } -}); - - -/** - * @class String - * These functions are available as static methods on the JavaScript String object. - */ -Ext.applyIf(String, { - - /** - * Escapes the passed string for ' and \ - * @param {String} string The string to escape - * @return {String} The escaped string - * @static - */ - escape : function(string) { - return string.replace(/('|\\)/g, "\\$1"); - }, - - /** - * Pads the left side of a string with a specified character. This is especially useful - * for normalizing number and date strings. Example usage: - *
    
    -var s = String.leftPad('123', 5, '0');
    -// s now contains the string: '00123'
    -     * 
    - * @param {String} string The original string - * @param {Number} size The total length of the output string - * @param {String} char (optional) The character with which to pad the original string (defaults to empty string " ") - * @return {String} The padded string - * @static - */ - leftPad : function (val, size, ch) { - var result = String(val); - if(!ch) { - ch = " "; - } - while (result.length < size) { - result = ch + result; - } - return result; - } -}); - -/** - * Utility function that allows you to easily switch a string between two alternating values. The passed value - * is compared to the current string, and if they are equal, the other value that was passed in is returned. If - * they are already different, the first value passed in is returned. Note that this method returns the new value - * but does not change the current string. - *
    
    -// alternate sort directions
    -sort = sort.toggle('ASC', 'DESC');
    -
    -// instead of conditional logic:
    -sort = (sort == 'ASC' ? 'DESC' : 'ASC');
    -
    - * @param {String} value The value to compare to the current string - * @param {String} other The new value to use if the string already equals the first value passed in - * @return {String} The new value - */ -String.prototype.toggle = function(value, other){ - return this == value ? other : value; -}; - -/** - * Trims whitespace from either end of a string, leaving spaces within the string intact. Example: - *
    
    -var s = '  foo bar  ';
    -alert('-' + s + '-');         //alerts "- foo bar -"
    -alert('-' + s.trim() + '-');  //alerts "-foo bar-"
    -
    - * @return {String} The trimmed string - */ -String.prototype.trim = function(){ - var re = /^\s+|\s+$/g; - return function(){ return this.replace(re, ""); }; -}(); - -// here to prevent dependency on Date.js -/** - Returns the number of milliseconds between this date and date - @param {Date} date (optional) Defaults to now - @return {Number} The diff in milliseconds - @member Date getElapsed - */ -Date.prototype.getElapsed = function(date) { - return Math.abs((date || new Date()).getTime()-this.getTime()); -}; - - -/** - * @class Number - */ -Ext.applyIf(Number.prototype, { - /** - * Checks whether or not the current number is within a desired range. If the number is already within the - * range it is returned, otherwise the min or max value is returned depending on which side of the range is - * exceeded. Note that this method returns the constrained value but does not change the current number. - * @param {Number} min The minimum number in the range - * @param {Number} max The maximum number in the range - * @return {Number} The constrained value if outside the range, otherwise the current value - */ - constrain : function(min, max){ - return Math.min(Math.max(this, min), max); - } -}); -Ext.lib.Dom.getRegion = function(el) { - return Ext.lib.Region.getRegion(el); -}; Ext.lib.Region = function(t, r, b, l) { - var me = this; - me.top = t; - me[1] = t; - me.right = r; - me.bottom = b; - me.left = l; - me[0] = l; - }; - - Ext.lib.Region.prototype = { - contains : function(region) { - var me = this; - return ( region.left >= me.left && - region.right <= me.right && - region.top >= me.top && - region.bottom <= me.bottom ); - - }, - - getArea : function() { - var me = this; - return ( (me.bottom - me.top) * (me.right - me.left) ); - }, - - intersect : function(region) { - var me = this, - t = Math.max(me.top, region.top), - r = Math.min(me.right, region.right), - b = Math.min(me.bottom, region.bottom), - l = Math.max(me.left, region.left); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } - }, - - union : function(region) { - var me = this, - t = Math.min(me.top, region.top), - r = Math.max(me.right, region.right), - b = Math.max(me.bottom, region.bottom), - l = Math.min(me.left, region.left); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - var me = this; - me.top = me.top.constrain(r.top, r.bottom); - me.bottom = me.bottom.constrain(r.top, r.bottom); - me.left = me.left.constrain(r.left, r.right); - me.right = me.right.constrain(r.left, r.right); - return me; - }, - - adjust : function(t, l, b, r) { - var me = this; - me.top += t; - me.left += l; - me.right += r; - me.bottom += b; - return me; - } - }; - - Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el), - t = p[1], - r = p[0] + el.offsetWidth, - b = p[1] + el.offsetHeight, - l = p[0]; - - return new Ext.lib.Region(t, r, b, l); - }; Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - var me = this; - me.x = me.right = me.left = me[0] = x; - me.y = me.top = me.bottom = me[1] = y; - }; - - Ext.lib.Point.prototype = new Ext.lib.Region(); -/** - * @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 - */ -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; -/** - * @class Ext.util.Functions - * @singleton - */ -Ext.util.Functions = { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *
    
    -var sayHi = function(name){
    -    alert('Hi, ' + name);
    -}
    -
    -sayHi('Fred'); // alerts "Hi, Fred"
    -
    -// create a new function that validates input without
    -// directly modifying the original function:
    -var sayHiToFriend = Ext.createInterceptor(sayHi, function(name){
    -    return name == 'Brian';
    -});
    -
    -sayHiToFriend('Fred');  // no alert
    -sayHiToFriend('Brian'); // alerts "Hi, Brian"
    -       
    - * @param {Function} origFn The original function. - * @param {Function} newFn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor: function(origFn, newFn, scope) { - var method = origFn; - if (!Ext.isFunction(newFn)) { - return origFn; - } - else { - return function() { - var me = this, - args = arguments; - newFn.target = me; - newFn.method = origFn; - return (newFn.apply(scope || me || window, args) !== false) ? - origFn.apply(me || window, args) : - null; - }; - } - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: Ext.createDelegate(this.myFunction, this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *
    
    -var sayHi = function(name){
    -    // Note this use of "this.text" here.  This function expects to
    -    // execute within a scope that contains a text property.  In this
    -    // example, the "this" variable is pointing to the btn object that
    -    // was passed in createDelegate below.
    -    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
    -}
    -
    -var btn = new Ext.Button({
    -    text: 'Say Hi',
    -    renderTo: Ext.getBody()
    -});
    -
    -// This callback will execute in the scope of the
    -// button instance. Clicking the button alerts
    -// "Hi, Fred. You clicked the "Say Hi" button."
    -btn.on('click', Ext.createDelegate(sayHi, btn, ['Fred']));
    -       
    - * @param {Function} fn The function to delegate. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate: function(fn, obj, args, appendArgs) { - if (!Ext.isFunction(fn)) { - return fn; - } - return function() { - var callArgs = args || arguments; - if (appendArgs === true) { - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - } - else if (Ext.isNumber(appendArgs)) { - callArgs = Array.prototype.slice.call(arguments, 0); - // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); - // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); - // splice them in - } - return fn.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *
    
    -var sayHi = function(name){
    -    alert('Hi, ' + name);
    -}
    -
    -// executes immediately:
    -sayHi('Fred');
    -
    -// executes after 2 seconds:
    -Ext.defer(sayHi, 2000, this, ['Fred']);
    -
    -// this syntax is sometimes useful for deferring
    -// execution of an anonymous function:
    -Ext.defer(function(){
    -    alert('Anonymous');
    -}, 100);
    -       
    - * @param {Function} fn The function to defer. - * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer: function(fn, millis, obj, args, appendArgs) { - fn = Ext.util.Functions.createDelegate(fn, obj, args, appendArgs); - if (millis > 0) { - return setTimeout(fn, millis); - } - fn(); - return 0; - }, - - - /** - * Create a combined function call sequence of the original function + the passed function. - * The resulting function returns the results of the original function. - * The passed fcn is called with the parameters of the original function. Example usage: - * - -var sayHi = function(name){ - alert('Hi, ' + name); -} - -sayHi('Fred'); // alerts "Hi, Fred" - -var sayGoodbye = Ext.createSequence(sayHi, function(name){ - alert('Bye, ' + name); -}); - -sayGoodbye('Fred'); // both alerts show - - * @param {Function} origFn The original function. - * @param {Function} newFn The function to sequence - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createSequence: function(origFn, newFn, scope) { - if (!Ext.isFunction(newFn)) { - return origFn; - } - else { - return function() { - var retval = origFn.apply(this || window, arguments); - newFn.apply(scope || this || window, arguments); - return retval; - }; - } - } -}; - -/** - * Shorthand for {@link Ext.util.Functions#defer} - * @param {Function} fn The function to defer. - * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - * @member Ext - * @method defer - */ - -Ext.defer = Ext.util.Functions.defer; - -/** - * Shorthand for {@link Ext.util.Functions#createInterceptor} - * @param {Function} origFn The original function. - * @param {Function} newFn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - * @member Ext - * @method defer - */ - -Ext.createInterceptor = Ext.util.Functions.createInterceptor; - -/** - * Shorthand for {@link Ext.util.Functions#createSequence} - * @param {Function} origFn The original function. - * @param {Function} newFn The function to sequence - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - * @member Ext - * @method defer - */ - -Ext.createSequence = Ext.util.Functions.createSequence; - -/** - * Shorthand for {@link Ext.util.Functions#createDelegate} - * @param {Function} fn The function to delegate. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - * @member Ext - * @method defer - */ -Ext.createDelegate = Ext.util.Functions.createDelegate; -/** - * @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 -*/ -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)$/, - unload = Ext.EventManager._unload, - 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 { - _unload: function(){ - Ext.EventManager.un(window, "resize", this.fireWindowResize, this); - unload.call(Ext.EventManager); - }, - - // 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, short accessor for useKeydown - getKeyEvent : function(){ - return useKeydown ? 'keydown' : 'keypress'; - }, - - // 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 - */ -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 updateManager = this.getUpdater(); - updateManager.update.apply(updateManager, 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, - vb = vy + vh, - xy = proposedXY || (!local ? this.getXY() : [this.getLeft(true), this.getTop(true)]), - x = xy[0], y = xy[1], - offset = this.getConstrainOffset(), - w = this.dom.offsetWidth + offset, - h = this.dom.offsetHeight + offset; - - // 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; -// }, - - // private, used internally - getConstrainOffset : function(){ - return 0; - }, - - /** - * 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({ - /** - * 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.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 - */ - -// 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 - */ -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({ - /** - * 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) { - //check if we're scrolling top or left - var top = /top/i.test(side), - me = this, - dom = me.dom, - prop; - if (!animate || !me.anim) { - // just setting the value, so grab the direction - prop = 'scroll' + (top ? 'Top' : 'Left'); - dom[prop] = value; - } - else { - // if scrolling top, we need to grab scrollLeft, if left, scrollTop - prop = 'scroll' + (top ? 'Left' : 'Top'); - 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; - } - // corrects IE, other browsers will ignore - c.scrollTop = c.scrollTop; - - 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 false; - } - 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 - */ -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); - } - - // ie will not expand full height automatically - if (Ext.isIE && !(Ext.isIE7 && Ext.isStrict) && me.getStyle('height') == 'auto') { - 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); - } -}); - -//Import the newly-added Ext.Element functions into CompositeElementLite. We call this here because -//Element.keys.js is the last extra Ext.Element include in the ext-all.js build -Ext.CompositeElementLite.importElementMethods();/** - * @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;/** - * @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()]; - }, - - /** - * Checks if the specified format contains hour information - * @param {Object} format The format to check - * @return {Boolean} True if the format contains hour information - * @static - */ - formatContainsHourInfo : (function(){ - var stripEscapeRe = /(\\.)/g, - hourInfoRe = /([gGhHisucUOPZ]|M\$)/; - return function(format){ - return hourInfoRe.test(format.replace(stripEscapeRe, '')); - }; - })(), - - /** - * 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: "String.leftPad(this.getFullYear(), 4, '0')", - 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; - - // Special handling for year < 100 - var dt = new Date(y < 100 ? 100 : y, m - 1, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0); - - 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 - // handle years < 100 appropriately - "v = new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);", - - // 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 - // handle years < 100 properly - "v = new Date(y < 100 ? 100 : y, m, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);", - "}", - "}", - "}", - - "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 = "", - i = 0, - obj, - last; - - for (; i < format.length; ++i) { - ch = format.charAt(i); - if (!special && ch == "\\") { - special = true; - } else if (special) { - special = false; - regex.push(String.escape(ch)); - } else { - obj = $f(ch, currentGroup); - currentGroup += obj.g; - regex.push(obj.s); - if (obj.g && obj.c) { - if (obj.calcLast) { - last = obj.c; - } else { - calc.push(obj.c); - } - } - } - } - - if (last) { - calc.push(last); - } - - Date.parseRegexes[regexNum] = new RegExp("^" + regex.join('') + "$", 'i'); - 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})" - }, - /** - * In the am/pm parsing routines, we allow both upper and lower case - * even though it doesn't exactly match the spec. It gives much more flexibility - * in being able to specify case insensitive regexes. - */ - a: function(){ - return $f("A"); - }, - A: { - // We need to calculate the hour before we apply AM/PM when parsing - calcLast: true, - g:1, - c:"if (/(am)/i.test(results[{0}])) {\n" - + "if (!h || h == 12) { h = 0; }\n" - + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}", - s:"(AM|PM|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 = [], - oldIndex; - - //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.AbstractManager - * @extends Object - * Base Manager class - extended by ComponentMgr and PluginMgr - */ -Ext.AbstractManager = Ext.extend(Object, { - typeName: 'type', - - constructor: function(config) { - Ext.apply(this, config || {}); - - /** - * Contains all of the items currently managed - * @property all - * @type Ext.util.MixedCollection - */ - this.all = new Ext.util.MixedCollection(); - - this.types = {}; - }, - - /** - * 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 this.all.get(id); - }, - - /** - * Registers an item to be managed - * @param {Mixed} item The item to register - */ - register: function(item) { - this.all.add(item); - }, - - /** - * Unregisters a component by removing it from this manager - * @param {Mixed} item The item to unregister - */ - unregister: function(item) { - this.all.remove(item); - }, - - /** - *

    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(type, cls){ - this.types[type] = cls; - cls[this.typeName] = type; - }, - - /** - * 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(type){ - return this.types[type] !== undefined; - }, - - /** - * Creates and returns an instance of whatever this manager manages, based on the supplied type and config object - * @param {Object} config The config object - * @param {String} defaultType If no type is discovered in the config object, we fall back to this type - * @return {Mixed} The instance of whatever this manager is managing - */ - create: function(config, defaultType) { - var type = config[this.typeName] || config.type || defaultType, - Constructor = this.types[type]; - - if (Constructor == undefined) { - throw new Error(String.format("The '{0}' type has not been registered with this manager", type)); - } - - return new Constructor(config); - }, - - /** - * Registers a function that will be called when a Component with the specified id is added to the manager. 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){ - var all = this.all; - - all.on("add", function(index, o){ - if (o.id == id) { - fn.call(scope || o, o); - all.un("add", fn, scope); - } - }); - } -});/** - * @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, - i; - - for (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 = Ext.extend(Ext.util.Observable, { - - constructor : 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 - * @param {Ext.EventObject} e - */ - "mousedown", - /** - * @event click - * Fires on a specified interval during the time the element is pressed. - * @param {Ext.util.ClickRepeater} this - * @param {Ext.EventObject} e - */ - "click", - /** - * @event mouseup - * Fires when the mouse key is released. - * @param {Ext.util.ClickRepeater} this - * @param {Ext.EventObject} e - */ - "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); - }, - - 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(e){ - clearTimeout(this.timer); - this.el.blur(); - - this.fireEvent("mousedown", this, e); - this.fireEvent("click", this, e); - }, - - // private - handleMouseDown : function(e){ - 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, e); - this.fireEvent("click", this, e); - - // 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, [e]); - }, - - // private - click : function(e){ - this.fireEvent("click", this, e); - this.timer = this.click.defer(this.accelerate ? - this.easeOutExpo(this.mousedownTime.getElapsed(), - 400, - -390, - 12000) : - this.interval, this, [e]); - }, - - 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(e){ - 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, e); - } -});/** - * @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(), - 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, hname); - }, - - // 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, - space : 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", - 32 : "space" - }, - - 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); - } -}); -/** - * @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}
    -multislider      {@link Ext.slider.MultiSlider}
    -panel            {@link Ext.Panel}
    -progress         {@link Ext.ProgressBar}
    -propertygrid     {@link Ext.grid.PropertyGrid}
    -slider           {@link Ext.slider.SingleSlider}
    -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}
    -compositefield   {@link Ext.form.CompositeField}
    -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 this; - } - 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/Ext.Component/Class} xtype The xtype to check for this Component. Note that the the component can either be an instance - * or a component class: - *
    
    -var c = new Ext.Component();
    -console.log(c.isXType(c));
    -console.log(c.isXType(Ext.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/Ext.Component/Class} xtype The xtype to check for this Component. Note that the the component can either be an instance - * or a component class: - * @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 {Ext.Container} The first Container which matches the given xtype or class - */ - findParentByType : function(xtype, shallow){ - return this.findParentBy(function(c){ - return c.isXType(xtype, shallow); - }); - }, - - /** - * 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.Component} 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; - }, - - // 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, - 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; - if(Ext.isDefined(this.lastShadowOffset)) { - 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; - }, - - getConstrainOffset : function(){ - return this.shadowOffset; - }, - - 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 - }, - 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, - iea = 0, - sw = (w + a.w), - sh = (h + a.h), - sws = sw + "px", - shs = sh + "px", - cn, - sww; - s.left = (l + a.l) + "px"; - s.top = (t + a.t) + "px"; - if (s.width != sws || s.height != shs) { - s.width = sws; - s.height = shs; - if (!Ext.isIE) { - cn = d.childNodes; - 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 = [], - 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 && this.layout.setActiveItem){ - 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.

    - *

    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(), 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 - onLayout : function(container, target) { - Ext.layout.AnchorLayout.superclass.onLayout.call(this, container, target); - - var size = this.getLayoutTargetSize(), - containerWidth = size.width, - containerHeight = size.height, - overflow = target.getStyle('overflow'), - components = this.getRenderedItems(container), - len = components.length, - boxes = [], - box, - anchorWidth, - anchorHeight, - component, - anchorSpec, - calcWidth, - calcHeight, - anchorsArray, - totalHeight = 0, - i, - el; - - if(containerWidth < 20 && containerHeight < 20){ - return; - } - - // find the container anchoring size - if(container.anchorSize) { - if(typeof container.anchorSize == 'number') { - anchorWidth = container.anchorSize; - } else { - anchorWidth = container.anchorSize.width; - anchorHeight = container.anchorSize.height; - } - } else { - anchorWidth = container.initialConfig.width; - anchorHeight = container.initialConfig.height; - } - - for(i = 0; i < len; i++) { - component = components[i]; - el = component.getPositionEl(); - - // If a child container item has no anchor and no specific width, set the child to the default anchor size - if (!component.anchor && component.items && !Ext.isNumber(component.width) && !(Ext.isIE6 && Ext.isStrict)){ - component.anchor = this.defaultAnchor; - } - - if(component.anchor) { - anchorSpec = component.anchorSpec; - // cache all anchor values - if(!anchorSpec){ - anchorsArray = component.anchor.split(' '); - component.anchorSpec = anchorSpec = { - right: this.parseAnchor(anchorsArray[0], component.initialConfig.width, anchorWidth), - bottom: this.parseAnchor(anchorsArray[1], component.initialConfig.height, anchorHeight) - }; - } - calcWidth = anchorSpec.right ? this.adjustWidthAnchor(anchorSpec.right(containerWidth) - el.getMargins('lr'), component) : undefined; - calcHeight = anchorSpec.bottom ? this.adjustHeightAnchor(anchorSpec.bottom(containerHeight) - el.getMargins('tb'), component) : undefined; - - if(calcWidth || calcHeight) { - boxes.push({ - component: component, - width: calcWidth || undefined, - height: calcHeight || undefined - }); - } - } - } - for (i = 0, len = boxes.length; i < len; i++) { - box = boxes[i]; - box.component.setSize(box.width, box.height); - } - - if (overflow && overflow != 'hidden' && !this.adjustmentPass) { - var newTargetSize = this.getLayoutTargetSize(); - if (newTargetSize.width != size.width || newTargetSize.height != size.height){ - this.adjustmentPass = true; - this.onLayout(container, target); - } - } - - delete this.adjustmentPass; - }, - - // 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.expandToolEl = 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.destroyMembers(this, 'miniCollapsedEl', 'collapsedEl', 'expandToolEl'); - } -}; - -/** - * @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 true. - */ - trackLabels: true, - - 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 = Ext.isDefined(ct.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, - itemCls = (field.itemCls || this.container.itemCls || '') + (field.hideLabel ? ' x-hide-label' : ''); - - // IE9 quirks needs an extra, identifying class on wrappers of TextFields - if (Ext.isIE9 && Ext.isIEQuirks && field instanceof Ext.form.TextField) { - itemCls += ' x-input-wrapper'; - } - - return { - id : field.id, - label : field.fieldLabel, - itemCls : itemCls, - 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); - }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); - } - }, - - // private - isValidParent : function(c, target){ - return c.getPositionEl().up('table', 5).dom.parentNode === (target.dom || target); - }, - - destroy: function(){ - delete this.table; - Ext.layout.TableLayout.superclass.destroy.call(this); - } - - /** - * @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); - } - - var handler = this.overflowHandler; - - if (typeof handler == 'string') { - handler = { - type: handler - }; - } - - var handlerType = 'none'; - if (handler && handler.type != undefined) { - handlerType = handler.type; - } - - var constructor = Ext.layout.boxOverflow[handlerType]; - if (constructor[this.type]) { - constructor = constructor[this.type]; - } - - this.overflowHandler = new constructor(this, handler); - }, - - /** - * @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 tSize = this.getLayoutTargetSize(), - items = this.getVisibleItems(container), - calcs = this.calculateChildBoxes(items, tSize), - boxes = calcs.boxes, - meta = calcs.meta; - - //invoke the overflow handler, if one is configured - if (tSize.width > 0) { - var handler = this.overflowHandler, - method = meta.tooNarrow ? 'handleOverflow' : 'clearOverflow'; - - var results = handler[method](calcs, tSize); - - if (results) { - if (results.targetSize) { - tSize = results.targetSize; - } - - if (results.recalculate) { - items = this.getVisibleItems(container); - calcs = this.calculateChildBoxes(items, tSize); - boxes = calcs.boxes; - } - } - } - - /** - * @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 = calcs; - - this.updateInnerCtSize(tSize, calcs); - this.updateChildBoxes(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: function(tSize, calcs) { - var align = this.align, - padding = this.padding, - width = tSize.width, - height = tSize.height; - - if (this.type == 'hbox') { - var innerCtWidth = width, - innerCtHeight = calcs.meta.maxHeight + padding.top + padding.bottom; - - if (align == 'stretch') { - innerCtHeight = height; - } else if (align == 'middle') { - innerCtHeight = Math.max(height, innerCtHeight); - } - } else { - var innerCtHeight = height, - innerCtWidth = calcs.meta.maxWidth + padding.left + padding.right; - - if (align == 'stretch') { - innerCtWidth = width; - } else if (align == 'center') { - innerCtWidth = Math.max(width, innerCtWidth); - } - } - - this.innerCt.setSize(innerCtWidth || undefined, innerCtHeight || undefined); - }, - - /** - * @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 && c.shouldLayout !== false){ - 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); - }, - - /** - * @private - */ - destroy: function() { - Ext.destroy(this.overflowHandler); - - Ext.layout.BoxLayout.superclass.destroy.apply(this, arguments); - } -}); - -/** - * @class Ext.layout.boxOverflow.None - * @extends Object - * Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout - * (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox) - * for its container. - */ - -Ext.layout.boxOverflow.None = Ext.extend(Object, { - constructor: function(layout, config) { - this.layout = layout; - - Ext.apply(this, config || {}); - }, - - handleOverflow: Ext.emptyFn, - - clearOverflow: Ext.emptyFn -}); - - -Ext.layout.boxOverflow.none = Ext.layout.boxOverflow.None; -/** - * @class Ext.layout.boxOverflow.Menu - * @extends Ext.layout.boxOverflow.None - * Description - */ -Ext.layout.boxOverflow.Menu = Ext.extend(Ext.layout.boxOverflow.None, { - /** - * @cfg afterCls - * @type String - * CSS class added to the afterCt element. This is the element that holds any special items such as scrollers, - * which must always be present at the rightmost edge of the Container - */ - afterCls: 'x-strip-right', - - /** - * @property noItemsMenuText - * @type String - * HTML fragment to render into the toolbar overflow menu if there are no items to display - */ - noItemsMenuText : '
    (None)
    ', - - constructor: function(layout) { - Ext.layout.boxOverflow.Menu.superclass.constructor.apply(this, arguments); - - /** - * @property menuItems - * @type Array - * Array of all items that are currently hidden and should go into the dropdown menu - */ - this.menuItems = []; - }, - - /** - * @private - * Creates the beforeCt, innerCt and afterCt elements if they have not already been created - * @param {Ext.Container} container The Container attached to this Layout instance - * @param {Ext.Element} target The target Element - */ - createInnerElements: function() { - if (!this.afterCt) { - this.afterCt = this.layout.innerCt.insertSibling({cls: this.afterCls}, 'before'); - } - }, - - /** - * @private - */ - clearOverflow: function(calculations, targetSize) { - var newWidth = targetSize.width + (this.afterCt ? this.afterCt.getWidth() : 0), - items = this.menuItems; - - this.hideTrigger(); - - for (var index = 0, length = items.length; index < length; index++) { - items.pop().component.show(); - } - - return { - targetSize: { - height: targetSize.height, - width : newWidth - } - }; - }, - - /** - * @private - */ - showTrigger: function() { - this.createMenu(); - this.menuTrigger.show(); - }, - - /** - * @private - */ - hideTrigger: function() { - if (this.menuTrigger != undefined) { - this.menuTrigger.hide(); - } - }, - - /** - * @private - * Called before the overflow menu is shown. This constructs the menu's items, caching them for as long as it can. - */ - beforeMenuShow: function(menu) { - var items = this.menuItems, - 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].component; - - 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 - * 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 - * Creates the overflow trigger and menu used when enableOverflow is set to true and the items - * in the layout are too wide to fit in the space available - */ - createMenu: function() { - if (!this.menuTrigger) { - this.createInnerElements(); - - /** - * @private - * @property menu - * @type Ext.menu.Menu - * The expand menu - holds items for every item that cannot be shown - * because the container is currently not large enough. - */ - this.menu = new Ext.menu.Menu({ - ownerCt : this.layout.container, - listeners: { - scope: this, - beforeshow: this.beforeMenuShow - } - }); - - /** - * @private - * @property menuTrigger - * @type Ext.Button - * The expand button which triggers the overflow menu to be shown - */ - this.menuTrigger = new Ext.Button({ - iconCls : 'x-toolbar-more-icon', - cls : 'x-toolbar-more', - menu : this.menu, - renderTo: this.afterCt - }); - } - }, - - /** - * @private - */ - destroy: function() { - Ext.destroy(this.menu, this.menuTrigger); - } -}); - -Ext.layout.boxOverflow.menu = Ext.layout.boxOverflow.Menu; - - -/** - * @class Ext.layout.boxOverflow.HorizontalMenu - * @extends Ext.layout.boxOverflow.Menu - * Description - */ -Ext.layout.boxOverflow.HorizontalMenu = Ext.extend(Ext.layout.boxOverflow.Menu, { - - constructor: function() { - Ext.layout.boxOverflow.HorizontalMenu.superclass.constructor.apply(this, arguments); - - var me = this, - layout = me.layout, - origFunction = layout.calculateChildBoxes; - - layout.calculateChildBoxes = function(visibleItems, targetSize) { - var calcs = origFunction.apply(layout, arguments), - meta = calcs.meta, - items = me.menuItems; - - //calculate the width of the items currently hidden solely because there is not enough space - //to display them - var hiddenWidth = 0; - for (var index = 0, length = items.length; index < length; index++) { - hiddenWidth += items[index].width; - } - - meta.minimumWidth += hiddenWidth; - meta.tooNarrow = meta.minimumWidth > targetSize.width; - - return calcs; - }; - }, - - handleOverflow: function(calculations, targetSize) { - this.showTrigger(); - - var newWidth = targetSize.width - this.afterCt.getWidth(), - boxes = calculations.boxes, - usedWidth = 0, - recalculate = false; - - //calculate the width of all visible items and any spare width - for (var index = 0, length = boxes.length; index < length; index++) { - usedWidth += boxes[index].width; - } - - var spareWidth = newWidth - usedWidth, - showCount = 0; - - //see if we can re-show any of the hidden components - for (var index = 0, length = this.menuItems.length; index < length; index++) { - var hidden = this.menuItems[index], - comp = hidden.component, - width = hidden.width; - - if (width < spareWidth) { - comp.show(); - - spareWidth -= width; - showCount ++; - recalculate = true; - } else { - break; - } - } - - if (recalculate) { - this.menuItems = this.menuItems.slice(showCount); - } else { - for (var i = boxes.length - 1; i >= 0; i--) { - var item = boxes[i].component, - right = boxes[i].left + boxes[i].width; - - if (right >= newWidth) { - this.menuItems.unshift({ - component: item, - width : boxes[i].width - }); - - item.hide(); - } else { - break; - } - } - } - - if (this.menuItems.length == 0) { - this.hideTrigger(); - } - - return { - targetSize: { - height: targetSize.height, - width : newWidth - }, - recalculate: recalculate - }; - } -}); - -Ext.layout.boxOverflow.menu.hbox = Ext.layout.boxOverflow.HorizontalMenu;/** - * @class Ext.layout.boxOverflow.Scroller - * @extends Ext.layout.boxOverflow.None - * Description - */ -Ext.layout.boxOverflow.Scroller = Ext.extend(Ext.layout.boxOverflow.None, { - /** - * @cfg animateScroll - * @type Boolean - * True to animate the scrolling of items within the layout (defaults to true, ignored if enableScroll is false) - */ - animateScroll: true, - - /** - * @cfg scrollIncrement - * @type Number - * The number of pixels to scroll by on scroller click (defaults to 100) - */ - scrollIncrement: 100, - - /** - * @cfg wheelIncrement - * @type Number - * The number of pixels to increment on mouse wheel scrolling (defaults to 3). - */ - wheelIncrement: 3, - - /** - * @cfg scrollRepeatInterval - * @type Number - * Number of milliseconds between each scroll while a scroller button is held down (defaults to 400) - */ - scrollRepeatInterval: 400, - - /** - * @cfg scrollDuration - * @type Number - * Number of seconds that each scroll animation lasts (defaults to 0.4) - */ - scrollDuration: 0.4, - - /** - * @cfg beforeCls - * @type String - * CSS class added to the beforeCt element. This is the element that holds any special items such as scrollers, - * which must always be present at the leftmost edge of the Container - */ - beforeCls: 'x-strip-left', - - /** - * @cfg afterCls - * @type String - * CSS class added to the afterCt element. This is the element that holds any special items such as scrollers, - * which must always be present at the rightmost edge of the Container - */ - afterCls: 'x-strip-right', - - /** - * @cfg scrollerCls - * @type String - * CSS class added to both scroller elements if enableScroll is used - */ - scrollerCls: 'x-strip-scroller', - - /** - * @cfg beforeScrollerCls - * @type String - * CSS class added to the left scroller element if enableScroll is used - */ - beforeScrollerCls: 'x-strip-scroller-left', - - /** - * @cfg afterScrollerCls - * @type String - * CSS class added to the right scroller element if enableScroll is used - */ - afterScrollerCls: 'x-strip-scroller-right', - - /** - * @private - * Sets up an listener to scroll on the layout's innerCt mousewheel event - */ - createWheelListener: function() { - this.layout.innerCt.on({ - scope : this, - mousewheel: function(e) { - e.stopEvent(); - - this.scrollBy(e.getWheelDelta() * this.wheelIncrement * -1, false); - } - }); - }, - - /** - * @private - * Most of the heavy lifting is done in the subclasses - */ - handleOverflow: function(calculations, targetSize) { - this.createInnerElements(); - this.showScrollers(); - }, - - /** - * @private - */ - clearOverflow: function() { - this.hideScrollers(); - }, - - /** - * @private - * Shows the scroller elements in the beforeCt and afterCt. Creates the scrollers first if they are not already - * present. - */ - showScrollers: function() { - this.createScrollers(); - - this.beforeScroller.show(); - this.afterScroller.show(); - - this.updateScrollButtons(); - }, - - /** - * @private - * Hides the scroller elements in the beforeCt and afterCt - */ - hideScrollers: function() { - if (this.beforeScroller != undefined) { - this.beforeScroller.hide(); - this.afterScroller.hide(); - } - }, - - /** - * @private - * Creates the clickable scroller elements and places them into the beforeCt and afterCt - */ - createScrollers: function() { - if (!this.beforeScroller && !this.afterScroller) { - var before = this.beforeCt.createChild({ - cls: String.format("{0} {1} ", this.scrollerCls, this.beforeScrollerCls) - }); - - var after = this.afterCt.createChild({ - cls: String.format("{0} {1}", this.scrollerCls, this.afterScrollerCls) - }); - - before.addClassOnOver(this.beforeScrollerCls + '-hover'); - after.addClassOnOver(this.afterScrollerCls + '-hover'); - - before.setVisibilityMode(Ext.Element.DISPLAY); - after.setVisibilityMode(Ext.Element.DISPLAY); - - this.beforeRepeater = new Ext.util.ClickRepeater(before, { - interval: this.scrollRepeatInterval, - handler : this.scrollLeft, - scope : this - }); - - this.afterRepeater = new Ext.util.ClickRepeater(after, { - interval: this.scrollRepeatInterval, - handler : this.scrollRight, - scope : this - }); - - /** - * @property beforeScroller - * @type Ext.Element - * The left scroller element. Only created when needed. - */ - this.beforeScroller = before; - - /** - * @property afterScroller - * @type Ext.Element - * The left scroller element. Only created when needed. - */ - this.afterScroller = after; - } - }, - - /** - * @private - */ - destroy: function() { - Ext.destroy(this.beforeScroller, this.afterScroller, this.beforeRepeater, this.afterRepeater, this.beforeCt, this.afterCt); - }, - - /** - * @private - * Scrolls left or right by the number of pixels specified - * @param {Number} delta Number of pixels to scroll to the right by. Use a negative number to scroll left - */ - scrollBy: function(delta, animate) { - this.scrollTo(this.getScrollPosition() + delta, animate); - }, - - /** - * @private - * Normalizes an item reference, string id or numerical index into a reference to the item - * @param {Ext.Component|String|Number} item The item reference, id or index - * @return {Ext.Component} The item - */ - getItem: function(item) { - if (Ext.isString(item)) { - item = Ext.getCmp(item); - } else if (Ext.isNumber(item)) { - item = this.items[item]; - } - - return item; - }, - - /** - * @private - * @return {Object} Object passed to scrollTo when scrolling - */ - getScrollAnim: function() { - return { - duration: this.scrollDuration, - callback: this.updateScrollButtons, - scope : this - }; - }, - - /** - * @private - * Enables or disables each scroller button based on the current scroll position - */ - updateScrollButtons: function() { - if (this.beforeScroller == undefined || this.afterScroller == undefined) { - return; - } - - var beforeMeth = this.atExtremeBefore() ? 'addClass' : 'removeClass', - afterMeth = this.atExtremeAfter() ? 'addClass' : 'removeClass', - beforeCls = this.beforeScrollerCls + '-disabled', - afterCls = this.afterScrollerCls + '-disabled'; - - this.beforeScroller[beforeMeth](beforeCls); - this.afterScroller[afterMeth](afterCls); - this.scrolling = false; - }, - - /** - * @private - * Returns true if the innerCt scroll is already at its left-most point - * @return {Boolean} True if already at furthest left point - */ - atExtremeBefore: function() { - return this.getScrollPosition() === 0; - }, - - /** - * @private - * Scrolls to the left by the configured amount - */ - scrollLeft: function(animate) { - this.scrollBy(-this.scrollIncrement, animate); - }, - - /** - * @private - * Scrolls to the right by the configured amount - */ - scrollRight: function(animate) { - this.scrollBy(this.scrollIncrement, animate); - }, - - /** - * Scrolls to the given component. - * @param {String|Number|Ext.Component} item The item to scroll to. Can be a numerical index, component id - * or a reference to the component itself. - * @param {Boolean} animate True to animate the scrolling - */ - scrollToItem: function(item, animate) { - item = this.getItem(item); - - if (item != undefined) { - var visibility = this.getItemVisibility(item); - - if (!visibility.fullyVisible) { - var box = item.getBox(true, true), - newX = box.x; - - if (visibility.hiddenRight) { - newX -= (this.layout.innerCt.getWidth() - box.width); - } - - this.scrollTo(newX, animate); - } - } - }, - - /** - * @private - * For a given item in the container, return an object with information on whether the item is visible - * with the current innerCt scroll value. - * @param {Ext.Component} item The item - * @return {Object} Values for fullyVisible, hiddenLeft and hiddenRight - */ - getItemVisibility: function(item) { - var box = this.getItem(item).getBox(true, true), - itemLeft = box.x, - itemRight = box.x + box.width, - scrollLeft = this.getScrollPosition(), - scrollRight = this.layout.innerCt.getWidth() + scrollLeft; - - return { - hiddenLeft : itemLeft < scrollLeft, - hiddenRight : itemRight > scrollRight, - fullyVisible: itemLeft > scrollLeft && itemRight < scrollRight - }; - } -}); - -Ext.layout.boxOverflow.scroller = Ext.layout.boxOverflow.Scroller; - - -/** - * @class Ext.layout.boxOverflow.VerticalScroller - * @extends Ext.layout.boxOverflow.Scroller - * Description - */ -Ext.layout.boxOverflow.VerticalScroller = Ext.extend(Ext.layout.boxOverflow.Scroller, { - scrollIncrement: 75, - wheelIncrement : 2, - - handleOverflow: function(calculations, targetSize) { - Ext.layout.boxOverflow.VerticalScroller.superclass.handleOverflow.apply(this, arguments); - - return { - targetSize: { - height: targetSize.height - (this.beforeCt.getHeight() + this.afterCt.getHeight()), - width : targetSize.width - } - }; - }, - - /** - * @private - * Creates the beforeCt and afterCt elements if they have not already been created - */ - createInnerElements: function() { - var target = this.layout.innerCt; - - //normal items will be rendered to the innerCt. beforeCt and afterCt allow for fixed positioning of - //special items such as scrollers or dropdown menu triggers - if (!this.beforeCt) { - this.beforeCt = target.insertSibling({cls: this.beforeCls}, 'before'); - this.afterCt = target.insertSibling({cls: this.afterCls}, 'after'); - - this.createWheelListener(); - } - }, - - /** - * @private - * Scrolls to the given position. Performs bounds checking. - * @param {Number} position The position to scroll to. This is constrained. - * @param {Boolean} animate True to animate. If undefined, falls back to value of this.animateScroll - */ - scrollTo: function(position, animate) { - var oldPosition = this.getScrollPosition(), - newPosition = position.constrain(0, this.getMaxScrollBottom()); - - if (newPosition != oldPosition && !this.scrolling) { - if (animate == undefined) { - animate = this.animateScroll; - } - - this.layout.innerCt.scrollTo('top', newPosition, animate ? this.getScrollAnim() : false); - - if (animate) { - this.scrolling = true; - } else { - this.scrolling = false; - this.updateScrollButtons(); - } - } - }, - - /** - * Returns the current scroll position of the innerCt element - * @return {Number} The current scroll position - */ - getScrollPosition: function(){ - return parseInt(this.layout.innerCt.dom.scrollTop, 10) || 0; - }, - - /** - * @private - * Returns the maximum value we can scrollTo - * @return {Number} The max scroll value - */ - getMaxScrollBottom: function() { - return this.layout.innerCt.dom.scrollHeight - this.layout.innerCt.getHeight(); - }, - - /** - * @private - * Returns true if the innerCt scroll is already at its right-most point - * @return {Boolean} True if already at furthest right point - */ - atExtremeAfter: function() { - return this.getScrollPosition() >= this.getMaxScrollBottom(); - } -}); - -Ext.layout.boxOverflow.scroller.vbox = Ext.layout.boxOverflow.VerticalScroller; - - -/** - * @class Ext.layout.boxOverflow.HorizontalScroller - * @extends Ext.layout.boxOverflow.Scroller - * Description - */ -Ext.layout.boxOverflow.HorizontalScroller = Ext.extend(Ext.layout.boxOverflow.Scroller, { - handleOverflow: function(calculations, targetSize) { - Ext.layout.boxOverflow.HorizontalScroller.superclass.handleOverflow.apply(this, arguments); - - return { - targetSize: { - height: targetSize.height, - width : targetSize.width - (this.beforeCt.getWidth() + this.afterCt.getWidth()) - } - }; - }, - - /** - * @private - * Creates the beforeCt and afterCt elements if they have not already been created - */ - createInnerElements: function() { - var target = this.layout.innerCt; - - //normal items will be rendered to the innerCt. beforeCt and afterCt allow for fixed positioning of - //special items such as scrollers or dropdown menu triggers - if (!this.beforeCt) { - this.afterCt = target.insertSibling({cls: this.afterCls}, 'before'); - this.beforeCt = target.insertSibling({cls: this.beforeCls}, 'before'); - - this.createWheelListener(); - } - }, - - /** - * @private - * Scrolls to the given position. Performs bounds checking. - * @param {Number} position The position to scroll to. This is constrained. - * @param {Boolean} animate True to animate. If undefined, falls back to value of this.animateScroll - */ - scrollTo: function(position, animate) { - var oldPosition = this.getScrollPosition(), - newPosition = position.constrain(0, this.getMaxScrollRight()); - - if (newPosition != oldPosition && !this.scrolling) { - if (animate == undefined) { - animate = this.animateScroll; - } - - this.layout.innerCt.scrollTo('left', newPosition, animate ? this.getScrollAnim() : false); - - if (animate) { - this.scrolling = true; - } else { - this.scrolling = false; - this.updateScrollButtons(); - } - } - }, - - /** - * Returns the current scroll position of the innerCt element - * @return {Number} The current scroll position - */ - getScrollPosition: function(){ - return parseInt(this.layout.innerCt.dom.scrollLeft, 10) || 0; - }, - - /** - * @private - * Returns the maximum value we can scrollTo - * @return {Number} The max scroll value - */ - getMaxScrollRight: function() { - return this.layout.innerCt.dom.scrollWidth - this.layout.innerCt.getWidth(); - }, - - /** - * @private - * Returns true if the innerCt scroll is already at its right-most point - * @return {Boolean} True if already at furthest right point - */ - atExtremeAfter: function() { - return this.getScrollPosition() >= this.getMaxScrollRight(); - } -}); - -Ext.layout.boxOverflow.scroller.hbox = Ext.layout.boxOverflow.HorizontalScroller;/** - * @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', - - /** - * @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', - - nonFlexWidth = 0, - maxHeight = 0, - totalFlex = 0, - desiredWidth = 0, - minimumWidth = 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, - horizMargins, 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 && typeof child.doLayout == 'function'; - - // Static width (numeric) requires no calcs - if (typeof childWidth != 'number') { - - // 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; - horizMargins = childMargins.left + childMargins.right; - - nonFlexWidth += horizMargins + (childWidth || 0); - desiredWidth += horizMargins + (child.flex ? child.minWidth || 0 : childWidth); - minimumWidth += horizMargins + (child.minWidth || childWidth || 0); - - // Max height for align - force layout of non-laid out subcontainers without a numeric height - if (typeof childHeight != 'number') { - if (canLayout) { - child.doLayout(); - } - childHeight = child.getHeight(); - } - - maxHeight = Math.max(maxHeight, childHeight + childMargins.top + childMargins.bottom); - - //cache the size of each child component. Don't set height or width to 0, keep undefined instead - boxes.push({ - component: child, - height : childHeight || undefined, - width : childWidth || undefined - }); - } - - var shortfall = desiredWidth - width, - tooNarrow = minimumWidth > width; - - //the width available to the flexed items - var availableWidth = Math.max(0, width - nonFlexWidth - paddingHoriz); - - if (tooNarrow) { - for (i = 0; i < visibleCount; i++) { - boxes[i].width = visibleItems[i].minWidth || visibleItems[i].width || boxes[i].width; - } - } else { - //all flexed items should be sized to their minimum width, other items should be shrunk down until - //the shortfall has been accounted for - if (shortfall > 0) { - var minWidths = []; - - /** - * When we have a shortfall but are not tooNarrow, we need to shrink the width of each non-flexed item. - * Flexed items are immediately reduced to their minWidth and anything already at minWidth is ignored. - * The remaining items are collected into the minWidths array, which is later used to distribute the shortfall. - */ - for (var index = 0, length = visibleCount; index < length; index++) { - var item = visibleItems[index], - minWidth = item.minWidth || 0; - - //shrink each non-flex tab by an equal amount to make them all fit. Flexed items are all - //shrunk to their minWidth because they're flexible and should be the first to lose width - if (item.flex) { - boxes[index].width = minWidth; - } else { - minWidths.push({ - minWidth : minWidth, - available: boxes[index].width - minWidth, - index : index - }); - } - } - - //sort by descending amount of width remaining before minWidth is reached - minWidths.sort(function(a, b) { - return a.available > b.available ? 1 : -1; - }); - - /* - * Distribute the shortfall (difference between total desired with of all items and actual width available) - * between the non-flexed items. We try to distribute the shortfall evenly, but apply it to items with the - * smallest difference between their width and minWidth first, so that if reducing the width by the average - * amount would make that item less than its minWidth, we carry the remainder over to the next item. - */ - for (var i = 0, length = minWidths.length; i < length; i++) { - var itemIndex = minWidths[i].index; - - if (itemIndex == undefined) { - continue; - } - - var item = visibleItems[itemIndex], - box = boxes[itemIndex], - oldWidth = box.width, - minWidth = item.minWidth, - newWidth = Math.max(minWidth, oldWidth - Math.ceil(shortfall / (length - i))), - reduction = oldWidth - newWidth; - - boxes[itemIndex].width = newWidth; - shortfall -= reduction; - } - } else { - //temporary variables used in the flex width calculations below - var remainingWidth = availableWidth, - remainingFlex = totalFlex; - - //calculate the widths of each flexed item - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - vertMargins = childMargins.top + childMargins.bottom; - - if (isStart && child.flex && !child.width) { - flexedWidth = Math.ceil((child.flex / remainingFlex) * remainingWidth); - remainingWidth -= flexedWidth; - remainingFlex -= child.flex; - - calcs.width = flexedWidth; - calcs.dirtySize = true; - } - } - } - } - - if (isCenter) { - leftOffset += availableWidth / 2; - } else if (isEnd) { - leftOffset += availableWidth; - } - - //finally, calculate the left and top position of each item - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - leftOffset += childMargins.left; - vertMargins = childMargins.top + childMargins.bottom; - - 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, - nonFlexWidth: nonFlexWidth, - desiredWidth: desiredWidth, - minimumWidth: minimumWidth, - shortfall : desiredWidth - width, - tooNarrow : tooNarrow - } - }; - } -}); - -Ext.Container.LAYOUTS.hbox = Ext.layout.HBoxLayout;/** - * @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 - * 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, - desiredHeight= 0, - minimumHeight= 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, vertMargins, stretchWidth, length; - - //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 && typeof child.doLayout == 'function'; - - // Static height (numeric) requires no calcs - if (typeof childHeight != 'number') { - - // 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; - vertMargins = childMargins.top + childMargins.bottom; - - nonFlexHeight += vertMargins + (childHeight || 0); - desiredHeight += vertMargins + (child.flex ? child.minHeight || 0 : childHeight); - minimumHeight += vertMargins + (child.minHeight || childHeight || 0); - - // Max width for align - force layout of non-layed out subcontainers without a numeric width - if (typeof childWidth != 'number') { - 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 - }); - } - - var shortfall = desiredHeight - height, - tooNarrow = minimumHeight > height; - - //the height available to the flexed items - var availableHeight = Math.max(0, (height - nonFlexHeight - paddingVert)); - - if (tooNarrow) { - for (i = 0, length = visibleCount; i < length; i++) { - boxes[i].height = visibleItems[i].minHeight || visibleItems[i].height || boxes[i].height; - } - } else { - //all flexed items should be sized to their minimum width, other items should be shrunk down until - //the shortfall has been accounted for - if (shortfall > 0) { - var minHeights = []; - - /** - * When we have a shortfall but are not tooNarrow, we need to shrink the height of each non-flexed item. - * Flexed items are immediately reduced to their minHeight and anything already at minHeight is ignored. - * The remaining items are collected into the minHeights array, which is later used to distribute the shortfall. - */ - for (var index = 0, length = visibleCount; index < length; index++) { - var item = visibleItems[index], - minHeight = item.minHeight || 0; - - //shrink each non-flex tab by an equal amount to make them all fit. Flexed items are all - //shrunk to their minHeight because they're flexible and should be the first to lose height - if (item.flex) { - boxes[index].height = minHeight; - } else { - minHeights.push({ - minHeight: minHeight, - available: boxes[index].height - minHeight, - index : index - }); - } - } - - //sort by descending minHeight value - minHeights.sort(function(a, b) { - return a.available > b.available ? 1 : -1; - }); - - /* - * Distribute the shortfall (difference between total desired with of all items and actual height available) - * between the non-flexed items. We try to distribute the shortfall evenly, but apply it to items with the - * smallest difference between their height and minHeight first, so that if reducing the height by the average - * amount would make that item less than its minHeight, we carry the remainder over to the next item. - */ - for (var i = 0, length = minHeights.length; i < length; i++) { - var itemIndex = minHeights[i].index; - - if (itemIndex == undefined) { - continue; - } - - var item = visibleItems[itemIndex], - box = boxes[itemIndex], - oldHeight = box.height, - minHeight = item.minHeight, - newHeight = Math.max(minHeight, oldHeight - Math.ceil(shortfall / (length - i))), - reduction = oldHeight - newHeight; - - boxes[itemIndex].height = newHeight; - shortfall -= reduction; - } - } else { - //temporary variables used in the flex height calculations below - var remainingHeight = availableHeight, - remainingFlex = totalFlex; - - //calculate the height of each flexed item - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - horizMargins = childMargins.left + childMargins.right; - - if (isStart && child.flex && !child.height) { - flexedHeight = Math.ceil((child.flex / remainingFlex) * remainingHeight); - remainingHeight -= flexedHeight; - remainingFlex -= child.flex; - - calcs.height = flexedHeight; - calcs.dirtySize = true; - } - } - } - } - - if (isCenter) { - topOffset += availableHeight / 2; - } else if (isEnd) { - topOffset += availableHeight; - } - - //finally, calculate the left and top position of each item - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - topOffset += childMargins.top; - horizMargins = childMargins.left + childMargins.right; - - - 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, - nonFlexHeight: nonFlexHeight, - desiredHeight: desiredHeight, - minimumHeight: minimumHeight, - shortfall : desiredHeight - height, - tooNarrow : tooNarrow - } - }; - } -}); - -Ext.Container.LAYOUTS.vbox = Ext.layout.VBoxLayout; -/** - * @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)); - this.configureItem(c); - } 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( - '
    • ', - '', - '{altText}', - '', - '
    • ' - ); - } - - 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); - }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, - canHaveIcon = !(isMenuItem || c instanceof Ext.menu.Separator); - - return { - isMenuItem: isMenuItem, - needsIcon: canHaveIcon && (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 ', - altText: c.altText || '' - }; - }, - - // 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 || Ext.isIE9) ? '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', alt: '', 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 = 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){ - // IE7 in strict mode doesn't size properly. - if(Ext.isGecko2 || Ext.isOpera || (Ext.isIE7 && Ext.isStrict)){ - // 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); - } - } -};/** - * @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, { - - /** - * True while the thumb is in a drag operation - * @type Boolean - */ - dragging: false, - - /** - * @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); - } - }, - - /** - * @private - * Destroys the thumb - */ - destroy: function(){ - Ext.destroyMembers(this, 'tracker', 'el'); - } -}); - -/** - * @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, - /** - * @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.MultiSlider} 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.MultiSlider} 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.MultiSlider} 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.MultiSlider} 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.MultiSlider} 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.MultiSlider} 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(); - } - // check to see if we're using an auto width - if(Ext.isNumber(w)){ - 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(){ - var thumbs = this.thumbs; - for(var i = 0, len = thumbs.length; i < len; ++i){ - thumbs[i].destroy(); - thumbs[i] = null; - } - Ext.destroyMembers(this, 'endEl', 'innerEl', 'focusEl', '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);/* - * 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, region; - - 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]; - - region = new Ext.lib.Region( t, r, b, l ); - /* - * The code below is to ensure that large scrolling elements will - * only have their visible area recognized as a drop target, otherwise it - * can potentially erronously register as a target when the element scrolls - * over the top of something below it. - */ - el = Ext.get(el.parentNode); - while (el && region) { - if (el.isScrollable()) { - // check whether our element is visible in the view port: - region = region.intersect(el.getRegion()); - } - el = el.parent(); - } - return region; - }, - - /** - * 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) { - Event.removeListener(document, "mouseup", this.handleMouseUp, this); - Event.removeListener(document, "mousemove", this.handleMouseMove, this); - Event.removeListener(window, "resize", this._onResize, this); - 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.MultiSlider}, 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.MultiSlider}'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} e event object - */ - '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); - delete this.el; - }, - - 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(); - } - Ext.getDoc().on({ - scope: this, - mouseup: this.onMouseUp, - mousemove: this.onMouseMove, - selectstart: this.stopSelect - }); - if(this.autoStart){ - this.timer = this.triggerStart.defer(this.autoStart === true ? 1000 : this.autoStart, this, [e]); - } - } - }, - - 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(e); - }else{ - return; - } - } - this.fireEvent('mousemove', this, e); - this.onDrag(e); - this.fireEvent('drag', this, e); - }, - - onMouseUp: function(e) { - var doc = Ext.getDoc(), - wasActive = this.active; - - doc.un('mousemove', this.onMouseMove, this); - doc.un('mouseup', this.onMouseUp, this); - doc.un('selectstart', this.stopSelect, this); - e.preventDefault(); - this.clearStart(); - this.active = false; - delete this.elRegion; - this.fireEvent('mouseup', this, e); - if(wasActive){ - this.onEnd(e); - this.fireEvent('dragend', this, e); - } - }, - - triggerStart: function(e) { - this.clearStart(); - this.active = true; - this.onStart(e); - this.fireEvent('dragstart', this, e); - }, - - 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 {Ext.EventObject} e The event object - */ - 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), - 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 group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined, - freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) - ? el.ddScrollConfig.frequency - : Ext.dd.ScrollManager.frequency; - - if (group === undefined || ddm.dragCurrent.ddGroup == group) { - 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 100) - * @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, - - /** - * The named drag drop {@link Ext.dd.DragSource#ddGroup group} to which this container belongs (defaults to undefined). - * If a ddGroup is specified, then container scrolling will only occur when a dragged object is in the same ddGroup. - * @type String - */ - ddGroup: undefined, - - /** - * 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 = Ext.extend(Ext.dd.DDTarget, { - - constructor : 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}); - }, - - /** - * @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; - }, - - destroy : function(){ - Ext.dd.DropTarget.superclass.destroy.call(this); - if(this.containerScroll){ - Ext.dd.ScrollManager.unregister(this.el); - } - } -});/** - * @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 = Ext.extend(Ext.dd.DragSource, { - - constructor : function(el, config){ - Ext.dd.DragZone.superclass.constructor.call(this, el, config); - if(this.containerScroll){ - Ext.dd.ScrollManager.register(this.el); - } - }, - - /** - * 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(); - }, - - destroy : function(){ - Ext.dd.DragZone.superclass.destroy.call(this); - if(this.containerScroll){ - Ext.dd.ScrollManager.unregister(this.el); - } - } -});/** - * @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); - } -}); -/** - * @class Ext.data.Api - * @extends Object - * Ext.data.Api is a singleton designed to manage the data API including methods - * for validating a developer's DataProxy API. Defines variables for CRUD actions - * create, read, update and destroy in addition to a mapping of RESTful HTTP methods - * GET, POST, PUT and DELETE to CRUD actions. - * @singleton - */ -Ext.data.Api = (function() { - - // private validActions. validActions is essentially an inverted hash of Ext.data.Api.actions, where value becomes the key. - // Some methods in this singleton (e.g.: getActions, getVerb) will loop through actions with the code for (var verb in this.actions) - // For efficiency, some methods will first check this hash for a match. Those methods which do acces validActions will cache their result here. - // We cannot pre-define this hash since the developer may over-ride the actions at runtime. - var validActions = {}; - - return { - /** - * Defined actions corresponding to remote actions: - *
      
      -actions: {
      -    create  : 'create',  // Text representing the remote-action to create records on server.
      -    read    : 'read',    // Text representing the remote-action to read/load data from server.
      -    update  : 'update',  // Text representing the remote-action to update records on server.
      -    destroy : 'destroy'  // Text representing the remote-action to destroy records on server.
      -}
      -         * 
      - * @property actions - * @type Object - */ - actions : { - create : 'create', - read : 'read', - update : 'update', - destroy : 'destroy' - }, - - /** - * Defined {CRUD action}:{HTTP method} pairs to associate HTTP methods with the - * corresponding actions for {@link Ext.data.DataProxy#restful RESTful proxies}. - * Defaults to: - *
      
      -restActions : {
      -    create  : 'POST',
      -    read    : 'GET',
      -    update  : 'PUT',
      -    destroy : 'DELETE'
      -},
      -         * 
      - */ - restActions : { - create : 'POST', - read : 'GET', - update : 'PUT', - destroy : 'DELETE' - }, - - /** - * Returns true if supplied action-name is a valid API action defined in {@link #actions} constants - * @param {String} action Action to test for availability. - * @return {Boolean} - */ - isAction : function(action) { - return (Ext.data.Api.actions[action]) ? true : false; - }, - - /** - * Returns the actual CRUD action KEY "create", "read", "update" or "destroy" from the supplied action-name. This method is used internally and shouldn't generally - * need to be used directly. The key/value pair of Ext.data.Api.actions will often be identical but this is not necessarily true. A developer can override this naming - * convention if desired. However, the framework internally calls methods based upon the KEY so a way of retreiving the the words "create", "read", "update" and "destroy" is - * required. This method will cache discovered KEYS into the private validActions hash. - * @param {String} name The runtime name of the action. - * @return {String||null} returns the action-key, or verb of the user-action or null if invalid. - * @nodoc - */ - getVerb : function(name) { - if (validActions[name]) { - return validActions[name]; // <-- found in cache. return immediately. - } - for (var verb in this.actions) { - if (this.actions[verb] === name) { - validActions[name] = verb; - break; - } - } - return (validActions[name] !== undefined) ? validActions[name] : null; - }, - - /** - * Returns true if the supplied API is valid; that is, check that all keys match defined actions - * otherwise returns an array of mistakes. - * @return {String[]|true} - */ - isValid : function(api){ - var invalid = []; - var crud = this.actions; // <-- cache a copy of the actions. - for (var action in api) { - if (!(action in crud)) { - invalid.push(action); - } - } - return (!invalid.length) ? true : invalid; - }, - - /** - * Returns true if the supplied verb upon the supplied proxy points to a unique url in that none of the other api-actions - * point to the same url. The question is important for deciding whether to insert the "xaction" HTTP parameter within an - * Ajax request. This method is used internally and shouldn't generally need to be called directly. - * @param {Ext.data.DataProxy} proxy - * @param {String} verb - * @return {Boolean} - */ - hasUniqueUrl : function(proxy, verb) { - var url = (proxy.api[verb]) ? proxy.api[verb].url : null; - var unique = true; - for (var action in proxy.api) { - if ((unique = (action === verb) ? true : (proxy.api[action].url != url) ? true : false) === false) { - break; - } - } - return unique; - }, - - /** - * This method is used internally by {@link Ext.data.DataProxy DataProxy} and should not generally need to be used directly. - * Each action of a DataProxy api can be initially defined as either a String or an Object. When specified as an object, - * one can explicitly define the HTTP method (GET|POST) to use for each CRUD action. This method will prepare the supplied API, setting - * each action to the Object form. If your API-actions do not explicitly define the HTTP method, the "method" configuration-parameter will - * be used. If the method configuration parameter is not specified, POST will be used. -
      
      -new Ext.data.HttpProxy({
      -    method: "POST",     // <-- default HTTP method when not specified.
      -    api: {
      -        create: 'create.php',
      -        load: 'read.php',
      -        save: 'save.php',
      -        destroy: 'destroy.php'
      -    }
      -});
      -
      -// Alternatively, one can use the object-form to specify the API
      -new Ext.data.HttpProxy({
      -    api: {
      -        load: {url: 'read.php', method: 'GET'},
      -        create: 'create.php',
      -        destroy: 'destroy.php',
      -        save: 'update.php'
      -    }
      -});
      -        
      - * - * @param {Ext.data.DataProxy} proxy - */ - prepare : function(proxy) { - if (!proxy.api) { - proxy.api = {}; // <-- No api? create a blank one. - } - for (var verb in this.actions) { - var action = this.actions[verb]; - proxy.api[action] = proxy.api[action] || proxy.url || proxy.directFn; - if (typeof(proxy.api[action]) == 'string') { - proxy.api[action] = { - url: proxy.api[action], - method: (proxy.restful === true) ? Ext.data.Api.restActions[action] : undefined - }; - } - } - }, - - /** - * Prepares a supplied Proxy to be RESTful. Sets the HTTP method for each api-action to be one of - * GET, POST, PUT, DELETE according to the defined {@link #restActions}. - * @param {Ext.data.DataProxy} proxy - */ - restify : function(proxy) { - proxy.restful = true; - for (var verb in this.restActions) { - proxy.api[this.actions[verb]].method || - (proxy.api[this.actions[verb]].method = this.restActions[verb]); - } - // TODO: perhaps move this interceptor elsewhere? like into DataProxy, perhaps? Placed here - // to satisfy initial 3.0 final release of REST features. - proxy.onWrite = proxy.onWrite.createInterceptor(function(action, o, response, rs) { - var reader = o.reader; - var res = new Ext.data.Response({ - action: action, - raw: response - }); - - switch (response.status) { - case 200: // standard 200 response, send control back to HttpProxy#onWrite by returning true from this intercepted #onWrite - return true; - break; - case 201: // entity created but no response returned - if (Ext.isEmpty(res.raw.responseText)) { - res.success = true; - } else { - //if the response contains data, treat it like a 200 - return true; - } - break; - case 204: // no-content. Create a fake response. - res.success = true; - res.data = null; - break; - default: - return true; - break; - } - if (res.success === true) { - this.fireEvent("write", this, action, res.data, res, rs, o.request.arg); - } else { - this.fireEvent('exception', this, 'remote', action, o, res, rs); - } - o.request.callback.call(o.request.scope, res.data, res, res.success); - - return false; // <-- false to prevent intercepted function from running. - }, proxy); - } - }; -})(); - -/** - * Ext.data.Response - * Experimental. Do not use directly. - */ -Ext.data.Response = function(params, response) { - Ext.apply(this, params, { - raw: response - }); -}; -Ext.data.Response.prototype = { - message : null, - success : false, - status : null, - root : null, - raw : null, - - getMessage : function() { - return this.message; - }, - getSuccess : function() { - return this.success; - }, - getStatus : function() { - return this.status; - }, - getRoot : function() { - return this.root; - }, - getRawResponse : function() { - return this.raw; - } -}; - -/** - * @class Ext.data.Api.Error - * @extends Ext.Error - * Error class for Ext.data.Api errors - */ -Ext.data.Api.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.Api' -}); -Ext.apply(Ext.data.Api.Error.prototype, { - lang: { - 'action-url-undefined': 'No fallback url defined for this action. When defining a DataProxy api, please be sure to define an url for each CRUD action in Ext.data.Api.actions or define a default url in addition to your api-configuration.', - 'invalid': 'received an invalid API-configuration. Please ensure your proxy API-configuration contains only the actions defined in Ext.data.Api.actions', - 'invalid-url': 'Invalid url. Please review your proxy configuration.', - 'execute': 'Attempted to execute an unknown action. Valid API actions are defined in Ext.data.Api.actions"' - } -}); - - - -/** - * @class Ext.data.SortTypes - * @singleton - * Defines the default sorting (casting?) comparison functions used when sorting data. - */ -Ext.data.SortTypes = { - /** - * Default sort that does nothing - * @param {Mixed} s The value being converted - * @return {Mixed} The comparison value - */ - none : function(s){ - return s; - }, - - /** - * The regular expression used to strip tags - * @type {RegExp} - * @property - */ - stripTagsRE : /<\/?[^>]+>/gi, - - /** - * Strips all HTML tags to sort on text only - * @param {Mixed} s The value being converted - * @return {String} The comparison value - */ - asText : function(s){ - return String(s).replace(this.stripTagsRE, ""); - }, - - /** - * Strips all HTML tags to sort on text only - Case insensitive - * @param {Mixed} s The value being converted - * @return {String} The comparison value - */ - asUCText : function(s){ - return String(s).toUpperCase().replace(this.stripTagsRE, ""); - }, - - /** - * Case insensitive string - * @param {Mixed} s The value being converted - * @return {String} The comparison value - */ - asUCString : function(s) { - return String(s).toUpperCase(); - }, - - /** - * Date sorting - * @param {Mixed} s The value being converted - * @return {Number} The comparison value - */ - asDate : function(s) { - if(!s){ - return 0; - } - if(Ext.isDate(s)){ - return s.getTime(); - } - return Date.parse(String(s)); - }, - - /** - * Float sorting - * @param {Mixed} s The value being converted - * @return {Float} The comparison value - */ - asFloat : function(s) { - var val = parseFloat(String(s).replace(/,/g, "")); - return isNaN(val) ? 0 : val; - }, - - /** - * Integer sorting - * @param {Mixed} s The value being converted - * @return {Number} The comparison value - */ - asInt : function(s) { - var val = parseInt(String(s).replace(/,/g, ""), 10); - return isNaN(val) ? 0 : val; - } -};/** - * @class Ext.data.Record - *

      Instances of this class encapsulate both Record definition information, and Record - * value information for use in {@link Ext.data.Store} objects, or any code which needs - * to access Records cached in an {@link Ext.data.Store} object.

      - *

      Constructors for this class are generated by passing an Array of field definition objects to {@link #create}. - * Instances are usually only created by {@link Ext.data.Reader} implementations when processing unformatted data - * objects.

      - *

      Note that an instance of a Record class may only belong to one {@link Ext.data.Store Store} at a time. - * In order to copy data from one Store to another, use the {@link #copy} method to create an exact - * copy of the Record, and insert the new instance into the other Store.

      - *

      When serializing a Record for submission to the server, be aware that it contains many private - * properties, and also a reference to its owning Store which in turn holds references to its Records. - * This means that a whole Record may not be encoded using {@link Ext.util.JSON.encode}. Instead, use the - * {@link #data} and {@link #id} properties.

      - *

      Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below.

      - * @constructor - *

      This constructor should not be used to create Record objects. Instead, use {@link #create} to - * generate a subclass of Ext.data.Record configured with information about its constituent fields.

      - *

      The generated constructor has the same signature as this constructor.

      - * @param {Object} data (Optional) An object, the properties of which provide values for the new Record's - * fields. If not specified the {@link Ext.data.Field#defaultValue defaultValue} - * for each field will be assigned. - * @param {Object} id (Optional) The id of the Record. The id is used by the - * {@link Ext.data.Store} object which owns the Record to index its collection - * of Records (therefore this id should be unique within each store). If an - * id is not specified a {@link #phantom} - * Record will be created with an {@link #Record.id automatically generated id}. - */ -Ext.data.Record = function(data, id){ - // if no id, call the auto id method - this.id = (id || id === 0) ? id : Ext.data.Record.id(this); - this.data = data || {}; -}; - -/** - * Generate a constructor for a specific Record layout. - * @param {Array} o An Array of {@link Ext.data.Field Field} definition objects. - * The constructor generated by this method may be used to create new Record instances. The data - * object must contain properties named after the {@link Ext.data.Field field} - * {@link Ext.data.Field#name}s. Example usage:
      
      -// create a Record constructor from a description of the fields
      -var TopicRecord = Ext.data.Record.create([ // creates a subclass of Ext.data.Record
      -    {{@link Ext.data.Field#name name}: 'title', {@link Ext.data.Field#mapping mapping}: 'topic_title'},
      -    {name: 'author', mapping: 'username', allowBlank: false},
      -    {name: 'totalPosts', mapping: 'topic_replies', type: 'int'},
      -    {name: 'lastPost', mapping: 'post_time', type: 'date'},
      -    {name: 'lastPoster', mapping: 'user2'},
      -    {name: 'excerpt', mapping: 'post_text', allowBlank: false},
      -    // In the simplest case, if no properties other than name are required,
      -    // a field definition may consist of just a String for the field name.
      -    'signature'
      -]);
      -
      -// create Record instance
      -var myNewRecord = new TopicRecord(
      -    {
      -        title: 'Do my job please',
      -        author: 'noobie',
      -        totalPosts: 1,
      -        lastPost: new Date(),
      -        lastPoster: 'Animal',
      -        excerpt: 'No way dude!',
      -        signature: ''
      -    },
      -    id // optionally specify the id of the record otherwise {@link #Record.id one is auto-assigned}
      -);
      -myStore.{@link Ext.data.Store#add add}(myNewRecord);
      -
      - * @method create - * @return {Function} A constructor which is used to create new Records according - * to the definition. The constructor has the same signature as {@link #Record}. - * @static - */ -Ext.data.Record.create = function(o){ - var f = Ext.extend(Ext.data.Record, {}); - var p = f.prototype; - p.fields = new Ext.util.MixedCollection(false, function(field){ - return field.name; - }); - for(var i = 0, len = o.length; i < len; i++){ - p.fields.add(new Ext.data.Field(o[i])); - } - f.getField = function(name){ - return p.fields.get(name); - }; - return f; -}; - -Ext.data.Record.PREFIX = 'ext-record'; -Ext.data.Record.AUTO_ID = 1; -Ext.data.Record.EDIT = 'edit'; -Ext.data.Record.REJECT = 'reject'; -Ext.data.Record.COMMIT = 'commit'; - - -/** - * Generates a sequential id. This method is typically called when a record is {@link #create}d - * and {@link #Record no id has been specified}. The returned id takes the form: - * {PREFIX}-{AUTO_ID}.
        - *
      • PREFIX : String

        Ext.data.Record.PREFIX - * (defaults to 'ext-record')

      • - *
      • AUTO_ID : String

        Ext.data.Record.AUTO_ID - * (defaults to 1 initially)

      • - *
      - * @param {Record} rec The record being created. The record does not exist, it's a {@link #phantom}. - * @return {String} auto-generated string id, "ext-record-i++'; - */ -Ext.data.Record.id = function(rec) { - rec.phantom = true; - return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID++].join(''); -}; - -Ext.data.Record.prototype = { - /** - *

      This property is stored in the Record definition's prototype

      - * A MixedCollection containing the defined {@link Ext.data.Field Field}s for this Record. Read-only. - * @property fields - * @type Ext.util.MixedCollection - */ - /** - * An object hash representing the data for this Record. Every field name in the Record definition - * is represented by a property of that name in this object. Note that unless you specified a field - * with {@link Ext.data.Field#name name} "id" in the Record definition, this will not contain - * an id property. - * @property data - * @type {Object} - */ - /** - * The unique ID of the Record {@link #Record as specified at construction time}. - * @property id - * @type {Object} - */ - /** - *

      Only present if this Record was created by an {@link Ext.data.XmlReader XmlReader}.

      - *

      The XML element which was the source of the data for this Record.

      - * @property node - * @type {XMLElement} - */ - /** - *

      Only present if this Record was created by an {@link Ext.data.ArrayReader ArrayReader} or a {@link Ext.data.JsonReader JsonReader}.

      - *

      The Array or object which was the source of the data for this Record.

      - * @property json - * @type {Array|Object} - */ - /** - * Readonly flag - true if this Record has been modified. - * @type Boolean - */ - dirty : false, - editing : false, - error : null, - /** - * This object contains a key and value storing the original values of all modified - * fields or is null if no fields have been modified. - * @property modified - * @type {Object} - */ - modified : null, - /** - * true when the record does not yet exist in a server-side database (see - * {@link #markDirty}). Any record which has a real database pk set as its id property - * is NOT a phantom -- it's real. - * @property phantom - * @type {Boolean} - */ - phantom : false, - - // private - join : function(store){ - /** - * The {@link Ext.data.Store} to which this Record belongs. - * @property store - * @type {Ext.data.Store} - */ - this.store = store; - }, - - /** - * Set the {@link Ext.data.Field#name named field} to the specified value. For example: - *
      
      -// record has a field named 'firstname'
      -var Employee = Ext.data.Record.{@link #create}([
      -    {name: 'firstname'},
      -    ...
      -]);
      -
      -// update the 2nd record in the store:
      -var rec = myStore.{@link Ext.data.Store#getAt getAt}(1);
      -
      -// set the value (shows dirty flag):
      -rec.set('firstname', 'Betty');
      -
      -// commit the change (removes dirty flag):
      -rec.{@link #commit}();
      -
      -// update the record in the store, bypass setting dirty flag,
      -// and do not store the change in the {@link Ext.data.Store#getModifiedRecords modified records}
      -rec.{@link #data}['firstname'] = 'Wilma'; // updates record, but not the view
      -rec.{@link #commit}(); // updates the view
      -     * 
      - * Notes:
        - *
      • If the store has a writer and autoSave=true, each set() - * will execute an XHR to the server.
      • - *
      • Use {@link #beginEdit} to prevent the store's update - * event firing while using set().
      • - *
      • Use {@link #endEdit} to have the store's update - * event fire.
      • - *
      - * @param {String} name The {@link Ext.data.Field#name name of the field} to set. - * @param {String/Object/Array} value The value to set the field to. - */ - set : function(name, value){ - var encode = Ext.isPrimitive(value) ? String : Ext.encode; - if(encode(this.data[name]) == encode(value)) { - return; - } - this.dirty = true; - if(!this.modified){ - this.modified = {}; - } - if(this.modified[name] === undefined){ - this.modified[name] = this.data[name]; - } - this.data[name] = value; - if(!this.editing){ - this.afterEdit(); - } - }, - - // private - afterEdit : function(){ - if (this.store != undefined && typeof this.store.afterEdit == "function") { - this.store.afterEdit(this); - } - }, - - // private - afterReject : function(){ - if(this.store){ - this.store.afterReject(this); - } - }, - - // private - afterCommit : function(){ - if(this.store){ - this.store.afterCommit(this); - } - }, - - /** - * Get the value of the {@link Ext.data.Field#name named field}. - * @param {String} name The {@link Ext.data.Field#name name of the field} to get the value of. - * @return {Object} The value of the field. - */ - get : function(name){ - return this.data[name]; - }, - - /** - * Begin an edit. While in edit mode, no events (e.g.. the update event) - * are relayed to the containing store. - * See also: {@link #endEdit} and {@link #cancelEdit}. - */ - beginEdit : function(){ - this.editing = true; - this.modified = this.modified || {}; - }, - - /** - * Cancels all changes made in the current edit operation. - */ - cancelEdit : function(){ - this.editing = false; - delete this.modified; - }, - - /** - * End an edit. If any data was modified, the containing store is notified - * (ie, the store's update event will fire). - */ - endEdit : function(){ - this.editing = false; - if(this.dirty){ - this.afterEdit(); - } - }, - - /** - * Usually called by the {@link Ext.data.Store} which owns the Record. - * Rejects all changes made to the Record since either creation, or the last commit operation. - * Modified fields are reverted to their original values. - *

      Developers should subscribe to the {@link Ext.data.Store#update} event - * to have their code notified of reject operations.

      - * @param {Boolean} silent (optional) True to skip notification of the owning - * store of the change (defaults to false) - */ - reject : function(silent){ - var m = this.modified; - for(var n in m){ - if(typeof m[n] != "function"){ - this.data[n] = m[n]; - } - } - this.dirty = false; - delete this.modified; - this.editing = false; - if(silent !== true){ - this.afterReject(); - } - }, - - /** - * Usually called by the {@link Ext.data.Store} which owns the Record. - * Commits all changes made to the Record since either creation, or the last commit operation. - *

      Developers should subscribe to the {@link Ext.data.Store#update} event - * to have their code notified of commit operations.

      - * @param {Boolean} silent (optional) True to skip notification of the owning - * store of the change (defaults to false) - */ - commit : function(silent){ - this.dirty = false; - delete this.modified; - this.editing = false; - if(silent !== true){ - this.afterCommit(); - } - }, - - /** - * Gets a hash of only the fields that have been modified since this Record was created or commited. - * @return Object - */ - getChanges : function(){ - var m = this.modified, cs = {}; - for(var n in m){ - if(m.hasOwnProperty(n)){ - cs[n] = this.data[n]; - } - } - return cs; - }, - - // private - hasError : function(){ - return this.error !== null; - }, - - // private - clearError : function(){ - this.error = null; - }, - - /** - * Creates a copy (clone) of this Record. - * @param {String} id (optional) A new Record id, defaults to the id - * of the record being copied. See {@link #id}. - * To generate a phantom record with a new id use:
      
      -var rec = record.copy(); // clone the record
      -Ext.data.Record.id(rec); // automatically generate a unique sequential id
      -     * 
      - * @return {Record} - */ - copy : function(newId) { - return new this.constructor(Ext.apply({}, this.data), newId || this.id); - }, - - /** - * Returns true if the passed field name has been {@link #modified} - * since the load or last commit. - * @param {String} fieldName {@link Ext.data.Field.{@link Ext.data.Field#name} - * @return {Boolean} - */ - isModified : function(fieldName){ - return !!(this.modified && this.modified.hasOwnProperty(fieldName)); - }, - - /** - * By default returns false if any {@link Ext.data.Field field} within the - * record configured with {@link Ext.data.Field#allowBlank} = false returns - * true from an {@link Ext}.{@link Ext#isEmpty isempty} test. - * @return {Boolean} - */ - isValid : function() { - return this.fields.find(function(f) { - return (f.allowBlank === false && Ext.isEmpty(this.data[f.name])) ? true : false; - },this) ? false : true; - }, - - /** - *

      Marks this Record as {@link #dirty}. This method - * is used interally when adding {@link #phantom} records to a - * {@link Ext.data.Store#writer writer enabled store}.

      - *

      Marking a record {@link #dirty} causes the phantom to - * be returned by {@link Ext.data.Store#getModifiedRecords} where it will - * have a create action composed for it during {@link Ext.data.Store#save store save} - * operations.

      - */ - markDirty : function(){ - this.dirty = true; - if(!this.modified){ - this.modified = {}; - } - this.fields.each(function(f) { - this.modified[f.name] = this.data[f.name]; - },this); - } -}; -/** - * @class Ext.StoreMgr - * @extends Ext.util.MixedCollection - * The default global group of stores. - * @singleton - */ -Ext.StoreMgr = Ext.apply(new Ext.util.MixedCollection(), { - /** - * @cfg {Object} listeners @hide - */ - - /** - * Registers one or more Stores with the StoreMgr. You do not normally need to register stores - * manually. Any store initialized with a {@link Ext.data.Store#storeId} will be auto-registered. - * @param {Ext.data.Store} store1 A Store instance - * @param {Ext.data.Store} store2 (optional) - * @param {Ext.data.Store} etc... (optional) - */ - register : function(){ - for(var i = 0, s; (s = arguments[i]); i++){ - this.add(s); - } - }, - - /** - * Unregisters one or more Stores with the StoreMgr - * @param {String/Object} id1 The id of the Store, or a Store instance - * @param {String/Object} id2 (optional) - * @param {String/Object} etc... (optional) - */ - unregister : function(){ - for(var i = 0, s; (s = arguments[i]); i++){ - this.remove(this.lookup(s)); - } - }, - - /** - * Gets a registered Store by id - * @param {String/Object} id The id of the Store, or a Store instance - * @return {Ext.data.Store} - */ - lookup : function(id){ - if(Ext.isArray(id)){ - var fields = ['field1'], expand = !Ext.isArray(id[0]); - if(!expand){ - for(var i = 2, len = id[0].length; i <= len; ++i){ - fields.push('field' + i); - } - } - return new Ext.data.ArrayStore({ - fields: fields, - data: id, - expandData: expand, - autoDestroy: true, - autoCreated: true - - }); - } - return Ext.isObject(id) ? (id.events ? id : Ext.create(id, 'store')) : this.get(id); - }, - - // getKey implementation for MixedCollection - getKey : function(o){ - return o.storeId; - } -});/** - * @class Ext.data.Store - * @extends Ext.util.Observable - *

      The Store class encapsulates a client side cache of {@link Ext.data.Record Record} - * objects which provide input data for Components such as the {@link Ext.grid.GridPanel GridPanel}, - * the {@link Ext.form.ComboBox ComboBox}, or the {@link Ext.DataView DataView}.

      - *

      Retrieving Data

      - *

      A Store object may access a data object using:

        - *
      • {@link #proxy configured implementation} of {@link Ext.data.DataProxy DataProxy}
      • - *
      • {@link #data} to automatically pass in data
      • - *
      • {@link #loadData} to manually pass in data
      • - *

      - *

      Reading Data

      - *

      A Store object has no inherent knowledge of the format of the data object (it could be - * an Array, XML, or JSON). A Store object uses an appropriate {@link #reader configured implementation} - * of a {@link Ext.data.DataReader DataReader} to create {@link Ext.data.Record Record} instances from the data - * object.

      - *

      Store Types

      - *

      There are several implementations of Store available which are customized for use with - * a specific DataReader implementation. Here is an example using an ArrayStore which implicitly - * creates a reader commensurate to an Array data object.

      - *
      
      -var myStore = new Ext.data.ArrayStore({
      -    fields: ['fullname', 'first'],
      -    idIndex: 0 // id for each record will be the first element
      -});
      - * 
      - *

      For custom implementations create a basic {@link Ext.data.Store} configured as needed:

      - *
      
      -// create a {@link Ext.data.Record Record} constructor:
      -var rt = Ext.data.Record.create([
      -    {name: 'fullname'},
      -    {name: 'first'}
      -]);
      -var myStore = new Ext.data.Store({
      -    // explicitly create reader
      -    reader: new Ext.data.ArrayReader(
      -        {
      -            idIndex: 0  // id for each record will be the first element
      -        },
      -        rt // recordType
      -    )
      -});
      - * 
      - *

      Load some data into store (note the data object is an array which corresponds to the reader):

      - *
      
      -var myData = [
      -    [1, 'Fred Flintstone', 'Fred'],  // note that id for the record is the first element
      -    [2, 'Barney Rubble', 'Barney']
      -];
      -myStore.loadData(myData);
      - * 
      - *

      Records are cached and made available through accessor functions. An example of adding - * a record to the store:

      - *
      
      -var defaultData = {
      -    fullname: 'Full Name',
      -    first: 'First Name'
      -};
      -var recId = 100; // provide unique id for the record
      -var r = new myStore.recordType(defaultData, ++recId); // create new record
      -myStore.{@link #insert}(0, r); // insert a new record into the store (also see {@link #add})
      - * 
      - *

      Writing Data

      - *

      And new in Ext version 3, use the new {@link Ext.data.DataWriter DataWriter} to create an automated, Writable Store - * along with RESTful features. - * @constructor - * Creates a new Store. - * @param {Object} config A config object containing the objects needed for the Store to access data, - * and read the data into Records. - * @xtype store - */ -Ext.data.Store = Ext.extend(Ext.util.Observable, { - /** - * @cfg {String} storeId If passed, the id to use to register with the {@link Ext.StoreMgr StoreMgr}. - *

      Note: if a (deprecated) {@link #id} is specified it will supersede the storeId - * assignment.

      - */ - /** - * @cfg {String} url If a {@link #proxy} is not specified the url will be used to - * implicitly configure a {@link Ext.data.HttpProxy HttpProxy} if an url is specified. - * Typically this option, or the {@link #data} option will be specified. - */ - /** - * @cfg {Boolean/Object} autoLoad If {@link #data} is not specified, and if autoLoad - * is true or an Object, this store's {@link #load} method is automatically called - * after creation. If the value of autoLoad is an Object, this Object will - * be passed to the store's {@link #load} method. - */ - /** - * @cfg {Ext.data.DataProxy} proxy The {@link Ext.data.DataProxy DataProxy} object which provides - * access to a data object. See {@link #url}. - */ - /** - * @cfg {Array} data An inline data object readable by the {@link #reader}. - * Typically this option, or the {@link #url} option will be specified. - */ - /** - * @cfg {Ext.data.DataReader} reader The {@link Ext.data.DataReader Reader} object which processes the - * data object and returns an Array of {@link Ext.data.Record} objects which are cached keyed by their - * {@link Ext.data.Record#id id} property. - */ - /** - * @cfg {Ext.data.DataWriter} writer - *

      The {@link Ext.data.DataWriter Writer} object which processes a record object for being written - * to the server-side database.

      - *

      When a writer is installed into a Store the {@link #add}, {@link #remove}, and {@link #update} - * events on the store are monitored in order to remotely {@link #createRecords create records}, - * {@link #destroyRecord destroy records}, or {@link #updateRecord update records}.

      - *

      The proxy for this store will relay any {@link #writexception} events to this store.

      - *

      Sample implementation: - *

      
      -var writer = new {@link Ext.data.JsonWriter}({
      -    encode: true,
      -    writeAllFields: true // write all fields, not just those that changed
      -});
      -
      -// Typical Store collecting the Proxy, Reader and Writer together.
      -var store = new Ext.data.Store({
      -    storeId: 'user',
      -    root: 'records',
      -    proxy: proxy,
      -    reader: reader,
      -    writer: writer,     // <-- plug a DataWriter into the store just as you would a Reader
      -    paramsAsHash: true,
      -    autoSave: false    // <-- false to delay executing create, update, destroy requests
      -                        //     until specifically told to do so.
      -});
      -     * 

      - */ - writer : undefined, - /** - * @cfg {Object} baseParams - *

      An object containing properties which are to be sent as parameters - * for every HTTP request.

      - *

      Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.

      - *

      Note: baseParams may be superseded by any params - * specified in a {@link #load} request, see {@link #load} - * for more details.

      - * This property may be modified after creation using the {@link #setBaseParam} - * method. - * @property - */ - /** - * @cfg {Object} sortInfo A config object to specify the sort order in the request of a Store's - * {@link #load} operation. Note that for local sorting, the direction property is - * case-sensitive. See also {@link #remoteSort} and {@link #paramNames}. - * For example:
      
      -sortInfo: {
      -    field: 'fieldName',
      -    direction: 'ASC' // or 'DESC' (case sensitive for local sorting)
      -}
      -
      - */ - /** - * @cfg {boolean} remoteSort true if sorting is to be handled by requesting the {@link #proxy Proxy} - * to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache - * in place (defaults to false). - *

      If remoteSort is true, then clicking on a {@link Ext.grid.Column Grid Column}'s - * {@link Ext.grid.Column#header header} causes the current page to be requested from the server appending - * the following two parameters to the {@link #load params}:

        - *
      • sort : String

        The name (as specified in the Record's - * {@link Ext.data.Field Field definition}) of the field to sort on.

      • - *
      • dir : String

        The direction of the sort, 'ASC' or 'DESC' (case-sensitive).

      • - *

      - */ - remoteSort : false, - - /** - * @cfg {Boolean} autoDestroy true to destroy the store when the component the store is bound - * to is destroyed (defaults to false). - *

      Note: this should be set to true when using stores that are bound to only 1 component.

      - */ - autoDestroy : false, - - /** - * @cfg {Boolean} pruneModifiedRecords true to clear all modified record information each time - * the store is loaded or when a record is removed (defaults to false). See {@link #getModifiedRecords} - * for the accessor method to retrieve the modified records. - */ - pruneModifiedRecords : false, - - /** - * Contains the last options object used as the parameter to the {@link #load} method. See {@link #load} - * for the details of what this may contain. This may be useful for accessing any params which were used - * to load the current Record cache. - * @property - */ - lastOptions : null, - - /** - * @cfg {Boolean} autoSave - *

      Defaults to true causing the store to automatically {@link #save} records to - * the server when a record is modified (ie: becomes 'dirty'). Specify false to manually call {@link #save} - * to send all modifiedRecords to the server.

      - *

      Note: each CRUD action will be sent as a separate request.

      - */ - autoSave : true, - - /** - * @cfg {Boolean} batch - *

      Defaults to true (unless {@link #restful}:true). Multiple - * requests for each CRUD action (CREATE, READ, UPDATE and DESTROY) will be combined - * and sent as one transaction. Only applies when {@link #autoSave} is set - * to false.

      - *

      If Store is RESTful, the DataProxy is also RESTful, and a unique transaction is - * generated for each record.

      - */ - batch : true, - - /** - * @cfg {Boolean} restful - * Defaults to false. Set to true to have the Store and the set - * Proxy operate in a RESTful manner. The store will automatically generate GET, POST, - * PUT and DELETE requests to the server. The HTTP method used for any given CRUD - * action is described in {@link Ext.data.Api#restActions}. For additional information - * see {@link Ext.data.DataProxy#restful}. - *

      Note: if {@link #restful}:true batch will - * internally be set to false.

      - */ - restful: false, - - /** - * @cfg {Object} paramNames - *

      An object containing properties which specify the names of the paging and - * sorting parameters passed to remote servers when loading blocks of data. By default, this - * object takes the following form:

      
      -{
      -    start : 'start',  // The parameter name which specifies the start row
      -    limit : 'limit',  // The parameter name which specifies number of rows to return
      -    sort : 'sort',    // The parameter name which specifies the column to sort on
      -    dir : 'dir'       // The parameter name which specifies the sort direction
      -}
      -
      - *

      The server must produce the requested data block upon receipt of these parameter names. - * If different parameter names are required, this property can be overriden using a configuration - * property.

      - *

      A {@link Ext.PagingToolbar PagingToolbar} bound to this Store uses this property to determine - * the parameter names to use in its {@link #load requests}. - */ - paramNames : undefined, - - /** - * @cfg {Object} defaultParamNames - * Provides the default values for the {@link #paramNames} property. To globally modify the parameters - * for all stores, this object should be changed on the store prototype. - */ - defaultParamNames : { - start : 'start', - limit : 'limit', - sort : 'sort', - dir : 'dir' - }, - - isDestroyed: false, - hasMultiSort: false, - - // private - batchKey : '_ext_batch_', - - constructor : function(config){ - /** - * @property multiSort - * @type Boolean - * True if this store is currently sorted by more than one field/direction combination. - */ - - /** - * @property isDestroyed - * @type Boolean - * True if the store has been destroyed already. Read only - */ - - this.data = new Ext.util.MixedCollection(false); - this.data.getKey = function(o){ - return o.id; - }; - - - // temporary removed-records cache - this.removed = []; - - if(config && config.data){ - this.inlineData = config.data; - delete config.data; - } - - Ext.apply(this, config); - - /** - * See the {@link #baseParams corresponding configuration option} - * for a description of this property. - * To modify this property see {@link #setBaseParam}. - * @property - */ - this.baseParams = Ext.isObject(this.baseParams) ? this.baseParams : {}; - - this.paramNames = Ext.applyIf(this.paramNames || {}, this.defaultParamNames); - - if((this.url || this.api) && !this.proxy){ - this.proxy = new Ext.data.HttpProxy({url: this.url, api: this.api}); - } - // If Store is RESTful, so too is the DataProxy - if (this.restful === true && this.proxy) { - // When operating RESTfully, a unique transaction is generated for each record. - // TODO might want to allow implemention of faux REST where batch is possible using RESTful routes only. - this.batch = false; - Ext.data.Api.restify(this.proxy); - } - - if(this.reader){ // reader passed - if(!this.recordType){ - this.recordType = this.reader.recordType; - } - if(this.reader.onMetaChange){ - this.reader.onMetaChange = this.reader.onMetaChange.createSequence(this.onMetaChange, this); - } - if (this.writer) { // writer passed - if (this.writer instanceof(Ext.data.DataWriter) === false) { // <-- config-object instead of instance. - this.writer = this.buildWriter(this.writer); - } - this.writer.meta = this.reader.meta; - this.pruneModifiedRecords = true; - } - } - - /** - * The {@link Ext.data.Record Record} constructor as supplied to (or created by) the - * {@link Ext.data.DataReader Reader}. Read-only. - *

      If the Reader was constructed by passing in an Array of {@link Ext.data.Field} definition objects, - * instead of a Record constructor, it will implicitly create a Record constructor from that Array (see - * {@link Ext.data.Record}.{@link Ext.data.Record#create create} for additional details).

      - *

      This property may be used to create new Records of the type held in this Store, for example:

      
      -    // create the data store
      -    var store = new Ext.data.ArrayStore({
      -        autoDestroy: true,
      -        fields: [
      -           {name: 'company'},
      -           {name: 'price', type: 'float'},
      -           {name: 'change', type: 'float'},
      -           {name: 'pctChange', type: 'float'},
      -           {name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'}
      -        ]
      -    });
      -    store.loadData(myData);
      -
      -    // create the Grid
      -    var grid = new Ext.grid.EditorGridPanel({
      -        store: store,
      -        colModel: new Ext.grid.ColumnModel({
      -            columns: [
      -                {id:'company', header: 'Company', width: 160, dataIndex: 'company'},
      -                {header: 'Price', renderer: 'usMoney', dataIndex: 'price'},
      -                {header: 'Change', renderer: change, dataIndex: 'change'},
      -                {header: '% Change', renderer: pctChange, dataIndex: 'pctChange'},
      -                {header: 'Last Updated', width: 85,
      -                    renderer: Ext.util.Format.dateRenderer('m/d/Y'),
      -                    dataIndex: 'lastChange'}
      -            ],
      -            defaults: {
      -                sortable: true,
      -                width: 75
      -            }
      -        }),
      -        autoExpandColumn: 'company', // match the id specified in the column model
      -        height:350,
      -        width:600,
      -        title:'Array Grid',
      -        tbar: [{
      -            text: 'Add Record',
      -            handler : function(){
      -                var defaultData = {
      -                    change: 0,
      -                    company: 'New Company',
      -                    lastChange: (new Date()).clearTime(),
      -                    pctChange: 0,
      -                    price: 10
      -                };
      -                var recId = 3; // provide unique id
      -                var p = new store.recordType(defaultData, recId); // create new record
      -                grid.stopEditing();
      -                store.{@link #insert}(0, p); // insert a new record into the store (also see {@link #add})
      -                grid.startEditing(0, 0);
      -            }
      -        }]
      -    });
      -         * 
      - * @property recordType - * @type Function - */ - - if(this.recordType){ - /** - * A {@link Ext.util.MixedCollection MixedCollection} containing the defined {@link Ext.data.Field Field}s - * for the {@link Ext.data.Record Records} stored in this Store. Read-only. - * @property fields - * @type Ext.util.MixedCollection - */ - this.fields = this.recordType.prototype.fields; - } - this.modified = []; - - this.addEvents( - /** - * @event datachanged - * Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a - * widget that is using this Store as a Record cache should refresh its view. - * @param {Store} this - */ - 'datachanged', - /** - * @event metachange - * Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders. - * @param {Store} this - * @param {Object} meta The JSON metadata - */ - 'metachange', - /** - * @event add - * Fires when Records have been {@link #add}ed to the Store - * @param {Store} this - * @param {Ext.data.Record[]} records The array of Records added - * @param {Number} index The index at which the record(s) were added - */ - 'add', - /** - * @event remove - * Fires when a Record has been {@link #remove}d from the Store - * @param {Store} this - * @param {Ext.data.Record} record The Record that was removed - * @param {Number} index The index at which the record was removed - */ - 'remove', - /** - * @event update - * Fires when a Record has been updated - * @param {Store} this - * @param {Ext.data.Record} record The Record that was updated - * @param {String} operation The update operation being performed. Value may be one of: - *
      
      -     Ext.data.Record.EDIT
      -     Ext.data.Record.REJECT
      -     Ext.data.Record.COMMIT
      -             * 
      - */ - 'update', - /** - * @event clear - * Fires when the data cache has been cleared. - * @param {Store} this - * @param {Record[]} records The records that were cleared. - */ - 'clear', - /** - * @event exception - *

      Fires if an exception occurs in the Proxy during a remote request. - * This event is relayed through the corresponding {@link Ext.data.DataProxy}. - * See {@link Ext.data.DataProxy}.{@link Ext.data.DataProxy#exception exception} - * for additional details. - * @param {misc} misc See {@link Ext.data.DataProxy}.{@link Ext.data.DataProxy#exception exception} - * for description. - */ - 'exception', - /** - * @event beforeload - * Fires before a request is made for a new data object. If the beforeload handler returns - * false the {@link #load} action will be canceled. - * @param {Store} this - * @param {Object} options The loading options that were specified (see {@link #load} for details) - */ - 'beforeload', - /** - * @event load - * Fires after a new set of Records has been loaded. - * @param {Store} this - * @param {Ext.data.Record[]} records The Records that were loaded - * @param {Object} options The loading options that were specified (see {@link #load} for details) - */ - 'load', - /** - * @event loadexception - *

      This event is deprecated in favor of the catch-all {@link #exception} - * event instead.

      - *

      This event is relayed through the corresponding {@link Ext.data.DataProxy}. - * See {@link Ext.data.DataProxy}.{@link Ext.data.DataProxy#loadexception loadexception} - * for additional details. - * @param {misc} misc See {@link Ext.data.DataProxy}.{@link Ext.data.DataProxy#loadexception loadexception} - * for description. - */ - 'loadexception', - /** - * @event beforewrite - * @param {Ext.data.Store} store - * @param {String} action [Ext.data.Api.actions.create|update|destroy] - * @param {Record/Record[]} rs The Record(s) being written. - * @param {Object} options The loading options that were specified. Edit options.params to add Http parameters to the request. (see {@link #save} for details) - * @param {Object} arg The callback's arg object passed to the {@link #request} function - */ - 'beforewrite', - /** - * @event write - * Fires if the server returns 200 after an Ext.data.Api.actions CRUD action. - * Success of the action is determined in the result['successProperty']property (NOTE for RESTful stores, - * a simple 20x response is sufficient for the actions "destroy" and "update". The "create" action should should return 200 along with a database pk). - * @param {Ext.data.Store} store - * @param {String} action [Ext.data.Api.actions.create|update|destroy] - * @param {Object} result The 'data' picked-out out of the response for convenience. - * @param {Ext.Direct.Transaction} res - * @param {Record/Record[]} rs Store's records, the subject(s) of the write-action - */ - 'write', - /** - * @event beforesave - * Fires before a save action is called. A save encompasses destroying records, updating records and creating records. - * @param {Ext.data.Store} store - * @param {Object} data An object containing the data that is to be saved. The object will contain a key for each appropriate action, - * with an array of records for each action. - */ - 'beforesave', - /** - * @event save - * Fires after a save is completed. A save encompasses destroying records, updating records and creating records. - * @param {Ext.data.Store} store - * @param {Number} batch The identifier for the batch that was saved. - * @param {Object} data An object containing the data that is to be saved. The object will contain a key for each appropriate action, - * with an array of records for each action. - */ - 'save' - - ); - - if(this.proxy){ - // TODO remove deprecated loadexception with ext-3.0.1 - this.relayEvents(this.proxy, ['loadexception', 'exception']); - } - // With a writer set for the Store, we want to listen to add/remove events to remotely create/destroy records. - if (this.writer) { - this.on({ - scope: this, - add: this.createRecords, - remove: this.destroyRecord, - update: this.updateRecord, - clear: this.onClear - }); - } - - this.sortToggle = {}; - if(this.sortField){ - this.setDefaultSort(this.sortField, this.sortDir); - }else if(this.sortInfo){ - this.setDefaultSort(this.sortInfo.field, this.sortInfo.direction); - } - - Ext.data.Store.superclass.constructor.call(this); - - if(this.id){ - this.storeId = this.id; - delete this.id; - } - if(this.storeId){ - Ext.StoreMgr.register(this); - } - if(this.inlineData){ - this.loadData(this.inlineData); - delete this.inlineData; - }else if(this.autoLoad){ - this.load.defer(10, this, [ - typeof this.autoLoad == 'object' ? - this.autoLoad : undefined]); - } - // used internally to uniquely identify a batch - this.batchCounter = 0; - this.batches = {}; - }, - - /** - * builds a DataWriter instance when Store constructor is provided with a writer config-object instead of an instace. - * @param {Object} config Writer configuration - * @return {Ext.data.DataWriter} - * @private - */ - buildWriter : function(config) { - var klass = undefined, - type = (config.format || 'json').toLowerCase(); - switch (type) { - case 'json': - klass = Ext.data.JsonWriter; - break; - case 'xml': - klass = Ext.data.XmlWriter; - break; - default: - klass = Ext.data.JsonWriter; - } - return new klass(config); - }, - - /** - * Destroys the store. - */ - destroy : function(){ - if(!this.isDestroyed){ - if(this.storeId){ - Ext.StoreMgr.unregister(this); - } - this.clearData(); - this.data = null; - Ext.destroy(this.proxy); - this.reader = this.writer = null; - this.purgeListeners(); - this.isDestroyed = true; - } - }, - - /** - * Add Records to the Store and fires the {@link #add} event. To add Records - * to the store from a remote source use {@link #load}({add:true}). - * See also {@link #recordType} and {@link #insert}. - * @param {Ext.data.Record[]} records An Array of Ext.data.Record objects - * to add to the cache. See {@link #recordType}. - */ - add : function(records) { - var i, len, record, index; - - records = [].concat(records); - if (records.length < 1) { - return; - } - - for (i = 0, len = records.length; i < len; i++) { - record = records[i]; - - record.join(this); - - if (record.dirty || record.phantom) { - this.modified.push(record); - } - } - - index = this.data.length; - this.data.addAll(records); - - if (this.snapshot) { - this.snapshot.addAll(records); - } - - this.fireEvent('add', this, records, index); - }, - - /** - * (Local sort only) Inserts the passed Record into the Store at the index where it - * should go based on the current sort information. - * @param {Ext.data.Record} record - */ - addSorted : function(record){ - var index = this.findInsertIndex(record); - this.insert(index, record); - }, - - /** - * @private - * Update a record within the store with a new reference - */ - doUpdate: function(rec){ - var id = rec.id; - // unjoin the old record - this.getById(id).join(null); - - this.data.replace(id, rec); - if (this.snapshot) { - this.snapshot.replace(id, rec); - } - rec.join(this); - this.fireEvent('update', this, rec, Ext.data.Record.COMMIT); - }, - - /** - * Remove Records from the Store and fires the {@link #remove} event. - * @param {Ext.data.Record/Ext.data.Record[]} record The record object or array of records to remove from the cache. - */ - remove : function(record){ - if(Ext.isArray(record)){ - Ext.each(record, function(r){ - this.remove(r); - }, this); - return; - } - var index = this.data.indexOf(record); - if(index > -1){ - record.join(null); - this.data.removeAt(index); - } - if(this.pruneModifiedRecords){ - this.modified.remove(record); - } - if(this.snapshot){ - this.snapshot.remove(record); - } - if(index > -1){ - this.fireEvent('remove', this, record, index); - } - }, - - /** - * Remove a Record from the Store at the specified index. Fires the {@link #remove} event. - * @param {Number} index The index of the record to remove. - */ - removeAt : function(index){ - this.remove(this.getAt(index)); - }, - - /** - * Remove all Records from the Store and fires the {@link #clear} event. - * @param {Boolean} silent [false] Defaults to false. Set true to not fire clear event. - */ - removeAll : function(silent){ - var items = []; - this.each(function(rec){ - items.push(rec); - }); - this.clearData(); - if(this.snapshot){ - this.snapshot.clear(); - } - if(this.pruneModifiedRecords){ - this.modified = []; - } - if (silent !== true) { // <-- prevents write-actions when we just want to clear a store. - this.fireEvent('clear', this, items); - } - }, - - // private - onClear: function(store, records){ - Ext.each(records, function(rec, index){ - this.destroyRecord(this, rec, index); - }, this); - }, - - /** - * Inserts Records into the Store at the given index and fires the {@link #add} event. - * See also {@link #add} and {@link #addSorted}. - * @param {Number} index The start index at which to insert the passed Records. - * @param {Ext.data.Record[]} records An Array of Ext.data.Record objects to add to the cache. - */ - insert : function(index, records) { - var i, len, record; - - records = [].concat(records); - for (i = 0, len = records.length; i < len; i++) { - record = records[i]; - - this.data.insert(index + i, record); - record.join(this); - - if (record.dirty || record.phantom) { - this.modified.push(record); - } - } - - if (this.snapshot) { - this.snapshot.addAll(records); - } - - this.fireEvent('add', this, records, index); - }, - - /** - * Get the index within the cache of the passed Record. - * @param {Ext.data.Record} record The Ext.data.Record object to find. - * @return {Number} The index of the passed Record. Returns -1 if not found. - */ - indexOf : function(record){ - return this.data.indexOf(record); - }, - - /** - * Get the index within the cache of the Record with the passed id. - * @param {String} id The id of the Record to find. - * @return {Number} The index of the Record. Returns -1 if not found. - */ - indexOfId : function(id){ - return this.data.indexOfKey(id); - }, - - /** - * Get the Record with the specified id. - * @param {String} id The id of the Record to find. - * @return {Ext.data.Record} The Record with the passed id. Returns undefined if not found. - */ - getById : function(id){ - return (this.snapshot || this.data).key(id); - }, - - /** - * Get the Record at the specified index. - * @param {Number} index The index of the Record to find. - * @return {Ext.data.Record} The Record at the passed index. Returns undefined if not found. - */ - getAt : function(index){ - return this.data.itemAt(index); - }, - - /** - * Returns a range of Records between specified indices. - * @param {Number} startIndex (optional) The starting index (defaults to 0) - * @param {Number} endIndex (optional) The ending index (defaults to the last Record in the Store) - * @return {Ext.data.Record[]} An array of Records - */ - getRange : function(start, end){ - return this.data.getRange(start, end); - }, - - // private - storeOptions : function(o){ - o = Ext.apply({}, o); - delete o.callback; - delete o.scope; - this.lastOptions = o; - }, - - // private - clearData: function(){ - this.data.each(function(rec) { - rec.join(null); - }); - this.data.clear(); - }, - - /** - *

      Loads the Record cache from the configured {@link #proxy} using the configured {@link #reader}.

      - *

      Notes:

        - *
      • Important: loading is asynchronous! This call will return before the new data has been - * loaded. To perform any post-processing where information from the load call is required, specify - * the callback function to be called, or use a {@link Ext.util.Observable#listeners a 'load' event handler}.
      • - *
      • If using {@link Ext.PagingToolbar remote paging}, the first load call must specify the start and limit - * properties in the options.params property to establish the initial position within the - * dataset, and the number of Records to cache on each read from the Proxy.
      • - *
      • If using {@link #remoteSort remote sorting}, the configured {@link #sortInfo} - * will be automatically included with the posted parameters according to the specified - * {@link #paramNames}.
      • - *
      - * @param {Object} options An object containing properties which control loading options:
        - *
      • params :Object

        An object containing properties to pass as HTTP - * parameters to a remote data source. Note: params will override any - * {@link #baseParams} of the same name.

        - *

        Parameters are encoded as standard HTTP parameters using {@link Ext#urlEncode}.

      • - *
      • callback : Function

        A function to be called after the Records - * have been loaded. The callback is called after the load event is fired, and is passed the following arguments:

          - *
        • r : Ext.data.Record[] An Array of Records loaded.
        • - *
        • options : Options object from the load call.
        • - *
        • success : Boolean success indicator.

      • - *
      • scope : Object

        Scope with which to call the callback (defaults - * to the Store object)

      • - *
      • add : Boolean

        Indicator to append loaded records rather than - * replace the current cache. Note: see note for {@link #loadData}

      • - *
      - * @return {Boolean} If the developer provided {@link #beforeload} event handler returns - * false, the load call will abort and will return false; otherwise will return true. - */ - load : function(options) { - options = Ext.apply({}, options); - this.storeOptions(options); - if(this.sortInfo && this.remoteSort){ - var pn = this.paramNames; - options.params = Ext.apply({}, options.params); - options.params[pn.sort] = this.sortInfo.field; - options.params[pn.dir] = this.sortInfo.direction; - } - try { - return this.execute('read', null, options); // <-- null represents rs. No rs for load actions. - } catch(e) { - this.handleException(e); - return false; - } - }, - - /** - * updateRecord Should not be used directly. This method will be called automatically if a Writer is set. - * Listens to 'update' event. - * @param {Object} store - * @param {Object} record - * @param {Object} action - * @private - */ - updateRecord : function(store, record, action) { - if (action == Ext.data.Record.EDIT && this.autoSave === true && (!record.phantom || (record.phantom && record.isValid()))) { - this.save(); - } - }, - - /** - * @private - * Should not be used directly. Store#add will call this automatically if a Writer is set - * @param {Object} store - * @param {Object} records - * @param {Object} index - */ - createRecords : function(store, records, index) { - var modified = this.modified, - length = records.length, - record, i; - - for (i = 0; i < length; i++) { - record = records[i]; - - if (record.phantom && record.isValid()) { - record.markDirty(); // <-- Mark new records dirty (Ed: why?) - - if (modified.indexOf(record) == -1) { - modified.push(record); - } - } - } - if (this.autoSave === true) { - this.save(); - } - }, - - /** - * Destroys a Record. Should not be used directly. It's called by Store#remove if a Writer is set. - * @param {Store} store this - * @param {Ext.data.Record} record - * @param {Number} index - * @private - */ - destroyRecord : function(store, record, index) { - if (this.modified.indexOf(record) != -1) { // <-- handled already if @cfg pruneModifiedRecords == true - this.modified.remove(record); - } - if (!record.phantom) { - this.removed.push(record); - - // since the record has already been removed from the store but the server request has not yet been executed, - // must keep track of the last known index this record existed. If a server error occurs, the record can be - // put back into the store. @see Store#createCallback where the record is returned when response status === false - record.lastIndex = index; - - if (this.autoSave === true) { - this.save(); - } - } - }, - - /** - * This method should generally not be used directly. This method is called internally - * by {@link #load}, or if a Writer is set will be called automatically when {@link #add}, - * {@link #remove}, or {@link #update} events fire. - * @param {String} action Action name ('read', 'create', 'update', or 'destroy') - * @param {Record/Record[]} rs - * @param {Object} options - * @throws Error - * @private - */ - execute : function(action, rs, options, /* private */ batch) { - // blow up if action not Ext.data.CREATE, READ, UPDATE, DESTROY - if (!Ext.data.Api.isAction(action)) { - throw new Ext.data.Api.Error('execute', action); - } - // make sure options has a fresh, new params hash - options = Ext.applyIf(options||{}, { - params: {} - }); - if(batch !== undefined){ - this.addToBatch(batch); - } - // have to separate before-events since load has a different signature than create,destroy and save events since load does not - // include the rs (record resultset) parameter. Capture return values from the beforeaction into doRequest flag. - var doRequest = true; - - if (action === 'read') { - doRequest = this.fireEvent('beforeload', this, options); - Ext.applyIf(options.params, this.baseParams); - } - else { - // if Writer is configured as listful, force single-record rs to be [{}] instead of {} - // TODO Move listful rendering into DataWriter where the @cfg is defined. Should be easy now. - if (this.writer.listful === true && this.restful !== true) { - rs = (Ext.isArray(rs)) ? rs : [rs]; - } - // if rs has just a single record, shift it off so that Writer writes data as '{}' rather than '[{}]' - else if (Ext.isArray(rs) && rs.length == 1) { - rs = rs.shift(); - } - // Write the action to options.params - if ((doRequest = this.fireEvent('beforewrite', this, action, rs, options)) !== false) { - this.writer.apply(options.params, this.baseParams, action, rs); - } - } - if (doRequest !== false) { - // Send request to proxy. - if (this.writer && this.proxy.url && !this.proxy.restful && !Ext.data.Api.hasUniqueUrl(this.proxy, action)) { - options.params.xaction = action; // <-- really old, probaby unecessary. - } - // Note: Up until this point we've been dealing with 'action' as a key from Ext.data.Api.actions. - // We'll flip it now and send the value into DataProxy#request, since it's the value which maps to - // the user's configured DataProxy#api - // TODO Refactor all Proxies to accept an instance of Ext.data.Request (not yet defined) instead of this looooooong list - // of params. This method is an artifact from Ext2. - this.proxy.request(Ext.data.Api.actions[action], rs, options.params, this.reader, this.createCallback(action, rs, batch), this, options); - } - return doRequest; - }, - - /** - * Saves all pending changes to the store. If the commensurate Ext.data.Api.actions action is not configured, then - * the configured {@link #url} will be used. - *
      -     * change            url
      -     * ---------------   --------------------
      -     * removed records   Ext.data.Api.actions.destroy
      -     * phantom records   Ext.data.Api.actions.create
      -     * {@link #getModifiedRecords modified records}  Ext.data.Api.actions.update
      -     * 
      - * @TODO: Create extensions of Error class and send associated Record with thrown exceptions. - * e.g.: Ext.data.DataReader.Error or Ext.data.Error or Ext.data.DataProxy.Error, etc. - * @return {Number} batch Returns a number to uniquely identify the "batch" of saves occurring. -1 will be returned - * if there are no items to save or the save was cancelled. - */ - save : function() { - if (!this.writer) { - throw new Ext.data.Store.Error('writer-undefined'); - } - - var queue = [], - len, - trans, - batch, - data = {}, - i; - // DESTROY: First check for removed records. Records in this.removed are guaranteed non-phantoms. @see Store#remove - if(this.removed.length){ - queue.push(['destroy', this.removed]); - } - - // Check for modified records. Use a copy so Store#rejectChanges will work if server returns error. - var rs = [].concat(this.getModifiedRecords()); - if(rs.length){ - // CREATE: Next check for phantoms within rs. splice-off and execute create. - var phantoms = []; - for(i = rs.length-1; i >= 0; i--){ - if(rs[i].phantom === true){ - var rec = rs.splice(i, 1).shift(); - if(rec.isValid()){ - phantoms.push(rec); - } - }else if(!rs[i].isValid()){ // <-- while we're here, splice-off any !isValid real records - rs.splice(i,1); - } - } - // If we have valid phantoms, create them... - if(phantoms.length){ - queue.push(['create', phantoms]); - } - - // UPDATE: And finally, if we're still here after splicing-off phantoms and !isValid real records, update the rest... - if(rs.length){ - queue.push(['update', rs]); - } - } - len = queue.length; - if(len){ - batch = ++this.batchCounter; - for(i = 0; i < len; ++i){ - trans = queue[i]; - data[trans[0]] = trans[1]; - } - if(this.fireEvent('beforesave', this, data) !== false){ - for(i = 0; i < len; ++i){ - trans = queue[i]; - this.doTransaction(trans[0], trans[1], batch); - } - return batch; - } - } - return -1; - }, - - // private. Simply wraps call to Store#execute in try/catch. Defers to Store#handleException on error. Loops if batch: false - doTransaction : function(action, rs, batch) { - function transaction(records) { - try{ - this.execute(action, records, undefined, batch); - }catch (e){ - this.handleException(e); - } - } - if(this.batch === false){ - for(var i = 0, len = rs.length; i < len; i++){ - transaction.call(this, rs[i]); - } - }else{ - transaction.call(this, rs); - } - }, - - // private - addToBatch : function(batch){ - var b = this.batches, - key = this.batchKey + batch, - o = b[key]; - - if(!o){ - b[key] = o = { - id: batch, - count: 0, - data: {} - }; - } - ++o.count; - }, - - removeFromBatch : function(batch, action, data){ - var b = this.batches, - key = this.batchKey + batch, - o = b[key], - arr; - - - if(o){ - arr = o.data[action] || []; - o.data[action] = arr.concat(data); - if(o.count === 1){ - data = o.data; - delete b[key]; - this.fireEvent('save', this, batch, data); - }else{ - --o.count; - } - } - }, - - // @private callback-handler for remote CRUD actions - // Do not override -- override loadRecords, onCreateRecords, onDestroyRecords and onUpdateRecords instead. - createCallback : function(action, rs, batch) { - var actions = Ext.data.Api.actions; - return (action == 'read') ? this.loadRecords : function(data, response, success) { - // calls: onCreateRecords | onUpdateRecords | onDestroyRecords - this['on' + Ext.util.Format.capitalize(action) + 'Records'](success, rs, [].concat(data)); - // If success === false here, exception will have been called in DataProxy - if (success === true) { - this.fireEvent('write', this, action, data, response, rs); - } - this.removeFromBatch(batch, action, data); - }; - }, - - // Clears records from modified array after an exception event. - // NOTE: records are left marked dirty. Do we want to commit them even though they were not updated/realized? - // TODO remove this method? - clearModified : function(rs) { - if (Ext.isArray(rs)) { - for (var n=rs.length-1;n>=0;n--) { - this.modified.splice(this.modified.indexOf(rs[n]), 1); - } - } else { - this.modified.splice(this.modified.indexOf(rs), 1); - } - }, - - // remap record ids in MixedCollection after records have been realized. @see Store#onCreateRecords, @see DataReader#realize - reMap : function(record) { - if (Ext.isArray(record)) { - for (var i = 0, len = record.length; i < len; i++) { - this.reMap(record[i]); - } - } else { - delete this.data.map[record._phid]; - this.data.map[record.id] = record; - var index = this.data.keys.indexOf(record._phid); - this.data.keys.splice(index, 1, record.id); - delete record._phid; - } - }, - - // @protected onCreateRecord proxy callback for create action - onCreateRecords : function(success, rs, data) { - if (success === true) { - try { - this.reader.realize(rs, data); - } - catch (e) { - this.handleException(e); - if (Ext.isArray(rs)) { - // Recurse to run back into the try {}. DataReader#realize splices-off the rs until empty. - this.onCreateRecords(success, rs, data); - } - } - } - }, - - // @protected, onUpdateRecords proxy callback for update action - onUpdateRecords : function(success, rs, data) { - if (success === true) { - try { - this.reader.update(rs, data); - } catch (e) { - this.handleException(e); - if (Ext.isArray(rs)) { - // Recurse to run back into the try {}. DataReader#update splices-off the rs until empty. - this.onUpdateRecords(success, rs, data); - } - } - } - }, - - // @protected onDestroyRecords proxy callback for destroy action - onDestroyRecords : function(success, rs, data) { - // splice each rec out of this.removed - rs = (rs instanceof Ext.data.Record) ? [rs] : [].concat(rs); - for (var i=0,len=rs.length;i=0;i--) { - this.insert(rs[i].lastIndex, rs[i]); // <-- lastIndex set in Store#destroyRecord - } - } - }, - - // protected handleException. Possibly temporary until Ext framework has an exception-handler. - handleException : function(e) { - // @see core/Error.js - Ext.handleError(e); - }, - - /** - *

      Reloads the Record cache from the configured Proxy using the configured - * {@link Ext.data.Reader Reader} and the options from the last load operation - * performed.

      - *

      Note: see the Important note in {@link #load}.

      - * @param {Object} options

      (optional) An Object containing - * {@link #load loading options} which may override the {@link #lastOptions options} - * used in the last {@link #load} operation. See {@link #load} for details - * (defaults to null, in which case the {@link #lastOptions} are - * used).

      - *

      To add new params to the existing params:

      
      -lastOptions = myStore.lastOptions;
      -Ext.apply(lastOptions.params, {
      -    myNewParam: true
      -});
      -myStore.reload(lastOptions);
      -     * 
      - */ - reload : function(options){ - this.load(Ext.applyIf(options||{}, this.lastOptions)); - }, - - // private - // Called as a callback by the Reader during a load operation. - loadRecords : function(o, options, success){ - var i, len; - - if (this.isDestroyed === true) { - return; - } - if(!o || success === false){ - if(success !== false){ - this.fireEvent('load', this, [], options); - } - if(options.callback){ - options.callback.call(options.scope || this, [], options, false, o); - } - return; - } - var r = o.records, t = o.totalRecords || r.length; - if(!options || options.add !== true){ - if(this.pruneModifiedRecords){ - this.modified = []; - } - for(i = 0, len = r.length; i < len; i++){ - r[i].join(this); - } - if(this.snapshot){ - this.data = this.snapshot; - delete this.snapshot; - } - this.clearData(); - this.data.addAll(r); - this.totalLength = t; - this.applySort(); - this.fireEvent('datachanged', this); - }else{ - var toAdd = [], - rec, - cnt = 0; - for(i = 0, len = r.length; i < len; ++i){ - rec = r[i]; - if(this.indexOfId(rec.id) > -1){ - this.doUpdate(rec); - }else{ - toAdd.push(rec); - ++cnt; - } - } - this.totalLength = Math.max(t, this.data.length + cnt); - this.add(toAdd); - } - this.fireEvent('load', this, r, options); - if(options.callback){ - options.callback.call(options.scope || this, r, options, true); - } - }, - - /** - * Loads data from a passed data block and fires the {@link #load} event. A {@link Ext.data.Reader Reader} - * which understands the format of the data must have been configured in the constructor. - * @param {Object} data The data block from which to read the Records. The format of the data expected - * is dependent on the type of {@link Ext.data.Reader Reader} that is configured and should correspond to - * that {@link Ext.data.Reader Reader}'s {@link Ext.data.Reader#readRecords} parameter. - * @param {Boolean} append (Optional) true to append the new Records rather the default to replace - * the existing cache. - * Note: that Records in a Store are keyed by their {@link Ext.data.Record#id id}, so added Records - * with ids which are already present in the Store will replace existing Records. Only Records with - * new, unique ids will be added. - */ - loadData : function(o, append){ - var r = this.reader.readRecords(o); - this.loadRecords(r, {add: append}, true); - }, - - /** - * Gets the number of cached records. - *

      If using paging, this may not be the total size of the dataset. If the data object - * used by the Reader contains the dataset size, then the {@link #getTotalCount} function returns - * the dataset size. Note: see the Important note in {@link #load}.

      - * @return {Number} The number of Records in the Store's cache. - */ - getCount : function(){ - return this.data.length || 0; - }, - - /** - * Gets the total number of records in the dataset as returned by the server. - *

      If using paging, for this to be accurate, the data object used by the {@link #reader Reader} - * must contain the dataset size. For remote data sources, the value for this property - * (totalProperty for {@link Ext.data.JsonReader JsonReader}, - * totalRecords for {@link Ext.data.XmlReader XmlReader}) shall be returned by a query on the server. - * Note: see the Important note in {@link #load}.

      - * @return {Number} The number of Records as specified in the data object passed to the Reader - * by the Proxy. - *

      Note: this value is not updated when changing the contents of the Store locally.

      - */ - getTotalCount : function(){ - return this.totalLength || 0; - }, - - /** - * Returns an object describing the current sort state of this Store. - * @return {Object} The sort state of the Store. An object with two properties:
        - *
      • field : String

        The name of the field by which the Records are sorted.

      • - *
      • direction : String

        The sort order, 'ASC' or 'DESC' (case-sensitive).

      • - *
      - * See {@link #sortInfo} for additional details. - */ - getSortState : function(){ - return this.sortInfo; - }, - - /** - * @private - * Invokes sortData if we have sortInfo to sort on and are not sorting remotely - */ - applySort : function(){ - if ((this.sortInfo || this.multiSortInfo) && !this.remoteSort) { - this.sortData(); - } - }, - - /** - * @private - * Performs the actual sorting of data. This checks to see if we currently have a multi sort or not. It applies - * each sorter field/direction pair in turn by building an OR'ed master sorting function and running it against - * the full dataset - */ - sortData : function() { - var sortInfo = this.hasMultiSort ? this.multiSortInfo : this.sortInfo, - direction = sortInfo.direction || "ASC", - sorters = sortInfo.sorters, - sortFns = []; - - //if we just have a single sorter, pretend it's the first in an array - if (!this.hasMultiSort) { - sorters = [{direction: direction, field: sortInfo.field}]; - } - - //create a sorter function for each sorter field/direction combo - for (var i=0, j = sorters.length; i < j; i++) { - sortFns.push(this.createSortFunction(sorters[i].field, sorters[i].direction)); - } - - if (sortFns.length == 0) { - return; - } - - //the direction modifier is multiplied with the result of the sorting functions to provide overall sort direction - //(as opposed to direction per field) - var directionModifier = direction.toUpperCase() == "DESC" ? -1 : 1; - - //create a function which ORs each sorter together to enable multi-sort - var fn = function(r1, r2) { - var result = sortFns[0].call(this, r1, r2); - - //if we have more than one sorter, OR any additional sorter functions together - if (sortFns.length > 1) { - for (var i=1, j = sortFns.length; i < j; i++) { - result = result || sortFns[i].call(this, r1, r2); - } - } - - return directionModifier * result; - }; - - //sort the data - this.data.sort(direction, fn); - if (this.snapshot && this.snapshot != this.data) { - this.snapshot.sort(direction, fn); - } - }, - - /** - * @private - * Creates and returns a function which sorts an array by the given field and direction - * @param {String} field The field to create the sorter for - * @param {String} direction The direction to sort by (defaults to "ASC") - * @return {Function} A function which sorts by the field/direction combination provided - */ - createSortFunction: function(field, direction) { - direction = direction || "ASC"; - var directionModifier = direction.toUpperCase() == "DESC" ? -1 : 1; - - var sortType = this.fields.get(field).sortType; - - //create a comparison function. Takes 2 records, returns 1 if record 1 is greater, - //-1 if record 2 is greater or 0 if they are equal - return function(r1, r2) { - var v1 = sortType(r1.data[field]), - v2 = sortType(r2.data[field]); - - return directionModifier * (v1 > v2 ? 1 : (v1 < v2 ? -1 : 0)); - }; - }, - - /** - * Sets the default sort column and order to be used by the next {@link #load} operation. - * @param {String} fieldName The name of the field to sort by. - * @param {String} dir (optional) The sort order, 'ASC' or 'DESC' (case-sensitive, defaults to 'ASC') - */ - setDefaultSort : function(field, dir) { - dir = dir ? dir.toUpperCase() : 'ASC'; - this.sortInfo = {field: field, direction: dir}; - this.sortToggle[field] = dir; - }, - - /** - * Sort the Records. - * If remote sorting is used, the sort is performed on the server, and the cache is reloaded. If local - * sorting is used, the cache is sorted internally. See also {@link #remoteSort} and {@link #paramNames}. - * This function accepts two call signatures - pass in a field name as the first argument to sort on a single - * field, or pass in an array of sort configuration objects to sort by multiple fields. - * Single sort example: - * store.sort('name', 'ASC'); - * Multi sort example: - * store.sort([ - * { - * field : 'name', - * direction: 'ASC' - * }, - * { - * field : 'salary', - * direction: 'DESC' - * } - * ], 'ASC'); - * In this second form, the sort configs are applied in order, with later sorters sorting within earlier sorters' results. - * For example, if two records with the same name are present they will also be sorted by salary if given the sort configs - * above. Any number of sort configs can be added. - * @param {String/Array} fieldName The name of the field to sort by, or an array of ordered sort configs - * @param {String} dir (optional) The sort order, 'ASC' or 'DESC' (case-sensitive, defaults to 'ASC') - */ - sort : function(fieldName, dir) { - if (Ext.isArray(arguments[0])) { - return this.multiSort.call(this, fieldName, dir); - } else { - return this.singleSort(fieldName, dir); - } - }, - - /** - * Sorts the store contents by a single field and direction. This is called internally by {@link sort} and would - * not usually be called manually - * @param {String} fieldName The name of the field to sort by. - * @param {String} dir (optional) The sort order, 'ASC' or 'DESC' (case-sensitive, defaults to 'ASC') - */ - singleSort: function(fieldName, dir) { - var field = this.fields.get(fieldName); - if (!field) { - return false; - } - - var name = field.name, - sortInfo = this.sortInfo || null, - sortToggle = this.sortToggle ? this.sortToggle[name] : null; - - if (!dir) { - if (sortInfo && sortInfo.field == name) { // toggle sort dir - dir = (this.sortToggle[name] || 'ASC').toggle('ASC', 'DESC'); - } else { - dir = field.sortDir; - } - } - - this.sortToggle[name] = dir; - this.sortInfo = {field: name, direction: dir}; - this.hasMultiSort = false; - - if (this.remoteSort) { - if (!this.load(this.lastOptions)) { - if (sortToggle) { - this.sortToggle[name] = sortToggle; - } - if (sortInfo) { - this.sortInfo = sortInfo; - } - } - } else { - this.applySort(); - this.fireEvent('datachanged', this); - } - return true; - }, - - /** - * Sorts the contents of this store by multiple field/direction sorters. This is called internally by {@link sort} - * and would not usually be called manually. - * Multi sorting only currently applies to local datasets - multiple sort data is not currently sent to a proxy - * if remoteSort is used. - * @param {Array} sorters Array of sorter objects (field and direction) - * @param {String} direction Overall direction to sort the ordered results by (defaults to "ASC") - */ - multiSort: function(sorters, direction) { - this.hasMultiSort = true; - direction = direction || "ASC"; - - //toggle sort direction - if (this.multiSortInfo && direction == this.multiSortInfo.direction) { - direction = direction.toggle("ASC", "DESC"); - } - - /** - * Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields - * @property multiSortInfo - * @type Object - */ - this.multiSortInfo = { - sorters : sorters, - direction: direction - }; - - if (this.remoteSort) { - this.singleSort(sorters[0].field, sorters[0].direction); - - } else { - this.applySort(); - this.fireEvent('datachanged', this); - } - }, - - /** - * Calls the specified function for each of the {@link Ext.data.Record Records} in the cache. - * @param {Function} fn The function to call. The {@link Ext.data.Record Record} is passed as the first parameter. - * Returning false aborts and exits the iteration. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * Defaults to the current {@link Ext.data.Record Record} in the iteration. - */ - each : function(fn, scope){ - this.data.each(fn, scope); - }, - - /** - * Gets all {@link Ext.data.Record records} modified since the last commit. Modified records are - * persisted across load operations (e.g., during paging). Note: deleted records are not - * included. See also {@link #pruneModifiedRecords} and - * {@link Ext.data.Record}{@link Ext.data.Record#markDirty markDirty}.. - * @return {Ext.data.Record[]} An array of {@link Ext.data.Record Records} containing outstanding - * modifications. To obtain modified fields within a modified record see - *{@link Ext.data.Record}{@link Ext.data.Record#modified modified}.. - */ - getModifiedRecords : function(){ - return this.modified; - }, - - /** - * Sums the value of property for each {@link Ext.data.Record record} between start - * and end and returns the result. - * @param {String} property A field in each record - * @param {Number} start (optional) The record index to start at (defaults to 0) - * @param {Number} end (optional) The last record index to include (defaults to length - 1) - * @return {Number} The sum - */ - sum : function(property, start, end){ - var rs = this.data.items, v = 0; - start = start || 0; - end = (end || end === 0) ? end : rs.length-1; - - for(var i = start; i <= end; i++){ - v += (rs[i].data[property] || 0); - } - return v; - }, - - /** - * @private - * Returns a filter function used to test a the given property's value. Defers most of the work to - * Ext.util.MixedCollection's createValueMatcher function - * @param {String} property The property to create the filter function for - * @param {String/RegExp} value The string/regex to compare the property value to - * @param {Boolean} anyMatch True if we don't care if the filter value is not the full value (defaults to false) - * @param {Boolean} caseSensitive True to create a case-sensitive 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. - */ - createFilterFn : function(property, value, anyMatch, caseSensitive, exactMatch){ - if(Ext.isEmpty(value, false)){ - return false; - } - value = this.data.createValueMatcher(value, anyMatch, caseSensitive, exactMatch); - return function(r) { - return value.test(r.data[property]); - }; - }, - - /** - * @private - * Given an array of filter functions (each with optional scope), constructs and returns a single function that returns - * the result of all of the filters ANDed together - * @param {Array} filters The array of filter objects (each object should contain an 'fn' and optional scope) - * @return {Function} The multiple filter function - */ - createMultipleFilterFn: function(filters) { - return function(record) { - var isMatch = true; - - for (var i=0, j = filters.length; i < j; i++) { - var filter = filters[i], - fn = filter.fn, - scope = filter.scope; - - isMatch = isMatch && fn.call(scope, record); - } - - return isMatch; - }; - }, - - /** - * Filter the {@link Ext.data.Record records} by a specified property. Alternatively, pass an array of filter - * options to filter by more than one property. - * Single filter example: - * store.filter('name', 'Ed', true, true); //finds all records containing the substring 'Ed' - * Multiple filter example: - *
      
      -     * store.filter([
      -     *   {
      -     *     property     : 'name',
      -     *     value        : 'Ed',
      -     *     anyMatch     : true, //optional, defaults to true
      -     *     caseSensitive: true  //optional, defaults to true
      -     *   },
      -     *
      -     *   //filter functions can also be passed
      -     *   {
      -     *     fn   : function(record) {
      -     *       return record.get('age') == 24
      -     *     },
      -     *     scope: this
      -     *   }
      -     * ]);
      -     * 
      - * @param {String|Array} field A field on your records, or an array containing multiple filter options - * @param {String/RegExp} value Either a string that the field should begin with, or a RegExp to test - * against the field. - * @param {Boolean} anyMatch (optional) true to match any part not just the beginning - * @param {Boolean} caseSensitive (optional) true for case sensitive comparison - * @param {Boolean} exactMatch True to force exact match (^ and $ characters added to the regex). Defaults to false. Ignored if anyMatch is true. - */ - filter : function(property, value, anyMatch, caseSensitive, exactMatch){ - var fn; - //we can accept an array of filter objects, or a single filter object - normalize them here - if (Ext.isObject(property)) { - property = [property]; - } - - if (Ext.isArray(property)) { - var filters = []; - - //normalize the filters passed into an array of filter functions - for (var i=0, j = property.length; i < j; i++) { - var filter = property[i], - func = filter.fn, - scope = filter.scope || this; - - //if we weren't given a filter function, construct one now - if (!Ext.isFunction(func)) { - func = this.createFilterFn(filter.property, filter.value, filter.anyMatch, filter.caseSensitive, filter.exactMatch); - } - - filters.push({fn: func, scope: scope}); - } - - fn = this.createMultipleFilterFn(filters); - } else { - //classic single property filter - fn = this.createFilterFn(property, value, anyMatch, caseSensitive, exactMatch); - } - - return fn ? this.filterBy(fn) : this.clearFilter(); - }, - - /** - * Filter by a function. The specified function will be called for each - * Record in this Store. If the function returns true the Record is included, - * otherwise it is filtered out. - * @param {Function} fn The function to be called. It will be passed the following parameters:
        - *
      • record : Ext.data.Record

        The {@link Ext.data.Record record} - * to test for filtering. Access field values using {@link Ext.data.Record#get}.

      • - *
      • id : Object

        The ID of the Record passed.

      • - *
      - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this Store. - */ - filterBy : function(fn, scope){ - this.snapshot = this.snapshot || this.data; - this.data = this.queryBy(fn, scope || this); - this.fireEvent('datachanged', this); - }, - - /** - * Revert to a view of the Record cache with no filtering applied. - * @param {Boolean} suppressEvent If true the filter is cleared silently without firing the - * {@link #datachanged} event. - */ - clearFilter : function(suppressEvent){ - if(this.isFiltered()){ - this.data = this.snapshot; - delete this.snapshot; - if(suppressEvent !== true){ - this.fireEvent('datachanged', this); - } - } - }, - - /** - * Returns true if this store is currently filtered - * @return {Boolean} - */ - isFiltered : function(){ - return !!this.snapshot && this.snapshot != this.data; - }, - - /** - * Query the records by a specified property. - * @param {String} field A field on your records - * @param {String/RegExp} value Either a string that the field - * should begin with, or a RegExp to test against the field. - * @param {Boolean} anyMatch (optional) True to match any part not just the beginning - * @param {Boolean} caseSensitive (optional) True for case sensitive comparison - * @return {MixedCollection} Returns an Ext.util.MixedCollection of the matched records - */ - query : function(property, value, anyMatch, caseSensitive){ - var fn = this.createFilterFn(property, value, anyMatch, caseSensitive); - return fn ? this.queryBy(fn) : this.data.clone(); - }, - - /** - * Query the cached records in this Store using a filtering function. The specified function - * will be called with each record in this Store. If the function returns true the record is - * included in the results. - * @param {Function} fn The function to be called. It will be passed the following parameters:
        - *
      • record : Ext.data.Record

        The {@link Ext.data.Record record} - * to test for filtering. Access field values using {@link Ext.data.Record#get}.

      • - *
      • id : Object

        The ID of the Record passed.

      • - *
      - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this Store. - * @return {MixedCollection} Returns an Ext.util.MixedCollection of the matched records - **/ - queryBy : function(fn, scope){ - var data = this.snapshot || this.data; - return data.filterBy(fn, scope||this); - }, - - /** - * Finds the index of the first matching Record in this store by a specific field value. - * @param {String} fieldName The name of the Record field to test. - * @param {String/RegExp} value Either a string that the field value - * should begin with, or a RegExp to test against the field. - * @param {Number} startIndex (optional) The index to start searching at - * @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 - */ - find : function(property, value, start, anyMatch, caseSensitive){ - var fn = this.createFilterFn(property, value, anyMatch, caseSensitive); - return fn ? this.data.findIndexBy(fn, null, start) : -1; - }, - - /** - * Finds the index of the first matching Record in this store by a specific field value. - * @param {String} fieldName The name of the Record field to test. - * @param {Mixed} value The value to match the field against. - * @param {Number} startIndex (optional) The index to start searching at - * @return {Number} The matched index or -1 - */ - findExact: function(property, value, start){ - return this.data.findIndexBy(function(rec){ - return rec.get(property) === value; - }, this, start); - }, - - /** - * Find the index of the first matching Record in this Store by a function. - * If the function returns true it is considered a match. - * @param {Function} fn The function to be called. It will be passed the following parameters:
        - *
      • record : Ext.data.Record

        The {@link Ext.data.Record record} - * to test for filtering. Access field values using {@link Ext.data.Record#get}.

      • - *
      • id : Object

        The ID of the Record passed.

      • - *
      - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this Store. - * @param {Number} startIndex (optional) The index to start searching at - * @return {Number} The matched index or -1 - */ - findBy : function(fn, scope, start){ - return this.data.findIndexBy(fn, scope, start); - }, - - /** - * Collects unique values for a particular dataIndex from this store. - * @param {String} dataIndex The property to collect - * @param {Boolean} allowNull (optional) Pass true to allow null, undefined or empty string values - * @param {Boolean} bypassFilter (optional) Pass true to collect from all records, even ones which are filtered - * @return {Array} An array of the unique values - **/ - collect : function(dataIndex, allowNull, bypassFilter){ - var d = (bypassFilter === true && this.snapshot) ? - this.snapshot.items : this.data.items; - var v, sv, r = [], l = {}; - for(var i = 0, len = d.length; i < len; i++){ - v = d[i].data[dataIndex]; - sv = String(v); - if((allowNull || !Ext.isEmpty(v)) && !l[sv]){ - l[sv] = true; - r[r.length] = v; - } - } - return r; - }, - - // private - afterEdit : function(record){ - if(this.modified.indexOf(record) == -1){ - this.modified.push(record); - } - this.fireEvent('update', this, record, Ext.data.Record.EDIT); - }, - - // private - afterReject : function(record){ - this.modified.remove(record); - this.fireEvent('update', this, record, Ext.data.Record.REJECT); - }, - - // private - afterCommit : function(record){ - this.modified.remove(record); - this.fireEvent('update', this, record, Ext.data.Record.COMMIT); - }, - - /** - * Commit all Records with {@link #getModifiedRecords outstanding changes}. To handle updates for changes, - * subscribe to the Store's {@link #update update event}, and perform updating when the third parameter is - * Ext.data.Record.COMMIT. - */ - commitChanges : function(){ - var modified = this.modified.slice(0), - length = modified.length, - i; - - for (i = 0; i < length; i++){ - modified[i].commit(); - } - - this.modified = []; - this.removed = []; - }, - - /** - * {@link Ext.data.Record#reject Reject} outstanding changes on all {@link #getModifiedRecords modified records}. - */ - rejectChanges : function() { - var modified = this.modified.slice(0), - removed = this.removed.slice(0).reverse(), - mLength = modified.length, - rLength = removed.length, - i; - - for (i = 0; i < mLength; i++) { - modified[i].reject(); - } - - for (i = 0; i < rLength; i++) { - this.insert(removed[i].lastIndex || 0, removed[i]); - removed[i].reject(); - } - - this.modified = []; - this.removed = []; - }, - - // private - onMetaChange : function(meta){ - this.recordType = this.reader.recordType; - this.fields = this.recordType.prototype.fields; - delete this.snapshot; - if(this.reader.meta.sortInfo){ - this.sortInfo = this.reader.meta.sortInfo; - }else if(this.sortInfo && !this.fields.get(this.sortInfo.field)){ - delete this.sortInfo; - } - if(this.writer){ - this.writer.meta = this.reader.meta; - } - this.modified = []; - this.fireEvent('metachange', this, this.reader.meta); - }, - - // private - findInsertIndex : function(record){ - this.suspendEvents(); - var data = this.data.clone(); - this.data.add(record); - this.applySort(); - var index = this.data.indexOf(record); - this.data = data; - this.resumeEvents(); - return index; - }, - - /** - * Set the value for a property name in this store's {@link #baseParams}. Usage:

      
      -myStore.setBaseParam('foo', {bar:3});
      -
      - * @param {String} name Name of the property to assign - * @param {Mixed} value Value to assign the named property - **/ - setBaseParam : function (name, value){ - this.baseParams = this.baseParams || {}; - this.baseParams[name] = value; - } -}); - -Ext.reg('store', Ext.data.Store); - -/** - * @class Ext.data.Store.Error - * @extends Ext.Error - * Store Error extension. - * @param {String} name - */ -Ext.data.Store.Error = Ext.extend(Ext.Error, { - name: 'Ext.data.Store' -}); -Ext.apply(Ext.data.Store.Error.prototype, { - lang: { - 'writer-undefined' : 'Attempted to execute a write-action without a DataWriter installed.' - } -}); -/** - * @class Ext.data.Field - *

      This class encapsulates the field definition information specified in the field definition objects - * passed to {@link Ext.data.Record#create}.

      - *

      Developers do not need to instantiate this class. Instances are created by {@link Ext.data.Record.create} - * and cached in the {@link Ext.data.Record#fields fields} property of the created Record constructor's prototype.

      - */ -Ext.data.Field = Ext.extend(Object, { - - constructor : function(config){ - if(Ext.isString(config)){ - config = {name: config}; - } - Ext.apply(this, config); - - var types = Ext.data.Types, - st = this.sortType, - t; - - if(this.type){ - if(Ext.isString(this.type)){ - this.type = Ext.data.Types[this.type.toUpperCase()] || types.AUTO; - } - }else{ - this.type = types.AUTO; - } - - // named sortTypes are supported, here we look them up - if(Ext.isString(st)){ - this.sortType = Ext.data.SortTypes[st]; - }else if(Ext.isEmpty(st)){ - this.sortType = this.type.sortType; - } - - if(!this.convert){ - this.convert = this.type.convert; - } - }, - - /** - * @cfg {String} name - * The name by which the field is referenced within the Record. This is referenced by, for example, - * the dataIndex property in column definition objects passed to {@link Ext.grid.ColumnModel}. - *

      Note: In the simplest case, if no properties other than name are required, a field - * definition may consist of just a String for the field name.

      - */ - /** - * @cfg {Mixed} type - * (Optional) The data type for automatic conversion from received data to the stored value if {@link Ext.data.Field#convert convert} - * has not been specified. This may be specified as a string value. Possible values are - *
        - *
      • auto (Default, implies no conversion)
      • - *
      • string
      • - *
      • int
      • - *
      • float
      • - *
      • boolean
      • - *
      • date
      - *

      This may also be specified by referencing a member of the {@link Ext.data.Types} class.

      - *

      Developers may create their own application-specific data types by defining new members of the - * {@link Ext.data.Types} class.

      - */ - /** - * @cfg {Function} convert - * (Optional) A function which converts the value provided by the Reader into an object that will be stored - * in the Record. It is passed the following parameters:
        - *
      • v : Mixed
        The data value as read by the Reader, if undefined will use - * the configured {@link Ext.data.Field#defaultValue defaultValue}.
      • - *
      • rec : Mixed
        The data object containing the row as read by the Reader. - * Depending on the Reader type, this could be an Array ({@link Ext.data.ArrayReader ArrayReader}), an object - * ({@link Ext.data.JsonReader JsonReader}), or an XML element ({@link Ext.data.XMLReader XMLReader}).
      • - *
      - *
      
      -// example of convert function
      -function fullName(v, record){
      -    return record.name.last + ', ' + record.name.first;
      -}
      -
      -function location(v, record){
      -    return !record.city ? '' : (record.city + ', ' + record.state);
      -}
      -
      -var Dude = Ext.data.Record.create([
      -    {name: 'fullname',  convert: fullName},
      -    {name: 'firstname', mapping: 'name.first'},
      -    {name: 'lastname',  mapping: 'name.last'},
      -    {name: 'city', defaultValue: 'homeless'},
      -    'state',
      -    {name: 'location',  convert: location}
      -]);
      -
      -// create the data store
      -var store = new Ext.data.Store({
      -    reader: new Ext.data.JsonReader(
      -        {
      -            idProperty: 'key',
      -            root: 'daRoot',
      -            totalProperty: 'total'
      -        },
      -        Dude  // recordType
      -    )
      -});
      -
      -var myData = [
      -    { key: 1,
      -      name: { first: 'Fat',    last:  'Albert' }
      -      // notice no city, state provided in data object
      -    },
      -    { key: 2,
      -      name: { first: 'Barney', last:  'Rubble' },
      -      city: 'Bedrock', state: 'Stoneridge'
      -    },
      -    { key: 3,
      -      name: { first: 'Cliff',  last:  'Claven' },
      -      city: 'Boston',  state: 'MA'
      -    }
      -];
      -     * 
      - */ - /** - * @cfg {String} dateFormat - *

      (Optional) Used when converting received data into a Date when the {@link #type} is specified as "date".

      - *

      A format string for the {@link Date#parseDate Date.parseDate} function, or "timestamp" if the - * value provided by the Reader is a UNIX timestamp, or "time" if the value provided by the Reader is a - * javascript millisecond timestamp. See {@link Date}

      - */ - dateFormat: null, - - /** - * @cfg {Boolean} useNull - *

      (Optional) Use when converting received data into a Number type (either int or float). If the value cannot be parsed, - * null will be used if useNull is true, otherwise the value will be 0. Defaults to false - */ - useNull: false, - - /** - * @cfg {Mixed} defaultValue - * (Optional) The default value used when a Record is being created by a {@link Ext.data.Reader Reader} - * when the item referenced by the {@link Ext.data.Field#mapping mapping} does not exist in the data - * object (i.e. undefined). (defaults to "") - */ - defaultValue: "", - /** - * @cfg {String/Number} mapping - *

      (Optional) A path expression for use by the {@link Ext.data.DataReader} implementation - * that is creating the {@link Ext.data.Record Record} to extract the Field value from the data object. - * If the path expression is the same as the field name, the mapping may be omitted.

      - *

      The form of the mapping expression depends on the Reader being used.

      - *
        - *
      • {@link Ext.data.JsonReader}
        The mapping is a string containing the javascript - * expression to reference the data from an element of the data item's {@link Ext.data.JsonReader#root root} Array. Defaults to the field name.
      • - *
      • {@link Ext.data.XmlReader}
        The mapping is an {@link Ext.DomQuery} path to the data - * item relative to the DOM element that represents the {@link Ext.data.XmlReader#record record}. Defaults to the field name.
      • - *
      • {@link Ext.data.ArrayReader}
        The mapping is a number indicating the Array index - * of the field's value. Defaults to the field specification's Array position.
      • - *
      - *

      If a more complex value extraction strategy is required, then configure the Field with a {@link #convert} - * function. This is passed the whole row object, and may interrogate it in whatever way is necessary in order to - * return the desired data.

      - */ - mapping: null, - /** - * @cfg {Function} sortType - * (Optional) A function which converts a Field's value to a comparable value in order to ensure - * correct sort ordering. Predefined functions are provided in {@link Ext.data.SortTypes}. A custom - * sort example:
      
      -// current sort     after sort we want
      -// +-+------+          +-+------+
      -// |1|First |          |1|First |
      -// |2|Last  |          |3|Second|
      -// |3|Second|          |2|Last  |
      -// +-+------+          +-+------+
      -
      -sortType: function(value) {
      -   switch (value.toLowerCase()) // native toLowerCase():
      -   {
      -      case 'first': return 1;
      -      case 'second': return 2;
      -      default: return 3;
      -   }
      -}
      -     * 
      - */ - sortType : null, - /** - * @cfg {String} sortDir - * (Optional) Initial direction to sort ("ASC" or "DESC"). Defaults to - * "ASC". - */ - sortDir : "ASC", - /** - * @cfg {Boolean} allowBlank - * (Optional) Used for validating a {@link Ext.data.Record record}, defaults to true. - * An empty value here will cause {@link Ext.data.Record}.{@link Ext.data.Record#isValid isValid} - * to evaluate to false. - */ - allowBlank : true -}); -/** - * @class Ext.data.DataReader - * Abstract base class for reading structured data from a data source and converting - * it into an object containing {@link Ext.data.Record} objects and metadata for use - * by an {@link Ext.data.Store}. This class is intended to be extended and should not - * be created directly. For existing implementations, see {@link Ext.data.ArrayReader}, - * {@link Ext.data.JsonReader} and {@link Ext.data.XmlReader}. - * @constructor Create a new DataReader - * @param {Object} meta Metadata configuration options (implementation-specific). - * @param {Array/Object} recordType - *

      Either an Array of {@link Ext.data.Field Field} definition objects (which - * will be passed to {@link Ext.data.Record#create}, or a {@link Ext.data.Record Record} - * constructor created using {@link Ext.data.Record#create}.

      - */ -Ext.data.DataReader = function(meta, recordType){ - /** - * This DataReader's configured metadata as passed to the constructor. - * @type Mixed - * @property meta - */ - this.meta = meta; - /** - * @cfg {Array/Object} fields - *

      Either an Array of {@link Ext.data.Field Field} definition objects (which - * will be passed to {@link Ext.data.Record#create}, or a {@link Ext.data.Record Record} - * constructor created from {@link Ext.data.Record#create}.

      - */ - this.recordType = Ext.isArray(recordType) ? - Ext.data.Record.create(recordType) : recordType; - - // if recordType defined make sure extraction functions are defined - if (this.recordType){ - this.buildExtractors(); - } -}; - -Ext.data.DataReader.prototype = { - /** - * @cfg {String} messageProperty [undefined] Optional name of a property within a server-response that represents a user-feedback message. - */ - /** - * Abstract method created in extension's buildExtractors impl. - */ - getTotal: Ext.emptyFn, - /** - * Abstract method created in extension's buildExtractors impl. - */ - getRoot: Ext.emptyFn, - /** - * Abstract method created in extension's buildExtractors impl. - */ - getMessage: Ext.emptyFn, - /** - * Abstract method created in extension's buildExtractors impl. - */ - getSuccess: Ext.emptyFn, - /** - * Abstract method created in extension's buildExtractors impl. - */ - getId: Ext.emptyFn, - /** - * Abstract method, overridden in DataReader extensions such as {@link Ext.data.JsonReader} and {@link Ext.data.XmlReader} - */ - buildExtractors : Ext.emptyFn, - /** - * Abstract method overridden in DataReader extensions such as {@link Ext.data.JsonReader} and {@link Ext.data.XmlReader} - */ - extractValues : Ext.emptyFn, - - /** - * Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server. - * You must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming - * data from server will be merged with the data in the local record. - * In addition, you must return record-data from the server in the same order received. - * Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be suppressed. - * @param {Record/Record[]} record The phantom record to be realized. - * @param {Object/Object[]} data The new record data to apply. Must include the primary-key from database defined in idProperty field. - */ - realize: function(rs, data){ - if (Ext.isArray(rs)) { - for (var i = rs.length - 1; i >= 0; i--) { - // recurse - if (Ext.isArray(data)) { - this.realize(rs.splice(i,1).shift(), data.splice(i,1).shift()); - } - else { - // weird...rs is an array but data isn't?? recurse but just send in the whole invalid data object. - // the else clause below will detect !this.isData and throw exception. - this.realize(rs.splice(i,1).shift(), data); - } - } - } - else { - // If rs is NOT an array but data IS, see if data contains just 1 record. If so extract it and carry on. - if (Ext.isArray(data) && data.length == 1) { - data = data.shift(); - } - if (!this.isData(data)) { - // TODO: Let exception-handler choose to commit or not rather than blindly rs.commit() here. - //rs.commit(); - throw new Ext.data.DataReader.Error('realize', rs); - } - rs.phantom = false; // <-- That's what it's all about - rs._phid = rs.id; // <-- copy phantom-id -> _phid, so we can remap in Store#onCreateRecords - rs.id = this.getId(data); - rs.data = data; - - rs.commit(); - rs.store.reMap(rs); - } - }, - - /** - * Used for updating a non-phantom or "real" record's data with fresh data from server after remote-save. - * If returning data from multiple-records after a batch-update, you must return record-data from the server in - * the same order received. Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be - * suppressed as the record receives fresh new data-hash - * @param {Record/Record[]} rs - * @param {Object/Object[]} data - */ - update : function(rs, data) { - if (Ext.isArray(rs)) { - for (var i=rs.length-1; i >= 0; i--) { - if (Ext.isArray(data)) { - this.update(rs.splice(i,1).shift(), data.splice(i,1).shift()); - } - else { - // weird...rs is an array but data isn't?? recurse but just send in the whole data object. - // the else clause below will detect !this.isData and throw exception. - this.update(rs.splice(i,1).shift(), data); - } - } - } - else { - // If rs is NOT an array but data IS, see if data contains just 1 record. If so extract it and carry on. - if (Ext.isArray(data) && data.length == 1) { - data = data.shift(); - } - if (this.isData(data)) { - rs.data = Ext.apply(rs.data, data); - } - rs.commit(); - } - }, - - /** - * returns extracted, type-cast rows of data. Iterates to call #extractValues for each row - * @param {Object[]/Object} data-root from server response - * @param {Boolean} returnRecords [false] Set true to return instances of Ext.data.Record - * @private - */ - extractData : function(root, returnRecords) { - // A bit ugly this, too bad the Record's raw data couldn't be saved in a common property named "raw" or something. - var rawName = (this instanceof Ext.data.JsonReader) ? 'json' : 'node'; - - var rs = []; - - // Had to add Check for XmlReader, #isData returns true if root is an Xml-object. Want to check in order to re-factor - // #extractData into DataReader base, since the implementations are almost identical for JsonReader, XmlReader - if (this.isData(root) && !(this instanceof Ext.data.XmlReader)) { - root = [root]; - } - var f = this.recordType.prototype.fields, - fi = f.items, - fl = f.length, - rs = []; - if (returnRecords === true) { - var Record = this.recordType; - for (var i = 0; i < root.length; i++) { - var n = root[i]; - var record = new Record(this.extractValues(n, fi, fl), this.getId(n)); - record[rawName] = n; // <-- There's implementation of ugly bit, setting the raw record-data. - rs.push(record); - } - } - else { - for (var i = 0; i < root.length; i++) { - var data = this.extractValues(root[i], fi, fl); - data[this.meta.idProperty] = this.getId(root[i]); - rs.push(data); - } - } - return rs; - }, - - /** - * Returns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key - * corresponding to idProperty defined in your DataReader config containing non-empty pk. - * @param {Object} data - * @return {Boolean} - */ - isData : function(data) { - return (data && Ext.isObject(data) && !Ext.isEmpty(this.getId(data))) ? true : false; - }, - - // private function a store will createSequence upon - onMetaChange : function(meta){ - delete this.ef; - this.meta = meta; - this.recordType = Ext.data.Record.create(meta.fields); - this.buildExtractors(); - } -}; - -/** - * @class Ext.data.DataReader.Error - * @extends Ext.Error - * General error class for Ext.data.DataReader - */ -Ext.data.DataReader.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.DataReader' -}); -Ext.apply(Ext.data.DataReader.Error.prototype, { - lang : { - 'update': "#update received invalid data from server. Please see docs for DataReader#update and review your DataReader configuration.", - 'realize': "#realize was called with invalid remote-data. Please see the docs for DataReader#realize and review your DataReader configuration.", - 'invalid-response': "#readResponse received an invalid response from the server." - } -}); -/** - * @class Ext.data.DataWriter - *

      Ext.data.DataWriter facilitates create, update, and destroy actions between - * an Ext.data.Store and a server-side framework. A Writer enabled Store will - * automatically manage the Ajax requests to perform CRUD actions on a Store.

      - *

      Ext.data.DataWriter is an abstract base class which is intended to be extended - * and should not be created directly. For existing implementations, see - * {@link Ext.data.JsonWriter}.

      - *

      Creating a writer is simple:

      - *
      
      -var writer = new Ext.data.JsonWriter({
      -    encode: false   // <--- false causes data to be printed to jsonData config-property of Ext.Ajax#reqeust
      -});
      - * 
      - * *

      Same old JsonReader as Ext-2.x:

      - *
      
      -var reader = new Ext.data.JsonReader({idProperty: 'id'}, [{name: 'first'}, {name: 'last'}, {name: 'email'}]);
      - * 
      - * - *

      The proxy for a writer enabled store can be configured with a simple url:

      - *
      
      -// Create a standard HttpProxy instance.
      -var proxy = new Ext.data.HttpProxy({
      -    url: 'app.php/users'    // <--- Supports "provides"-type urls, such as '/users.json', '/products.xml' (Hello Rails/Merb)
      -});
      - * 
      - *

      For finer grained control, the proxy may also be configured with an API:

      - *
      
      -// Maximum flexibility with the API-configuration
      -var proxy = new Ext.data.HttpProxy({
      -    api: {
      -        read    : 'app.php/users/read',
      -        create  : 'app.php/users/create',
      -        update  : 'app.php/users/update',
      -        destroy : {  // <--- Supports object-syntax as well
      -            url: 'app.php/users/destroy',
      -            method: "DELETE"
      -        }
      -    }
      -});
      - * 
      - *

      Pulling it all together into a Writer-enabled Store:

      - *
      
      -var store = new Ext.data.Store({
      -    proxy: proxy,
      -    reader: reader,
      -    writer: writer,
      -    autoLoad: true,
      -    autoSave: true  // -- Cell-level updates.
      -});
      - * 
      - *

      Initiating write-actions automatically, using the existing Ext2.0 Store/Record API:

      - *
      
      -var rec = store.getAt(0);
      -rec.set('email', 'foo@bar.com');  // <--- Immediately initiates an UPDATE action through configured proxy.
      -
      -store.remove(rec);  // <---- Immediately initiates a DESTROY action through configured proxy.
      - * 
      - *

      For record/batch updates, use the Store-configuration {@link Ext.data.Store#autoSave autoSave:false}

      - *
      
      -var store = new Ext.data.Store({
      -    proxy: proxy,
      -    reader: reader,
      -    writer: writer,
      -    autoLoad: true,
      -    autoSave: false  // -- disable cell-updates
      -});
      -
      -var urec = store.getAt(0);
      -urec.set('email', 'foo@bar.com');
      -
      -var drec = store.getAt(1);
      -store.remove(drec);
      -
      -// Push the button!
      -store.save();
      - * 
      - * @constructor Create a new DataWriter - * @param {Object} meta Metadata configuration options (implementation-specific) - * @param {Object} recordType Either an Array of field definition objects as specified - * in {@link Ext.data.Record#create}, or an {@link Ext.data.Record} object created - * using {@link Ext.data.Record#create}. - */ -Ext.data.DataWriter = function(config){ - Ext.apply(this, config); -}; -Ext.data.DataWriter.prototype = { - - /** - * @cfg {Boolean} writeAllFields - * false by default. Set true to have DataWriter return ALL fields of a modified - * record -- not just those that changed. - * false to have DataWriter only request modified fields from a record. - */ - writeAllFields : false, - /** - * @cfg {Boolean} listful - * false by default. Set true to have the DataWriter always write HTTP params as a list, - * even when acting upon a single record. - */ - listful : false, // <-- listful is actually not used internally here in DataWriter. @see Ext.data.Store#execute. - - /** - * Compiles a Store recordset into a data-format defined by an extension such as {@link Ext.data.JsonWriter} or {@link Ext.data.XmlWriter} in preparation for a {@link Ext.data.Api#actions server-write action}. The first two params are similar similar in nature to {@link Ext#apply}, - * Where the first parameter is the receiver of paramaters and the second, baseParams, the source. - * @param {Object} params The request-params receiver. - * @param {Object} baseParams as defined by {@link Ext.data.Store#baseParams}. The baseParms must be encoded by the extending class, eg: {@link Ext.data.JsonWriter}, {@link Ext.data.XmlWriter}. - * @param {String} action [{@link Ext.data.Api#actions create|update|destroy}] - * @param {Record/Record[]} rs The recordset to write, the subject(s) of the write action. - */ - apply : function(params, baseParams, action, rs) { - var data = [], - renderer = action + 'Record'; - // TODO implement @cfg listful here - if (Ext.isArray(rs)) { - Ext.each(rs, function(rec){ - data.push(this[renderer](rec)); - }, this); - } - else if (rs instanceof Ext.data.Record) { - data = this[renderer](rs); - } - this.render(params, baseParams, data); - }, - - /** - * abstract method meant to be overridden by all DataWriter extensions. It's the extension's job to apply the "data" to the "params". - * The data-object provided to render is populated with data according to the meta-info defined in the user's DataReader config, - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Record[]} rs Store recordset - * @param {Object} params Http params to be sent to server. - * @param {Object} data object populated according to DataReader meta-data. - */ - render : Ext.emptyFn, - - /** - * @cfg {Function} updateRecord Abstract method that should be implemented in all subclasses - * (e.g.: {@link Ext.data.JsonWriter#updateRecord JsonWriter.updateRecord} - */ - updateRecord : Ext.emptyFn, - - /** - * @cfg {Function} createRecord Abstract method that should be implemented in all subclasses - * (e.g.: {@link Ext.data.JsonWriter#createRecord JsonWriter.createRecord}) - */ - createRecord : Ext.emptyFn, - - /** - * @cfg {Function} destroyRecord Abstract method that should be implemented in all subclasses - * (e.g.: {@link Ext.data.JsonWriter#destroyRecord JsonWriter.destroyRecord}) - */ - destroyRecord : Ext.emptyFn, - - /** - * Converts a Record to a hash, taking into account the state of the Ext.data.Record along with configuration properties - * related to its rendering, such as {@link #writeAllFields}, {@link Ext.data.Record#phantom phantom}, {@link Ext.data.Record#getChanges getChanges} and - * {@link Ext.data.DataReader#idProperty idProperty} - * @param {Ext.data.Record} rec The Record from which to create a hash. - * @param {Object} config NOT YET IMPLEMENTED. Will implement an exlude/only configuration for fine-control over which fields do/don't get rendered. - * @return {Object} - * @protected - * TODO Implement excludes/only configuration with 2nd param? - */ - toHash : function(rec, config) { - var map = rec.fields.map, - data = {}, - raw = (this.writeAllFields === false && rec.phantom === false) ? rec.getChanges() : rec.data, - m; - Ext.iterate(raw, function(prop, value){ - if((m = map[prop])){ - data[m.mapping ? m.mapping : m.name] = value; - } - }); - // we don't want to write Ext auto-generated id to hash. Careful not to remove it on Models not having auto-increment pk though. - // We can tell its not auto-increment if the user defined a DataReader field for it *and* that field's value is non-empty. - // we could also do a RegExp here for the Ext.data.Record AUTO_ID prefix. - if (rec.phantom) { - if (rec.fields.containsKey(this.meta.idProperty) && Ext.isEmpty(rec.data[this.meta.idProperty])) { - delete data[this.meta.idProperty]; - } - } else { - data[this.meta.idProperty] = rec.id; - } - return data; - }, - - /** - * Converts a {@link Ext.data.DataWriter#toHash Hashed} {@link Ext.data.Record} to fields-array array suitable - * for encoding to xml via XTemplate, eg: -
      <tpl for="."><{name}>{value}</{name}</tpl>
      - * eg, non-phantom: -
      {id: 1, first: 'foo', last: 'bar'} --> [{name: 'id', value: 1}, {name: 'first', value: 'foo'}, {name: 'last', value: 'bar'}]
      - * {@link Ext.data.Record#phantom Phantom} records will have had their idProperty omitted in {@link #toHash} if determined to be auto-generated. - * Non AUTOINCREMENT pks should have been protected. - * @param {Hash} data Hashed by Ext.data.DataWriter#toHash - * @return {[Object]} Array of attribute-objects. - * @protected - */ - toArray : function(data) { - var fields = []; - Ext.iterate(data, function(k, v) {fields.push({name: k, value: v});},this); - return fields; - } -};/** - * @class Ext.data.DataProxy - * @extends Ext.util.Observable - *

      Abstract base class for implementations which provide retrieval of unformatted data objects. - * This class is intended to be extended and should not be created directly. For existing implementations, - * see {@link Ext.data.DirectProxy}, {@link Ext.data.HttpProxy}, {@link Ext.data.ScriptTagProxy} and - * {@link Ext.data.MemoryProxy}.

      - *

      DataProxy implementations are usually used in conjunction with an implementation of {@link Ext.data.DataReader} - * (of the appropriate type which knows how to parse the data object) to provide a block of - * {@link Ext.data.Records} to an {@link Ext.data.Store}.

      - *

      The parameter to a DataProxy constructor may be an {@link Ext.data.Connection} or can also be the - * config object to an {@link Ext.data.Connection}.

      - *

      Custom implementations must implement either the doRequest method (preferred) or the - * load method (deprecated). See - * {@link Ext.data.HttpProxy}.{@link Ext.data.HttpProxy#doRequest doRequest} or - * {@link Ext.data.HttpProxy}.{@link Ext.data.HttpProxy#load load} for additional details.

      - *

      Example 1

      - *
      
      -proxy: new Ext.data.ScriptTagProxy({
      -    {@link Ext.data.Connection#url url}: 'http://extjs.com/forum/topics-remote.php'
      -}),
      - * 
      - *

      Example 2

      - *
      
      -proxy : new Ext.data.HttpProxy({
      -    {@link Ext.data.Connection#method method}: 'GET',
      -    {@link Ext.data.HttpProxy#prettyUrls prettyUrls}: false,
      -    {@link Ext.data.Connection#url url}: 'local/default.php', // see options parameter for {@link Ext.Ajax#request}
      -    {@link #api}: {
      -        // all actions except the following will use above url
      -        create  : 'local/new.php',
      -        update  : 'local/update.php'
      -    }
      -}),
      - * 
      - *

      And new in Ext version 3, attach centralized event-listeners upon the DataProxy class itself! This is a great place - * to implement a messaging system to centralize your application's user-feedback and error-handling.

      - *
      
      -// Listen to all "beforewrite" event fired by all proxies.
      -Ext.data.DataProxy.on('beforewrite', function(proxy, action) {
      -    console.log('beforewrite: ', action);
      -});
      -
      -// Listen to "write" event fired by all proxies
      -Ext.data.DataProxy.on('write', function(proxy, action, data, res, rs) {
      -    console.info('write: ', action);
      -});
      -
      -// Listen to "exception" event fired by all proxies
      -Ext.data.DataProxy.on('exception', function(proxy, type, action, exception) {
      -    console.error(type + action + ' exception);
      -});
      - * 
      - * Note: These three events are all fired with the signature of the corresponding DataProxy instance event {@link #beforewrite beforewrite}, {@link #write write} and {@link #exception exception}. - */ -Ext.data.DataProxy = function(conn){ - // make sure we have a config object here to support ux proxies. - // All proxies should now send config into superclass constructor. - conn = conn || {}; - - // This line caused a bug when people use custom Connection object having its own request method. - // http://extjs.com/forum/showthread.php?t=67194. Have to set DataProxy config - //Ext.applyIf(this, conn); - - this.api = conn.api; - this.url = conn.url; - this.restful = conn.restful; - this.listeners = conn.listeners; - - // deprecated - this.prettyUrls = conn.prettyUrls; - - /** - * @cfg {Object} api - * Specific urls to call on CRUD action methods "read", "create", "update" and "destroy". - * Defaults to:
      
      -api: {
      -    read    : undefined,
      -    create  : undefined,
      -    update  : undefined,
      -    destroy : undefined
      -}
      -     * 
      - *

      The url is built based upon the action being executed [load|create|save|destroy] - * using the commensurate {@link #api} property, or if undefined default to the - * configured {@link Ext.data.Store}.{@link Ext.data.Store#url url}.


      - *

      For example:

      - *
      
      -api: {
      -    load :    '/controller/load',
      -    create :  '/controller/new',  // Server MUST return idProperty of new record
      -    save :    '/controller/update',
      -    destroy : '/controller/destroy_action'
      -}
      -
      -// Alternatively, one can use the object-form to specify each API-action
      -api: {
      -    load: {url: 'read.php', method: 'GET'},
      -    create: 'create.php',
      -    destroy: 'destroy.php',
      -    save: 'update.php'
      -}
      -     * 
      - *

      If the specific URL for a given CRUD action is undefined, the CRUD action request - * will be directed to the configured {@link Ext.data.Connection#url url}.

      - *

      Note: To modify the URL for an action dynamically the appropriate API - * property should be modified before the action is requested using the corresponding before - * action event. For example to modify the URL associated with the load action: - *

      
      -// modify the url for the action
      -myStore.on({
      -    beforeload: {
      -        fn: function (store, options) {
      -            // use {@link Ext.data.HttpProxy#setUrl setUrl} to change the URL for *just* this request.
      -            store.proxy.setUrl('changed1.php');
      -
      -            // set optional second parameter to true to make this URL change
      -            // permanent, applying this URL for all subsequent requests.
      -            store.proxy.setUrl('changed1.php', true);
      -
      -            // Altering the proxy API should be done using the public
      -            // method {@link Ext.data.DataProxy#setApi setApi}.
      -            store.proxy.setApi('read', 'changed2.php');
      -
      -            // Or set the entire API with a config-object.
      -            // When using the config-object option, you must redefine the entire
      -            // API -- not just a specific action of it.
      -            store.proxy.setApi({
      -                read    : 'changed_read.php',
      -                create  : 'changed_create.php',
      -                update  : 'changed_update.php',
      -                destroy : 'changed_destroy.php'
      -            });
      -        }
      -    }
      -});
      -     * 
      - *

      - */ - - this.addEvents( - /** - * @event exception - *

      Fires if an exception occurs in the Proxy during a remote request. This event is relayed - * through a corresponding {@link Ext.data.Store}.{@link Ext.data.Store#exception exception}, - * so any Store instance may observe this event.

      - *

      In addition to being fired through the DataProxy instance that raised the event, this event is also fired - * through the Ext.data.DataProxy class to allow for centralized processing of exception events from all - * DataProxies by attaching a listener to the Ext.data.DataProxy class itself.

      - *

      This event can be fired for one of two reasons:

      - *
        - *
      • remote-request failed :
        - * The server did not return status === 200. - *
      • - *
      • remote-request succeeded :
        - * The remote-request succeeded but the reader could not read the response. - * This means the server returned data, but the configured Reader threw an - * error while reading the response. In this case, this event will be - * raised and the caught error will be passed along into this event. - *
      • - *
      - *

      This event fires with two different contexts based upon the 2nd - * parameter type [remote|response]. The first four parameters - * are identical between the two contexts -- only the final two parameters - * differ.

      - * @param {DataProxy} this The proxy that sent the request - * @param {String} type - *

      The value of this parameter will be either 'response' or 'remote'.

      - *
        - *
      • 'response' :
        - *

        An invalid response from the server was returned: either 404, - * 500 or the response meta-data does not match that defined in the DataReader - * (e.g.: root, idProperty, successProperty).

        - *
      • - *
      • 'remote' :
        - *

        A valid response was returned from the server having - * successProperty === false. This response might contain an error-message - * sent from the server. For example, the user may have failed - * authentication/authorization or a database validation error occurred.

        - *
      • - *
      - * @param {String} action Name of the action (see {@link Ext.data.Api#actions}. - * @param {Object} options The options for the action that were specified in the {@link #request}. - * @param {Object} response - *

      The value of this parameter depends on the value of the type parameter:

      - *
        - *
      • 'response' :
        - *

        The raw browser response object (e.g.: XMLHttpRequest)

        - *
      • - *
      • 'remote' :
        - *

        The decoded response object sent from the server.

        - *
      • - *
      - * @param {Mixed} arg - *

      The type and value of this parameter depends on the value of the type parameter:

      - *
        - *
      • 'response' : Error
        - *

        The JavaScript Error object caught if the configured Reader could not read the data. - * If the remote request returns success===false, this parameter will be null.

        - *
      • - *
      • 'remote' : Record/Record[]
        - *

        This parameter will only exist if the action was a write action - * (Ext.data.Api.actions.create|update|destroy).

        - *
      • - *
      - */ - 'exception', - /** - * @event beforeload - * Fires before a request to retrieve a data object. - * @param {DataProxy} this The proxy for the request - * @param {Object} params The params object passed to the {@link #request} function - */ - 'beforeload', - /** - * @event load - * Fires before the load method's callback is called. - * @param {DataProxy} this The proxy for the request - * @param {Object} o The request transaction object - * @param {Object} options The callback's options property as passed to the {@link #request} function - */ - 'load', - /** - * @event loadexception - *

      This event is deprecated. The signature of the loadexception event - * varies depending on the proxy, use the catch-all {@link #exception} event instead. - * This event will fire in addition to the {@link #exception} event.

      - * @param {misc} misc See {@link #exception}. - * @deprecated - */ - 'loadexception', - /** - * @event beforewrite - *

      Fires before a request is generated for one of the actions Ext.data.Api.actions.create|update|destroy

      - *

      In addition to being fired through the DataProxy instance that raised the event, this event is also fired - * through the Ext.data.DataProxy class to allow for centralized processing of beforewrite events from all - * DataProxies by attaching a listener to the Ext.data.DataProxy class itself.

      - * @param {DataProxy} this The proxy for the request - * @param {String} action [Ext.data.Api.actions.create|update|destroy] - * @param {Record/Record[]} rs The Record(s) to create|update|destroy. - * @param {Object} params The request params object. Edit params to add parameters to the request. - */ - 'beforewrite', - /** - * @event write - *

      Fires before the request-callback is called

      - *

      In addition to being fired through the DataProxy instance that raised the event, this event is also fired - * through the Ext.data.DataProxy class to allow for centralized processing of write events from all - * DataProxies by attaching a listener to the Ext.data.DataProxy class itself.

      - * @param {DataProxy} this The proxy that sent the request - * @param {String} action [Ext.data.Api.actions.create|upate|destroy] - * @param {Object} data The data object extracted from the server-response - * @param {Object} response The decoded response from server - * @param {Record/Record[]} rs The Record(s) from Store - * @param {Object} options The callback's options property as passed to the {@link #request} function - */ - 'write' - ); - Ext.data.DataProxy.superclass.constructor.call(this); - - // Prepare the proxy api. Ensures all API-actions are defined with the Object-form. - try { - Ext.data.Api.prepare(this); - } catch (e) { - if (e instanceof Ext.data.Api.Error) { - e.toConsole(); - } - } - // relay each proxy's events onto Ext.data.DataProxy class for centralized Proxy-listening - Ext.data.DataProxy.relayEvents(this, ['beforewrite', 'write', 'exception']); -}; - -Ext.extend(Ext.data.DataProxy, Ext.util.Observable, { - /** - * @cfg {Boolean} restful - *

      Defaults to false. Set to true to operate in a RESTful manner.

      - *

      Note: this parameter will automatically be set to true if the - * {@link Ext.data.Store} it is plugged into is set to restful: true. If the - * Store is RESTful, there is no need to set this option on the proxy.

      - *

      RESTful implementations enable the serverside framework to automatically route - * actions sent to one url based upon the HTTP method, for example: - *

      
      -store: new Ext.data.Store({
      -    restful: true,
      -    proxy: new Ext.data.HttpProxy({url:'/users'}); // all requests sent to /users
      -    ...
      -)}
      -     * 
      - * If there is no {@link #api} specified in the configuration of the proxy, - * all requests will be marshalled to a single RESTful url (/users) so the serverside - * framework can inspect the HTTP Method and act accordingly: - *
      -Method   url        action
      -POST     /users     create
      -GET      /users     read
      -PUT      /users/23  update
      -DESTROY  /users/23  delete
      -     * 

      - *

      If set to true, a {@link Ext.data.Record#phantom non-phantom} record's - * {@link Ext.data.Record#id id} will be appended to the url. Some MVC (e.g., Ruby on Rails, - * Merb and Django) support segment based urls where the segments in the URL follow the - * Model-View-Controller approach:

      
      -     * someSite.com/controller/action/id
      -     * 
      - * Where the segments in the url are typically:
        - *
      • The first segment : represents the controller class that should be invoked.
      • - *
      • The second segment : represents the class function, or method, that should be called.
      • - *
      • The third segment : represents the ID (a variable typically passed to the method).
      • - *

      - *

      Refer to {@link Ext.data.DataProxy#api} for additional information.

      - */ - restful: false, - - /** - *

      Redefines the Proxy's API or a single action of an API. Can be called with two method signatures.

      - *

      If called with an object as the only parameter, the object should redefine the entire API, e.g.:

      
      -proxy.setApi({
      -    read    : '/users/read',
      -    create  : '/users/create',
      -    update  : '/users/update',
      -    destroy : '/users/destroy'
      -});
      -
      - *

      If called with two parameters, the first parameter should be a string specifying the API action to - * redefine and the second parameter should be the URL (or function if using DirectProxy) to call for that action, e.g.:

      
      -proxy.setApi(Ext.data.Api.actions.read, '/users/new_load_url');
      -
      - * @param {String/Object} api An API specification object, or the name of an action. - * @param {String/Function} url The URL (or function if using DirectProxy) to call for the action. - */ - setApi : function() { - if (arguments.length == 1) { - var valid = Ext.data.Api.isValid(arguments[0]); - if (valid === true) { - this.api = arguments[0]; - } - else { - throw new Ext.data.Api.Error('invalid', valid); - } - } - else if (arguments.length == 2) { - if (!Ext.data.Api.isAction(arguments[0])) { - throw new Ext.data.Api.Error('invalid', arguments[0]); - } - this.api[arguments[0]] = arguments[1]; - } - Ext.data.Api.prepare(this); - }, - - /** - * Returns true if the specified action is defined as a unique action in the api-config. - * request. If all API-actions are routed to unique urls, the xaction parameter is unecessary. However, if no api is defined - * and all Proxy actions are routed to DataProxy#url, the server-side will require the xaction parameter to perform a switch to - * the corresponding code for CRUD action. - * @param {String [Ext.data.Api.CREATE|READ|UPDATE|DESTROY]} action - * @return {Boolean} - */ - isApiAction : function(action) { - return (this.api[action]) ? true : false; - }, - - /** - * All proxy actions are executed through this method. Automatically fires the "before" + action event - * @param {String} action Name of the action - * @param {Ext.data.Record/Ext.data.Record[]/null} rs Will be null when action is 'load' - * @param {Object} params - * @param {Ext.data.DataReader} reader - * @param {Function} callback - * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the Proxy object. - * @param {Object} options Any options specified for the action (e.g. see {@link Ext.data.Store#load}. - */ - request : function(action, rs, params, reader, callback, scope, options) { - if (!this.api[action] && !this.load) { - throw new Ext.data.DataProxy.Error('action-undefined', action); - } - params = params || {}; - if ((action === Ext.data.Api.actions.read) ? this.fireEvent("beforeload", this, params) : this.fireEvent("beforewrite", this, action, rs, params) !== false) { - this.doRequest.apply(this, arguments); - } - else { - callback.call(scope || this, null, options, false); - } - }, - - - /** - * Deprecated load method using old method signature. See {@doRequest} for preferred method. - * @deprecated - * @param {Object} params - * @param {Object} reader - * @param {Object} callback - * @param {Object} scope - * @param {Object} arg - */ - load : null, - - /** - * @cfg {Function} doRequest Abstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. - * (e.g.: {@link Ext.data.HttpProxy#doRequest HttpProxy.doRequest}, - * {@link Ext.data.DirectProxy#doRequest DirectProxy.doRequest}). - */ - doRequest : function(action, rs, params, reader, callback, scope, options) { - // default implementation of doRequest for backwards compatibility with 2.0 proxies. - // If we're executing here, the action is probably "load". - // Call with the pre-3.0 method signature. - this.load(params, reader, callback, scope, options); - }, - - /** - * @cfg {Function} onRead Abstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. Callback for read {@link Ext.data.Api#actions action}. - * @param {String} action Action name as per {@link Ext.data.Api.actions#read}. - * @param {Object} o The request transaction object - * @param {Object} res The server response - * @fires loadexception (deprecated) - * @fires exception - * @fires load - * @protected - */ - onRead : Ext.emptyFn, - /** - * @cfg {Function} onWrite Abstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. Callback for create, update and destroy {@link Ext.data.Api#actions actions}. - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} trans The request transaction object - * @param {Object} res The server response - * @fires exception - * @fires write - * @protected - */ - onWrite : Ext.emptyFn, - /** - * buildUrl - * Sets the appropriate url based upon the action being executed. If restful is true, and only a single record is being acted upon, - * url will be built Rails-style, as in "/controller/action/32". restful will aply iff the supplied record is an - * instance of Ext.data.Record rather than an Array of them. - * @param {String} action The api action being executed [read|create|update|destroy] - * @param {Ext.data.Record/Ext.data.Record[]} record The record or Array of Records being acted upon. - * @return {String} url - * @private - */ - buildUrl : function(action, record) { - record = record || null; - - // conn.url gets nullified after each request. If it's NOT null here, that means the user must have intervened with a call - // to DataProxy#setUrl or DataProxy#setApi and changed it before the request was executed. If that's the case, use conn.url, - // otherwise, build the url from the api or this.url. - var url = (this.conn && this.conn.url) ? this.conn.url : (this.api[action]) ? this.api[action].url : this.url; - if (!url) { - throw new Ext.data.Api.Error('invalid-url', action); - } - - // look for urls having "provides" suffix used in some MVC frameworks like Rails/Merb and others. The provides suffice informs - // the server what data-format the client is dealing with and returns data in the same format (eg: application/json, application/xml, etc) - // e.g.: /users.json, /users.xml, etc. - // with restful routes, we need urls like: - // PUT /users/1.json - // DELETE /users/1.json - var provides = null; - var m = url.match(/(.*)(\.json|\.xml|\.html)$/); - if (m) { - provides = m[2]; // eg ".json" - url = m[1]; // eg: "/users" - } - // prettyUrls is deprectated in favor of restful-config - if ((this.restful === true || this.prettyUrls === true) && record instanceof Ext.data.Record && !record.phantom) { - url += '/' + record.id; - } - return (provides === null) ? url : url + provides; - }, - - /** - * Destroys the proxy by purging any event listeners and cancelling any active requests. - */ - destroy: function(){ - this.purgeListeners(); - } -}); - -// Apply the Observable prototype to the DataProxy class so that proxy instances can relay their -// events to the class. Allows for centralized listening of all proxy instances upon the DataProxy class. -Ext.apply(Ext.data.DataProxy, Ext.util.Observable.prototype); -Ext.util.Observable.call(Ext.data.DataProxy); - -/** - * @class Ext.data.DataProxy.Error - * @extends Ext.Error - * DataProxy Error extension. - * constructor - * @param {String} message Message describing the error. - * @param {Record/Record[]} arg - */ -Ext.data.DataProxy.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.DataProxy' -}); -Ext.apply(Ext.data.DataProxy.Error.prototype, { - lang: { - 'action-undefined': "DataProxy attempted to execute an API-action but found an undefined url / function. Please review your Proxy url/api-configuration.", - 'api-invalid': 'Recieved an invalid API-configuration. Please ensure your proxy API-configuration contains only the actions from Ext.data.Api.actions.' - } -}); - - -/** - * @class Ext.data.Request - * A simple Request class used internally to the data package to provide more generalized remote-requests - * to a DataProxy. - * TODO Not yet implemented. Implement in Ext.data.Store#execute - */ -Ext.data.Request = function(params) { - Ext.apply(this, params); -}; -Ext.data.Request.prototype = { - /** - * @cfg {String} action - */ - action : undefined, - /** - * @cfg {Ext.data.Record[]/Ext.data.Record} rs The Store recordset associated with the request. - */ - rs : undefined, - /** - * @cfg {Object} params HTTP request params - */ - params: undefined, - /** - * @cfg {Function} callback The function to call when request is complete - */ - callback : Ext.emptyFn, - /** - * @cfg {Object} scope The scope of the callback funtion - */ - scope : undefined, - /** - * @cfg {Ext.data.DataReader} reader The DataReader instance which will parse the received response - */ - reader : undefined -}; -/** - * @class Ext.data.Response - * A generic response class to normalize response-handling internally to the framework. - */ -Ext.data.Response = function(params) { - Ext.apply(this, params); -}; -Ext.data.Response.prototype = { - /** - * @cfg {String} action {@link Ext.data.Api#actions} - */ - action: undefined, - /** - * @cfg {Boolean} success - */ - success : undefined, - /** - * @cfg {String} message - */ - message : undefined, - /** - * @cfg {Array/Object} data - */ - data: undefined, - /** - * @cfg {Object} raw The raw response returned from server-code - */ - raw: undefined, - /** - * @cfg {Ext.data.Record/Ext.data.Record[]} records related to the Request action - */ - records: undefined -}; -/** - * @class Ext.data.ScriptTagProxy - * @extends Ext.data.DataProxy - * An implementation of Ext.data.DataProxy that reads a data object from a URL which may be in a domain - * other than the originating domain of the running page.
      - *

      - * Note that if you are retrieving data from a page that is in a domain that is NOT the same as the originating domain - * of the running page, you must use this class, rather than HttpProxy.
      - *

      - * The content passed back from a server resource requested by a ScriptTagProxy must be executable JavaScript - * source code because it is used as the source inside a <script> tag.
      - *

      - * In order for the browser to process the returned data, the server must wrap the data object - * with a call to a callback function, the name of which is passed as a parameter by the ScriptTagProxy. - * Below is a Java example for a servlet which returns data for either a ScriptTagProxy, or an HttpProxy - * depending on whether the callback name was passed: - *

      - *

      
      -boolean scriptTag = false;
      -String cb = request.getParameter("callback");
      -if (cb != null) {
      -    scriptTag = true;
      -    response.setContentType("text/javascript");
      -} else {
      -    response.setContentType("application/x-json");
      -}
      -Writer out = response.getWriter();
      -if (scriptTag) {
      -    out.write(cb + "(");
      -}
      -out.print(dataBlock.toJsonString());
      -if (scriptTag) {
      -    out.write(");");
      -}
      -
      - *

      Below is a PHP example to do the same thing:

      
      -$callback = $_REQUEST['callback'];
      -
      -// Create the output object.
      -$output = array('a' => 'Apple', 'b' => 'Banana');
      -
      -//start output
      -if ($callback) {
      -    header('Content-Type: text/javascript');
      -    echo $callback . '(' . json_encode($output) . ');';
      -} else {
      -    header('Content-Type: application/x-json');
      -    echo json_encode($output);
      -}
      -
      - *

      Below is the ASP.Net code to do the same thing:

      
      -String jsonString = "{success: true}";
      -String cb = Request.Params.Get("callback");
      -String responseString = "";
      -if (!String.IsNullOrEmpty(cb)) {
      -    responseString = cb + "(" + jsonString + ")";
      -} else {
      -    responseString = jsonString;
      -}
      -Response.Write(responseString);
      -
      - * - * @constructor - * @param {Object} config A configuration object. - */ -Ext.data.ScriptTagProxy = function(config){ - Ext.apply(this, config); - - Ext.data.ScriptTagProxy.superclass.constructor.call(this, config); - - this.head = document.getElementsByTagName("head")[0]; - - /** - * @event loadexception - * Deprecated in favor of 'exception' event. - * Fires if an exception occurs in the Proxy during data loading. This event can be fired for one of two reasons: - *
      • The load call timed out. This means the load callback did not execute within the time limit - * specified by {@link #timeout}. In this case, this event will be raised and the - * fourth parameter (read error) will be null.
      • - *
      • The load succeeded but the reader could not read the response. This means the server returned - * data, but the configured Reader threw an error while reading the data. In this case, this event will be - * raised and the caught error will be passed along as the fourth parameter of this event.
      - * Note that this event is also relayed through {@link Ext.data.Store}, so you can listen for it directly - * on any Store instance. - * @param {Object} this - * @param {Object} options The loading options that were specified (see {@link #load} for details). If the load - * call timed out, this parameter will be null. - * @param {Object} arg The callback's arg object passed to the {@link #load} function - * @param {Error} e The JavaScript Error object caught if the configured Reader could not read the data. - * If the remote request returns success: false, this parameter will be null. - */ -}; - -Ext.data.ScriptTagProxy.TRANS_ID = 1000; - -Ext.extend(Ext.data.ScriptTagProxy, Ext.data.DataProxy, { - /** - * @cfg {String} url The URL from which to request the data object. - */ - /** - * @cfg {Number} timeout (optional) The number of milliseconds to wait for a response. Defaults to 30 seconds. - */ - timeout : 30000, - /** - * @cfg {String} callbackParam (Optional) The name of the parameter to pass to the server which tells - * the server the name of the callback function set up by the load call to process the returned data object. - * Defaults to "callback".

      The server-side processing must read this parameter value, and generate - * javascript output which calls this named function passing the data object as its only parameter. - */ - callbackParam : "callback", - /** - * @cfg {Boolean} nocache (optional) Defaults to true. Disable caching by adding a unique parameter - * name to the request. - */ - nocache : true, - - /** - * HttpProxy implementation of DataProxy#doRequest - * @param {String} action - * @param {Ext.data.Record/Ext.data.Record[]} rs If action is read, rs will be null - * @param {Object} params An object containing properties which are to be used as HTTP parameters - * for the request to the remote server. - * @param {Ext.data.DataReader} reader The Reader object which converts the data - * object into a block of Ext.data.Records. - * @param {Function} callback The function into which to pass the block of Ext.data.Records. - * The function must be passed

        - *
      • The Record block object
      • - *
      • The "arg" argument from the load function
      • - *
      • A boolean success indicator
      • - *
      - * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the browser window. - * @param {Object} arg An optional argument which is passed to the callback as its second parameter. - */ - doRequest : function(action, rs, params, reader, callback, scope, arg) { - var p = Ext.urlEncode(Ext.apply(params, this.extraParams)); - - var url = this.buildUrl(action, rs); - if (!url) { - throw new Ext.data.Api.Error('invalid-url', url); - } - url = Ext.urlAppend(url, p); - - if(this.nocache){ - url = Ext.urlAppend(url, '_dc=' + (new Date().getTime())); - } - var transId = ++Ext.data.ScriptTagProxy.TRANS_ID; - var trans = { - id : transId, - action: action, - cb : "stcCallback"+transId, - scriptId : "stcScript"+transId, - params : params, - arg : arg, - url : url, - callback : callback, - scope : scope, - reader : reader - }; - window[trans.cb] = this.createCallback(action, rs, trans); - url += String.format("&{0}={1}", this.callbackParam, trans.cb); - if(this.autoAbort !== false){ - this.abort(); - } - - trans.timeoutId = this.handleFailure.defer(this.timeout, this, [trans]); - - var script = document.createElement("script"); - script.setAttribute("src", url); - script.setAttribute("type", "text/javascript"); - script.setAttribute("id", trans.scriptId); - this.head.appendChild(script); - - this.trans = trans; - }, - - // @private createCallback - createCallback : function(action, rs, trans) { - var self = this; - return function(res) { - self.trans = false; - self.destroyTrans(trans, true); - if (action === Ext.data.Api.actions.read) { - self.onRead.call(self, action, trans, res); - } else { - self.onWrite.call(self, action, trans, res, rs); - } - }; - }, - /** - * Callback for read actions - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} trans The request transaction object - * @param {Object} res The server response - * @protected - */ - onRead : function(action, trans, res) { - var result; - try { - result = trans.reader.readRecords(res); - }catch(e){ - // @deprecated: fire loadexception - this.fireEvent("loadexception", this, trans, res, e); - - this.fireEvent('exception', this, 'response', action, trans, res, e); - trans.callback.call(trans.scope||window, null, trans.arg, false); - return; - } - if (result.success === false) { - // @deprecated: fire old loadexception for backwards-compat. - this.fireEvent('loadexception', this, trans, res); - - this.fireEvent('exception', this, 'remote', action, trans, res, null); - } else { - this.fireEvent("load", this, res, trans.arg); - } - trans.callback.call(trans.scope||window, result, trans.arg, result.success); - }, - /** - * Callback for write actions - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} trans The request transaction object - * @param {Object} res The server response - * @protected - */ - onWrite : function(action, trans, response, rs) { - var reader = trans.reader; - try { - // though we already have a response object here in STP, run through readResponse to catch any meta-data exceptions. - var res = reader.readResponse(action, response); - } catch (e) { - this.fireEvent('exception', this, 'response', action, trans, res, e); - trans.callback.call(trans.scope||window, null, res, false); - return; - } - if(!res.success === true){ - this.fireEvent('exception', this, 'remote', action, trans, res, rs); - trans.callback.call(trans.scope||window, null, res, false); - return; - } - this.fireEvent("write", this, action, res.data, res, rs, trans.arg ); - trans.callback.call(trans.scope||window, res.data, res, true); - }, - - // private - isLoading : function(){ - return this.trans ? true : false; - }, - - /** - * Abort the current server request. - */ - abort : function(){ - if(this.isLoading()){ - this.destroyTrans(this.trans); - } - }, - - // private - destroyTrans : function(trans, isLoaded){ - this.head.removeChild(document.getElementById(trans.scriptId)); - clearTimeout(trans.timeoutId); - if(isLoaded){ - window[trans.cb] = undefined; - try{ - delete window[trans.cb]; - }catch(e){} - }else{ - // if hasn't been loaded, wait for load to remove it to prevent script error - window[trans.cb] = function(){ - window[trans.cb] = undefined; - try{ - delete window[trans.cb]; - }catch(e){} - }; - } - }, - - // private - handleFailure : function(trans){ - this.trans = false; - this.destroyTrans(trans, false); - if (trans.action === Ext.data.Api.actions.read) { - // @deprecated firing loadexception - this.fireEvent("loadexception", this, null, trans.arg); - } - - this.fireEvent('exception', this, 'response', trans.action, { - response: null, - options: trans.arg - }); - trans.callback.call(trans.scope||window, null, trans.arg, false); - }, - - // inherit docs - destroy: function(){ - this.abort(); - Ext.data.ScriptTagProxy.superclass.destroy.call(this); - } -});/** - * @class Ext.data.HttpProxy - * @extends Ext.data.DataProxy - *

      An implementation of {@link Ext.data.DataProxy} that processes data requests within the same - * domain of the originating page.

      - *

      Note: this class cannot be used to retrieve data from a domain other - * than the domain from which the running page was served. For cross-domain requests, use a - * {@link Ext.data.ScriptTagProxy ScriptTagProxy}.

      - *

      Be aware that to enable the browser to parse an XML document, the server must set - * the Content-Type header in the HTTP response to "text/xml".

      - * @constructor - * @param {Object} conn - * An {@link Ext.data.Connection} object, or options parameter to {@link Ext.Ajax#request}. - *

      Note that if this HttpProxy is being used by a {@link Ext.data.Store Store}, then the - * Store's call to {@link #load} will override any specified callback and params - * options. In this case, use the Store's {@link Ext.data.Store#events events} to modify parameters, - * or react to loading events. The Store's {@link Ext.data.Store#baseParams baseParams} may also be - * used to pass parameters known at instantiation time.

      - *

      If an options parameter is passed, the singleton {@link Ext.Ajax} object will be used to make - * the request.

      - */ -Ext.data.HttpProxy = function(conn){ - Ext.data.HttpProxy.superclass.constructor.call(this, conn); - - /** - * The Connection object (Or options parameter to {@link Ext.Ajax#request}) which this HttpProxy - * uses to make requests to the server. Properties of this object may be changed dynamically to - * change the way data is requested. - * @property - */ - this.conn = conn; - - // nullify the connection url. The url param has been copied to 'this' above. The connection - // url will be set during each execution of doRequest when buildUrl is called. This makes it easier for users to override the - // connection url during beforeaction events (ie: beforeload, beforewrite, etc). - // Url is always re-defined during doRequest. - this.conn.url = null; - - this.useAjax = !conn || !conn.events; - - // A hash containing active requests, keyed on action [Ext.data.Api.actions.create|read|update|destroy] - var actions = Ext.data.Api.actions; - this.activeRequest = {}; - for (var verb in actions) { - this.activeRequest[actions[verb]] = undefined; - } -}; - -Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, { - /** - * Return the {@link Ext.data.Connection} object being used by this Proxy. - * @return {Connection} The Connection object. This object may be used to subscribe to events on - * a finer-grained basis than the DataProxy events. - */ - getConnection : function() { - return this.useAjax ? Ext.Ajax : this.conn; - }, - - /** - * Used for overriding the url used for a single request. Designed to be called during a beforeaction event. Calling setUrl - * will override any urls set via the api configuration parameter. Set the optional parameter makePermanent to set the url for - * all subsequent requests. If not set to makePermanent, the next request will use the same url or api configuration defined - * in the initial proxy configuration. - * @param {String} url - * @param {Boolean} makePermanent (Optional) [false] - * - * (e.g.: beforeload, beforesave, etc). - */ - setUrl : function(url, makePermanent) { - this.conn.url = url; - if (makePermanent === true) { - this.url = url; - this.api = null; - Ext.data.Api.prepare(this); - } - }, - - /** - * HttpProxy implementation of DataProxy#doRequest - * @param {String} action The crud action type (create, read, update, destroy) - * @param {Ext.data.Record/Ext.data.Record[]} rs If action is load, rs will be null - * @param {Object} params An object containing properties which are to be used as HTTP parameters - * for the request to the remote server. - * @param {Ext.data.DataReader} reader The Reader object which converts the data - * object into a block of Ext.data.Records. - * @param {Function} callback - *

      A function to be called after the request. - * The callback is passed the following arguments:

        - *
      • r : Ext.data.Record[] The block of Ext.data.Records.
      • - *
      • options: Options object from the action request
      • - *
      • success: Boolean success indicator

      - * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the browser window. - * @param {Object} arg An optional argument which is passed to the callback as its second parameter. - * @protected - */ - doRequest : function(action, rs, params, reader, cb, scope, arg) { - var o = { - method: (this.api[action]) ? this.api[action]['method'] : undefined, - request: { - callback : cb, - scope : scope, - arg : arg - }, - reader: reader, - callback : this.createCallback(action, rs), - scope: this - }; - - // If possible, transmit data using jsonData || xmlData on Ext.Ajax.request (An installed DataWriter would have written it there.). - // Use std HTTP params otherwise. - if (params.jsonData) { - o.jsonData = params.jsonData; - } else if (params.xmlData) { - o.xmlData = params.xmlData; - } else { - o.params = params || {}; - } - // Set the connection url. If this.conn.url is not null here, - // the user must have overridden the url during a beforewrite/beforeload event-handler. - // this.conn.url is nullified after each request. - this.conn.url = this.buildUrl(action, rs); - - if(this.useAjax){ - - Ext.applyIf(o, this.conn); - - // If a currently running request is found for this action, abort it. - if (this.activeRequest[action]) { - //// - // Disabled aborting activeRequest while implementing REST. activeRequest[action] will have to become an array - // TODO ideas anyone? - // - //Ext.Ajax.abort(this.activeRequest[action]); - } - this.activeRequest[action] = Ext.Ajax.request(o); - }else{ - this.conn.request(o); - } - // request is sent, nullify the connection url in preparation for the next request - this.conn.url = null; - }, - - /** - * Returns a callback function for a request. Note a special case is made for the - * read action vs all the others. - * @param {String} action [create|update|delete|load] - * @param {Ext.data.Record[]} rs The Store-recordset being acted upon - * @private - */ - createCallback : function(action, rs) { - return function(o, success, response) { - this.activeRequest[action] = undefined; - if (!success) { - if (action === Ext.data.Api.actions.read) { - // @deprecated: fire loadexception for backwards compat. - // TODO remove - this.fireEvent('loadexception', this, o, response); - } - this.fireEvent('exception', this, 'response', action, o, response); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (action === Ext.data.Api.actions.read) { - this.onRead(action, o, response); - } else { - this.onWrite(action, o, response, rs); - } - }; - }, - - /** - * Callback for read action - * @param {String} action Action name as per {@link Ext.data.Api.actions#read}. - * @param {Object} o The request transaction object - * @param {Object} res The server response - * @fires loadexception (deprecated) - * @fires exception - * @fires load - * @protected - */ - onRead : function(action, o, response) { - var result; - try { - result = o.reader.read(response); - }catch(e){ - // @deprecated: fire old loadexception for backwards-compat. - // TODO remove - this.fireEvent('loadexception', this, o, response, e); - - this.fireEvent('exception', this, 'response', action, o, response, e); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (result.success === false) { - // @deprecated: fire old loadexception for backwards-compat. - // TODO remove - this.fireEvent('loadexception', this, o, response); - - // Get DataReader read-back a response-object to pass along to exception event - var res = o.reader.readResponse(action, response); - this.fireEvent('exception', this, 'remote', action, o, res, null); - } - else { - this.fireEvent('load', this, o, o.request.arg); - } - // TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance - // the calls to request.callback(...) in each will have to be made identical. - // NOTE reader.readResponse does not currently return Ext.data.Response - o.request.callback.call(o.request.scope, result, o.request.arg, result.success); - }, - /** - * Callback for write actions - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} trans The request transaction object - * @param {Object} res The server response - * @fires exception - * @fires write - * @protected - */ - onWrite : function(action, o, response, rs) { - var reader = o.reader; - var res; - try { - res = reader.readResponse(action, response); - } catch (e) { - this.fireEvent('exception', this, 'response', action, o, response, e); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (res.success === true) { - this.fireEvent('write', this, action, res.data, res, rs, o.request.arg); - } else { - this.fireEvent('exception', this, 'remote', action, o, res, rs); - } - // TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance - // the calls to request.callback(...) in each will have to be made similar. - // NOTE reader.readResponse does not currently return Ext.data.Response - o.request.callback.call(o.request.scope, res.data, res, res.success); - }, - - // inherit docs - destroy: function(){ - if(!this.useAjax){ - this.conn.abort(); - }else if(this.activeRequest){ - var actions = Ext.data.Api.actions; - for (var verb in actions) { - if(this.activeRequest[actions[verb]]){ - Ext.Ajax.abort(this.activeRequest[actions[verb]]); - } - } - } - Ext.data.HttpProxy.superclass.destroy.call(this); - } -});/** - * @class Ext.data.MemoryProxy - * @extends Ext.data.DataProxy - * An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor - * to the Reader when its load method is called. - * @constructor - * @param {Object} data The data object which the Reader uses to construct a block of Ext.data.Records. - */ -Ext.data.MemoryProxy = function(data){ - // Must define a dummy api with "read" action to satisfy DataProxy#doRequest and Ext.data.Api#prepare *before* calling super - var api = {}; - api[Ext.data.Api.actions.read] = true; - Ext.data.MemoryProxy.superclass.constructor.call(this, { - api: api - }); - this.data = data; -}; - -Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, { - /** - * @event loadexception - * Fires if an exception occurs in the Proxy during data loading. Note that this event is also relayed - * through {@link Ext.data.Store}, so you can listen for it directly on any Store instance. - * @param {Object} this - * @param {Object} arg The callback's arg object passed to the {@link #load} function - * @param {Object} null This parameter does not apply and will always be null for MemoryProxy - * @param {Error} e The JavaScript Error object caught if the configured Reader could not read the data - */ - - /** - * MemoryProxy implementation of DataProxy#doRequest - * @param {String} action - * @param {Ext.data.Record/Ext.data.Record[]} rs If action is load, rs will be null - * @param {Object} params An object containing properties which are to be used as HTTP parameters - * for the request to the remote server. - * @param {Ext.data.DataReader} reader The Reader object which converts the data - * object into a block of Ext.data.Records. - * @param {Function} callback The function into which to pass the block of Ext.data.Records. - * The function must be passed
        - *
      • The Record block object
      • - *
      • The "arg" argument from the load function
      • - *
      • A boolean success indicator
      • - *
      - * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the browser window. - * @param {Object} arg An optional argument which is passed to the callback as its second parameter. - */ - doRequest : function(action, rs, params, reader, callback, scope, arg) { - // No implementation for CRUD in MemoryProxy. Assumes all actions are 'load' - params = params || {}; - var result; - try { - result = reader.readRecords(this.data); - }catch(e){ - // @deprecated loadexception - this.fireEvent("loadexception", this, null, arg, e); - - this.fireEvent('exception', this, 'response', action, arg, null, e); - callback.call(scope, null, arg, false); - return; - } - callback.call(scope, result, arg, true); - } -});/** - * @class Ext.data.Types - *

      This is s static class containing the system-supplied data types which may be given to a {@link Ext.data.Field Field}.

      - *

      The properties in this class are used as type indicators in the {@link Ext.data.Field Field} class, so to - * test whether a Field is of a certain type, compare the {@link Ext.data.Field#type type} property against properties - * of this class.

      - *

      Developers may add their own application-specific data types to this class. Definition names must be UPPERCASE. - * each type definition must contain three properties:

      - *
        - *
      • convert : Function
        A function to convert raw data values from a data block into the data - * to be stored in the Field. The function is passed the collowing parameters: - *
          - *
        • v : Mixed
          The data value as read by the Reader, if undefined will use - * the configured {@link Ext.data.Field#defaultValue defaultValue}.
        • - *
        • rec : Mixed
          The data object containing the row as read by the Reader. - * Depending on the Reader type, this could be an Array ({@link Ext.data.ArrayReader ArrayReader}), an object - * ({@link Ext.data.JsonReader JsonReader}), or an XML element ({@link Ext.data.XMLReader XMLReader}).
        • - *
      • - *
      • sortType : Function
        A function to convert the stored data into comparable form, as defined by {@link Ext.data.SortTypes}.
      • - *
      • type : String
        A textual data type name.
      • - *
      - *

      For example, to create a VELatLong field (See the Microsoft Bing Mapping API) containing the latitude/longitude value of a datapoint on a map from a JsonReader data block - * which contained the properties lat and long, you would define a new data type like this:

      - *
      
      -// Add a new Field data type which stores a VELatLong object in the Record.
      -Ext.data.Types.VELATLONG = {
      -    convert: function(v, data) {
      -        return new VELatLong(data.lat, data.long);
      -    },
      -    sortType: function(v) {
      -        return v.Latitude;  // When sorting, order by latitude
      -    },
      -    type: 'VELatLong'
      -};
      -
      - *

      Then, when declaring a Record, use

      
      -var types = Ext.data.Types; // allow shorthand type access
      -UnitRecord = Ext.data.Record.create([
      -    { name: 'unitName', mapping: 'UnitName' },
      -    { name: 'curSpeed', mapping: 'CurSpeed', type: types.INT },
      -    { name: 'latitude', mapping: 'lat', type: types.FLOAT },
      -    { name: 'latitude', mapping: 'lat', type: types.FLOAT },
      -    { name: 'position', type: types.VELATLONG }
      -]);
      -
      - * @singleton - */ -Ext.data.Types = new function(){ - var st = Ext.data.SortTypes; - Ext.apply(this, { - /** - * @type Regexp - * @property stripRe - * A regular expression for stripping non-numeric characters from a numeric value. Defaults to /[\$,%]/g. - * This should be overridden for localization. - */ - stripRe: /[\$,%]/g, - - /** - * @type Object. - * @property AUTO - * This data type means that no conversion is applied to the raw data before it is placed into a Record. - */ - AUTO: { - convert: function(v){ return v; }, - sortType: st.none, - type: 'auto' - }, - - /** - * @type Object. - * @property STRING - * This data type means that the raw data is converted into a String before it is placed into a Record. - */ - STRING: { - convert: function(v){ return (v === undefined || v === null) ? '' : String(v); }, - sortType: st.asUCString, - type: 'string' - }, - - /** - * @type Object. - * @property INT - * This data type means that the raw data is converted into an integer before it is placed into a Record. - *

      The synonym INTEGER is equivalent.

      - */ - INT: { - convert: function(v){ - return v !== undefined && v !== null && v !== '' ? - parseInt(String(v).replace(Ext.data.Types.stripRe, ''), 10) : (this.useNull ? null : 0); - }, - sortType: st.none, - type: 'int' - }, - - /** - * @type Object. - * @property FLOAT - * This data type means that the raw data is converted into a number before it is placed into a Record. - *

      The synonym NUMBER is equivalent.

      - */ - FLOAT: { - convert: function(v){ - return v !== undefined && v !== null && v !== '' ? - parseFloat(String(v).replace(Ext.data.Types.stripRe, ''), 10) : (this.useNull ? null : 0); - }, - sortType: st.none, - type: 'float' - }, - - /** - * @type Object. - * @property BOOL - *

      This data type means that the raw data is converted into a boolean before it is placed into - * a Record. The string "true" and the number 1 are converted to boolean true.

      - *

      The synonym BOOLEAN is equivalent.

      - */ - BOOL: { - convert: function(v){ return v === true || v === 'true' || v == 1; }, - sortType: st.none, - type: 'bool' - }, - - /** - * @type Object. - * @property DATE - * This data type means that the raw data is converted into a Date before it is placed into a Record. - * The date format is specified in the constructor of the {@link Ext.data.Field} to which this type is - * being applied. - */ - DATE: { - convert: function(v){ - var df = this.dateFormat; - if(!v){ - return null; - } - if(Ext.isDate(v)){ - return v; - } - if(df){ - if(df == 'timestamp'){ - return new Date(v*1000); - } - if(df == 'time'){ - return new Date(parseInt(v, 10)); - } - return Date.parseDate(v, df); - } - var parsed = Date.parse(v); - return parsed ? new Date(parsed) : null; - }, - sortType: st.asDate, - type: 'date' - } - }); - - Ext.apply(this, { - /** - * @type Object. - * @property BOOLEAN - *

      This data type means that the raw data is converted into a boolean before it is placed into - * a Record. The string "true" and the number 1 are converted to boolean true.

      - *

      The synonym BOOL is equivalent.

      - */ - BOOLEAN: this.BOOL, - /** - * @type Object. - * @property INTEGER - * This data type means that the raw data is converted into an integer before it is placed into a Record. - *

      The synonym INT is equivalent.

      - */ - INTEGER: this.INT, - /** - * @type Object. - * @property NUMBER - * This data type means that the raw data is converted into a number before it is placed into a Record. - *

      The synonym FLOAT is equivalent.

      - */ - NUMBER: this.FLOAT - }); -};/** - * @class Ext.data.JsonWriter - * @extends Ext.data.DataWriter - * DataWriter extension for writing an array or single {@link Ext.data.Record} object(s) in preparation for executing a remote CRUD action. - */ -Ext.data.JsonWriter = Ext.extend(Ext.data.DataWriter, { - /** - * @cfg {Boolean} encode

      true to {@link Ext.util.JSON#encode JSON encode} the - * {@link Ext.data.DataWriter#toHash hashed data} into a standard HTTP parameter named after this - * Reader's meta.root property which, by default is imported from the associated Reader. Defaults to true.

      - *

      If set to false, the hashed data is {@link Ext.util.JSON#encode JSON encoded}, along with - * the associated {@link Ext.data.Store}'s {@link Ext.data.Store#baseParams baseParams}, into the POST body.

      - *

      When using {@link Ext.data.DirectProxy}, set this to false since Ext.Direct.JsonProvider will perform - * its own json-encoding. In addition, if you're using {@link Ext.data.HttpProxy}, setting to false - * will cause HttpProxy to transmit data using the jsonData configuration-params of {@link Ext.Ajax#request} - * instead of params.

      - *

      When using a {@link Ext.data.Store#restful} Store, some serverside frameworks are - * tuned to expect data through the jsonData mechanism. In those cases, one will want to set encode: false, as in - * let the lower-level connection object (eg: Ext.Ajax) do the encoding.

      - */ - encode : true, - /** - * @cfg {Boolean} encodeDelete False to send only the id to the server on delete, true to encode it in an object - * literal, eg:
      
      -{id: 1}
      - * 
      Defaults to false - */ - encodeDelete: false, - - constructor : function(config){ - Ext.data.JsonWriter.superclass.constructor.call(this, config); - }, - - /** - *

      This method should not need to be called by application code, however it may be useful on occasion to - * override it, or augment it with an {@link Function#createInterceptor interceptor} or {@link Function#createSequence sequence}.

      - *

      The provided implementation encodes the serialized data representing the Store's modified Records into the Ajax request's - * params according to the {@link #encode} setting.

      - * @param {Object} Ajax request params object to write into. - * @param {Object} baseParams as defined by {@link Ext.data.Store#baseParams}. The baseParms must be encoded by the extending class, eg: {@link Ext.data.JsonWriter}, {@link Ext.data.XmlWriter}. - * @param {Object/Object[]} data Data object representing the serialized modified records from the Store. May be either a single object, - * or an Array of objects - user implementations must handle both cases. - */ - render : function(params, baseParams, data) { - if (this.encode === true) { - // Encode here now. - Ext.apply(params, baseParams); - params[this.meta.root] = Ext.encode(data); - } else { - // defer encoding for some other layer, probably in {@link Ext.Ajax#request}. Place everything into "jsonData" key. - var jdata = Ext.apply({}, baseParams); - jdata[this.meta.root] = data; - params.jsonData = jdata; - } - }, - /** - * Implements abstract Ext.data.DataWriter#createRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Object} - */ - createRecord : function(rec) { - return this.toHash(rec); - }, - /** - * Implements abstract Ext.data.DataWriter#updateRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Object} - */ - updateRecord : function(rec) { - return this.toHash(rec); - - }, - /** - * Implements abstract Ext.data.DataWriter#destroyRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Object} - */ - destroyRecord : function(rec){ - if(this.encodeDelete){ - var data = {}; - data[this.meta.idProperty] = rec.id; - return data; - }else{ - return rec.id; - } - } -});/** - * @class Ext.data.JsonReader - * @extends Ext.data.DataReader - *

      Data reader class to create an Array of {@link Ext.data.Record} objects - * from a JSON packet based on mappings in a provided {@link Ext.data.Record} - * constructor.

      - *

      Example code:

      - *
      
      -var myReader = new Ext.data.JsonReader({
      -    // metadata configuration options:
      -    {@link #idProperty}: 'id'
      -    {@link #root}: 'rows',
      -    {@link #totalProperty}: 'results',
      -    {@link Ext.data.DataReader#messageProperty}: "msg"  // The element within the response that provides a user-feedback message (optional)
      -
      -    // the fields config option will internally create an {@link Ext.data.Record}
      -    // constructor that provides mapping for reading the record data objects
      -    {@link Ext.data.DataReader#fields fields}: [
      -        // map Record's 'firstname' field to data object's key of same name
      -        {name: 'name', mapping: 'firstname'},
      -        // map Record's 'job' field to data object's 'occupation' key
      -        {name: 'job', mapping: 'occupation'}
      -    ]
      -});
      -
      - *

      This would consume a JSON data object of the form:

      
      -{
      -    results: 2000, // Reader's configured {@link #totalProperty}
      -    rows: [        // Reader's configured {@link #root}
      -        // record data objects:
      -        { {@link #idProperty id}: 1, firstname: 'Bill', occupation: 'Gardener' },
      -        { {@link #idProperty id}: 2, firstname: 'Ben' , occupation: 'Horticulturalist' },
      -        ...
      -    ]
      -}
      -
      - *

      Automatic configuration using metaData

      - *

      It is possible to change a JsonReader's metadata at any time by including - * a metaData property in the JSON data object. If the JSON data - * object has a metaData property, a {@link Ext.data.Store Store} - * object using this Reader will reconfigure itself to use the newly provided - * field definition and fire its {@link Ext.data.Store#metachange metachange} - * event. The metachange event handler may interrogate the metaData - * property to perform any configuration required.

      - *

      Note that reconfiguring a Store potentially invalidates objects which may - * refer to Fields or Records which no longer exist.

      - *

      To use this facility you would create the JsonReader like this:

      
      -var myReader = new Ext.data.JsonReader();
      -
      - *

      The first data packet from the server would configure the reader by - * containing a metaData property and the data. For - * example, the JSON data object might take the form:

      
      -{
      -    metaData: {
      -        "{@link #idProperty}": "id",
      -        "{@link #root}": "rows",
      -        "{@link #totalProperty}": "results"
      -        "{@link #successProperty}": "success",
      -        "{@link Ext.data.DataReader#fields fields}": [
      -            {"name": "name"},
      -            {"name": "job", "mapping": "occupation"}
      -        ],
      -        // used by store to set its sortInfo
      -        "sortInfo":{
      -           "field": "name",
      -           "direction": "ASC"
      -        },
      -        // {@link Ext.PagingToolbar paging data} (if applicable)
      -        "start": 0,
      -        "limit": 2,
      -        // custom property
      -        "foo": "bar"
      -    },
      -    // Reader's configured {@link #successProperty}
      -    "success": true,
      -    // Reader's configured {@link #totalProperty}
      -    "results": 2000,
      -    // Reader's configured {@link #root}
      -    // (this data simulates 2 results {@link Ext.PagingToolbar per page})
      -    "rows": [ // *Note: this must be an Array
      -        { "id": 1, "name": "Bill", "occupation": "Gardener" },
      -        { "id": 2, "name":  "Ben", "occupation": "Horticulturalist" }
      -    ]
      -}
      - * 
      - *

      The metaData property in the JSON data object should contain:

      - *
        - *
      • any of the configuration options for this class
      • - *
      • a {@link Ext.data.Record#fields fields} property which - * the JsonReader will use as an argument to the - * {@link Ext.data.Record#create data Record create method} in order to - * configure the layout of the Records it will produce.
      • - *
      • a {@link Ext.data.Store#sortInfo sortInfo} property - * which the JsonReader will use to set the {@link Ext.data.Store}'s - * {@link Ext.data.Store#sortInfo sortInfo} property
      • - *
      • any custom properties needed
      • - *
      - * - * @constructor - * Create a new JsonReader - * @param {Object} meta Metadata configuration options. - * @param {Array/Object} recordType - *

      Either an Array of {@link Ext.data.Field Field} definition objects (which - * will be passed to {@link Ext.data.Record#create}, or a {@link Ext.data.Record Record} - * constructor created from {@link Ext.data.Record#create}.

      - */ -Ext.data.JsonReader = function(meta, recordType){ - meta = meta || {}; - /** - * @cfg {String} idProperty [id] Name of the property within a row object - * that contains a record identifier value. Defaults to id - */ - /** - * @cfg {String} successProperty [success] Name of the property from which to - * retrieve the success attribute. Defaults to success. See - * {@link Ext.data.DataProxy}.{@link Ext.data.DataProxy#exception exception} - * for additional information. - */ - /** - * @cfg {String} totalProperty [total] Name of the property from which to - * retrieve the total number of records in the dataset. This is only needed - * if the whole dataset is not passed in one go, but is being paged from - * the remote server. Defaults to total. - */ - /** - * @cfg {String} root [undefined] Required. The name of the property - * which contains the Array of row objects. Defaults to undefined. - * An exception will be thrown if the root property is undefined. The data - * packet value for this property should be an empty array to clear the data - * or show no data. - */ - Ext.applyIf(meta, { - idProperty: 'id', - successProperty: 'success', - totalProperty: 'total' - }); - - Ext.data.JsonReader.superclass.constructor.call(this, meta, recordType || meta.fields); -}; -Ext.extend(Ext.data.JsonReader, Ext.data.DataReader, { - /** - * This JsonReader's metadata as passed to the constructor, or as passed in - * the last data packet's metaData property. - * @type Mixed - * @property meta - */ - /** - * This method is only used by a DataProxy which has retrieved data from a remote server. - * @param {Object} response The XHR object which contains the JSON data in its responseText. - * @return {Object} data A data block which is used by an Ext.data.Store object as - * a cache of Ext.data.Records. - */ - read : function(response){ - var json = response.responseText; - var o = Ext.decode(json); - if(!o) { - throw {message: 'JsonReader.read: Json object not found'}; - } - return this.readRecords(o); - }, - - /* - * TODO: refactor code between JsonReader#readRecords, #readResponse into 1 method. - * there's ugly duplication going on due to maintaining backwards compat. with 2.0. It's time to do this. - */ - /** - * Decode a JSON response from server. - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} response The XHR object returned through an Ajax server request. - * @return {Response} A {@link Ext.data.Response Response} object containing the data response, and also status information. - */ - readResponse : function(action, response) { - var o = (response.responseText !== undefined) ? Ext.decode(response.responseText) : response; - if(!o) { - throw new Ext.data.JsonReader.Error('response'); - } - - var root = this.getRoot(o), - success = this.getSuccess(o); - if (success && action === Ext.data.Api.actions.create) { - var def = Ext.isDefined(root); - if (def && Ext.isEmpty(root)) { - throw new Ext.data.JsonReader.Error('root-empty', this.meta.root); - } - else if (!def) { - throw new Ext.data.JsonReader.Error('root-undefined-response', this.meta.root); - } - } - - // instantiate response object - var res = new Ext.data.Response({ - action: action, - success: success, - data: (root) ? this.extractData(root, false) : [], - message: this.getMessage(o), - raw: o - }); - - // blow up if no successProperty - if (Ext.isEmpty(res.success)) { - throw new Ext.data.JsonReader.Error('successProperty-response', this.meta.successProperty); - } - return res; - }, - - /** - * Create a data block containing Ext.data.Records from a JSON object. - * @param {Object} o An object which contains an Array of row objects in the property specified - * in the config as 'root, and optionally a property, specified in the config as 'totalProperty' - * which contains the total size of the dataset. - * @return {Object} data A data block which is used by an Ext.data.Store object as - * a cache of Ext.data.Records. - */ - readRecords : function(o){ - /** - * After any data loads, the raw JSON data is available for further custom processing. If no data is - * loaded or there is a load exception this property will be undefined. - * @type Object - */ - this.jsonData = o; - if(o.metaData){ - this.onMetaChange(o.metaData); - } - var s = this.meta, Record = this.recordType, - f = Record.prototype.fields, fi = f.items, fl = f.length, v; - - var root = this.getRoot(o), c = root.length, totalRecords = c, success = true; - if(s.totalProperty){ - v = parseInt(this.getTotal(o), 10); - if(!isNaN(v)){ - totalRecords = v; - } - } - if(s.successProperty){ - v = this.getSuccess(o); - if(v === false || v === 'false'){ - success = false; - } - } - - // TODO return Ext.data.Response instance instead. @see #readResponse - return { - success : success, - records : this.extractData(root, true), // <-- true to return [Ext.data.Record] - totalRecords : totalRecords - }; - }, - - // private - buildExtractors : function() { - if(this.ef){ - return; - } - var s = this.meta, Record = this.recordType, - f = Record.prototype.fields, fi = f.items, fl = f.length; - - if(s.totalProperty) { - this.getTotal = this.createAccessor(s.totalProperty); - } - if(s.successProperty) { - this.getSuccess = this.createAccessor(s.successProperty); - } - if (s.messageProperty) { - this.getMessage = this.createAccessor(s.messageProperty); - } - this.getRoot = s.root ? this.createAccessor(s.root) : function(p){return p;}; - if (s.id || s.idProperty) { - var g = this.createAccessor(s.id || s.idProperty); - this.getId = function(rec) { - var r = g(rec); - return (r === undefined || r === '') ? null : r; - }; - } else { - this.getId = function(){return null;}; - } - var ef = []; - for(var i = 0; i < fl; i++){ - f = fi[i]; - var map = (f.mapping !== undefined && f.mapping !== null) ? f.mapping : f.name; - ef.push(this.createAccessor(map)); - } - this.ef = ef; - }, - - /** - * @ignore - * TODO This isn't used anywhere?? Don't we want to use this where possible instead of complex #createAccessor? - */ - simpleAccess : function(obj, subsc) { - return obj[subsc]; - }, - - /** - * @ignore - */ - createAccessor : function(){ - var re = /[\[\.]/; - return function(expr) { - if(Ext.isEmpty(expr)){ - return Ext.emptyFn; - } - if(Ext.isFunction(expr)){ - return expr; - } - var i = String(expr).search(re); - if(i >= 0){ - return new Function('obj', 'return obj' + (i > 0 ? '.' : '') + expr); - } - return function(obj){ - return obj[expr]; - }; - - }; - }(), - - /** - * type-casts a single row of raw-data from server - * @param {Object} data - * @param {Array} items - * @param {Integer} len - * @private - */ - extractValues : function(data, items, len) { - var f, values = {}; - for(var j = 0; j < len; j++){ - f = items[j]; - var v = this.ef[j](data); - values[f.name] = f.convert((v !== undefined) ? v : f.defaultValue, data); - } - return values; - } -}); - -/** - * @class Ext.data.JsonReader.Error - * Error class for JsonReader - */ -Ext.data.JsonReader.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name : 'Ext.data.JsonReader' -}); -Ext.apply(Ext.data.JsonReader.Error.prototype, { - lang: { - 'response': 'An error occurred while json-decoding your server response', - 'successProperty-response': 'Could not locate your "successProperty" in your server response. Please review your JsonReader config to ensure the config-property "successProperty" matches the property in your server-response. See the JsonReader docs.', - 'root-undefined-config': 'Your JsonReader was configured without a "root" property. Please review your JsonReader config and make sure to define the root property. See the JsonReader docs.', - 'idProperty-undefined' : 'Your JsonReader was configured without an "idProperty" Please review your JsonReader configuration and ensure the "idProperty" is set (e.g.: "id"). See the JsonReader docs.', - 'root-empty': 'Data was expected to be returned by the server in the "root" property of the response. Please review your JsonReader configuration to ensure the "root" property matches that returned in the server-response. See JsonReader docs.' - } -}); -/** - * @class Ext.data.ArrayReader - * @extends Ext.data.JsonReader - *

      Data reader class to create an Array of {@link Ext.data.Record} objects from an Array. - * Each element of that Array represents a row of data fields. The - * fields are pulled into a Record object using as a subscript, the mapping property - * of the field definition if it exists, or the field's ordinal position in the definition.

      - *

      Example code:

      - *
      
      -var Employee = Ext.data.Record.create([
      -    {name: 'name', mapping: 1},         // "mapping" only needed if an "id" field is present which
      -    {name: 'occupation', mapping: 2}    // precludes using the ordinal position as the index.
      -]);
      -var myReader = new Ext.data.ArrayReader({
      -    {@link #idIndex}: 0
      -}, Employee);
      -
      - *

      This would consume an Array like this:

      - *
      
      -[ [1, 'Bill', 'Gardener'], [2, 'Ben', 'Horticulturalist'] ]
      - * 
      - * @constructor - * Create a new ArrayReader - * @param {Object} meta Metadata configuration options. - * @param {Array/Object} recordType - *

      Either an Array of {@link Ext.data.Field Field} definition objects (which - * will be passed to {@link Ext.data.Record#create}, or a {@link Ext.data.Record Record} - * constructor created from {@link Ext.data.Record#create}.

      - */ -Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, { - /** - * @cfg {String} successProperty - * @hide - */ - /** - * @cfg {Number} id (optional) The subscript within row Array that provides an ID for the Record. - * Deprecated. Use {@link #idIndex} instead. - */ - /** - * @cfg {Number} idIndex (optional) The subscript within row Array that provides an ID for the Record. - */ - /** - * Create a data block containing Ext.data.Records from an Array. - * @param {Object} o An Array of row objects which represents the dataset. - * @return {Object} data A data block which is used by an Ext.data.Store object as - * a cache of Ext.data.Records. - */ - readRecords : function(o){ - this.arrayData = o; - var s = this.meta, - sid = s ? Ext.num(s.idIndex, s.id) : null, - recordType = this.recordType, - fields = recordType.prototype.fields, - records = [], - success = true, - v; - - var root = this.getRoot(o); - - for(var i = 0, len = root.length; i < len; i++) { - var n = root[i], - values = {}, - id = ((sid || sid === 0) && n[sid] !== undefined && n[sid] !== "" ? n[sid] : null); - for(var j = 0, jlen = fields.length; j < jlen; j++) { - var f = fields.items[j], - k = f.mapping !== undefined && f.mapping !== null ? f.mapping : j; - v = n[k] !== undefined ? n[k] : f.defaultValue; - v = f.convert(v, n); - values[f.name] = v; - } - var record = new recordType(values, id); - record.json = n; - records[records.length] = record; - } - - var totalRecords = records.length; - - if(s.totalProperty) { - v = parseInt(this.getTotal(o), 10); - if(!isNaN(v)) { - totalRecords = v; - } - } - if(s.successProperty){ - v = this.getSuccess(o); - if(v === false || v === 'false'){ - success = false; - } - } - - return { - success : success, - records : records, - totalRecords : totalRecords - }; - } -});/** - * @class Ext.data.ArrayStore - * @extends Ext.data.Store - *

      Formerly known as "SimpleStore".

      - *

      Small helper class to make creating {@link Ext.data.Store}s from Array data easier. - * An ArrayStore will be automatically configured with a {@link Ext.data.ArrayReader}.

      - *

      A store configuration would be something like:

      
      -var store = new Ext.data.ArrayStore({
      -    // store configs
      -    autoDestroy: true,
      -    storeId: 'myStore',
      -    // reader configs
      -    idIndex: 0,  
      -    fields: [
      -       'company',
      -       {name: 'price', type: 'float'},
      -       {name: 'change', type: 'float'},
      -       {name: 'pctChange', type: 'float'},
      -       {name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'}
      -    ]
      -});
      - * 

      - *

      This store is configured to consume a returned object of the form:

      
      -var myData = [
      -    ['3m Co',71.72,0.02,0.03,'9/1 12:00am'],
      -    ['Alcoa Inc',29.01,0.42,1.47,'9/1 12:00am'],
      -    ['Boeing Co.',75.43,0.53,0.71,'9/1 12:00am'],
      -    ['Hewlett-Packard Co.',36.53,-0.03,-0.08,'9/1 12:00am'],
      -    ['Wal-Mart Stores, Inc.',45.45,0.73,1.63,'9/1 12:00am']
      -];
      - * 
      - * An object literal of this form could also be used as the {@link #data} config option.

      - *

      *Note: Although not listed here, this class accepts all of the configuration options of - * {@link Ext.data.ArrayReader ArrayReader}.

      - * @constructor - * @param {Object} config - * @xtype arraystore - */ -Ext.data.ArrayStore = Ext.extend(Ext.data.Store, { - /** - * @cfg {Ext.data.DataReader} reader @hide - */ - constructor: function(config){ - Ext.data.ArrayStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.ArrayReader(config) - })); - }, - - loadData : function(data, append){ - if(this.expandData === true){ - var r = []; - for(var i = 0, len = data.length; i < len; i++){ - r[r.length] = [data[i]]; - } - data = r; - } - Ext.data.ArrayStore.superclass.loadData.call(this, data, append); - } -}); -Ext.reg('arraystore', Ext.data.ArrayStore); - -// backwards compat -Ext.data.SimpleStore = Ext.data.ArrayStore; -Ext.reg('simplestore', Ext.data.SimpleStore);/** - * @class Ext.data.JsonStore - * @extends Ext.data.Store - *

      Small helper class to make creating {@link Ext.data.Store}s from JSON data easier. - * A JsonStore will be automatically configured with a {@link Ext.data.JsonReader}.

      - *

      A store configuration would be something like:

      
      -var store = new Ext.data.JsonStore({
      -    // store configs
      -    autoDestroy: true,
      -    url: 'get-images.php',
      -    storeId: 'myStore',
      -    // reader configs
      -    root: 'images',
      -    idProperty: 'name',
      -    fields: ['name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date'}]
      -});
      - * 

      - *

      This store is configured to consume a returned object of the form:

      
      -{
      -    images: [
      -        {name: 'Image one', url:'/GetImage.php?id=1', size:46.5, lastmod: new Date(2007, 10, 29)},
      -        {name: 'Image Two', url:'/GetImage.php?id=2', size:43.2, lastmod: new Date(2007, 10, 30)}
      -    ]
      -}
      - * 
      - * An object literal of this form could also be used as the {@link #data} config option.

      - *

      *Note: Although not listed here, this class accepts all of the configuration options of - * {@link Ext.data.JsonReader JsonReader}.

      - * @constructor - * @param {Object} config - * @xtype jsonstore - */ -Ext.data.JsonStore = Ext.extend(Ext.data.Store, { - /** - * @cfg {Ext.data.DataReader} reader @hide - */ - constructor: function(config){ - Ext.data.JsonStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.JsonReader(config) - })); - } -}); -Ext.reg('jsonstore', Ext.data.JsonStore);/** - * @class Ext.data.XmlWriter - * @extends Ext.data.DataWriter - * DataWriter extension for writing an array or single {@link Ext.data.Record} object(s) in preparation for executing a remote CRUD action via XML. - * XmlWriter uses an instance of {@link Ext.XTemplate} for maximum flexibility in defining your own custom XML schema if the default schema is not appropriate for your needs. - * See the {@link #tpl} configuration-property. - */ -Ext.data.XmlWriter = function(params) { - Ext.data.XmlWriter.superclass.constructor.apply(this, arguments); - // compile the XTemplate for rendering XML documents. - this.tpl = (typeof(this.tpl) === 'string') ? new Ext.XTemplate(this.tpl).compile() : this.tpl.compile(); -}; -Ext.extend(Ext.data.XmlWriter, Ext.data.DataWriter, { - /** - * @cfg {String} documentRoot [xrequest] (Optional) The name of the XML document root-node. Note: - * this parameter is required
      only when
      sending extra {@link Ext.data.Store#baseParams baseParams} to the server - * during a write-request -- if no baseParams are set, the {@link Ext.data.XmlReader#record} meta-property can - * suffice as the XML document root-node for write-actions involving just a single record. For requests - * involving multiple records and NO baseParams, the {@link Ext.data.XmlWriter#root} property can - * act as the XML document root. - */ - documentRoot: 'xrequest', - /** - * @cfg {Boolean} forceDocumentRoot [false] Set to true to force XML documents having a root-node as defined - * by {@link #documentRoot}, even with no baseParams defined. - */ - forceDocumentRoot: false, - /** - * @cfg {String} root [records] The name of the containing element which will contain the nodes of an write-action involving multiple records. Each - * xml-record written to the server will be wrapped in an element named after {@link Ext.data.XmlReader#record} property. - * eg: -
      -<?xml version="1.0" encoding="UTF-8"?>
      -<user><first>Barney</first></user>
      -
      - * However, when multiple records are written in a batch-operation, these records must be wrapped in a containing - * Element. - * eg: -
      -<?xml version="1.0" encoding="UTF-8"?>
      -    <records>
      -        <first>Barney</first></user>
      -        <records><first>Barney</first></user>
      -    </records>
      -
      - * Defaults to records. Do not confuse the nature of this property with that of {@link #documentRoot} - */ - root: 'records', - /** - * @cfg {String} xmlVersion [1.0] The version written to header of xml documents. -
      <?xml version="1.0" encoding="ISO-8859-15"?>
      - */ - xmlVersion : '1.0', - /** - * @cfg {String} xmlEncoding [ISO-8859-15] The encoding written to header of xml documents. -
      <?xml version="1.0" encoding="ISO-8859-15"?>
      - */ - xmlEncoding: 'ISO-8859-15', - /** - * @cfg {String/Ext.XTemplate} tpl The XML template used to render {@link Ext.data.Api#actions write-actions} to your server. - *

      One can easily provide his/her own custom {@link Ext.XTemplate#constructor template-definition} if the default does not suffice.

      - *

      Defaults to:

      -
      -<?xml version="{version}" encoding="{encoding}"?>
      -    <tpl if="documentRoot"><{documentRoot}>
      -    <tpl for="baseParams">
      -        <tpl for=".">
      -            <{name}>{value}</{name}>
      -        </tpl>
      -    </tpl>
      -    <tpl if="records.length > 1"><{root}>',
      -    <tpl for="records">
      -        <{parent.record}>
      -        <tpl for=".">
      -            <{name}>{value}</{name}>
      -        </tpl>
      -        </{parent.record}>
      -    </tpl>
      -    <tpl if="records.length > 1"></{root}></tpl>
      -    <tpl if="documentRoot"></{documentRoot}></tpl>
      -
      - *

      Templates will be called with the following API

      - *
        - *
      • {String} version [1.0] The xml version.
      • - *
      • {String} encoding [ISO-8859-15] The xml encoding.
      • - *
      • {String/false} documentRoot The XML document root-node name or false if not required. See {@link #documentRoot} and {@link #forceDocumentRoot}.
      • - *
      • {String} record The meta-data parameter defined on your {@link Ext.data.XmlReader#record} configuration represents the name of the xml-tag containing each record.
      • - *
      • {String} root The meta-data parameter defined by {@link Ext.data.XmlWriter#root} configuration-parameter. Represents the name of the xml root-tag when sending multiple records to the server.
      • - *
      • {Array} records The records being sent to the server, ie: the subject of the write-action being performed. The records parameter will be always be an array, even when only a single record is being acted upon. - * Each item within the records array will contain an array of field objects having the following properties: - *
          - *
        • {String} name The field-name of the record as defined by your {@link Ext.data.Record#create Ext.data.Record definition}. The "mapping" property will be used, otherwise it will match the "name" property. Use this parameter to define the XML tag-name of the property.
        • - *
        • {Mixed} value The record value of the field enclosed within XML tags specified by name property above.
        • - *
      • - *
      • {Array} baseParams. The baseParams as defined upon {@link Ext.data.Store#baseParams}. Note that the baseParams have been converted into an array of [{name : "foo", value: "bar"}, ...] pairs in the same manner as the records parameter above. See {@link #documentRoot} and {@link #forceDocumentRoot}.
      • - *
      - */ - // Encoding the ? here in case it's being included by some kind of page that will parse it (eg. PHP) - tpl: '<\u003fxml version="{version}" encoding="{encoding}"\u003f><{documentRoot}><{name}>{value}<{root}><{parent.record}><{name}>{value}', - - - /** - * XmlWriter implementation of the final stage of a write action. - * @param {Object} params Transport-proxy's (eg: {@link Ext.Ajax#request}) params-object to write-to. - * @param {Object} baseParams as defined by {@link Ext.data.Store#baseParams}. The baseParms must be encoded by the extending class, eg: {@link Ext.data.JsonWriter}, {@link Ext.data.XmlWriter}. - * @param {Object/Object[]} data Data-object representing the compiled Store-recordset. - */ - render : function(params, baseParams, data) { - baseParams = this.toArray(baseParams); - params.xmlData = this.tpl.applyTemplate({ - version: this.xmlVersion, - encoding: this.xmlEncoding, - documentRoot: (baseParams.length > 0 || this.forceDocumentRoot === true) ? this.documentRoot : false, - record: this.meta.record, - root: this.root, - baseParams: baseParams, - records: (Ext.isArray(data[0])) ? data : [data] - }); - }, - - /** - * createRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Array} Array of name:value pairs for attributes of the {@link Ext.data.Record}. See {@link Ext.data.DataWriter#toHash}. - */ - createRecord : function(rec) { - return this.toArray(this.toHash(rec)); - }, - - /** - * updateRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Array} Array of {name:value} pairs for attributes of the {@link Ext.data.Record}. See {@link Ext.data.DataWriter#toHash}. - */ - updateRecord : function(rec) { - return this.toArray(this.toHash(rec)); - - }, - /** - * destroyRecord - * @protected - * @param {Ext.data.Record} rec - * @return {Array} Array containing a attribute-object (name/value pair) representing the {@link Ext.data.DataReader#idProperty idProperty}. - */ - destroyRecord : function(rec) { - var data = {}; - data[this.meta.idProperty] = rec.id; - return this.toArray(data); - } -}); -/** - * @class Ext.data.XmlReader - * @extends Ext.data.DataReader - *

      Data reader class to create an Array of {@link Ext.data.Record} objects from an XML document - * based on mappings in a provided {@link Ext.data.Record} constructor.

      - *

      Note: that in order for the browser to parse a returned XML document, the Content-Type - * header in the HTTP response must be set to "text/xml" or "application/xml".

      - *

      Example code:

      - *
      
      -var Employee = Ext.data.Record.create([
      -   {name: 'name', mapping: 'name'},     // "mapping" property not needed if it is the same as "name"
      -   {name: 'occupation'}                 // This field will use "occupation" as the mapping.
      -]);
      -var myReader = new Ext.data.XmlReader({
      -   totalProperty: "results", // The element which contains the total dataset size (optional)
      -   record: "row",           // The repeated element which contains row information
      -   idProperty: "id"         // The element within the row that provides an ID for the record (optional)
      -   messageProperty: "msg"   // The element within the response that provides a user-feedback message (optional)
      -}, Employee);
      -
      - *

      - * This would consume an XML file like this: - *

      
      -<?xml version="1.0" encoding="UTF-8"?>
      -<dataset>
      - <results>2</results>
      - <row>
      -   <id>1</id>
      -   <name>Bill</name>
      -   <occupation>Gardener</occupation>
      - </row>
      - <row>
      -   <id>2</id>
      -   <name>Ben</name>
      -   <occupation>Horticulturalist</occupation>
      - </row>
      -</dataset>
      -
      - * @cfg {String} totalProperty The DomQuery path from which to retrieve the total number of records - * in the dataset. This is only needed if the whole dataset is not passed in one go, but is being - * paged from the remote server. - * @cfg {String} record The DomQuery path to the repeated element which contains record information. - * @cfg {String} record The DomQuery path to the repeated element which contains record information. - * @cfg {String} successProperty The DomQuery path to the success attribute used by forms. - * @cfg {String} idPath The DomQuery path relative from the record element to the element that contains - * a record identifier value. - * @constructor - * Create a new XmlReader. - * @param {Object} meta Metadata configuration options - * @param {Object} recordType Either an Array of field definition objects as passed to - * {@link Ext.data.Record#create}, or a Record constructor object created using {@link Ext.data.Record#create}. - */ -Ext.data.XmlReader = function(meta, recordType){ - meta = meta || {}; - - // backwards compat, convert idPath or id / success - Ext.applyIf(meta, { - idProperty: meta.idProperty || meta.idPath || meta.id, - successProperty: meta.successProperty || meta.success - }); - - Ext.data.XmlReader.superclass.constructor.call(this, meta, recordType || meta.fields); -}; -Ext.extend(Ext.data.XmlReader, Ext.data.DataReader, { - /** - * This method is only used by a DataProxy which has retrieved data from a remote server. - * @param {Object} response The XHR object which contains the parsed XML document. The response is expected - * to contain a property called responseXML which refers to an XML document object. - * @return {Object} records A data block which is used by an {@link Ext.data.Store} as - * a cache of Ext.data.Records. - */ - read : function(response){ - var doc = response.responseXML; - if(!doc) { - throw {message: "XmlReader.read: XML Document not available"}; - } - return this.readRecords(doc); - }, - - /** - * Create a data block containing Ext.data.Records from an XML document. - * @param {Object} doc A parsed XML document. - * @return {Object} records A data block which is used by an {@link Ext.data.Store} as - * a cache of Ext.data.Records. - */ - readRecords : function(doc){ - /** - * After any data loads/reads, the raw XML Document is available for further custom processing. - * @type XMLDocument - */ - this.xmlData = doc; - - var root = doc.documentElement || doc, - q = Ext.DomQuery, - totalRecords = 0, - success = true; - - if(this.meta.totalProperty){ - totalRecords = this.getTotal(root, 0); - } - if(this.meta.successProperty){ - success = this.getSuccess(root); - } - - var records = this.extractData(q.select(this.meta.record, root), true); // <-- true to return Ext.data.Record[] - - // TODO return Ext.data.Response instance. @see #readResponse - return { - success : success, - records : records, - totalRecords : totalRecords || records.length - }; - }, - - /** - * Decode an XML response from server. - * @param {String} action [{@link Ext.data.Api#actions} create|read|update|destroy] - * @param {Object} response HTTP Response object from browser. - * @return {Ext.data.Response} An instance of {@link Ext.data.Response} - */ - readResponse : function(action, response) { - var q = Ext.DomQuery, - doc = response.responseXML, - root = doc.documentElement || doc; - - // create general Response instance. - var res = new Ext.data.Response({ - action: action, - success : this.getSuccess(root), - message: this.getMessage(root), - data: this.extractData(q.select(this.meta.record, root) || q.select(this.meta.root, root), false), - raw: doc - }); - - if (Ext.isEmpty(res.success)) { - throw new Ext.data.DataReader.Error('successProperty-response', this.meta.successProperty); - } - - // Create actions from a response having status 200 must return pk - if (action === Ext.data.Api.actions.create) { - var def = Ext.isDefined(res.data); - if (def && Ext.isEmpty(res.data)) { - throw new Ext.data.JsonReader.Error('root-empty', this.meta.root); - } - else if (!def) { - throw new Ext.data.JsonReader.Error('root-undefined-response', this.meta.root); - } - } - return res; - }, - - getSuccess : function() { - return true; - }, - - /** - * build response-data extractor functions. - * @private - * @ignore - */ - buildExtractors : function() { - if(this.ef){ - return; - } - var s = this.meta, - Record = this.recordType, - f = Record.prototype.fields, - fi = f.items, - fl = f.length; - - if(s.totalProperty) { - this.getTotal = this.createAccessor(s.totalProperty); - } - if(s.successProperty) { - this.getSuccess = this.createAccessor(s.successProperty); - } - if (s.messageProperty) { - this.getMessage = this.createAccessor(s.messageProperty); - } - this.getRoot = function(res) { - return (!Ext.isEmpty(res[this.meta.record])) ? res[this.meta.record] : res[this.meta.root]; - }; - if (s.idPath || s.idProperty) { - var g = this.createAccessor(s.idPath || s.idProperty); - this.getId = function(rec) { - var id = g(rec) || rec.id; - return (id === undefined || id === '') ? null : id; - }; - } else { - this.getId = function(){return null;}; - } - var ef = []; - for(var i = 0; i < fl; i++){ - f = fi[i]; - var map = (f.mapping !== undefined && f.mapping !== null) ? f.mapping : f.name; - ef.push(this.createAccessor(map)); - } - this.ef = ef; - }, - - /** - * Creates a function to return some particular key of data from a response. - * @param {String} key - * @return {Function} - * @private - * @ignore - */ - createAccessor : function(){ - var q = Ext.DomQuery; - return function(key) { - if (Ext.isFunction(key)) { - return key; - } - switch(key) { - case this.meta.totalProperty: - return function(root, def){ - return q.selectNumber(key, root, def); - }; - break; - case this.meta.successProperty: - return function(root, def) { - var sv = q.selectValue(key, root, true); - var success = sv !== false && sv !== 'false'; - return success; - }; - break; - default: - return function(root, def) { - return q.selectValue(key, root, def); - }; - break; - } - }; - }(), - - /** - * extracts values and type-casts a row of data from server, extracted by #extractData - * @param {Hash} data - * @param {Ext.data.Field[]} items - * @param {Number} len - * @private - * @ignore - */ - extractValues : function(data, items, len) { - var f, values = {}; - for(var j = 0; j < len; j++){ - f = items[j]; - var v = this.ef[j](data); - values[f.name] = f.convert((v !== undefined) ? v : f.defaultValue, data); - } - return values; - } -});/** - * @class Ext.data.XmlStore - * @extends Ext.data.Store - *

      Small helper class to make creating {@link Ext.data.Store}s from XML data easier. - * A XmlStore will be automatically configured with a {@link Ext.data.XmlReader}.

      - *

      A store configuration would be something like:

      
      -var store = new Ext.data.XmlStore({
      -    // store configs
      -    autoDestroy: true,
      -    storeId: 'myStore',
      -    url: 'sheldon.xml', // automatically configures a HttpProxy
      -    // reader configs
      -    record: 'Item', // records will have an "Item" tag
      -    idPath: 'ASIN',
      -    totalRecords: '@TotalResults'
      -    fields: [
      -        // set up the fields mapping into the xml doc
      -        // The first needs mapping, the others are very basic
      -        {name: 'Author', mapping: 'ItemAttributes > Author'},
      -        'Title', 'Manufacturer', 'ProductGroup'
      -    ]
      -});
      - * 

      - *

      This store is configured to consume a returned object of the form:

      
      -<?xml version="1.0" encoding="UTF-8"?>
      -<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2009-05-15">
      -    <Items>
      -        <Request>
      -            <IsValid>True</IsValid>
      -            <ItemSearchRequest>
      -                <Author>Sidney Sheldon</Author>
      -                <SearchIndex>Books</SearchIndex>
      -            </ItemSearchRequest>
      -        </Request>
      -        <TotalResults>203</TotalResults>
      -        <TotalPages>21</TotalPages>
      -        <Item>
      -            <ASIN>0446355453</ASIN>
      -            <DetailPageURL>
      -                http://www.amazon.com/
      -            </DetailPageURL>
      -            <ItemAttributes>
      -                <Author>Sidney Sheldon</Author>
      -                <Manufacturer>Warner Books</Manufacturer>
      -                <ProductGroup>Book</ProductGroup>
      -                <Title>Master of the Game</Title>
      -            </ItemAttributes>
      -        </Item>
      -    </Items>
      -</ItemSearchResponse>
      - * 
      - * An object literal of this form could also be used as the {@link #data} config option.

      - *

      Note: Although not listed here, this class accepts all of the configuration options of - * {@link Ext.data.XmlReader XmlReader}.

      - * @constructor - * @param {Object} config - * @xtype xmlstore - */ -Ext.data.XmlStore = Ext.extend(Ext.data.Store, { - /** - * @cfg {Ext.data.DataReader} reader @hide - */ - constructor: function(config){ - Ext.data.XmlStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.XmlReader(config) - })); - } -}); -Ext.reg('xmlstore', Ext.data.XmlStore);/** - * @class Ext.data.GroupingStore - * @extends Ext.data.Store - * A specialized store implementation that provides for grouping records by one of the available fields. This - * is usually used in conjunction with an {@link Ext.grid.GroupingView} to provide the data model for - * a grouped GridPanel. - * - * Internally, GroupingStore is simply a normal Store with multi sorting enabled from the start. The grouping field - * and direction are always injected as the first sorter pair. GroupingView picks up on the configured groupField and - * builds grid rows appropriately. - * - * @constructor - * Creates a new GroupingStore. - * @param {Object} config A config object containing the objects needed for the Store to access data, - * and read the data into Records. - * @xtype groupingstore - */ -Ext.data.GroupingStore = Ext.extend(Ext.data.Store, { - - //inherit docs - constructor: function(config) { - config = config || {}; - - //We do some preprocessing here to massage the grouping + sorting options into a single - //multi sort array. If grouping and sorting options are both presented to the constructor, - //the sorters array consists of the grouping sorter object followed by the sorting sorter object - //see Ext.data.Store's sorting functions for details about how multi sorting works - this.hasMultiSort = true; - this.multiSortInfo = this.multiSortInfo || {sorters: []}; - - var sorters = this.multiSortInfo.sorters, - groupField = config.groupField || this.groupField, - sortInfo = config.sortInfo || this.sortInfo, - groupDir = config.groupDir || this.groupDir; - - //add the grouping sorter object first - if(groupField){ - sorters.push({ - field : groupField, - direction: groupDir - }); - } - - //add the sorting sorter object if it is present - if (sortInfo) { - sorters.push(sortInfo); - } - - Ext.data.GroupingStore.superclass.constructor.call(this, config); - - this.addEvents( - /** - * @event groupchange - * Fired whenever a call to store.groupBy successfully changes the grouping on the store - * @param {Ext.data.GroupingStore} store The grouping store - * @param {String} groupField The field that the store is now grouped by - */ - 'groupchange' - ); - - this.applyGroupField(); - }, - - /** - * @cfg {String} groupField - * The field name by which to sort the store's data (defaults to ''). - */ - /** - * @cfg {Boolean} remoteGroup - * True if the grouping should apply on the server side, false if it is local only (defaults to false). If the - * grouping is local, it can be applied immediately to the data. If it is remote, then it will simply act as a - * helper, automatically sending the grouping field name as the 'groupBy' param with each XHR call. - */ - remoteGroup : false, - /** - * @cfg {Boolean} groupOnSort - * True to sort the data on the grouping field when a grouping operation occurs, false to sort based on the - * existing sort info (defaults to false). - */ - groupOnSort:false, - - /** - * @cfg {String} groupDir - * The direction to sort the groups. Defaults to 'ASC'. - */ - groupDir : 'ASC', - - /** - * Clears any existing grouping and refreshes the data using the default sort. - */ - clearGrouping : function(){ - this.groupField = false; - - if(this.remoteGroup){ - if(this.baseParams){ - delete this.baseParams.groupBy; - delete this.baseParams.groupDir; - } - var lo = this.lastOptions; - if(lo && lo.params){ - delete lo.params.groupBy; - delete lo.params.groupDir; - } - - this.reload(); - }else{ - this.sort(); - this.fireEvent('datachanged', this); - } - }, - - /** - * Groups the data by the specified field. - * @param {String} field The field name by which to sort the store's data - * @param {Boolean} forceRegroup (optional) True to force the group to be refreshed even if the field passed - * in is the same as the current grouping field, false to skip grouping on the same field (defaults to false) - */ - groupBy : function(field, forceRegroup, direction) { - direction = direction ? (String(direction).toUpperCase() == 'DESC' ? 'DESC' : 'ASC') : this.groupDir; - - if (this.groupField == field && this.groupDir == direction && !forceRegroup) { - return; // already grouped by this field - } - - //check the contents of the first sorter. If the field matches the CURRENT groupField (before it is set to the new one), - //remove the sorter as it is actually the grouper. The new grouper is added back in by this.sort - var sorters = this.multiSortInfo.sorters; - if (sorters.length > 0 && sorters[0].field == this.groupField) { - sorters.shift(); - } - - this.groupField = field; - this.groupDir = direction; - this.applyGroupField(); - - var fireGroupEvent = function() { - this.fireEvent('groupchange', this, this.getGroupState()); - }; - - if (this.groupOnSort) { - this.sort(field, direction); - fireGroupEvent.call(this); - return; - } - - if (this.remoteGroup) { - this.on('load', fireGroupEvent, this, {single: true}); - this.reload(); - } else { - this.sort(sorters); - fireGroupEvent.call(this); - } - }, - - //GroupingStore always uses multisorting so we intercept calls to sort here to make sure that our grouping sorter object - //is always injected first. - sort : function(fieldName, dir) { - if (this.remoteSort) { - return Ext.data.GroupingStore.superclass.sort.call(this, fieldName, dir); - } - - var sorters = []; - - //cater for any existing valid arguments to this.sort, massage them into an array of sorter objects - if (Ext.isArray(arguments[0])) { - sorters = arguments[0]; - } else if (fieldName == undefined) { - //we preserve the existing sortInfo here because this.sort is called after - //clearGrouping and there may be existing sorting - sorters = this.sortInfo ? [this.sortInfo] : []; - } else { - //TODO: this is lifted straight from Ext.data.Store's singleSort function. It should instead be - //refactored into a common method if possible - var field = this.fields.get(fieldName); - if (!field) return false; - - var name = field.name, - sortInfo = this.sortInfo || null, - sortToggle = this.sortToggle ? this.sortToggle[name] : null; - - if (!dir) { - if (sortInfo && sortInfo.field == name) { // toggle sort dir - dir = (this.sortToggle[name] || 'ASC').toggle('ASC', 'DESC'); - } else { - dir = field.sortDir; - } - } - - this.sortToggle[name] = dir; - this.sortInfo = {field: name, direction: dir}; - - sorters = [this.sortInfo]; - } - - //add the grouping sorter object as the first multisort sorter - if (this.groupField) { - sorters.unshift({direction: this.groupDir, field: this.groupField}); - } - - return this.multiSort.call(this, sorters, dir); - }, - - /** - * @private - * Saves the current grouping field and direction to this.baseParams and this.lastOptions.params - * if we're using remote grouping. Does not actually perform any grouping - just stores values - */ - applyGroupField: function(){ - if (this.remoteGroup) { - if(!this.baseParams){ - this.baseParams = {}; - } - - Ext.apply(this.baseParams, { - groupBy : this.groupField, - groupDir: this.groupDir - }); - - var lo = this.lastOptions; - if (lo && lo.params) { - lo.params.groupDir = this.groupDir; - - //this is deleted because of a bug reported at http://www.extjs.com/forum/showthread.php?t=82907 - delete lo.params.groupBy; - } - } - }, - - /** - * @private - * TODO: This function is apparently never invoked anywhere in the framework. It has no documentation - * and should be considered for deletion - */ - applyGrouping : function(alwaysFireChange){ - if(this.groupField !== false){ - this.groupBy(this.groupField, true, this.groupDir); - return true; - }else{ - if(alwaysFireChange === true){ - this.fireEvent('datachanged', this); - } - return false; - } - }, - - /** - * @private - * Returns the grouping field that should be used. If groupOnSort is used this will be sortInfo's field, - * otherwise it will be this.groupField - * @return {String} The group field - */ - getGroupState : function(){ - return this.groupOnSort && this.groupField !== false ? - (this.sortInfo ? this.sortInfo.field : undefined) : this.groupField; - } -}); -Ext.reg('groupingstore', Ext.data.GroupingStore); -/** - * @class Ext.data.DirectProxy - * @extends Ext.data.DataProxy - */ -Ext.data.DirectProxy = function(config){ - Ext.apply(this, config); - if(typeof this.paramOrder == 'string'){ - this.paramOrder = this.paramOrder.split(/[\s,|]/); - } - Ext.data.DirectProxy.superclass.constructor.call(this, config); -}; - -Ext.extend(Ext.data.DirectProxy, Ext.data.DataProxy, { - /** - * @cfg {Array/String} paramOrder Defaults to undefined. A list of params to be executed - * server side. 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 - * Send parameters as a collection of named arguments (defaults to true). Providing a - * {@link #paramOrder} nullifies this configuration. - */ - paramsAsHash: true, - - /** - * @cfg {Function} directFn - * Function to call when executing a request. directFn is a simple alternative to defining the api configuration-parameter - * for Store's which will not implement a full CRUD api. - */ - directFn : undefined, - - /** - * DirectProxy implementation of {@link Ext.data.DataProxy#doRequest} - * @param {String} action The crud action type (create, read, update, destroy) - * @param {Ext.data.Record/Ext.data.Record[]} rs If action is load, rs will be null - * @param {Object} params An object containing properties which are to be used as HTTP parameters - * for the request to the remote server. - * @param {Ext.data.DataReader} reader The Reader object which converts the data - * object into a block of Ext.data.Records. - * @param {Function} callback - *

      A function to be called after the request. - * The callback is passed the following arguments:

        - *
      • r : Ext.data.Record[] The block of Ext.data.Records.
      • - *
      • options: Options object from the action request
      • - *
      • success: Boolean success indicator

      - * @param {Object} scope The scope (this reference) in which the callback function is executed. Defaults to the browser window. - * @param {Object} arg An optional argument which is passed to the callback as its second parameter. - * @protected - */ - doRequest : function(action, rs, params, reader, callback, scope, options) { - var args = [], - directFn = this.api[action] || this.directFn; - - switch (action) { - case Ext.data.Api.actions.create: - args.push(params.jsonData); // <-- create(Hash) - break; - case Ext.data.Api.actions.read: - // If the method has no parameters, ignore the paramOrder/paramsAsHash. - if(directFn.directCfg.method.len > 0){ - if(this.paramOrder){ - for(var i = 0, len = this.paramOrder.length; i < len; i++){ - args.push(params[this.paramOrder[i]]); - } - }else if(this.paramsAsHash){ - args.push(params); - } - } - break; - case Ext.data.Api.actions.update: - args.push(params.jsonData); // <-- update(Hash/Hash[]) - break; - case Ext.data.Api.actions.destroy: - args.push(params.jsonData); // <-- destroy(Int/Int[]) - break; - } - - var trans = { - params : params || {}, - request: { - callback : callback, - scope : scope, - arg : options - }, - reader: reader - }; - - args.push(this.createCallback(action, rs, trans), this); - directFn.apply(window, args); - }, - - // private - createCallback : function(action, rs, trans) { - var me = this; - return function(result, res) { - if (!res.status) { - // @deprecated fire loadexception - if (action === Ext.data.Api.actions.read) { - me.fireEvent("loadexception", me, trans, res, null); - } - me.fireEvent('exception', me, 'remote', action, trans, res, null); - trans.request.callback.call(trans.request.scope, null, trans.request.arg, false); - return; - } - if (action === Ext.data.Api.actions.read) { - me.onRead(action, trans, result, res); - } else { - me.onWrite(action, trans, result, res, rs); - } - }; - }, - - /** - * Callback for read actions - * @param {String} action [Ext.data.Api.actions.create|read|update|destroy] - * @param {Object} trans The request transaction object - * @param {Object} result Data object picked out of the server-response. - * @param {Object} res The server response - * @protected - */ - onRead : function(action, trans, result, res) { - var records; - try { - records = trans.reader.readRecords(result); - } - catch (ex) { - // @deprecated: Fire old loadexception for backwards-compat. - this.fireEvent("loadexception", this, trans, res, ex); - - this.fireEvent('exception', this, 'response', action, trans, res, ex); - trans.request.callback.call(trans.request.scope, null, trans.request.arg, false); - return; - } - this.fireEvent("load", this, res, trans.request.arg); - trans.request.callback.call(trans.request.scope, records, trans.request.arg, true); - }, - /** - * Callback for write actions - * @param {String} action [{@link Ext.data.Api#actions create|read|update|destroy}] - * @param {Object} trans The request transaction object - * @param {Object} result Data object picked out of the server-response. - * @param {Object} res The server response - * @param {Ext.data.Record/[Ext.data.Record]} rs The Store resultset associated with the action. - * @protected - */ - onWrite : function(action, trans, result, res, rs) { - var data = trans.reader.extractData(trans.reader.getRoot(result), false); - var success = trans.reader.getSuccess(result); - success = (success !== false); - if (success){ - this.fireEvent("write", this, action, data, res, rs, trans.request.arg); - }else{ - this.fireEvent('exception', this, 'remote', action, trans, result, rs); - } - trans.request.callback.call(trans.request.scope, data, res, success); - } -}); -/** - * @class Ext.data.DirectStore - * @extends Ext.data.Store - *

      Small helper class to create an {@link Ext.data.Store} configured with an - * {@link Ext.data.DirectProxy} and {@link Ext.data.JsonReader} to make interacting - * with an {@link Ext.Direct} Server-side {@link Ext.direct.Provider Provider} easier. - * To create a different proxy/reader combination create a basic {@link Ext.data.Store} - * configured as needed.

      - * - *

      *Note: Although they are not listed, this class inherits all of the config options of:

      - *
        - *
      • {@link Ext.data.Store Store}
      • - *
          - * - *
        - *
      • {@link Ext.data.JsonReader JsonReader}
      • - *
          - *
        • {@link Ext.data.JsonReader#root root}
        • - *
        • {@link Ext.data.JsonReader#idProperty idProperty}
        • - *
        • {@link Ext.data.JsonReader#totalProperty totalProperty}
        • - *
        - * - *
      • {@link Ext.data.DirectProxy DirectProxy}
      • - *
          - *
        • {@link Ext.data.DirectProxy#directFn directFn}
        • - *
        • {@link Ext.data.DirectProxy#paramOrder paramOrder}
        • - *
        • {@link Ext.data.DirectProxy#paramsAsHash paramsAsHash}
        • - *
        - *
      - * - * @xtype directstore - * - * @constructor - * @param {Object} config - */ -Ext.data.DirectStore = Ext.extend(Ext.data.Store, { - constructor : function(config){ - // each transaction upon a singe record will generate a distinct Direct transaction since Direct queues them into one Ajax request. - var c = Ext.apply({}, { - batchTransactions: false - }, config); - Ext.data.DirectStore.superclass.constructor.call(this, Ext.apply(c, { - proxy: Ext.isDefined(c.proxy) ? c.proxy : new Ext.data.DirectProxy(Ext.copyTo({}, c, 'paramOrder,paramsAsHash,directFn,api')), - reader: (!Ext.isDefined(c.reader) && c.fields) ? new Ext.data.JsonReader(Ext.copyTo({}, c, 'totalProperty,root,idProperty'), c.fields) : c.reader - })); - } -}); -Ext.reg('directstore', Ext.data.DirectStore); -/** - * @class Ext.Direct - * @extends Ext.util.Observable - *

      Overview

      - * - *

      Ext.Direct aims to streamline communication between the client and server - * by providing a single interface that reduces the amount of common code - * typically required to validate data and handle returned data packets - * (reading data, error conditions, etc).

      - * - *

      The Ext.direct namespace includes several classes for a closer integration - * with the server-side. The Ext.data namespace also includes classes for working - * with Ext.data.Stores which are backed by data from an Ext.Direct method.

      - * - *

      Specification

      - * - *

      For additional information consult the - * Ext.Direct Specification.

      - * - *

      Providers

      - * - *

      Ext.Direct uses a provider architecture, where one or more providers are - * used to transport data to and from the server. There are several providers - * that exist in the core at the moment:

        - * - *
      • {@link Ext.direct.JsonProvider JsonProvider} for simple JSON operations
      • - *
      • {@link Ext.direct.PollingProvider PollingProvider} for repeated requests
      • - *
      • {@link Ext.direct.RemotingProvider RemotingProvider} exposes server side - * on the client.
      • - *
      - * - *

      A provider does not need to be invoked directly, providers are added via - * {@link Ext.Direct}.{@link Ext.Direct#add add}.

      - * - *

      Router

      - * - *

      Ext.Direct utilizes a "router" on the server to direct requests from the client - * to the appropriate server-side method. Because the Ext.Direct API is completely - * platform-agnostic, you could completely swap out a Java based server solution - * and replace it with one that uses C# without changing the client side JavaScript - * at all.

      - * - *

      Server side events

      - * - *

      Custom events from the server may be handled by the client by adding - * listeners, for example:

      - *
      
      -{"type":"event","name":"message","data":"Successfully polled at: 11:19:30 am"}
      -
      -// add a handler for a 'message' event sent by the server
      -Ext.Direct.on('message', function(e){
      -    out.append(String.format('<p><i>{0}</i></p>', e.data));
      -            out.el.scrollTo('t', 100000, true);
      -});
      - * 
      - * @singleton - */ -Ext.Direct = Ext.extend(Ext.util.Observable, { - /** - * Each event type implements a getData() method. The default event types are: - *
        - *
      • event : Ext.Direct.Event
      • - *
      • exception : Ext.Direct.ExceptionEvent
      • - *
      • rpc : Ext.Direct.RemotingEvent
      • - *
      - * @property eventTypes - * @type Object - */ - - /** - * Four types of possible exceptions which can occur: - *
        - *
      • Ext.Direct.exceptions.TRANSPORT : 'xhr'
      • - *
      • Ext.Direct.exceptions.PARSE : 'parse'
      • - *
      • Ext.Direct.exceptions.LOGIN : 'login'
      • - *
      • Ext.Direct.exceptions.SERVER : 'exception'
      • - *
      - * @property exceptions - * @type Object - */ - exceptions: { - TRANSPORT: 'xhr', - PARSE: 'parse', - LOGIN: 'login', - SERVER: 'exception' - }, - - // private - constructor: function(){ - this.addEvents( - /** - * @event event - * Fires after an event. - * @param {event} e The {@link Ext.Direct#eventTypes Ext.Direct.Event type} that occurred. - * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}. - */ - 'event', - /** - * @event exception - * Fires after an event exception. - * @param {event} e The {@link Ext.Direct#eventTypes Ext.Direct.Event type} that occurred. - */ - 'exception' - ); - this.transactions = {}; - this.providers = {}; - }, - - /** - * Adds an Ext.Direct Provider and creates the proxy or stub methods to execute server-side methods. - * If the provider is not already connected, it will auto-connect. - *
      
      -var pollProv = new Ext.direct.PollingProvider({
      -    url: 'php/poll2.php'
      -});
      -
      -Ext.Direct.addProvider(
      -    {
      -        "type":"remoting",       // create a {@link Ext.direct.RemotingProvider}
      -        "url":"php\/router.php", // url to connect to the Ext.Direct server-side router.
      -        "actions":{              // each property within the actions object represents a Class
      -            "TestAction":[       // array of methods within each server side Class
      -            {
      -                "name":"doEcho", // name of method
      -                "len":1
      -            },{
      -                "name":"multiply",
      -                "len":1
      -            },{
      -                "name":"doForm",
      -                "formHandler":true, // handle form on server with Ext.Direct.Transaction
      -                "len":1
      -            }]
      -        },
      -        "namespace":"myApplication",// namespace to create the Remoting Provider in
      -    },{
      -        type: 'polling', // create a {@link Ext.direct.PollingProvider}
      -        url:  'php/poll.php'
      -    },
      -    pollProv // reference to previously created instance
      -);
      -     * 
      - * @param {Object/Array} provider Accepts either an Array of Provider descriptions (an instance - * or config object for a Provider) or any number of Provider descriptions as arguments. Each - * Provider description instructs Ext.Direct how to create client-side stub methods. - */ - addProvider : function(provider){ - var a = arguments; - if(a.length > 1){ - for(var i = 0, len = a.length; i < len; i++){ - this.addProvider(a[i]); - } - return; - } - - // if provider has not already been instantiated - if(!provider.events){ - provider = new Ext.Direct.PROVIDERS[provider.type](provider); - } - provider.id = provider.id || Ext.id(); - this.providers[provider.id] = provider; - - provider.on('data', this.onProviderData, this); - provider.on('exception', this.onProviderException, this); - - - if(!provider.isConnected()){ - provider.connect(); - } - - return provider; - }, - - /** - * Retrieve a {@link Ext.direct.Provider provider} by the - * {@link Ext.direct.Provider#id id} specified when the provider is - * {@link #addProvider added}. - * @param {String} id Unique identifier assigned to the provider when calling {@link #addProvider} - */ - getProvider : function(id){ - return this.providers[id]; - }, - - removeProvider : function(id){ - var provider = id.id ? id : this.providers[id]; - provider.un('data', this.onProviderData, this); - provider.un('exception', this.onProviderException, this); - delete this.providers[provider.id]; - return provider; - }, - - addTransaction: function(t){ - this.transactions[t.tid] = t; - return t; - }, - - removeTransaction: function(t){ - delete this.transactions[t.tid || t]; - return t; - }, - - getTransaction: function(tid){ - return this.transactions[tid.tid || tid]; - }, - - onProviderData : function(provider, e){ - if(Ext.isArray(e)){ - for(var i = 0, len = e.length; i < len; i++){ - this.onProviderData(provider, e[i]); - } - return; - } - if(e.name && e.name != 'event' && e.name != 'exception'){ - this.fireEvent(e.name, e); - }else if(e.type == 'exception'){ - this.fireEvent('exception', e); - } - this.fireEvent('event', e, provider); - }, - - createEvent : function(response, extraProps){ - return new Ext.Direct.eventTypes[response.type](Ext.apply(response, extraProps)); - } -}); -// overwrite impl. with static instance -Ext.Direct = new Ext.Direct(); - -Ext.Direct.TID = 1; -Ext.Direct.PROVIDERS = {};/** - * @class Ext.Direct.Transaction - * @extends Object - *

      Supporting Class for Ext.Direct (not intended to be used directly).

      - * @constructor - * @param {Object} config - */ -Ext.Direct.Transaction = function(config){ - Ext.apply(this, config); - this.tid = ++Ext.Direct.TID; - this.retryCount = 0; -}; -Ext.Direct.Transaction.prototype = { - send: function(){ - this.provider.queueTransaction(this); - }, - - retry: function(){ - this.retryCount++; - this.send(); - }, - - getProvider: function(){ - return this.provider; - } -};Ext.Direct.Event = function(config){ - Ext.apply(this, config); -}; - -Ext.Direct.Event.prototype = { - status: true, - getData: function(){ - return this.data; - } -}; - -Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, { - type: 'rpc', - getTransaction: function(){ - return this.transaction || Ext.Direct.getTransaction(this.tid); - } -}); - -Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, { - status: false, - type: 'exception' -}); - -Ext.Direct.eventTypes = { - 'rpc': Ext.Direct.RemotingEvent, - 'event': Ext.Direct.Event, - 'exception': Ext.Direct.ExceptionEvent -}; -/** - * @class Ext.direct.Provider - * @extends Ext.util.Observable - *

      Ext.direct.Provider is an abstract class meant to be extended.

      - * - *

      For example ExtJs implements the following subclasses:

      - *
      
      -Provider
      -|
      -+---{@link Ext.direct.JsonProvider JsonProvider} 
      -    |
      -    +---{@link Ext.direct.PollingProvider PollingProvider}   
      -    |
      -    +---{@link Ext.direct.RemotingProvider RemotingProvider}   
      - * 
      - * @abstract - */ -Ext.direct.Provider = Ext.extend(Ext.util.Observable, { - /** - * @cfg {String} id - * The unique id of the provider (defaults to an {@link Ext#id auto-assigned id}). - * You should assign an id if you need to be able to access the provider later and you do - * not have an object reference available, for example: - *
      
      -Ext.Direct.addProvider(
      -    {
      -        type: 'polling',
      -        url:  'php/poll.php',
      -        id:   'poll-provider'
      -    }
      -);
      -     
      -var p = {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#getProvider getProvider}('poll-provider');
      -p.disconnect();
      -     * 
      - */ - - /** - * @cfg {Number} priority - * Priority of the request. Lower is higher priority, 0 means "duplex" (always on). - * All Providers default to 1 except for PollingProvider which defaults to 3. - */ - priority: 1, - - /** - * @cfg {String} type - * Required, undefined by default. The type of provider specified - * to {@link Ext.Direct Ext.Direct}.{@link Ext.Direct#addProvider addProvider} to create a - * new Provider. Acceptable values by default are:
        - *
      • polling : {@link Ext.direct.PollingProvider PollingProvider}
      • - *
      • remoting : {@link Ext.direct.RemotingProvider RemotingProvider}
      • - *
      - */ - - // private - constructor : function(config){ - Ext.apply(this, config); - this.addEvents( - /** - * @event connect - * Fires when the Provider connects to the server-side - * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}. - */ - 'connect', - /** - * @event disconnect - * Fires when the Provider disconnects from the server-side - * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}. - */ - 'disconnect', - /** - * @event data - * Fires when the Provider receives data from the server-side - * @param {Ext.direct.Provider} provider The {@link Ext.direct.Provider Provider}. - * @param {event} e The {@link Ext.Direct#eventTypes Ext.Direct.Event type} that occurred. - */ - 'data', - /** - * @event exception - * Fires when the Provider receives an exception from the server-side - */ - 'exception' - ); - Ext.direct.Provider.superclass.constructor.call(this, config); - }, - - /** - * Returns whether or not the server-side is currently connected. - * Abstract method for subclasses to implement. - */ - isConnected: function(){ - return false; - }, - - /** - * Abstract methods for subclasses to implement. - */ - connect: Ext.emptyFn, - - /** - * Abstract methods for subclasses to implement. - */ - disconnect: Ext.emptyFn -}); -/** - * @class Ext.direct.JsonProvider - * @extends Ext.direct.Provider - */ -Ext.direct.JsonProvider = Ext.extend(Ext.direct.Provider, { - parseResponse: function(xhr){ - if(!Ext.isEmpty(xhr.responseText)){ - if(typeof xhr.responseText == 'object'){ - return xhr.responseText; - } - return Ext.decode(xhr.responseText); - } - return null; - }, - - getEvents: function(xhr){ - var data = null; - try{ - data = this.parseResponse(xhr); - }catch(e){ - var event = new Ext.Direct.ExceptionEvent({ - data: e, - xhr: xhr, - code: Ext.Direct.exceptions.PARSE, - message: 'Error parsing json response: \n\n ' + data - }); - return [event]; - } - var events = []; - if(Ext.isArray(data)){ - for(var i = 0, len = data.length; i < len; i++){ - events.push(Ext.Direct.createEvent(data[i])); - } - }else{ - events.push(Ext.Direct.createEvent(data)); - } - return events; - } -});/** - * @class Ext.direct.PollingProvider - * @extends Ext.direct.JsonProvider - * - *

      Provides for repetitive polling of the server at distinct {@link #interval intervals}. - * The initial request for data originates from the client, and then is responded to by the - * server.

      - * - *

      All configurations for the PollingProvider should be generated by the server-side - * API portion of the Ext.Direct stack.

      - * - *

      An instance of PollingProvider may be created directly via the new keyword or by simply - * specifying type = 'polling'. For example:

      - *
      
      -var pollA = new Ext.direct.PollingProvider({
      -    type:'polling',
      -    url: 'php/pollA.php',
      -});
      -Ext.Direct.addProvider(pollA);
      -pollA.disconnect();
      -
      -Ext.Direct.addProvider(
      -    {
      -        type:'polling',
      -        url: 'php/pollB.php',
      -        id: 'pollB-provider'
      -    }
      -);
      -var pollB = Ext.Direct.getProvider('pollB-provider');
      - * 
      - */ -Ext.direct.PollingProvider = Ext.extend(Ext.direct.JsonProvider, { - /** - * @cfg {Number} priority - * Priority of the request (defaults to 3). See {@link Ext.direct.Provider#priority}. - */ - // override default priority - priority: 3, - - /** - * @cfg {Number} interval - * How often to poll the server-side in milliseconds (defaults to 3000 - every - * 3 seconds). - */ - interval: 3000, - - /** - * @cfg {Object} baseParams An object containing properties which are to be sent as parameters - * on every polling request - */ - - /** - * @cfg {String/Function} url - * The url which the PollingProvider should contact with each request. This can also be - * an imported Ext.Direct method which will accept the baseParams as its only argument. - */ - - // private - constructor : function(config){ - Ext.direct.PollingProvider.superclass.constructor.call(this, config); - this.addEvents( - /** - * @event beforepoll - * Fired immediately before a poll takes place, an event handler can return false - * in order to cancel the poll. - * @param {Ext.direct.PollingProvider} - */ - 'beforepoll', - /** - * @event poll - * This event has not yet been implemented. - * @param {Ext.direct.PollingProvider} - */ - 'poll' - ); - }, - - // inherited - isConnected: function(){ - return !!this.pollTask; - }, - - /** - * Connect to the server-side and begin the polling process. To handle each - * response subscribe to the data event. - */ - connect: function(){ - if(this.url && !this.pollTask){ - this.pollTask = Ext.TaskMgr.start({ - run: function(){ - if(this.fireEvent('beforepoll', this) !== false){ - if(typeof this.url == 'function'){ - this.url(this.baseParams); - }else{ - Ext.Ajax.request({ - url: this.url, - callback: this.onData, - scope: this, - params: this.baseParams - }); - } - } - }, - interval: this.interval, - scope: this - }); - this.fireEvent('connect', this); - }else if(!this.url){ - throw 'Error initializing PollingProvider, no url configured.'; - } - }, - - /** - * Disconnect from the server-side and stop the polling process. The disconnect - * event will be fired on a successful disconnect. - */ - disconnect: function(){ - if(this.pollTask){ - Ext.TaskMgr.stop(this.pollTask); - delete this.pollTask; - this.fireEvent('disconnect', this); - } - }, - - // private - onData: function(opt, success, xhr){ - if(success){ - var events = this.getEvents(xhr); - for(var i = 0, len = events.length; i < len; i++){ - var e = events[i]; - this.fireEvent('data', this, e); - } - }else{ - var e = new Ext.Direct.ExceptionEvent({ - data: e, - code: Ext.Direct.exceptions.TRANSPORT, - message: 'Unable to connect to the server.', - xhr: xhr - }); - this.fireEvent('data', this, e); - } - } -}); - -Ext.Direct.PROVIDERS['polling'] = Ext.direct.PollingProvider;/** - * @class Ext.direct.RemotingProvider - * @extends Ext.direct.JsonProvider - * - *

      The {@link Ext.direct.RemotingProvider RemotingProvider} exposes access to - * server side methods on the client (a remote procedure call (RPC) type of - * connection where the client can initiate a procedure on the server).

      - * - *

      This allows for code to be organized in a fashion that is maintainable, - * while providing a clear path between client and server, something that is - * not always apparent when using URLs.

      - * - *

      To accomplish this the server-side needs to describe what classes and methods - * are available on the client-side. This configuration will typically be - * outputted by the server-side Ext.Direct stack when the API description is built.

      - */ -Ext.direct.RemotingProvider = Ext.extend(Ext.direct.JsonProvider, { - /** - * @cfg {Object} actions - * Object literal defining the server side actions and methods. For example, if - * the Provider is configured with: - *
      
      -"actions":{ // each property within the 'actions' object represents a server side Class 
      -    "TestAction":[ // array of methods within each server side Class to be   
      -    {              // stubbed out on client
      -        "name":"doEcho", 
      -        "len":1            
      -    },{
      -        "name":"multiply",// name of method
      -        "len":2           // The number of parameters that will be used to create an
      -                          // array of data to send to the server side function.
      -                          // Ensure the server sends back a Number, not a String. 
      -    },{
      -        "name":"doForm",
      -        "formHandler":true, // direct the client to use specialized form handling method 
      -        "len":1
      -    }]
      -}
      -     * 
      - *

      Note that a Store is not required, a server method can be called at any time. - * In the following example a client side handler is used to call the - * server side method "multiply" in the server-side "TestAction" Class:

      - *
      
      -TestAction.multiply(
      -    2, 4, // pass two arguments to server, so specify len=2
      -    // callback function after the server is called
      -    // result: the result returned by the server
      -    //      e: Ext.Direct.RemotingEvent object
      -    function(result, e){
      -        var t = e.getTransaction();
      -        var action = t.action; // server side Class called
      -        var method = t.method; // server side method called
      -        if(e.status){
      -            var answer = Ext.encode(result); // 8
      -    
      -        }else{
      -            var msg = e.message; // failure message
      -        }
      -    }
      -);
      -     * 
      - * In the example above, the server side "multiply" function will be passed two - * arguments (2 and 4). The "multiply" method should return the value 8 which will be - * available as the result in the example above. - */ - - /** - * @cfg {String/Object} namespace - * Namespace for the Remoting Provider (defaults to the browser global scope of window). - * Explicitly specify the namespace Object, or specify a String to have a - * {@link Ext#namespace namespace created} implicitly. - */ - - /** - * @cfg {String} url - * Required. The url to connect to the {@link Ext.Direct} server-side router. - */ - - /** - * @cfg {String} enableUrlEncode - * Specify which param will hold the arguments for the method. - * Defaults to 'data'. - */ - - /** - * @cfg {Number/Boolean} enableBuffer - *

      true or false to enable or disable combining of method - * calls. If a number is specified this is the amount of time in milliseconds - * to wait before sending a batched request (defaults to 10).

      - *

      Calls which are received within the specified timeframe will be - * concatenated together and sent in a single request, optimizing the - * application by reducing the amount of round trips that have to be made - * to the server.

      - */ - enableBuffer: 10, - - /** - * @cfg {Number} maxRetries - * Number of times to re-attempt delivery on failure of a call. Defaults to 1. - */ - maxRetries: 1, - - /** - * @cfg {Number} timeout - * The timeout to use for each request. Defaults to undefined. - */ - timeout: undefined, - - constructor : function(config){ - Ext.direct.RemotingProvider.superclass.constructor.call(this, config); - this.addEvents( - /** - * @event beforecall - * Fires immediately before the client-side sends off the RPC call. - * By returning false from an event handler you can prevent the call from - * executing. - * @param {Ext.direct.RemotingProvider} provider - * @param {Ext.Direct.Transaction} transaction - * @param {Object} meta The meta data - */ - 'beforecall', - /** - * @event call - * Fires immediately after the request to the server-side is sent. This does - * NOT fire after the response has come back from the call. - * @param {Ext.direct.RemotingProvider} provider - * @param {Ext.Direct.Transaction} transaction - * @param {Object} meta The meta data - */ - 'call' - ); - this.namespace = (Ext.isString(this.namespace)) ? Ext.ns(this.namespace) : this.namespace || window; - this.transactions = {}; - this.callBuffer = []; - }, - - // private - initAPI : function(){ - var o = this.actions; - for(var c in o){ - var cls = this.namespace[c] || (this.namespace[c] = {}), - ms = o[c]; - for(var i = 0, len = ms.length; i < len; i++){ - var m = ms[i]; - cls[m.name] = this.createMethod(c, m); - } - } - }, - - // inherited - isConnected: function(){ - return !!this.connected; - }, - - connect: function(){ - if(this.url){ - this.initAPI(); - this.connected = true; - this.fireEvent('connect', this); - }else if(!this.url){ - throw 'Error initializing RemotingProvider, no url configured.'; - } - }, - - disconnect: function(){ - if(this.connected){ - this.connected = false; - this.fireEvent('disconnect', this); - } - }, - - onData: function(opt, success, xhr){ - if(success){ - var events = this.getEvents(xhr); - for(var i = 0, len = events.length; i < len; i++){ - var e = events[i], - t = this.getTransaction(e); - this.fireEvent('data', this, e); - if(t){ - this.doCallback(t, e, true); - Ext.Direct.removeTransaction(t); - } - } - }else{ - var ts = [].concat(opt.ts); - for(var i = 0, len = ts.length; i < len; i++){ - var t = this.getTransaction(ts[i]); - if(t && t.retryCount < this.maxRetries){ - t.retry(); - }else{ - var e = new Ext.Direct.ExceptionEvent({ - data: e, - transaction: t, - code: Ext.Direct.exceptions.TRANSPORT, - message: 'Unable to connect to the server.', - xhr: xhr - }); - this.fireEvent('data', this, e); - if(t){ - this.doCallback(t, e, false); - Ext.Direct.removeTransaction(t); - } - } - } - } - }, - - getCallData: function(t){ - return { - action: t.action, - method: t.method, - data: t.data, - type: 'rpc', - tid: t.tid - }; - }, - - doSend : function(data){ - var o = { - url: this.url, - callback: this.onData, - scope: this, - ts: data, - timeout: this.timeout - }, callData; - - if(Ext.isArray(data)){ - callData = []; - for(var i = 0, len = data.length; i < len; i++){ - callData.push(this.getCallData(data[i])); - } - }else{ - callData = this.getCallData(data); - } - - if(this.enableUrlEncode){ - var params = {}; - params[Ext.isString(this.enableUrlEncode) ? this.enableUrlEncode : 'data'] = Ext.encode(callData); - o.params = params; - }else{ - o.jsonData = callData; - } - Ext.Ajax.request(o); - }, - - combineAndSend : function(){ - var len = this.callBuffer.length; - if(len > 0){ - this.doSend(len == 1 ? this.callBuffer[0] : this.callBuffer); - this.callBuffer = []; - } - }, - - queueTransaction: function(t){ - if(t.form){ - this.processForm(t); - return; - } - this.callBuffer.push(t); - if(this.enableBuffer){ - if(!this.callTask){ - this.callTask = new Ext.util.DelayedTask(this.combineAndSend, this); - } - this.callTask.delay(Ext.isNumber(this.enableBuffer) ? this.enableBuffer : 10); - }else{ - this.combineAndSend(); - } - }, - - doCall : function(c, m, args){ - var data = null, hs = args[m.len], scope = args[m.len+1]; - - if(m.len !== 0){ - data = args.slice(0, m.len); - } - - var t = new Ext.Direct.Transaction({ - provider: this, - args: args, - action: c, - method: m.name, - data: data, - cb: scope && Ext.isFunction(hs) ? hs.createDelegate(scope) : hs - }); - - if(this.fireEvent('beforecall', this, t, m) !== false){ - Ext.Direct.addTransaction(t); - this.queueTransaction(t); - this.fireEvent('call', this, t, m); - } - }, - - doForm : function(c, m, form, callback, scope){ - var t = new Ext.Direct.Transaction({ - provider: this, - action: c, - method: m.name, - args:[form, callback, scope], - cb: scope && Ext.isFunction(callback) ? callback.createDelegate(scope) : callback, - isForm: true - }); - - if(this.fireEvent('beforecall', this, t, m) !== false){ - Ext.Direct.addTransaction(t); - var isUpload = String(form.getAttribute("enctype")).toLowerCase() == 'multipart/form-data', - params = { - extTID: t.tid, - extAction: c, - extMethod: m.name, - extType: 'rpc', - extUpload: String(isUpload) - }; - - // change made from typeof callback check to callback.params - // to support addl param passing in DirectSubmit EAC 6/2 - Ext.apply(t, { - form: Ext.getDom(form), - isUpload: isUpload, - params: callback && Ext.isObject(callback.params) ? Ext.apply(params, callback.params) : params - }); - this.fireEvent('call', this, t, m); - this.processForm(t); - } - }, - - processForm: function(t){ - Ext.Ajax.request({ - url: this.url, - params: t.params, - callback: this.onData, - scope: this, - form: t.form, - isUpload: t.isUpload, - ts: t - }); - }, - - createMethod : function(c, m){ - var f; - if(!m.formHandler){ - f = function(){ - this.doCall(c, m, Array.prototype.slice.call(arguments, 0)); - }.createDelegate(this); - }else{ - f = function(form, callback, scope){ - this.doForm(c, m, form, callback, scope); - }.createDelegate(this); - } - f.directCfg = { - action: c, - method: m - }; - return f; - }, - - getTransaction: function(opt){ - return opt && opt.tid ? Ext.Direct.getTransaction(opt.tid) : null; - }, - - doCallback: function(t, e){ - var fn = e.status ? 'success' : 'failure'; - if(t && t.cb){ - var hs = t.cb, - result = Ext.isDefined(e.result) ? e.result : e.data; - if(Ext.isFunction(hs)){ - hs(result, e); - } else{ - Ext.callback(hs[fn], hs.scope, [result, e]); - Ext.callback(hs.callback, hs.scope, [result, e]); - } - } - } -}); -Ext.Direct.PROVIDERS['remoting'] = Ext.direct.RemotingProvider;/** - * @class Ext.Resizable - * @extends Ext.util.Observable - *

      Applies drag handles to an element to make it resizable. The drag handles are inserted into the element - * and positioned absolute. Some elements, such as a textarea or image, don't support this. To overcome that, you can wrap - * the textarea in a div and set 'resizeChild' to true (or to the id of the element), or set wrap:true in your config and - * the element will be wrapped for you automatically.

      - *

      Here is the list of valid resize handles:

      - *
      -Value   Description
      -------  -------------------
      - 'n'     north
      - 's'     south
      - 'e'     east
      - 'w'     west
      - 'nw'    northwest
      - 'sw'    southwest
      - 'se'    southeast
      - 'ne'    northeast
      - 'all'   all
      -
      - *

      Here's an example showing the creation of a typical Resizable:

      - *
      
      -var resizer = new Ext.Resizable('element-id', {
      -    handles: 'all',
      -    minWidth: 200,
      -    minHeight: 100,
      -    maxWidth: 500,
      -    maxHeight: 400,
      -    pinned: true
      -});
      -resizer.on('resize', myHandler);
      -
      - *

      To hide a particular handle, set its display to none in CSS, or through script:
      - * resizer.east.setDisplayed(false);

      - * @constructor - * Create a new resizable component - * @param {Mixed} el The id or element to resize - * @param {Object} config configuration options - */ -Ext.Resizable = Ext.extend(Ext.util.Observable, { - - constructor: function(el, config){ - this.el = Ext.get(el); - if(config && config.wrap){ - config.resizeChild = this.el; - this.el = this.el.wrap(typeof config.wrap == 'object' ? config.wrap : {cls:'xresizable-wrap'}); - this.el.id = this.el.dom.id = config.resizeChild.id + '-rzwrap'; - this.el.setStyle('overflow', 'hidden'); - this.el.setPositioning(config.resizeChild.getPositioning()); - config.resizeChild.clearPositioning(); - if(!config.width || !config.height){ - var csize = config.resizeChild.getSize(); - this.el.setSize(csize.width, csize.height); - } - if(config.pinned && !config.adjustments){ - config.adjustments = 'auto'; - } - } - - /** - * The proxy Element that is resized in place of the real Element during the resize operation. - * This may be queried using {@link Ext.Element#getBox} to provide the new area to resize to. - * Read only. - * @type Ext.Element. - * @property proxy - */ - this.proxy = this.el.createProxy({tag: 'div', cls: 'x-resizable-proxy', id: this.el.id + '-rzproxy'}, Ext.getBody()); - this.proxy.unselectable(); - this.proxy.enableDisplayMode('block'); - - Ext.apply(this, config); - - if(this.pinned){ - this.disableTrackOver = true; - this.el.addClass('x-resizable-pinned'); - } - // if the element isn't positioned, make it relative - var position = this.el.getStyle('position'); - if(position != 'absolute' && position != 'fixed'){ - this.el.setStyle('position', 'relative'); - } - if(!this.handles){ // no handles passed, must be legacy style - this.handles = 's,e,se'; - if(this.multiDirectional){ - this.handles += ',n,w'; - } - } - if(this.handles == 'all'){ - this.handles = 'n s e w ne nw se sw'; - } - var hs = this.handles.split(/\s*?[,;]\s*?| /); - var ps = Ext.Resizable.positions; - for(var i = 0, len = hs.length; i < len; i++){ - if(hs[i] && ps[hs[i]]){ - var pos = ps[hs[i]]; - this[pos] = new Ext.Resizable.Handle(this, pos, this.disableTrackOver, this.transparent, this.handleCls); - } - } - // legacy - this.corner = this.southeast; - - if(this.handles.indexOf('n') != -1 || this.handles.indexOf('w') != -1){ - this.updateBox = true; - } - - this.activeHandle = null; - - if(this.resizeChild){ - if(typeof this.resizeChild == 'boolean'){ - this.resizeChild = Ext.get(this.el.dom.firstChild, true); - }else{ - this.resizeChild = Ext.get(this.resizeChild, true); - } - } - - if(this.adjustments == 'auto'){ - var rc = this.resizeChild; - var hw = this.west, he = this.east, hn = this.north, hs = this.south; - if(rc && (hw || hn)){ - rc.position('relative'); - rc.setLeft(hw ? hw.el.getWidth() : 0); - rc.setTop(hn ? hn.el.getHeight() : 0); - } - this.adjustments = [ - (he ? -he.el.getWidth() : 0) + (hw ? -hw.el.getWidth() : 0), - (hn ? -hn.el.getHeight() : 0) + (hs ? -hs.el.getHeight() : 0) -1 - ]; - } - - if(this.draggable){ - this.dd = this.dynamic ? - this.el.initDD(null) : this.el.initDDProxy(null, {dragElId: this.proxy.id}); - this.dd.setHandleElId(this.resizeChild ? this.resizeChild.id : this.el.id); - if(this.constrainTo){ - this.dd.constrainTo(this.constrainTo); - } - } - - this.addEvents( - /** - * @event beforeresize - * Fired before resize is allowed. Set {@link #enabled} to false to cancel resize. - * @param {Ext.Resizable} this - * @param {Ext.EventObject} e The mousedown event - */ - 'beforeresize', - /** - * @event resize - * Fired after a resize. - * @param {Ext.Resizable} this - * @param {Number} width The new width - * @param {Number} height The new height - * @param {Ext.EventObject} e The mouseup event - */ - 'resize' - ); - - if(this.width !== null && this.height !== null){ - this.resizeTo(this.width, this.height); - }else{ - this.updateChildSize(); - } - if(Ext.isIE){ - this.el.dom.style.zoom = 1; - } - Ext.Resizable.superclass.constructor.call(this); - }, - - /** - * @cfg {Array/String} adjustments String 'auto' or an array [width, height] with values to be added to the - * resize operation's new size (defaults to [0, 0]) - */ - adjustments : [0, 0], - /** - * @cfg {Boolean} animate True to animate the resize (not compatible with dynamic sizing, defaults to false) - */ - animate : false, - /** - * @cfg {Mixed} constrainTo Constrain the resize to a particular element - */ - /** - * @cfg {Boolean} disableTrackOver True to disable mouse tracking. This is only applied at config time. (defaults to false) - */ - disableTrackOver : false, - /** - * @cfg {Boolean} draggable Convenience to initialize drag drop (defaults to false) - */ - draggable: false, - /** - * @cfg {Number} duration Animation duration if animate = true (defaults to 0.35) - */ - duration : 0.35, - /** - * @cfg {Boolean} dynamic True to resize the element while dragging instead of using a proxy (defaults to false) - */ - dynamic : false, - /** - * @cfg {String} easing Animation easing if animate = true (defaults to 'easingOutStrong') - */ - easing : 'easeOutStrong', - /** - * @cfg {Boolean} enabled False to disable resizing (defaults to true) - */ - enabled : true, - /** - * @property enabled Writable. False if resizing is disabled. - * @type Boolean - */ - /** - * @cfg {String} handles String consisting of the resize handles to display (defaults to undefined). - * Specify either 'all' or any of 'n s e w ne nw se sw'. - */ - handles : false, - /** - * @cfg {Boolean} multiDirectional Deprecated. Deprecated style of adding multi-direction resize handles. - */ - multiDirectional : false, - /** - * @cfg {Number} height The height of the element in pixels (defaults to null) - */ - height : null, - /** - * @cfg {Number} width The width of the element in pixels (defaults to null) - */ - width : null, - /** - * @cfg {Number} heightIncrement The increment to snap the height resize in pixels - * (only applies if {@link #dynamic}==true). Defaults to 0. - */ - heightIncrement : 0, - /** - * @cfg {Number} widthIncrement The increment to snap the width resize in pixels - * (only applies if {@link #dynamic}==true). Defaults to 0. - */ - widthIncrement : 0, - /** - * @cfg {Number} minHeight The minimum height for the element (defaults to 5) - */ - minHeight : 5, - /** - * @cfg {Number} minWidth The minimum width for the element (defaults to 5) - */ - minWidth : 5, - /** - * @cfg {Number} maxHeight The maximum height for the element (defaults to 10000) - */ - maxHeight : 10000, - /** - * @cfg {Number} maxWidth The maximum width for the element (defaults to 10000) - */ - maxWidth : 10000, - /** - * @cfg {Number} minX The minimum x for the element (defaults to 0) - */ - minX: 0, - /** - * @cfg {Number} minY The minimum x for the element (defaults to 0) - */ - minY: 0, - /** - * @cfg {Boolean} pinned True to ensure that the resize handles are always visible, false to display them only when the - * user mouses over the resizable borders. This is only applied at config time. (defaults to false) - */ - pinned : false, - /** - * @cfg {Boolean} preserveRatio True to preserve the original ratio between height - * and width during resize (defaults to false) - */ - preserveRatio : false, - /** - * @cfg {Boolean/String/Element} resizeChild True to resize the first child, or id/element to resize (defaults to false) - */ - resizeChild : false, - /** - * @cfg {Boolean} transparent True for transparent handles. This is only applied at config time. (defaults to false) - */ - transparent: false, - /** - * @cfg {Ext.lib.Region} resizeRegion Constrain the resize to a particular region - */ - /** - * @cfg {Boolean} wrap True to wrap an element with a div if needed (required for textareas and images, defaults to false) - * in favor of the handles config option (defaults to false) - */ - /** - * @cfg {String} handleCls A css class to add to each handle. Defaults to ''. - */ - - - /** - * Perform a manual resize and fires the 'resize' event. - * @param {Number} width - * @param {Number} height - */ - resizeTo : function(width, height){ - this.el.setSize(width, height); - this.updateChildSize(); - this.fireEvent('resize', this, width, height, null); - }, - - // private - startSizing : function(e, handle){ - this.fireEvent('beforeresize', this, e); - if(this.enabled){ // 2nd enabled check in case disabled before beforeresize handler - - if(!this.overlay){ - this.overlay = this.el.createProxy({tag: 'div', cls: 'x-resizable-overlay', html: ' '}, Ext.getBody()); - this.overlay.unselectable(); - this.overlay.enableDisplayMode('block'); - this.overlay.on({ - scope: this, - mousemove: this.onMouseMove, - mouseup: this.onMouseUp - }); - } - this.overlay.setStyle('cursor', handle.el.getStyle('cursor')); - - this.resizing = true; - this.startBox = this.el.getBox(); - this.startPoint = e.getXY(); - this.offsets = [(this.startBox.x + this.startBox.width) - this.startPoint[0], - (this.startBox.y + this.startBox.height) - this.startPoint[1]]; - - this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true)); - this.overlay.show(); - - if(this.constrainTo) { - var ct = Ext.get(this.constrainTo); - this.resizeRegion = ct.getRegion().adjust( - ct.getFrameWidth('t'), - ct.getFrameWidth('l'), - -ct.getFrameWidth('b'), - -ct.getFrameWidth('r') - ); - } - - this.proxy.setStyle('visibility', 'hidden'); // workaround display none - this.proxy.show(); - this.proxy.setBox(this.startBox); - if(!this.dynamic){ - this.proxy.setStyle('visibility', 'visible'); - } - } - }, - - // private - onMouseDown : function(handle, e){ - if(this.enabled){ - e.stopEvent(); - this.activeHandle = handle; - this.startSizing(e, handle); - } - }, - - // private - onMouseUp : function(e){ - this.activeHandle = null; - var size = this.resizeElement(); - this.resizing = false; - this.handleOut(); - this.overlay.hide(); - this.proxy.hide(); - this.fireEvent('resize', this, size.width, size.height, e); - }, - - // private - updateChildSize : function(){ - if(this.resizeChild){ - var el = this.el; - var child = this.resizeChild; - var adj = this.adjustments; - if(el.dom.offsetWidth){ - var b = el.getSize(true); - child.setSize(b.width+adj[0], b.height+adj[1]); - } - // Second call here for IE - // The first call enables instant resizing and - // the second call corrects scroll bars if they - // exist - if(Ext.isIE){ - setTimeout(function(){ - if(el.dom.offsetWidth){ - var b = el.getSize(true); - child.setSize(b.width+adj[0], b.height+adj[1]); - } - }, 10); - } - } - }, - - // private - snap : function(value, inc, min){ - if(!inc || !value){ - return value; - } - var newValue = value; - var m = value % inc; - if(m > 0){ - if(m > (inc/2)){ - newValue = value + (inc-m); - }else{ - newValue = value - m; - } - } - return Math.max(min, newValue); - }, - - /** - *

      Performs resizing of the associated Element. This method is called internally by this - * class, and should not be called by user code.

      - *

      If a Resizable is being used to resize an Element which encapsulates a more complex UI - * component such as a Panel, this method may be overridden by specifying an implementation - * as a config option to provide appropriate behaviour at the end of the resize operation on - * mouseup, for example resizing the Panel, and relaying the Panel's content.

      - *

      The new area to be resized to is available by examining the state of the {@link #proxy} - * Element. Example: -

      
      -new Ext.Panel({
      -    title: 'Resize me',
      -    x: 100,
      -    y: 100,
      -    renderTo: Ext.getBody(),
      -    floating: true,
      -    frame: true,
      -    width: 400,
      -    height: 200,
      -    listeners: {
      -        render: function(p) {
      -            new Ext.Resizable(p.getEl(), {
      -                handles: 'all',
      -                pinned: true,
      -                transparent: true,
      -                resizeElement: function() {
      -                    var box = this.proxy.getBox();
      -                    p.updateBox(box);
      -                    if (p.layout) {
      -                        p.doLayout();
      -                    }
      -                    return box;
      -                }
      -           });
      -       }
      -    }
      -}).show();
      -
      - */ - resizeElement : function(){ - var box = this.proxy.getBox(); - if(this.updateBox){ - this.el.setBox(box, false, this.animate, this.duration, null, this.easing); - }else{ - this.el.setSize(box.width, box.height, this.animate, this.duration, null, this.easing); - } - this.updateChildSize(); - if(!this.dynamic){ - this.proxy.hide(); - } - if(this.draggable && this.constrainTo){ - this.dd.resetConstraints(); - this.dd.constrainTo(this.constrainTo); - } - return box; - }, - - // private - constrain : function(v, diff, m, mx){ - if(v - diff < m){ - diff = v - m; - }else if(v - diff > mx){ - diff = v - mx; - } - return diff; - }, - - // private - onMouseMove : function(e){ - if(this.enabled && this.activeHandle){ - try{// try catch so if something goes wrong the user doesn't get hung - - if(this.resizeRegion && !this.resizeRegion.contains(e.getPoint())) { - return; - } - - //var curXY = this.startPoint; - var curSize = this.curSize || this.startBox, - x = this.startBox.x, y = this.startBox.y, - ox = x, - oy = y, - w = curSize.width, - h = curSize.height, - ow = w, - oh = h, - mw = this.minWidth, - mh = this.minHeight, - mxw = this.maxWidth, - mxh = this.maxHeight, - wi = this.widthIncrement, - hi = this.heightIncrement, - eventXY = e.getXY(), - diffX = -(this.startPoint[0] - Math.max(this.minX, eventXY[0])), - diffY = -(this.startPoint[1] - Math.max(this.minY, eventXY[1])), - pos = this.activeHandle.position, - tw, - th; - - switch(pos){ - case 'east': - w += diffX; - w = Math.min(Math.max(mw, w), mxw); - break; - case 'south': - h += diffY; - h = Math.min(Math.max(mh, h), mxh); - break; - case 'southeast': - w += diffX; - h += diffY; - w = Math.min(Math.max(mw, w), mxw); - h = Math.min(Math.max(mh, h), mxh); - break; - case 'north': - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - break; - case 'west': - diffX = this.constrain(w, diffX, mw, mxw); - x += diffX; - w -= diffX; - break; - case 'northeast': - w += diffX; - w = Math.min(Math.max(mw, w), mxw); - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - break; - case 'northwest': - diffX = this.constrain(w, diffX, mw, mxw); - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - x += diffX; - w -= diffX; - break; - case 'southwest': - diffX = this.constrain(w, diffX, mw, mxw); - h += diffY; - h = Math.min(Math.max(mh, h), mxh); - x += diffX; - w -= diffX; - break; - } - - var sw = this.snap(w, wi, mw); - var sh = this.snap(h, hi, mh); - if(sw != w || sh != h){ - switch(pos){ - case 'northeast': - y -= sh - h; - break; - case 'north': - y -= sh - h; - break; - case 'southwest': - x -= sw - w; - break; - case 'west': - x -= sw - w; - break; - case 'northwest': - x -= sw - w; - y -= sh - h; - break; - } - w = sw; - h = sh; - } - - if(this.preserveRatio){ - switch(pos){ - case 'southeast': - case 'east': - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - w = ow * (h/oh); - break; - case 'south': - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - break; - case 'northeast': - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - break; - case 'north': - tw = w; - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - x += (tw - w) / 2; - break; - case 'southwest': - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - tw = w; - w = ow * (h/oh); - x += tw - w; - break; - case 'west': - th = h; - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - y += (th - h) / 2; - tw = w; - w = ow * (h/oh); - x += tw - w; - break; - case 'northwest': - tw = w; - th = h; - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - w = ow * (h/oh); - y += th - h; - x += tw - w; - break; - - } - } - this.proxy.setBounds(x, y, w, h); - if(this.dynamic){ - this.resizeElement(); - } - }catch(ex){} - } - }, - - // private - handleOver : function(){ - if(this.enabled){ - this.el.addClass('x-resizable-over'); - } - }, - - // private - handleOut : function(){ - if(!this.resizing){ - this.el.removeClass('x-resizable-over'); - } - }, - - /** - * Returns the element this component is bound to. - * @return {Ext.Element} - */ - getEl : function(){ - return this.el; - }, - - /** - * Returns the resizeChild element (or null). - * @return {Ext.Element} - */ - getResizeChild : function(){ - return this.resizeChild; - }, - - /** - * Destroys this resizable. If the element was wrapped and - * removeEl is not true then the element remains. - * @param {Boolean} removeEl (optional) true to remove the element from the DOM - */ - destroy : function(removeEl){ - Ext.destroy(this.dd, this.overlay, this.proxy); - this.overlay = null; - this.proxy = null; - - var ps = Ext.Resizable.positions; - for(var k in ps){ - if(typeof ps[k] != 'function' && this[ps[k]]){ - this[ps[k]].destroy(); - } - } - if(removeEl){ - this.el.update(''); - Ext.destroy(this.el); - this.el = null; - } - this.purgeListeners(); - }, - - syncHandleHeight : function(){ - var h = this.el.getHeight(true); - if(this.west){ - this.west.el.setHeight(h); - } - if(this.east){ - this.east.el.setHeight(h); - } - } -}); - -// private -// hash to map config positions to true positions -Ext.Resizable.positions = { - n: 'north', s: 'south', e: 'east', w: 'west', se: 'southeast', sw: 'southwest', nw: 'northwest', ne: 'northeast' -}; - -Ext.Resizable.Handle = Ext.extend(Object, { - constructor : function(rz, pos, disableTrackOver, transparent, cls){ - if(!this.tpl){ - // only initialize the template if resizable is used - var tpl = Ext.DomHelper.createTemplate( - {tag: 'div', cls: 'x-resizable-handle x-resizable-handle-{0}'} - ); - tpl.compile(); - Ext.Resizable.Handle.prototype.tpl = tpl; - } - this.position = pos; - this.rz = rz; - this.el = this.tpl.append(rz.el.dom, [this.position], true); - this.el.unselectable(); - if(transparent){ - this.el.setOpacity(0); - } - if(!Ext.isEmpty(cls)){ - this.el.addClass(cls); - } - this.el.on('mousedown', this.onMouseDown, this); - if(!disableTrackOver){ - this.el.on({ - scope: this, - mouseover: this.onMouseOver, - mouseout: this.onMouseOut - }); - } - }, - - // private - afterResize : function(rz){ - // do nothing - }, - // private - onMouseDown : function(e){ - this.rz.onMouseDown(this, e); - }, - // private - onMouseOver : function(e){ - this.rz.handleOver(this, e); - }, - // private - onMouseOut : function(e){ - this.rz.handleOut(this, e); - }, - // private - destroy : function(){ - Ext.destroy(this.el); - this.el = null; - } -}); -/** - * @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, - - /** - * @cfg {Number} showAnimDuration The number of seconds that the window show animation takes if enabled. - * Defaults to 0.25 - */ - showAnimDuration: 0.25, - - /** - * @cfg {Number} hideAnimDuration The number of seconds that the window hide animation takes if enabled. - * Defaults to 0.25 - */ - hideAnimDuration: 0.25, - - // 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){ - if (this.activeGhost) { - this.unghost(); - } - 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 (ct != document.body && !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: this.showAnimDuration, - 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: this.hideAnimDuration, - 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 + this.el.getConstrainOffset()) - }; - } - - 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 = Ext.extend(Ext.dd.DD, { - - constructor : 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; - }, - - moveOnly:true, - headerOffsets:[100, 25], - startDrag : function(){ - var w = this.win; - this.proxy = w.ghost(w.initialConfig.cls); - 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 - } - // Append a space here for sizing. In IE, for some reason, it wraps text incorrectly without one in some cases - msgEl.update(text ? 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; - - 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. - } - msgEl.update(text || ' '); - 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(Ext.isDefined(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 = Ext.extend(Object, { - - constructor : function(panel, config){ - this.panel = panel; - this.id = this.panel.id +'-ddproxy'; - Ext.apply(this, config); - }, - - /** - * @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(this.panel.initialConfig.cls, 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 = Ext.extend(Ext.dd.DragSource, { - - constructor : 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, - el = panel.body; - if(h){ - this.setHandleElId(h.id); - el = panel.header; - } - el.setStyle('cursor', 'move'); - this.scroll = false; - }, - - showFrame: Ext.emptyFn, - startDrag: Ext.emptyFn, - b4StartDrag: function(x, y) { - this.proxy.show(); - }, - b4MouseDown: function(e) { - var x = e.getPageX(), - 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); - } -});/** - * @class Ext.state.Provider - * Abstract base class for state provider implementations. This class provides methods - * for encoding and decoding typed variables including dates and defines the - * Provider interface. - */ -Ext.state.Provider = Ext.extend(Ext.util.Observable, { - - constructor : function(){ - /** - * @event statechange - * Fires when a state change occurs. - * @param {Provider} this This state provider - * @param {String} key The state key which was changed - * @param {String} value The encoded value for the state - */ - this.addEvents("statechange"); - this.state = {}; - Ext.state.Provider.superclass.constructor.call(this); - }, - - /** - * Returns the current value for a key - * @param {String} name The key name - * @param {Mixed} defaultValue A default value to return if the key's value is not found - * @return {Mixed} The state data - */ - get : function(name, defaultValue){ - return typeof this.state[name] == "undefined" ? - defaultValue : this.state[name]; - }, - - /** - * Clears a value from the state - * @param {String} name The key name - */ - clear : function(name){ - delete this.state[name]; - this.fireEvent("statechange", this, name, null); - }, - - /** - * Sets the value for a key - * @param {String} name The key name - * @param {Mixed} value The value to set - */ - set : function(name, value){ - this.state[name] = value; - this.fireEvent("statechange", this, name, value); - }, - - /** - * Decodes a string previously encoded with {@link #encodeValue}. - * @param {String} value The value to decode - * @return {Mixed} The decoded value - */ - decodeValue : function(cookie){ - /** - * a -> Array - * n -> Number - * d -> Date - * b -> Boolean - * s -> String - * o -> Object - * -> Empty (null) - */ - var re = /^(a|n|d|b|s|o|e)\:(.*)$/, - matches = re.exec(unescape(cookie)), - all, - type, - v, - kv; - if(!matches || !matches[1]){ - return; // non state cookie - } - type = matches[1]; - v = matches[2]; - switch(type){ - case 'e': - return null; - case 'n': - return parseFloat(v); - case 'd': - return new Date(Date.parse(v)); - case 'b': - return (v == '1'); - case 'a': - all = []; - if(v != ''){ - Ext.each(v.split('^'), function(val){ - all.push(this.decodeValue(val)); - }, this); - } - return all; - case 'o': - all = {}; - if(v != ''){ - Ext.each(v.split('^'), function(val){ - kv = val.split('='); - all[kv[0]] = this.decodeValue(kv[1]); - }, this); - } - return all; - default: - return v; - } - }, - - /** - * Encodes a value including type information. Decode with {@link #decodeValue}. - * @param {Mixed} value The value to encode - * @return {String} The encoded value - */ - encodeValue : function(v){ - var enc, - flat = '', - i = 0, - len, - key; - if(v == null){ - return 'e:1'; - }else if(typeof v == 'number'){ - enc = 'n:' + v; - }else if(typeof v == 'boolean'){ - enc = 'b:' + (v ? '1' : '0'); - }else if(Ext.isDate(v)){ - enc = 'd:' + v.toGMTString(); - }else if(Ext.isArray(v)){ - for(len = v.length; i < len; i++){ - flat += this.encodeValue(v[i]); - if(i != len - 1){ - flat += '^'; - } - } - enc = 'a:' + flat; - }else if(typeof v == 'object'){ - for(key in v){ - if(typeof v[key] != 'function' && v[key] !== undefined){ - flat += key + '=' + this.encodeValue(v[key]) + '^'; - } - } - enc = 'o:' + flat.substring(0, flat.length-1); - }else{ - enc = 's:' + v; - } - return escape(enc); - } -}); -/** - * @class Ext.state.Manager - * This is the global state manager. By default all components that are "state aware" check this class - * for state information if you don't pass them a custom state provider. In order for this class - * to be useful, it must be initialized with a provider when your application initializes. Example usage: -
      
      -// in your initialization function
      -init : function(){
      -   Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
      -   var win = new Window(...);
      -   win.restoreState();
      -}
      - 
      - * @singleton - */ -Ext.state.Manager = function(){ - var provider = new Ext.state.Provider(); - - return { - /** - * Configures the default state provider for your application - * @param {Provider} stateProvider The state provider to set - */ - setProvider : function(stateProvider){ - provider = stateProvider; - }, - - /** - * Returns the current value for a key - * @param {String} name The key name - * @param {Mixed} defaultValue The default value to return if the key lookup does not match - * @return {Mixed} The state data - */ - get : function(key, defaultValue){ - return provider.get(key, defaultValue); - }, - - /** - * Sets the value for a key - * @param {String} name The key name - * @param {Mixed} value The state data - */ - set : function(key, value){ - provider.set(key, value); - }, - - /** - * Clears a value from the state - * @param {String} name The key name - */ - clear : function(key){ - provider.clear(key); - }, - - /** - * Gets the currently configured state provider - * @return {Provider} The state provider - */ - getProvider : function(){ - return provider; - } - }; -}(); -/** - * @class Ext.state.CookieProvider - * @extends Ext.state.Provider - * The default Provider implementation which saves state via cookies. - *
      Usage: -
      
      -   var cp = new Ext.state.CookieProvider({
      -       path: "/cgi-bin/",
      -       expires: new Date(new Date().getTime()+(1000*60*60*24*30)), //30 days
      -       domain: "extjs.com"
      -   });
      -   Ext.state.Manager.setProvider(cp);
      - 
      - * @cfg {String} path The path for which the cookie is active (defaults to root '/' which makes it active for all pages in the site) - * @cfg {Date} expires The cookie expiration date (defaults to 7 days from now) - * @cfg {String} domain The domain to save the cookie for. Note that you cannot specify a different domain than - * your page is on, but you can specify a sub-domain, or simply the domain itself like 'extjs.com' to include - * all sub-domains if you need to access cookies across different sub-domains (defaults to null which uses the same - * domain the page is running on including the 'www' like 'www.extjs.com') - * @cfg {Boolean} secure True if the site is using SSL (defaults to false) - * @constructor - * Create a new CookieProvider - * @param {Object} config The configuration object - */ -Ext.state.CookieProvider = Ext.extend(Ext.state.Provider, { - - constructor : function(config){ - Ext.state.CookieProvider.superclass.constructor.call(this); - this.path = "/"; - this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days - this.domain = null; - this.secure = false; - Ext.apply(this, config); - this.state = this.readCookies(); - }, - - // private - set : function(name, value){ - if(typeof value == "undefined" || value === null){ - this.clear(name); - return; - } - this.setCookie(name, value); - Ext.state.CookieProvider.superclass.set.call(this, name, value); - }, - - // private - clear : function(name){ - this.clearCookie(name); - Ext.state.CookieProvider.superclass.clear.call(this, name); - }, - - // private - readCookies : function(){ - var cookies = {}, - c = document.cookie + ";", - re = /\s?(.*?)=(.*?);/g, - matches, - name, - value; - while((matches = re.exec(c)) != null){ - name = matches[1]; - value = matches[2]; - if(name && name.substring(0,3) == "ys-"){ - cookies[name.substr(3)] = this.decodeValue(value); - } - } - return cookies; - }, - - // private - setCookie : function(name, value){ - document.cookie = "ys-"+ name + "=" + this.encodeValue(value) + - ((this.expires == null) ? "" : ("; expires=" + this.expires.toGMTString())) + - ((this.path == null) ? "" : ("; path=" + this.path)) + - ((this.domain == null) ? "" : ("; domain=" + this.domain)) + - ((this.secure == true) ? "; secure" : ""); - }, - - // private - clearCookie : function(name){ - document.cookie = "ys-" + name + "=null; expires=Thu, 01-Jan-70 00:00:01 GMT" + - ((this.path == null) ? "" : ("; path=" + this.path)) + - ((this.domain == null) ? "" : ("; domain=" + this.domain)) + - ((this.secure == true) ? "; secure" : ""); - } -});/** - * @class Ext.DataView - * @extends Ext.BoxComponent - * A mechanism for displaying data using custom layout templates and formatting. DataView uses an {@link Ext.XTemplate} - * as its internal templating mechanism, and is bound to an {@link Ext.data.Store} - * so that as the data in the store changes the view is automatically updated to reflect the changes. The view also - * provides built-in behavior for many common events that can occur for its contained items including click, doubleclick, - * mouseover, mouseout, etc. as well as a built-in selection model. In order to use these features, an {@link #itemSelector} - * config must be provided for the DataView to determine what nodes it will be working with. - * - *

      The example below binds a DataView to a {@link Ext.data.Store} and renders it into an {@link Ext.Panel}.

      - *
      
      -var store = new Ext.data.JsonStore({
      -    url: 'get-images.php',
      -    root: 'images',
      -    fields: [
      -        'name', 'url',
      -        {name:'size', type: 'float'},
      -        {name:'lastmod', type:'date', dateFormat:'timestamp'}
      -    ]
      -});
      -store.load();
      -
      -var tpl = new Ext.XTemplate(
      -    '<tpl for=".">',
      -        '<div class="thumb-wrap" id="{name}">',
      -        '<div class="thumb"><img src="{url}" title="{name}"></div>',
      -        '<span class="x-editable">{shortName}</span></div>',
      -    '</tpl>',
      -    '<div class="x-clear"></div>'
      -);
      -
      -var panel = new Ext.Panel({
      -    id:'images-view',
      -    frame:true,
      -    width:535,
      -    autoHeight:true,
      -    collapsible:true,
      -    layout:'fit',
      -    title:'Simple DataView',
      -
      -    items: new Ext.DataView({
      -        store: store,
      -        tpl: tpl,
      -        autoHeight:true,
      -        multiSelect: true,
      -        overClass:'x-view-over',
      -        itemSelector:'div.thumb-wrap',
      -        emptyText: 'No images to display'
      -    })
      -});
      -panel.render(document.body);
      -
      - * @constructor - * Create a new DataView - * @param {Object} config The config object - * @xtype dataview - */ -Ext.DataView = Ext.extend(Ext.BoxComponent, { - /** - * @cfg {String/Array} tpl - * The HTML fragment or an array of fragments that will make up the template used by this DataView. This should - * be specified in the same format expected by the constructor of {@link Ext.XTemplate}. - */ - /** - * @cfg {Ext.data.Store} store - * The {@link Ext.data.Store} to bind this DataView to. - */ - /** - * @cfg {String} itemSelector - * This is a required setting. A simple CSS selector (e.g. div.some-class or - * span:first-child) that will be used to determine what nodes this DataView will be - * working with. - */ - /** - * @cfg {Boolean} multiSelect - * True to allow selection of more than one item at a time, false to allow selection of only a single item - * at a time or no selection at all, depending on the value of {@link #singleSelect} (defaults to false). - */ - /** - * @cfg {Boolean} singleSelect - * True to allow selection of exactly one item at a time, false to allow no selection at all (defaults to false). - * Note that if {@link #multiSelect} = true, this value will be ignored. - */ - /** - * @cfg {Boolean} simpleSelect - * True to enable multiselection by clicking on multiple items without requiring the user to hold Shift or Ctrl, - * false to force the user to hold Ctrl or Shift to select more than on item (defaults to false). - */ - /** - * @cfg {String} overClass - * A CSS class to apply to each item in the view on mouseover (defaults to undefined). - */ - /** - * @cfg {String} loadingText - * A string to display during data load operations (defaults to undefined). If specified, this text will be - * displayed in a loading div and the view's contents will be cleared while loading, otherwise the view's - * contents will continue to display normally until the new data is loaded and the contents are replaced. - */ - /** - * @cfg {String} selectedClass - * A CSS class to apply to each selected item in the view (defaults to 'x-view-selected'). - */ - selectedClass : "x-view-selected", - /** - * @cfg {String} emptyText - * The text to display in the view when there is no data to display (defaults to ''). - */ - emptyText : "", - - /** - * @cfg {Boolean} deferEmptyText True to defer emptyText being applied until the store's first load - */ - deferEmptyText: true, - /** - * @cfg {Boolean} trackOver True to enable mouseenter and mouseleave events - */ - trackOver: false, - - /** - * @cfg {Boolean} blockRefresh Set this to true to ignore datachanged events on the bound store. This is useful if - * you wish to provide custom transition animations via a plugin (defaults to false) - */ - blockRefresh: false, - - //private - last: false, - - // private - initComponent : function(){ - Ext.DataView.superclass.initComponent.call(this); - if(Ext.isString(this.tpl) || Ext.isArray(this.tpl)){ - this.tpl = new Ext.XTemplate(this.tpl); - } - - this.addEvents( - /** - * @event beforeclick - * Fires before a click is processed. Returns false to cancel the default action. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "beforeclick", - /** - * @event click - * Fires when a template node is clicked. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "click", - /** - * @event mouseenter - * Fires when the mouse enters a template node. trackOver:true or an overClass must be set to enable this event. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "mouseenter", - /** - * @event mouseleave - * Fires when the mouse leaves a template node. trackOver:true or an overClass must be set to enable this event. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "mouseleave", - /** - * @event containerclick - * Fires when a click occurs and it is not on a template node. - * @param {Ext.DataView} this - * @param {Ext.EventObject} e The raw event object - */ - "containerclick", - /** - * @event dblclick - * Fires when a template node is double clicked. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "dblclick", - /** - * @event contextmenu - * Fires when a template node is right clicked. - * @param {Ext.DataView} this - * @param {Number} index The index of the target node - * @param {HTMLElement} node The target node - * @param {Ext.EventObject} e The raw event object - */ - "contextmenu", - /** - * @event containercontextmenu - * Fires when a right click occurs that is not on a template node. - * @param {Ext.DataView} this - * @param {Ext.EventObject} e The raw event object - */ - "containercontextmenu", - /** - * @event selectionchange - * Fires when the selected nodes change. - * @param {Ext.DataView} this - * @param {Array} selections Array of the selected nodes - */ - "selectionchange", - - /** - * @event beforeselect - * Fires before a selection is made. If any handlers return false, the selection is cancelled. - * @param {Ext.DataView} this - * @param {HTMLElement} node The node to be selected - * @param {Array} selections Array of currently selected nodes - */ - "beforeselect" - ); - - this.store = Ext.StoreMgr.lookup(this.store); - this.all = new Ext.CompositeElementLite(); - this.selected = new Ext.CompositeElementLite(); - }, - - // private - afterRender : function(){ - Ext.DataView.superclass.afterRender.call(this); - - this.mon(this.getTemplateTarget(), { - "click": this.onClick, - "dblclick": this.onDblClick, - "contextmenu": this.onContextMenu, - scope:this - }); - - if(this.overClass || this.trackOver){ - this.mon(this.getTemplateTarget(), { - "mouseover": this.onMouseOver, - "mouseout": this.onMouseOut, - scope:this - }); - } - - if(this.store){ - this.bindStore(this.store, true); - } - }, - - /** - * Refreshes the view by reloading the data from the store and re-rendering the template. - */ - refresh : function() { - this.clearSelections(false, true); - var el = this.getTemplateTarget(), - records = this.store.getRange(); - - el.update(''); - if(records.length < 1){ - if(!this.deferEmptyText || this.hasSkippedEmptyText){ - el.update(this.emptyText); - } - this.all.clear(); - }else{ - this.tpl.overwrite(el, this.collectData(records, 0)); - this.all.fill(Ext.query(this.itemSelector, el.dom)); - this.updateIndexes(0); - } - this.hasSkippedEmptyText = true; - }, - - getTemplateTarget: function(){ - return this.el; - }, - - /** - * Function which can be overridden to provide custom formatting for each Record that is used by this - * DataView's {@link #tpl template} to render each node. - * @param {Array/Object} data The raw data object that was used to create the Record. - * @param {Number} recordIndex the index number of the Record being prepared for rendering. - * @param {Record} record The Record being prepared for rendering. - * @return {Array/Object} The formatted data in a format expected by the internal {@link #tpl template}'s overwrite() method. - * (either an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})) - */ - prepareData : function(data){ - return data; - }, - - /** - *

      Function which can be overridden which returns the data object passed to this - * DataView's {@link #tpl template} to render the whole DataView.

      - *

      This is usually an Array of data objects, each element of which is processed by an - * {@link Ext.XTemplate XTemplate} which uses '<tpl for=".">' to iterate over its supplied - * data object as an Array. However, named properties may be placed into the data object to - * provide non-repeating data such as headings, totals etc.

      - * @param {Array} records An Array of {@link Ext.data.Record}s to be rendered into the DataView. - * @param {Number} startIndex the index number of the Record being prepared for rendering. - * @return {Array} An Array of data objects to be processed by a repeating XTemplate. May also - * contain named properties. - */ - collectData : function(records, startIndex){ - var r = [], - i = 0, - len = records.length; - for(; i < len; i++){ - r[r.length] = this.prepareData(records[i].data, startIndex + i, records[i]); - } - return r; - }, - - // private - bufferRender : function(records, index){ - var div = document.createElement('div'); - this.tpl.overwrite(div, this.collectData(records, index)); - return Ext.query(this.itemSelector, div); - }, - - // private - onUpdate : function(ds, record){ - var index = this.store.indexOf(record); - if(index > -1){ - var sel = this.isSelected(index), - original = this.all.elements[index], - node = this.bufferRender([record], index)[0]; - - this.all.replaceElement(index, node, true); - if(sel){ - this.selected.replaceElement(original, node); - this.all.item(index).addClass(this.selectedClass); - } - this.updateIndexes(index, index); - } - }, - - // private - onAdd : function(ds, records, index){ - if(this.all.getCount() === 0){ - this.refresh(); - return; - } - var nodes = this.bufferRender(records, index), n, a = this.all.elements; - if(index < this.all.getCount()){ - n = this.all.item(index).insertSibling(nodes, 'before', true); - a.splice.apply(a, [index, 0].concat(nodes)); - }else{ - n = this.all.last().insertSibling(nodes, 'after', true); - a.push.apply(a, nodes); - } - this.updateIndexes(index); - }, - - // private - onRemove : function(ds, record, index){ - this.deselect(index); - this.all.removeElement(index, true); - this.updateIndexes(index); - if (this.store.getCount() === 0){ - this.refresh(); - } - }, - - /** - * Refreshes an individual node's data from the store. - * @param {Number} index The item's data index in the store - */ - refreshNode : function(index){ - this.onUpdate(this.store, this.store.getAt(index)); - }, - - // private - updateIndexes : function(startIndex, endIndex){ - var ns = this.all.elements; - startIndex = startIndex || 0; - endIndex = endIndex || ((endIndex === 0) ? 0 : (ns.length - 1)); - for(var i = startIndex; i <= endIndex; i++){ - ns[i].viewIndex = i; - } - }, - - /** - * Returns the store associated with this DataView. - * @return {Ext.data.Store} The store - */ - getStore : function(){ - return this.store; - }, - - /** - * Changes the data store bound to this view and refreshes it. - * @param {Store} store The store to bind to this view - */ - bindStore : function(store, initial){ - if(!initial && this.store){ - if(store !== this.store && this.store.autoDestroy){ - this.store.destroy(); - }else{ - this.store.un("beforeload", this.onBeforeLoad, this); - this.store.un("datachanged", this.onDataChanged, this); - this.store.un("add", this.onAdd, this); - this.store.un("remove", this.onRemove, this); - this.store.un("update", this.onUpdate, this); - this.store.un("clear", this.refresh, this); - } - if(!store){ - this.store = null; - } - } - if(store){ - store = Ext.StoreMgr.lookup(store); - store.on({ - scope: this, - beforeload: this.onBeforeLoad, - datachanged: this.onDataChanged, - add: this.onAdd, - remove: this.onRemove, - update: this.onUpdate, - clear: this.refresh - }); - } - this.store = store; - if(store){ - this.refresh(); - } - }, - - /** - * @private - * Calls this.refresh if this.blockRefresh is not true - */ - onDataChanged: function() { - if (this.blockRefresh !== true) { - this.refresh.apply(this, arguments); - } - }, - - /** - * Returns the template node the passed child belongs to, or null if it doesn't belong to one. - * @param {HTMLElement} node - * @return {HTMLElement} The template node - */ - findItemFromChild : function(node){ - return Ext.fly(node).findParent(this.itemSelector, this.getTemplateTarget()); - }, - - // private - onClick : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()), - index; - if(item){ - index = this.indexOf(item); - if(this.onItemClick(item, index, e) !== false){ - this.fireEvent("click", this, index, item, e); - } - }else{ - if(this.fireEvent("containerclick", this, e) !== false){ - this.onContainerClick(e); - } - } - }, - - onContainerClick : function(e){ - this.clearSelections(); - }, - - // private - onContextMenu : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item){ - this.fireEvent("contextmenu", this, this.indexOf(item), item, e); - }else{ - this.fireEvent("containercontextmenu", this, e); - } - }, - - // private - onDblClick : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item){ - this.fireEvent("dblclick", this, this.indexOf(item), item, e); - } - }, - - // private - onMouseOver : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item && item !== this.lastItem){ - this.lastItem = item; - Ext.fly(item).addClass(this.overClass); - this.fireEvent("mouseenter", this, this.indexOf(item), item, e); - } - }, - - // private - onMouseOut : function(e){ - if(this.lastItem){ - if(!e.within(this.lastItem, true, true)){ - Ext.fly(this.lastItem).removeClass(this.overClass); - this.fireEvent("mouseleave", this, this.indexOf(this.lastItem), this.lastItem, e); - delete this.lastItem; - } - } - }, - - // private - onItemClick : function(item, index, e){ - if(this.fireEvent("beforeclick", this, index, item, e) === false){ - return false; - } - if(this.multiSelect){ - this.doMultiSelection(item, index, e); - e.preventDefault(); - }else if(this.singleSelect){ - this.doSingleSelection(item, index, e); - e.preventDefault(); - } - return true; - }, - - // private - doSingleSelection : function(item, index, e){ - if(e.ctrlKey && this.isSelected(index)){ - this.deselect(index); - }else{ - this.select(index, false); - } - }, - - // private - doMultiSelection : function(item, index, e){ - if(e.shiftKey && this.last !== false){ - var last = this.last; - this.selectRange(last, index, e.ctrlKey); - this.last = last; // reset the last - }else{ - if((e.ctrlKey||this.simpleSelect) && this.isSelected(index)){ - this.deselect(index); - }else{ - this.select(index, e.ctrlKey || e.shiftKey || this.simpleSelect); - } - } - }, - - /** - * Gets the number of selected nodes. - * @return {Number} The node count - */ - getSelectionCount : function(){ - return this.selected.getCount(); - }, - - /** - * Gets the currently selected nodes. - * @return {Array} An array of HTMLElements - */ - getSelectedNodes : function(){ - return this.selected.elements; - }, - - /** - * Gets the indexes of the selected nodes. - * @return {Array} An array of numeric indexes - */ - getSelectedIndexes : function(){ - var indexes = [], - selected = this.selected.elements, - i = 0, - len = selected.length; - - for(; i < len; i++){ - indexes.push(selected[i].viewIndex); - } - return indexes; - }, - - /** - * Gets an array of the selected records - * @return {Array} An array of {@link Ext.data.Record} objects - */ - getSelectedRecords : function(){ - return this.getRecords(this.selected.elements); - }, - - /** - * Gets an array of the records from an array of nodes - * @param {Array} nodes The nodes to evaluate - * @return {Array} records The {@link Ext.data.Record} objects - */ - getRecords : function(nodes){ - var records = [], - i = 0, - len = nodes.length; - - for(; i < len; i++){ - records[records.length] = this.store.getAt(nodes[i].viewIndex); - } - return records; - }, - - /** - * Gets a record from a node - * @param {HTMLElement} node The node to evaluate - * @return {Record} record The {@link Ext.data.Record} object - */ - getRecord : function(node){ - return this.store.getAt(node.viewIndex); - }, - - /** - * Clears all selections. - * @param {Boolean} suppressEvent (optional) True to skip firing of the selectionchange event - */ - clearSelections : function(suppressEvent, skipUpdate){ - if((this.multiSelect || this.singleSelect) && this.selected.getCount() > 0){ - if(!skipUpdate){ - this.selected.removeClass(this.selectedClass); - } - this.selected.clear(); - this.last = false; - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } - }, - - /** - * Returns true if the passed node is selected, else false. - * @param {HTMLElement/Number/Ext.data.Record} node The node, node index or record to check - * @return {Boolean} True if selected, else false - */ - isSelected : function(node){ - return this.selected.contains(this.getNode(node)); - }, - - /** - * Deselects a node. - * @param {HTMLElement/Number/Record} node The node, node index or record to deselect - */ - deselect : function(node){ - if(this.isSelected(node)){ - node = this.getNode(node); - this.selected.removeElement(node); - if(this.last == node.viewIndex){ - this.last = false; - } - Ext.fly(node).removeClass(this.selectedClass); - this.fireEvent("selectionchange", this, this.selected.elements); - } - }, - - /** - * Selects a set of nodes. - * @param {Array/HTMLElement/String/Number/Ext.data.Record} nodeInfo An HTMLElement template node, index of a template node, - * id of a template node, record associated with a node or an array of any of those to select - * @param {Boolean} keepExisting (optional) true to keep existing selections - * @param {Boolean} suppressEvent (optional) true to skip firing of the selectionchange vent - */ - select : function(nodeInfo, keepExisting, suppressEvent){ - if(Ext.isArray(nodeInfo)){ - if(!keepExisting){ - this.clearSelections(true); - } - for(var i = 0, len = nodeInfo.length; i < len; i++){ - this.select(nodeInfo[i], true, true); - } - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } else{ - var node = this.getNode(nodeInfo); - if(!keepExisting){ - this.clearSelections(true); - } - if(node && !this.isSelected(node)){ - if(this.fireEvent("beforeselect", this, node, this.selected.elements) !== false){ - Ext.fly(node).addClass(this.selectedClass); - this.selected.add(node); - this.last = node.viewIndex; - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } - } - } - }, - - /** - * Selects a range of nodes. All nodes between start and end are selected. - * @param {Number} start The index of the first node in the range - * @param {Number} end The index of the last node in the range - * @param {Boolean} keepExisting (optional) True to retain existing selections - */ - selectRange : function(start, end, keepExisting){ - if(!keepExisting){ - this.clearSelections(true); - } - this.select(this.getNodes(start, end), true); - }, - - /** - * Gets a template node. - * @param {HTMLElement/String/Number/Ext.data.Record} nodeInfo An HTMLElement template node, index of a template node, - * the id of a template node or the record associated with the node. - * @return {HTMLElement} The node or null if it wasn't found - */ - getNode : function(nodeInfo){ - if(Ext.isString(nodeInfo)){ - return document.getElementById(nodeInfo); - }else if(Ext.isNumber(nodeInfo)){ - return this.all.elements[nodeInfo]; - }else if(nodeInfo instanceof Ext.data.Record){ - var idx = this.store.indexOf(nodeInfo); - return this.all.elements[idx]; - } - return nodeInfo; - }, - - /** - * Gets a range nodes. - * @param {Number} start (optional) The index of the first node in the range - * @param {Number} end (optional) The index of the last node in the range - * @return {Array} An array of nodes - */ - getNodes : function(start, end){ - var ns = this.all.elements, - nodes = [], - i; - - start = start || 0; - end = !Ext.isDefined(end) ? Math.max(ns.length - 1, 0) : end; - if(start <= end){ - for(i = start; i <= end && ns[i]; i++){ - nodes.push(ns[i]); - } - } else{ - for(i = start; i >= end && ns[i]; i--){ - nodes.push(ns[i]); - } - } - return nodes; - }, - - /** - * Finds the index of the passed node. - * @param {HTMLElement/String/Number/Record} nodeInfo An HTMLElement template node, index of a template node, the id of a template node - * or a record associated with a node. - * @return {Number} The index of the node or -1 - */ - indexOf : function(node){ - node = this.getNode(node); - if(Ext.isNumber(node.viewIndex)){ - return node.viewIndex; - } - return this.all.indexOf(node); - }, - - // private - onBeforeLoad : function(){ - if(this.loadingText){ - this.clearSelections(false, true); - this.getTemplateTarget().update('
      '+this.loadingText+'
      '); - this.all.clear(); - } - }, - - onDestroy : function(){ - this.all.clear(); - this.selected.clear(); - Ext.DataView.superclass.onDestroy.call(this); - this.bindStore(null); - } -}); - -/** - * Changes the data store bound to this view and refreshes it. (deprecated in favor of bindStore) - * @param {Store} store The store to bind to this view - */ -Ext.DataView.prototype.setStore = Ext.DataView.prototype.bindStore; - -Ext.reg('dataview', Ext.DataView); -/** - * @class Ext.list.ListView - * @extends Ext.DataView - *

      Ext.list.ListView is a fast and light-weight implentation of a - * {@link Ext.grid.GridPanel Grid} like view with the following characteristics:

      - *
        - *
      • resizable columns
      • - *
      • selectable
      • - *
      • column widths are initially proportioned by percentage based on the container - * width and number of columns
      • - *
      • uses templates to render the data in any required format
      • - *
      • no horizontal scrolling
      • - *
      • no editing
      • - *
      - *

      Example usage:

      - *
      
      -// consume JSON of this form:
      -{
      -   "images":[
      -      {
      -         "name":"dance_fever.jpg",
      -         "size":2067,
      -         "lastmod":1236974993000,
      -         "url":"images\/thumbs\/dance_fever.jpg"
      -      },
      -      {
      -         "name":"zack_sink.jpg",
      -         "size":2303,
      -         "lastmod":1236974993000,
      -         "url":"images\/thumbs\/zack_sink.jpg"
      -      }
      -   ]
      -}
      -var store = new Ext.data.JsonStore({
      -    url: 'get-images.php',
      -    root: 'images',
      -    fields: [
      -        'name', 'url',
      -        {name:'size', type: 'float'},
      -        {name:'lastmod', type:'date', dateFormat:'timestamp'}
      -    ]
      -});
      -store.load();
      -
      -var listView = new Ext.list.ListView({
      -    store: store,
      -    multiSelect: true,
      -    emptyText: 'No images to display',
      -    reserveScrollOffset: true,
      -    columns: [{
      -        header: 'File',
      -        width: .5,
      -        dataIndex: 'name'
      -    },{
      -        header: 'Last Modified',
      -        width: .35,
      -        dataIndex: 'lastmod',
      -        tpl: '{lastmod:date("m-d h:i a")}'
      -    },{
      -        header: 'Size',
      -        dataIndex: 'size',
      -        tpl: '{size:fileSize}', // format using Ext.util.Format.fileSize()
      -        align: 'right'
      -    }]
      -});
      -
      -// put it in a Panel so it looks pretty
      -var panel = new Ext.Panel({
      -    id:'images-view',
      -    width:425,
      -    height:250,
      -    collapsible:true,
      -    layout:'fit',
      -    title:'Simple ListView (0 items selected)',
      -    items: listView
      -});
      -panel.render(document.body);
      -
      -// little bit of feedback
      -listView.on('selectionchange', function(view, nodes){
      -    var l = nodes.length;
      -    var s = l != 1 ? 's' : '';
      -    panel.setTitle('Simple ListView ('+l+' item'+s+' selected)');
      -});
      - * 
      - * @constructor - * @param {Object} config - * @xtype listview - */ -Ext.list.ListView = Ext.extend(Ext.DataView, { - /** - * Set this property to true to disable the header click handler disabling sort - * (defaults to false). - * @type Boolean - * @property disableHeaders - */ - /** - * @cfg {Boolean} hideHeaders - * true to hide the {@link #internalTpl header row} (defaults to false so - * the {@link #internalTpl header row} will be shown). - */ - /** - * @cfg {String} itemSelector - * Defaults to 'dl' to work with the preconfigured {@link Ext.DataView#tpl tpl}. - * This setting specifies the CSS selector (e.g. div.some-class or span:first-child) - * that will be used to determine what nodes the ListView will be working with. - */ - itemSelector: 'dl', - /** - * @cfg {String} selectedClass The CSS class applied to a selected row (defaults to - * 'x-list-selected'). An example overriding the default styling: -
      
      -    .x-list-selected {background-color: yellow;}
      -    
      - * @type String - */ - selectedClass:'x-list-selected', - /** - * @cfg {String} overClass The CSS class applied when over a row (defaults to - * 'x-list-over'). An example overriding the default styling: -
      
      -    .x-list-over {background-color: orange;}
      -    
      - * @type String - */ - overClass:'x-list-over', - /** - * @cfg {Boolean} reserveScrollOffset - * By default will defer accounting for the configured {@link #scrollOffset} - * for 10 milliseconds. Specify true to account for the configured - * {@link #scrollOffset} immediately. - */ - /** - * @cfg {Number} scrollOffset The amount of space to reserve for the scrollbar (defaults to - * undefined). If an explicit value isn't specified, this will be automatically - * calculated. - */ - scrollOffset : undefined, - /** - * @cfg {Boolean/Object} columnResize - * Specify true or specify a configuration object for {@link Ext.list.ListView.ColumnResizer} - * to enable the columns to be resizable (defaults to true). - */ - columnResize: true, - /** - * @cfg {Array} columns An array of column configuration objects, for example: - *
      
      -{
      -    align: 'right',
      -    dataIndex: 'size',
      -    header: 'Size',
      -    tpl: '{size:fileSize}',
      -    width: .35
      -}
      -     * 
      - * Acceptable properties for each column configuration object are: - *
        - *
      • align : String
        Set the CSS text-align property - * of the column. Defaults to 'left'.
      • - *
      • dataIndex : String
        See {@link Ext.grid.Column}. - * {@link Ext.grid.Column#dataIndex dataIndex} for details.
      • - *
      • header : String
        See {@link Ext.grid.Column}. - * {@link Ext.grid.Column#header header} for details.
      • - *
      • tpl : String
        Specify a string to pass as the - * configuration string for {@link Ext.XTemplate}. By default an {@link Ext.XTemplate} - * will be implicitly created using the dataIndex.
      • - *
      • width : Number
        Percentage of the container width - * this column should be allocated. Columns that have no width specified will be - * allocated with an equal percentage to fill 100% of the container width. To easily take - * advantage of the full container width, leave the width of at least one column undefined. - * Note that if you do not want to take up the full width of the container, the width of - * every column needs to be explicitly defined.
      • - *
      - */ - /** - * @cfg {Boolean/Object} columnSort - * Specify true or specify a configuration object for {@link Ext.list.ListView.Sorter} - * to enable the columns to be sortable (defaults to true). - */ - columnSort: true, - /** - * @cfg {String/Array} internalTpl - * The template to be used for the header row. See {@link #tpl} for more details. - */ - - /* - * IE has issues when setting percentage based widths to 100%. Default to 99. - */ - maxColumnWidth: Ext.isIE ? 99 : 100, - - initComponent : function(){ - if(this.columnResize){ - this.colResizer = new Ext.list.ColumnResizer(this.colResizer); - this.colResizer.init(this); - } - if(this.columnSort){ - this.colSorter = new Ext.list.Sorter(this.columnSort); - this.colSorter.init(this); - } - if(!this.internalTpl){ - this.internalTpl = new Ext.XTemplate( - '
      ', - '', - '
      ', - '{header}', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ' - ); - } - if(!this.tpl){ - this.tpl = new Ext.XTemplate( - '', - '
      ', - '', - '
      ', - ' class="{cls}">', - '{[values.tpl.apply(parent)]}', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ' - ); - }; - - var cs = this.columns, - allocatedWidth = 0, - colsWithWidth = 0, - len = cs.length, - columns = []; - - for(var i = 0; i < len; i++){ - var c = cs[i]; - if(!c.isColumn) { - c.xtype = c.xtype ? (/^lv/.test(c.xtype) ? c.xtype : 'lv' + c.xtype) : 'lvcolumn'; - c = Ext.create(c); - } - if(c.width) { - allocatedWidth += c.width*100; - if(allocatedWidth > this.maxColumnWidth){ - c.width -= (allocatedWidth - this.maxColumnWidth) / 100; - } - colsWithWidth++; - } - columns.push(c); - } - - cs = this.columns = columns; - - // auto calculate missing column widths - if(colsWithWidth < len){ - var remaining = len - colsWithWidth; - if(allocatedWidth < this.maxColumnWidth){ - var perCol = ((this.maxColumnWidth-allocatedWidth) / remaining)/100; - for(var j = 0; j < len; j++){ - var c = cs[j]; - if(!c.width){ - c.width = perCol; - } - } - } - } - Ext.list.ListView.superclass.initComponent.call(this); - }, - - onRender : function(){ - this.autoEl = { - cls: 'x-list-wrap' - }; - Ext.list.ListView.superclass.onRender.apply(this, arguments); - - this.internalTpl.overwrite(this.el, {columns: this.columns}); - - this.innerBody = Ext.get(this.el.dom.childNodes[1].firstChild); - this.innerHd = Ext.get(this.el.dom.firstChild.firstChild); - - if(this.hideHeaders){ - this.el.dom.firstChild.style.display = 'none'; - } - }, - - getTemplateTarget : function(){ - return this.innerBody; - }, - - /** - *

      Function which can be overridden which returns the data object passed to this - * view's {@link #tpl template} to render the whole ListView. The returned object - * shall contain the following properties:

      - *
        - *
      • columns : String
        See {@link #columns}
      • - *
      • rows : String
        See - * {@link Ext.DataView}.{@link Ext.DataView#collectData collectData}
      • - *
      - * @param {Array} records An Array of {@link Ext.data.Record}s to be rendered into the DataView. - * @param {Number} startIndex the index number of the Record being prepared for rendering. - * @return {Object} A data object containing properties to be processed by a repeating - * XTemplate as described above. - */ - collectData : function(){ - var rs = Ext.list.ListView.superclass.collectData.apply(this, arguments); - return { - columns: this.columns, - rows: rs - }; - }, - - verifyInternalSize : function(){ - if(this.lastSize){ - this.onResize(this.lastSize.width, this.lastSize.height); - } - }, - - // private - onResize : function(w, h){ - var body = this.innerBody.dom, - header = this.innerHd.dom, - scrollWidth = w - Ext.num(this.scrollOffset, Ext.getScrollBarWidth()) + 'px', - parentNode; - - if(!body){ - return; - } - parentNode = body.parentNode; - if(Ext.isNumber(w)){ - if(this.reserveScrollOffset || ((parentNode.offsetWidth - parentNode.clientWidth) > 10)){ - body.style.width = scrollWidth; - header.style.width = scrollWidth; - }else{ - body.style.width = w + 'px'; - header.style.width = w + 'px'; - setTimeout(function(){ - if((parentNode.offsetWidth - parentNode.clientWidth) > 10){ - body.style.width = scrollWidth; - header.style.width = scrollWidth; - } - }, 10); - } - } - if(Ext.isNumber(h)){ - parentNode.style.height = Math.max(0, h - header.parentNode.offsetHeight) + 'px'; - } - }, - - updateIndexes : function(){ - Ext.list.ListView.superclass.updateIndexes.apply(this, arguments); - this.verifyInternalSize(); - }, - - findHeaderIndex : function(header){ - header = header.dom || header; - var parentNode = header.parentNode, - children = parentNode.parentNode.childNodes, - i = 0, - c; - for(; c = children[i]; i++){ - if(c == parentNode){ - return i; - } - } - return -1; - }, - - setHdWidths : function(){ - var els = this.innerHd.dom.getElementsByTagName('div'), - i = 0, - columns = this.columns, - len = columns.length; - - for(; i < len; i++){ - els[i].style.width = (columns[i].width*100) + '%'; - } - } -}); - -Ext.reg('listview', Ext.list.ListView); - -// Backwards compatibility alias -Ext.ListView = Ext.list.ListView;/** - * @class Ext.list.Column - *

      This class encapsulates column configuration data to be used in the initialization of a - * {@link Ext.list.ListView ListView}.

      - *

      While subclasses are provided to render data in different ways, this class renders a passed - * data field unchanged and is usually used for textual columns.

      - */ -Ext.list.Column = Ext.extend(Object, { - /** - * @private - * @cfg {Boolean} isColumn - * Used by ListView constructor method to avoid reprocessing a Column - * if isColumn is not set ListView will recreate a new Ext.list.Column - * Defaults to true. - */ - isColumn: true, - - /** - * @cfg {String} align - * Set the CSS text-align property of the column. Defaults to 'left'. - */ - align: 'left', - /** - * @cfg {String} header Optional. The header text to be used as innerHTML - * (html tags are accepted) to display in the ListView. Note: to - * have a clickable header with no text displayed use ' '. - */ - header: '', - - /** - * @cfg {Number} width Optional. Percentage of the container width - * this column should be allocated. Columns that have no width specified will be - * allocated with an equal percentage to fill 100% of the container width. To easily take - * advantage of the full container width, leave the width of at least one column undefined. - * Note that if you do not want to take up the full width of the container, the width of - * every column needs to be explicitly defined. - */ - width: null, - - /** - * @cfg {String} cls Optional. This option can be used to add a CSS class to the cell of each - * row for this column. - */ - cls: '', - - /** - * @cfg {String} tpl Optional. Specify a string to pass as the - * configuration string for {@link Ext.XTemplate}. By default an {@link Ext.XTemplate} - * will be implicitly created using the dataIndex. - */ - - /** - * @cfg {String} dataIndex

      Required. The name of the field in the - * ListViews's {@link Ext.data.Store}'s {@link Ext.data.Record} definition from - * which to draw the column's value.

      - */ - - constructor : function(c){ - if(!c.tpl){ - c.tpl = new Ext.XTemplate('{' + c.dataIndex + '}'); - } - else if(Ext.isString(c.tpl)){ - c.tpl = new Ext.XTemplate(c.tpl); - } - - Ext.apply(this, c); - } -}); - -Ext.reg('lvcolumn', Ext.list.Column); - -/** - * @class Ext.list.NumberColumn - * @extends Ext.list.Column - *

      A Column definition class which renders a numeric data field according to a {@link #format} string. See the - * {@link Ext.list.Column#xtype xtype} config option of {@link Ext.list.Column} for more details.

      - */ -Ext.list.NumberColumn = Ext.extend(Ext.list.Column, { - /** - * @cfg {String} format - * A formatting string as used by {@link Ext.util.Format#number} to format a numeric value for this Column - * (defaults to '0,000.00'). - */ - format: '0,000.00', - - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':number("' + (c.format || this.format) + '")}'); - Ext.list.NumberColumn.superclass.constructor.call(this, c); - } -}); - -Ext.reg('lvnumbercolumn', Ext.list.NumberColumn); - -/** - * @class Ext.list.DateColumn - * @extends Ext.list.Column - *

      A Column definition class which renders a passed date according to the default locale, or a configured - * {@link #format}. See the {@link Ext.list.Column#xtype xtype} config option of {@link Ext.list.Column} - * for more details.

      - */ -Ext.list.DateColumn = Ext.extend(Ext.list.Column, { - format: 'm/d/Y', - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':date("' + (c.format || this.format) + '")}'); - Ext.list.DateColumn.superclass.constructor.call(this, c); - } -}); -Ext.reg('lvdatecolumn', Ext.list.DateColumn); - -/** - * @class Ext.list.BooleanColumn - * @extends Ext.list.Column - *

      A Column definition class which renders boolean data fields. See the {@link Ext.list.Column#xtype xtype} - * config option of {@link Ext.list.Column} for more details.

      - */ -Ext.list.BooleanColumn = Ext.extend(Ext.list.Column, { - /** - * @cfg {String} trueText - * The string returned by the renderer when the column value is not falsey (defaults to 'true'). - */ - trueText: 'true', - /** - * @cfg {String} falseText - * The string returned by the renderer when the column value is falsey (but not undefined) (defaults to - * 'false'). - */ - falseText: 'false', - /** - * @cfg {String} undefinedText - * The string returned by the renderer when the column value is undefined (defaults to ' '). - */ - undefinedText: ' ', - - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':this.format}'); - - var t = this.trueText, f = this.falseText, u = this.undefinedText; - c.tpl.format = function(v){ - if(v === undefined){ - return u; - } - if(!v || v === 'false'){ - return f; - } - return t; - }; - - Ext.list.DateColumn.superclass.constructor.call(this, c); - } -}); - -Ext.reg('lvbooleancolumn', Ext.list.BooleanColumn);/** - * @class Ext.list.ColumnResizer - * @extends Ext.util.Observable - *

      Supporting Class for Ext.list.ListView

      - * @constructor - * @param {Object} config - */ -Ext.list.ColumnResizer = Ext.extend(Ext.util.Observable, { - /** - * @cfg {Number} minPct The minimum percentage to allot for any column (defaults to .05) - */ - minPct: .05, - - constructor: function(config){ - Ext.apply(this, config); - Ext.list.ColumnResizer.superclass.constructor.call(this); - }, - init : function(listView){ - this.view = listView; - listView.on('render', this.initEvents, this); - }, - - initEvents : function(view){ - view.mon(view.innerHd, 'mousemove', this.handleHdMove, this); - this.tracker = new Ext.dd.DragTracker({ - onBeforeStart: this.onBeforeStart.createDelegate(this), - onStart: this.onStart.createDelegate(this), - onDrag: this.onDrag.createDelegate(this), - onEnd: this.onEnd.createDelegate(this), - tolerance: 3, - autoStart: 300 - }); - this.tracker.initEl(view.innerHd); - view.on('beforedestroy', this.tracker.destroy, this.tracker); - }, - - handleHdMove : function(e, t){ - var handleWidth = 5, - x = e.getPageX(), - header = e.getTarget('em', 3, true); - if(header){ - var region = header.getRegion(), - style = header.dom.style, - parentNode = header.dom.parentNode; - - if(x - region.left <= handleWidth && parentNode != parentNode.parentNode.firstChild){ - this.activeHd = Ext.get(parentNode.previousSibling.firstChild); - style.cursor = Ext.isWebKit ? 'e-resize' : 'col-resize'; - } else if(region.right - x <= handleWidth && parentNode != parentNode.parentNode.lastChild.previousSibling){ - this.activeHd = header; - style.cursor = Ext.isWebKit ? 'w-resize' : 'col-resize'; - } else{ - delete this.activeHd; - style.cursor = ''; - } - } - }, - - onBeforeStart : function(e){ - this.dragHd = this.activeHd; - return !!this.dragHd; - }, - - onStart: function(e){ - - var me = this, - view = me.view, - dragHeader = me.dragHd, - x = me.tracker.getXY()[0]; - - me.proxy = view.el.createChild({cls:'x-list-resizer'}); - me.dragX = dragHeader.getX(); - me.headerIndex = view.findHeaderIndex(dragHeader); - - me.headersDisabled = view.disableHeaders; - view.disableHeaders = true; - - me.proxy.setHeight(view.el.getHeight()); - me.proxy.setX(me.dragX); - me.proxy.setWidth(x - me.dragX); - - this.setBoundaries(); - - }, - - // Sets up the boundaries for the drag/drop operation - setBoundaries: function(relativeX){ - var view = this.view, - headerIndex = this.headerIndex, - width = view.innerHd.getWidth(), - relativeX = view.innerHd.getX(), - minWidth = Math.ceil(width * this.minPct), - maxWidth = width - minWidth, - numColumns = view.columns.length, - headers = view.innerHd.select('em', true), - minX = minWidth + relativeX, - maxX = maxWidth + relativeX, - header; - - if (numColumns == 2) { - this.minX = minX; - this.maxX = maxX; - }else{ - header = headers.item(headerIndex + 2); - this.minX = headers.item(headerIndex).getX() + minWidth; - this.maxX = header ? header.getX() - minWidth : maxX; - if (headerIndex == 0) { - // First - this.minX = minX; - } else if (headerIndex == numColumns - 2) { - // Last - this.maxX = maxX; - } - } - }, - - onDrag: function(e){ - var me = this, - cursorX = me.tracker.getXY()[0].constrain(me.minX, me.maxX); - - me.proxy.setWidth(cursorX - this.dragX); - }, - - onEnd: function(e){ - /* calculate desired width by measuring proxy and then remove it */ - var newWidth = this.proxy.getWidth(), - index = this.headerIndex, - view = this.view, - columns = view.columns, - width = view.innerHd.getWidth(), - newPercent = Math.ceil(newWidth * view.maxColumnWidth / width) / 100, - disabled = this.headersDisabled, - headerCol = columns[index], - otherCol = columns[index + 1], - totalPercent = headerCol.width + otherCol.width; - - this.proxy.remove(); - - headerCol.width = newPercent; - otherCol.width = totalPercent - newPercent; - - delete this.dragHd; - view.setHdWidths(); - view.refresh(); - - setTimeout(function(){ - view.disableHeaders = disabled; - }, 100); - } -}); - -// Backwards compatibility alias -Ext.ListView.ColumnResizer = Ext.list.ColumnResizer;/** - * @class Ext.list.Sorter - * @extends Ext.util.Observable - *

      Supporting Class for Ext.list.ListView

      - * @constructor - * @param {Object} config - */ -Ext.list.Sorter = Ext.extend(Ext.util.Observable, { - /** - * @cfg {Array} sortClasses - * The CSS classes applied to a header when it is sorted. (defaults to ["sort-asc", "sort-desc"]) - */ - sortClasses : ["sort-asc", "sort-desc"], - - constructor: function(config){ - Ext.apply(this, config); - Ext.list.Sorter.superclass.constructor.call(this); - }, - - init : function(listView){ - this.view = listView; - listView.on('render', this.initEvents, this); - }, - - initEvents : function(view){ - view.mon(view.innerHd, 'click', this.onHdClick, this); - view.innerHd.setStyle('cursor', 'pointer'); - view.mon(view.store, 'datachanged', this.updateSortState, this); - this.updateSortState.defer(10, this, [view.store]); - }, - - updateSortState : function(store){ - var state = store.getSortState(); - if(!state){ - return; - } - this.sortState = state; - var cs = this.view.columns, sortColumn = -1; - for(var i = 0, len = cs.length; i < len; i++){ - if(cs[i].dataIndex == state.field){ - sortColumn = i; - break; - } - } - if(sortColumn != -1){ - var sortDir = state.direction; - this.updateSortIcon(sortColumn, sortDir); - } - }, - - updateSortIcon : function(col, dir){ - var sc = this.sortClasses; - var hds = this.view.innerHd.select('em').removeClass(sc); - hds.item(col).addClass(sc[dir == "DESC" ? 1 : 0]); - }, - - onHdClick : function(e){ - var hd = e.getTarget('em', 3); - if(hd && !this.view.disableHeaders){ - var index = this.view.findHeaderIndex(hd); - this.view.store.sort(this.view.columns[index].dataIndex); - } - } -}); - -// Backwards compatibility alias -Ext.ListView.Sorter = Ext.list.Sorter;/** - * @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(){ - var rendered = this.rendered; - if(this.suspendUpdates){ - return; - } - if(this.resizeTabs && rendered){ - this.autoSizeTabs(); - } - if(this.enableTabScroll && 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); - // Need to do this here, since setting the active tab slightly changes the size - this.delegateUpdates(); - 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 || cw < 20){ // 20 to prevent display:none issues - return; - } - if(count == 0 || l <= tw){ - // ensure the width is set if there's no tabs - 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(); - } - }; -}; -/** - * @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(){ - if(this.menu){ - // If array of items, turn it into an object config so we - // can set the ownerCt property in the config - if (Ext.isArray(this.menu)){ - this.menu = { items: this.menu }; - } - - // An object config will work here, but an instance of a menu - // will have already setup its ref's and have no effect - if (Ext.isObject(this.menu)){ - this.menu.ownerCt = this; - } - - this.menu = Ext.menu.MenuMgr.get(this.menu); - this.menu.ownerCt = undefined; - } - - 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(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.onRepeatClick, this); - }else{ - 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.btnEl, 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 - onRepeatClick : function(repeat, e){ - this.onClick(e); - }, - - // private - onClick : function(e){ - if(e){ - e.preventDefault(); - } - if(e.button !== 0){ - return; - } - if(!this.disabled){ - this.doToggle(); - 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 - doToggle: function(){ - if (this.enableToggle && (this.allowDepress !== false || !this.pressed)) { - this.toggle(); - } - }, - - // 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{ - this.doToggle(); - 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, suppressEvent); - } - 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);/** - * @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); - if (c == this.activeMenuBtn) { - delete this.activeMenuBtn; - } - 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);/** - * @class Ext.History - * @extends Ext.util.Observable - * History management component that allows you to register arbitrary tokens that signify application - * history state on navigation actions. You can then handle the history {@link #change} event in order - * to reset your application UI to the appropriate state when the user navigates forward or backward through - * the browser history stack. - * @singleton - */ -Ext.History = (function () { - var iframe, hiddenField; - var ready = false; - var currentToken; - - function getHash() { - var href = location.href, i = href.indexOf("#"), - hash = i >= 0 ? href.substr(i + 1) : null; - - if (Ext.isGecko) { - hash = decodeURIComponent(hash); - } - return hash; - } - - function doSave() { - hiddenField.value = currentToken; - } - - function handleStateChange(token) { - currentToken = token; - Ext.History.fireEvent('change', token); - } - - function updateIFrame (token) { - var html = ['
      ',Ext.util.Format.htmlEncode(token),'
      '].join(''); - try { - var doc = iframe.contentWindow.document; - doc.open(); - doc.write(html); - doc.close(); - return true; - } catch (e) { - return false; - } - } - - function checkIFrame() { - if (!iframe.contentWindow || !iframe.contentWindow.document) { - setTimeout(checkIFrame, 10); - return; - } - - var doc = iframe.contentWindow.document; - var elem = doc.getElementById("state"); - var token = elem ? elem.innerText : null; - - var hash = getHash(); - - setInterval(function () { - - doc = iframe.contentWindow.document; - elem = doc.getElementById("state"); - - var newtoken = elem ? elem.innerText : null; - - var newHash = getHash(); - - if (newtoken !== token) { - token = newtoken; - handleStateChange(token); - location.hash = token; - hash = token; - doSave(); - } else if (newHash !== hash) { - hash = newHash; - updateIFrame(newHash); - } - - }, 50); - - ready = true; - - Ext.History.fireEvent('ready', Ext.History); - } - - function startUp() { - currentToken = hiddenField.value ? hiddenField.value : getHash(); - - if (Ext.isIE) { - checkIFrame(); - } else { - var hash = getHash(); - setInterval(function () { - var newHash = getHash(); - if (newHash !== hash) { - hash = newHash; - handleStateChange(hash); - doSave(); - } - }, 50); - ready = true; - Ext.History.fireEvent('ready', Ext.History); - } - } - - return { - /** - * The id of the hidden field required for storing the current history token. - * @type String - * @property - */ - fieldId: 'x-history-field', - /** - * The id of the iframe required by IE to manage the history stack. - * @type String - * @property - */ - iframeId: 'x-history-frame', - - events:{}, - - /** - * Initialize the global History instance. - * @param {Boolean} onReady (optional) A callback function that will be called once the history - * component is fully initialized. - * @param {Object} scope (optional) The scope (this reference) in which the callback is executed. Defaults to the browser window. - */ - init: function (onReady, scope) { - if(ready) { - Ext.callback(onReady, scope, [this]); - return; - } - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.History.init(onReady, scope); - }); - return; - } - hiddenField = Ext.getDom(Ext.History.fieldId); - if (Ext.isIE) { - iframe = Ext.getDom(Ext.History.iframeId); - } - this.addEvents( - /** - * @event ready - * Fires when the Ext.History singleton has been initialized and is ready for use. - * @param {Ext.History} The Ext.History singleton. - */ - 'ready', - /** - * @event change - * Fires when navigation back or forwards within the local page's history occurs. - * @param {String} token An identifier associated with the page state at that point in its history. - */ - 'change' - ); - if(onReady){ - this.on('ready', onReady, scope, {single:true}); - } - startUp(); - }, - - /** - * Add a new token to the history stack. This can be any arbitrary value, although it would - * commonly be the concatenation of a component id and another id marking the specifc history - * state of that component. Example usage: - *
      
      -// Handle tab changes on a TabPanel
      -tabPanel.on('tabchange', function(tabPanel, tab){
      -    Ext.History.add(tabPanel.id + ':' + tab.id);
      -});
      -
      - * @param {String} token The value that defines a particular application-specific history state - * @param {Boolean} preventDuplicates When true, if the passed token matches the current token - * it will not save a new history step. Set to false if the same state can be saved more than once - * at the same history stack location (defaults to true). - */ - add: function (token, preventDup) { - if(preventDup !== false){ - if(this.getToken() == token){ - return true; - } - } - if (Ext.isIE) { - return updateIFrame(token); - } else { - location.hash = token; - return true; - } - }, - - /** - * Programmatically steps back one step in browser history (equivalent to the user pressing the Back button). - */ - back: function(){ - history.go(-1); - }, - - /** - * Programmatically steps forward one step in browser history (equivalent to the user pressing the Forward button). - */ - forward: function(){ - history.go(1); - }, - - /** - * Retrieves the currently-active history token. - * @return {String} The token - */ - getToken: function() { - return ready ? currentToken : getHash(); - } - }; -})(); -Ext.apply(Ext.History, new Ext.util.Observable());/** - * @class Ext.Tip - * @extends Ext.Panel - * @xtype tip - * This is the base class for {@link Ext.QuickTip} and {@link Ext.Tooltip} that provides the basic layout and - * positioning that all tip-based classes require. This class can be used directly for simple, statically-positioned - * tips that are displayed programmatically, or it can be extended to provide custom tip implementations. - * @constructor - * Create a new Tip - * @param {Object} config The configuration options - */ -Ext.Tip = Ext.extend(Ext.Panel, { - /** - * @cfg {Boolean} closable True to render a close tool button into the tooltip header (defaults to false). - */ - /** - * @cfg {Number} width - * Width in pixels of the tip (defaults to auto). Width will be ignored if it exceeds the bounds of - * {@link #minWidth} or {@link #maxWidth}. The maximum supported value is 500. - */ - /** - * @cfg {Number} minWidth The minimum width of the tip in pixels (defaults to 40). - */ - minWidth : 40, - /** - * @cfg {Number} maxWidth The maximum width of the tip in pixels (defaults to 300). The maximum supported value is 500. - */ - maxWidth : 300, - /** - * @cfg {Boolean/String} shadow True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" - * for bottom-right shadow (defaults to "sides"). - */ - shadow : "sides", - /** - * @cfg {String} defaultAlign Experimental. The default {@link Ext.Element#alignTo} anchor position value - * for this tip relative to its element of origin (defaults to "tl-bl?"). - */ - defaultAlign : "tl-bl?", - autoRender: true, - quickShowInterval : 250, - - // private panel overrides - frame:true, - hidden:true, - baseCls: 'x-tip', - floating:{shadow:true,shim:true,useDisplay:true,constrain:false}, - autoHeight:true, - - closeAction: 'hide', - - // private - initComponent : function(){ - Ext.Tip.superclass.initComponent.call(this); - if(this.closable && !this.title){ - this.elements += ',header'; - } - }, - - // private - afterRender : function(){ - Ext.Tip.superclass.afterRender.call(this); - if(this.closable){ - this.addTool({ - id: 'close', - handler: this[this.closeAction], - scope: this - }); - } - }, - - /** - * Shows this tip at the specified XY position. Example usage: - *
      
      -// Show the tip at x:50 and y:100
      -tip.showAt([50,100]);
      -
      - * @param {Array} xy An array containing the x and y coordinates - */ - showAt : function(xy){ - Ext.Tip.superclass.show.call(this); - if(this.measureWidth !== false && (!this.initialConfig || typeof this.initialConfig.width != 'number')){ - this.doAutoWidth(); - } - if(this.constrainPosition){ - xy = this.el.adjustForConstraints(xy); - } - this.setPagePosition(xy[0], xy[1]); - }, - - // protected - doAutoWidth : function(adjust){ - adjust = adjust || 0; - var bw = this.body.getTextWidth(); - if(this.title){ - bw = Math.max(bw, this.header.child('span').getTextWidth(this.title)); - } - bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr") + adjust; - this.setWidth(bw.constrain(this.minWidth, this.maxWidth)); - - // IE7 repaint bug on initial show - if(Ext.isIE7 && !this.repainted){ - this.el.repaint(); - this.repainted = true; - } - }, - - /** - * Experimental. Shows this tip at a position relative to another element using a standard {@link Ext.Element#alignTo} - * anchor position value. Example usage: - *
      
      -// Show the tip at the default position ('tl-br?')
      -tip.showBy('my-el');
      -
      -// Show the tip's top-left corner anchored to the element's top-right corner
      -tip.showBy('my-el', 'tl-tr');
      -
      - * @param {Mixed} el An HTMLElement, Ext.Element or string id of the target element to align to - * @param {String} position (optional) A valid {@link Ext.Element#alignTo} anchor position (defaults to 'tl-br?' or - * {@link #defaultAlign} if specified). - */ - showBy : function(el, pos){ - if(!this.rendered){ - this.render(Ext.getBody()); - } - this.showAt(this.el.getAlignToXY(el, pos || this.defaultAlign)); - }, - - initDraggable : function(){ - this.dd = new Ext.Tip.DD(this, typeof this.draggable == 'boolean' ? null : this.draggable); - this.header.addClass('x-tip-draggable'); - } -}); - -Ext.reg('tip', Ext.Tip); - -// private - custom Tip DD implementation -Ext.Tip.DD = function(tip, config){ - Ext.apply(this, config); - this.tip = tip; - Ext.Tip.DD.superclass.constructor.call(this, tip.el.id, 'WindowDD-'+tip.id); - this.setHandleElId(tip.header.id); - this.scroll = false; -}; - -Ext.extend(Ext.Tip.DD, Ext.dd.DD, { - moveOnly:true, - scroll:false, - headerOffsets:[100, 25], - startDrag : function(){ - this.tip.el.disableShadow(); - }, - endDrag : function(e){ - this.tip.el.enableShadow(true); - } -});/** - * @class Ext.ToolTip - * @extends Ext.Tip - * A standard tooltip implementation for providing additional information when hovering over a target element. - * @xtype tooltip - * @constructor - * Create a new Tooltip - * @param {Object} config The configuration options - */ -Ext.ToolTip = Ext.extend(Ext.Tip, { - /** - * When a Tooltip is configured with the {@link #delegate} - * option to cause selected child elements of the {@link #target} - * Element to each trigger a seperate show event, this property is set to - * the DOM element which triggered the show. - * @type DOMElement - * @property triggerElement - */ - /** - * @cfg {Mixed} target The target HTMLElement, Ext.Element or id to monitor - * for mouseover events to trigger showing this ToolTip. - */ - /** - * @cfg {Boolean} autoHide True to automatically hide the tooltip after the - * mouse exits the target element or after the {@link #dismissDelay} - * has expired if set (defaults to true). If {@link closable} = true - * a close tool button will be rendered into the tooltip header. - */ - /** - * @cfg {Number} showDelay Delay in milliseconds before the tooltip displays - * after the mouse enters the target element (defaults to 500) - */ - showDelay : 500, - /** - * @cfg {Number} hideDelay Delay in milliseconds after the mouse exits the - * target element but before the tooltip actually hides (defaults to 200). - * Set to 0 for the tooltip to hide immediately. - */ - hideDelay : 200, - /** - * @cfg {Number} dismissDelay Delay in milliseconds before the tooltip - * automatically hides (defaults to 5000). To disable automatic hiding, set - * dismissDelay = 0. - */ - dismissDelay : 5000, - /** - * @cfg {Array} mouseOffset An XY offset from the mouse position where the - * tooltip should be shown (defaults to [15,18]). - */ - /** - * @cfg {Boolean} trackMouse True to have the tooltip follow the mouse as it - * moves over the target element (defaults to false). - */ - trackMouse : false, - /** - * @cfg {Boolean} anchorToTarget True to anchor the tooltip to the target - * element, false to anchor it relative to the mouse coordinates (defaults - * to true). When anchorToTarget is true, use - * {@link #defaultAlign} to control tooltip alignment to the - * target element. When anchorToTarget is false, use - * {@link #anchorPosition} instead to control alignment. - */ - anchorToTarget : true, - /** - * @cfg {Number} anchorOffset A numeric pixel value used to offset the - * default position of the anchor arrow (defaults to 0). When the anchor - * position is on the top or bottom of the tooltip, anchorOffset - * will be used as a horizontal offset. Likewise, when the anchor position - * is on the left or right side, anchorOffset will be used as - * a vertical offset. - */ - anchorOffset : 0, - /** - * @cfg {String} delegate

      Optional. A {@link Ext.DomQuery DomQuery} - * selector which allows selection of individual elements within the - * {@link #target} element to trigger showing and hiding the - * ToolTip as the mouse moves within the target.

      - *

      When specified, the child element of the target which caused a show - * event is placed into the {@link #triggerElement} property - * before the ToolTip is shown.

      - *

      This may be useful when a Component has regular, repeating elements - * in it, each of which need a Tooltip which contains information specific - * to that element. For example:

      
      -var myGrid = new Ext.grid.gridPanel(gridConfig);
      -myGrid.on('render', function(grid) {
      -    var store = grid.getStore();  // Capture the Store.
      -    var view = grid.getView();    // Capture the GridView.
      -    myGrid.tip = new Ext.ToolTip({
      -        target: view.mainBody,    // The overall target element.
      -        delegate: '.x-grid3-row', // Each grid row causes its own seperate show and hide.
      -        trackMouse: true,         // Moving within the row should not hide the tip.
      -        renderTo: document.body,  // Render immediately so that tip.body can be
      -                                  //  referenced prior to the first show.
      -        listeners: {              // Change content dynamically depending on which element
      -                                  //  triggered the show.
      -            beforeshow: function updateTipBody(tip) {
      -                var rowIndex = view.findRowIndex(tip.triggerElement);
      -                tip.body.dom.innerHTML = 'Over Record ID ' + store.getAt(rowIndex).id;
      -            }
      -        }
      -    });
      -});
      -     *
      - */ - - // private - targetCounter : 0, - - constrainPosition : false, - - // private - initComponent : function(){ - Ext.ToolTip.superclass.initComponent.call(this); - this.lastActive = new Date(); - this.initTarget(this.target); - this.origAnchor = this.anchor; - }, - - // private - onRender : function(ct, position){ - Ext.ToolTip.superclass.onRender.call(this, ct, position); - this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition(); - this.anchorEl = this.el.createChild({ - cls: 'x-tip-anchor ' + this.anchorCls - }); - }, - - // private - afterRender : function(){ - Ext.ToolTip.superclass.afterRender.call(this); - this.anchorEl.setStyle('z-index', this.el.getZIndex() + 1).setVisibilityMode(Ext.Element.DISPLAY); - }, - - /** - * Binds this ToolTip to the specified element. The tooltip will be displayed when the mouse moves over the element. - * @param {Mixed} t The Element, HtmlElement, or ID of an element to bind to - */ - initTarget : function(target){ - var t; - if((t = Ext.get(target))){ - if(this.target){ - var tg = Ext.get(this.target); - this.mun(tg, 'mouseover', this.onTargetOver, this); - this.mun(tg, 'mouseout', this.onTargetOut, this); - this.mun(tg, 'mousemove', this.onMouseMove, this); - } - this.mon(t, { - mouseover: this.onTargetOver, - mouseout: this.onTargetOut, - mousemove: this.onMouseMove, - scope: this - }); - this.target = t; - } - if(this.anchor){ - this.anchorTarget = this.target; - } - }, - - // private - onMouseMove : function(e){ - var t = this.delegate ? e.getTarget(this.delegate) : this.triggerElement = true; - if (t) { - this.targetXY = e.getXY(); - if (t === this.triggerElement) { - if(!this.hidden && this.trackMouse){ - this.setPagePosition(this.getTargetXY()); - } - } else { - this.hide(); - this.lastActive = new Date(0); - this.onTargetOver(e); - } - } else if (!this.closable && this.isVisible()) { - this.hide(); - } - }, - - // private - getTargetXY : function(){ - if(this.delegate){ - this.anchorTarget = this.triggerElement; - } - if(this.anchor){ - this.targetCounter++; - var offsets = this.getOffsets(), - xy = (this.anchorToTarget && !this.trackMouse) ? this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) : this.targetXY, - dw = Ext.lib.Dom.getViewWidth() - 5, - dh = Ext.lib.Dom.getViewHeight() - 5, - de = document.documentElement, - bd = document.body, - scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5, - scrollY = (de.scrollTop || bd.scrollTop || 0) + 5, - axy = [xy[0] + offsets[0], xy[1] + offsets[1]], - sz = this.getSize(); - - this.anchorEl.removeClass(this.anchorCls); - - if(this.targetCounter < 2){ - if(axy[0] < scrollX){ - if(this.anchorToTarget){ - this.defaultAlign = 'l-r'; - if(this.mouseOffset){this.mouseOffset[0] *= -1;} - } - this.anchor = 'left'; - return this.getTargetXY(); - } - if(axy[0]+sz.width > dw){ - if(this.anchorToTarget){ - this.defaultAlign = 'r-l'; - if(this.mouseOffset){this.mouseOffset[0] *= -1;} - } - this.anchor = 'right'; - return this.getTargetXY(); - } - if(axy[1] < scrollY){ - if(this.anchorToTarget){ - this.defaultAlign = 't-b'; - if(this.mouseOffset){this.mouseOffset[1] *= -1;} - } - this.anchor = 'top'; - return this.getTargetXY(); - } - if(axy[1]+sz.height > dh){ - if(this.anchorToTarget){ - this.defaultAlign = 'b-t'; - if(this.mouseOffset){this.mouseOffset[1] *= -1;} - } - this.anchor = 'bottom'; - return this.getTargetXY(); - } - } - - this.anchorCls = 'x-tip-anchor-'+this.getAnchorPosition(); - this.anchorEl.addClass(this.anchorCls); - this.targetCounter = 0; - return axy; - }else{ - var mouseOffset = this.getMouseOffset(); - return [this.targetXY[0]+mouseOffset[0], this.targetXY[1]+mouseOffset[1]]; - } - }, - - getMouseOffset : function(){ - var offset = this.anchor ? [0,0] : [15,18]; - if(this.mouseOffset){ - offset[0] += this.mouseOffset[0]; - offset[1] += this.mouseOffset[1]; - } - return offset; - }, - - // private - getAnchorPosition : function(){ - if(this.anchor){ - this.tipAnchor = this.anchor.charAt(0); - }else{ - var m = this.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/); - if(!m){ - throw 'AnchorTip.defaultAlign is invalid'; - } - this.tipAnchor = m[1].charAt(0); - } - - switch(this.tipAnchor){ - case 't': return 'top'; - case 'b': return 'bottom'; - case 'r': return 'right'; - } - return 'left'; - }, - - // private - getAnchorAlign : function(){ - switch(this.anchor){ - case 'top' : return 'tl-bl'; - case 'left' : return 'tl-tr'; - case 'right': return 'tr-tl'; - default : return 'bl-tl'; - } - }, - - // private - getOffsets : function(){ - var offsets, - ap = this.getAnchorPosition().charAt(0); - if(this.anchorToTarget && !this.trackMouse){ - switch(ap){ - case 't': - offsets = [0, 9]; - break; - case 'b': - offsets = [0, -13]; - break; - case 'r': - offsets = [-13, 0]; - break; - default: - offsets = [9, 0]; - break; - } - }else{ - switch(ap){ - case 't': - offsets = [-15-this.anchorOffset, 30]; - break; - case 'b': - offsets = [-19-this.anchorOffset, -13-this.el.dom.offsetHeight]; - break; - case 'r': - offsets = [-15-this.el.dom.offsetWidth, -13-this.anchorOffset]; - break; - default: - offsets = [25, -13-this.anchorOffset]; - break; - } - } - var mouseOffset = this.getMouseOffset(); - offsets[0] += mouseOffset[0]; - offsets[1] += mouseOffset[1]; - - return offsets; - }, - - // private - onTargetOver : function(e){ - if(this.disabled || e.within(this.target.dom, true)){ - return; - } - var t = e.getTarget(this.delegate); - if (t) { - this.triggerElement = t; - this.clearTimer('hide'); - this.targetXY = e.getXY(); - this.delayShow(); - } - }, - - // private - delayShow : function(){ - if(this.hidden && !this.showTimer){ - if(this.lastActive.getElapsed() < this.quickShowInterval){ - this.show(); - }else{ - this.showTimer = this.show.defer(this.showDelay, this); - } - }else if(!this.hidden && this.autoHide !== false){ - this.show(); - } - }, - - // private - onTargetOut : function(e){ - if(this.disabled || e.within(this.target.dom, true)){ - return; - } - this.clearTimer('show'); - if(this.autoHide !== false){ - this.delayHide(); - } - }, - - // private - delayHide : function(){ - if(!this.hidden && !this.hideTimer){ - this.hideTimer = this.hide.defer(this.hideDelay, this); - } - }, - - /** - * Hides this tooltip if visible. - */ - hide: function(){ - this.clearTimer('dismiss'); - this.lastActive = new Date(); - if(this.anchorEl){ - this.anchorEl.hide(); - } - Ext.ToolTip.superclass.hide.call(this); - delete this.triggerElement; - }, - - /** - * Shows this tooltip at the current event target XY position. - */ - show : function(){ - if(this.anchor){ - // pre-show it off screen so that the el will have dimensions - // for positioning calcs when getting xy next - this.showAt([-1000,-1000]); - this.origConstrainPosition = this.constrainPosition; - this.constrainPosition = false; - this.anchor = this.origAnchor; - } - this.showAt(this.getTargetXY()); - - if(this.anchor){ - this.anchorEl.show(); - this.syncAnchor(); - this.constrainPosition = this.origConstrainPosition; - }else{ - this.anchorEl.hide(); - } - }, - - // inherit docs - showAt : function(xy){ - this.lastActive = new Date(); - this.clearTimers(); - Ext.ToolTip.superclass.showAt.call(this, xy); - if(this.dismissDelay && this.autoHide !== false){ - this.dismissTimer = this.hide.defer(this.dismissDelay, this); - } - if(this.anchor && !this.anchorEl.isVisible()){ - this.syncAnchor(); - this.anchorEl.show(); - }else{ - this.anchorEl.hide(); - } - }, - - // private - syncAnchor : function(){ - var anchorPos, targetPos, offset; - switch(this.tipAnchor.charAt(0)){ - case 't': - anchorPos = 'b'; - targetPos = 'tl'; - offset = [20+this.anchorOffset, 2]; - break; - case 'r': - anchorPos = 'l'; - targetPos = 'tr'; - offset = [-2, 11+this.anchorOffset]; - break; - case 'b': - anchorPos = 't'; - targetPos = 'bl'; - offset = [20+this.anchorOffset, -2]; - break; - default: - anchorPos = 'r'; - targetPos = 'tl'; - offset = [2, 11+this.anchorOffset]; - break; - } - this.anchorEl.alignTo(this.el, anchorPos+'-'+targetPos, offset); - }, - - // private - setPagePosition : function(x, y){ - Ext.ToolTip.superclass.setPagePosition.call(this, x, y); - if(this.anchor){ - this.syncAnchor(); - } - }, - - // private - clearTimer : function(name){ - name = name + 'Timer'; - clearTimeout(this[name]); - delete this[name]; - }, - - // private - clearTimers : function(){ - this.clearTimer('show'); - this.clearTimer('dismiss'); - this.clearTimer('hide'); - }, - - // private - onShow : function(){ - Ext.ToolTip.superclass.onShow.call(this); - Ext.getDoc().on('mousedown', this.onDocMouseDown, this); - }, - - // private - onHide : function(){ - Ext.ToolTip.superclass.onHide.call(this); - Ext.getDoc().un('mousedown', this.onDocMouseDown, this); - }, - - // private - onDocMouseDown : function(e){ - if(this.autoHide !== true && !this.closable && !e.within(this.el.dom)){ - this.disable(); - this.doEnable.defer(100, this); - } - }, - - // private - doEnable : function(){ - if(!this.isDestroyed){ - this.enable(); - } - }, - - // private - onDisable : function(){ - this.clearTimers(); - this.hide(); - }, - - // private - adjustPosition : function(x, y){ - if(this.constrainPosition){ - var ay = this.targetXY[1], h = this.getSize().height; - if(y <= ay && (y+h) >= ay){ - y = ay-h-5; - } - } - return {x : x, y: y}; - }, - - beforeDestroy : function(){ - this.clearTimers(); - Ext.destroy(this.anchorEl); - delete this.anchorEl; - delete this.target; - delete this.anchorTarget; - delete this.triggerElement; - Ext.ToolTip.superclass.beforeDestroy.call(this); - }, - - // private - onDestroy : function(){ - Ext.getDoc().un('mousedown', this.onDocMouseDown, this); - Ext.ToolTip.superclass.onDestroy.call(this); - } -}); - -Ext.reg('tooltip', Ext.ToolTip);/** - * @class Ext.QuickTip - * @extends Ext.ToolTip - * @xtype quicktip - * A specialized tooltip class for tooltips that can be specified in markup and automatically managed by the global - * {@link Ext.QuickTips} instance. See the QuickTips class header for additional usage details and examples. - * @constructor - * Create a new Tip - * @param {Object} config The configuration options - */ -Ext.QuickTip = Ext.extend(Ext.ToolTip, { - /** - * @cfg {Mixed} target The target HTMLElement, Ext.Element or id to associate with this quicktip (defaults to the document). - */ - /** - * @cfg {Boolean} interceptTitles True to automatically use the element's DOM title value if available (defaults to false). - */ - interceptTitles : false, - - // private - tagConfig : { - namespace : "ext", - attribute : "qtip", - width : "qwidth", - target : "target", - title : "qtitle", - hide : "hide", - cls : "qclass", - align : "qalign", - anchor : "anchor" - }, - - // private - initComponent : function(){ - this.target = this.target || Ext.getDoc(); - this.targets = this.targets || {}; - Ext.QuickTip.superclass.initComponent.call(this); - }, - - /** - * Configures a new quick tip instance and assigns it to a target element. The following config values are - * supported (for example usage, see the {@link Ext.QuickTips} class header): - *
        - *
      • autoHide
      • - *
      • cls
      • - *
      • dismissDelay (overrides the singleton value)
      • - *
      • target (required)
      • - *
      • text (required)
      • - *
      • title
      • - *
      • width
      - * @param {Object} config The config object - */ - register : function(config){ - var cs = Ext.isArray(config) ? config : arguments; - for(var i = 0, len = cs.length; i < len; i++){ - var c = cs[i]; - var target = c.target; - if(target){ - if(Ext.isArray(target)){ - for(var j = 0, jlen = target.length; j < jlen; j++){ - this.targets[Ext.id(target[j])] = c; - } - } else{ - this.targets[Ext.id(target)] = c; - } - } - } - }, - - /** - * Removes this quick tip from its element and destroys it. - * @param {String/HTMLElement/Element} el The element from which the quick tip is to be removed. - */ - unregister : function(el){ - delete this.targets[Ext.id(el)]; - }, - - /** - * Hides a visible tip or cancels an impending show for a particular element. - * @param {String/HTMLElement/Element} el The element that is the target of the tip. - */ - cancelShow: function(el){ - var at = this.activeTarget; - el = Ext.get(el).dom; - if(this.isVisible()){ - if(at && at.el == el){ - this.hide(); - } - }else if(at && at.el == el){ - this.clearTimer('show'); - } - }, - - getTipCfg: function(e) { - var t = e.getTarget(), - ttp, - cfg; - if(this.interceptTitles && t.title && Ext.isString(t.title)){ - ttp = t.title; - t.qtip = ttp; - t.removeAttribute("title"); - e.preventDefault(); - }else{ - cfg = this.tagConfig; - ttp = t.qtip || Ext.fly(t).getAttribute(cfg.attribute, cfg.namespace); - } - return ttp; - }, - - // private - onTargetOver : function(e){ - if(this.disabled){ - return; - } - this.targetXY = e.getXY(); - var t = e.getTarget(); - if(!t || t.nodeType !== 1 || t == document || t == document.body){ - return; - } - if(this.activeTarget && ((t == this.activeTarget.el) || Ext.fly(this.activeTarget.el).contains(t))){ - this.clearTimer('hide'); - this.show(); - return; - } - if(t && this.targets[t.id]){ - this.activeTarget = this.targets[t.id]; - this.activeTarget.el = t; - this.anchor = this.activeTarget.anchor; - if(this.anchor){ - this.anchorTarget = t; - } - this.delayShow(); - return; - } - var ttp, et = Ext.fly(t), cfg = this.tagConfig, ns = cfg.namespace; - if(ttp = this.getTipCfg(e)){ - var autoHide = et.getAttribute(cfg.hide, ns); - this.activeTarget = { - el: t, - text: ttp, - width: et.getAttribute(cfg.width, ns), - autoHide: autoHide != "user" && autoHide !== 'false', - title: et.getAttribute(cfg.title, ns), - cls: et.getAttribute(cfg.cls, ns), - align: et.getAttribute(cfg.align, ns) - - }; - this.anchor = et.getAttribute(cfg.anchor, ns); - if(this.anchor){ - this.anchorTarget = t; - } - this.delayShow(); - } - }, - - // private - onTargetOut : function(e){ - - // If moving within the current target, and it does not have a new tip, ignore the mouseout - if (this.activeTarget && e.within(this.activeTarget.el) && !this.getTipCfg(e)) { - return; - } - - this.clearTimer('show'); - if(this.autoHide !== false){ - this.delayHide(); - } - }, - - // inherit docs - showAt : function(xy){ - var t = this.activeTarget; - if(t){ - if(!this.rendered){ - this.render(Ext.getBody()); - this.activeTarget = t; - } - if(t.width){ - this.setWidth(t.width); - this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth())); - this.measureWidth = false; - } else{ - this.measureWidth = true; - } - this.setTitle(t.title || ''); - this.body.update(t.text); - this.autoHide = t.autoHide; - this.dismissDelay = t.dismissDelay || this.dismissDelay; - if(this.lastCls){ - this.el.removeClass(this.lastCls); - delete this.lastCls; - } - if(t.cls){ - this.el.addClass(t.cls); - this.lastCls = t.cls; - } - if(this.anchor){ - this.constrainPosition = false; - }else if(t.align){ // TODO: this doesn't seem to work consistently - xy = this.el.getAlignToXY(t.el, t.align); - this.constrainPosition = false; - }else{ - this.constrainPosition = true; - } - } - Ext.QuickTip.superclass.showAt.call(this, xy); - }, - - // inherit docs - hide: function(){ - delete this.activeTarget; - Ext.QuickTip.superclass.hide.call(this); - } -}); -Ext.reg('quicktip', Ext.QuickTip);/** - * @class Ext.QuickTips - *

      Provides attractive and customizable tooltips for any element. The QuickTips - * singleton is used to configure and manage tooltips globally for multiple elements - * in a generic manner. To create individual tooltips with maximum customizability, - * you should consider either {@link Ext.Tip} or {@link Ext.ToolTip}.

      - *

      Quicktips can be configured via tag attributes directly in markup, or by - * registering quick tips programmatically via the {@link #register} method.

      - *

      The singleton's instance of {@link Ext.QuickTip} is available via - * {@link #getQuickTip}, and supports all the methods, and all the all the - * configuration properties of Ext.QuickTip. These settings will apply to all - * tooltips shown by the singleton.

      - *

      Below is the summary of the configuration properties which can be used. - * For detailed descriptions see the config options for the {@link Ext.QuickTip QuickTip} class

      - *

      QuickTips singleton configs (all are optional)

      - *
      • dismissDelay
      • - *
      • hideDelay
      • - *
      • maxWidth
      • - *
      • minWidth
      • - *
      • showDelay
      • - *
      • trackMouse
      - *

      Target element configs (optional unless otherwise noted)

      - *
      • autoHide
      • - *
      • cls
      • - *
      • dismissDelay (overrides singleton value)
      • - *
      • target (required)
      • - *
      • text (required)
      • - *
      • title
      • - *
      • width
      - *

      Here is an example showing how some of these config options could be used:

      - *
      
      -// Init the singleton.  Any tag-based quick tips will start working.
      -Ext.QuickTips.init();
      -
      -// Apply a set of config properties to the singleton
      -Ext.apply(Ext.QuickTips.getQuickTip(), {
      -    maxWidth: 200,
      -    minWidth: 100,
      -    showDelay: 50,      // Show 50ms after entering target
      -    trackMouse: true
      -});
      -
      -// Manually register a quick tip for a specific element
      -Ext.QuickTips.register({
      -    target: 'my-div',
      -    title: 'My Tooltip',
      -    text: 'This tooltip was added in code',
      -    width: 100,
      -    dismissDelay: 10000 // Hide after 10 seconds hover
      -});
      -
      - *

      To register a quick tip in markup, you simply add one or more of the valid QuickTip attributes prefixed with - * the ext: namespace. The HTML element itself is automatically set as the quick tip target. Here is the summary - * of supported attributes (optional unless otherwise noted):

      - *
      • hide: Specifying "user" is equivalent to setting autoHide = false. Any other value will be the - * same as autoHide = true.
      • - *
      • qclass: A CSS class to be applied to the quick tip (equivalent to the 'cls' target element config).
      • - *
      • qtip (required): The quick tip text (equivalent to the 'text' target element config).
      • - *
      • qtitle: The quick tip title (equivalent to the 'title' target element config).
      • - *
      • qwidth: The quick tip width (equivalent to the 'width' target element config).
      - *

      Here is an example of configuring an HTML element to display a tooltip from markup:

      - *
      
      -// Add a quick tip to an HTML button
      -<input type="button" value="OK" ext:qtitle="OK Button" ext:qwidth="100"
      -     ext:qtip="This is a quick tip from markup!"></input>
      -
      - * @singleton - */ -Ext.QuickTips = function(){ - var tip, - disabled = false; - - return { - /** - * Initialize the global QuickTips instance and prepare any quick tips. - * @param {Boolean} autoRender True to render the QuickTips container immediately to preload images. (Defaults to true) - */ - init : function(autoRender){ - if(!tip){ - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.QuickTips.init(autoRender); - }); - return; - } - tip = new Ext.QuickTip({ - elements:'header,body', - disabled: disabled - }); - if(autoRender !== false){ - tip.render(Ext.getBody()); - } - } - }, - - // Protected method called by the dd classes - ddDisable : function(){ - // don't disable it if we don't need to - if(tip && !disabled){ - tip.disable(); - } - }, - - // Protected method called by the dd classes - ddEnable : function(){ - // only enable it if it hasn't been disabled - if(tip && !disabled){ - tip.enable(); - } - }, - - /** - * Enable quick tips globally. - */ - enable : function(){ - if(tip){ - tip.enable(); - } - disabled = false; - }, - - /** - * Disable quick tips globally. - */ - disable : function(){ - if(tip){ - tip.disable(); - } - disabled = true; - }, - - /** - * Returns true if quick tips are enabled, else false. - * @return {Boolean} - */ - isEnabled : function(){ - return tip !== undefined && !tip.disabled; - }, - - /** - * Gets the single {@link Ext.QuickTip QuickTip} instance used to show tips from all registered elements. - * @return {Ext.QuickTip} - */ - getQuickTip : function(){ - return tip; - }, - - /** - * Configures a new quick tip instance and assigns it to a target element. See - * {@link Ext.QuickTip#register} for details. - * @param {Object} config The config object - */ - register : function(){ - tip.register.apply(tip, arguments); - }, - - /** - * Removes any registered quick tip from the target element and destroys it. - * @param {String/HTMLElement/Element} el The element from which the quick tip is to be removed. - */ - unregister : function(){ - tip.unregister.apply(tip, arguments); - }, - - /** - * Alias of {@link #register}. - * @param {Object} config The config object - */ - tips : function(){ - tip.register.apply(tip, arguments); - } - }; -}();/** - * @class Ext.slider.Tip - * @extends Ext.Tip - * Simple plugin for using an Ext.Tip with a slider to show the slider value. Example usage: -
      -new Ext.Slider({
      -    width: 214,
      -    minValue: 0,
      -    maxValue: 100,
      -    plugins: new Ext.slider.Tip()
      -});
      -
      - * Optionally provide your own tip text by overriding getText: -
      - new Ext.Slider({
      -     width: 214,
      -     minValue: 0,
      -     maxValue: 100,
      -     plugins: new Ext.slider.Tip({
      -         getText: function(thumb){
      -             return String.format('{0}% complete', thumb.value);
      -         }
      -     })
      - });
      - 
      - */ -Ext.slider.Tip = Ext.extend(Ext.Tip, { - minWidth: 10, - offsets : [0, -10], - - init: function(slider) { - slider.on({ - scope : this, - dragstart: this.onSlide, - drag : this.onSlide, - dragend : this.hide, - destroy : this.destroy - }); - }, - - /** - * @private - * Called whenever a dragstart or drag event is received on the associated Thumb. - * Aligns the Tip with the Thumb's new position. - * @param {Ext.slider.MultiSlider} slider The slider - * @param {Ext.EventObject} e The Event object - * @param {Ext.slider.Thumb} thumb The thumb that the Tip is attached to - */ - onSlide : function(slider, e, thumb) { - this.show(); - this.body.update(this.getText(thumb)); - this.doAutoWidth(); - this.el.alignTo(thumb.el, 'b-t?', this.offsets); - }, - - /** - * Used to create the text that appears in the Tip's body. By default this just returns - * the value of the Slider Thumb that the Tip is attached to. Override to customize. - * @param {Ext.slider.Thumb} thumb The Thumb that the Tip is attached to - * @return {String} The text to display in the tip - */ - getText : function(thumb) { - return String(thumb.value); - } -}); - -//backwards compatibility - SliderTip used to be a ux before 3.2 -Ext.ux.SliderTip = Ext.slider.Tip;/** - * @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){ - if(Ext.isEmpty(path)){ - if(callback){ - callback(false, undefined); - } - return; - } - 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){ - if(Ext.isEmpty(path)){ - if(callback){ - callback(false, undefined); - } - return; - } - 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 = Ext.extend(Ext.util.Observable, { - - constructor: 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); - }, - - /** - * @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 = Ext.extend(Ext.util.Observable, { - - constructor: 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 = []; - /** - * 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); - }, - - // 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 || cs[i], 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 = Ext.extend(Ext.data.Node, { - - constructor : 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); - }, - - 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){ - var rendered = node.ui.rendered; - // if it's been rendered remove dom node - if(rendered){ - node.ui.remove(); - } - if(rendered && 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); - }, - - /** - * Sets the icon class for this node. - * @param {String} cls - */ - setIconCls : function(cls){ - var old = this.attributes.iconCls; - this.attributes.iconCls = cls; - if(this.rendered){ - this.ui.onIconClsChange(this, cls, old); - } - }, - - /** - * Sets the tooltip for this node. - * @param {String} tip The text for the tip - * @param {String} title (Optional) The title for the tip - */ - setTooltip : function(tip, title){ - this.attributes.qtip = tip; - this.attributes.qtipTitle = title; - if(this.rendered){ - this.ui.onTipChange(this, tip, title); - } - }, - - /** - * Sets the icon for this node. - * @param {String} icon - */ - setIcon : function(icon){ - this.attributes.icon = icon; - if(this.rendered){ - this.ui.onIconChange(this, icon); - } - }, - - /** - * Sets the href for the node. - * @param {String} href The href to set - * @param {String} (Optional) target The target of the href - */ - setHref : function(href, target){ - this.attributes.href = href; - this.attributes.hrefTarget = target; - if(this.rendered){ - this.ui.onHrefChange(this, href, target); - } - }, - - /** - * Sets the class on this node. - * @param {String} cls - */ - setCls : function(cls){ - var old = this.attributes.cls; - this.attributes.cls = cls; - if(this.rendered){ - this.ui.onClsChange(this, cls, old); - } - }, - - /** - * 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, 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, anim) { - var cs = this.childNodes, - i, - len = cs.length; - for (i = 0; i < len; i++) { - cs[i].expand(deep, anim); - } - }, - - /** - * 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 = Ext.extend(Object, { - - constructor : function(node){ - Ext.apply(this, { - node: node, - rendered: false, - animating: false, - wasLeaf: true, - ecc: 'x-tree-ec-icon x-tree-elbow', - emptyIcon: Ext.BLANK_IMAGE_URL - }); - }, - - // 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 - onIconClsChange : function(node, cls, oldCls){ - if(this.rendered){ - Ext.fly(this.iconNode).replaceClass(oldCls, cls); - } - }, - - // private - onIconChange : function(node, icon){ - if(this.rendered){ - //'', - var empty = Ext.isEmpty(icon); - this.iconNode.src = empty ? this.emptyIcon : icon; - Ext.fly(this.iconNode)[empty ? 'removeClass' : 'addClass']('x-tree-node-inline-icon'); - } - }, - - // private - onTipChange : function(node, tip, title){ - if(this.rendered){ - var hasTitle = Ext.isDefined(title); - if(this.textNode.setAttributeNS){ - this.textNode.setAttributeNS("ext", "qtip", tip); - if(hasTitle){ - this.textNode.setAttributeNS("ext", "qtitle", title); - } - }else{ - this.textNode.setAttribute("ext:qtip", tip); - if(hasTitle){ - this.textNode.setAttribute("ext:qtitle", title); - } - } - } - }, - - // private - onHrefChange : function(node, href, target){ - if(this.rendered){ - this.anchor.href = this.getHref(href); - if(Ext.isDefined(target)){ - this.anchor.target = target; - } - } - }, - - // private - onClsChange : function(node, cls, oldCls){ - if(this.rendered){ - Ext.fly(this.elNode).replaceClass(oldCls, cls); - } - }, - - // private - onDisableChange : function(node, state){ - this.disabled = state; - if (this.checkbox) { - this.checkbox.disabled = state; - } - this[state ? 'addClass' : '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){ - this.onTipChange(n, a.qtip, 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 = this.getHref(a.href), - 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; - }, - - /** - * @private Gets a normalized href for the node. - * @param {String} href - */ - getHref : function(href){ - return Ext.isEmpty(href) ? (Ext.isGecko ? '' : '#') : href; - }, - -/** - * 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 = Ext.extend(Object, { - - constructor: 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({ - scope: this, - beforechildrenrendered: this.doSort, - append: this.updateSort, - insert: this.updateSort, - textchange: this.updateSortParent - }); - - var desc = this.dir && this.dir.toLowerCase() == 'desc', - prop = this.property || 'text', - sortType = this.sortType, - folderSort = this.folderSort, - caseSensitive = this.caseSensitive === true, - leafAttr = this.leafAttr || 'leaf'; - - if(Ext.isString(sortType)){ - sortType = Ext.data.SortTypes[sortType]; - } - this.sortFn = function(n1, n2){ - var attr1 = n1.attributes, - attr2 = n2.attributes; - - if(folderSort){ - if(attr1[leafAttr] && !attr2[leafAttr]){ - return 1; - } - if(!attr1[leafAttr] && attr2[leafAttr]){ - return -1; - } - } - var prop1 = attr1[prop], - prop2 = attr2[prop], - v1 = sortType ? sortType(prop1) : (caseSensitive ? prop1 : prop1.toUpperCase()), - v2 = sortType ? sortType(prop2) : (caseSensitive ? prop2 : prop2.toUpperCase()); - - if(v1 < v2){ - return desc ? 1 : -1; - }else if(v1 > v2){ - return desc ? -1 : 1; - } - return 0; - }; - }, - - doSort : function(node){ - node.sort(this.sortFn); - }, - - 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); - } -});/*! SWFObject v2.2 - is released under the MIT License -*/ - -var swfobject = function() { - - var UNDEF = "undefined", - OBJECT = "object", - SHOCKWAVE_FLASH = "Shockwave Flash", - SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash", - FLASH_MIME_TYPE = "application/x-shockwave-flash", - EXPRESS_INSTALL_ID = "SWFObjectExprInst", - ON_READY_STATE_CHANGE = "onreadystatechange", - - win = window, - doc = document, - nav = navigator, - - plugin = false, - domLoadFnArr = [main], - regObjArr = [], - objIdArr = [], - listenersArr = [], - storedAltContent, - storedAltContentId, - storedCallbackFn, - storedCallbackObj, - isDomLoaded = false, - isExpressInstallActive = false, - dynamicStylesheet, - dynamicStylesheetMedia, - autoHideShow = true, - - /* Centralized function for browser feature detection - - User agent string detection is only used when no good alternative is possible - - Is executed directly for optimal performance - */ - ua = function() { - var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF, - u = nav.userAgent.toLowerCase(), - p = nav.platform.toLowerCase(), - windows = p ? (/win/).test(p) : /win/.test(u), - mac = p ? (/mac/).test(p) : /mac/.test(u), - webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit - ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html - playerVersion = [0,0,0], - d = null; - if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) { - d = nav.plugins[SHOCKWAVE_FLASH].description; - if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+ - plugin = true; - ie = false; // cascaded feature detection for Internet Explorer - d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); - playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10); - playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10); - playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0; - } - } - else if (typeof win.ActiveXObject != UNDEF) { - try { - var a = new ActiveXObject(SHOCKWAVE_FLASH_AX); - if (a) { // a will return null when ActiveX is disabled - d = a.GetVariable("$version"); - if (d) { - ie = true; // cascaded feature detection for Internet Explorer - d = d.split(" ")[1].split(","); - playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; - } - } - } - catch(e) {} - } - return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac }; - }(), - - /* Cross-browser onDomLoad - - Will fire an event as soon as the DOM of a web page is loaded - - Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/ - - Regular onload serves as fallback - */ - onDomLoad = function() { - if (!ua.w3) { return; } - if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically - callDomLoadFunctions(); - } - if (!isDomLoaded) { - if (typeof doc.addEventListener != UNDEF) { - doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false); - } - if (ua.ie && ua.win) { - doc.attachEvent(ON_READY_STATE_CHANGE, function() { - if (doc.readyState == "complete") { - doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee); - callDomLoadFunctions(); - } - }); - if (win == top) { // if not inside an iframe - (function(){ - if (isDomLoaded) { return; } - try { - doc.documentElement.doScroll("left"); - } - catch(e) { - setTimeout(arguments.callee, 0); - return; - } - callDomLoadFunctions(); - })(); - } - } - if (ua.wk) { - (function(){ - if (isDomLoaded) { return; } - if (!(/loaded|complete/).test(doc.readyState)) { - setTimeout(arguments.callee, 0); - return; - } - callDomLoadFunctions(); - })(); - } - addLoadEvent(callDomLoadFunctions); - } - }(); - - function callDomLoadFunctions() { - if (isDomLoaded) { return; } - try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early - var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span")); - t.parentNode.removeChild(t); - } - catch (e) { return; } - isDomLoaded = true; - var dl = domLoadFnArr.length; - for (var i = 0; i < dl; i++) { - domLoadFnArr[i](); - } - } - - function addDomLoadEvent(fn) { - if (isDomLoaded) { - fn(); - } - else { - domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+ - } - } - - /* Cross-browser onload - - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/ - - Will fire an event as soon as a web page including all of its assets are loaded - */ - function addLoadEvent(fn) { - if (typeof win.addEventListener != UNDEF) { - win.addEventListener("load", fn, false); - } - else if (typeof doc.addEventListener != UNDEF) { - doc.addEventListener("load", fn, false); - } - else if (typeof win.attachEvent != UNDEF) { - addListener(win, "onload", fn); - } - else if (typeof win.onload == "function") { - var fnOld = win.onload; - win.onload = function() { - fnOld(); - fn(); - }; - } - else { - win.onload = fn; - } - } - - /* Main function - - Will preferably execute onDomLoad, otherwise onload (as a fallback) - */ - function main() { - if (plugin) { - testPlayerVersion(); - } - else { - matchVersions(); - } - } - - /* Detect the Flash Player version for non-Internet Explorer browsers - - Detecting the plug-in version via the object element is more precise than using the plugins collection item's description: - a. Both release and build numbers can be detected - b. Avoid wrong descriptions by corrupt installers provided by Adobe - c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports - - Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available - */ - function testPlayerVersion() { - var b = doc.getElementsByTagName("body")[0]; - var o = createElement(OBJECT); - o.setAttribute("type", FLASH_MIME_TYPE); - var t = b.appendChild(o); - if (t) { - var counter = 0; - (function(){ - if (typeof t.GetVariable != UNDEF) { - var d = t.GetVariable("$version"); - if (d) { - d = d.split(" ")[1].split(","); - ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; - } - } - else if (counter < 10) { - counter++; - setTimeout(arguments.callee, 10); - return; - } - b.removeChild(o); - t = null; - matchVersions(); - })(); - } - else { - matchVersions(); - } - } - - /* Perform Flash Player and SWF version matching; static publishing only - */ - function matchVersions() { - var rl = regObjArr.length; - if (rl > 0) { - for (var i = 0; i < rl; i++) { // for each registered object element - var id = regObjArr[i].id; - var cb = regObjArr[i].callbackFn; - var cbObj = {success:false, id:id}; - if (ua.pv[0] > 0) { - var obj = getElementById(id); - if (obj) { - if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match! - setVisibility(id, true); - if (cb) { - cbObj.success = true; - cbObj.ref = getObjectById(id); - cb(cbObj); - } - } - else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported - var att = {}; - att.data = regObjArr[i].expressInstall; - att.width = obj.getAttribute("width") || "0"; - att.height = obj.getAttribute("height") || "0"; - if (obj.getAttribute("class")) { att.styleclass = obj.getAttribute("class"); } - if (obj.getAttribute("align")) { att.align = obj.getAttribute("align"); } - // parse HTML object param element's name-value pairs - var par = {}; - var p = obj.getElementsByTagName("param"); - var pl = p.length; - for (var j = 0; j < pl; j++) { - if (p[j].getAttribute("name").toLowerCase() != "movie") { - par[p[j].getAttribute("name")] = p[j].getAttribute("value"); - } - } - showExpressInstall(att, par, id, cb); - } - else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF - displayAltContent(obj); - if (cb) { cb(cbObj); } - } - } - } - else { // if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content) - setVisibility(id, true); - if (cb) { - var o = getObjectById(id); // test whether there is an HTML object element or not - if (o && typeof o.SetVariable != UNDEF) { - cbObj.success = true; - cbObj.ref = o; - } - cb(cbObj); - } - } - } - } - } - - function getObjectById(objectIdStr) { - var r = null; - var o = getElementById(objectIdStr); - if (o && o.nodeName == "OBJECT") { - if (typeof o.SetVariable != UNDEF) { - r = o; - } - else { - var n = o.getElementsByTagName(OBJECT)[0]; - if (n) { - r = n; - } - } - } - return r; - } - - /* Requirements for Adobe Express Install - - only one instance can be active at a time - - fp 6.0.65 or higher - - Win/Mac OS only - - no Webkit engines older than version 312 - */ - function canExpressInstall() { - return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312); - } - - /* Show the Adobe Express Install dialog - - Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75 - */ - function showExpressInstall(att, par, replaceElemIdStr, callbackFn) { - isExpressInstallActive = true; - storedCallbackFn = callbackFn || null; - storedCallbackObj = {success:false, id:replaceElemIdStr}; - var obj = getElementById(replaceElemIdStr); - if (obj) { - if (obj.nodeName == "OBJECT") { // static publishing - storedAltContent = abstractAltContent(obj); - storedAltContentId = null; - } - else { // dynamic publishing - storedAltContent = obj; - storedAltContentId = replaceElemIdStr; - } - att.id = EXPRESS_INSTALL_ID; - if (typeof att.width == UNDEF || (!(/%$/).test(att.width) && parseInt(att.width, 10) < 310)) { - att.width = "310"; - } - - if (typeof att.height == UNDEF || (!(/%$/).test(att.height) && parseInt(att.height, 10) < 137)) { - att.height = "137"; - } - doc.title = doc.title.slice(0, 47) + " - Flash Player Installation"; - var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn", - fv = "MMredirectURL=" + win.location.toString().replace(/&/g,"%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title; - if (typeof par.flashvars != UNDEF) { - par.flashvars += "&" + fv; - } - else { - par.flashvars = fv; - } - // IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it, - // because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work - if (ua.ie && ua.win && obj.readyState != 4) { - var newObj = createElement("div"); - replaceElemIdStr += "SWFObjectNew"; - newObj.setAttribute("id", replaceElemIdStr); - obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - obj.parentNode.removeChild(obj); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - createSWF(att, par, replaceElemIdStr); - } - } - - /* Functions to abstract and display alternative content - */ - function displayAltContent(obj) { - if (ua.ie && ua.win && obj.readyState != 4) { - // IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it, - // because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work - var el = createElement("div"); - obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content - el.parentNode.replaceChild(abstractAltContent(obj), el); - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - obj.parentNode.removeChild(obj); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - else { - obj.parentNode.replaceChild(abstractAltContent(obj), obj); - } - } - - function abstractAltContent(obj) { - var ac = createElement("div"); - if (ua.win && ua.ie) { - ac.innerHTML = obj.innerHTML; - } - else { - var nestedObj = obj.getElementsByTagName(OBJECT)[0]; - if (nestedObj) { - var c = nestedObj.childNodes; - if (c) { - var cl = c.length; - for (var i = 0; i < cl; i++) { - if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) { - ac.appendChild(c[i].cloneNode(true)); - } - } - } - } - } - return ac; - } - - /* Cross-browser dynamic SWF creation - */ - function createSWF(attObj, parObj, id) { - var r, el = getElementById(id); - if (ua.wk && ua.wk < 312) { return r; } - if (el) { - if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content - attObj.id = id; - } - if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML - var att = ""; - for (var i in attObj) { - if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries - if (i.toLowerCase() == "data") { - parObj.movie = attObj[i]; - } - else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword - att += ' class="' + attObj[i] + '"'; - } - else if (i.toLowerCase() != "classid") { - att += ' ' + i + '="' + attObj[i] + '"'; - } - } - } - var par = ""; - for (var j in parObj) { - if (parObj[j] != Object.prototype[j]) { // filter out prototype additions from other potential libraries - par += ''; - } - } - el.outerHTML = '' + par + ''; - objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only) - r = getElementById(attObj.id); - } - else { // well-behaving browsers - var o = createElement(OBJECT); - o.setAttribute("type", FLASH_MIME_TYPE); - for (var m in attObj) { - if (attObj[m] != Object.prototype[m]) { // filter out prototype additions from other potential libraries - if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword - o.setAttribute("class", attObj[m]); - } - else if (m.toLowerCase() != "classid") { // filter out IE specific attribute - o.setAttribute(m, attObj[m]); - } - } - } - for (var n in parObj) { - if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element - createObjParam(o, n, parObj[n]); - } - } - el.parentNode.replaceChild(o, el); - r = o; - } - } - return r; - } - - function createObjParam(el, pName, pValue) { - var p = createElement("param"); - p.setAttribute("name", pName); - p.setAttribute("value", pValue); - el.appendChild(p); - } - - /* Cross-browser SWF removal - - Especially needed to safely and completely remove a SWF in Internet Explorer - */ - function removeSWF(id) { - var obj = getElementById(id); - if (obj && obj.nodeName == "OBJECT") { - if (ua.ie && ua.win) { - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - removeObjectInIE(id); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - else { - obj.parentNode.removeChild(obj); - } - } - } - - function removeObjectInIE(id) { - var obj = getElementById(id); - if (obj) { - for (var i in obj) { - if (typeof obj[i] == "function") { - obj[i] = null; - } - } - obj.parentNode.removeChild(obj); - } - } - - /* Functions to optimize JavaScript compression - */ - function getElementById(id) { - var el = null; - try { - el = doc.getElementById(id); - } - catch (e) {} - return el; - } - - function createElement(el) { - return doc.createElement(el); - } - - /* Updated attachEvent function for Internet Explorer - - Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks - */ - function addListener(target, eventType, fn) { - target.attachEvent(eventType, fn); - listenersArr[listenersArr.length] = [target, eventType, fn]; - } - - /* Flash Player and SWF content version matching - */ - function hasPlayerVersion(rv) { - var pv = ua.pv, v = rv.split("."); - v[0] = parseInt(v[0], 10); - v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0" - v[2] = parseInt(v[2], 10) || 0; - return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false; - } - - /* Cross-browser dynamic CSS creation - - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php - */ - function createCSS(sel, decl, media, newStyle) { - if (ua.ie && ua.mac) { return; } - var h = doc.getElementsByTagName("head")[0]; - if (!h) { return; } // to also support badly authored HTML pages that lack a head element - var m = (media && typeof media == "string") ? media : "screen"; - if (newStyle) { - dynamicStylesheet = null; - dynamicStylesheetMedia = null; - } - if (!dynamicStylesheet || dynamicStylesheetMedia != m) { - // create dynamic stylesheet + get a global reference to it - var s = createElement("style"); - s.setAttribute("type", "text/css"); - s.setAttribute("media", m); - dynamicStylesheet = h.appendChild(s); - if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) { - dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1]; - } - dynamicStylesheetMedia = m; - } - // add style rule - if (ua.ie && ua.win) { - if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) { - dynamicStylesheet.addRule(sel, decl); - } - } - else { - if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) { - dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}")); - } - } - } - - function setVisibility(id, isVisible) { - if (!autoHideShow) { return; } - var v = isVisible ? "visible" : "hidden"; - if (isDomLoaded && getElementById(id)) { - getElementById(id).style.visibility = v; - } - else { - createCSS("#" + id, "visibility:" + v); - } - } - - /* Filter to avoid XSS attacks - */ - function urlEncodeIfNecessary(s) { - var regex = /[\\\"<>\.;]/; - var hasBadChars = regex.exec(s) != null; - return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s; - } - - /* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only) - */ - var cleanup = function() { - if (ua.ie && ua.win) { - window.attachEvent("onunload", function() { - // remove listeners to avoid memory leaks - var ll = listenersArr.length; - for (var i = 0; i < ll; i++) { - listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]); - } - // cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect - var il = objIdArr.length; - for (var j = 0; j < il; j++) { - removeSWF(objIdArr[j]); - } - // cleanup library's main closures to avoid memory leaks - for (var k in ua) { - ua[k] = null; - } - ua = null; - for (var l in swfobject) { - swfobject[l] = null; - } - swfobject = null; - window.detachEvent('onunload', arguments.callee); - }); - } - }(); - - return { - /* Public API - - Reference: http://code.google.com/p/swfobject/wiki/documentation - */ - registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) { - if (ua.w3 && objectIdStr && swfVersionStr) { - var regObj = {}; - regObj.id = objectIdStr; - regObj.swfVersion = swfVersionStr; - regObj.expressInstall = xiSwfUrlStr; - regObj.callbackFn = callbackFn; - regObjArr[regObjArr.length] = regObj; - setVisibility(objectIdStr, false); - } - else if (callbackFn) { - callbackFn({success:false, id:objectIdStr}); - } - }, - - getObjectById: function(objectIdStr) { - if (ua.w3) { - return getObjectById(objectIdStr); - } - }, - - embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) { - var callbackObj = {success:false, id:replaceElemIdStr}; - if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) { - setVisibility(replaceElemIdStr, false); - addDomLoadEvent(function() { - widthStr += ""; // auto-convert to string - heightStr += ""; - var att = {}; - if (attObj && typeof attObj === OBJECT) { - for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs - att[i] = attObj[i]; - } - } - att.data = swfUrlStr; - att.width = widthStr; - att.height = heightStr; - var par = {}; - if (parObj && typeof parObj === OBJECT) { - for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs - par[j] = parObj[j]; - } - } - if (flashvarsObj && typeof flashvarsObj === OBJECT) { - for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs - if (typeof par.flashvars != UNDEF) { - par.flashvars += "&" + k + "=" + flashvarsObj[k]; - } - else { - par.flashvars = k + "=" + flashvarsObj[k]; - } - } - } - if (hasPlayerVersion(swfVersionStr)) { // create SWF - var obj = createSWF(att, par, replaceElemIdStr); - if (att.id == replaceElemIdStr) { - setVisibility(replaceElemIdStr, true); - } - callbackObj.success = true; - callbackObj.ref = obj; - } - else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install - att.data = xiSwfUrlStr; - showExpressInstall(att, par, replaceElemIdStr, callbackFn); - return; - } - else { // show alternative content - setVisibility(replaceElemIdStr, true); - } - if (callbackFn) { callbackFn(callbackObj); } - }); - } - else if (callbackFn) { callbackFn(callbackObj); } - }, - - switchOffAutoHideShow: function() { - autoHideShow = false; - }, - - ua: ua, - - getFlashPlayerVersion: function() { - return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] }; - }, - - hasFlashPlayerVersion: hasPlayerVersion, - - createSWF: function(attObj, parObj, replaceElemIdStr) { - if (ua.w3) { - return createSWF(attObj, parObj, replaceElemIdStr); - } - else { - return undefined; - } - }, - - showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) { - if (ua.w3 && canExpressInstall()) { - showExpressInstall(att, par, replaceElemIdStr, callbackFn); - } - }, - - removeSWF: function(objElemIdStr) { - if (ua.w3) { - removeSWF(objElemIdStr); - } - }, - - createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) { - if (ua.w3) { - createCSS(selStr, declStr, mediaStr, newStyleBoolean); - } - }, - - addDomLoadEvent: addDomLoadEvent, - - addLoadEvent: addLoadEvent, - - getQueryParamValue: function(param) { - var q = doc.location.search || doc.location.hash; - if (q) { - if (/\?/.test(q)) { q = q.split("?")[1]; } // strip question mark - if (param == null) { - return urlEncodeIfNecessary(q); - } - var pairs = q.split("&"); - for (var i = 0; i < pairs.length; i++) { - if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) { - return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1))); - } - } - } - return ""; - }, - - // For internal usage only - expressInstallCallback: function() { - if (isExpressInstallActive) { - var obj = getElementById(EXPRESS_INSTALL_ID); - if (obj && storedAltContent) { - obj.parentNode.replaceChild(storedAltContent, obj); - if (storedAltContentId) { - setVisibility(storedAltContentId, true); - if (ua.ie && ua.win) { storedAltContent.style.display = "block"; } - } - if (storedCallbackFn) { storedCallbackFn(storedCallbackObj); } - } - isExpressInstallActive = false; - } - } - }; -}(); -/** - * @class Ext.FlashComponent - * @extends Ext.BoxComponent - * @constructor - * @xtype flash - */ -Ext.FlashComponent = Ext.extend(Ext.BoxComponent, { - /** - * @cfg {String} flashVersion - * Indicates the version the flash content was published for. Defaults to '9.0.115'. - */ - flashVersion : '9.0.115', - - /** - * @cfg {String} backgroundColor - * The background color of the chart. Defaults to '#ffffff'. - */ - backgroundColor: '#ffffff', - - /** - * @cfg {String} wmode - * The wmode of the flash object. This can be used to control layering. Defaults to 'opaque'. - */ - wmode: 'opaque', - - /** - * @cfg {Object} flashVars - * A set of key value pairs to be passed to the flash object as flash variables. Defaults to undefined. - */ - flashVars: undefined, - - /** - * @cfg {Object} flashParams - * A set of key value pairs to be passed to the flash object as parameters. Possible parameters can be found here: - * http://kb2.adobe.com/cps/127/tn_12701.html Defaults to undefined. - */ - flashParams: undefined, - - /** - * @cfg {String} url - * The URL of the chart to include. Defaults to undefined. - */ - url: undefined, - swfId : undefined, - swfWidth: '100%', - swfHeight: '100%', - - /** - * @cfg {Boolean} expressInstall - * True to prompt the user to install flash if not installed. Note that this uses - * Ext.FlashComponent.EXPRESS_INSTALL_URL, which should be set to the local resource. Defaults to false. - */ - expressInstall: false, - - initComponent : function(){ - Ext.FlashComponent.superclass.initComponent.call(this); - - this.addEvents( - /** - * @event initialize - * - * @param {Chart} this - */ - 'initialize' - ); - }, - - onRender : function(){ - Ext.FlashComponent.superclass.onRender.apply(this, arguments); - - var params = Ext.apply({ - allowScriptAccess: 'always', - bgcolor: this.backgroundColor, - wmode: this.wmode - }, this.flashParams), vars = Ext.apply({ - allowedDomain: document.location.hostname, - YUISwfId: this.getId(), - YUIBridgeCallback: 'Ext.FlashEventProxy.onEvent' - }, this.flashVars); - - new swfobject.embedSWF(this.url, this.id, this.swfWidth, this.swfHeight, this.flashVersion, - this.expressInstall ? Ext.FlashComponent.EXPRESS_INSTALL_URL : undefined, vars, params); - - this.swf = Ext.getDom(this.id); - this.el = Ext.get(this.swf); - }, - - getSwfId : function(){ - return this.swfId || (this.swfId = "extswf" + (++Ext.Component.AUTO_ID)); - }, - - getId : function(){ - return this.id || (this.id = "extflashcmp" + (++Ext.Component.AUTO_ID)); - }, - - onFlashEvent : function(e){ - switch(e.type){ - case "swfReady": - this.initSwf(); - return; - case "log": - return; - } - e.component = this; - this.fireEvent(e.type.toLowerCase().replace(/event$/, ''), e); - }, - - initSwf : function(){ - this.onSwfReady(!!this.isInitialized); - this.isInitialized = true; - this.fireEvent('initialize', this); - }, - - beforeDestroy: function(){ - if(this.rendered){ - swfobject.removeSWF(this.swf.id); - } - Ext.FlashComponent.superclass.beforeDestroy.call(this); - }, - - onSwfReady : Ext.emptyFn -}); - -/** - * Sets the url for installing flash if it doesn't exist. This should be set to a local resource. - * @static - * @type String - */ -Ext.FlashComponent.EXPRESS_INSTALL_URL = 'http:/' + '/swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf'; - -Ext.reg('flash', Ext.FlashComponent);/** - * @class Ext.FlashProxy - * @singleton - */ -Ext.FlashEventProxy = { - onEvent : function(id, e){ - var fp = Ext.getCmp(id); - if(fp){ - fp.onFlashEvent(e); - }else{ - arguments.callee.defer(10, this, [id, e]); - } - } -};/** - * @class Ext.chart.Chart - * @extends Ext.FlashComponent - * The Ext.chart package provides the capability to visualize data with flash based charting. - * Each chart binds directly to an Ext.data.Store enabling automatic updates of the chart. - * To change the look and feel of a chart, see the {@link #chartStyle} and {@link #extraStyle} config options. - * @constructor - * @xtype chart - */ - - Ext.chart.Chart = Ext.extend(Ext.FlashComponent, { - refreshBuffer: 100, - - /** - * @cfg {String} backgroundColor - * @hide - */ - - /** - * @cfg {Object} chartStyle - * Sets styles for this chart. This contains default styling, so modifying this property will override - * the built in styles of the chart. Use {@link #extraStyle} to add customizations to the default styling. - */ - chartStyle: { - padding: 10, - animationEnabled: true, - font: { - name: 'Tahoma', - color: 0x444444, - size: 11 - }, - dataTip: { - padding: 5, - border: { - color: 0x99bbe8, - size:1 - }, - background: { - color: 0xDAE7F6, - alpha: .9 - }, - font: { - name: 'Tahoma', - color: 0x15428B, - size: 10, - bold: true - } - } - }, - - /** - * @cfg {String} url - * The url to load the chart from. This defaults to Ext.chart.Chart.CHART_URL, which should - * be modified to point to the local charts resource. - */ - - /** - * @cfg {Object} extraStyle - * Contains extra styles that will be added or overwritten to the default chartStyle. Defaults to null. - * For a detailed list of the options available, visit the YUI Charts site - * at http://developer.yahoo.com/yui/charts/#basicstyles
      - * Some of the options availabe:
      - *
        - *
      • padding - The space around the edge of the chart's contents. Padding does not increase the size of the chart.
      • - *
      • animationEnabled - A Boolean value that specifies whether marker animations are enabled or not. Enabled by default.
      • - *
      • font - An Object defining the font style to be used in the chart. Defaults to { name: 'Tahoma', color: 0x444444, size: 11 }
        - *
          - *
        • name - font name
        • - *
        • color - font color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)
        • - *
        • size - font size in points (numeric portion only, ie: 11)
        • - *
        • bold - boolean
        • - *
        • italic - boolean
        • - *
        • underline - boolean
        • - *
        - *
      • - *
      • border - An object defining the border style around the chart. The chart itself will decrease in dimensions to accomodate the border.
        - *
          - *
        • color - border color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)
        • - *
        • size - border size in pixels (numeric portion only, ie: 1)
        • - *
        - *
      • - *
      • background - An object defining the background style of the chart.
        - *
          - *
        • color - border color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)
        • - *
        • image - an image URL. May be relative to the current document or absolute.
        • - *
        - *
      • - *
      • legend - An object defining the legend style
        - *
          - *
        • display - location of the legend. Possible values are "none", "left", "right", "top", and "bottom".
        • - *
        • spacing - an image URL. May be relative to the current document or absolute.
        • - *
        • padding, border, background, font - same options as described above.
        • - *
      • - *
      • dataTip - An object defining the style of the data tip (tooltip).
        - *
          - *
        • padding, border, background, font - same options as described above.
        • - *
      • - *
      • xAxis and yAxis - An object defining the style of the style of either axis.
        - *
          - *
        • color - same option as described above.
        • - *
        • size - same option as described above.
        • - *
        • showLabels - boolean
        • - *
        • labelRotation - a value in degrees from -90 through 90. Default is zero.
        • - *
      • - *
      • majorGridLines and minorGridLines - An object defining the style of the style of the grid lines.
        - *
          - *
        • color, size - same options as described above.
        • - *
      • - *
      • zeroGridLine - An object defining the style of the style of the zero grid line.
        - *
          - *
        • color, size - same options as described above.
        • - *
      • - *
      • majorTicks and minorTicks - An object defining the style of the style of ticks in the chart.
        - *
          - *
        • color, size - same options as described above.
        • - *
        • length - the length of each tick in pixels extending from the axis.
        • - *
        • display - how the ticks are drawn. Possible values are "none", "inside", "outside", and "cross".
        • - *
      • - *
      - */ - extraStyle: null, - - /** - * @cfg {Object} seriesStyles - * Contains styles to apply to the series after a refresh. Defaults to null. - */ - seriesStyles: null, - - /** - * @cfg {Boolean} disableCaching - * True to add a "cache buster" to the end of the chart url. Defaults to true for Opera and IE. - */ - disableCaching: Ext.isIE || Ext.isOpera, - disableCacheParam: '_dc', - - initComponent : function(){ - Ext.chart.Chart.superclass.initComponent.call(this); - if(!this.url){ - this.url = Ext.chart.Chart.CHART_URL; - } - if(this.disableCaching){ - this.url = Ext.urlAppend(this.url, String.format('{0}={1}', this.disableCacheParam, new Date().getTime())); - } - this.addEvents( - 'itemmouseover', - 'itemmouseout', - 'itemclick', - 'itemdoubleclick', - 'itemdragstart', - 'itemdrag', - 'itemdragend', - /** - * @event beforerefresh - * Fires before a refresh to the chart data is called. If the beforerefresh handler returns - * false the {@link #refresh} action will be cancelled. - * @param {Chart} this - */ - 'beforerefresh', - /** - * @event refresh - * Fires after the chart data has been refreshed. - * @param {Chart} this - */ - 'refresh' - ); - this.store = Ext.StoreMgr.lookup(this.store); - }, - - /** - * Sets a single style value on the Chart instance. - * - * @param name {String} Name of the Chart style value to change. - * @param value {Object} New value to pass to the Chart style. - */ - setStyle: function(name, value){ - this.swf.setStyle(name, Ext.encode(value)); - }, - - /** - * Resets all styles on the Chart instance. - * - * @param styles {Object} Initializer for all Chart styles. - */ - setStyles: function(styles){ - this.swf.setStyles(Ext.encode(styles)); - }, - - /** - * Sets the styles on all series in the Chart. - * - * @param styles {Array} Initializer for all Chart series styles. - */ - setSeriesStyles: function(styles){ - this.seriesStyles = styles; - var s = []; - Ext.each(styles, function(style){ - s.push(Ext.encode(style)); - }); - this.swf.setSeriesStyles(s); - }, - - setCategoryNames : function(names){ - this.swf.setCategoryNames(names); - }, - - setLegendRenderer : function(fn, scope){ - var chart = this; - scope = scope || chart; - chart.removeFnProxy(chart.legendFnName); - chart.legendFnName = chart.createFnProxy(function(name){ - return fn.call(scope, name); - }); - chart.swf.setLegendLabelFunction(chart.legendFnName); - }, - - setTipRenderer : function(fn, scope){ - var chart = this; - scope = scope || chart; - chart.removeFnProxy(chart.tipFnName); - chart.tipFnName = chart.createFnProxy(function(item, index, series){ - var record = chart.store.getAt(index); - return fn.call(scope, chart, record, index, series); - }); - chart.swf.setDataTipFunction(chart.tipFnName); - }, - - setSeries : function(series){ - this.series = series; - this.refresh(); - }, - - /** - * Changes the data store bound to this chart and refreshes it. - * @param {Store} store The store to bind to this chart - */ - bindStore : function(store, initial){ - if(!initial && this.store){ - if(store !== this.store && this.store.autoDestroy){ - this.store.destroy(); - }else{ - this.store.un("datachanged", this.refresh, this); - this.store.un("add", this.delayRefresh, this); - this.store.un("remove", this.delayRefresh, this); - this.store.un("update", this.delayRefresh, this); - this.store.un("clear", this.refresh, this); - } - } - if(store){ - store = Ext.StoreMgr.lookup(store); - store.on({ - scope: this, - datachanged: this.refresh, - add: this.delayRefresh, - remove: this.delayRefresh, - update: this.delayRefresh, - clear: this.refresh - }); - } - this.store = store; - if(store && !initial){ - this.refresh(); - } - }, - - onSwfReady : function(isReset){ - Ext.chart.Chart.superclass.onSwfReady.call(this, isReset); - var ref; - this.swf.setType(this.type); - - if(this.chartStyle){ - this.setStyles(Ext.apply({}, this.extraStyle, this.chartStyle)); - } - - if(this.categoryNames){ - this.setCategoryNames(this.categoryNames); - } - - if(this.tipRenderer){ - ref = this.getFunctionRef(this.tipRenderer); - this.setTipRenderer(ref.fn, ref.scope); - } - if(this.legendRenderer){ - ref = this.getFunctionRef(this.legendRenderer); - this.setLegendRenderer(ref.fn, ref.scope); - } - if(!isReset){ - this.bindStore(this.store, true); - } - this.refresh.defer(10, this); - }, - - delayRefresh : function(){ - if(!this.refreshTask){ - this.refreshTask = new Ext.util.DelayedTask(this.refresh, this); - } - this.refreshTask.delay(this.refreshBuffer); - }, - - refresh : function(){ - if(this.fireEvent('beforerefresh', this) !== false){ - var styleChanged = false; - // convert the store data into something YUI charts can understand - var data = [], rs = this.store.data.items; - for(var j = 0, len = rs.length; j < len; j++){ - data[j] = rs[j].data; - } - //make a copy of the series definitions so that we aren't - //editing them directly. - var dataProvider = []; - var seriesCount = 0; - var currentSeries = null; - var i = 0; - if(this.series){ - seriesCount = this.series.length; - for(i = 0; i < seriesCount; i++){ - currentSeries = this.series[i]; - var clonedSeries = {}; - for(var prop in currentSeries){ - if(prop == "style" && currentSeries.style !== null){ - clonedSeries.style = Ext.encode(currentSeries.style); - styleChanged = true; - //we don't want to modify the styles again next time - //so null out the style property. - // this causes issues - // currentSeries.style = null; - } else{ - clonedSeries[prop] = currentSeries[prop]; - } - } - dataProvider.push(clonedSeries); - } - } - - if(seriesCount > 0){ - for(i = 0; i < seriesCount; i++){ - currentSeries = dataProvider[i]; - if(!currentSeries.type){ - currentSeries.type = this.type; - } - currentSeries.dataProvider = data; - } - } else{ - dataProvider.push({type: this.type, dataProvider: data}); - } - this.swf.setDataProvider(dataProvider); - if(this.seriesStyles){ - this.setSeriesStyles(this.seriesStyles); - } - this.fireEvent('refresh', this); - } - }, - - // private - createFnProxy : function(fn){ - var fnName = 'extFnProxy' + (++Ext.chart.Chart.PROXY_FN_ID); - Ext.chart.Chart.proxyFunction[fnName] = fn; - return 'Ext.chart.Chart.proxyFunction.' + fnName; - }, - - // private - removeFnProxy : function(fn){ - if(!Ext.isEmpty(fn)){ - fn = fn.replace('Ext.chart.Chart.proxyFunction.', ''); - delete Ext.chart.Chart.proxyFunction[fn]; - } - }, - - // private - getFunctionRef : function(val){ - if(Ext.isFunction(val)){ - return { - fn: val, - scope: this - }; - }else{ - return { - fn: val.fn, - scope: val.scope || this - }; - } - }, - - // private - onDestroy: function(){ - if (this.refreshTask && this.refreshTask.cancel){ - this.refreshTask.cancel(); - } - Ext.chart.Chart.superclass.onDestroy.call(this); - this.bindStore(null); - this.removeFnProxy(this.tipFnName); - this.removeFnProxy(this.legendFnName); - } -}); -Ext.reg('chart', Ext.chart.Chart); -Ext.chart.Chart.PROXY_FN_ID = 0; -Ext.chart.Chart.proxyFunction = {}; - -/** - * Sets the url to load the chart from. This should be set to a local resource. - * @static - * @type String - */ -Ext.chart.Chart.CHART_URL = 'http:/' + '/yui.yahooapis.com/2.8.2/build/charts/assets/charts.swf'; - -/** - * @class Ext.chart.PieChart - * @extends Ext.chart.Chart - * @constructor - * @xtype piechart - */ -Ext.chart.PieChart = Ext.extend(Ext.chart.Chart, { - type: 'pie', - - onSwfReady : function(isReset){ - Ext.chart.PieChart.superclass.onSwfReady.call(this, isReset); - - this.setDataField(this.dataField); - this.setCategoryField(this.categoryField); - }, - - setDataField : function(field){ - this.dataField = field; - this.swf.setDataField(field); - }, - - setCategoryField : function(field){ - this.categoryField = field; - this.swf.setCategoryField(field); - } -}); -Ext.reg('piechart', Ext.chart.PieChart); - -/** - * @class Ext.chart.CartesianChart - * @extends Ext.chart.Chart - * @constructor - * @xtype cartesianchart - */ -Ext.chart.CartesianChart = Ext.extend(Ext.chart.Chart, { - onSwfReady : function(isReset){ - Ext.chart.CartesianChart.superclass.onSwfReady.call(this, isReset); - this.labelFn = []; - if(this.xField){ - this.setXField(this.xField); - } - if(this.yField){ - this.setYField(this.yField); - } - if(this.xAxis){ - this.setXAxis(this.xAxis); - } - if(this.xAxes){ - this.setXAxes(this.xAxes); - } - if(this.yAxis){ - this.setYAxis(this.yAxis); - } - if(this.yAxes){ - this.setYAxes(this.yAxes); - } - if(Ext.isDefined(this.constrainViewport)){ - this.swf.setConstrainViewport(this.constrainViewport); - } - }, - - setXField : function(value){ - this.xField = value; - this.swf.setHorizontalField(value); - }, - - setYField : function(value){ - this.yField = value; - this.swf.setVerticalField(value); - }, - - setXAxis : function(value){ - this.xAxis = this.createAxis('xAxis', value); - this.swf.setHorizontalAxis(this.xAxis); - }, - - setXAxes : function(value){ - var axis; - for(var i = 0; i < value.length; i++) { - axis = this.createAxis('xAxis' + i, value[i]); - this.swf.setHorizontalAxis(axis); - } - }, - - setYAxis : function(value){ - this.yAxis = this.createAxis('yAxis', value); - this.swf.setVerticalAxis(this.yAxis); - }, - - setYAxes : function(value){ - var axis; - for(var i = 0; i < value.length; i++) { - axis = this.createAxis('yAxis' + i, value[i]); - this.swf.setVerticalAxis(axis); - } - }, - - createAxis : function(axis, value){ - var o = Ext.apply({}, value), - ref, - old; - - if(this[axis]){ - old = this[axis].labelFunction; - this.removeFnProxy(old); - this.labelFn.remove(old); - } - if(o.labelRenderer){ - ref = this.getFunctionRef(o.labelRenderer); - o.labelFunction = this.createFnProxy(function(v){ - return ref.fn.call(ref.scope, v); - }); - delete o.labelRenderer; - this.labelFn.push(o.labelFunction); - } - if(axis.indexOf('xAxis') > -1 && o.position == 'left'){ - o.position = 'bottom'; - } - return o; - }, - - onDestroy : function(){ - Ext.chart.CartesianChart.superclass.onDestroy.call(this); - Ext.each(this.labelFn, function(fn){ - this.removeFnProxy(fn); - }, this); - } -}); -Ext.reg('cartesianchart', Ext.chart.CartesianChart); - -/** - * @class Ext.chart.LineChart - * @extends Ext.chart.CartesianChart - * @constructor - * @xtype linechart - */ -Ext.chart.LineChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'line' -}); -Ext.reg('linechart', Ext.chart.LineChart); - -/** - * @class Ext.chart.ColumnChart - * @extends Ext.chart.CartesianChart - * @constructor - * @xtype columnchart - */ -Ext.chart.ColumnChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'column' -}); -Ext.reg('columnchart', Ext.chart.ColumnChart); - -/** - * @class Ext.chart.StackedColumnChart - * @extends Ext.chart.CartesianChart - * @constructor - * @xtype stackedcolumnchart - */ -Ext.chart.StackedColumnChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'stackcolumn' -}); -Ext.reg('stackedcolumnchart', Ext.chart.StackedColumnChart); - -/** - * @class Ext.chart.BarChart - * @extends Ext.chart.CartesianChart - * @constructor - * @xtype barchart - */ -Ext.chart.BarChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'bar' -}); -Ext.reg('barchart', Ext.chart.BarChart); - -/** - * @class Ext.chart.StackedBarChart - * @extends Ext.chart.CartesianChart - * @constructor - * @xtype stackedbarchart - */ -Ext.chart.StackedBarChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'stackbar' -}); -Ext.reg('stackedbarchart', Ext.chart.StackedBarChart); - - - -/** - * @class Ext.chart.Axis - * Defines a CartesianChart's vertical or horizontal axis. - * @constructor - */ -Ext.chart.Axis = function(config){ - Ext.apply(this, config); -}; - -Ext.chart.Axis.prototype = -{ - /** - * The type of axis. - * - * @property type - * @type String - */ - type: null, - - /** - * The direction in which the axis is drawn. May be "horizontal" or "vertical". - * - * @property orientation - * @type String - */ - orientation: "horizontal", - - /** - * If true, the items on the axis will be drawn in opposite direction. - * - * @property reverse - * @type Boolean - */ - reverse: false, - - /** - * A string reference to the globally-accessible function that may be called to - * determine each of the label values for this axis. - * - * @property labelFunction - * @type String - */ - labelFunction: null, - - /** - * If true, labels that overlap previously drawn labels on the axis will be hidden. - * - * @property hideOverlappingLabels - * @type Boolean - */ - hideOverlappingLabels: true, - - /** - * The space, in pixels, between labels on an axis. - * - * @property labelSpacing - * @type Number - */ - labelSpacing: 2 -}; - -/** - * @class Ext.chart.NumericAxis - * @extends Ext.chart.Axis - * A type of axis whose units are measured in numeric values. - * @constructor - */ -Ext.chart.NumericAxis = Ext.extend(Ext.chart.Axis, { - type: "numeric", - - /** - * The minimum value drawn by the axis. If not set explicitly, the axis - * minimum will be calculated automatically. - * - * @property minimum - * @type Number - */ - minimum: NaN, - - /** - * The maximum value drawn by the axis. If not set explicitly, the axis - * maximum will be calculated automatically. - * - * @property maximum - * @type Number - */ - maximum: NaN, - - /** - * The spacing between major intervals on this axis. - * - * @property majorUnit - * @type Number - */ - majorUnit: NaN, - - /** - * The spacing between minor intervals on this axis. - * - * @property minorUnit - * @type Number - */ - minorUnit: NaN, - - /** - * If true, the labels, ticks, gridlines, and other objects will snap to the - * nearest major or minor unit. If false, their position will be based on - * the minimum value. - * - * @property snapToUnits - * @type Boolean - */ - snapToUnits: true, - - /** - * If true, and the bounds are calculated automatically, either the minimum - * or maximum will be set to zero. - * - * @property alwaysShowZero - * @type Boolean - */ - alwaysShowZero: true, - - /** - * The scaling algorithm to use on this axis. May be "linear" or - * "logarithmic". - * - * @property scale - * @type String - */ - scale: "linear", - - /** - * Indicates whether to round the major unit. - * - * @property roundMajorUnit - * @type Boolean - */ - roundMajorUnit: true, - - /** - * Indicates whether to factor in the size of the labels when calculating a - * major unit. - * - * @property calculateByLabelSize - * @type Boolean - */ - calculateByLabelSize: true, - - /** - * Indicates the position of the axis relative to the chart - * - * @property position - * @type String - */ - position: 'left', - - /** - * Indicates whether to extend maximum beyond data's maximum to the nearest - * majorUnit. - * - * @property adjustMaximumByMajorUnit - * @type Boolean - */ - adjustMaximumByMajorUnit: true, - - /** - * Indicates whether to extend the minimum beyond data's minimum to the - * nearest majorUnit. - * - * @property adjustMinimumByMajorUnit - * @type Boolean - */ - adjustMinimumByMajorUnit: true - -}); - -/** - * @class Ext.chart.TimeAxis - * @extends Ext.chart.Axis - * A type of axis whose units are measured in time-based values. - * @constructor - */ -Ext.chart.TimeAxis = Ext.extend(Ext.chart.Axis, { - type: "time", - - /** - * The minimum value drawn by the axis. If not set explicitly, the axis - * minimum will be calculated automatically. - * - * @property minimum - * @type Date - */ - minimum: null, - - /** - * The maximum value drawn by the axis. If not set explicitly, the axis - * maximum will be calculated automatically. - * - * @property maximum - * @type Number - */ - maximum: null, - - /** - * The spacing between major intervals on this axis. - * - * @property majorUnit - * @type Number - */ - majorUnit: NaN, - - /** - * The time unit used by the majorUnit. - * - * @property majorTimeUnit - * @type String - */ - majorTimeUnit: null, - - /** - * The spacing between minor intervals on this axis. - * - * @property majorUnit - * @type Number - */ - minorUnit: NaN, - - /** - * The time unit used by the minorUnit. - * - * @property majorTimeUnit - * @type String - */ - minorTimeUnit: null, - - /** - * If true, the labels, ticks, gridlines, and other objects will snap to the - * nearest major or minor unit. If false, their position will be based on - * the minimum value. - * - * @property snapToUnits - * @type Boolean - */ - snapToUnits: true, - - /** - * Series that are stackable will only stack when this value is set to true. - * - * @property stackingEnabled - * @type Boolean - */ - stackingEnabled: false, - - /** - * Indicates whether to factor in the size of the labels when calculating a - * major unit. - * - * @property calculateByLabelSize - * @type Boolean - */ - calculateByLabelSize: true - -}); - -/** - * @class Ext.chart.CategoryAxis - * @extends Ext.chart.Axis - * A type of axis that displays items in categories. - * @constructor - */ -Ext.chart.CategoryAxis = Ext.extend(Ext.chart.Axis, { - type: "category", - - /** - * A list of category names to display along this axis. - * - * @property categoryNames - * @type Array - */ - categoryNames: null, - - /** - * Indicates whether or not to calculate the number of categories (ticks and - * labels) when there is not enough room to display all labels on the axis. - * If set to true, the axis will determine the number of categories to plot. - * If not, all categories will be plotted. - * - * @property calculateCategoryCount - * @type Boolean - */ - calculateCategoryCount: false - -}); - -/** - * @class Ext.chart.Series - * Series class for the charts widget. - * @constructor - */ -Ext.chart.Series = function(config) { Ext.apply(this, config); }; - -Ext.chart.Series.prototype = -{ - /** - * The type of series. - * - * @property type - * @type String - */ - type: null, - - /** - * The human-readable name of the series. - * - * @property displayName - * @type String - */ - displayName: null -}; - -/** - * @class Ext.chart.CartesianSeries - * @extends Ext.chart.Series - * CartesianSeries class for the charts widget. - * @constructor - */ -Ext.chart.CartesianSeries = Ext.extend(Ext.chart.Series, { - /** - * The field used to access the x-axis value from the items from the data - * source. - * - * @property xField - * @type String - */ - xField: null, - - /** - * The field used to access the y-axis value from the items from the data - * source. - * - * @property yField - * @type String - */ - yField: null, - - /** - * False to not show this series in the legend. Defaults to true. - * - * @property showInLegend - * @type Boolean - */ - showInLegend: true, - - /** - * Indicates which axis the series will bind to - * - * @property axis - * @type String - */ - axis: 'primary' -}); - -/** - * @class Ext.chart.ColumnSeries - * @extends Ext.chart.CartesianSeries - * ColumnSeries class for the charts widget. - * @constructor - */ -Ext.chart.ColumnSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "column" -}); - -/** - * @class Ext.chart.LineSeries - * @extends Ext.chart.CartesianSeries - * LineSeries class for the charts widget. - * @constructor - */ -Ext.chart.LineSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "line" -}); - -/** - * @class Ext.chart.BarSeries - * @extends Ext.chart.CartesianSeries - * BarSeries class for the charts widget. - * @constructor - */ -Ext.chart.BarSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "bar" -}); - - -/** - * @class Ext.chart.PieSeries - * @extends Ext.chart.Series - * PieSeries class for the charts widget. - * @constructor - */ -Ext.chart.PieSeries = Ext.extend(Ext.chart.Series, { - type: "pie", - dataField: null, - categoryField: null -});/** - * @class Ext.menu.Menu - * @extends Ext.Container - *

      A menu object. This is the container to which you may add menu items. Menu can also serve as a base class - * when you want a specialized menu based off of another component (like {@link Ext.menu.DateMenu} for example).

      - *

      Menus may contain either {@link Ext.menu.Item menu items}, or general {@link Ext.Component Component}s.

      - *

      To make a contained general {@link Ext.Component Component} line up with other {@link Ext.menu.Item menu items} - * specify iconCls: 'no-icon'. This reserves a space for an icon, and indents the Component in line - * with the other menu items. See {@link Ext.form.ComboBox}.{@link Ext.form.ComboBox#getListParent getListParent} - * for an example.

      - *

      By default, Menus are absolutely positioned, floating Components. By configuring a Menu with - * {@link #floating}:false, a Menu may be used as child of a Container.

      - * - * @xtype menu - */ -Ext.menu.Menu = Ext.extend(Ext.Container, { - /** - * @cfg {Object} defaults - * A config object that will be applied to all items added to this container either via the {@link #items} - * config or via the {@link #add} method. The defaults config can contain any number of - * name/value property pairs to be added to each item, and should be valid for the types of items - * being added to the menu. - */ - /** - * @cfg {Mixed} items - * An array of items to be added to this menu. Menus may contain either {@link Ext.menu.Item menu items}, - * or general {@link Ext.Component Component}s. - */ - /** - * @cfg {Number} minWidth The minimum width of the menu in pixels (defaults to 120) - */ - minWidth : 120, - /** - * @cfg {Boolean/String} shadow True or 'sides' for the default effect, 'frame' for 4-way shadow, and 'drop' - * for bottom-right shadow (defaults to 'sides') - */ - shadow : 'sides', - /** - * @cfg {String} subMenuAlign The {@link Ext.Element#alignTo} anchor position value to use for submenus of - * this menu (defaults to 'tl-tr?') - */ - subMenuAlign : 'tl-tr?', - /** - * @cfg {String} defaultAlign The default {@link Ext.Element#alignTo} anchor position value for this menu - * relative to its element of origin (defaults to 'tl-bl?') - */ - defaultAlign : 'tl-bl?', - /** - * @cfg {Boolean} allowOtherMenus True to allow multiple menus to be displayed at the same time (defaults to false) - */ - allowOtherMenus : false, - /** - * @cfg {Boolean} ignoreParentClicks True to ignore clicks on any item in this menu that is a parent item (displays - * a submenu) so that the submenu is not dismissed when clicking the parent item (defaults to false). - */ - ignoreParentClicks : false, - /** - * @cfg {Boolean} enableScrolling True to allow the menu container to have scroller controls if the menu is too long (defaults to true). - */ - enableScrolling : true, - /** - * @cfg {Number} maxHeight The maximum height of the menu. Only applies when enableScrolling is set to True (defaults to null). - */ - maxHeight : null, - /** - * @cfg {Number} scrollIncrement The amount to scroll the menu. Only applies when enableScrolling is set to True (defaults to 24). - */ - scrollIncrement : 24, - /** - * @cfg {Boolean} showSeparator True to show the icon separator. (defaults to true). - */ - showSeparator : true, - /** - * @cfg {Array} defaultOffsets An array specifying the [x, y] offset in pixels by which to - * change the default Menu popup position after aligning according to the {@link #defaultAlign} - * configuration. Defaults to [0, 0]. - */ - defaultOffsets : [0, 0], - - /** - * @cfg {Boolean} plain - * True to remove the incised line down the left side of the menu. Defaults to false. - */ - plain : false, - - /** - * @cfg {Boolean} floating - *

      By default, a Menu configured as floating:true - * will be rendered as an {@link Ext.Layer} (an absolutely positioned, - * floating Component with zindex=15000). - * If configured as floating:false, the Menu may be - * used as child item of another Container instead of a free-floating - * {@link Ext.Layer Layer}. - */ - floating : true, - - - /** - * @cfg {Number} zIndex - * zIndex to use when the menu is floating. - */ - zIndex: 15000, - - // private - hidden : true, - - /** - * @cfg {String/Object} layout - * This class assigns a default layout (layout:'menu'). - * Developers may override this configuration option if another layout is required. - * See {@link Ext.Container#layout} for additional information. - */ - layout : 'menu', - hideMode : 'offsets', // Important for laying out Components - scrollerHeight : 8, - autoLayout : true, // Provided for backwards compat - defaultType : 'menuitem', - bufferResize : false, - - initComponent : function(){ - if(Ext.isArray(this.initialConfig)){ - Ext.apply(this, {items:this.initialConfig}); - } - this.addEvents( - /** - * @event click - * Fires when this menu is clicked (or when the enter key is pressed while it is active) - * @param {Ext.menu.Menu} this - * @param {Ext.menu.Item} menuItem The menu item that was clicked - * @param {Ext.EventObject} e - */ - 'click', - /** - * @event mouseover - * Fires when the mouse is hovering over this menu - * @param {Ext.menu.Menu} this - * @param {Ext.EventObject} e - * @param {Ext.menu.Item} menuItem The menu item that was clicked - */ - 'mouseover', - /** - * @event mouseout - * Fires when the mouse exits this menu - * @param {Ext.menu.Menu} this - * @param {Ext.EventObject} e - * @param {Ext.menu.Item} menuItem The menu item that was clicked - */ - 'mouseout', - /** - * @event itemclick - * Fires when a menu item contained in this menu is clicked - * @param {Ext.menu.BaseItem} baseItem The BaseItem that was clicked - * @param {Ext.EventObject} e - */ - 'itemclick' - ); - Ext.menu.MenuMgr.register(this); - if(this.floating){ - Ext.EventManager.onWindowResize(this.hide, this); - }else{ - if(this.initialConfig.hidden !== false){ - this.hidden = false; - } - this.internalDefaults = {hideOnClick: false}; - } - Ext.menu.Menu.superclass.initComponent.call(this); - if(this.autoLayout){ - var fn = this.doLayout.createDelegate(this, []); - this.on({ - add: fn, - remove: fn - }); - } - }, - - //private - getLayoutTarget : function() { - return this.ul; - }, - - // private - onRender : function(ct, position){ - if(!ct){ - ct = Ext.getBody(); - } - - var dh = { - id: this.getId(), - cls: 'x-menu ' + ((this.floating) ? 'x-menu-floating x-layer ' : '') + (this.cls || '') + (this.plain ? ' x-menu-plain' : '') + (this.showSeparator ? '' : ' x-menu-nosep'), - style: this.style, - cn: [ - {tag: 'a', cls: 'x-menu-focus', href: '#', onclick: 'return false;', tabIndex: '-1'}, - {tag: 'ul', cls: 'x-menu-list'} - ] - }; - if(this.floating){ - this.el = new Ext.Layer({ - shadow: this.shadow, - dh: dh, - constrain: false, - parentEl: ct, - zindex: this.zIndex - }); - }else{ - this.el = ct.createChild(dh); - } - Ext.menu.Menu.superclass.onRender.call(this, ct, position); - - if(!this.keyNav){ - this.keyNav = new Ext.menu.MenuNav(this); - } - // generic focus element - this.focusEl = this.el.child('a.x-menu-focus'); - this.ul = this.el.child('ul.x-menu-list'); - this.mon(this.ul, { - scope: this, - click: this.onClick, - mouseover: this.onMouseOver, - mouseout: this.onMouseOut - }); - if(this.enableScrolling){ - this.mon(this.el, { - scope: this, - delegate: '.x-menu-scroller', - click: this.onScroll, - mouseover: this.deactivateActive - }); - } - }, - - // private - findTargetItem : function(e){ - var t = e.getTarget('.x-menu-list-item', this.ul, true); - if(t && t.menuItemId){ - return this.items.get(t.menuItemId); - } - }, - - // private - onClick : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t.isFormField){ - this.setActiveItem(t); - }else if(t instanceof Ext.menu.BaseItem){ - if(t.menu && this.ignoreParentClicks){ - t.expandMenu(); - e.preventDefault(); - }else if(t.onClick){ - t.onClick(e); - this.fireEvent('click', this, t, e); - } - } - } - }, - - // private - setActiveItem : function(item, autoExpand){ - if(item != this.activeItem){ - this.deactivateActive(); - if((this.activeItem = item).isFormField){ - item.focus(); - }else{ - item.activate(autoExpand); - } - }else if(autoExpand){ - item.expandMenu(); - } - }, - - deactivateActive : function(){ - var a = this.activeItem; - if(a){ - if(a.isFormField){ - //Fields cannot deactivate, but Combos must collapse - if(a.collapse){ - a.collapse(); - } - }else{ - a.deactivate(); - } - delete this.activeItem; - } - }, - - // private - tryActivate : function(start, step){ - var items = this.items; - for(var i = start, len = items.length; i >= 0 && i < len; i+= step){ - var item = items.get(i); - if(item.isVisible() && !item.disabled && (item.canActivate || item.isFormField)){ - this.setActiveItem(item, false); - return item; - } - } - return false; - }, - - // private - onMouseOver : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t.canActivate && !t.disabled){ - this.setActiveItem(t, true); - } - } - this.over = true; - this.fireEvent('mouseover', this, e, t); - }, - - // private - onMouseOut : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t == this.activeItem && t.shouldDeactivate && t.shouldDeactivate(e)){ - this.activeItem.deactivate(); - delete this.activeItem; - } - } - this.over = false; - this.fireEvent('mouseout', this, e, t); - }, - - // private - onScroll : function(e, t){ - if(e){ - e.stopEvent(); - } - var ul = this.ul.dom, top = Ext.fly(t).is('.x-menu-scroller-top'); - ul.scrollTop += this.scrollIncrement * (top ? -1 : 1); - if(top ? ul.scrollTop <= 0 : ul.scrollTop + this.activeMax >= ul.scrollHeight){ - this.onScrollerOut(null, t); - } - }, - - // private - onScrollerIn : function(e, t){ - var ul = this.ul.dom, top = Ext.fly(t).is('.x-menu-scroller-top'); - if(top ? ul.scrollTop > 0 : ul.scrollTop + this.activeMax < ul.scrollHeight){ - Ext.fly(t).addClass(['x-menu-item-active', 'x-menu-scroller-active']); - } - }, - - // private - onScrollerOut : function(e, t){ - Ext.fly(t).removeClass(['x-menu-item-active', 'x-menu-scroller-active']); - }, - - /** - * If {@link #floating}=true, shows this menu relative to - * another element using {@link #showat}, otherwise uses {@link Ext.Component#show}. - * @param {Mixed} element The element to align to - * @param {String} position (optional) The {@link Ext.Element#alignTo} anchor position to use in aligning to - * the element (defaults to this.defaultAlign) - * @param {Ext.menu.Menu} parentMenu (optional) This menu's parent menu, if applicable (defaults to undefined) - */ - show : function(el, pos, parentMenu){ - if(this.floating){ - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - this.doLayout(false, true); - } - this.showAt(this.el.getAlignToXY(el, pos || this.defaultAlign, this.defaultOffsets), parentMenu); - }else{ - Ext.menu.Menu.superclass.show.call(this); - } - }, - - /** - * Displays this menu at a specific xy position and fires the 'show' event if a - * handler for the 'beforeshow' event does not return false cancelling the operation. - * @param {Array} xyPosition Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based) - * @param {Ext.menu.Menu} parentMenu (optional) This menu's parent menu, if applicable (defaults to undefined) - */ - showAt : function(xy, parentMenu){ - if(this.fireEvent('beforeshow', this) !== false){ - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - } - if(this.enableScrolling){ - // set the position so we can figure out the constrain value. - this.el.setXY(xy); - //constrain the value, keep the y coordinate the same - xy[1] = this.constrainScroll(xy[1]); - xy = [this.el.adjustForConstraints(xy)[0], xy[1]]; - }else{ - //constrain to the viewport. - xy = this.el.adjustForConstraints(xy); - } - this.el.setXY(xy); - this.el.show(); - Ext.menu.Menu.superclass.onShow.call(this); - if(Ext.isIE){ - // internal event, used so we don't couple the layout to the menu - this.fireEvent('autosize', this); - if(!Ext.isIE8){ - this.el.repaint(); - } - } - this.hidden = false; - this.focus(); - this.fireEvent('show', this); - } - }, - - constrainScroll : function(y){ - var max, full = this.ul.setHeight('auto').getHeight(), - returnY = y, normalY, parentEl, scrollTop, viewHeight; - if(this.floating){ - parentEl = Ext.fly(this.el.dom.parentNode); - scrollTop = parentEl.getScroll().top; - viewHeight = parentEl.getViewSize().height; - //Normalize y by the scroll position for the parent element. Need to move it into the coordinate space - //of the view. - normalY = y - scrollTop; - max = this.maxHeight ? this.maxHeight : viewHeight - normalY; - if(full > viewHeight) { - max = viewHeight; - //Set returnY equal to (0,0) in view space by reducing y by the value of normalY - returnY = y - normalY; - } else if(max < full) { - returnY = y - (full - max); - max = full; - } - }else{ - max = this.getHeight(); - } - // Always respect maxHeight - if (this.maxHeight){ - max = Math.min(this.maxHeight, max); - } - if(full > max && max > 0){ - this.activeMax = max - this.scrollerHeight * 2 - this.el.getFrameWidth('tb') - Ext.num(this.el.shadowOffset, 0); - this.ul.setHeight(this.activeMax); - this.createScrollers(); - this.el.select('.x-menu-scroller').setDisplayed(''); - }else{ - this.ul.setHeight(full); - this.el.select('.x-menu-scroller').setDisplayed('none'); - } - this.ul.dom.scrollTop = 0; - return returnY; - }, - - createScrollers : function(){ - if(!this.scroller){ - this.scroller = { - pos: 0, - top: this.el.insertFirst({ - tag: 'div', - cls: 'x-menu-scroller x-menu-scroller-top', - html: ' ' - }), - bottom: this.el.createChild({ - tag: 'div', - cls: 'x-menu-scroller x-menu-scroller-bottom', - html: ' ' - }) - }; - this.scroller.top.hover(this.onScrollerIn, this.onScrollerOut, this); - this.scroller.topRepeater = new Ext.util.ClickRepeater(this.scroller.top, { - listeners: { - click: this.onScroll.createDelegate(this, [null, this.scroller.top], false) - } - }); - this.scroller.bottom.hover(this.onScrollerIn, this.onScrollerOut, this); - this.scroller.bottomRepeater = new Ext.util.ClickRepeater(this.scroller.bottom, { - listeners: { - click: this.onScroll.createDelegate(this, [null, this.scroller.bottom], false) - } - }); - } - }, - - onLayout : function(){ - if(this.isVisible()){ - if(this.enableScrolling){ - this.constrainScroll(this.el.getTop()); - } - if(this.floating){ - this.el.sync(); - } - } - }, - - focus : function(){ - if(!this.hidden){ - this.doFocus.defer(50, this); - } - }, - - doFocus : function(){ - if(!this.hidden){ - this.focusEl.focus(); - } - }, - - /** - * Hides this menu and optionally all parent menus - * @param {Boolean} deep (optional) True to hide all parent menus recursively, if any (defaults to false) - */ - hide : function(deep){ - if (!this.isDestroyed) { - this.deepHide = deep; - Ext.menu.Menu.superclass.hide.call(this); - delete this.deepHide; - } - }, - - // private - onHide : function(){ - Ext.menu.Menu.superclass.onHide.call(this); - this.deactivateActive(); - if(this.el && this.floating){ - this.el.hide(); - } - var pm = this.parentMenu; - if(this.deepHide === true && pm){ - if(pm.floating){ - pm.hide(true); - }else{ - pm.deactivateActive(); - } - } - }, - - // private - lookupComponent : function(c){ - if(Ext.isString(c)){ - c = (c == 'separator' || c == '-') ? new Ext.menu.Separator() : new Ext.menu.TextItem(c); - this.applyDefaults(c); - }else{ - if(Ext.isObject(c)){ - c = this.getMenuItem(c); - }else if(c.tagName || c.el){ // element. Wrap it. - c = new Ext.BoxComponent({ - el: c - }); - } - } - return c; - }, - - applyDefaults : function(c) { - if (!Ext.isString(c)) { - c = Ext.menu.Menu.superclass.applyDefaults.call(this, c); - var d = this.internalDefaults; - if(d){ - if(c.events){ - Ext.applyIf(c.initialConfig, d); - Ext.apply(c, d); - }else{ - Ext.applyIf(c, d); - } - } - } - return c; - }, - - // private - getMenuItem : function(config) { - config.ownerCt = this; - - if (!config.isXType) { - if (!config.xtype && Ext.isBoolean(config.checked)) { - return new Ext.menu.CheckItem(config); - } - return Ext.create(config, this.defaultType); - } - return config; - }, - - /** - * Adds a separator bar to the menu - * @return {Ext.menu.Item} The menu item that was added - */ - addSeparator : function() { - return this.add(new Ext.menu.Separator()); - }, - - /** - * Adds an {@link Ext.Element} object to the menu - * @param {Mixed} el The element or DOM node to add, or its id - * @return {Ext.menu.Item} The menu item that was added - */ - addElement : function(el) { - return this.add(new Ext.menu.BaseItem({ - el: el - })); - }, - - /** - * Adds an existing object based on {@link Ext.menu.BaseItem} to the menu - * @param {Ext.menu.Item} item The menu item to add - * @return {Ext.menu.Item} The menu item that was added - */ - addItem : function(item) { - return this.add(item); - }, - - /** - * Creates a new {@link Ext.menu.Item} based an the supplied config object and adds it to the menu - * @param {Object} config A MenuItem config object - * @return {Ext.menu.Item} The menu item that was added - */ - addMenuItem : function(config) { - return this.add(this.getMenuItem(config)); - }, - - /** - * Creates a new {@link Ext.menu.TextItem} with the supplied text and adds it to the menu - * @param {String} text The text to display in the menu item - * @return {Ext.menu.Item} The menu item that was added - */ - addText : function(text){ - return this.add(new Ext.menu.TextItem(text)); - }, - - //private - onDestroy : function(){ - Ext.EventManager.removeResizeListener(this.hide, this); - var pm = this.parentMenu; - if(pm && pm.activeChild == this){ - delete pm.activeChild; - } - delete this.parentMenu; - Ext.menu.Menu.superclass.onDestroy.call(this); - Ext.menu.MenuMgr.unregister(this); - if(this.keyNav) { - this.keyNav.disable(); - } - var s = this.scroller; - if(s){ - Ext.destroy(s.topRepeater, s.bottomRepeater, s.top, s.bottom); - } - Ext.destroy( - this.el, - this.focusEl, - this.ul - ); - } -}); - -Ext.reg('menu', Ext.menu.Menu); - -// MenuNav is a private utility class used internally by the Menu -Ext.menu.MenuNav = Ext.extend(Ext.KeyNav, function(){ - function up(e, m){ - if(!m.tryActivate(m.items.indexOf(m.activeItem)-1, -1)){ - m.tryActivate(m.items.length-1, -1); - } - } - function down(e, m){ - if(!m.tryActivate(m.items.indexOf(m.activeItem)+1, 1)){ - m.tryActivate(0, 1); - } - } - return { - constructor : function(menu){ - Ext.menu.MenuNav.superclass.constructor.call(this, menu.el); - this.scope = this.menu = menu; - }, - - doRelay : function(e, h){ - var k = e.getKey(); -// Keystrokes within a form Field (e.g.: down in a Combo) do not navigate. Allow only TAB - if (this.menu.activeItem && this.menu.activeItem.isFormField && k != e.TAB) { - return false; - } - if(!this.menu.activeItem && e.isNavKeyPress() && k != e.SPACE && k != e.RETURN){ - this.menu.tryActivate(0, 1); - return false; - } - return h.call(this.scope || this, e, this.menu); - }, - - tab: function(e, m) { - e.stopEvent(); - if (e.shiftKey) { - up(e, m); - } else { - down(e, m); - } - }, - - up : up, - - down : down, - - right : function(e, m){ - if(m.activeItem){ - m.activeItem.expandMenu(true); - } - }, - - left : function(e, m){ - m.hide(); - if(m.parentMenu && m.parentMenu.activeItem){ - m.parentMenu.activeItem.activate(); - } - }, - - enter : function(e, m){ - if(m.activeItem){ - e.stopPropagation(); - m.activeItem.onClick(e); - m.fireEvent('click', this, m.activeItem); - return true; - } - } - }; -}()); -/** - * @class Ext.menu.MenuMgr - * Provides a common registry of all menu items on a page so that they can be easily accessed by id. - * @singleton - */ -Ext.menu.MenuMgr = function(){ - var menus, - active, - map, - groups = {}, - attached = false, - lastShow = new Date(); - - - // private - called when first menu is created - function init(){ - menus = {}; - active = new Ext.util.MixedCollection(); - map = Ext.getDoc().addKeyListener(27, hideAll); - map.disable(); - } - - // private - function hideAll(){ - if(active && active.length > 0){ - var c = active.clone(); - c.each(function(m){ - m.hide(); - }); - return true; - } - return false; - } - - // private - function onHide(m){ - active.remove(m); - if(active.length < 1){ - map.disable(); - Ext.getDoc().un("mousedown", onMouseDown); - attached = false; - } - } - - // private - function onShow(m){ - var last = active.last(); - lastShow = new Date(); - active.add(m); - if(!attached){ - map.enable(); - Ext.getDoc().on("mousedown", onMouseDown); - attached = true; - } - if(m.parentMenu){ - m.getEl().setZIndex(parseInt(m.parentMenu.getEl().getStyle("z-index"), 10) + 3); - m.parentMenu.activeChild = m; - }else if(last && !last.isDestroyed && last.isVisible()){ - m.getEl().setZIndex(parseInt(last.getEl().getStyle("z-index"), 10) + 3); - } - } - - // private - function onBeforeHide(m){ - if(m.activeChild){ - m.activeChild.hide(); - } - if(m.autoHideTimer){ - clearTimeout(m.autoHideTimer); - delete m.autoHideTimer; - } - } - - // private - function onBeforeShow(m){ - var pm = m.parentMenu; - if(!pm && !m.allowOtherMenus){ - hideAll(); - }else if(pm && pm.activeChild){ - pm.activeChild.hide(); - } - } - - // private - function onMouseDown(e){ - if(lastShow.getElapsed() > 50 && active.length > 0 && !e.getTarget(".x-menu")){ - hideAll(); - } - } - - return { - - /** - * Hides all menus that are currently visible - * @return {Boolean} success True if any active menus were hidden. - */ - hideAll : function(){ - return hideAll(); - }, - - // private - register : function(menu){ - if(!menus){ - init(); - } - menus[menu.id] = menu; - menu.on({ - beforehide: onBeforeHide, - hide: onHide, - beforeshow: onBeforeShow, - show: onShow - }); - }, - - /** - * Returns a {@link Ext.menu.Menu} object - * @param {String/Object} menu The string menu id, an existing menu object reference, or a Menu config that will - * be used to generate and return a new Menu instance. - * @return {Ext.menu.Menu} The specified menu, or null if none are found - */ - get : function(menu){ - if(typeof menu == "string"){ // menu id - if(!menus){ // not initialized, no menus to return - return null; - } - return menus[menu]; - }else if(menu.events){ // menu instance - return menu; - }else if(typeof menu.length == 'number'){ // array of menu items? - return new Ext.menu.Menu({items:menu}); - }else{ // otherwise, must be a config - return Ext.create(menu, 'menu'); - } - }, - - // private - unregister : function(menu){ - delete menus[menu.id]; - menu.un("beforehide", onBeforeHide); - menu.un("hide", onHide); - menu.un("beforeshow", onBeforeShow); - menu.un("show", onShow); - }, - - // private - registerCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - if(!groups[g]){ - groups[g] = []; - } - groups[g].push(menuItem); - } - }, - - // private - unregisterCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - groups[g].remove(menuItem); - } - }, - - // private - onCheckChange: function(item, state){ - if(item.group && state){ - var group = groups[item.group], - i = 0, - len = group.length, - current; - - for(; i < len; i++){ - current = group[i]; - if(current != item){ - current.setChecked(false); - } - } - } - }, - - getCheckedItem : function(groupId){ - var g = groups[groupId]; - if(g){ - for(var i = 0, l = g.length; i < l; i++){ - if(g[i].checked){ - return g[i]; - } - } - } - return null; - }, - - setCheckedItem : function(groupId, itemId){ - var g = groups[groupId]; - if(g){ - for(var i = 0, l = g.length; i < l; i++){ - if(g[i].id == itemId){ - g[i].setChecked(true); - } - } - } - return null; - } - }; -}(); -/** - * @class Ext.menu.BaseItem - * @extends Ext.Component - * The base class for all items that render into menus. BaseItem provides default rendering, activated state - * management and base configuration options shared by all menu components. - * @constructor - * Creates a new BaseItem - * @param {Object} config Configuration options - * @xtype menubaseitem - */ -Ext.menu.BaseItem = Ext.extend(Ext.Component, { - /** - * @property parentMenu - * @type Ext.menu.Menu - * The parent Menu of this Item. - */ - /** - * @cfg {Function} handler - * A function that will handle the click event of this menu item (optional). - * The handler is passed the following parameters:

        - *
      • b : Item
        This menu Item.
      • - *
      • e : EventObject
        The click event.
      • - *
      - */ - /** - * @cfg {Object} scope - * The scope (this reference) in which the handler function will be called. - */ - /** - * @cfg {Boolean} canActivate True if this item can be visually activated (defaults to false) - */ - canActivate : false, - /** - * @cfg {String} activeClass The CSS class to use when the item becomes activated (defaults to "x-menu-item-active") - */ - activeClass : "x-menu-item-active", - /** - * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to true) - */ - hideOnClick : true, - /** - * @cfg {Number} clickHideDelay Length of time in milliseconds to wait before hiding after a click (defaults to 1) - */ - clickHideDelay : 1, - - // private - ctype : "Ext.menu.BaseItem", - - // private - actionMode : "container", - - initComponent : function(){ - Ext.menu.BaseItem.superclass.initComponent.call(this); - this.addEvents( - /** - * @event click - * Fires when this item is clicked - * @param {Ext.menu.BaseItem} this - * @param {Ext.EventObject} e - */ - 'click', - /** - * @event activate - * Fires when this item is activated - * @param {Ext.menu.BaseItem} this - */ - 'activate', - /** - * @event deactivate - * Fires when this item is deactivated - * @param {Ext.menu.BaseItem} this - */ - 'deactivate' - ); - if(this.handler){ - this.on("click", this.handler, this.scope); - } - }, - - // private - onRender : function(container, position){ - Ext.menu.BaseItem.superclass.onRender.apply(this, arguments); - if(this.ownerCt && this.ownerCt instanceof Ext.menu.Menu){ - this.parentMenu = this.ownerCt; - }else{ - this.container.addClass('x-menu-list-item'); - this.mon(this.el, { - scope: this, - click: this.onClick, - mouseenter: this.activate, - mouseleave: this.deactivate - }); - } - }, - - /** - * Sets the function that will handle click events for this item (equivalent to passing in the {@link #handler} - * config property). If an existing handler is already registered, it will be unregistered for you. - * @param {Function} handler The function that should be called on click - * @param {Object} scope The scope (this reference) in which the handler function is executed. Defaults to this menu item. - */ - setHandler : function(handler, scope){ - if(this.handler){ - this.un("click", this.handler, this.scope); - } - this.on("click", this.handler = handler, this.scope = scope); - }, - - // private - onClick : function(e){ - if(!this.disabled && this.fireEvent("click", this, e) !== false - && (this.parentMenu && this.parentMenu.fireEvent("itemclick", this, e) !== false)){ - this.handleClick(e); - }else{ - e.stopEvent(); - } - }, - - // private - activate : function(){ - if(this.disabled){ - return false; - } - var li = this.container; - li.addClass(this.activeClass); - this.region = li.getRegion().adjust(2, 2, -2, -2); - this.fireEvent("activate", this); - return true; - }, - - // private - deactivate : function(){ - this.container.removeClass(this.activeClass); - this.fireEvent("deactivate", this); - }, - - // private - shouldDeactivate : function(e){ - return !this.region || !this.region.contains(e.getPoint()); - }, - - // private - handleClick : function(e){ - var pm = this.parentMenu; - if(this.hideOnClick){ - if(pm.floating){ - this.clickHideDelayTimer = pm.hide.defer(this.clickHideDelay, pm, [true]); - }else{ - pm.deactivateActive(); - } - } - }, - - beforeDestroy: function(){ - clearTimeout(this.clickHideDelayTimer); - Ext.menu.BaseItem.superclass.beforeDestroy.call(this); - }, - - // private. Do nothing - expandMenu : Ext.emptyFn, - - // private. Do nothing - hideMenu : Ext.emptyFn -}); -Ext.reg('menubaseitem', Ext.menu.BaseItem);/** - * @class Ext.menu.TextItem - * @extends Ext.menu.BaseItem - * Adds a static text string to a menu, usually used as either a heading or group separator. - * @constructor - * Creates a new TextItem - * @param {Object/String} config If config is a string, it is used as the text to display, otherwise it - * is applied as a config object (and should contain a text property). - * @xtype menutextitem - */ -Ext.menu.TextItem = Ext.extend(Ext.menu.BaseItem, { - /** - * @cfg {String} text The text to display for this item (defaults to '') - */ - /** - * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false) - */ - hideOnClick : false, - /** - * @cfg {String} itemCls The default CSS class to use for text items (defaults to "x-menu-text") - */ - itemCls : "x-menu-text", - - constructor : function(config) { - if (typeof config == 'string') { - config = { - text: config - }; - } - Ext.menu.TextItem.superclass.constructor.call(this, config); - }, - - // private - onRender : function() { - var s = document.createElement("span"); - s.className = this.itemCls; - s.innerHTML = this.text; - this.el = s; - Ext.menu.TextItem.superclass.onRender.apply(this, arguments); - } -}); -Ext.reg('menutextitem', Ext.menu.TextItem);/** - * @class Ext.menu.Separator - * @extends Ext.menu.BaseItem - * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will - * add one of these by using "-" in you call to add() or in your items config rather than creating one directly. - * @constructor - * @param {Object} config Configuration options - * @xtype menuseparator - */ -Ext.menu.Separator = Ext.extend(Ext.menu.BaseItem, { - /** - * @cfg {String} itemCls The default CSS class to use for separators (defaults to "x-menu-sep") - */ - itemCls : "x-menu-sep", - /** - * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false) - */ - hideOnClick : false, - - /** - * @cfg {String} activeClass - * @hide - */ - activeClass: '', - - // private - onRender : function(li){ - var s = document.createElement("span"); - s.className = this.itemCls; - s.innerHTML = " "; - this.el = s; - li.addClass("x-menu-sep-li"); - Ext.menu.Separator.superclass.onRender.apply(this, arguments); - } -}); -Ext.reg('menuseparator', Ext.menu.Separator);/** - * @class Ext.menu.Item - * @extends Ext.menu.BaseItem - * A base class for all menu items that require menu-related functionality (like sub-menus) and are not static - * display items. Item extends the base functionality of {@link Ext.menu.BaseItem} by adding menu-specific - * activation and click handling. - * @constructor - * Creates a new Item - * @param {Object} config Configuration options - * @xtype menuitem - */ -Ext.menu.Item = Ext.extend(Ext.menu.BaseItem, { - /** - * @property menu - * @type Ext.menu.Menu - * The submenu associated with this Item if one was configured. - */ - /** - * @cfg {Mixed} menu (optional) Either an instance of {@link Ext.menu.Menu} or the config object for an - * {@link Ext.menu.Menu} which acts as the submenu when this item is activated. - */ - /** - * @cfg {String} icon The path to an icon to display in this item (defaults to Ext.BLANK_IMAGE_URL). If - * icon is specified {@link #iconCls} should not be. - */ - /** - * @cfg {String} iconCls A CSS class that specifies a background image that will be used as the icon for - * this item (defaults to ''). If iconCls is specified {@link #icon} should not be. - */ - /** - * @cfg {String} text The text to display in this item (defaults to ''). - */ - /** - * @cfg {String} href The href attribute to use for the underlying anchor link (defaults to '#'). - */ - /** - * @cfg {String} hrefTarget The target attribute to use for the underlying anchor link (defaults to ''). - */ - /** - * @cfg {String} itemCls The default CSS class to use for menu items (defaults to 'x-menu-item') - */ - itemCls : 'x-menu-item', - /** - * @cfg {Boolean} canActivate True if this item can be visually activated (defaults to true) - */ - canActivate : true, - /** - * @cfg {Number} showDelay Length of time in milliseconds to wait before showing this item (defaults to 200) - */ - showDelay: 200, - - /** - * @cfg {String} altText The altText to use for the icon, if it exists. Defaults to ''. - */ - altText: '', - - // doc'd in BaseItem - hideDelay: 200, - - // private - ctype: 'Ext.menu.Item', - - initComponent : function(){ - Ext.menu.Item.superclass.initComponent.call(this); - if(this.menu){ - // If array of items, turn it into an object config so we - // can set the ownerCt property in the config - if (Ext.isArray(this.menu)){ - this.menu = { items: this.menu }; - } - - // An object config will work here, but an instance of a menu - // will have already setup its ref's and have no effect - if (Ext.isObject(this.menu)){ - this.menu.ownerCt = this; - } - - this.menu = Ext.menu.MenuMgr.get(this.menu); - this.menu.ownerCt = undefined; - } - }, - - // private - onRender : function(container, position){ - if (!this.itemTpl) { - this.itemTpl = Ext.menu.Item.prototype.itemTpl = new Ext.XTemplate( - '', - ' target="{hrefTarget}"', - '', - '>', - '{altText}', - '{text}', - '' - ); - } - var a = this.getTemplateArgs(); - this.el = position ? this.itemTpl.insertBefore(position, a, true) : this.itemTpl.append(container, a, true); - this.iconEl = this.el.child('img.x-menu-item-icon'); - this.textEl = this.el.child('.x-menu-item-text'); - if(!this.href) { // if no link defined, prevent the default anchor event - this.mon(this.el, 'click', Ext.emptyFn, null, { preventDefault: true }); - } - Ext.menu.Item.superclass.onRender.call(this, container, position); - }, - - getTemplateArgs: function() { - return { - id: this.id, - cls: this.itemCls + (this.menu ? ' x-menu-item-arrow' : '') + (this.cls ? ' ' + this.cls : ''), - href: this.href || '#', - hrefTarget: this.hrefTarget, - icon: this.icon || Ext.BLANK_IMAGE_URL, - iconCls: this.iconCls || '', - text: this.itemText||this.text||' ', - altText: this.altText || '' - }; - }, - - /** - * Sets the text to display in this menu item - * @param {String} text The text to display - */ - setText : function(text){ - this.text = text||' '; - if(this.rendered){ - this.textEl.update(this.text); - this.parentMenu.layout.doAutoSize(); - } - }, - - /** - * Sets the CSS class to apply to the item's icon element - * @param {String} cls The CSS class to apply - */ - setIconClass : function(cls){ - var oldCls = this.iconCls; - this.iconCls = cls; - if(this.rendered){ - this.iconEl.replaceClass(oldCls, this.iconCls); - } - }, - - //private - beforeDestroy: function(){ - clearTimeout(this.showTimer); - clearTimeout(this.hideTimer); - if (this.menu){ - delete this.menu.ownerCt; - this.menu.destroy(); - } - Ext.menu.Item.superclass.beforeDestroy.call(this); - }, - - // private - handleClick : function(e){ - if(!this.href){ // if no link defined, stop the event automatically - e.stopEvent(); - } - Ext.menu.Item.superclass.handleClick.apply(this, arguments); - }, - - // private - activate : function(autoExpand){ - if(Ext.menu.Item.superclass.activate.apply(this, arguments)){ - this.focus(); - if(autoExpand){ - this.expandMenu(); - } - } - return true; - }, - - // private - shouldDeactivate : function(e){ - if(Ext.menu.Item.superclass.shouldDeactivate.call(this, e)){ - if(this.menu && this.menu.isVisible()){ - return !this.menu.getEl().getRegion().contains(e.getPoint()); - } - return true; - } - return false; - }, - - // private - deactivate : function(){ - Ext.menu.Item.superclass.deactivate.apply(this, arguments); - this.hideMenu(); - }, - - // private - expandMenu : function(autoActivate){ - if(!this.disabled && this.menu){ - clearTimeout(this.hideTimer); - delete this.hideTimer; - if(!this.menu.isVisible() && !this.showTimer){ - this.showTimer = this.deferExpand.defer(this.showDelay, this, [autoActivate]); - }else if (this.menu.isVisible() && autoActivate){ - this.menu.tryActivate(0, 1); - } - } - }, - - // private - deferExpand : function(autoActivate){ - delete this.showTimer; - this.menu.show(this.container, this.parentMenu.subMenuAlign || 'tl-tr?', this.parentMenu); - if(autoActivate){ - this.menu.tryActivate(0, 1); - } - }, - - // private - hideMenu : function(){ - clearTimeout(this.showTimer); - delete this.showTimer; - if(!this.hideTimer && this.menu && this.menu.isVisible()){ - this.hideTimer = this.deferHide.defer(this.hideDelay, this); - } - }, - - // private - deferHide : function(){ - delete this.hideTimer; - if(this.menu.over){ - this.parentMenu.setActiveItem(this, false); - }else{ - this.menu.hide(); - } - } -}); -Ext.reg('menuitem', Ext.menu.Item);/** - * @class Ext.menu.CheckItem - * @extends Ext.menu.Item - * Adds a menu item that contains a checkbox by default, but can also be part of a radio group. - * @constructor - * Creates a new CheckItem - * @param {Object} config Configuration options - * @xtype menucheckitem - */ -Ext.menu.CheckItem = Ext.extend(Ext.menu.Item, { - /** - * @cfg {String} group - * All check items with the same group name will automatically be grouped into a single-select - * radio button group (defaults to '') - */ - /** - * @cfg {String} itemCls The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item") - */ - itemCls : "x-menu-item x-menu-check-item", - /** - * @cfg {String} groupClass The default CSS class to use for radio group check items (defaults to "x-menu-group-item") - */ - groupClass : "x-menu-group-item", - - /** - * @cfg {Boolean} checked True to initialize this checkbox as checked (defaults to false). Note that - * if this checkbox is part of a radio group (group = true) only the first item in the group that is - * initialized with checked = true will be rendered as checked. - */ - checked: false, - - // private - ctype: "Ext.menu.CheckItem", - - initComponent : function(){ - Ext.menu.CheckItem.superclass.initComponent.call(this); - this.addEvents( - /** - * @event beforecheckchange - * Fires before the checked value is set, providing an opportunity to cancel if needed - * @param {Ext.menu.CheckItem} this - * @param {Boolean} checked The new checked value that will be set - */ - "beforecheckchange" , - /** - * @event checkchange - * Fires after the checked value has been set - * @param {Ext.menu.CheckItem} this - * @param {Boolean} checked The checked value that was set - */ - "checkchange" - ); - /** - * A function that handles the checkchange event. The function is undefined by default, but if an implementation - * is provided, it will be called automatically when the checkchange event fires. - * @param {Ext.menu.CheckItem} this - * @param {Boolean} checked The checked value that was set - * @method checkHandler - */ - if(this.checkHandler){ - this.on('checkchange', this.checkHandler, this.scope); - } - Ext.menu.MenuMgr.registerCheckable(this); - }, - - // private - onRender : function(c){ - Ext.menu.CheckItem.superclass.onRender.apply(this, arguments); - if(this.group){ - this.el.addClass(this.groupClass); - } - if(this.checked){ - this.checked = false; - this.setChecked(true, true); - } - }, - - // private - destroy : function(){ - Ext.menu.MenuMgr.unregisterCheckable(this); - Ext.menu.CheckItem.superclass.destroy.apply(this, arguments); - }, - - /** - * Set the checked state of this item - * @param {Boolean} checked The new checked value - * @param {Boolean} suppressEvent (optional) True to prevent the checkchange event from firing (defaults to false) - */ - setChecked : function(state, suppressEvent){ - var suppress = suppressEvent === true; - if(this.checked != state && (suppress || this.fireEvent("beforecheckchange", this, state) !== false)){ - Ext.menu.MenuMgr.onCheckChange(this, state); - if(this.container){ - this.container[state ? "addClass" : "removeClass"]("x-menu-item-checked"); - } - this.checked = state; - if(!suppress){ - this.fireEvent("checkchange", this, state); - } - } - }, - - // private - handleClick : function(e){ - if(!this.disabled && !(this.checked && this.group)){// disable unselect on radio item - this.setChecked(!this.checked); - } - Ext.menu.CheckItem.superclass.handleClick.apply(this, arguments); - } -}); -Ext.reg('menucheckitem', Ext.menu.CheckItem);/** - * @class Ext.menu.DateMenu - * @extends Ext.menu.Menu - *

      A menu containing an {@link Ext.DatePicker} Component.

      - *

      Notes:

        - *
      • Although not listed here, the constructor for this class - * accepts all of the configuration options of {@link Ext.DatePicker}.
      • - *
      • If subclassing DateMenu, any configuration options for the DatePicker must be - * applied to the initialConfig property of the DateMenu. - * Applying {@link Ext.DatePicker DatePicker} configuration settings to - * this will not affect the DatePicker's configuration.
      • - *
      - * @xtype datemenu - */ - Ext.menu.DateMenu = Ext.extend(Ext.menu.Menu, { - /** - * @cfg {Boolean} enableScrolling - * @hide - */ - enableScrolling : false, - /** - * @cfg {Function} handler - * Optional. A function that will handle the select event of this menu. - * The handler is passed the following parameters:
        - *
      • picker : DatePicker
        The Ext.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 DateMenu instance. - */ - /** - * @cfg {Boolean} hideOnClick - * False to continue showing the menu after a date is selected, defaults to true. - */ - hideOnClick : true, - - /** - * @cfg {String} pickerId - * An id to assign to the underlying date picker. Defaults to null. - */ - pickerId : null, - - /** - * @cfg {Number} maxHeight - * @hide - */ - /** - * @cfg {Number} scrollIncrement - * @hide - */ - /** - * The {@link Ext.DatePicker} instance for this DateMenu - * @property picker - * @type DatePicker - */ - cls : 'x-date-menu', - - /** - * @event click - * @hide - */ - - /** - * @event itemclick - * @hide - */ - - initComponent : function(){ - this.on('beforeshow', this.onBeforeShow, this); - if(this.strict = (Ext.isIE7 && Ext.isStrict)){ - this.on('show', this.onShow, this, {single: true, delay: 20}); - } - Ext.apply(this, { - plain: true, - showSeparator: false, - items: this.picker = new Ext.DatePicker(Ext.applyIf({ - internalRender: this.strict || !Ext.isIE, - ctCls: 'x-menu-date-item', - id: this.pickerId - }, this.initialConfig)) - }); - this.picker.purgeListeners(); - Ext.menu.DateMenu.superclass.initComponent.call(this); - /** - * @event select - * Fires when a date is selected from the {@link #picker Ext.DatePicker} - * @param {DatePicker} picker The {@link #picker Ext.DatePicker} - * @param {Date} date The selected date - */ - this.relayEvents(this.picker, ['select']); - this.on('show', this.picker.focus, this.picker); - this.on('select', this.menuHide, this); - if(this.handler){ - this.on('select', this.handler, this.scope || this); - } - }, - - menuHide : function() { - if(this.hideOnClick){ - this.hide(true); - } - }, - - onBeforeShow : function(){ - if(this.picker){ - this.picker.hideMonthPicker(true); - } - }, - - onShow : function(){ - var el = this.picker.getEl(); - el.setWidth(el.getWidth()); //nasty hack for IE7 strict mode - } - }); - Ext.reg('datemenu', Ext.menu.DateMenu); - /** - * @class Ext.menu.ColorMenu - * @extends Ext.menu.Menu - *

      A menu containing a {@link Ext.ColorPalette} Component.

      - *

      Notes:

        - *
      • Although not listed here, the constructor for this class - * accepts all of the configuration options of {@link Ext.ColorPalette}.
      • - *
      • If subclassing ColorMenu, any configuration options for the ColorPalette must be - * applied to the initialConfig property of the ColorMenu. - * Applying {@link Ext.ColorPalette ColorPalette} configuration settings to - * this will not affect the ColorPalette's configuration.
      • - *
      * - * @xtype colormenu - */ - Ext.menu.ColorMenu = Ext.extend(Ext.menu.Menu, { - /** - * @cfg {Boolean} enableScrolling - * @hide - */ - enableScrolling : false, - /** - * @cfg {Function} handler - * Optional. A function that will handle the select event of this menu. - * 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 ColorMenu instance. - */ - - /** - * @cfg {Boolean} hideOnClick - * False to continue showing the menu after a color is selected, defaults to true. - */ - hideOnClick : true, - - cls : 'x-color-menu', - - /** - * @cfg {String} paletteId - * An id to assign to the underlying color palette. Defaults to null. - */ - paletteId : null, - - /** - * @cfg {Number} maxHeight - * @hide - */ - /** - * @cfg {Number} scrollIncrement - * @hide - */ - /** - * @property palette - * @type ColorPalette - * The {@link Ext.ColorPalette} instance for this ColorMenu - */ - - - /** - * @event click - * @hide - */ - - /** - * @event itemclick - * @hide - */ - - initComponent : function(){ - Ext.apply(this, { - plain: true, - showSeparator: false, - items: this.palette = new Ext.ColorPalette(Ext.applyIf({ - id: this.paletteId - }, this.initialConfig)) - }); - this.palette.purgeListeners(); - Ext.menu.ColorMenu.superclass.initComponent.call(this); - /** - * @event select - * Fires when a color is selected from the {@link #palette Ext.ColorPalette} - * @param {Ext.ColorPalette} palette The {@link #palette Ext.ColorPalette} - * @param {String} color The 6-digit color hex code (without the # symbol) - */ - this.relayEvents(this.palette, ['select']); - this.on('select', this.menuHide, this); - if(this.handler){ - this.on('select', this.handler, this.scope || this); - } - }, - - menuHide : function(){ - if(this.hideOnClick){ - this.hide(true); - } - } -}); -Ext.reg('colormenu', Ext.menu.ColorMenu); -/** - * @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.getKeyEvent(), 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()), preventMark); - 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). The maskRe will not operate on any paste events. - */ - 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, - isEmpty; - if(this.emptyText){ - if(el.dom.value == this.emptyText){ - this.setRawValue(''); - isEmpty = true; - } - el.removeClass(this.emptyClass); - } - if(this.selectOnFocus || isEmpty){ - 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 = Ext.isDefined(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, alt: "", 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()); - } - }, - - /** - * Changes the hidden status of the trigger. - * @param {Boolean} hideTrigger True to hide the trigger, false to show it. - */ - setHideTrigger: function(hideTrigger){ - if(hideTrigger != this.hideTrigger){ - this.hideTrigger = hideTrigger; - this.updateEditState(); - } - }, - - /** - * 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 {@link #editable} config option at config time. - * @param {Boolean} value True to allow the user to directly edit the field text. - */ - setEditable: function(editable){ - if(editable != this.editable){ - this.editable = editable; - this.updateEditState(); - } - }, - - /** - * Setting this to true will supersede settings {@link #editable} and {@link #hideTrigger}. - * Setting this to false will defer back to {@link #editable} and {@link #hideTrigger}. This method - * is the runtime equivalent of setting the {@link #readOnly} config option at config time. - * @param {Boolean} value True to prevent the user changing the field and explicitly - * hide the trigger. - */ - 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, alt: "", cls: "x-form-trigger " + this.trigger1Class}, - {tag: "img", src: Ext.BLANK_IMAGE_URL, alt: "", cls: "x-form-trigger " + this.trigger2Class} - ]}; - }, - - getTrigger : function(index){ - return this.triggers[index]; - }, - - afterRender: function(){ - Ext.form.TwinTriggerField.superclass.afterRender.call(this); - var triggers = this.triggers, - i = 0, - len = triggers.length; - - for(; i < len; ++i){ - if(this['hideTrigger' + (i + 1)]){ - triggers[i].hide(); - } - - } - }, - - initTrigger : function(){ - var ts = this.trigger.select('.x-form-trigger', true), - 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()); - triggerField['hidden' + triggerIndex] = true; - }; - t.show = function(){ - var w = triggerField.wrap.getWidth(); - this.dom.style.display = ''; - triggerField.el.setWidth(w-triggerField.trigger.getWidth()); - triggerField['hidden' + triggerIndex] = false; - }; - 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; - }, - - // inherit docs - filterValidation: function(e) { - if(!e.isNavKeyPress() || (!this.enterIsSpecial && e.keyCode == e.ENTER)){ - this.validationTask.delay(this.validationDelay); - } - }, - - /** - * 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", - - /** - * @cfg {Boolean} autoStripChars True to automatically strip not allowed characters from the field. Defaults to false - */ - autoStripChars: false, - - // private - initEvents : function() { - var allowed = this.baseChars + ''; - if (this.allowDecimals) { - allowed += this.decimalSeparator; - } - if (this.allowNegative) { - allowed += '-'; - } - allowed = Ext.escapeRe(allowed); - this.maskRe = new RegExp('[' + allowed + ']'); - if (this.autoStripChars) { - this.stripCharsRe = new RegExp('[^' + allowed + ']', 'gi'); - } - - 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 = Ext.isDefined(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 = this.fixPrecision(v); - 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(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|n-j|n/j'). - */ - 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|n-j|n/j", - /** - * @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 {Number} startDay - * Day index at which the week should begin, 0-based (defaults to 0, which is Sunday) - */ - startDay : 0, - - /** - * @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 (Date.formatContainsHourInfo(format)) { - // 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.clearTime().getTime()) { - errors.push(String.format(this.minText, this.formatDate(this.minValue))); - } - - if (this.maxValue && time > this.maxValue.clearTime().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, - startDay: this.startDay, - 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}. - */ - /** - * @cfg {String} hiddenId If {@link #hiddenName} is specified, hiddenId can also be provided - * to give the hidden field a unique id. 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({ - idIndex: 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 || Ext.id())}, '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; - }, - - getZIndex : function(listParent){ - listParent = listParent || Ext.getDom(this.getListParent() || Ext.getBody()); - var zindex = parseInt(Ext.fly(listParent).getStyle('z-index'), 10); - if(!zindex){ - zindex = this.getParentZIndex(); - } - return (zindex || 12000) + 5; - }, - - // private - initList : function(){ - if(!this.list){ - var cls = 'x-combo-list', - listParent = Ext.getDom(this.getListParent() || Ext.getBody()); - - this.list = new Ext.Layer({ - parentEl: listParent, - shadow: this.shadow, - cls: [cls, this.listClass].join(' '), - constrain:false, - zindex: this.getZIndex(listParent) - }); - - 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(){ - if(this.clearFilterOnReset && this.mode == 'local'){ - this.store.clearFilter(); - } - Ext.form.ComboBox.superclass.reset.call(this); - }, - - // 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; - - if(this.valueField && Ext.isDefined(this.value)){ - rec = this.findRecord(this.valueField, this.value); - } - if(!rec || rec.get(this.displayField) != val){ - 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 && this.valueField){ - // 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 (this.value == val){ - 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 params = {}, - paramNames = this.store.paramNames; - if(this.pageSize){ - params[paramNames.start] = 0; - params[paramNames.limit] = this.pageSize; - } - return params; - }, - - /** - * 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 - this.list.setZIndex(this.getZIndex()); - 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} 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 && !Ext.isStrict) { - 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, - inputVal = this.inputValue; - - if (v === false) { - this.checked = false; - } else { - this.checked = (v === true || v === 'true' || v == '1' || (inputVal ? v == inputVal : 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

    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) { - var args = arguments, - length = args.length, - result = [], - i, c; - - this.initItems(); - - if (length > 2) { - for (i = length - 1; i >= 1; --i) { - result.push(this.insert(index, args[i])); - } - return result; - } - - 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.isAction ? c.initialConfig : 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); - }, - - /** - * 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 - * @deprecated Fairly useless method, since you can just use Ext.getCmp. Should be removed for 4.0 - * If you need to test if an id belongs to a container, you can use getCmp and findParent*. - * @return Ext.Component - */ - findById : function(id){ - var m = null, - ct = this; - this.cascade(function(c){ - if(ct != c && c.id === id){ - m = c; - return false; - } - }); - return m; - }, - - /** - * 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 - * @deprecated Should be removed in 4.0, since getComponent does the same thing. - * @return {Ext.Component} Ext.Component - */ - get : function(key){ - return this.getComponent(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); - } 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); - } - } - }, - - // 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) && c.shouldLayout !== false){ - items.push(c); - } - }; - return items; - }, - - /** - * @private - * Applies extraCls and hides the item if renderHidden is true - */ - configureItem: function(c){ - 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(this.container) { - this.container.un(this.container.resizeEvent, this.onResize, this); - } - if(!Ext.isEmpty(this.targetCls)){ - var target = this.container.getLayoutTarget(); - if(target){ - target.removeClass(this.targetCls); - } - } - } -});/** - * @class Ext.layout.AutoLayout - *
    - * 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); - if (!this.rendered) { - Ext.destroy(this.items); - } - 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, - - /** - * @cfg {String} labelConnector The string to use when joining segments of the built label together (defaults to ', ') - */ - labelConnector: ', ', - - /** - * @cfg {Object} defaults Any default properties to assign to the child fields. - */ - - //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]; - - if (!Ext.isEmpty(item.ref)){ - item.ref = '../' + item.ref; - } - - labels.push(item.fieldLabel); - - //apply any defaults - Ext.applyIf(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); - - this.innerCt = new Ext.Container({ - layout : 'hbox', - items : this.items, - cls : 'x-form-composite', - defaultMargins: '0 3 0 0', - ownerCt: this - }); - this.innerCt.ownerCt = undefined; - - var fields = this.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); - - }, - - /** - * @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; - innerCt.render(ct); - - this.el = innerCt.getEl(); - - //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, - errorName: field.fieldLabel || name, - error: message - }; - - this.fieldErrors.replace(name, error); - - if (!field.preventMark) { - 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(value, preventMark) { - var valid = true; - - this.eachItem(function(field) { - if (!field.isValid(preventMark)) { - 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.errorName, 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 Ext.clean(segments).join(this.labelConnector); - }, - - /** - * 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) { - if (readOnly == undefined) { - readOnly = true; - } - readOnly = !!readOnly; - - 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; - }, - - /** - * 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){ - var checkEl, - els, - radio; - if (typeof v == 'boolean') { - Ext.form.Radio.superclass.setValue.call(this, v); - } else if (this.rendered) { - checkEl = this.getCheckEl(); - radio = checkEl.child('input[name="' + this.el.dom.name + '"][value="' + v + '"]', true); - if(radio){ - Ext.getCmp(radio.id).setValue(true); - } - } - if(this.rendered && this.checked){ - checkEl = checkEl || this.getCheckEl(); - els = this.getCheckEl().select('input[name="' + this.el.dom.name + '"]'); - els.each(function(el){ - if(el.dom.id != this.id){ - Ext.getCmp(el.dom.id).setValue(false); - } - }, this); - } - 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', - - shouldLayout: false, - - // 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, - field, - value; - fs.each(function(f){ - field = this.findField(f.name); - if(field){ - value = field.getValue(); - if (Ext.type(value) !== false && value.getGroupValue) { - value = value.getGroupValue(); - } else if ( field.eachItem ) { - value = []; - field.eachItem(function(item){ - value.push(item.getValue()); - }); - } - record.set(f.name, value); - } - }, 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) { - return f.items.each(findMatchingField); - } else if (f instanceof Ext.form.CheckboxGroup && f.rendered) { - return f.eachItem(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 (!f.disabled && (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); - /* - * This isn't the most efficient way of getting rid of the items, however it's the most - * correct, which in this case is most important. - */ - 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' - ); - Ext.form.HtmlEditor.superclass.initComponent.call(this); - }, - - // 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'; - iframe.src = Ext.SSL_SECURE_URL; - - 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 = this.getDoc(); - if (doc) { - 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; - - 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 - this.previousSize = 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(this.previousSize); - delete this.previousSize; - 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 - beforeDestroy : 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(); - } - } - Ext.form.HtmlEditor.superclass.beforeDestroy.call(this); - }, - - // 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.MultiSlider 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; - }, - - decodeResponse: function(response) { - try { - return Ext.decode(response.responseText); - } catch(e) { - return false; - } - }, - - // 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 = [], - setupEmptyFields = function(f){ - if (f.el.getValue() == f.emptyText) { - emptyFields.push(f); - f.el.dom.value = ""; - } - if(f.isComposite && f.rendered){ - f.items.each(setupEmptyFields); - } - }; - - fields.each(setupEmptyFields); - } - 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 this.decodeResponse(response); - } -}); - - -/** - * @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 this.decodeResponse(response); - } -}); - - - -/** - * @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 - }; -}(); -/** - * @class Ext.grid.GridPanel - * @extends Ext.Panel - *

    This class represents the primary interface of a component based grid control to represent data - * in a tabular format of rows and columns. The GridPanel is composed of the following:

    - *
      - *
    • {@link Ext.data.Store Store} : The Model holding the data records (rows) - *
    • - *
    • {@link Ext.grid.ColumnModel Column model} : Column makeup - *
    • - *
    • {@link Ext.grid.GridView View} : Encapsulates the user interface - *
    • - *
    • {@link Ext.grid.AbstractSelectionModel selection model} : Selection behavior - *
    • - *
    - *

    Example usage:

    - *
    
    -var grid = new Ext.grid.GridPanel({
    -    {@link #store}: new {@link Ext.data.Store}({
    -        {@link Ext.data.Store#autoDestroy autoDestroy}: true,
    -        {@link Ext.data.Store#reader reader}: reader,
    -        {@link Ext.data.Store#data data}: xg.dummyData
    -    }),
    -    {@link #colModel}: new {@link Ext.grid.ColumnModel}({
    -        {@link Ext.grid.ColumnModel#defaults defaults}: {
    -            width: 120,
    -            sortable: true
    -        },
    -        {@link Ext.grid.ColumnModel#columns columns}: [
    -            {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
    -            {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
    -            {header: 'Change', dataIndex: 'change'},
    -            {header: '% Change', dataIndex: 'pctChange'},
    -            // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
    -            {
    -                header: 'Last Updated', width: 135, dataIndex: 'lastChange',
    -                xtype: 'datecolumn', format: 'M d, Y'
    -            }
    -        ]
    -    }),
    -    {@link #viewConfig}: {
    -        {@link Ext.grid.GridView#forceFit forceFit}: true,
    -
    -//      Return CSS class to apply to rows depending upon data values
    -        {@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
    -            var c = record.{@link Ext.data.Record#get get}('change');
    -            if (c < 0) {
    -                return 'price-fall';
    -            } else if (c > 0) {
    -                return 'price-rise';
    -            }
    -        }
    -    },
    -    {@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
    -    width: 600,
    -    height: 300,
    -    frame: true,
    -    title: 'Framed with Row Selection and Horizontal Scrolling',
    -    iconCls: 'icon-grid'
    -});
    - * 
    - *

    Notes:

    - *
      - *
    • Although this class inherits many configuration options from base classes, some of them - * (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will - * have no effect.
    • - *
    • A grid requires a width in which to scroll its columns, and a height in which to - * scroll its rows. These dimensions can either be set explicitly through the - * {@link Ext.BoxComponent#height height} and {@link Ext.BoxComponent#width width} - * configuration options or implicitly set by using the grid as a child item of a - * {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager} - * provide the sizing of its child items (for example the Container of the Grid may specify - * {@link Ext.Container#layout layout}:'fit').
    • - *
    • To access the data in a Grid, it is necessary to use the data model encapsulated - * by the {@link #store Store}. See the {@link #cellclick} event for more details.
    • - *
    - * @constructor - * @param {Object} config The config object - * @xtype grid - */ -Ext.grid.GridPanel = Ext.extend(Ext.Panel, { - /** - * @cfg {String} autoExpandColumn - *

    The {@link Ext.grid.Column#id id} of a {@link Ext.grid.Column column} in - * this grid that should expand to fill unused space. This value specified here can not - * be 0.

    - *

    Note: If the Grid's {@link Ext.grid.GridView view} is configured with - * {@link Ext.grid.GridView#forceFit forceFit}=true the autoExpandColumn - * is ignored. See {@link Ext.grid.Column}.{@link Ext.grid.Column#width width} - * for additional details.

    - *

    See {@link #autoExpandMax} and {@link #autoExpandMin} also.

    - */ - autoExpandColumn : false, - - /** - * @cfg {Number} autoExpandMax The maximum width the {@link #autoExpandColumn} - * can have (if enabled). Defaults to 1000. - */ - autoExpandMax : 1000, - - /** - * @cfg {Number} autoExpandMin The minimum width the {@link #autoExpandColumn} - * can have (if enabled). Defaults to 50. - */ - autoExpandMin : 50, - - /** - * @cfg {Boolean} columnLines true to add css for column separation lines. - * Default is false. - */ - columnLines : false, - - /** - * @cfg {Object} cm Shorthand for {@link #colModel}. - */ - /** - * @cfg {Object} colModel The {@link Ext.grid.ColumnModel} to use when rendering the grid (required). - */ - /** - * @cfg {Array} columns An array of {@link Ext.grid.Column columns} to auto create a - * {@link Ext.grid.ColumnModel}. The ColumnModel may be explicitly created via the - * {@link #colModel} configuration property. - */ - /** - * @cfg {String} ddGroup The DD group this GridPanel belongs to. Defaults to 'GridDD' if not specified. - */ - /** - * @cfg {String} ddText - * Configures the text in the drag proxy. Defaults to: - *
    
    -     * ddText : '{0} selected row{1}'
    -     * 
    - * {0} is replaced with the number of selected rows. - */ - ddText : '{0} selected row{1}', - - /** - * @cfg {Boolean} deferRowRender

    Defaults to true to enable deferred row rendering.

    - *

    This allows the GridPanel to be initially rendered empty, with the expensive update of the row - * structure deferred so that layouts with GridPanels appear more quickly.

    - */ - deferRowRender : true, - - /** - * @cfg {Boolean} disableSelection

    true to disable selections in the grid. Defaults to false.

    - *

    Ignored if a {@link #selModel SelectionModel} is specified.

    - */ - /** - * @cfg {Boolean} enableColumnResize false to turn off column resizing for the whole grid. Defaults to true. - */ - /** - * @cfg {Boolean} enableColumnHide - * Defaults to true to enable {@link Ext.grid.Column#hidden hiding of columns} - * with the {@link #enableHdMenu header menu}. - */ - enableColumnHide : true, - - /** - * @cfg {Boolean} enableColumnMove Defaults to true to enable drag and drop reorder of columns. false - * to turn off column reordering via drag drop. - */ - enableColumnMove : true, - - /** - * @cfg {Boolean} enableDragDrop

    Enables dragging of the selected rows of the GridPanel. Defaults to false.

    - *

    Setting this to true causes this GridPanel's {@link #getView GridView} to - * create an instance of {@link Ext.grid.GridDragZone}. Note: this is available only after - * the Grid has been rendered as the GridView's {@link Ext.grid.GridView#dragZone dragZone} - * property.

    - *

    A cooperating {@link Ext.dd.DropZone DropZone} must be created who's implementations of - * {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver}, - * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} are able - * to process the {@link Ext.grid.GridDragZone#getDragData data} which is provided.

    - */ - enableDragDrop : false, - - /** - * @cfg {Boolean} enableHdMenu Defaults to true to enable the drop down button for menu in the headers. - */ - enableHdMenu : true, - - /** - * @cfg {Boolean} hideHeaders True to hide the grid's header. Defaults to false. - */ - /** - * @cfg {Object} loadMask An {@link Ext.LoadMask} config or true to mask the grid while - * loading. Defaults to false. - */ - loadMask : false, - - /** - * @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if autoHeight is not on. - */ - /** - * @cfg {Number} minColumnWidth The minimum width a column can be resized to. Defaults to 25. - */ - minColumnWidth : 25, - - /** - * @cfg {Object} sm Shorthand for {@link #selModel}. - */ - /** - * @cfg {Object} selModel Any subclass of {@link Ext.grid.AbstractSelectionModel} that will provide - * the selection model for the grid (defaults to {@link Ext.grid.RowSelectionModel} if not specified). - */ - /** - * @cfg {Ext.data.Store} store The {@link Ext.data.Store} the grid should use as its data source (required). - */ - /** - * @cfg {Boolean} stripeRows true to stripe the rows. Default is false. - *

    This causes the CSS class x-grid3-row-alt to be added to alternate rows of - * the grid. A default CSS rule is provided which sets a background colour, but you can override this - * with a rule which either overrides the background-color style using the '!important' - * modifier, or which uses a CSS selector of higher specificity.

    - */ - stripeRows : false, - - /** - * @cfg {Boolean} trackMouseOver True to highlight rows when the mouse is over. Default is true - * for GridPanel, but false for EditorGridPanel. - */ - trackMouseOver : true, - - /** - * @cfg {Array} stateEvents - * An array of events that, when fired, should trigger this component to save its state. - * Defaults to:
    
    -     * stateEvents: ['columnmove', 'columnresize', 'sortchange', 'groupchange']
    -     * 
    - *

    These can be any types of events supported by this component, including browser or - * custom events (e.g., ['click', 'customerchange']).

    - *

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

    - */ - stateEvents : ['columnmove', 'columnresize', 'sortchange', 'groupchange'], - - /** - * @cfg {Object} view The {@link Ext.grid.GridView} used by the grid. This can be set - * before a call to {@link Ext.Component#render render()}. - */ - view : null, - - /** - * @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: [], - - /** - * @cfg {Object} viewConfig A config object that will be applied to the grid's UI view. Any of - * the config options available for {@link Ext.grid.GridView} can be specified here. This option - * is ignored if {@link #view} is specified. - */ - - // private - rendered : false, - - // private - viewReady : false, - - // private - initComponent : function() { - Ext.grid.GridPanel.superclass.initComponent.call(this); - - if (this.columnLines) { - this.cls = (this.cls || '') + ' x-grid-with-col-lines'; - } - // override any provided value since it isn't valid - // and is causing too many bug reports ;) - this.autoScroll = false; - this.autoWidth = false; - - if(Ext.isArray(this.columns)){ - this.colModel = new Ext.grid.ColumnModel(this.columns); - delete this.columns; - } - - // check and correct shorthanded configs - if(this.ds){ - this.store = this.ds; - delete this.ds; - } - if(this.cm){ - this.colModel = this.cm; - delete this.cm; - } - if(this.sm){ - this.selModel = this.sm; - delete this.sm; - } - this.store = Ext.StoreMgr.lookup(this.store); - - this.addEvents( - // raw events - /** - * @event click - * The raw click event for the entire grid. - * @param {Ext.EventObject} e - */ - 'click', - /** - * @event dblclick - * The raw dblclick event for the entire grid. - * @param {Ext.EventObject} e - */ - 'dblclick', - /** - * @event contextmenu - * The raw contextmenu event for the entire grid. - * @param {Ext.EventObject} e - */ - 'contextmenu', - /** - * @event mousedown - * The raw mousedown event for the entire grid. - * @param {Ext.EventObject} e - */ - 'mousedown', - /** - * @event mouseup - * The raw mouseup event for the entire grid. - * @param {Ext.EventObject} e - */ - 'mouseup', - /** - * @event mouseover - * The raw mouseover event for the entire grid. - * @param {Ext.EventObject} e - */ - 'mouseover', - /** - * @event mouseout - * The raw mouseout event for the entire grid. - * @param {Ext.EventObject} e - */ - 'mouseout', - /** - * @event keypress - * The raw keypress event for the entire grid. - * @param {Ext.EventObject} e - */ - 'keypress', - /** - * @event keydown - * The raw keydown event for the entire grid. - * @param {Ext.EventObject} e - */ - 'keydown', - - // custom events - /** - * @event cellmousedown - * Fires before a cell is clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'cellmousedown', - /** - * @event rowmousedown - * Fires before a row is clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowmousedown', - /** - * @event headermousedown - * Fires before a header is clicked - * @param {Grid} this - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'headermousedown', - - /** - * @event groupmousedown - * Fires before a group header is clicked. Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}. - * @param {Grid} this - * @param {String} groupField - * @param {String} groupValue - * @param {Ext.EventObject} e - */ - 'groupmousedown', - - /** - * @event rowbodymousedown - * Fires before the row body is clicked. Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured. - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowbodymousedown', - - /** - * @event containermousedown - * Fires before the container is clicked. The container consists of any part of the grid body that is not covered by a row. - * @param {Grid} this - * @param {Ext.EventObject} e - */ - 'containermousedown', - - /** - * @event cellclick - * Fires when a cell is clicked. - * The data for the cell is drawn from the {@link Ext.data.Record Record} - * for this row. To access the data in the listener function use the - * following technique: - *

    
    -function(grid, rowIndex, columnIndex, e) {
    -    var record = grid.getStore().getAt(rowIndex);  // Get the Record
    -    var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
    -    var data = record.get(fieldName);
    -}
    -
    - * @param {Grid} this - * @param {Number} rowIndex - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'cellclick', - /** - * @event celldblclick - * Fires when a cell is double clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'celldblclick', - /** - * @event rowclick - * Fires when a row is clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowclick', - /** - * @event rowdblclick - * Fires when a row is double clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowdblclick', - /** - * @event headerclick - * Fires when a header is clicked - * @param {Grid} this - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'headerclick', - /** - * @event headerdblclick - * Fires when a header cell is double clicked - * @param {Grid} this - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'headerdblclick', - /** - * @event groupclick - * Fires when group header is clicked. Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}. - * @param {Grid} this - * @param {String} groupField - * @param {String} groupValue - * @param {Ext.EventObject} e - */ - 'groupclick', - /** - * @event groupdblclick - * Fires when group header is double clicked. Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}. - * @param {Grid} this - * @param {String} groupField - * @param {String} groupValue - * @param {Ext.EventObject} e - */ - 'groupdblclick', - /** - * @event containerclick - * Fires when the container is clicked. The container consists of any part of the grid body that is not covered by a row. - * @param {Grid} this - * @param {Ext.EventObject} e - */ - 'containerclick', - /** - * @event containerdblclick - * Fires when the container is double clicked. The container consists of any part of the grid body that is not covered by a row. - * @param {Grid} this - * @param {Ext.EventObject} e - */ - 'containerdblclick', - - /** - * @event rowbodyclick - * Fires when the row body is clicked. Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured. - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowbodyclick', - /** - * @event rowbodydblclick - * Fires when the row body is double clicked. Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured. - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowbodydblclick', - - /** - * @event rowcontextmenu - * Fires when a row is right clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowcontextmenu', - /** - * @event cellcontextmenu - * Fires when a cell is right clicked - * @param {Grid} this - * @param {Number} rowIndex - * @param {Number} cellIndex - * @param {Ext.EventObject} e - */ - 'cellcontextmenu', - /** - * @event headercontextmenu - * Fires when a header is right clicked - * @param {Grid} this - * @param {Number} columnIndex - * @param {Ext.EventObject} e - */ - 'headercontextmenu', - /** - * @event groupcontextmenu - * Fires when group header is right clicked. Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}. - * @param {Grid} this - * @param {String} groupField - * @param {String} groupValue - * @param {Ext.EventObject} e - */ - 'groupcontextmenu', - /** - * @event containercontextmenu - * Fires when the container is right clicked. The container consists of any part of the grid body that is not covered by a row. - * @param {Grid} this - * @param {Ext.EventObject} e - */ - 'containercontextmenu', - /** - * @event rowbodycontextmenu - * Fires when the row body is right clicked. Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured. - * @param {Grid} this - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'rowbodycontextmenu', - /** - * @event bodyscroll - * Fires when the body element is scrolled - * @param {Number} scrollLeft - * @param {Number} scrollTop - */ - 'bodyscroll', - /** - * @event columnresize - * Fires when the user resizes a column - * @param {Number} columnIndex - * @param {Number} newSize - */ - 'columnresize', - /** - * @event columnmove - * Fires when the user moves a column - * @param {Number} oldIndex - * @param {Number} newIndex - */ - 'columnmove', - /** - * @event sortchange - * Fires when the grid's store sort changes - * @param {Grid} this - * @param {Object} sortInfo An object with the keys field and direction - */ - 'sortchange', - /** - * @event groupchange - * Fires when the grid's grouping changes (only applies for grids with a {@link Ext.grid.GroupingView GroupingView}) - * @param {Grid} this - * @param {String} groupField A string with the grouping field, null if the store is not grouped. - */ - 'groupchange', - /** - * @event reconfigure - * Fires when the grid is reconfigured with a new store and/or column model. - * @param {Grid} this - * @param {Ext.data.Store} store The new store - * @param {Ext.grid.ColumnModel} colModel The new column model - */ - 'reconfigure', - /** - * @event viewready - * Fires when the grid view is available (use this for selecting a default row). - * @param {Grid} this - */ - 'viewready' - ); - }, - - // private - onRender : function(ct, position){ - Ext.grid.GridPanel.superclass.onRender.apply(this, arguments); - - var c = this.getGridEl(); - - this.el.addClass('x-grid-panel'); - - this.mon(c, { - scope: this, - mousedown: this.onMouseDown, - click: this.onClick, - dblclick: this.onDblClick, - contextmenu: this.onContextMenu - }); - - this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress', 'keydown']); - - var view = this.getView(); - view.init(this); - view.render(); - this.getSelectionModel().init(this); - }, - - // private - initEvents : function(){ - Ext.grid.GridPanel.superclass.initEvents.call(this); - - if(this.loadMask){ - this.loadMask = new Ext.LoadMask(this.bwrap, - Ext.apply({store:this.store}, this.loadMask)); - } - }, - - initStateEvents : function(){ - Ext.grid.GridPanel.superclass.initStateEvents.call(this); - this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100}); - }, - - applyState : function(state){ - var cm = this.colModel, - cs = state.columns, - store = this.store, - s, - c, - colIndex; - - if(cs){ - for(var i = 0, len = cs.length; i < len; i++){ - s = cs[i]; - c = cm.getColumnById(s.id); - if(c){ - colIndex = cm.getIndexById(s.id); - cm.setState(colIndex, { - hidden: s.hidden, - width: s.width, - sortable: s.sortable - }); - if(colIndex != i){ - cm.moveColumn(colIndex, i); - } - } - } - } - if(store){ - s = state.sort; - if(s){ - store[store.remoteSort ? 'setDefaultSort' : 'sort'](s.field, s.direction); - } - s = state.group; - if(store.groupBy){ - if(s){ - store.groupBy(s); - }else{ - store.clearGrouping(); - } - } - - } - var o = Ext.apply({}, state); - delete o.columns; - delete o.sort; - Ext.grid.GridPanel.superclass.applyState.call(this, o); - }, - - getState : function(){ - var o = {columns: []}, - store = this.store, - ss, - gs; - - for(var i = 0, c; (c = this.colModel.config[i]); i++){ - o.columns[i] = { - id: c.id, - width: c.width - }; - if(c.hidden){ - o.columns[i].hidden = true; - } - if(c.sortable){ - o.columns[i].sortable = true; - } - } - if(store){ - ss = store.getSortState(); - if(ss){ - o.sort = ss; - } - if(store.getGroupState){ - gs = store.getGroupState(); - if(gs){ - o.group = gs; - } - } - } - return o; - }, - - // private - afterRender : function(){ - Ext.grid.GridPanel.superclass.afterRender.call(this); - var v = this.view; - this.on('bodyresize', v.layout, v); - v.layout(true); - if(this.deferRowRender){ - if (!this.deferRowRenderTask){ - this.deferRowRenderTask = new Ext.util.DelayedTask(v.afterRender, this.view); - } - this.deferRowRenderTask.delay(10); - }else{ - v.afterRender(); - } - this.viewReady = true; - }, - - /** - *

    Reconfigures the grid to use a different Store and Column Model - * and fires the 'reconfigure' event. The View will be bound to the new - * objects and refreshed.

    - *

    Be aware that upon reconfiguring a GridPanel, certain existing settings may become - * invalidated. For example the configured {@link #autoExpandColumn} may no longer exist in the - * new ColumnModel. Also, an existing {@link Ext.PagingToolbar PagingToolbar} will still be bound - * to the old Store, and will need rebinding. Any {@link #plugins} might also need reconfiguring - * with the new data.

    - * @param {Ext.data.Store} store The new {@link Ext.data.Store} object - * @param {Ext.grid.ColumnModel} colModel The new {@link Ext.grid.ColumnModel} object - */ - reconfigure : function(store, colModel){ - var rendered = this.rendered; - if(rendered){ - if(this.loadMask){ - this.loadMask.destroy(); - this.loadMask = new Ext.LoadMask(this.bwrap, - Ext.apply({}, {store:store}, this.initialConfig.loadMask)); - } - } - if(this.view){ - this.view.initData(store, colModel); - } - this.store = store; - this.colModel = colModel; - if(rendered){ - this.view.refresh(true); - } - this.fireEvent('reconfigure', this, store, colModel); - }, - - // private - onDestroy : function(){ - if (this.deferRowRenderTask && this.deferRowRenderTask.cancel){ - this.deferRowRenderTask.cancel(); - } - if(this.rendered){ - Ext.destroy(this.view, this.loadMask); - }else if(this.store && this.store.autoDestroy){ - this.store.destroy(); - } - Ext.destroy(this.colModel, this.selModel); - this.store = this.selModel = this.colModel = this.view = this.loadMask = null; - Ext.grid.GridPanel.superclass.onDestroy.call(this); - }, - - // private - processEvent : function(name, e){ - this.view.processEvent(name, e); - }, - - // private - onClick : function(e){ - this.processEvent('click', e); - }, - - // private - onMouseDown : function(e){ - this.processEvent('mousedown', e); - }, - - // private - onContextMenu : function(e, t){ - this.processEvent('contextmenu', e); - }, - - // private - onDblClick : function(e){ - this.processEvent('dblclick', e); - }, - - // private - walkCells : function(row, col, step, fn, scope){ - var cm = this.colModel, - clen = cm.getColumnCount(), - ds = this.store, - rlen = ds.getCount(), - first = true; - - if(step < 0){ - if(col < 0){ - row--; - first = false; - } - while(row >= 0){ - if(!first){ - col = clen-1; - } - first = false; - while(col >= 0){ - if(fn.call(scope || this, row, col, cm) === true){ - return [row, col]; - } - col--; - } - row--; - } - } else { - if(col >= clen){ - row++; - first = false; - } - while(row < rlen){ - if(!first){ - col = 0; - } - first = false; - while(col < clen){ - if(fn.call(scope || this, row, col, cm) === true){ - return [row, col]; - } - col++; - } - row++; - } - } - return null; - }, - - /** - * Returns the grid's underlying element. - * @return {Element} The element - */ - getGridEl : function(){ - return this.body; - }, - - // private for compatibility, overridden by editor grid - stopEditing : Ext.emptyFn, - - /** - * Returns the grid's selection model configured by the {@link #selModel} - * configuration option. If no selection model was configured, this will create - * and return a {@link Ext.grid.RowSelectionModel RowSelectionModel}. - * @return {SelectionModel} - */ - getSelectionModel : function(){ - if(!this.selModel){ - this.selModel = new Ext.grid.RowSelectionModel( - this.disableSelection ? {selectRow: Ext.emptyFn} : null); - } - return this.selModel; - }, - - /** - * Returns the grid's data store. - * @return {Ext.data.Store} The store - */ - getStore : function(){ - return this.store; - }, - - /** - * Returns the grid's ColumnModel. - * @return {Ext.grid.ColumnModel} The column model - */ - getColumnModel : function(){ - return this.colModel; - }, - - /** - * Returns the grid's GridView object. - * @return {Ext.grid.GridView} The grid view - */ - getView : function() { - if (!this.view) { - this.view = new Ext.grid.GridView(this.viewConfig); - } - - return this.view; - }, - /** - * Called to get grid's drag proxy text, by default returns this.ddText. - * @return {String} The text - */ - getDragDropText : function(){ - var count = this.selModel.getCount(); - return String.format(this.ddText, count, count == 1 ? '' : 's'); - } - - /** - * @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 add - * @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 - */ - /** - * @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} autoScroll @hide - */ - /** - * @cfg {String} bodyBorder @hide - */ - /** - * @cfg {String} bodyStyle @hide - */ - /** - * @cfg {String} contentEl @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.reg('grid', Ext.grid.GridPanel);/** - * @class Ext.grid.PivotGrid - * @extends Ext.grid.GridPanel - *

    The PivotGrid component enables rapid summarization of large data sets. It provides a way to reduce a large set of - * data down into a format where trends and insights become more apparent. A classic example is in sales data; a company - * will often have a record of all sales it makes for a given period - this will often encompass thousands of rows of - * data. The PivotGrid allows you to see how well each salesperson performed, which cities generate the most revenue, - * how products perform between cities and so on.

    - *

    A PivotGrid is composed of two axes (left and top), one {@link #measure} and one {@link #aggregator aggregation} - * function. Each axis can contain one or more {@link #dimension}, which are ordered into a hierarchy. Dimensions on the - * left axis can also specify a width. Each dimension in each axis can specify its sort ordering, defaulting to "ASC", - * and must specify one of the fields in the {@link Ext.data.Record Record} used by the PivotGrid's - * {@link Ext.data.Store Store}.

    -
    
    -// This is the record representing a single sale
    -var SaleRecord = Ext.data.Record.create([
    -    {name: 'person',   type: 'string'},
    -    {name: 'product',  type: 'string'},
    -    {name: 'city',     type: 'string'},
    -    {name: 'state',    type: 'string'},
    -    {name: 'year',     type: 'int'},
    -    {name: 'value',    type: 'int'}
    -]);
    -
    -// A simple store that loads SaleRecord data from a url
    -var myStore = new Ext.data.Store({
    -    url: 'data.json',
    -    autoLoad: true,
    -    reader: new Ext.data.JsonReader({
    -        root: 'rows',
    -        idProperty: 'id'
    -    }, SaleRecord)
    -});
    -
    -// Create the PivotGrid itself, referencing the store
    -var pivot = new Ext.grid.PivotGrid({
    -    store     : myStore,
    -    aggregator: 'sum',
    -    measure   : 'value',
    -
    -    leftAxis: [
    -        {
    -            width: 60,
    -            dataIndex: 'product'
    -        },
    -        {
    -            width: 120,
    -            dataIndex: 'person',
    -            direction: 'DESC'
    -        }
    -    ],
    -
    -    topAxis: [
    -        {
    -            dataIndex: 'year'
    -        }
    -    ]
    -});
    -
    - *

    The specified {@link #measure} is the field from SaleRecord that is extracted from each combination - * of product and person (on the left axis) and year on the top axis. There may be several SaleRecords in the - * data set that share this combination, so an array of measure fields is produced. This array is then - * aggregated using the {@link #aggregator} function.

    - *

    The default aggregator function is sum, which simply adds up all of the extracted measure values. Other - * built-in aggregator functions are count, avg, min and max. In addition, you can specify your own function. - * In this example we show the code used to sum the measures, but you can return any value you like. See - * {@link #aggregator} for more details.

    -
    
    -new Ext.grid.PivotGrid({
    -    aggregator: function(records, measure) {
    -        var length = records.length,
    -            total  = 0,
    -            i;
    -
    -        for (i = 0; i < length; i++) {
    -            total += records[i].get(measure);
    -        }
    -
    -        return total;
    -    },
    -    
    -    renderer: function(value) {
    -        return Math.round(value);
    -    },
    -    
    -    //your normal config here
    -});
    -
    - *

    Renderers

    - *

    PivotGrid optionally accepts a {@link #renderer} function which can modify the data in each cell before it - * is rendered. The renderer is passed the value that would usually be placed in the cell and is expected to return - * the new value. For example let's imagine we had height data expressed as a decimal - here's how we might use a - * renderer to display the data in feet and inches notation:

    -
    
    -new Ext.grid.PivotGrid({
    -    //in each case the value is a decimal number of feet
    -    renderer  : function(value) {
    -        var feet   = Math.floor(value),
    -            inches = Math.round((value - feet) * 12);
    -
    -        return String.format("{0}' {1}\"", feet, inches);
    -    },
    -    //normal config here
    -});
    -
    - *

    Reconfiguring

    - *

    All aspects PivotGrid's configuration can be updated at runtime. It is easy to change the {@link #setMeasure measure}, - * {@link #setAggregator aggregation function}, {@link #setLeftAxis left} and {@link #setTopAxis top} axes and refresh the grid.

    - *

    In this case we reconfigure the PivotGrid to have city and year as the top axis dimensions, rendering the average sale - * value into the cells:

    -
    
    -//the left axis can also be changed
    -pivot.topAxis.setDimensions([
    -    {dataIndex: 'city', direction: 'DESC'},
    -    {dataIndex: 'year', direction: 'ASC'}
    -]);
    -
    -pivot.setMeasure('value');
    -pivot.setAggregator('avg');
    -
    -pivot.view.refresh(true);
    -
    - *

    See the {@link Ext.grid.PivotAxis PivotAxis} documentation for further detail on reconfiguring axes.

    - */ -Ext.grid.PivotGrid = Ext.extend(Ext.grid.GridPanel, { - - /** - * @cfg {String|Function} aggregator The aggregation function to use to combine the measures extracted - * for each dimension combination. Can be any of the built-in aggregators (sum, count, avg, min, max). - * Can also be a function which accepts two arguments (an array of Records to aggregate, and the measure - * to aggregate them on) and should return a String. - */ - aggregator: 'sum', - - /** - * @cfg {Function} renderer Optional renderer to pass values through before they are rendered to the dom. This - * gives an opportunity to modify cell contents after the value has been computed. - */ - renderer: undefined, - - /** - * @cfg {String} measure The field to extract from each Record when pivoting around the two axes. See the class - * introduction docs for usage - */ - - /** - * @cfg {Array|Ext.grid.PivotAxis} leftAxis Either and array of {@link #dimension} to use on the left axis, or - * a {@link Ext.grid.PivotAxis} instance. If an array is passed, it is turned into a PivotAxis internally. - */ - - /** - * @cfg {Array|Ext.grid.PivotAxis} topAxis Either and array of {@link #dimension} to use on the top axis, or - * a {@link Ext.grid.PivotAxis} instance. If an array is passed, it is turned into a PivotAxis internally. - */ - - //inherit docs - initComponent: function() { - Ext.grid.PivotGrid.superclass.initComponent.apply(this, arguments); - - this.initAxes(); - - //no resizing of columns is allowed yet in PivotGrid - this.enableColumnResize = false; - - this.viewConfig = Ext.apply(this.viewConfig || {}, { - forceFit: true - }); - - //TODO: dummy col model that is never used - GridView is too tightly integrated with ColumnModel - //in 3.x to remove this altogether. - this.colModel = new Ext.grid.ColumnModel({}); - }, - - /** - * Returns the function currently used to aggregate the records in each Pivot cell - * @return {Function} The current aggregator function - */ - getAggregator: function() { - if (typeof this.aggregator == 'string') { - return Ext.grid.PivotAggregatorMgr.types[this.aggregator]; - } else { - return this.aggregator; - } - }, - - /** - * Sets the function to use when aggregating data for each cell. - * @param {String|Function} aggregator The new aggregator function or named function string - */ - setAggregator: function(aggregator) { - this.aggregator = aggregator; - }, - - /** - * Sets the field name to use as the Measure in this Pivot Grid - * @param {String} measure The field to make the measure - */ - setMeasure: function(measure) { - this.measure = measure; - }, - - /** - * Sets the left axis of this pivot grid. Optionally refreshes the grid afterwards. - * @param {Ext.grid.PivotAxis} axis The pivot axis - * @param {Boolean} refresh True to immediately refresh the grid and its axes (defaults to false) - */ - setLeftAxis: function(axis, refresh) { - /** - * The configured {@link Ext.grid.PivotAxis} used as the left Axis for this Pivot Grid - * @property leftAxis - * @type Ext.grid.PivotAxis - */ - this.leftAxis = axis; - - if (refresh) { - this.view.refresh(); - } - }, - - /** - * Sets the top axis of this pivot grid. Optionally refreshes the grid afterwards. - * @param {Ext.grid.PivotAxis} axis The pivot axis - * @param {Boolean} refresh True to immediately refresh the grid and its axes (defaults to false) - */ - setTopAxis: function(axis, refresh) { - /** - * The configured {@link Ext.grid.PivotAxis} used as the top Axis for this Pivot Grid - * @property topAxis - * @type Ext.grid.PivotAxis - */ - this.topAxis = axis; - - if (refresh) { - this.view.refresh(); - } - }, - - /** - * @private - * Creates the top and left axes. Should usually only need to be called once from initComponent - */ - initAxes: function() { - var PivotAxis = Ext.grid.PivotAxis; - - if (!(this.leftAxis instanceof PivotAxis)) { - this.setLeftAxis(new PivotAxis({ - orientation: 'vertical', - dimensions : this.leftAxis || [], - store : this.store - })); - }; - - if (!(this.topAxis instanceof PivotAxis)) { - this.setTopAxis(new PivotAxis({ - orientation: 'horizontal', - dimensions : this.topAxis || [], - store : this.store - })); - }; - }, - - /** - * @private - * @return {Array} 2-dimensional array of cell data - */ - extractData: function() { - var records = this.store.data.items, - recCount = records.length, - cells = [], - record, i, j, k; - - if (recCount == 0) { - return []; - } - - var leftTuples = this.leftAxis.getTuples(), - leftCount = leftTuples.length, - topTuples = this.topAxis.getTuples(), - topCount = topTuples.length, - aggregator = this.getAggregator(); - - for (i = 0; i < recCount; i++) { - record = records[i]; - - for (j = 0; j < leftCount; j++) { - cells[j] = cells[j] || []; - - if (leftTuples[j].matcher(record) === true) { - for (k = 0; k < topCount; k++) { - cells[j][k] = cells[j][k] || []; - - if (topTuples[k].matcher(record)) { - cells[j][k].push(record); - } - } - } - } - } - - var rowCount = cells.length, - colCount, row; - - for (i = 0; i < rowCount; i++) { - row = cells[i]; - colCount = row.length; - - for (j = 0; j < colCount; j++) { - cells[i][j] = aggregator(cells[i][j], this.measure); - } - } - - return cells; - }, - - /** - * Returns the grid's GridView object. - * @return {Ext.grid.PivotGridView} The grid view - */ - getView: function() { - if (!this.view) { - this.view = new Ext.grid.PivotGridView(this.viewConfig); - } - - return this.view; - } -}); - -Ext.reg('pivotgrid', Ext.grid.PivotGrid); - - -Ext.grid.PivotAggregatorMgr = new Ext.AbstractManager(); - -Ext.grid.PivotAggregatorMgr.registerType('sum', function(records, measure) { - var length = records.length, - total = 0, - i; - - for (i = 0; i < length; i++) { - total += records[i].get(measure); - } - - return total; -}); - -Ext.grid.PivotAggregatorMgr.registerType('avg', function(records, measure) { - var length = records.length, - total = 0, - i; - - for (i = 0; i < length; i++) { - total += records[i].get(measure); - } - - return (total / length) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('min', function(records, measure) { - var data = [], - length = records.length, - i; - - for (i = 0; i < length; i++) { - data.push(records[i].get(measure)); - } - - return Math.min.apply(this, data) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('max', function(records, measure) { - var data = [], - length = records.length, - i; - - for (i = 0; i < length; i++) { - data.push(records[i].get(measure)); - } - - return Math.max.apply(this, data) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('count', function(records, measure) { - return records.length; -});/** - * @class Ext.grid.GridView - * @extends Ext.util.Observable - *

    This class encapsulates the user interface of an {@link Ext.grid.GridPanel}. - * Methods of this class may be used to access user interface elements to enable - * special display effects. Do not change the DOM structure of the user interface.

    - *

    This class does not provide ways to manipulate the underlying data. The data - * model of a Grid is held in an {@link Ext.data.Store}.

    - * @constructor - * @param {Object} config - */ -Ext.grid.GridView = Ext.extend(Ext.util.Observable, { - /** - * Override this function to apply custom CSS classes to rows during rendering. You can also supply custom - * parameters to the row template for the current row to customize how it is rendered using the rowParams - * parameter. This function should return the CSS class name (or empty string '' for none) that will be added - * to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string - * (e.g., 'my-class another-class'). Example usage: -
    
    -viewConfig: {
    -    forceFit: true,
    -    showPreview: true, // custom property
    -    enableRowBody: true, // required to create a second, full-width row to show expanded Record data
    -    getRowClass: function(record, rowIndex, rp, ds){ // rp = rowParams
    -        if(this.showPreview){
    -            rp.body = '<p>'+record.data.excerpt+'</p>';
    -            return 'x-grid3-row-expanded';
    -        }
    -        return 'x-grid3-row-collapsed';
    -    }
    -},
    -    
    - * @param {Record} record The {@link Ext.data.Record} corresponding to the current row. - * @param {Number} index The row index. - * @param {Object} rowParams A config object that is passed to the row template during rendering that allows - * customization of various aspects of a grid row. - *

    If {@link #enableRowBody} is configured true, then the following properties may be set - * by this function, and will be used to render a full-width expansion row below each grid row:

    - *
      - *
    • body : String
      An HTML fragment to be used as the expansion row's body content (defaults to '').
    • - *
    • bodyStyle : String
      A CSS style specification that will be applied to the expansion row's <tr> element. (defaults to '').
    • - *
    - * The following property will be passed in, and may be appended to: - *
      - *
    • tstyle : String
      A CSS style specification that willl be applied to the <table> element which encapsulates - * both the standard grid row, and any expansion row.
    • - *
    - * @param {Store} store The {@link Ext.data.Store} this grid is bound to - * @method getRowClass - * @return {String} a CSS class name to add to the row. - */ - - /** - * @cfg {Boolean} enableRowBody True to add a second TR element per row that can be used to provide a row body - * that spans beneath the data row. Use the {@link #getRowClass} method's rowParams config to customize the row body. - */ - - /** - * @cfg {String} emptyText Default text (html tags are accepted) to display in the grid body when no rows - * are available (defaults to ''). This value will be used to update the {@link #mainBody}: -
    
    -    this.mainBody.update('<div class="x-grid-empty">' + this.emptyText + '</div>');
    -    
    - */ - - /** - * @cfg {Boolean} headersDisabled True to disable the grid column headers (defaults to false). - * Use the {@link Ext.grid.ColumnModel ColumnModel} {@link Ext.grid.ColumnModel#menuDisabled menuDisabled} - * config to disable the menu for individual columns. While this config is true the - * following will be disabled:
      - *
    • clicking on header to sort
    • - *
    • the trigger to reveal the menu.
    • - *
    - */ - - /** - *

    A customized implementation of a {@link Ext.dd.DragZone DragZone} which provides default implementations - * of the template methods of DragZone to enable dragging of the selected rows of a GridPanel. - * See {@link Ext.grid.GridDragZone} for details.

    - *

    This will only be present:

      - *
    • if the owning GridPanel was configured with {@link Ext.grid.GridPanel#enableDragDrop enableDragDrop}: true.
    • - *
    • after the owning GridPanel has been rendered.
    • - *
    - * @property dragZone - * @type {Ext.grid.GridDragZone} - */ - - /** - * @cfg {Boolean} deferEmptyText True to defer {@link #emptyText} being applied until the store's - * first load (defaults to true). - */ - deferEmptyText : true, - - /** - * @cfg {Number} scrollOffset The amount of space to reserve for the vertical scrollbar - * (defaults to undefined). If an explicit value isn't specified, this will be automatically - * calculated. - */ - scrollOffset : undefined, - - /** - * @cfg {Boolean} autoFill - * Defaults to false. Specify true to have the column widths re-proportioned - * when the grid is initially rendered. The - * {@link Ext.grid.Column#width initially configured width}
    of each column will be adjusted - * to fit the grid width and prevent horizontal scrolling. If columns are later resized (manually - * or programmatically), the other columns in the grid will not be resized to fit the grid width. - * See {@link #forceFit} also. - */ - autoFill : false, - - /** - * @cfg {Boolean} forceFit - *

    Defaults to false. Specify true to have the column widths re-proportioned - * at all times.

    - *

    The {@link Ext.grid.Column#width initially configured width} of each - * column will be adjusted to fit the grid width and prevent horizontal scrolling. If columns are - * later resized (manually or programmatically), the other columns in the grid will be resized - * to fit the grid width.

    - *

    Columns which are configured with fixed: true are omitted from being resized.

    - *

    See {@link #autoFill}.

    - */ - forceFit : false, - - /** - * @cfg {Array} sortClasses The CSS classes applied to a header when it is sorted. (defaults to ['sort-asc', 'sort-desc']) - */ - sortClasses : ['sort-asc', 'sort-desc'], - - /** - * @cfg {String} sortAscText The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending') - */ - sortAscText : 'Sort Ascending', - - /** - * @cfg {String} sortDescText The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending') - */ - sortDescText : 'Sort Descending', - - /** - * @cfg {String} columnsText The text displayed in the 'Columns' menu item (defaults to 'Columns') - */ - columnsText : 'Columns', - - /** - * @cfg {String} selectedRowClass The CSS class applied to a selected row (defaults to 'x-grid3-row-selected'). An - * example overriding the default styling: -
    
    -    .x-grid3-row-selected {background-color: yellow;}
    -    
    - * Note that this only controls the row, and will not do anything for the text inside it. To style inner - * facets (like text) use something like: -
    
    -    .x-grid3-row-selected .x-grid3-cell-inner {
    -        color: #FFCC00;
    -    }
    -    
    - * @type String - */ - selectedRowClass : 'x-grid3-row-selected', - - // private - borderWidth : 2, - tdClass : 'x-grid3-cell', - hdCls : 'x-grid3-hd', - - - /** - * @cfg {Boolean} markDirty True to show the dirty cell indicator when a cell has been modified. Defaults to true. - */ - markDirty : true, - - /** - * @cfg {Number} cellSelectorDepth The number of levels to search for cells in event delegation (defaults to 4) - */ - cellSelectorDepth : 4, - - /** - * @cfg {Number} rowSelectorDepth The number of levels to search for rows in event delegation (defaults to 10) - */ - rowSelectorDepth : 10, - - /** - * @cfg {Number} rowBodySelectorDepth The number of levels to search for row bodies in event delegation (defaults to 10) - */ - rowBodySelectorDepth : 10, - - /** - * @cfg {String} cellSelector The selector used to find cells internally (defaults to 'td.x-grid3-cell') - */ - cellSelector : 'td.x-grid3-cell', - - /** - * @cfg {String} rowSelector The selector used to find rows internally (defaults to 'div.x-grid3-row') - */ - rowSelector : 'div.x-grid3-row', - - /** - * @cfg {String} rowBodySelector The selector used to find row bodies internally (defaults to 'div.x-grid3-row') - */ - rowBodySelector : 'div.x-grid3-row-body', - - // private - firstRowCls: 'x-grid3-row-first', - lastRowCls: 'x-grid3-row-last', - rowClsRe: /(?:^|\s+)x-grid3-row-(first|last|alt)(?:\s+|$)/g, - - /** - * @cfg {String} headerMenuOpenCls The CSS class to add to the header cell when its menu is visible. Defaults to 'x-grid3-hd-menu-open' - */ - headerMenuOpenCls: 'x-grid3-hd-menu-open', - - /** - * @cfg {String} rowOverCls The CSS class added to each row when it is hovered over. Defaults to 'x-grid3-row-over' - */ - rowOverCls: 'x-grid3-row-over', - - constructor : function(config) { - Ext.apply(this, config); - - // These events are only used internally by the grid components - this.addEvents( - /** - * @event beforerowremoved - * Internal UI Event. Fired before a row is removed. - * @param {Ext.grid.GridView} view - * @param {Number} rowIndex The index of the row to be removed. - * @param {Ext.data.Record} record The Record to be removed - */ - 'beforerowremoved', - - /** - * @event beforerowsinserted - * Internal UI Event. Fired before rows are inserted. - * @param {Ext.grid.GridView} view - * @param {Number} firstRow The index of the first row to be inserted. - * @param {Number} lastRow The index of the last row to be inserted. - */ - 'beforerowsinserted', - - /** - * @event beforerefresh - * Internal UI Event. Fired before the view is refreshed. - * @param {Ext.grid.GridView} view - */ - 'beforerefresh', - - /** - * @event rowremoved - * Internal UI Event. Fired after a row is removed. - * @param {Ext.grid.GridView} view - * @param {Number} rowIndex The index of the row that was removed. - * @param {Ext.data.Record} record The Record that was removed - */ - 'rowremoved', - - /** - * @event rowsinserted - * Internal UI Event. Fired after rows are inserted. - * @param {Ext.grid.GridView} view - * @param {Number} firstRow The index of the first inserted. - * @param {Number} lastRow The index of the last row inserted. - */ - 'rowsinserted', - - /** - * @event rowupdated - * Internal UI Event. Fired after a row has been updated. - * @param {Ext.grid.GridView} view - * @param {Number} firstRow The index of the row updated. - * @param {Ext.data.record} record The Record backing the row updated. - */ - 'rowupdated', - - /** - * @event refresh - * Internal UI Event. Fired after the GridView's body has been refreshed. - * @param {Ext.grid.GridView} view - */ - 'refresh' - ); - - Ext.grid.GridView.superclass.constructor.call(this); - }, - - /* -------------------------------- UI Specific ----------------------------- */ - - /** - * The master template to use when rendering the GridView. Has a default template - * @property Ext.Template - * @type masterTpl - */ - masterTpl: new Ext.Template( - '
    ', - '
    ', - '
    ', - '
    ', - '
    {header}
    ', - '
    ', - '
    ', - '
    ', - '
    ', - '
    {body}
    ', - '', - '
    ', - '
    ', - '
     
    ', - '
     
    ', - '
    ' - ), - - /** - * The template to use when rendering headers. Has a default template - * @property headerTpl - * @type Ext.Template - */ - headerTpl: new Ext.Template( - '', - '', - '{cells}', - '', - '
    ' - ), - - /** - * The template to use when rendering the body. Has a default template - * @property bodyTpl - * @type Ext.Template - */ - bodyTpl: new Ext.Template('{rows}'), - - /** - * The template to use to render each cell. Has a default template - * @property cellTpl - * @type Ext.Template - */ - cellTpl: new Ext.Template( - '', - '
    {value}
    ', - '' - ), - - /** - * @private - * Provides default templates if they are not given for this particular instance. Most of the templates are defined on - * the prototype, the ones defined inside this function are done so because they are based on Grid or GridView configuration - */ - initTemplates : function() { - var templates = this.templates || {}, - template, name, - - headerCellTpl = new Ext.Template( - '', - '
    ', - this.grid.enableHdMenu ? '' : '', - '{value}', - '', - '
    ', - '' - ), - - rowBodyText = [ - '', - '', - '
    {body}
    ', - '', - '' - ].join(""), - - innerText = [ - '', - '', - '{cells}', - this.enableRowBody ? rowBodyText : '', - '', - '
    ' - ].join(""); - - Ext.applyIf(templates, { - hcell : headerCellTpl, - cell : this.cellTpl, - body : this.bodyTpl, - header : this.headerTpl, - master : this.masterTpl, - row : new Ext.Template('
    ' + innerText + '
    '), - rowInner: new Ext.Template(innerText) - }); - - for (name in templates) { - template = templates[name]; - - if (template && Ext.isFunction(template.compile) && !template.compiled) { - template.disableFormats = true; - template.compile(); - } - } - - this.templates = templates; - this.colRe = new RegExp('x-grid3-td-([^\\s]+)', ''); - }, - - /** - * @private - * Each GridView has its own private flyweight, accessed through this method - */ - fly : function(el) { - if (!this._flyweight) { - this._flyweight = new Ext.Element.Flyweight(document.body); - } - this._flyweight.dom = el; - return this._flyweight; - }, - - // private - getEditorParent : function() { - return this.scroller.dom; - }, - - /** - * @private - * Finds and stores references to important elements - */ - initElements : function() { - var Element = Ext.Element, - el = Ext.get(this.grid.getGridEl().dom.firstChild), - mainWrap = new Element(el.child('div.x-grid3-viewport')), - mainHd = new Element(mainWrap.child('div.x-grid3-header')), - scroller = new Element(mainWrap.child('div.x-grid3-scroller')); - - if (this.grid.hideHeaders) { - mainHd.setDisplayed(false); - } - - if (this.forceFit) { - scroller.setStyle('overflow-x', 'hidden'); - } - - /** - * Read-only. The GridView's body Element which encapsulates all rows in the Grid. - * This {@link Ext.Element Element} is only available after the GridPanel has been rendered. - * @type Ext.Element - * @property mainBody - */ - - Ext.apply(this, { - el : el, - mainWrap: mainWrap, - scroller: scroller, - mainHd : mainHd, - innerHd : mainHd.child('div.x-grid3-header-inner').dom, - mainBody: new Element(Element.fly(scroller).child('div.x-grid3-body')), - focusEl : new Element(Element.fly(scroller).child('a')), - - resizeMarker: new Element(el.child('div.x-grid3-resize-marker')), - resizeProxy : new Element(el.child('div.x-grid3-resize-proxy')) - }); - - this.focusEl.swallowEvent('click', true); - }, - - // private - getRows : function() { - return this.hasRows() ? this.mainBody.dom.childNodes : []; - }, - - // finder methods, used with delegation - - // private - findCell : function(el) { - if (!el) { - return false; - } - return this.fly(el).findParent(this.cellSelector, this.cellSelectorDepth); - }, - - /** - *

    Return the index of the grid column which contains the passed HTMLElement.

    - * See also {@link #findRowIndex} - * @param {HTMLElement} el The target element - * @return {Number} The column index, or false if the target element is not within a row of this GridView. - */ - findCellIndex : function(el, requiredCls) { - var cell = this.findCell(el), - hasCls; - - if (cell) { - hasCls = this.fly(cell).hasClass(requiredCls); - if (!requiredCls || hasCls) { - return this.getCellIndex(cell); - } - } - return false; - }, - - // private - getCellIndex : function(el) { - if (el) { - var match = el.className.match(this.colRe); - - if (match && match[1]) { - return this.cm.getIndexById(match[1]); - } - } - return false; - }, - - // private - findHeaderCell : function(el) { - var cell = this.findCell(el); - return cell && this.fly(cell).hasClass(this.hdCls) ? cell : null; - }, - - // private - findHeaderIndex : function(el){ - return this.findCellIndex(el, this.hdCls); - }, - - /** - * Return the HtmlElement representing the grid row which contains the passed element. - * @param {HTMLElement} el The target HTMLElement - * @return {HTMLElement} The row element, or null if the target element is not within a row of this GridView. - */ - findRow : function(el) { - if (!el) { - return false; - } - return this.fly(el).findParent(this.rowSelector, this.rowSelectorDepth); - }, - - /** - * Return the index of the grid row which contains the passed HTMLElement. - * See also {@link #findCellIndex} - * @param {HTMLElement} el The target HTMLElement - * @return {Number} The row index, or false if the target element is not within a row of this GridView. - */ - findRowIndex : function(el) { - var row = this.findRow(el); - return row ? row.rowIndex : false; - }, - - /** - * Return the HtmlElement representing the grid row body which contains the passed element. - * @param {HTMLElement} el The target HTMLElement - * @return {HTMLElement} The row body element, or null if the target element is not within a row body of this GridView. - */ - findRowBody : function(el) { - if (!el) { - return false; - } - - return this.fly(el).findParent(this.rowBodySelector, this.rowBodySelectorDepth); - }, - - // getter methods for fetching elements dynamically in the grid - - /** - * Return the <div> HtmlElement which represents a Grid row for the specified index. - * @param {Number} index The row index - * @return {HtmlElement} The div element. - */ - getRow : function(row) { - return this.getRows()[row]; - }, - - /** - * Returns the grid's <td> HtmlElement at the specified coordinates. - * @param {Number} row The row index in which to find the cell. - * @param {Number} col The column index of the cell. - * @return {HtmlElement} The td at the specified coordinates. - */ - getCell : function(row, col) { - return Ext.fly(this.getRow(row)).query(this.cellSelector)[col]; - }, - - /** - * Return the <td> HtmlElement which represents the Grid's header cell for the specified column index. - * @param {Number} index The column index - * @return {HtmlElement} The td element. - */ - getHeaderCell : function(index) { - return this.mainHd.dom.getElementsByTagName('td')[index]; - }, - - // manipulating elements - - // private - use getRowClass to apply custom row classes - addRowClass : function(rowId, cls) { - var row = this.getRow(rowId); - if (row) { - this.fly(row).addClass(cls); - } - }, - - // private - removeRowClass : function(row, cls) { - var r = this.getRow(row); - if(r){ - this.fly(r).removeClass(cls); - } - }, - - // private - removeRow : function(row) { - Ext.removeNode(this.getRow(row)); - this.syncFocusEl(row); - }, - - // private - removeRows : function(firstRow, lastRow) { - var bd = this.mainBody.dom, - rowIndex; - - for (rowIndex = firstRow; rowIndex <= lastRow; rowIndex++){ - Ext.removeNode(bd.childNodes[firstRow]); - } - - this.syncFocusEl(firstRow); - }, - - /* ----------------------------------- Scrolling functions -------------------------------------------*/ - - // private - getScrollState : function() { - var sb = this.scroller.dom; - - return { - left: sb.scrollLeft, - top : sb.scrollTop - }; - }, - - // private - restoreScroll : function(state) { - var sb = this.scroller.dom; - sb.scrollLeft = state.left; - sb.scrollTop = state.top; - }, - - /** - * Scrolls the grid to the top - */ - scrollToTop : function() { - var dom = this.scroller.dom; - - dom.scrollTop = 0; - dom.scrollLeft = 0; - }, - - // private - syncScroll : function() { - this.syncHeaderScroll(); - var mb = this.scroller.dom; - this.grid.fireEvent('bodyscroll', mb.scrollLeft, mb.scrollTop); - }, - - // private - syncHeaderScroll : function() { - var innerHd = this.innerHd, - scrollLeft = this.scroller.dom.scrollLeft; - - innerHd.scrollLeft = scrollLeft; - innerHd.scrollLeft = scrollLeft; // second time for IE (1/2 time first fails, other browsers ignore) - }, - - /** - * @private - * Ensures the given column has the given icon class - */ - updateSortIcon : function(col, dir) { - var sortClasses = this.sortClasses, - sortClass = sortClasses[dir == "DESC" ? 1 : 0], - headers = this.mainHd.select('td').removeClass(sortClasses); - - headers.item(col).addClass(sortClass); - }, - - /** - * @private - * Updates the size of every column and cell in the grid - */ - updateAllColumnWidths : function() { - var totalWidth = this.getTotalWidth(), - colCount = this.cm.getColumnCount(), - rows = this.getRows(), - rowCount = rows.length, - widths = [], - row, rowFirstChild, trow, i, j; - - for (i = 0; i < colCount; i++) { - widths[i] = this.getColumnWidth(i); - this.getHeaderCell(i).style.width = widths[i]; - } - - this.updateHeaderWidth(); - - for (i = 0; i < rowCount; i++) { - row = rows[i]; - row.style.width = totalWidth; - rowFirstChild = row.firstChild; - - if (rowFirstChild) { - rowFirstChild.style.width = totalWidth; - trow = rowFirstChild.rows[0]; - - for (j = 0; j < colCount; j++) { - trow.childNodes[j].style.width = widths[j]; - } - } - } - - this.onAllColumnWidthsUpdated(widths, totalWidth); - }, - - /** - * @private - * Called after a column's width has been updated, this resizes all of the cells for that column in each row - * @param {Number} column The column index - */ - updateColumnWidth : function(column, width) { - var columnWidth = this.getColumnWidth(column), - totalWidth = this.getTotalWidth(), - headerCell = this.getHeaderCell(column), - nodes = this.getRows(), - nodeCount = nodes.length, - row, i, firstChild; - - this.updateHeaderWidth(); - headerCell.style.width = columnWidth; - - for (i = 0; i < nodeCount; i++) { - row = nodes[i]; - firstChild = row.firstChild; - - row.style.width = totalWidth; - if (firstChild) { - firstChild.style.width = totalWidth; - firstChild.rows[0].childNodes[column].style.width = columnWidth; - } - } - - this.onColumnWidthUpdated(column, columnWidth, totalWidth); - }, - - /** - * @private - * Sets the hidden status of a given column. - * @param {Number} col The column index - * @param {Boolean} hidden True to make the column hidden - */ - updateColumnHidden : function(col, hidden) { - var totalWidth = this.getTotalWidth(), - display = hidden ? 'none' : '', - headerCell = this.getHeaderCell(col), - nodes = this.getRows(), - nodeCount = nodes.length, - row, rowFirstChild, i; - - this.updateHeaderWidth(); - headerCell.style.display = display; - - for (i = 0; i < nodeCount; i++) { - row = nodes[i]; - row.style.width = totalWidth; - rowFirstChild = row.firstChild; - - if (rowFirstChild) { - rowFirstChild.style.width = totalWidth; - rowFirstChild.rows[0].childNodes[col].style.display = display; - } - } - - this.onColumnHiddenUpdated(col, hidden, totalWidth); - delete this.lastViewWidth; //recalc - this.layout(); - }, - - /** - * @private - * Renders all of the rows to a string buffer and returns the string. This is called internally - * by renderRows and performs the actual string building for the rows - it does not inject HTML into the DOM. - * @param {Array} columns The column data acquired from getColumnData. - * @param {Array} records The array of records to render - * @param {Ext.data.Store} store The store to render the rows from - * @param {Number} startRow The index of the first row being rendered. Sometimes we only render a subset of - * the rows so this is used to maintain logic for striping etc - * @param {Number} colCount The total number of columns in the column model - * @param {Boolean} stripe True to stripe the rows - * @return {String} A string containing the HTML for the rendered rows - */ - doRender : function(columns, records, store, startRow, colCount, stripe) { - var templates = this.templates, - cellTemplate = templates.cell, - rowTemplate = templates.row, - last = colCount - 1, - tstyle = 'width:' + this.getTotalWidth() + ';', - // buffers - rowBuffer = [], - colBuffer = [], - rowParams = {tstyle: tstyle}, - meta = {}, - len = records.length, - alt, - column, - record, i, j, rowIndex; - - //build up each row's HTML - for (j = 0; j < len; j++) { - record = records[j]; - colBuffer = []; - - rowIndex = j + startRow; - - //build up each column's HTML - for (i = 0; i < colCount; i++) { - column = columns[i]; - - meta.id = column.id; - meta.css = i === 0 ? 'x-grid3-cell-first ' : (i == last ? 'x-grid3-cell-last ' : ''); - meta.attr = meta.cellAttr = ''; - meta.style = column.style; - meta.value = column.renderer.call(column.scope, record.data[column.name], meta, record, rowIndex, i, store); - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (this.markDirty && record.dirty && typeof record.modified[column.name] != 'undefined') { - meta.css += ' x-grid3-dirty-cell'; - } - - colBuffer[colBuffer.length] = cellTemplate.apply(meta); - } - - alt = []; - //set up row striping and row dirtiness CSS classes - if (stripe && ((rowIndex + 1) % 2 === 0)) { - alt[0] = 'x-grid3-row-alt'; - } - - if (record.dirty) { - alt[1] = ' x-grid3-dirty-row'; - } - - rowParams.cols = colCount; - - if (this.getRowClass) { - alt[2] = this.getRowClass(record, rowIndex, rowParams, store); - } - - rowParams.alt = alt.join(' '); - rowParams.cells = colBuffer.join(''); - - rowBuffer[rowBuffer.length] = rowTemplate.apply(rowParams); - } - - return rowBuffer.join(''); - }, - - /** - * @private - * Adds CSS classes and rowIndex to each row - * @param {Number} startRow The row to start from (defaults to 0) - */ - processRows : function(startRow, skipStripe) { - if (!this.ds || this.ds.getCount() < 1) { - return; - } - - var rows = this.getRows(), - length = rows.length, - row, i; - - skipStripe = skipStripe || !this.grid.stripeRows; - startRow = startRow || 0; - - for (i = 0; i < length; i++) { - row = rows[i]; - if (row) { - row.rowIndex = i; - if (!skipStripe) { - row.className = row.className.replace(this.rowClsRe, ' '); - if ((i + 1) % 2 === 0){ - row.className += ' x-grid3-row-alt'; - } - } - } - } - - // add first/last-row classes - if (startRow === 0) { - Ext.fly(rows[0]).addClass(this.firstRowCls); - } - - Ext.fly(rows[length - 1]).addClass(this.lastRowCls); - }, - - /** - * @private - */ - afterRender : function() { - if (!this.ds || !this.cm) { - return; - } - - this.mainBody.dom.innerHTML = this.renderBody() || ' '; - this.processRows(0, true); - - if (this.deferEmptyText !== true) { - this.applyEmptyText(); - } - - this.grid.fireEvent('viewready', this.grid); - }, - - /** - * @private - * This is always intended to be called after renderUI. Sets up listeners on the UI elements - * and sets up options like column menus, moving and resizing. - */ - afterRenderUI: function() { - var grid = this.grid; - - this.initElements(); - - // get mousedowns early - Ext.fly(this.innerHd).on('click', this.handleHdDown, this); - - this.mainHd.on({ - scope : this, - mouseover: this.handleHdOver, - mouseout : this.handleHdOut, - mousemove: this.handleHdMove - }); - - this.scroller.on('scroll', this.syncScroll, this); - - if (grid.enableColumnResize !== false) { - this.splitZone = new Ext.grid.GridView.SplitDragZone(grid, this.mainHd.dom); - } - - if (grid.enableColumnMove) { - this.columnDrag = new Ext.grid.GridView.ColumnDragZone(grid, this.innerHd); - this.columnDrop = new Ext.grid.HeaderDropZone(grid, this.mainHd.dom); - } - - if (grid.enableHdMenu !== false) { - this.hmenu = new Ext.menu.Menu({id: grid.id + '-hctx'}); - this.hmenu.add( - {itemId:'asc', text: this.sortAscText, cls: 'xg-hmenu-sort-asc'}, - {itemId:'desc', text: this.sortDescText, cls: 'xg-hmenu-sort-desc'} - ); - - if (grid.enableColumnHide !== false) { - this.colMenu = new Ext.menu.Menu({id:grid.id + '-hcols-menu'}); - this.colMenu.on({ - scope : this, - beforeshow: this.beforeColMenuShow, - itemclick : this.handleHdMenuClick - }); - this.hmenu.add('-', { - itemId:'columns', - hideOnClick: false, - text: this.columnsText, - menu: this.colMenu, - iconCls: 'x-cols-icon' - }); - } - - this.hmenu.on('itemclick', this.handleHdMenuClick, this); - } - - if (grid.trackMouseOver) { - this.mainBody.on({ - scope : this, - mouseover: this.onRowOver, - mouseout : this.onRowOut - }); - } - - if (grid.enableDragDrop || grid.enableDrag) { - this.dragZone = new Ext.grid.GridDragZone(grid, { - ddGroup : grid.ddGroup || 'GridDD' - }); - } - - this.updateHeaderSortState(); - }, - - /** - * @private - * Renders each of the UI elements in turn. This is called internally, once, by this.render. It does not - * render rows from the store, just the surrounding UI elements. - */ - renderUI : function() { - var templates = this.templates; - - return templates.master.apply({ - body : templates.body.apply({rows:' '}), - header: this.renderHeaders(), - ostyle: 'width:' + this.getOffsetWidth() + ';', - bstyle: 'width:' + this.getTotalWidth() + ';' - }); - }, - - // private - processEvent : function(name, e) { - var target = e.getTarget(), - grid = this.grid, - header = this.findHeaderIndex(target), - row, cell, col, body; - - grid.fireEvent(name, e); - - if (header !== false) { - grid.fireEvent('header' + name, grid, header, e); - } else { - row = this.findRowIndex(target); - -// Grid's value-added events must bubble correctly to allow cancelling via returning false: cell->column->row -// We must allow a return of false at any of these levels to cancel the event processing. -// Particularly allowing rowmousedown to be cancellable by prior handlers which need to prevent selection. - if (row !== false) { - cell = this.findCellIndex(target); - if (cell !== false) { - col = grid.colModel.getColumnAt(cell); - if (grid.fireEvent('cell' + name, grid, row, cell, e) !== false) { - if (!col || (col.processEvent && (col.processEvent(name, e, grid, row, cell) !== false))) { - grid.fireEvent('row' + name, grid, row, e); - } - } - } else { - if (grid.fireEvent('row' + name, grid, row, e) !== false) { - (body = this.findRowBody(target)) && grid.fireEvent('rowbody' + name, grid, row, e); - } - } - } else { - grid.fireEvent('container' + name, grid, e); - } - } - }, - - /** - * @private - * Sizes the grid's header and body elements - */ - layout : function(initial) { - if (!this.mainBody) { - return; // not rendered - } - - var grid = this.grid, - gridEl = grid.getGridEl(), - gridSize = gridEl.getSize(true), - gridWidth = gridSize.width, - gridHeight = gridSize.height, - scroller = this.scroller, - scrollStyle, headerHeight, scrollHeight; - - if (gridWidth < 20 || gridHeight < 20) { - return; - } - - if (grid.autoHeight) { - scrollStyle = scroller.dom.style; - scrollStyle.overflow = 'visible'; - - if (Ext.isWebKit) { - scrollStyle.position = 'static'; - } - } else { - this.el.setSize(gridWidth, gridHeight); - - headerHeight = this.mainHd.getHeight(); - scrollHeight = gridHeight - headerHeight; - - scroller.setSize(gridWidth, scrollHeight); - - if (this.innerHd) { - this.innerHd.style.width = (gridWidth) + "px"; - } - } - - if (this.forceFit || (initial === true && this.autoFill)) { - if (this.lastViewWidth != gridWidth) { - this.fitColumns(false, false); - this.lastViewWidth = gridWidth; - } - } else { - this.autoExpand(); - this.syncHeaderScroll(); - } - - this.onLayout(gridWidth, scrollHeight); - }, - - // template functions for subclasses and plugins - // these functions include precalculated values - onLayout : function(vw, vh) { - // do nothing - }, - - onColumnWidthUpdated : function(col, w, tw) { - //template method - }, - - onAllColumnWidthsUpdated : function(ws, tw) { - //template method - }, - - onColumnHiddenUpdated : function(col, hidden, tw) { - // template method - }, - - updateColumnText : function(col, text) { - // template method - }, - - afterMove : function(colIndex) { - // template method - }, - - /* ----------------------------------- Core Specific -------------------------------------------*/ - // private - init : function(grid) { - this.grid = grid; - - this.initTemplates(); - this.initData(grid.store, grid.colModel); - this.initUI(grid); - }, - - // private - getColumnId : function(index){ - return this.cm.getColumnId(index); - }, - - // private - getOffsetWidth : function() { - return (this.cm.getTotalWidth() + this.getScrollOffset()) + 'px'; - }, - - // private - getScrollOffset: function() { - return Ext.num(this.scrollOffset, Ext.getScrollBarWidth()); - }, - - /** - * @private - * Renders the header row using the 'header' template. Does not inject the HTML into the DOM, just - * returns a string. - * @return {String} Rendered header row - */ - renderHeaders : function() { - var colModel = this.cm, - templates = this.templates, - headerTpl = templates.hcell, - properties = {}, - colCount = colModel.getColumnCount(), - last = colCount - 1, - cells = [], - i, cssCls; - - for (i = 0; i < colCount; i++) { - if (i == 0) { - cssCls = 'x-grid3-cell-first '; - } else { - cssCls = i == last ? 'x-grid3-cell-last ' : ''; - } - - properties = { - id : colModel.getColumnId(i), - value : colModel.getColumnHeader(i) || '', - style : this.getColumnStyle(i, true), - css : cssCls, - tooltip: this.getColumnTooltip(i) - }; - - if (colModel.config[i].align == 'right') { - properties.istyle = 'padding-right: 16px;'; - } else { - delete properties.istyle; - } - - cells[i] = headerTpl.apply(properties); - } - - return templates.header.apply({ - cells : cells.join(""), - tstyle: String.format("width: {0};", this.getTotalWidth()) - }); - }, - - /** - * @private - */ - getColumnTooltip : function(i) { - var tooltip = this.cm.getColumnTooltip(i); - if (tooltip) { - if (Ext.QuickTips.isEnabled()) { - return 'ext:qtip="' + tooltip + '"'; - } else { - return 'title="' + tooltip + '"'; - } - } - - return ''; - }, - - // private - beforeUpdate : function() { - this.grid.stopEditing(true); - }, - - /** - * @private - * Re-renders the headers and ensures they are sized correctly - */ - updateHeaders : function() { - this.innerHd.firstChild.innerHTML = this.renderHeaders(); - - this.updateHeaderWidth(false); - }, - - /** - * @private - * Ensures that the header is sized to the total width available to it - * @param {Boolean} updateMain True to update the mainBody's width also (defaults to true) - */ - updateHeaderWidth: function(updateMain) { - var innerHdChild = this.innerHd.firstChild, - totalWidth = this.getTotalWidth(); - - innerHdChild.style.width = this.getOffsetWidth(); - innerHdChild.firstChild.style.width = totalWidth; - - if (updateMain !== false) { - this.mainBody.dom.style.width = totalWidth; - } - }, - - /** - * Focuses the specified row. - * @param {Number} row The row index - */ - focusRow : function(row) { - this.focusCell(row, 0, false); - }, - - /** - * Focuses the specified cell. - * @param {Number} row The row index - * @param {Number} col The column index - */ - focusCell : function(row, col, hscroll) { - this.syncFocusEl(this.ensureVisible(row, col, hscroll)); - - var focusEl = this.focusEl; - - if (Ext.isGecko) { - focusEl.focus(); - } else { - focusEl.focus.defer(1, focusEl); - } - }, - - /** - * @private - * Finds the Elements corresponding to the given row and column indexes - */ - resolveCell : function(row, col, hscroll) { - if (!Ext.isNumber(row)) { - row = row.rowIndex; - } - - if (!this.ds) { - return null; - } - - if (row < 0 || row >= this.ds.getCount()) { - return null; - } - col = (col !== undefined ? col : 0); - - var rowEl = this.getRow(row), - colModel = this.cm, - colCount = colModel.getColumnCount(), - cellEl; - - if (!(hscroll === false && col === 0)) { - while (col < colCount && colModel.isHidden(col)) { - col++; - } - - cellEl = this.getCell(row, col); - } - - return {row: rowEl, cell: cellEl}; - }, - - /** - * @private - * Returns the XY co-ordinates of a given row/cell resolution (see {@link #resolveCell}) - * @return {Array} X and Y coords - */ - getResolvedXY : function(resolved) { - if (!resolved) { - return null; - } - - var cell = resolved.cell, - row = resolved.row; - - if (cell) { - return Ext.fly(cell).getXY(); - } else { - return [this.el.getX(), Ext.fly(row).getY()]; - } - }, - - /** - * @private - * Moves the focus element to the x and y co-ordinates of the given row and column - */ - syncFocusEl : function(row, col, hscroll) { - var xy = row; - - if (!Ext.isArray(xy)) { - row = Math.min(row, Math.max(0, this.getRows().length-1)); - - if (isNaN(row)) { - return; - } - - xy = this.getResolvedXY(this.resolveCell(row, col, hscroll)); - } - - this.focusEl.setXY(xy || this.scroller.getXY()); - }, - - /** - * @private - */ - ensureVisible : function(row, col, hscroll) { - var resolved = this.resolveCell(row, col, hscroll); - - if (!resolved || !resolved.row) { - return null; - } - - var rowEl = resolved.row, - cellEl = resolved.cell, - c = this.scroller.dom, - p = rowEl, - ctop = 0, - stop = this.el.dom; - - while (p && p != stop) { - ctop += p.offsetTop; - p = p.offsetParent; - } - - ctop -= this.mainHd.dom.offsetHeight; - stop = parseInt(c.scrollTop, 10); - - var cbot = ctop + rowEl.offsetHeight, - ch = c.clientHeight, - sbot = stop + ch; - - - if (ctop < stop) { - c.scrollTop = ctop; - } else if(cbot > sbot) { - c.scrollTop = cbot-ch; - } - - if (hscroll !== false) { - var cleft = parseInt(cellEl.offsetLeft, 10), - cright = cleft + cellEl.offsetWidth, - sleft = parseInt(c.scrollLeft, 10), - sright = sleft + c.clientWidth; - - if (cleft < sleft) { - c.scrollLeft = cleft; - } else if(cright > sright) { - c.scrollLeft = cright-c.clientWidth; - } - } - - return this.getResolvedXY(resolved); - }, - - // private - insertRows : function(dm, firstRow, lastRow, isUpdate) { - var last = dm.getCount() - 1; - if( !isUpdate && firstRow === 0 && lastRow >= last) { - this.fireEvent('beforerowsinserted', this, firstRow, lastRow); - this.refresh(); - this.fireEvent('rowsinserted', this, firstRow, lastRow); - } else { - if (!isUpdate) { - this.fireEvent('beforerowsinserted', this, firstRow, lastRow); - } - var html = this.renderRows(firstRow, lastRow), - before = this.getRow(firstRow); - if (before) { - if(firstRow === 0){ - Ext.fly(this.getRow(0)).removeClass(this.firstRowCls); - } - Ext.DomHelper.insertHtml('beforeBegin', before, html); - } else { - var r = this.getRow(last - 1); - if(r){ - Ext.fly(r).removeClass(this.lastRowCls); - } - Ext.DomHelper.insertHtml('beforeEnd', this.mainBody.dom, html); - } - if (!isUpdate) { - this.processRows(firstRow); - this.fireEvent('rowsinserted', this, firstRow, lastRow); - } else if (firstRow === 0 || firstRow >= last) { - //ensure first/last row is kept after an update. - Ext.fly(this.getRow(firstRow)).addClass(firstRow === 0 ? this.firstRowCls : this.lastRowCls); - } - } - this.syncFocusEl(firstRow); - }, - - /** - * @private - * DEPRECATED - this doesn't appear to be called anywhere in the library, remove in 4.0. - */ - deleteRows : function(dm, firstRow, lastRow) { - if (dm.getRowCount() < 1) { - this.refresh(); - } else { - this.fireEvent('beforerowsdeleted', this, firstRow, lastRow); - - this.removeRows(firstRow, lastRow); - - this.processRows(firstRow); - this.fireEvent('rowsdeleted', this, firstRow, lastRow); - } - }, - - /** - * @private - * Builds a CSS string for the given column index - * @param {Number} colIndex The column index - * @param {Boolean} isHeader True if getting the style for the column's header - * @return {String} The CSS string - */ - getColumnStyle : function(colIndex, isHeader) { - var colModel = this.cm, - colConfig = colModel.config, - style = isHeader ? '' : colConfig[colIndex].css || '', - align = colConfig[colIndex].align; - - style += String.format("width: {0};", this.getColumnWidth(colIndex)); - - if (colModel.isHidden(colIndex)) { - style += 'display: none; '; - } - - if (align) { - style += String.format("text-align: {0};", align); - } - - return style; - }, - - /** - * @private - * Returns the width of a given column minus its border width - * @return {Number} The column index - * @return {String|Number} The width in pixels - */ - getColumnWidth : function(column) { - var columnWidth = this.cm.getColumnWidth(column), - borderWidth = this.borderWidth; - - if (Ext.isNumber(columnWidth)) { - if (Ext.isBorderBox || (Ext.isWebKit && !Ext.isSafari2)) { - return columnWidth + "px"; - } else { - return Math.max(columnWidth - borderWidth, 0) + "px"; - } - } else { - return columnWidth; - } - }, - - /** - * @private - * Returns the total width of all visible columns - * @return {String} - */ - getTotalWidth : function() { - return this.cm.getTotalWidth() + 'px'; - }, - - /** - * @private - * Resizes each column to fit the available grid width. - * TODO: The second argument isn't even used, remove it in 4.0 - * @param {Boolean} preventRefresh True to prevent resizing of each row to the new column sizes (defaults to false) - * @param {null} onlyExpand NOT USED, will be removed in 4.0 - * @param {Number} omitColumn The index of a column to leave at its current width. Defaults to undefined - * @return {Boolean} True if the operation succeeded, false if not or undefined if the grid view is not yet initialized - */ - fitColumns : function(preventRefresh, onlyExpand, omitColumn) { - var grid = this.grid, - colModel = this.cm, - totalColWidth = colModel.getTotalWidth(false), - gridWidth = this.getGridInnerWidth(), - extraWidth = gridWidth - totalColWidth, - columns = [], - extraCol = 0, - width = 0, - colWidth, fraction, i; - - // not initialized, so don't screw up the default widths - if (gridWidth < 20 || extraWidth === 0) { - return false; - } - - var visibleColCount = colModel.getColumnCount(true), - totalColCount = colModel.getColumnCount(false), - adjCount = visibleColCount - (Ext.isNumber(omitColumn) ? 1 : 0); - - if (adjCount === 0) { - adjCount = 1; - omitColumn = undefined; - } - - //FIXME: the algorithm used here is odd and potentially confusing. Includes this for loop and the while after it. - for (i = 0; i < totalColCount; i++) { - if (!colModel.isFixed(i) && i !== omitColumn) { - colWidth = colModel.getColumnWidth(i); - columns.push(i, colWidth); - - if (!colModel.isHidden(i)) { - extraCol = i; - width += colWidth; - } - } - } - - fraction = (gridWidth - colModel.getTotalWidth()) / width; - - while (columns.length) { - colWidth = columns.pop(); - i = columns.pop(); - - colModel.setColumnWidth(i, Math.max(grid.minColumnWidth, Math.floor(colWidth + colWidth * fraction)), true); - } - - //this has been changed above so remeasure now - totalColWidth = colModel.getTotalWidth(false); - - if (totalColWidth > gridWidth) { - var adjustCol = (adjCount == visibleColCount) ? extraCol : omitColumn, - newWidth = Math.max(1, colModel.getColumnWidth(adjustCol) - (totalColWidth - gridWidth)); - - colModel.setColumnWidth(adjustCol, newWidth, true); - } - - if (preventRefresh !== true) { - this.updateAllColumnWidths(); - } - - return true; - }, - - /** - * @private - * Resizes the configured autoExpandColumn to take the available width after the other columns have - * been accounted for - * @param {Boolean} preventUpdate True to prevent the resizing of all rows (defaults to false) - */ - autoExpand : function(preventUpdate) { - var grid = this.grid, - colModel = this.cm, - gridWidth = this.getGridInnerWidth(), - totalColumnWidth = colModel.getTotalWidth(false), - autoExpandColumn = grid.autoExpandColumn; - - if (!this.userResized && autoExpandColumn) { - if (gridWidth != totalColumnWidth) { - //if we are not already using all available width, resize the autoExpandColumn - var colIndex = colModel.getIndexById(autoExpandColumn), - currentWidth = colModel.getColumnWidth(colIndex), - desiredWidth = gridWidth - totalColumnWidth + currentWidth, - newWidth = Math.min(Math.max(desiredWidth, grid.autoExpandMin), grid.autoExpandMax); - - if (currentWidth != newWidth) { - colModel.setColumnWidth(colIndex, newWidth, true); - - if (preventUpdate !== true) { - this.updateColumnWidth(colIndex, newWidth); - } - } - } - } - }, - - /** - * Returns the total internal width available to the grid, taking the scrollbar into account - * @return {Number} The total width - */ - getGridInnerWidth: function() { - return this.grid.getGridEl().getWidth(true) - this.getScrollOffset(); - }, - - /** - * @private - * Returns an array of column configurations - one for each column - * @return {Array} Array of column config objects. This includes the column name, renderer, id style and renderer - */ - getColumnData : function() { - var columns = [], - colModel = this.cm, - colCount = colModel.getColumnCount(), - fields = this.ds.fields, - i, name; - - for (i = 0; i < colCount; i++) { - name = colModel.getDataIndex(i); - - columns[i] = { - name : Ext.isDefined(name) ? name : (fields.get(i) ? fields.get(i).name : undefined), - renderer: colModel.getRenderer(i), - scope : colModel.getRendererScope(i), - id : colModel.getColumnId(i), - style : this.getColumnStyle(i) - }; - } - - return columns; - }, - - /** - * @private - * Renders rows between start and end indexes - * @param {Number} startRow Index of the first row to render - * @param {Number} endRow Index of the last row to render - */ - renderRows : function(startRow, endRow) { - var grid = this.grid, - store = grid.store, - stripe = grid.stripeRows, - colModel = grid.colModel, - colCount = colModel.getColumnCount(), - rowCount = store.getCount(), - records; - - if (rowCount < 1) { - return ''; - } - - startRow = startRow || 0; - endRow = Ext.isDefined(endRow) ? endRow : rowCount - 1; - records = store.getRange(startRow, endRow); - - return this.doRender(this.getColumnData(), records, store, startRow, colCount, stripe); - }, - - // private - renderBody : function(){ - var markup = this.renderRows() || ' '; - return this.templates.body.apply({rows: markup}); - }, - - /** - * @private - * Refreshes a row by re-rendering it. Fires the rowupdated event when done - */ - refreshRow: function(record) { - var store = this.ds, - colCount = this.cm.getColumnCount(), - columns = this.getColumnData(), - last = colCount - 1, - cls = ['x-grid3-row'], - rowParams = { - tstyle: String.format("width: {0};", this.getTotalWidth()) - }, - colBuffer = [], - cellTpl = this.templates.cell, - rowIndex, row, column, meta, css, i; - - if (Ext.isNumber(record)) { - rowIndex = record; - record = store.getAt(rowIndex); - } else { - rowIndex = store.indexOf(record); - } - - //the record could not be found - if (!record || rowIndex < 0) { - return; - } - - //builds each column in this row - for (i = 0; i < colCount; i++) { - column = columns[i]; - - if (i == 0) { - css = 'x-grid3-cell-first'; - } else { - css = (i == last) ? 'x-grid3-cell-last ' : ''; - } - - meta = { - id : column.id, - style : column.style, - css : css, - attr : "", - cellAttr: "" - }; - // Need to set this after, because we pass meta to the renderer - meta.value = column.renderer.call(column.scope, record.data[column.name], meta, record, rowIndex, i, store); - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (this.markDirty && record.dirty && typeof record.modified[column.name] != 'undefined') { - meta.css += ' x-grid3-dirty-cell'; - } - - colBuffer[i] = cellTpl.apply(meta); - } - - row = this.getRow(rowIndex); - row.className = ''; - - if (this.grid.stripeRows && ((rowIndex + 1) % 2 === 0)) { - cls.push('x-grid3-row-alt'); - } - - if (this.getRowClass) { - rowParams.cols = colCount; - cls.push(this.getRowClass(record, rowIndex, rowParams, store)); - } - - this.fly(row).addClass(cls).setStyle(rowParams.tstyle); - rowParams.cells = colBuffer.join(""); - row.innerHTML = this.templates.rowInner.apply(rowParams); - - this.fireEvent('rowupdated', this, rowIndex, record); - }, - - /** - * Refreshs the grid UI - * @param {Boolean} headersToo (optional) True to also refresh the headers - */ - refresh : function(headersToo) { - this.fireEvent('beforerefresh', this); - this.grid.stopEditing(true); - - var result = this.renderBody(); - this.mainBody.update(result).setWidth(this.getTotalWidth()); - if (headersToo === true) { - this.updateHeaders(); - this.updateHeaderSortState(); - } - this.processRows(0, true); - this.layout(); - this.applyEmptyText(); - this.fireEvent('refresh', this); - }, - - /** - * @private - * Displays the configured emptyText if there are currently no rows to display - */ - applyEmptyText : function() { - if (this.emptyText && !this.hasRows()) { - this.mainBody.update('
    ' + this.emptyText + '
    '); - } - }, - - /** - * @private - * Adds sorting classes to the column headers based on the bound store's sortInfo. Fires the 'sortchange' event - * if the sorting has changed since this function was last run. - */ - updateHeaderSortState : function() { - var state = this.ds.getSortState(); - if (!state) { - return; - } - - if (!this.sortState || (this.sortState.field != state.field || this.sortState.direction != state.direction)) { - this.grid.fireEvent('sortchange', this.grid, state); - } - - this.sortState = state; - - var sortColumn = this.cm.findColumnIndex(state.field); - if (sortColumn != -1) { - var sortDir = state.direction; - this.updateSortIcon(sortColumn, sortDir); - } - }, - - /** - * @private - * Removes any sorting indicator classes from the column headers - */ - clearHeaderSortState : function() { - if (!this.sortState) { - return; - } - this.grid.fireEvent('sortchange', this.grid, null); - this.mainHd.select('td').removeClass(this.sortClasses); - delete this.sortState; - }, - - /** - * @private - * Destroys all objects associated with the GridView - */ - destroy : function() { - var me = this, - grid = me.grid, - gridEl = grid.getGridEl(), - dragZone = me.dragZone, - splitZone = me.splitZone, - columnDrag = me.columnDrag, - columnDrop = me.columnDrop, - scrollToTopTask = me.scrollToTopTask, - columnDragData, - columnDragProxy; - - if (scrollToTopTask && scrollToTopTask.cancel) { - scrollToTopTask.cancel(); - } - - Ext.destroyMembers(me, 'colMenu', 'hmenu'); - - me.initData(null, null); - me.purgeListeners(); - - Ext.fly(me.innerHd).un("click", me.handleHdDown, me); - - if (grid.enableColumnMove) { - columnDragData = columnDrag.dragData; - columnDragProxy = columnDrag.proxy; - Ext.destroy( - columnDrag.el, - columnDragProxy.ghost, - columnDragProxy.el, - columnDrop.el, - columnDrop.proxyTop, - columnDrop.proxyBottom, - columnDragData.ddel, - columnDragData.header - ); - - if (columnDragProxy.anim) { - Ext.destroy(columnDragProxy.anim); - } - - delete columnDragProxy.ghost; - delete columnDragData.ddel; - delete columnDragData.header; - columnDrag.destroy(); - - delete Ext.dd.DDM.locationCache[columnDrag.id]; - delete columnDrag._domRef; - - delete columnDrop.proxyTop; - delete columnDrop.proxyBottom; - columnDrop.destroy(); - delete Ext.dd.DDM.locationCache["gridHeader" + gridEl.id]; - delete columnDrop._domRef; - delete Ext.dd.DDM.ids[columnDrop.ddGroup]; - } - - if (splitZone) { // enableColumnResize - splitZone.destroy(); - delete splitZone._domRef; - delete Ext.dd.DDM.ids["gridSplitters" + gridEl.id]; - } - - Ext.fly(me.innerHd).removeAllListeners(); - Ext.removeNode(me.innerHd); - delete me.innerHd; - - Ext.destroy( - me.el, - me.mainWrap, - me.mainHd, - me.scroller, - me.mainBody, - me.focusEl, - me.resizeMarker, - me.resizeProxy, - me.activeHdBtn, - me._flyweight, - dragZone, - splitZone - ); - - delete grid.container; - - if (dragZone) { - dragZone.destroy(); - } - - Ext.dd.DDM.currentTarget = null; - delete Ext.dd.DDM.locationCache[gridEl.id]; - - Ext.EventManager.removeResizeListener(me.onWindowResize, me); - }, - - // private - onDenyColumnHide : function() { - - }, - - // private - render : function() { - if (this.autoFill) { - var ct = this.grid.ownerCt; - - if (ct && ct.getLayout()) { - ct.on('afterlayout', function() { - this.fitColumns(true, true); - this.updateHeaders(); - this.updateHeaderSortState(); - }, this, {single: true}); - } - } else if (this.forceFit) { - this.fitColumns(true, false); - } else if (this.grid.autoExpandColumn) { - this.autoExpand(true); - } - - this.grid.getGridEl().dom.innerHTML = this.renderUI(); - - this.afterRenderUI(); - }, - - /* --------------------------------- Model Events and Handlers --------------------------------*/ - - /** - * @private - * Binds a new Store and ColumnModel to this GridView. Removes any listeners from the old objects (if present) - * and adds listeners to the new ones - * @param {Ext.data.Store} newStore The new Store instance - * @param {Ext.grid.ColumnModel} newColModel The new ColumnModel instance - */ - initData : function(newStore, newColModel) { - var me = this; - - if (me.ds) { - var oldStore = me.ds; - - oldStore.un('add', me.onAdd, me); - oldStore.un('load', me.onLoad, me); - oldStore.un('clear', me.onClear, me); - oldStore.un('remove', me.onRemove, me); - oldStore.un('update', me.onUpdate, me); - oldStore.un('datachanged', me.onDataChange, me); - - if (oldStore !== newStore && oldStore.autoDestroy) { - oldStore.destroy(); - } - } - - if (newStore) { - newStore.on({ - scope : me, - load : me.onLoad, - add : me.onAdd, - remove : me.onRemove, - update : me.onUpdate, - clear : me.onClear, - datachanged: me.onDataChange - }); - } - - if (me.cm) { - var oldColModel = me.cm; - - oldColModel.un('configchange', me.onColConfigChange, me); - oldColModel.un('widthchange', me.onColWidthChange, me); - oldColModel.un('headerchange', me.onHeaderChange, me); - oldColModel.un('hiddenchange', me.onHiddenChange, me); - oldColModel.un('columnmoved', me.onColumnMove, me); - } - - if (newColModel) { - delete me.lastViewWidth; - - newColModel.on({ - scope : me, - configchange: me.onColConfigChange, - widthchange : me.onColWidthChange, - headerchange: me.onHeaderChange, - hiddenchange: me.onHiddenChange, - columnmoved : me.onColumnMove - }); - } - - me.ds = newStore; - me.cm = newColModel; - }, - - // private - onDataChange : function(){ - this.refresh(true); - this.updateHeaderSortState(); - this.syncFocusEl(0); - }, - - // private - onClear : function() { - this.refresh(); - this.syncFocusEl(0); - }, - - // private - onUpdate : function(store, record) { - this.refreshRow(record); - }, - - // private - onAdd : function(store, records, index) { - this.insertRows(store, index, index + (records.length-1)); - }, - - // private - onRemove : function(store, record, index, isUpdate) { - if (isUpdate !== true) { - this.fireEvent('beforerowremoved', this, index, record); - } - - this.removeRow(index); - - if (isUpdate !== true) { - this.processRows(index); - this.applyEmptyText(); - this.fireEvent('rowremoved', this, index, record); - } - }, - - /** - * @private - * Called when a store is loaded, scrolls to the top row - */ - onLoad : function() { - if (Ext.isGecko) { - if (!this.scrollToTopTask) { - this.scrollToTopTask = new Ext.util.DelayedTask(this.scrollToTop, this); - } - this.scrollToTopTask.delay(1); - } else { - this.scrollToTop(); - } - }, - - // private - onColWidthChange : function(cm, col, width) { - this.updateColumnWidth(col, width); - }, - - // private - onHeaderChange : function(cm, col, text) { - this.updateHeaders(); - }, - - // private - onHiddenChange : function(cm, col, hidden) { - this.updateColumnHidden(col, hidden); - }, - - // private - onColumnMove : function(cm, oldIndex, newIndex) { - this.indexMap = null; - this.refresh(true); - this.restoreScroll(this.getScrollState()); - - this.afterMove(newIndex); - this.grid.fireEvent('columnmove', oldIndex, newIndex); - }, - - // private - onColConfigChange : function() { - delete this.lastViewWidth; - this.indexMap = null; - this.refresh(true); - }, - - /* -------------------- UI Events and Handlers ------------------------------ */ - // private - initUI : function(grid) { - grid.on('headerclick', this.onHeaderClick, this); - }, - - // private - initEvents : Ext.emptyFn, - - // private - onHeaderClick : function(g, index) { - if (this.headersDisabled || !this.cm.isSortable(index)) { - return; - } - g.stopEditing(true); - g.store.sort(this.cm.getDataIndex(index)); - }, - - /** - * @private - * Adds the hover class to a row when hovered over - */ - onRowOver : function(e, target) { - var row = this.findRowIndex(target); - - if (row !== false) { - this.addRowClass(row, this.rowOverCls); - } - }, - - /** - * @private - * Removes the hover class from a row on mouseout - */ - onRowOut : function(e, target) { - var row = this.findRowIndex(target); - - if (row !== false && !e.within(this.getRow(row), true)) { - this.removeRowClass(row, this.rowOverCls); - } - }, - - // private - onRowSelect : function(row) { - this.addRowClass(row, this.selectedRowClass); - }, - - // private - onRowDeselect : function(row) { - this.removeRowClass(row, this.selectedRowClass); - }, - - // private - onCellSelect : function(row, col) { - var cell = this.getCell(row, col); - if (cell) { - this.fly(cell).addClass('x-grid3-cell-selected'); - } - }, - - // private - onCellDeselect : function(row, col) { - var cell = this.getCell(row, col); - if (cell) { - this.fly(cell).removeClass('x-grid3-cell-selected'); - } - }, - - // private - handleWheel : function(e) { - e.stopPropagation(); - }, - - /** - * @private - * Called by the SplitDragZone when a drag has been completed. Resizes the columns - */ - onColumnSplitterMoved : function(cellIndex, width) { - this.userResized = true; - this.grid.colModel.setColumnWidth(cellIndex, width, true); - - if (this.forceFit) { - this.fitColumns(true, false, cellIndex); - this.updateAllColumnWidths(); - } else { - this.updateColumnWidth(cellIndex, width); - this.syncHeaderScroll(); - } - - this.grid.fireEvent('columnresize', cellIndex, width); - }, - - /** - * @private - * Click handler for the shared column dropdown menu, called on beforeshow. Builds the menu - * which displays the list of columns for the user to show or hide. - */ - beforeColMenuShow : function() { - var colModel = this.cm, - colCount = colModel.getColumnCount(), - colMenu = this.colMenu, - i; - - colMenu.removeAll(); - - for (i = 0; i < colCount; i++) { - if (colModel.config[i].hideable !== false) { - colMenu.add(new Ext.menu.CheckItem({ - text : colModel.getColumnHeader(i), - itemId : 'col-' + colModel.getColumnId(i), - checked : !colModel.isHidden(i), - disabled : colModel.config[i].hideable === false, - hideOnClick: false - })); - } - } - }, - - /** - * @private - * Attached as the 'itemclick' handler to the header menu and the column show/hide submenu (if available). - * Performs sorting if the sorter buttons were clicked, otherwise hides/shows the column that was clicked. - */ - handleHdMenuClick : function(item) { - var store = this.ds, - dataIndex = this.cm.getDataIndex(this.hdCtxIndex); - - switch (item.getItemId()) { - case 'asc': - store.sort(dataIndex, 'ASC'); - break; - case 'desc': - store.sort(dataIndex, 'DESC'); - break; - default: - this.handleHdMenuClickDefault(item); - } - return true; - }, - - /** - * Called by handleHdMenuClick if any button except a sort ASC/DESC button was clicked. The default implementation provides - * the column hide/show functionality based on the check state of the menu item. A different implementation can be provided - * if needed. - * @param {Ext.menu.BaseItem} item The menu item that was clicked - */ - handleHdMenuClickDefault: function(item) { - var colModel = this.cm, - itemId = item.getItemId(), - index = colModel.getIndexById(itemId.substr(4)); - - if (index != -1) { - if (item.checked && colModel.getColumnsBy(this.isHideableColumn, this).length <= 1) { - this.onDenyColumnHide(); - return; - } - colModel.setHidden(index, item.checked); - } - }, - - /** - * @private - * Called when a header cell is clicked - shows the menu if the click happened over a trigger button - */ - handleHdDown : function(e, target) { - if (Ext.fly(target).hasClass('x-grid3-hd-btn')) { - e.stopEvent(); - - var colModel = this.cm, - header = this.findHeaderCell(target), - index = this.getCellIndex(header), - sortable = colModel.isSortable(index), - menu = this.hmenu, - menuItems = menu.items, - menuCls = this.headerMenuOpenCls; - - this.hdCtxIndex = index; - - Ext.fly(header).addClass(menuCls); - menuItems.get('asc').setDisabled(!sortable); - menuItems.get('desc').setDisabled(!sortable); - - menu.on('hide', function() { - Ext.fly(header).removeClass(menuCls); - }, this, {single:true}); - - menu.show(target, 'tl-bl?'); - } - }, - - /** - * @private - * Attached to the headers' mousemove event. This figures out the CSS cursor to use based on where the mouse is currently - * pointed. If the mouse is currently hovered over the extreme left or extreme right of any header cell and the cell next - * to it is resizable it is given the resize cursor, otherwise the cursor is set to an empty string. - */ - handleHdMove : function(e) { - var header = this.findHeaderCell(this.activeHdRef); - - if (header && !this.headersDisabled) { - var handleWidth = this.splitHandleWidth || 5, - activeRegion = this.activeHdRegion, - headerStyle = header.style, - colModel = this.cm, - cursor = '', - pageX = e.getPageX(); - - if (this.grid.enableColumnResize !== false) { - var activeHeaderIndex = this.activeHdIndex, - previousVisible = this.getPreviousVisible(activeHeaderIndex), - currentResizable = colModel.isResizable(activeHeaderIndex), - previousResizable = previousVisible && colModel.isResizable(previousVisible), - inLeftResizer = pageX - activeRegion.left <= handleWidth, - inRightResizer = activeRegion.right - pageX <= (!this.activeHdBtn ? handleWidth : 2); - - if (inLeftResizer && previousResizable) { - cursor = Ext.isAir ? 'move' : Ext.isWebKit ? 'e-resize' : 'col-resize'; // col-resize not always supported - } else if (inRightResizer && currentResizable) { - cursor = Ext.isAir ? 'move' : Ext.isWebKit ? 'w-resize' : 'col-resize'; - } - } - - headerStyle.cursor = cursor; - } - }, - - /** - * @private - * Returns the index of the nearest currently visible header to the left of the given index. - * @param {Number} index The header index - * @return {Number/undefined} The index of the nearest visible header - */ - getPreviousVisible: function(index) { - while (index > 0) { - if (!this.cm.isHidden(index - 1)) { - return index; - } - index--; - } - return undefined; - }, - - /** - * @private - * Tied to the header element's mouseover event - adds the over class to the header cell if the menu is not disabled - * for that cell - */ - handleHdOver : function(e, target) { - var header = this.findHeaderCell(target); - - if (header && !this.headersDisabled) { - var fly = this.fly(header); - - this.activeHdRef = target; - this.activeHdIndex = this.getCellIndex(header); - this.activeHdRegion = fly.getRegion(); - - if (!this.isMenuDisabled(this.activeHdIndex, fly)) { - fly.addClass('x-grid3-hd-over'); - this.activeHdBtn = fly.child('.x-grid3-hd-btn'); - - if (this.activeHdBtn) { - this.activeHdBtn.dom.style.height = (header.firstChild.offsetHeight - 1) + 'px'; - } - } - } - }, - - /** - * @private - * Tied to the header element's mouseout event. Removes the hover class from the header cell - */ - handleHdOut : function(e, target) { - var header = this.findHeaderCell(target); - - if (header && (!Ext.isIE || !e.within(header, true))) { - this.activeHdRef = null; - this.fly(header).removeClass('x-grid3-hd-over'); - header.style.cursor = ''; - } - }, - - /** - * @private - * Used by {@link #handleHdOver} to determine whether or not to show the header menu class on cell hover - * @param {Number} cellIndex The header cell index - * @param {Ext.Element} el The cell element currently being hovered over - */ - isMenuDisabled: function(cellIndex, el) { - return this.cm.isMenuDisabled(cellIndex); - }, - - /** - * @private - * Returns true if there are any rows rendered into the GridView - * @return {Boolean} True if any rows have been rendered - */ - hasRows : function() { - var fc = this.mainBody.dom.firstChild; - return fc && fc.nodeType == 1 && fc.className != 'x-grid-empty'; - }, - - /** - * @private - */ - isHideableColumn : function(c) { - return !c.hidden; - }, - - /** - * @private - * DEPRECATED - will be removed in Ext JS 5.0 - */ - bind : function(d, c) { - this.initData(d, c); - } -}); - - -// private -// This is a support class used internally by the Grid components -Ext.grid.GridView.SplitDragZone = Ext.extend(Ext.dd.DDProxy, { - - constructor: function(grid, hd){ - this.grid = grid; - this.view = grid.getView(); - this.marker = this.view.resizeMarker; - this.proxy = this.view.resizeProxy; - Ext.grid.GridView.SplitDragZone.superclass.constructor.call(this, hd, - 'gridSplitters' + this.grid.getGridEl().id, { - dragElId : Ext.id(this.proxy.dom), resizeFrame:false - }); - this.scroll = false; - this.hw = this.view.splitHandleWidth || 5; - }, - - b4StartDrag : function(x, y){ - this.dragHeadersDisabled = this.view.headersDisabled; - this.view.headersDisabled = true; - var h = this.view.mainWrap.getHeight(); - this.marker.setHeight(h); - this.marker.show(); - this.marker.alignTo(this.view.getHeaderCell(this.cellIndex), 'tl-tl', [-2, 0]); - this.proxy.setHeight(h); - var w = this.cm.getColumnWidth(this.cellIndex), - minw = Math.max(w-this.grid.minColumnWidth, 0); - this.resetConstraints(); - this.setXConstraint(minw, 1000); - this.setYConstraint(0, 0); - this.minX = x - minw; - this.maxX = x + 1000; - this.startPos = x; - Ext.dd.DDProxy.prototype.b4StartDrag.call(this, x, y); - }, - - allowHeaderDrag : function(e){ - return true; - }, - - handleMouseDown : function(e){ - var t = this.view.findHeaderCell(e.getTarget()); - if(t && this.allowHeaderDrag(e)){ - var xy = this.view.fly(t).getXY(), - x = xy[0], - exy = e.getXY(), - ex = exy[0], - w = t.offsetWidth, - adjust = false; - - if((ex - x) <= this.hw){ - adjust = -1; - }else if((x+w) - ex <= this.hw){ - adjust = 0; - } - if(adjust !== false){ - this.cm = this.grid.colModel; - var ci = this.view.getCellIndex(t); - if(adjust == -1){ - if (ci + adjust < 0) { - return; - } - while(this.cm.isHidden(ci+adjust)){ - --adjust; - if(ci+adjust < 0){ - return; - } - } - } - this.cellIndex = ci+adjust; - this.split = t.dom; - if(this.cm.isResizable(this.cellIndex) && !this.cm.isFixed(this.cellIndex)){ - Ext.grid.GridView.SplitDragZone.superclass.handleMouseDown.apply(this, arguments); - } - }else if(this.view.columnDrag){ - this.view.columnDrag.callHandleMouseDown(e); - } - } - }, - - endDrag : function(e){ - this.marker.hide(); - var v = this.view, - endX = Math.max(this.minX, e.getPageX()), - diff = endX - this.startPos, - disabled = this.dragHeadersDisabled; - - v.onColumnSplitterMoved(this.cellIndex, this.cm.getColumnWidth(this.cellIndex)+diff); - setTimeout(function(){ - v.headersDisabled = disabled; - }, 50); - }, - - autoOffset : function(){ - this.setDelta(0,0); - } -}); -/** - * @class Ext.grid.PivotGridView - * @extends Ext.grid.GridView - * Specialised GridView for rendering Pivot Grid components. Config can be passed to the PivotGridView via the PivotGrid constructor's - * viewConfig option: -
    
    -new Ext.grid.PivotGrid({
    -    viewConfig: {
    -        title: 'My Pivot Grid',
    -        getCellCls: function(value) {
    -            return value > 10 'red' : 'green';
    -        }
    -    }
    -});
    -
    - *

    Currently {@link #title} and {@link #getCellCls} are the only configuration options accepted by PivotGridView. All other - * interaction is performed via the {@link Ext.grid.PivotGrid PivotGrid} class.

    - */ -Ext.grid.PivotGridView = Ext.extend(Ext.grid.GridView, { - - /** - * The CSS class added to all group header cells. Defaults to 'grid-hd-group-cell' - * @property colHeaderCellCls - * @type String - */ - colHeaderCellCls: 'grid-hd-group-cell', - - /** - * @cfg {String} title Optional title to be placed in the top left corner of the PivotGrid. Defaults to an empty string. - */ - title: '', - - /** - * @cfg {Function} getCellCls Optional function which should return a CSS class name for each cell value. This is useful when - * color coding cells based on their value. Defaults to undefined. - */ - - /** - * Returns the headers to be rendered at the top of the grid. Should be a 2-dimensional array, where each item specifies the number - * of columns it groups (column in this case refers to normal grid columns). In the example below we have 5 city groups, which are - * each part of a continent supergroup. The colspan for each city group refers to the number of normal grid columns that group spans, - * so in this case the grid would be expected to have a total of 12 columns: -
    
    -[
    -    {
    -        items: [
    -            {header: 'England',   colspan: 5},
    -            {header: 'USA',       colspan: 3}
    -        ]
    -    },
    -    {
    -        items: [
    -            {header: 'London',    colspan: 2},
    -            {header: 'Cambridge', colspan: 3},
    -            {header: 'Palo Alto', colspan: 3}
    -        ]
    -    }
    -]
    -
    - * In the example above we have cities nested under countries. The nesting could be deeper if desired - e.g. Continent -> Country -> - * State -> City, or any other structure. The only constaint is that the same depth must be used throughout the structure. - * @return {Array} A tree structure containing the headers to be rendered. Must include the colspan property at each level, which should - * be the sum of all child nodes beneath this node. - */ - getColumnHeaders: function() { - return this.grid.topAxis.buildHeaders();; - }, - - /** - * Returns the headers to be rendered on the left of the grid. Should be a 2-dimensional array, where each item specifies the number - * of rows it groups. In the example below we have 5 city groups, which are each part of a continent supergroup. The rowspan for each - * city group refers to the number of normal grid columns that group spans, so in this case the grid would be expected to have a - * total of 12 rows: -
    
    -[
    -    {
    -        width: 90,
    -        items: [
    -            {header: 'England',   rowspan: 5},
    -            {header: 'USA',       rowspan: 3}
    -        ]
    -    },
    -    {
    -        width: 50,
    -        items: [
    -            {header: 'London',    rowspan: 2},
    -            {header: 'Cambridge', rowspan: 3},
    -            {header: 'Palo Alto', rowspan: 3}
    -        ]
    -    }
    -]
    -
    - * In the example above we have cities nested under countries. The nesting could be deeper if desired - e.g. Continent -> Country -> - * State -> City, or any other structure. The only constaint is that the same depth must be used throughout the structure. - * @return {Array} A tree structure containing the headers to be rendered. Must include the colspan property at each level, which should - * be the sum of all child nodes beneath this node. - * Each group may specify the width it should be rendered with. - * @return {Array} The row groups - */ - getRowHeaders: function() { - return this.grid.leftAxis.buildHeaders(); - }, - - /** - * @private - * Renders rows between start and end indexes - * @param {Number} startRow Index of the first row to render - * @param {Number} endRow Index of the last row to render - */ - renderRows : function(startRow, endRow) { - var grid = this.grid, - rows = grid.extractData(), - rowCount = rows.length, - templates = this.templates, - renderer = grid.renderer, - hasRenderer = typeof renderer == 'function', - getCellCls = this.getCellCls, - hasGetCellCls = typeof getCellCls == 'function', - cellTemplate = templates.cell, - rowTemplate = templates.row, - rowBuffer = [], - meta = {}, - tstyle = 'width:' + this.getGridInnerWidth() + 'px;', - colBuffer, colCount, column, i, row; - - startRow = startRow || 0; - endRow = Ext.isDefined(endRow) ? endRow : rowCount - 1; - - for (i = 0; i < rowCount; i++) { - row = rows[i]; - colCount = row.length; - colBuffer = []; - - //build up each column's HTML - for (var j = 0; j < colCount; j++) { - - meta.id = i + '-' + j; - meta.css = j === 0 ? 'x-grid3-cell-first ' : (j == (colCount - 1) ? 'x-grid3-cell-last ' : ''); - meta.attr = meta.cellAttr = ''; - meta.value = row[j]; - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (hasRenderer) { - meta.value = renderer(meta.value); - } - - if (hasGetCellCls) { - meta.css += getCellCls(meta.value) + ' '; - } - - colBuffer[colBuffer.length] = cellTemplate.apply(meta); - } - - rowBuffer[rowBuffer.length] = rowTemplate.apply({ - tstyle: tstyle, - cols : colCount, - cells : colBuffer.join(""), - alt : '' - }); - } - - return rowBuffer.join(""); - }, - - /** - * The master template to use when rendering the GridView. Has a default template - * @property Ext.Template - * @type masterTpl - */ - masterTpl: new Ext.Template( - '
    ', - '
    ', - '
    ', - '
    {title}
    ', - '
    ', - '
    ', - '
    ', - '
    ', - '
    ', - '
    ', - '
    ', - '
    {body}
    ', - '', - '
    ', - '
    ', - '
     
    ', - '
     
    ', - '
    ' - ), - - /** - * @private - * Adds a gcell template to the internal templates object. This is used to render the headers in a multi-level column header. - */ - initTemplates: function() { - Ext.grid.PivotGridView.superclass.initTemplates.apply(this, arguments); - - var templates = this.templates || {}; - if (!templates.gcell) { - templates.gcell = new Ext.XTemplate( - '', - '
    ', - this.grid.enableHdMenu ? '' : '', '{value}', - '
    ', - '' - ); - } - - this.templates = templates; - this.hrowRe = new RegExp("ux-grid-hd-group-row-(\\d+)", ""); - }, - - /** - * @private - * Sets up the reference to the row headers element - */ - initElements: function() { - Ext.grid.PivotGridView.superclass.initElements.apply(this, arguments); - - /** - * @property rowHeadersEl - * @type Ext.Element - * The element containing all row headers - */ - this.rowHeadersEl = new Ext.Element(this.scroller.child('div.x-grid3-row-headers')); - - /** - * @property headerTitleEl - * @type Ext.Element - * The element that contains the optional title (top left section of the pivot grid) - */ - this.headerTitleEl = new Ext.Element(this.mainHd.child('div.x-grid3-header-title')); - }, - - /** - * @private - * Takes row headers into account when calculating total available width - */ - getGridInnerWidth: function() { - var previousWidth = Ext.grid.PivotGridView.superclass.getGridInnerWidth.apply(this, arguments); - - return previousWidth - this.getTotalRowHeaderWidth(); - }, - - /** - * Returns the total width of all row headers as specified by {@link #getRowHeaders} - * @return {Number} The total width - */ - getTotalRowHeaderWidth: function() { - var headers = this.getRowHeaders(), - length = headers.length, - total = 0, - i; - - for (i = 0; i< length; i++) { - total += headers[i].width; - } - - return total; - }, - - /** - * @private - * Returns the total height of all column headers - * @return {Number} The total height - */ - getTotalColumnHeaderHeight: function() { - return this.getColumnHeaders().length * 21; - }, - - /** - * Inherit docs - * @private - * @param {HTMLElement} el - */ - getCellIndex : function(el) { - if (el) { - var match = el.className.match(this.colRe), - data; - - if (match && (data = match[1])) { - return parseInt(data.split('-')[1], 10); - } - } - return false; - }, - - - /** - * @private - * Slight specialisation of the GridView renderUI - just adds the row headers - */ - renderUI : function() { - var templates = this.templates, - innerWidth = this.getGridInnerWidth(); - - return templates.master.apply({ - body : templates.body.apply({rows:' '}), - ostyle: 'width:' + innerWidth + 'px', - bstyle: 'width:' + innerWidth + 'px' - }); - }, - - /** - * @private - * Make sure that the headers and rows are all sized correctly during layout - */ - onLayout: function(width, height) { - Ext.grid.PivotGridView.superclass.onLayout.apply(this, arguments); - - var width = this.getGridInnerWidth(); - - this.resizeColumnHeaders(width); - this.resizeAllRows(width); - }, - - /** - * Refreshs the grid UI - * @param {Boolean} headersToo (optional) True to also refresh the headers - */ - refresh : function(headersToo) { - this.fireEvent('beforerefresh', this); - this.grid.stopEditing(true); - - var result = this.renderBody(); - this.mainBody.update(result).setWidth(this.getGridInnerWidth()); - if (headersToo === true) { - this.updateHeaders(); - this.updateHeaderSortState(); - } - this.processRows(0, true); - this.layout(); - this.applyEmptyText(); - this.fireEvent('refresh', this); - }, - - /** - * @private - * Bypasses GridView's renderHeaders as they are taken care of separately by the PivotAxis instances - */ - renderHeaders: Ext.emptyFn, - - /** - * @private - * Taken care of by PivotAxis - */ - fitColumns: Ext.emptyFn, - - /** - * @private - * Called on layout, ensures that the width of each column header is correct. Omitting this can lead to faulty - * layouts when nested in a container. - * @param {Number} width The new width - */ - resizeColumnHeaders: function(width) { - var topAxis = this.grid.topAxis; - - if (topAxis.rendered) { - topAxis.el.setWidth(width); - } - }, - - /** - * @private - * Sets the row header div to the correct width. Should be called after rendering and reconfiguration of headers - */ - resizeRowHeaders: function() { - var rowHeaderWidth = this.getTotalRowHeaderWidth(), - marginStyle = String.format("margin-left: {0}px;", rowHeaderWidth); - - this.rowHeadersEl.setWidth(rowHeaderWidth); - this.mainBody.applyStyles(marginStyle); - Ext.fly(this.innerHd).applyStyles(marginStyle); - - this.headerTitleEl.setWidth(rowHeaderWidth); - this.headerTitleEl.setHeight(this.getTotalColumnHeaderHeight()); - }, - - /** - * @private - * Resizes all rendered rows to the given width. Usually called by onLayout - * @param {Number} width The new width - */ - resizeAllRows: function(width) { - var rows = this.getRows(), - length = rows.length, - i; - - for (i = 0; i < length; i++) { - Ext.fly(rows[i]).setWidth(width); - Ext.fly(rows[i]).child('table').setWidth(width); - } - }, - - /** - * @private - * Updates the Row Headers, deferring the updating of Column Headers to GridView - */ - updateHeaders: function() { - this.renderGroupRowHeaders(); - this.renderGroupColumnHeaders(); - }, - - /** - * @private - * Renders all row header groups at all levels based on the structure fetched from {@link #getGroupRowHeaders} - */ - renderGroupRowHeaders: function() { - var leftAxis = this.grid.leftAxis; - - this.resizeRowHeaders(); - leftAxis.rendered = false; - leftAxis.render(this.rowHeadersEl); - - this.setTitle(this.title); - }, - - /** - * Sets the title text in the top left segment of the PivotGridView - * @param {String} title The title - */ - setTitle: function(title) { - this.headerTitleEl.child('span').dom.innerHTML = title; - }, - - /** - * @private - * Renders all column header groups at all levels based on the structure fetched from {@link #getColumnHeaders} - */ - renderGroupColumnHeaders: function() { - var topAxis = this.grid.topAxis; - - topAxis.rendered = false; - topAxis.render(this.innerHd.firstChild); - }, - - /** - * @private - * Overridden to test whether the user is hovering over a group cell, in which case we don't show the menu - */ - isMenuDisabled: function(cellIndex, el) { - return true; - } -});/** - * @class Ext.grid.PivotAxis - * @extends Ext.Component - *

    PivotAxis is a class that supports a {@link Ext.grid.PivotGrid}. Each PivotGrid contains two PivotAxis instances - the left - * axis and the top axis. Each PivotAxis defines an ordered set of dimensions, each of which should correspond to a field in a - * Store's Record (see {@link Ext.grid.PivotGrid} documentation for further explanation).

    - *

    Developers should have little interaction with the PivotAxis instances directly as most of their management is performed by - * the PivotGrid. An exception is the dynamic reconfiguration of axes at run time - to achieve this we use PivotAxis's - * {@link #setDimensions} function and refresh the grid:

    -
    
    -var pivotGrid = new Ext.grid.PivotGrid({
    -    //some PivotGrid config here
    -});
    -
    -//change the left axis dimensions
    -pivotGrid.leftAxis.setDimensions([
    -    {
    -        dataIndex: 'person',
    -        direction: 'DESC',
    -        width    : 100
    -    },
    -    {
    -        dataIndex: 'product',
    -        direction: 'ASC',
    -        width    : 80
    -    }
    -]);
    -
    -pivotGrid.view.refresh(true);
    -
    - * This clears the previous dimensions on the axis and redraws the grid with the new dimensions. - */ -Ext.grid.PivotAxis = Ext.extend(Ext.Component, { - /** - * @cfg {String} orientation One of 'vertical' or 'horizontal'. Defaults to horizontal - */ - orientation: 'horizontal', - - /** - * @cfg {Number} defaultHeaderWidth The width to render each row header that does not have a width specified via - {@link #getRowGroupHeaders}. Defaults to 80. - */ - defaultHeaderWidth: 80, - - /** - * @private - * @cfg {Number} paddingWidth The amount of padding used by each cell. - * TODO: From 4.x onwards this can be removed as it won't be needed. For now it is used to account for the differences between - * the content box and border box measurement models - */ - paddingWidth: 7, - - /** - * Updates the dimensions used by this axis - * @param {Array} dimensions The new dimensions - */ - setDimensions: function(dimensions) { - this.dimensions = dimensions; - }, - - /** - * @private - * Builds the html table that contains the dimensions for this axis. This branches internally between vertical - * and horizontal orientations because the table structure is slightly different in each case - */ - onRender: function(ct, position) { - var rows = this.orientation == 'horizontal' - ? this.renderHorizontalRows() - : this.renderVerticalRows(); - - this.el = Ext.DomHelper.overwrite(ct.dom, {tag: 'table', cn: rows}, true); - }, - - /** - * @private - * Specialised renderer for horizontal oriented axes - * @return {Object} The HTML Domspec for a horizontal oriented axis - */ - renderHorizontalRows: function() { - var headers = this.buildHeaders(), - rowCount = headers.length, - rows = [], - cells, cols, colCount, i, j; - - for (i = 0; i < rowCount; i++) { - cells = []; - cols = headers[i].items; - colCount = cols.length; - - for (j = 0; j < colCount; j++) { - cells.push({ - tag: 'td', - html: cols[j].header, - colspan: cols[j].span - }); - } - - rows[i] = { - tag: 'tr', - cn: cells - }; - } - - return rows; - }, - - /** - * @private - * Specialised renderer for vertical oriented axes - * @return {Object} The HTML Domspec for a vertical oriented axis - */ - renderVerticalRows: function() { - var headers = this.buildHeaders(), - colCount = headers.length, - rowCells = [], - rows = [], - rowCount, col, row, colWidth, i, j; - - for (i = 0; i < colCount; i++) { - col = headers[i]; - colWidth = col.width || 80; - rowCount = col.items.length; - - for (j = 0; j < rowCount; j++) { - row = col.items[j]; - - rowCells[row.start] = rowCells[row.start] || []; - rowCells[row.start].push({ - tag : 'td', - html : row.header, - rowspan: row.span, - width : Ext.isBorderBox ? colWidth : colWidth - this.paddingWidth - }); - } - } - - rowCount = rowCells.length; - for (i = 0; i < rowCount; i++) { - rows[i] = { - tag: 'tr', - cn : rowCells[i] - }; - } - - return rows; - }, - - /** - * @private - * Returns the set of all unique tuples based on the bound store and dimension definitions. - * Internally we construct a new, temporary store to make use of the multi-sort capabilities of Store. In - * 4.x this functionality should have been moved to MixedCollection so this step should not be needed. - * @return {Array} All unique tuples - */ - getTuples: function() { - var newStore = new Ext.data.Store({}); - - newStore.data = this.store.data.clone(); - newStore.fields = this.store.fields; - - var sorters = [], - dimensions = this.dimensions, - length = dimensions.length, - i; - - for (i = 0; i < length; i++) { - sorters.push({ - field : dimensions[i].dataIndex, - direction: dimensions[i].direction || 'ASC' - }); - } - - newStore.sort(sorters); - - var records = newStore.data.items, - hashes = [], - tuples = [], - recData, hash, info, data, key; - - length = records.length; - - for (i = 0; i < length; i++) { - info = this.getRecordInfo(records[i]); - data = info.data; - hash = ""; - - for (key in data) { - hash += data[key] + '---'; - } - - if (hashes.indexOf(hash) == -1) { - hashes.push(hash); - tuples.push(info); - } - } - - newStore.destroy(); - - return tuples; - }, - - /** - * @private - */ - getRecordInfo: function(record) { - var dimensions = this.dimensions, - length = dimensions.length, - data = {}, - dimension, dataIndex, i; - - //get an object containing just the data we are interested in based on the configured dimensions - for (i = 0; i < length; i++) { - dimension = dimensions[i]; - dataIndex = dimension.dataIndex; - - data[dataIndex] = record.get(dataIndex); - } - - //creates a specialised matcher function for a given tuple. The returned function will return - //true if the record passed to it matches the dataIndex values of each dimension in this axis - var createMatcherFunction = function(data) { - return function(record) { - for (var dataIndex in data) { - if (record.get(dataIndex) != data[dataIndex]) { - return false; - } - } - - return true; - }; - }; - - return { - data: data, - matcher: createMatcherFunction(data) - }; - }, - - /** - * @private - * Uses the calculated set of tuples to build an array of headers that can be rendered into a table using rowspan or - * colspan. Basically this takes the set of tuples and spans any cells that run into one another, so if we had dimensions - * of Person and Product and several tuples containing different Products for the same Person, those Products would be - * spanned. - * @return {Array} The headers - */ - buildHeaders: function() { - var tuples = this.getTuples(), - rowCount = tuples.length, - dimensions = this.dimensions, - dimension, - colCount = dimensions.length, - headers = [], - tuple, rows, currentHeader, previousHeader, span, start, isLast, changed, i, j; - - for (i = 0; i < colCount; i++) { - dimension = dimensions[i]; - rows = []; - span = 0; - start = 0; - - for (j = 0; j < rowCount; j++) { - tuple = tuples[j]; - isLast = j == (rowCount - 1); - currentHeader = tuple.data[dimension.dataIndex]; - - /* - * 'changed' indicates that we need to create a new cell. This should be true whenever the cell - * above (previousHeader) is different from this cell, or when the cell on the previous dimension - * changed (e.g. if the current dimension is Product and the previous was Person, we need to start - * a new cell if Product is the same but Person changed, so we check the previous dimension and tuple) - */ - changed = previousHeader != undefined && previousHeader != currentHeader; - if (i > 0 && j > 0) { - changed = changed || tuple.data[dimensions[i-1].dataIndex] != tuples[j-1].data[dimensions[i-1].dataIndex]; - } - - if (changed) { - rows.push({ - header: previousHeader, - span : span, - start : start - }); - - start += span; - span = 0; - } - - if (isLast) { - rows.push({ - header: currentHeader, - span : span + 1, - start : start - }); - - start += span; - span = 0; - } - - previousHeader = currentHeader; - span++; - } - - headers.push({ - items: rows, - width: dimension.width || this.defaultHeaderWidth - }); - - previousHeader = undefined; - } - - return headers; - } -}); -// private -// This is a support class used internally by the Grid components -Ext.grid.HeaderDragZone = Ext.extend(Ext.dd.DragZone, { - maxDragWidth: 120, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - this.ddGroup = "gridHeader" + this.grid.getGridEl().id; - Ext.grid.HeaderDragZone.superclass.constructor.call(this, hd); - if(hd2){ - this.setHandleElId(Ext.id(hd)); - this.setOuterHandleElId(Ext.id(hd2)); - } - this.scroll = false; - }, - - getDragData : function(e){ - var t = Ext.lib.Event.getTarget(e), - h = this.view.findHeaderCell(t); - if(h){ - return {ddel: h.firstChild, header:h}; - } - return false; - }, - - onInitDrag : function(e){ - // keep the value here so we can restore it; - this.dragHeadersDisabled = this.view.headersDisabled; - this.view.headersDisabled = true; - var clone = this.dragData.ddel.cloneNode(true); - clone.id = Ext.id(); - clone.style.width = Math.min(this.dragData.header.offsetWidth,this.maxDragWidth) + "px"; - this.proxy.update(clone); - return true; - }, - - afterValidDrop : function(){ - this.completeDrop(); - }, - - afterInvalidDrop : function(){ - this.completeDrop(); - }, - - completeDrop: function(){ - var v = this.view, - disabled = this.dragHeadersDisabled; - setTimeout(function(){ - v.headersDisabled = disabled; - }, 50); - } -}); - -// private -// This is a support class used internally by the Grid components -Ext.grid.HeaderDropZone = Ext.extend(Ext.dd.DropZone, { - proxyOffsets : [-4, -9], - fly: Ext.Element.fly, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - // split the proxies so they don't interfere with mouse events - this.proxyTop = Ext.DomHelper.append(document.body, { - cls:"col-move-top", html:" " - }, true); - this.proxyBottom = Ext.DomHelper.append(document.body, { - cls:"col-move-bottom", html:" " - }, true); - this.proxyTop.hide = this.proxyBottom.hide = function(){ - this.setLeftTop(-100,-100); - this.setStyle("visibility", "hidden"); - }; - this.ddGroup = "gridHeader" + this.grid.getGridEl().id; - // temporarily disabled - //Ext.dd.ScrollManager.register(this.view.scroller.dom); - Ext.grid.HeaderDropZone.superclass.constructor.call(this, grid.getGridEl().dom); - }, - - getTargetFromEvent : function(e){ - var t = Ext.lib.Event.getTarget(e), - cindex = this.view.findCellIndex(t); - if(cindex !== false){ - return this.view.getHeaderCell(cindex); - } - }, - - nextVisible : function(h){ - var v = this.view, cm = this.grid.colModel; - h = h.nextSibling; - while(h){ - if(!cm.isHidden(v.getCellIndex(h))){ - return h; - } - h = h.nextSibling; - } - return null; - }, - - prevVisible : function(h){ - var v = this.view, cm = this.grid.colModel; - h = h.prevSibling; - while(h){ - if(!cm.isHidden(v.getCellIndex(h))){ - return h; - } - h = h.prevSibling; - } - return null; - }, - - positionIndicator : function(h, n, e){ - var x = Ext.lib.Event.getPageX(e), - r = Ext.lib.Dom.getRegion(n.firstChild), - px, - pt, - py = r.top + this.proxyOffsets[1]; - if((r.right - x) <= (r.right-r.left)/2){ - px = r.right+this.view.borderWidth; - pt = "after"; - }else{ - px = r.left; - pt = "before"; - } - - if(this.grid.colModel.isFixed(this.view.getCellIndex(n))){ - return false; - } - - px += this.proxyOffsets[0]; - this.proxyTop.setLeftTop(px, py); - this.proxyTop.show(); - if(!this.bottomOffset){ - this.bottomOffset = this.view.mainHd.getHeight(); - } - this.proxyBottom.setLeftTop(px, py+this.proxyTop.dom.offsetHeight+this.bottomOffset); - this.proxyBottom.show(); - return pt; - }, - - onNodeEnter : function(n, dd, e, data){ - if(data.header != n){ - this.positionIndicator(data.header, n, e); - } - }, - - onNodeOver : function(n, dd, e, data){ - var result = false; - if(data.header != n){ - result = this.positionIndicator(data.header, n, e); - } - if(!result){ - this.proxyTop.hide(); - this.proxyBottom.hide(); - } - return result ? this.dropAllowed : this.dropNotAllowed; - }, - - onNodeOut : function(n, dd, e, data){ - this.proxyTop.hide(); - this.proxyBottom.hide(); - }, - - onNodeDrop : function(n, dd, e, data){ - var h = data.header; - if(h != n){ - var cm = this.grid.colModel, - x = Ext.lib.Event.getPageX(e), - r = Ext.lib.Dom.getRegion(n.firstChild), - pt = (r.right - x) <= ((r.right-r.left)/2) ? "after" : "before", - oldIndex = this.view.getCellIndex(h), - newIndex = this.view.getCellIndex(n); - if(pt == "after"){ - newIndex++; - } - if(oldIndex < newIndex){ - newIndex--; - } - cm.moveColumn(oldIndex, newIndex); - return true; - } - return false; - } -}); - -Ext.grid.GridView.ColumnDragZone = Ext.extend(Ext.grid.HeaderDragZone, { - - constructor : function(grid, hd){ - Ext.grid.GridView.ColumnDragZone.superclass.constructor.call(this, grid, hd, null); - this.proxy.el.addClass('x-grid3-col-dd'); - }, - - handleMouseDown : function(e){ - }, - - callHandleMouseDown : function(e){ - Ext.grid.GridView.ColumnDragZone.superclass.handleMouseDown.call(this, e); - } -});// private -// This is a support class used internally by the Grid components -Ext.grid.SplitDragZone = Ext.extend(Ext.dd.DDProxy, { - fly: Ext.Element.fly, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - this.proxy = this.view.resizeProxy; - Ext.grid.SplitDragZone.superclass.constructor.call(this, hd, - "gridSplitters" + this.grid.getGridEl().id, { - dragElId : Ext.id(this.proxy.dom), resizeFrame:false - }); - this.setHandleElId(Ext.id(hd)); - this.setOuterHandleElId(Ext.id(hd2)); - this.scroll = false; - }, - - b4StartDrag : function(x, y){ - this.view.headersDisabled = true; - this.proxy.setHeight(this.view.mainWrap.getHeight()); - var w = this.cm.getColumnWidth(this.cellIndex); - var minw = Math.max(w-this.grid.minColumnWidth, 0); - this.resetConstraints(); - this.setXConstraint(minw, 1000); - this.setYConstraint(0, 0); - this.minX = x - minw; - this.maxX = x + 1000; - this.startPos = x; - Ext.dd.DDProxy.prototype.b4StartDrag.call(this, x, y); - }, - - - handleMouseDown : function(e){ - var ev = Ext.EventObject.setEvent(e); - var t = this.fly(ev.getTarget()); - if(t.hasClass("x-grid-split")){ - this.cellIndex = this.view.getCellIndex(t.dom); - this.split = t.dom; - this.cm = this.grid.colModel; - if(this.cm.isResizable(this.cellIndex) && !this.cm.isFixed(this.cellIndex)){ - Ext.grid.SplitDragZone.superclass.handleMouseDown.apply(this, arguments); - } - } - }, - - endDrag : function(e){ - this.view.headersDisabled = false; - var endX = Math.max(this.minX, Ext.lib.Event.getPageX(e)); - var diff = endX - this.startPos; - this.view.onColumnSplitterMoved(this.cellIndex, this.cm.getColumnWidth(this.cellIndex)+diff); - }, - - autoOffset : function(){ - this.setDelta(0,0); - } -});/** - * @class Ext.grid.GridDragZone - * @extends Ext.dd.DragZone - *

    A customized implementation of a {@link Ext.dd.DragZone DragZone} which provides default implementations of two of the - * template methods of DragZone to enable dragging of the selected rows of a GridPanel.

    - *

    A cooperating {@link Ext.dd.DropZone DropZone} must be created who's template method implementations of - * {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver}, - * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop}

    are able - * to process the {@link #getDragData data} which is provided. - */ -Ext.grid.GridDragZone = function(grid, config){ - this.view = grid.getView(); - Ext.grid.GridDragZone.superclass.constructor.call(this, this.view.mainBody.dom, config); - this.scroll = false; - this.grid = grid; - this.ddel = document.createElement('div'); - this.ddel.className = 'x-grid-dd-wrap'; -}; - -Ext.extend(Ext.grid.GridDragZone, Ext.dd.DragZone, { - ddGroup : "GridDD", - - /** - *

    The provided implementation of the getDragData method which collects the data to be dragged from the GridPanel on mousedown.

    - *

    This data is available for processing in the {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver}, - * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} methods of a cooperating {@link Ext.dd.DropZone DropZone}.

    - *

    The data object contains the following properties:

      - *
    • grid : Ext.Grid.GridPanel
      The GridPanel from which the data is being dragged.
    • - *
    • ddel : htmlElement
      An htmlElement which provides the "picture" of the data being dragged.
    • - *
    • rowIndex : Number
      The index of the row which receieved the mousedown gesture which triggered the drag.
    • - *
    • selections : Array
      An Array of the selected Records which are being dragged from the GridPanel.
    • - *

    - */ - getDragData : function(e){ - var t = Ext.lib.Event.getTarget(e); - var rowIndex = this.view.findRowIndex(t); - if(rowIndex !== false){ - var sm = this.grid.selModel; - if(!sm.isSelected(rowIndex) || e.hasModifier()){ - sm.handleMouseDown(this.grid, rowIndex, e); - } - return {grid: this.grid, ddel: this.ddel, rowIndex: rowIndex, selections:sm.getSelections()}; - } - return false; - }, - - /** - *

    The provided implementation of the onInitDrag method. Sets the innerHTML of the drag proxy which provides the "picture" - * of the data being dragged.

    - *

    The innerHTML data is found by calling the owning GridPanel's {@link Ext.grid.GridPanel#getDragDropText getDragDropText}.

    - */ - onInitDrag : function(e){ - var data = this.dragData; - this.ddel.innerHTML = this.grid.getDragDropText(); - this.proxy.update(this.ddel); - // fire start drag? - }, - - /** - * An empty immplementation. Implement this to provide behaviour after a repair of an invalid drop. An implementation might highlight - * the selected rows to show that they have not been dragged. - */ - afterRepair : function(){ - this.dragging = false; - }, - - /** - *

    An empty implementation. Implement this to provide coordinates for the drag proxy to slide back to after an invalid drop.

    - *

    Called before a repair of an invalid drop to get the XY to animate to.

    - * @param {EventObject} e The mouse up event - * @return {Array} The xy location (e.g. [100, 200]) - */ - getRepairXY : function(e, data){ - return false; - }, - - onEndDrag : function(data, e){ - // fire end drag? - }, - - onValidDrop : function(dd, e, id){ - // fire drag drop? - this.hideProxy(); - }, - - beforeInvalidDrop : function(e, id){ - - } -}); -/** - * @class Ext.grid.ColumnModel - * @extends Ext.util.Observable - *

    After the data has been read into the client side cache ({@link Ext.data.Store Store}), - * the ColumnModel is used to configure how and what parts of that data will be displayed in the - * vertical slices (columns) of the grid. The Ext.grid.ColumnModel Class is the default implementation - * of a ColumnModel used by implentations of {@link Ext.grid.GridPanel GridPanel}.

    - *

    Data is mapped into the store's records and then indexed into the ColumnModel using the - * {@link Ext.grid.Column#dataIndex dataIndex}:

    - *
    
    -{data source} == mapping ==> {data store} == {@link Ext.grid.Column#dataIndex dataIndex} ==> {ColumnModel}
    - * 
    - *

    Each {@link Ext.grid.Column Column} in the grid's ColumnModel is configured with a - * {@link Ext.grid.Column#dataIndex dataIndex} to specify how the data within - * each record in the store is indexed into the ColumnModel.

    - *

    There are two ways to initialize the ColumnModel class:

    - *

    Initialization Method 1: an Array

    -
    
    - var colModel = new Ext.grid.ColumnModel([
    -    { header: "Ticker", width: 60, sortable: true},
    -    { header: "Company Name", width: 150, sortable: true, id: 'company'},
    -    { header: "Market Cap.", width: 100, sortable: true},
    -    { header: "$ Sales", width: 100, sortable: true, renderer: money},
    -    { header: "Employees", width: 100, sortable: true, resizable: false}
    - ]);
    - 
    - *

    The ColumnModel may be initialized with an Array of {@link Ext.grid.Column} column configuration - * objects to define the initial layout / display of the columns in the Grid. The order of each - * {@link Ext.grid.Column} column configuration object within the specified Array defines the initial - * order of the column display. A Column's display may be initially hidden using the - * {@link Ext.grid.Column#hidden hidden} config property (and then shown using the column - * header menu). Fields that are not included in the ColumnModel will not be displayable at all.

    - *

    How each column in the grid correlates (maps) to the {@link Ext.data.Record} field in the - * {@link Ext.data.Store Store} the column draws its data from is configured through the - * {@link Ext.grid.Column#dataIndex dataIndex}. If the - * {@link Ext.grid.Column#dataIndex dataIndex} is not explicitly defined (as shown in the - * example above) it will use the column configuration's index in the Array as the index.

    - *

    See {@link Ext.grid.Column} for additional configuration options for each column.

    - *

    Initialization Method 2: an Object

    - *

    In order to use configuration options from Ext.grid.ColumnModel, an Object may be used to - * initialize the ColumnModel. The column configuration Array will be specified in the {@link #columns} - * config property. The {@link #defaults} config property can be used to apply defaults - * for all columns, e.g.:

    
    - var colModel = new Ext.grid.ColumnModel({
    -    columns: [
    -        { header: "Ticker", width: 60, menuDisabled: false},
    -        { header: "Company Name", width: 150, id: 'company'},
    -        { header: "Market Cap."},
    -        { header: "$ Sales", renderer: money},
    -        { header: "Employees", resizable: false}
    -    ],
    -    defaults: {
    -        sortable: true,
    -        menuDisabled: true,
    -        width: 100
    -    },
    -    listeners: {
    -        {@link #hiddenchange}: function(cm, colIndex, hidden) {
    -            saveConfig(colIndex, hidden);
    -        }
    -    }
    -});
    - 
    - *

    In both examples above, the ability to apply a CSS class to all cells in a column (including the - * header) is demonstrated through the use of the {@link Ext.grid.Column#id id} config - * option. This column could be styled by including the following css:

    
    - //add this css *after* the core css is loaded
    -.x-grid3-td-company {
    -    color: red; // entire column will have red font
    -}
    -// modify the header row only, adding an icon to the column header
    -.x-grid3-hd-company {
    -    background: transparent
    -        url(../../resources/images/icons/silk/building.png)
    -        no-repeat 3px 3px ! important;
    -        padding-left:20px;
    -}
    - 
    - * Note that the "Company Name" column could be specified as the - * {@link Ext.grid.GridPanel}.{@link Ext.grid.GridPanel#autoExpandColumn autoExpandColumn}. - * @constructor - * @param {Mixed} config Specify either an Array of {@link Ext.grid.Column} configuration objects or specify - * a configuration Object (see introductory section discussion utilizing Initialization Method 2 above). - */ -Ext.grid.ColumnModel = Ext.extend(Ext.util.Observable, { - /** - * @cfg {Number} defaultWidth (optional) The width of columns which have no {@link #width} - * specified (defaults to 100). This property shall preferably be configured through the - * {@link #defaults} config property. - */ - defaultWidth: 100, - - /** - * @cfg {Boolean} defaultSortable (optional) Default sortable of columns which have no - * sortable specified (defaults to false). This property shall preferably be configured - * through the {@link #defaults} config property. - */ - defaultSortable: false, - - /** - * @cfg {Array} columns An Array of object literals. The config options defined by - * {@link Ext.grid.Column} are the options which may appear in the object literal for each - * individual column definition. - */ - - /** - * @cfg {Object} defaults Object literal which will be used to apply {@link Ext.grid.Column} - * configuration options to all {@link #columns}. Configuration options specified with - * individual {@link Ext.grid.Column column} configs will supersede these {@link #defaults}. - */ - - constructor : function(config) { - /** - * An Array of {@link Ext.grid.Column Column definition} objects representing the configuration - * of this ColumnModel. See {@link Ext.grid.Column} for the configuration properties that may - * be specified. - * @property config - * @type Array - */ - if (config.columns) { - Ext.apply(this, config); - this.setConfig(config.columns, true); - } else { - this.setConfig(config, true); - } - - this.addEvents( - /** - * @event widthchange - * Fires when the width of a column is programmaticially changed using - * {@link #setColumnWidth}. - * Note internal resizing suppresses the event from firing. See also - * {@link Ext.grid.GridPanel}.{@link #columnresize}. - * @param {ColumnModel} this - * @param {Number} columnIndex The column index - * @param {Number} newWidth The new width - */ - "widthchange", - - /** - * @event headerchange - * Fires when the text of a header changes. - * @param {ColumnModel} this - * @param {Number} columnIndex The column index - * @param {String} newText The new header text - */ - "headerchange", - - /** - * @event hiddenchange - * Fires when a column is hidden or "unhidden". - * @param {ColumnModel} this - * @param {Number} columnIndex The column index - * @param {Boolean} hidden true if hidden, false otherwise - */ - "hiddenchange", - - /** - * @event columnmoved - * Fires when a column is moved. - * @param {ColumnModel} this - * @param {Number} oldIndex - * @param {Number} newIndex - */ - "columnmoved", - - /** - * @event configchange - * Fires when the configuration is changed - * @param {ColumnModel} this - */ - "configchange" - ); - - Ext.grid.ColumnModel.superclass.constructor.call(this); - }, - - /** - * Returns the id of the column at the specified index. - * @param {Number} index The column index - * @return {String} the id - */ - getColumnId : function(index) { - return this.config[index].id; - }, - - getColumnAt : function(index) { - return this.config[index]; - }, - - /** - *

    Reconfigures this column model according to the passed Array of column definition objects. - * For a description of the individual properties of a column definition object, see the - * Config Options.

    - *

    Causes the {@link #configchange} event to be fired. A {@link Ext.grid.GridPanel GridPanel} - * using this ColumnModel will listen for this event and refresh its UI automatically.

    - * @param {Array} config Array of Column definition objects. - * @param {Boolean} initial Specify true to bypass cleanup which deletes the totalWidth - * and destroys existing editors. - */ - setConfig : function(config, initial) { - var i, c, len; - - if (!initial) { // cleanup - delete this.totalWidth; - - for (i = 0, len = this.config.length; i < len; i++) { - c = this.config[i]; - - if (c.setEditor) { - //check here, in case we have a special column like a CheckboxSelectionModel - c.setEditor(null); - } - } - } - - // backward compatibility - this.defaults = Ext.apply({ - width: this.defaultWidth, - sortable: this.defaultSortable - }, this.defaults); - - this.config = config; - this.lookup = {}; - - for (i = 0, len = config.length; i < len; i++) { - c = Ext.applyIf(config[i], this.defaults); - - // if no id, create one using column's ordinal position - if (Ext.isEmpty(c.id)) { - c.id = i; - } - - if (!c.isColumn) { - var Cls = Ext.grid.Column.types[c.xtype || 'gridcolumn']; - c = new Cls(c); - config[i] = c; - } - - this.lookup[c.id] = c; - } - - if (!initial) { - this.fireEvent('configchange', this); - } - }, - - /** - * Returns the column for a specified id. - * @param {String} id The column id - * @return {Object} the column - */ - getColumnById : function(id) { - return this.lookup[id]; - }, - - /** - * Returns the index for a specified column id. - * @param {String} id The column id - * @return {Number} the index, or -1 if not found - */ - getIndexById : function(id) { - for (var i = 0, len = this.config.length; i < len; i++) { - if (this.config[i].id == id) { - return i; - } - } - return -1; - }, - - /** - * Moves a column from one position to another. - * @param {Number} oldIndex The index of the column to move. - * @param {Number} newIndex The position at which to reinsert the coolumn. - */ - moveColumn : function(oldIndex, newIndex) { - var config = this.config, - c = config[oldIndex]; - - config.splice(oldIndex, 1); - config.splice(newIndex, 0, c); - this.dataMap = null; - this.fireEvent("columnmoved", this, oldIndex, newIndex); - }, - - /** - * Returns the number of columns. - * @param {Boolean} visibleOnly Optional. Pass as true to only include visible columns. - * @return {Number} - */ - getColumnCount : function(visibleOnly) { - var length = this.config.length, - c = 0, - i; - - if (visibleOnly === true) { - for (i = 0; i < length; i++) { - if (!this.isHidden(i)) { - c++; - } - } - - return c; - } - - return length; - }, - - /** - * Returns the column configs that return true by the passed function that is called - * with (columnConfig, index) -
    
    -// returns an array of column config objects for all hidden columns
    -var columns = grid.getColumnModel().getColumnsBy(function(c){
    -  return c.hidden;
    -});
    -
    - * @param {Function} fn A function which, when passed a {@link Ext.grid.Column Column} object, must - * return true if the column is to be included in the returned Array. - * @param {Object} scope (optional) The scope (this reference) in which the function - * is executed. Defaults to this ColumnModel. - * @return {Array} result - */ - getColumnsBy : function(fn, scope) { - var config = this.config, - length = config.length, - result = [], - i, c; - - for (i = 0; i < length; i++){ - c = config[i]; - - if (fn.call(scope || this, c, i) === true) { - result[result.length] = c; - } - } - - return result; - }, - - /** - * Returns true if the specified column is sortable. - * @param {Number} col The column index - * @return {Boolean} - */ - isSortable : function(col) { - return !!this.config[col].sortable; - }, - - /** - * Returns true if the specified column menu is disabled. - * @param {Number} col The column index - * @return {Boolean} - */ - isMenuDisabled : function(col) { - return !!this.config[col].menuDisabled; - }, - - /** - * Returns the rendering (formatting) function defined for the column. - * @param {Number} col The column index. - * @return {Function} The function used to render the cell. See {@link #setRenderer}. - */ - getRenderer : function(col) { - return this.config[col].renderer || Ext.grid.ColumnModel.defaultRenderer; - }, - - getRendererScope : function(col) { - return this.config[col].scope; - }, - - /** - * Sets the rendering (formatting) function for a column. See {@link Ext.util.Format} for some - * default formatting functions. - * @param {Number} col The column index - * @param {Function} fn The function to use to process the cell's raw data - * to return HTML markup for the grid view. The render function is called with - * the following parameters:
      - *
    • value : Object

      The data value for the cell.

    • - *
    • metadata : Object

      An object in which you may set the following attributes:

        - *
      • css : String

        A CSS class name to add to the cell's TD element.

      • - *
      • attr : String

        An HTML attribute definition string to apply to the data container element within the table cell - * (e.g. 'style="color:red;"').

    • - *
    • record : Ext.data.record

      The {@link Ext.data.Record} from which the data was extracted.

    • - *
    • rowIndex : Number

      Row index

    • - *
    • colIndex : Number

      Column index

    • - *
    • store : Ext.data.Store

      The {@link Ext.data.Store} object from which the Record was extracted.

    - */ - setRenderer : function(col, fn) { - this.config[col].renderer = fn; - }, - - /** - * Returns the width for the specified column. - * @param {Number} col The column index - * @return {Number} - */ - getColumnWidth : function(col) { - var width = this.config[col].width; - if(typeof width != 'number'){ - width = this.defaultWidth; - } - return width; - }, - - /** - * Sets the width for a column. - * @param {Number} col The column index - * @param {Number} width The new width - * @param {Boolean} suppressEvent True to suppress firing the {@link #widthchange} - * event. Defaults to false. - */ - setColumnWidth : function(col, width, suppressEvent) { - this.config[col].width = width; - this.totalWidth = null; - - if (!suppressEvent) { - this.fireEvent("widthchange", this, col, width); - } - }, - - /** - * Returns the total width of all columns. - * @param {Boolean} includeHidden True to include hidden column widths - * @return {Number} - */ - getTotalWidth : function(includeHidden) { - if (!this.totalWidth) { - this.totalWidth = 0; - for (var i = 0, len = this.config.length; i < len; i++) { - if (includeHidden || !this.isHidden(i)) { - this.totalWidth += this.getColumnWidth(i); - } - } - } - return this.totalWidth; - }, - - /** - * Returns the header for the specified column. - * @param {Number} col The column index - * @return {String} - */ - getColumnHeader : function(col) { - return this.config[col].header; - }, - - /** - * Sets the header for a column. - * @param {Number} col The column index - * @param {String} header The new header - */ - setColumnHeader : function(col, header) { - this.config[col].header = header; - this.fireEvent("headerchange", this, col, header); - }, - - /** - * Returns the tooltip for the specified column. - * @param {Number} col The column index - * @return {String} - */ - getColumnTooltip : function(col) { - return this.config[col].tooltip; - }, - /** - * Sets the tooltip for a column. - * @param {Number} col The column index - * @param {String} tooltip The new tooltip - */ - setColumnTooltip : function(col, tooltip) { - this.config[col].tooltip = tooltip; - }, - - /** - * Returns the dataIndex for the specified column. -
    
    -// Get field name for the column
    -var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
    -
    - * @param {Number} col The column index - * @return {String} The column's dataIndex - */ - getDataIndex : function(col) { - return this.config[col].dataIndex; - }, - - /** - * Sets the dataIndex for a column. - * @param {Number} col The column index - * @param {String} dataIndex The new dataIndex - */ - setDataIndex : function(col, dataIndex) { - this.config[col].dataIndex = dataIndex; - }, - - /** - * Finds the index of the first matching column for the given dataIndex. - * @param {String} col The dataIndex to find - * @return {Number} The column index, or -1 if no match was found - */ - findColumnIndex : function(dataIndex) { - var c = this.config; - for(var i = 0, len = c.length; i < len; i++){ - if(c[i].dataIndex == dataIndex){ - return i; - } - } - return -1; - }, - - /** - * Returns true if the cell is editable. -
    
    -var store = new Ext.data.Store({...});
    -var colModel = new Ext.grid.ColumnModel({
    -  columns: [...],
    -  isCellEditable: function(col, row) {
    -    var record = store.getAt(row);
    -    if (record.get('readonly')) { // replace with your condition
    -      return false;
    -    }
    -    return Ext.grid.ColumnModel.prototype.isCellEditable.call(this, col, row);
    -  }
    -});
    -var grid = new Ext.grid.GridPanel({
    -  store: store,
    -  colModel: colModel,
    -  ...
    -});
    -
    - * @param {Number} colIndex The column index - * @param {Number} rowIndex The row index - * @return {Boolean} - */ - isCellEditable : function(colIndex, rowIndex) { - var c = this.config[colIndex], - ed = c.editable; - - //force boolean - return !!(ed || (!Ext.isDefined(ed) && c.editor)); - }, - - /** - * Returns the editor defined for the cell/column. - * @param {Number} colIndex The column index - * @param {Number} rowIndex The row index - * @return {Ext.Editor} The {@link Ext.Editor Editor} that was created to wrap - * the {@link Ext.form.Field Field} used to edit the cell. - */ - getCellEditor : function(colIndex, rowIndex) { - return this.config[colIndex].getCellEditor(rowIndex); - }, - - /** - * Sets if a column is editable. - * @param {Number} col The column index - * @param {Boolean} editable True if the column is editable - */ - setEditable : function(col, editable) { - this.config[col].editable = editable; - }, - - /** - * Returns true if the column is {@link Ext.grid.Column#hidden hidden}, - * false otherwise. - * @param {Number} colIndex The column index - * @return {Boolean} - */ - isHidden : function(colIndex) { - return !!this.config[colIndex].hidden; // ensure returns boolean - }, - - /** - * Returns true if the column is {@link Ext.grid.Column#fixed fixed}, - * false otherwise. - * @param {Number} colIndex The column index - * @return {Boolean} - */ - isFixed : function(colIndex) { - return !!this.config[colIndex].fixed; - }, - - /** - * Returns true if the column can be resized - * @return {Boolean} - */ - isResizable : function(colIndex) { - return colIndex >= 0 && this.config[colIndex].resizable !== false && this.config[colIndex].fixed !== true; - }, - - /** - * Sets if a column is hidden. -
    
    -myGrid.getColumnModel().setHidden(0, true); // hide column 0 (0 = the first column).
    -
    - * @param {Number} colIndex The column index - * @param {Boolean} hidden True if the column is hidden - */ - setHidden : function(colIndex, hidden) { - var c = this.config[colIndex]; - if(c.hidden !== hidden){ - c.hidden = hidden; - this.totalWidth = null; - this.fireEvent("hiddenchange", this, colIndex, hidden); - } - }, - - /** - * Sets the editor for a column and destroys the prior editor. - * @param {Number} col The column index - * @param {Object} editor The editor object - */ - setEditor : function(col, editor) { - this.config[col].setEditor(editor); - }, - - /** - * Destroys this column model by purging any event listeners. Destroys and dereferences all Columns. - */ - destroy : function() { - var length = this.config.length, - i = 0; - - for (; i < length; i++){ - this.config[i].destroy(); // Column's destroy encapsulates all cleanup. - } - delete this.config; - delete this.lookup; - this.purgeListeners(); - }, - - /** - * @private - * Setup any saved state for the column, ensures that defaults are applied. - */ - setState : function(col, state) { - state = Ext.applyIf(state, this.defaults); - Ext.apply(this.config[col], state); - } -}); - -// private -Ext.grid.ColumnModel.defaultRenderer = function(value) { - if (typeof value == "string" && value.length < 1) { - return " "; - } - return value; -};/** - * @class Ext.grid.AbstractSelectionModel - * @extends Ext.util.Observable - * Abstract base class for grid SelectionModels. It provides the interface that should be - * implemented by descendant classes. This class should not be directly instantiated. - * @constructor - */ -Ext.grid.AbstractSelectionModel = Ext.extend(Ext.util.Observable, { - /** - * The GridPanel for which this SelectionModel is handling selection. Read-only. - * @type Object - * @property grid - */ - - constructor : function(){ - this.locked = false; - Ext.grid.AbstractSelectionModel.superclass.constructor.call(this); - }, - - /** @ignore Called by the grid automatically. Do not call directly. */ - init : function(grid){ - this.grid = grid; - if(this.lockOnInit){ - delete this.lockOnInit; - this.locked = false; - this.lock(); - } - this.initEvents(); - }, - - /** - * Locks the selections. - */ - lock : function(){ - if(!this.locked){ - this.locked = true; - // If the grid has been set, then the view is already initialized. - var g = this.grid; - if(g){ - g.getView().on({ - scope: this, - beforerefresh: this.sortUnLock, - refresh: this.sortLock - }); - }else{ - this.lockOnInit = true; - } - } - }, - - // set the lock states before and after a view refresh - sortLock : function() { - this.locked = true; - }, - - // set the lock states before and after a view refresh - sortUnLock : function() { - this.locked = false; - }, - - /** - * Unlocks the selections. - */ - unlock : function(){ - if(this.locked){ - this.locked = false; - var g = this.grid, - gv; - - // If the grid has been set, then the view is already initialized. - if(g){ - gv = g.getView(); - gv.un('beforerefresh', this.sortUnLock, this); - gv.un('refresh', this.sortLock, this); - }else{ - delete this.lockOnInit; - } - } - }, - - /** - * Returns true if the selections are locked. - * @return {Boolean} - */ - isLocked : function(){ - return this.locked; - }, - - destroy: function(){ - this.unlock(); - this.purgeListeners(); - } -});/** - * @class Ext.grid.RowSelectionModel - * @extends Ext.grid.AbstractSelectionModel - * The default SelectionModel used by {@link Ext.grid.GridPanel}. - * It supports multiple selections and keyboard selection/navigation. The objects stored - * as selections and returned by {@link #getSelected}, and {@link #getSelections} are - * the {@link Ext.data.Record Record}s which provide the data for the selected rows. - * @constructor - * @param {Object} config - */ -Ext.grid.RowSelectionModel = Ext.extend(Ext.grid.AbstractSelectionModel, { - /** - * @cfg {Boolean} singleSelect - * true to allow selection of only one row at a time (defaults to false - * allowing multiple selections) - */ - singleSelect : false, - - constructor : function(config){ - Ext.apply(this, config); - this.selections = new Ext.util.MixedCollection(false, function(o){ - return o.id; - }); - - this.last = false; - this.lastActive = false; - - this.addEvents( - /** - * @event selectionchange - * Fires when the selection changes - * @param {SelectionModel} this - */ - 'selectionchange', - /** - * @event beforerowselect - * Fires before a row is selected, return false to cancel the selection. - * @param {SelectionModel} this - * @param {Number} rowIndex The index to be selected - * @param {Boolean} keepExisting False if other selections will be cleared - * @param {Record} record The record to be selected - */ - 'beforerowselect', - /** - * @event rowselect - * Fires when a row is selected. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected index - * @param {Ext.data.Record} r The selected record - */ - 'rowselect', - /** - * @event rowdeselect - * Fires when a row is deselected. To prevent deselection - * {@link Ext.grid.AbstractSelectionModel#lock lock the selections}. - * @param {SelectionModel} this - * @param {Number} rowIndex - * @param {Record} record - */ - 'rowdeselect' - ); - Ext.grid.RowSelectionModel.superclass.constructor.call(this); - }, - - /** - * @cfg {Boolean} moveEditorOnEnter - * false to turn off moving the editor to the next row down when the enter key is pressed - * or the next row up when shift + enter keys are pressed. - */ - // private - initEvents : function(){ - - if(!this.grid.enableDragDrop && !this.grid.enableDrag){ - this.grid.on('rowmousedown', this.handleMouseDown, this); - } - - this.rowNav = new Ext.KeyNav(this.grid.getGridEl(), { - up: this.onKeyPress, - down: this.onKeyPress, - scope: this - }); - - this.grid.getView().on({ - scope: this, - refresh: this.onRefresh, - rowupdated: this.onRowUpdated, - rowremoved: this.onRemove - }); - }, - - onKeyPress : function(e, name){ - var up = name == 'up', - method = up ? 'selectPrevious' : 'selectNext', - add = up ? -1 : 1, - last; - if(!e.shiftKey || this.singleSelect){ - this[method](false); - }else if(this.last !== false && this.lastActive !== false){ - last = this.last; - this.selectRange(this.last, this.lastActive + add); - this.grid.getView().focusRow(this.lastActive); - if(last !== false){ - this.last = last; - } - }else{ - this.selectFirstRow(); - } - }, - - // private - onRefresh : function(){ - var ds = this.grid.store, - s = this.getSelections(), - i = 0, - len = s.length, - index, r; - - this.silent = true; - this.clearSelections(true); - for(; i < len; i++){ - r = s[i]; - if((index = ds.indexOfId(r.id)) != -1){ - this.selectRow(index, true); - } - } - if(s.length != this.selections.getCount()){ - this.fireEvent('selectionchange', this); - } - this.silent = false; - }, - - // private - onRemove : function(v, index, r){ - if(this.selections.remove(r) !== false){ - this.fireEvent('selectionchange', this); - } - }, - - // private - onRowUpdated : function(v, index, r){ - if(this.isSelected(r)){ - v.onRowSelect(index); - } - }, - - /** - * Select records. - * @param {Array} records The records to select - * @param {Boolean} keepExisting (optional) true to keep existing selections - */ - selectRecords : function(records, keepExisting){ - if(!keepExisting){ - this.clearSelections(); - } - var ds = this.grid.store, - i = 0, - len = records.length; - for(; i < len; i++){ - this.selectRow(ds.indexOf(records[i]), true); - } - }, - - /** - * Gets the number of selected rows. - * @return {Number} - */ - getCount : function(){ - return this.selections.length; - }, - - /** - * Selects the first row in the grid. - */ - selectFirstRow : function(){ - this.selectRow(0); - }, - - /** - * Select the last row. - * @param {Boolean} keepExisting (optional) true to keep existing selections - */ - selectLastRow : function(keepExisting){ - this.selectRow(this.grid.store.getCount() - 1, keepExisting); - }, - - /** - * Selects the row immediately following the last selected row. - * @param {Boolean} keepExisting (optional) true to keep existing selections - * @return {Boolean} true if there is a next row, else false - */ - selectNext : function(keepExisting){ - if(this.hasNext()){ - this.selectRow(this.last+1, keepExisting); - this.grid.getView().focusRow(this.last); - return true; - } - return false; - }, - - /** - * Selects the row that precedes the last selected row. - * @param {Boolean} keepExisting (optional) true to keep existing selections - * @return {Boolean} true if there is a previous row, else false - */ - selectPrevious : function(keepExisting){ - if(this.hasPrevious()){ - this.selectRow(this.last-1, keepExisting); - this.grid.getView().focusRow(this.last); - return true; - } - return false; - }, - - /** - * Returns true if there is a next record to select - * @return {Boolean} - */ - hasNext : function(){ - return this.last !== false && (this.last+1) < this.grid.store.getCount(); - }, - - /** - * Returns true if there is a previous record to select - * @return {Boolean} - */ - hasPrevious : function(){ - return !!this.last; - }, - - - /** - * Returns the selected records - * @return {Array} Array of selected records - */ - getSelections : function(){ - return [].concat(this.selections.items); - }, - - /** - * Returns the first selected record. - * @return {Record} - */ - getSelected : function(){ - return this.selections.itemAt(0); - }, - - /** - * Calls the passed function with each selection. If the function returns - * false, iteration is stopped and this function returns - * false. Otherwise it returns true. - * @param {Function} fn The function to call upon each iteration. It is passed the selected {@link Ext.data.Record Record}. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. Defaults to this RowSelectionModel. - * @return {Boolean} true if all selections were iterated - */ - each : function(fn, scope){ - var s = this.getSelections(), - i = 0, - len = s.length; - - for(; i < len; i++){ - if(fn.call(scope || this, s[i], i) === false){ - return false; - } - } - return true; - }, - - /** - * Clears all selections if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is not locked}. - * @param {Boolean} fast (optional) true to bypass the - * conditional checks and events described in {@link #deselectRow}. - */ - clearSelections : function(fast){ - if(this.isLocked()){ - return; - } - if(fast !== true){ - var ds = this.grid.store, - s = this.selections; - s.each(function(r){ - this.deselectRow(ds.indexOfId(r.id)); - }, this); - s.clear(); - }else{ - this.selections.clear(); - } - this.last = false; - }, - - - /** - * Selects all rows if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is not locked}. - */ - selectAll : function(){ - if(this.isLocked()){ - return; - } - this.selections.clear(); - for(var i = 0, len = this.grid.store.getCount(); i < len; i++){ - this.selectRow(i, true); - } - }, - - /** - * Returns true if there is a selection. - * @return {Boolean} - */ - hasSelection : function(){ - return this.selections.length > 0; - }, - - /** - * Returns true if the specified row is selected. - * @param {Number/Record} index The record or index of the record to check - * @return {Boolean} - */ - isSelected : function(index){ - var r = Ext.isNumber(index) ? this.grid.store.getAt(index) : index; - return (r && this.selections.key(r.id) ? true : false); - }, - - /** - * Returns true if the specified record id is selected. - * @param {String} id The id of record to check - * @return {Boolean} - */ - isIdSelected : function(id){ - return (this.selections.key(id) ? true : false); - }, - - // private - handleMouseDown : function(g, rowIndex, e){ - if(e.button !== 0 || this.isLocked()){ - return; - } - var view = this.grid.getView(); - if(e.shiftKey && !this.singleSelect && this.last !== false){ - var last = this.last; - this.selectRange(last, rowIndex, e.ctrlKey); - this.last = last; // reset the last - view.focusRow(rowIndex); - }else{ - var isSelected = this.isSelected(rowIndex); - if(e.ctrlKey && isSelected){ - this.deselectRow(rowIndex); - }else if(!isSelected || this.getCount() > 1){ - this.selectRow(rowIndex, e.ctrlKey || e.shiftKey); - view.focusRow(rowIndex); - } - } - }, - - /** - * Selects multiple rows. - * @param {Array} rows Array of the indexes of the row to select - * @param {Boolean} keepExisting (optional) true to keep - * existing selections (defaults to false) - */ - selectRows : function(rows, keepExisting){ - if(!keepExisting){ - this.clearSelections(); - } - for(var i = 0, len = rows.length; i < len; i++){ - this.selectRow(rows[i], true); - } - }, - - /** - * Selects a range of rows if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is not locked}. - * All rows in between startRow and endRow are also selected. - * @param {Number} startRow The index of the first row in the range - * @param {Number} endRow The index of the last row in the range - * @param {Boolean} keepExisting (optional) True to retain existing selections - */ - selectRange : function(startRow, endRow, keepExisting){ - var i; - if(this.isLocked()){ - return; - } - if(!keepExisting){ - this.clearSelections(); - } - if(startRow <= endRow){ - for(i = startRow; i <= endRow; i++){ - this.selectRow(i, true); - } - }else{ - for(i = startRow; i >= endRow; i--){ - this.selectRow(i, true); - } - } - }, - - /** - * Deselects a range of rows if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is not locked}. - * All rows in between startRow and endRow are also deselected. - * @param {Number} startRow The index of the first row in the range - * @param {Number} endRow The index of the last row in the range - */ - deselectRange : function(startRow, endRow, preventViewNotify){ - if(this.isLocked()){ - return; - } - for(var i = startRow; i <= endRow; i++){ - this.deselectRow(i, preventViewNotify); - } - }, - - /** - * Selects a row. Before selecting a row, checks if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is locked} and fires the - * {@link #beforerowselect} event. If these checks are satisfied the row - * will be selected and followed up by firing the {@link #rowselect} and - * {@link #selectionchange} events. - * @param {Number} row The index of the row to select - * @param {Boolean} keepExisting (optional) true to keep existing selections - * @param {Boolean} preventViewNotify (optional) Specify true to - * prevent notifying the view (disables updating the selected appearance) - */ - selectRow : function(index, keepExisting, preventViewNotify){ - if(this.isLocked() || (index < 0 || index >= this.grid.store.getCount()) || (keepExisting && this.isSelected(index))){ - return; - } - var r = this.grid.store.getAt(index); - if(r && this.fireEvent('beforerowselect', this, index, keepExisting, r) !== false){ - if(!keepExisting || this.singleSelect){ - this.clearSelections(); - } - this.selections.add(r); - this.last = this.lastActive = index; - if(!preventViewNotify){ - this.grid.getView().onRowSelect(index); - } - if(!this.silent){ - this.fireEvent('rowselect', this, index, r); - this.fireEvent('selectionchange', this); - } - } - }, - - /** - * Deselects a row. Before deselecting a row, checks if the selection model - * {@link Ext.grid.AbstractSelectionModel#isLocked is locked}. - * If this check is satisfied the row will be deselected and followed up by - * firing the {@link #rowdeselect} and {@link #selectionchange} events. - * @param {Number} row The index of the row to deselect - * @param {Boolean} preventViewNotify (optional) Specify true to - * prevent notifying the view (disables updating the selected appearance) - */ - deselectRow : function(index, preventViewNotify){ - if(this.isLocked()){ - return; - } - if(this.last == index){ - this.last = false; - } - if(this.lastActive == index){ - this.lastActive = false; - } - var r = this.grid.store.getAt(index); - if(r){ - this.selections.remove(r); - if(!preventViewNotify){ - this.grid.getView().onRowDeselect(index); - } - this.fireEvent('rowdeselect', this, index, r); - this.fireEvent('selectionchange', this); - } - }, - - // private - acceptsNav : function(row, col, cm){ - return !cm.isHidden(col) && cm.isCellEditable(col, row); - }, - - // private - onEditorKey : function(field, e){ - var k = e.getKey(), - newCell, - g = this.grid, - last = g.lastEdit, - ed = g.activeEditor, - shift = e.shiftKey, - ae, last, r, c; - - if(k == e.TAB){ - e.stopEvent(); - ed.completeEdit(); - if(shift){ - newCell = g.walkCells(ed.row, ed.col-1, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(ed.row, ed.col+1, 1, this.acceptsNav, this); - } - }else if(k == e.ENTER){ - if(this.moveEditorOnEnter !== false){ - if(shift){ - newCell = g.walkCells(last.row - 1, last.col, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(last.row + 1, last.col, 1, this.acceptsNav, this); - } - } - } - if(newCell){ - r = newCell[0]; - c = newCell[1]; - - this.onEditorSelect(r, last.row); - - if(g.isEditor && g.editing){ // *** handle tabbing while editorgrid is in edit mode - ae = g.activeEditor; - if(ae && ae.field.triggerBlur){ - // *** if activeEditor is a TriggerField, explicitly call its triggerBlur() method - ae.field.triggerBlur(); - } - } - g.startEditing(r, c); - } - }, - - onEditorSelect: function(row, lastRow){ - if(lastRow != row){ - this.selectRow(row); // *** highlight newly-selected cell and update selection - } - }, - - destroy : function(){ - Ext.destroy(this.rowNav); - this.rowNav = null; - Ext.grid.RowSelectionModel.superclass.destroy.call(this); - } -}); -/** - * @class Ext.grid.Column - *

    This class encapsulates column configuration data to be used in the initialization of a - * {@link Ext.grid.ColumnModel ColumnModel}.

    - *

    While subclasses are provided to render data in different ways, this class renders a passed - * data field unchanged and is usually used for textual columns.

    - */ -Ext.grid.Column = Ext.extend(Ext.util.Observable, { - /** - * @cfg {Boolean} editable Optional. Defaults to true, enabling the configured - * {@link #editor}. Set to false to initially disable editing on this column. - * The initial configuration may be dynamically altered using - * {@link Ext.grid.ColumnModel}.{@link Ext.grid.ColumnModel#setEditable setEditable()}. - */ - /** - * @cfg {String} id Optional. A name which identifies this column (defaults to the column's initial - * ordinal position.) The id is used to create a CSS class name which is applied to all - * table cells (including headers) in that column (in this context the id does not need to be - * unique). The class name takes the form of
    x-grid3-td-id
    - * Header cells will also receive this class name, but will also have the class
    x-grid3-hd
    - * So, to target header cells, use CSS selectors such as:
    .x-grid3-hd-row .x-grid3-td-id
    - * The {@link Ext.grid.GridPanel#autoExpandColumn} grid config option references the column via this - * unique identifier. - */ - /** - * @cfg {String} header Optional. The header text to be used as innerHTML - * (html tags are accepted) to display in the Grid view. Note: to - * have a clickable header with no text displayed use '&#160;'. - */ - /** - * @cfg {Boolean} groupable Optional. If the grid is being rendered by an {@link Ext.grid.GroupingView}, this option - * may be used to disable the header menu item to group by the column selected. Defaults to true, - * which enables the header menu group option. Set to false to disable (but still show) the - * group option in the header menu for the column. See also {@link #groupName}. - */ - /** - * @cfg {String} groupName Optional. If the grid is being rendered by an {@link Ext.grid.GroupingView}, this option - * may be used to specify the text with which to prefix the group field value in the group header line. - * See also {@link #groupRenderer} and - * {@link Ext.grid.GroupingView}.{@link Ext.grid.GroupingView#showGroupName showGroupName}. - */ - /** - * @cfg {Function} groupRenderer

    Optional. If the grid is being rendered by an {@link Ext.grid.GroupingView}, this option - * may be used to specify the function used to format the grouping field value for display in the group - * {@link #groupName header}. If a groupRenderer is not specified, the configured - * {@link #renderer} will be called; if a {@link #renderer} is also not specified - * the new value of the group field will be used.

    - *

    The called function (either the groupRenderer or {@link #renderer}) will be - * passed the following parameters: - *

      - *
    • v : Object

      The new value of the group field.

    • - *
    • unused : undefined

      Unused parameter.

    • - *
    • r : Ext.data.Record

      The Record providing the data - * for the row which caused group change.

    • - *
    • rowIndex : Number

      The row index of the Record which caused group change.

    • - *
    • colIndex : Number

      The column index of the group field.

    • - *
    • ds : Ext.data.Store

      The Store which is providing the data Model.

    • - *

    - *

    The function should return a string value.

    - */ - /** - * @cfg {String} emptyGroupText Optional. If the grid is being rendered by an {@link Ext.grid.GroupingView}, this option - * may be used to specify the text to display when there is an empty group value. Defaults to the - * {@link Ext.grid.GroupingView}.{@link Ext.grid.GroupingView#emptyGroupText emptyGroupText}. - */ - /** - * @cfg {String} dataIndex

    Required. The name of the field in the - * grid's {@link Ext.data.Store}'s {@link Ext.data.Record} definition from - * which to draw the column's value.

    - */ - /** - * @cfg {Number} width - * Optional. The initial width in pixels of the column. - * The width of each column can also be affected if any of the following are configured: - *
      - *
    • {@link Ext.grid.GridPanel}.{@link Ext.grid.GridPanel#autoExpandColumn autoExpandColumn}
    • - *
    • {@link Ext.grid.GridView}.{@link Ext.grid.GridView#forceFit forceFit} - *
      - *

      By specifying forceFit:true, {@link #fixed non-fixed width} columns will be - * re-proportioned (based on the relative initial widths) to fill the width of the grid so - * that no horizontal scrollbar is shown.

      - *
    • - *
    • {@link Ext.grid.GridView}.{@link Ext.grid.GridView#autoFill autoFill}
    • - *
    • {@link Ext.grid.GridPanel}.{@link Ext.grid.GridPanel#minColumnWidth minColumnWidth}
    • - *

      Note: when the width of each column is determined, a space on the right side - * is reserved for the vertical scrollbar. The - * {@link Ext.grid.GridView}.{@link Ext.grid.GridView#scrollOffset scrollOffset} - * can be modified to reduce or eliminate the reserved offset.

      - */ - /** - * @cfg {Boolean} sortable Optional. true if sorting is to be allowed on this column. - * Defaults to the value of the {@link Ext.grid.ColumnModel#defaultSortable} property. - * Whether local/remote sorting is used is specified in {@link Ext.data.Store#remoteSort}. - */ - /** - * @cfg {Boolean} fixed Optional. true if the column width cannot be changed. Defaults to false. - */ - /** - * @cfg {Boolean} resizable Optional. false to disable column resizing. Defaults to true. - */ - /** - * @cfg {Boolean} menuDisabled Optional. true to disable the column menu. Defaults to false. - */ - /** - * @cfg {Boolean} hidden - * Optional. true to initially hide this column. Defaults to false. - * A hidden column {@link Ext.grid.GridPanel#enableColumnHide may be shown via the header row menu}. - * If a column is never to be shown, simply do not include this column in the Column Model at all. - */ - /** - * @cfg {String} tooltip Optional. A text string to use as the column header's tooltip. If Quicktips - * are enabled, this value will be used as the text of the quick tip, otherwise it will be set as the - * header's HTML title attribute. Defaults to ''. - */ - /** - * @cfg {Mixed} renderer - *

      For an alternative to specifying a renderer see {@link #xtype}

      - *

      Optional. A renderer is an 'interceptor' method which can be used transform data (value, - * appearance, etc.) before it is rendered). This may be specified in either of three ways: - *

        - *
      • A renderer function used to return HTML markup for a cell given the cell's data value.
      • - *
      • A string which references a property name of the {@link Ext.util.Format} class which - * provides a renderer function.
      • - *
      • An object specifying both the renderer function, and its execution scope (this - * reference) e.g.:
        
        -{
        -    fn: this.gridRenderer,
        -    scope: this
        -}
        -
      - * If not specified, the default renderer uses the raw data value.

      - *

      For information about the renderer function (passed parameters, etc.), see - * {@link Ext.grid.ColumnModel#setRenderer}. An example of specifying renderer function inline:

      
      -var companyColumn = {
      -   header: 'Company Name',
      -   dataIndex: 'company',
      -   renderer: function(value, metaData, record, rowIndex, colIndex, store) {
      -      // provide the logic depending on business rules
      -      // name of your own choosing to manipulate the cell depending upon
      -      // the data in the underlying Record object.
      -      if (value == 'whatever') {
      -          //metaData.css : String : A CSS class name to add to the TD element of the cell.
      -          //metaData.attr : String : An html attribute definition string to apply to
      -          //                         the data container element within the table
      -          //                         cell (e.g. 'style="color:red;"').
      -          metaData.css = 'name-of-css-class-you-will-define';
      -      }
      -      return value;
      -   }
      -}
      -     * 
      - * See also {@link #scope}. - */ - /** - * @cfg {String} xtype Optional. A String which references a predefined {@link Ext.grid.Column} subclass - * type which is preconfigured with an appropriate {@link #renderer} to be easily - * configured into a ColumnModel. The predefined {@link Ext.grid.Column} subclass types are: - *
        - *
      • gridcolumn : {@link Ext.grid.Column} (Default)

      • - *
      • booleancolumn : {@link Ext.grid.BooleanColumn}

      • - *
      • numbercolumn : {@link Ext.grid.NumberColumn}

      • - *
      • datecolumn : {@link Ext.grid.DateColumn}

      • - *
      • templatecolumn : {@link Ext.grid.TemplateColumn}

      • - *
      - *

      Configuration properties for the specified xtype may be specified with - * the Column configuration properties, for example:

      - *
      
      -var grid = new Ext.grid.GridPanel({
      -    ...
      -    columns: [{
      -        header: 'Last Updated',
      -        dataIndex: 'lastChange',
      -        width: 85,
      -        sortable: true,
      -        //renderer: Ext.util.Format.dateRenderer('m/d/Y'),
      -        xtype: 'datecolumn', // use xtype instead of renderer
      -        format: 'M/d/Y' // configuration property for {@link Ext.grid.DateColumn}
      -    }, {
      -        ...
      -    }]
      -});
      -     * 
      - */ - /** - * @cfg {Object} scope Optional. The scope (this reference) in which to execute the - * renderer. Defaults to the Column configuration object. - */ - /** - * @cfg {String} align Optional. Set the CSS text-align property of the column. Defaults to undefined. - */ - /** - * @cfg {String} css Optional. An inline style definition string which is applied to all table cells in the column - * (excluding headers). Defaults to undefined. - */ - /** - * @cfg {Boolean} hideable Optional. Specify as false to prevent the user from hiding this column - * (defaults to true). To disallow column hiding globally for all columns in the grid, use - * {@link Ext.grid.GridPanel#enableColumnHide} instead. - */ - /** - * @cfg {Ext.form.Field} editor Optional. The {@link Ext.form.Field} to use when editing values in this column - * if editing is supported by the grid. See {@link #editable} also. - */ - - /** - * @private - * @cfg {Boolean} isColumn - * Used by ColumnModel setConfig method to avoid reprocessing a Column - * if isColumn is not set ColumnModel will recreate a new Ext.grid.Column - * Defaults to true. - */ - isColumn : true, - - constructor : function(config){ - Ext.apply(this, config); - - if(Ext.isString(this.renderer)){ - this.renderer = Ext.util.Format[this.renderer]; - }else if(Ext.isObject(this.renderer)){ - this.scope = this.renderer.scope; - this.renderer = this.renderer.fn; - } - if(!this.scope){ - this.scope = this; - } - - var ed = this.editor; - delete this.editor; - this.setEditor(ed); - this.addEvents( - /** - * @event click - * Fires when this Column is clicked. - * @param {Column} this - * @param {Grid} The owning GridPanel - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'click', - /** - * @event contextmenu - * Fires when this Column is right clicked. - * @param {Column} this - * @param {Grid} The owning GridPanel - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'contextmenu', - /** - * @event dblclick - * Fires when this Column is double clicked. - * @param {Column} this - * @param {Grid} The owning GridPanel - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'dblclick', - /** - * @event mousedown - * Fires when this Column receives a mousedown event. - * @param {Column} this - * @param {Grid} The owning GridPanel - * @param {Number} rowIndex - * @param {Ext.EventObject} e - */ - 'mousedown' - ); - Ext.grid.Column.superclass.constructor.call(this); - }, - - /** - * @private - * Process and refire events routed from the GridView's processEvent method. - * Returns the event handler's status to allow cancelling of GridView's bubbling process. - */ - processEvent : function(name, e, grid, rowIndex, colIndex){ - return this.fireEvent(name, this, grid, rowIndex, e); - }, - - /** - * @private - * Clean up. Remove any Editor. Remove any listeners. - */ - destroy: function() { - if(this.setEditor){ - this.setEditor(null); - } - this.purgeListeners(); - }, - - /** - * Optional. A function which returns displayable data when passed the following parameters: - *
        - *
      • value : Object

        The data value for the cell.

      • - *
      • metadata : Object

        An object in which you may set the following attributes:

          - *
        • css : String

          A CSS class name to add to the cell's TD element.

        • - *
        • attr : String

          An HTML attribute definition string to apply to the data container - * element within the table cell (e.g. 'style="color:red;"').

      • - *
      • record : Ext.data.record

        The {@link Ext.data.Record} from which the data was - * extracted.

      • - *
      • rowIndex : Number

        Row index

      • - *
      • colIndex : Number

        Column index

      • - *
      • store : Ext.data.Store

        The {@link Ext.data.Store} object from which the Record - * was extracted.

      • - *
      - * @property renderer - * @type Function - */ - renderer : function(value){ - return value; - }, - - // private - getEditor: function(rowIndex){ - return this.editable !== false ? this.editor : null; - }, - - /** - * Sets a new editor for this column. - * @param {Ext.Editor/Ext.form.Field} editor The editor to set - */ - setEditor : function(editor){ - var ed = this.editor; - if(ed){ - if(ed.gridEditor){ - ed.gridEditor.destroy(); - delete ed.gridEditor; - }else{ - ed.destroy(); - } - } - this.editor = null; - if(editor){ - //not an instance, create it - if(!editor.isXType){ - editor = Ext.create(editor, 'textfield'); - } - this.editor = editor; - } - }, - - /** - * Returns the {@link Ext.Editor editor} defined for this column that was created to wrap the {@link Ext.form.Field Field} - * used to edit the cell. - * @param {Number} rowIndex The row index - * @return {Ext.Editor} - */ - getCellEditor: function(rowIndex){ - var ed = this.getEditor(rowIndex); - if(ed){ - if(!ed.startEdit){ - if(!ed.gridEditor){ - ed.gridEditor = new Ext.grid.GridEditor(ed); - } - ed = ed.gridEditor; - } - } - return ed; - } -}); - -/** - * @class Ext.grid.BooleanColumn - * @extends Ext.grid.Column - *

      A Column definition class which renders boolean data fields. See the {@link Ext.grid.Column#xtype xtype} - * config option of {@link Ext.grid.Column} for more details.

      - */ -Ext.grid.BooleanColumn = Ext.extend(Ext.grid.Column, { - /** - * @cfg {String} trueText - * The string returned by the renderer when the column value is not falsy (defaults to 'true'). - */ - trueText: 'true', - /** - * @cfg {String} falseText - * The string returned by the renderer when the column value is falsy (but not undefined) (defaults to - * 'false'). - */ - falseText: 'false', - /** - * @cfg {String} undefinedText - * The string returned by the renderer when the column value is undefined (defaults to '&#160;'). - */ - undefinedText: ' ', - - constructor: function(cfg){ - Ext.grid.BooleanColumn.superclass.constructor.call(this, cfg); - var t = this.trueText, f = this.falseText, u = this.undefinedText; - this.renderer = function(v){ - if(v === undefined){ - return u; - } - if(!v || v === 'false'){ - return f; - } - return t; - }; - } -}); - -/** - * @class Ext.grid.NumberColumn - * @extends Ext.grid.Column - *

      A Column definition class which renders a numeric data field according to a {@link #format} string. See the - * {@link Ext.grid.Column#xtype xtype} config option of {@link Ext.grid.Column} for more details.

      - */ -Ext.grid.NumberColumn = Ext.extend(Ext.grid.Column, { - /** - * @cfg {String} format - * A formatting string as used by {@link Ext.util.Format#number} to format a numeric value for this Column - * (defaults to '0,000.00'). - */ - format : '0,000.00', - constructor: function(cfg){ - Ext.grid.NumberColumn.superclass.constructor.call(this, cfg); - this.renderer = Ext.util.Format.numberRenderer(this.format); - } -}); - -/** - * @class Ext.grid.DateColumn - * @extends Ext.grid.Column - *

      A Column definition class which renders a passed date according to the default locale, or a configured - * {@link #format}. See the {@link Ext.grid.Column#xtype xtype} config option of {@link Ext.grid.Column} - * for more details.

      - */ -Ext.grid.DateColumn = Ext.extend(Ext.grid.Column, { - /** - * @cfg {String} format - * A formatting string as used by {@link Date#format} to format a Date for this Column - * (defaults to 'm/d/Y'). - */ - format : 'm/d/Y', - constructor: function(cfg){ - Ext.grid.DateColumn.superclass.constructor.call(this, cfg); - this.renderer = Ext.util.Format.dateRenderer(this.format); - } -}); - -/** - * @class Ext.grid.TemplateColumn - * @extends Ext.grid.Column - *

      A Column definition class which renders a value by processing a {@link Ext.data.Record Record}'s - * {@link Ext.data.Record#data data} using a {@link #tpl configured} {@link Ext.XTemplate XTemplate}. - * See the {@link Ext.grid.Column#xtype xtype} config option of {@link Ext.grid.Column} for more - * details.

      - */ -Ext.grid.TemplateColumn = Ext.extend(Ext.grid.Column, { - /** - * @cfg {String/XTemplate} tpl - * An {@link Ext.XTemplate XTemplate}, or an XTemplate definition string to use to process a - * {@link Ext.data.Record Record}'s {@link Ext.data.Record#data data} to produce a column's rendered value. - */ - constructor: function(cfg){ - Ext.grid.TemplateColumn.superclass.constructor.call(this, cfg); - var tpl = (!Ext.isPrimitive(this.tpl) && this.tpl.compile) ? this.tpl : new Ext.XTemplate(this.tpl); - this.renderer = function(value, p, r){ - return tpl.apply(r.data); - }; - this.tpl = tpl; - } -}); - -/** - * @class Ext.grid.ActionColumn - * @extends Ext.grid.Column - *

      A Grid column type which renders an icon, or a series of icons in a grid cell, and offers a scoped click - * handler for each icon. Example usage:

      -
      
      -new Ext.grid.GridPanel({
      -    store: myStore,
      -    columns: [
      -        {
      -            xtype: 'actioncolumn',
      -            width: 50,
      -            items: [
      -                {
      -                    icon   : 'sell.gif',                // Use a URL in the icon config
      -                    tooltip: 'Sell stock',
      -                    handler: function(grid, rowIndex, colIndex) {
      -                        var rec = store.getAt(rowIndex);
      -                        alert("Sell " + rec.get('company'));
      -                    }
      -                },
      -                {
      -                    getClass: function(v, meta, rec) {  // Or return a class from a function
      -                        if (rec.get('change') < 0) {
      -                            this.items[1].tooltip = 'Do not buy!';
      -                            return 'alert-col';
      -                        } else {
      -                            this.items[1].tooltip = 'Buy stock';
      -                            return 'buy-col';
      -                        }
      -                    },
      -                    handler: function(grid, rowIndex, colIndex) {
      -                        var rec = store.getAt(rowIndex);
      -                        alert("Buy " + rec.get('company'));
      -                    }
      -                }
      -            ]
      -        }
      -        //any other columns here
      -    ]
      -});
      -
      - *

      The action column can be at any index in the columns array, and a grid can have any number of - * action columns.

      - */ -Ext.grid.ActionColumn = Ext.extend(Ext.grid.Column, { - /** - * @cfg {String} icon - * The URL of an image to display as the clickable element in the column. - * Optional - defaults to {@link Ext#BLANK_IMAGE_URL Ext.BLANK_IMAGE_URL}. - */ - /** - * @cfg {String} iconCls - * A CSS class to apply to the icon image. To determine the class dynamically, configure the Column with a {@link #getClass} function. - */ - /** - * @cfg {Function} handler A function called when the icon is clicked. - * The handler is passed the following parameters:
        - *
      • grid : GridPanel
        The owning GridPanel.
      • - *
      • rowIndex : Number
        The row index clicked on.
      • - *
      • colIndex : Number
        The column index clicked on.
      • - *
      • item : Object
        The clicked item (or this Column if multiple - * {@link #items} were not configured).
      • - *
      • e : Event
        The click event.
      • - *
      - */ - /** - * @cfg {Object} scope The scope (this reference) in which the {@link #handler} - * and {@link #getClass} fuctions are executed. Defaults to this Column. - */ - /** - * @cfg {String} tooltip A tooltip message to be displayed on hover. {@link Ext.QuickTips#init Ext.QuickTips} must have - * been initialized. - */ - /** - * @cfg {Boolean} stopSelection Defaults to true. Prevent grid row selection upon mousedown. - */ - /** - * @cfg {Function} getClass A function which returns the CSS class to apply to the icon image. - * The function is passed the following parameters:
        - *
      • v : Object

        The value of the column's configured field (if any).

      • - *
      • metadata : Object

        An object in which you may set the following attributes:

          - *
        • css : String

          A CSS class name to add to the cell's TD element.

        • - *
        • attr : String

          An HTML attribute definition string to apply to the data container element within the table cell - * (e.g. 'style="color:red;"').

        • - *

      • - *
      • r : Ext.data.Record

        The Record providing the data.

      • - *
      • rowIndex : Number

        The row index..

      • - *
      • colIndex : Number

        The column index.

      • - *
      • store : Ext.data.Store

        The Store which is providing the data Model.

      • - *
      - */ - /** - * @cfg {Array} items An Array which may contain multiple icon definitions, each element of which may contain: - *
        - *
      • icon : String
        The url of an image to display as the clickable element - * in the column.
      • - *
      • iconCls : String
        A CSS class to apply to the icon image. - * To determine the class dynamically, configure the item with a getClass function.
      • - *
      • getClass : Function
        A function which returns the CSS class to apply to the icon image. - * The function is passed the following parameters:
          - *
        • v : Object

          The value of the column's configured field (if any).

        • - *
        • metadata : Object

          An object in which you may set the following attributes:

            - *
          • css : String

            A CSS class name to add to the cell's TD element.

          • - *
          • attr : String

            An HTML attribute definition string to apply to the data container element within the table cell - * (e.g. 'style="color:red;"').

          • - *

        • - *
        • r : Ext.data.Record

          The Record providing the data.

        • - *
        • rowIndex : Number

          The row index..

        • - *
        • colIndex : Number

          The column index.

        • - *
        • store : Ext.data.Store

          The Store which is providing the data Model.

        • - *
      • - *
      • handler : Function
        A function called when the icon is clicked.
      • - *
      • scope : Scope
        The scope (this reference) in which the - * handler and getClass functions are executed. Fallback defaults are this Column's - * configured scope, then this Column.
      • - *
      • tooltip : String
        A tooltip message to be displayed on hover. - * {@link Ext.QuickTips#init Ext.QuickTips} must have been initialized.
      • - *
      - */ - header: ' ', - - actionIdRe: /x-action-col-(\d+)/, - - /** - * @cfg {String} altText The alt text to use for the image element. Defaults to ''. - */ - altText: '', - - constructor: function(cfg) { - var me = this, - items = cfg.items || (me.items = [me]), - l = items.length, - i, - item; - - Ext.grid.ActionColumn.superclass.constructor.call(me, cfg); - -// Renderer closure iterates through items creating an element for each and tagging with an identifying -// class name x-action-col-{n} - me.renderer = function(v, meta) { -// Allow a configured renderer to create initial value (And set the other values in the "metadata" argument!) - v = Ext.isFunction(cfg.renderer) ? cfg.renderer.apply(this, arguments)||'' : ''; - - meta.css += ' x-action-col-cell'; - for (i = 0; i < l; i++) { - item = items[i]; - v += '' + (item.altText || me.altText) + ''; - } - return v; - }; - }, - - destroy: function() { - delete this.items; - delete this.renderer; - return Ext.grid.ActionColumn.superclass.destroy.apply(this, arguments); - }, - - /** - * @private - * Process and refire events routed from the GridView's processEvent method. - * Also fires any configured click handlers. By default, cancels the mousedown event to prevent selection. - * Returns the event handler's status to allow cancelling of GridView's bubbling process. - */ - processEvent : function(name, e, grid, rowIndex, colIndex){ - var m = e.getTarget().className.match(this.actionIdRe), - item, fn; - if (m && (item = this.items[parseInt(m[1], 10)])) { - if (name == 'click') { - (fn = item.handler || this.handler) && fn.call(item.scope||this.scope||this, grid, rowIndex, colIndex, item, e); - } else if ((name == 'mousedown') && (item.stopSelection !== false)) { - return false; - } - } - return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments); - } -}); - -/* - * @property types - * @type Object - * @member Ext.grid.Column - * @static - *

      An object containing predefined Column classes keyed by a mnemonic code which may be referenced - * by the {@link Ext.grid.ColumnModel#xtype xtype} config option of ColumnModel.

      - *

      This contains the following properties

        - *
      • gridcolumn : {@link Ext.grid.Column Column constructor}
      • - *
      • booleancolumn : {@link Ext.grid.BooleanColumn BooleanColumn constructor}
      • - *
      • numbercolumn : {@link Ext.grid.NumberColumn NumberColumn constructor}
      • - *
      • datecolumn : {@link Ext.grid.DateColumn DateColumn constructor}
      • - *
      • templatecolumn : {@link Ext.grid.TemplateColumn TemplateColumn constructor}
      • - *
      - */ -Ext.grid.Column.types = { - gridcolumn : Ext.grid.Column, - booleancolumn: Ext.grid.BooleanColumn, - numbercolumn: Ext.grid.NumberColumn, - datecolumn: Ext.grid.DateColumn, - templatecolumn: Ext.grid.TemplateColumn, - actioncolumn: Ext.grid.ActionColumn -};/** - * @class Ext.grid.RowNumberer - * This is a utility class that can be passed into a {@link Ext.grid.ColumnModel} as a column config that provides - * an automatic row numbering column. - *
      Usage:
      -
      
      - // This is a typical column config with the first column providing row numbers
      - var colModel = new Ext.grid.ColumnModel([
      -    new Ext.grid.RowNumberer(),
      -    {header: "Name", width: 80, sortable: true},
      -    {header: "Code", width: 50, sortable: true},
      -    {header: "Description", width: 200, sortable: true}
      - ]);
      - 
      - * @constructor - * @param {Object} config The configuration options - */ -Ext.grid.RowNumberer = Ext.extend(Object, { - /** - * @cfg {String} header Any valid text or HTML fragment to display in the header cell for the row - * number column (defaults to ''). - */ - header: "", - /** - * @cfg {Number} width The default width in pixels of the row number column (defaults to 23). - */ - width: 23, - /** - * @cfg {Boolean} sortable True if the row number column is sortable (defaults to false). - * @hide - */ - sortable: false, - - constructor : function(config){ - Ext.apply(this, config); - if(this.rowspan){ - this.renderer = this.renderer.createDelegate(this); - } - }, - - // private - fixed:true, - hideable: false, - menuDisabled:true, - dataIndex: '', - id: 'numberer', - rowspan: undefined, - - // private - renderer : function(v, p, record, rowIndex){ - if(this.rowspan){ - p.cellAttr = 'rowspan="'+this.rowspan+'"'; - } - return rowIndex+1; - } -});/** - * @class Ext.grid.CheckboxSelectionModel - * @extends Ext.grid.RowSelectionModel - * A custom selection model that renders a column of checkboxes that can be toggled to select or deselect rows. - * @constructor - * @param {Object} config The configuration options - */ -Ext.grid.CheckboxSelectionModel = Ext.extend(Ext.grid.RowSelectionModel, { - - /** - * @cfg {Boolean} checkOnly true if rows can only be selected by clicking on the - * checkbox column (defaults to false). - */ - /** - * @cfg {String} header Any valid text or HTML fragment to display in the header cell for the - * checkbox column. Defaults to:
      
      -     * '<div class="x-grid3-hd-checker">&#160;</div>'
      -     * 
      - * The default CSS class of 'x-grid3-hd-checker' displays a checkbox in the header - * and provides support for automatic check all/none behavior on header click. This string - * can be replaced by any valid HTML fragment, including a simple text string (e.g., - * 'Select Rows'), but the automatic check all/none behavior will only work if the - * 'x-grid3-hd-checker' class is supplied. - */ - header : '
       
      ', - /** - * @cfg {Number} width The default width in pixels of the checkbox column (defaults to 20). - */ - width : 20, - /** - * @cfg {Boolean} sortable true if the checkbox column is sortable (defaults to - * false). - */ - sortable : false, - - // private - menuDisabled : true, - fixed : true, - hideable: false, - dataIndex : '', - id : 'checker', - isColumn: true, // So that ColumnModel doesn't feed this through the Column constructor - - constructor : function(){ - Ext.grid.CheckboxSelectionModel.superclass.constructor.apply(this, arguments); - if(this.checkOnly){ - this.handleMouseDown = Ext.emptyFn; - } - }, - - // private - initEvents : function(){ - Ext.grid.CheckboxSelectionModel.superclass.initEvents.call(this); - this.grid.on('render', function(){ - Ext.fly(this.grid.getView().innerHd).on('mousedown', this.onHdMouseDown, this); - }, this); - }, - - /** - * @private - * Process and refire events routed from the GridView's processEvent method. - */ - processEvent : function(name, e, grid, rowIndex, colIndex){ - if (name == 'mousedown') { - this.onMouseDown(e, e.getTarget()); - return false; - } else { - return Ext.grid.Column.prototype.processEvent.apply(this, arguments); - } - }, - - // private - onMouseDown : function(e, t){ - if(e.button === 0 && t.className == 'x-grid3-row-checker'){ // Only fire if left-click - e.stopEvent(); - var row = e.getTarget('.x-grid3-row'); - if(row){ - var index = row.rowIndex; - if(this.isSelected(index)){ - this.deselectRow(index); - }else{ - this.selectRow(index, true); - this.grid.getView().focusRow(index); - } - } - } - }, - - // private - onHdMouseDown : function(e, t) { - if(t.className == 'x-grid3-hd-checker'){ - e.stopEvent(); - var hd = Ext.fly(t.parentNode); - var isChecked = hd.hasClass('x-grid3-hd-checker-on'); - if(isChecked){ - hd.removeClass('x-grid3-hd-checker-on'); - this.clearSelections(); - }else{ - hd.addClass('x-grid3-hd-checker-on'); - this.selectAll(); - } - } - }, - - // private - renderer : function(v, p, record){ - return '
       
      '; - }, - - onEditorSelect: function(row, lastRow){ - if(lastRow != row && !this.checkOnly){ - this.selectRow(row); // *** highlight newly-selected cell and update selection - } - } -});/** - * @class Ext.grid.CellSelectionModel - * @extends Ext.grid.AbstractSelectionModel - * This class provides the basic implementation for single cell selection in a grid. - * The object stored as the selection contains the following properties: - *
        - *
      • cell : see {@link #getSelectedCell} - *
      • record : Ext.data.record The {@link Ext.data.Record Record} - * which provides the data for the row containing the selection
      • - *
      - * @constructor - * @param {Object} config The object containing the configuration of this model. - */ -Ext.grid.CellSelectionModel = Ext.extend(Ext.grid.AbstractSelectionModel, { - - constructor : function(config){ - Ext.apply(this, config); - - this.selection = null; - - this.addEvents( - /** - * @event beforecellselect - * Fires before a cell is selected, return false to cancel the selection. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected row index - * @param {Number} colIndex The selected cell index - */ - "beforecellselect", - /** - * @event cellselect - * Fires when a cell is selected. - * @param {SelectionModel} this - * @param {Number} rowIndex The selected row index - * @param {Number} colIndex The selected cell index - */ - "cellselect", - /** - * @event selectionchange - * Fires when the active selection changes. - * @param {SelectionModel} this - * @param {Object} selection null for no selection or an object with two properties - *
        - *
      • cell : see {@link #getSelectedCell} - *
      • record : Ext.data.record

        The {@link Ext.data.Record Record} - * which provides the data for the row containing the selection

      • - *
      - */ - "selectionchange" - ); - - Ext.grid.CellSelectionModel.superclass.constructor.call(this); - }, - - /** @ignore */ - initEvents : function(){ - this.grid.on('cellmousedown', this.handleMouseDown, this); - this.grid.on(Ext.EventManager.getKeyEvent(), this.handleKeyDown, this); - this.grid.getView().on({ - scope: this, - refresh: this.onViewChange, - rowupdated: this.onRowUpdated, - beforerowremoved: this.clearSelections, - beforerowsinserted: this.clearSelections - }); - if(this.grid.isEditor){ - this.grid.on('beforeedit', this.beforeEdit, this); - } - }, - - //private - beforeEdit : function(e){ - this.select(e.row, e.column, false, true, e.record); - }, - - //private - onRowUpdated : function(v, index, r){ - if(this.selection && this.selection.record == r){ - v.onCellSelect(index, this.selection.cell[1]); - } - }, - - //private - onViewChange : function(){ - this.clearSelections(true); - }, - - /** - * Returns an array containing the row and column indexes of the currently selected cell - * (e.g., [0, 0]), or null if none selected. The array has elements: - *
        - *
      • rowIndex : Number

        The index of the selected row

      • - *
      • cellIndex : Number

        The index of the selected cell. - * Due to possible column reordering, the cellIndex should not be used as an - * index into the Record's data. Instead, use the cellIndex to determine the name - * of the selected cell and use the field name to retrieve the data value from the record:

        
        -// get name
        -var fieldName = grid.getColumnModel().getDataIndex(cellIndex);
        -// get data value based on name
        -var data = record.get(fieldName);
        -     * 

      • - *
      - * @return {Array} An array containing the row and column indexes of the selected cell, or null if none selected. - */ - getSelectedCell : function(){ - return this.selection ? this.selection.cell : null; - }, - - /** - * If anything is selected, clears all selections and fires the selectionchange event. - * @param {Boolean} preventNotify true to prevent the gridview from - * being notified about the change. - */ - clearSelections : function(preventNotify){ - var s = this.selection; - if(s){ - if(preventNotify !== true){ - this.grid.view.onCellDeselect(s.cell[0], s.cell[1]); - } - this.selection = null; - this.fireEvent("selectionchange", this, null); - } - }, - - /** - * Returns true if there is a selection. - * @return {Boolean} - */ - hasSelection : function(){ - return this.selection ? true : false; - }, - - /** @ignore */ - handleMouseDown : function(g, row, cell, e){ - if(e.button !== 0 || this.isLocked()){ - return; - } - this.select(row, cell); - }, - - /** - * Selects a cell. Before selecting a cell, fires the - * {@link #beforecellselect} event. If this check is satisfied the cell - * will be selected and followed up by firing the {@link #cellselect} and - * {@link #selectionchange} events. - * @param {Number} rowIndex The index of the row to select - * @param {Number} colIndex The index of the column to select - * @param {Boolean} preventViewNotify (optional) Specify true to - * prevent notifying the view (disables updating the selected appearance) - * @param {Boolean} preventFocus (optional) Whether to prevent the cell at - * the specified rowIndex / colIndex from being focused. - * @param {Ext.data.Record} r (optional) The record to select - */ - select : function(rowIndex, colIndex, preventViewNotify, preventFocus, /*internal*/ r){ - if(this.fireEvent("beforecellselect", this, rowIndex, colIndex) !== false){ - this.clearSelections(); - r = r || this.grid.store.getAt(rowIndex); - this.selection = { - record : r, - cell : [rowIndex, colIndex] - }; - if(!preventViewNotify){ - var v = this.grid.getView(); - v.onCellSelect(rowIndex, colIndex); - if(preventFocus !== true){ - v.focusCell(rowIndex, colIndex); - } - } - this.fireEvent("cellselect", this, rowIndex, colIndex); - this.fireEvent("selectionchange", this, this.selection); - } - }, - - //private - isSelectable : function(rowIndex, colIndex, cm){ - return !cm.isHidden(colIndex); - }, - - // private - onEditorKey: function(field, e){ - if(e.getKey() == e.TAB){ - this.handleKeyDown(e); - } - }, - - /** @ignore */ - handleKeyDown : function(e){ - if(!e.isNavKeyPress()){ - return; - } - - var k = e.getKey(), - g = this.grid, - s = this.selection, - sm = this, - walk = function(row, col, step){ - return g.walkCells( - row, - col, - step, - g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, // *** handle tabbing while editorgrid is in edit mode - sm - ); - }, - cell, newCell, r, c, ae; - - switch(k){ - case e.ESC: - case e.PAGE_UP: - case e.PAGE_DOWN: - // do nothing - break; - default: - // *** call e.stopEvent() only for non ESC, PAGE UP/DOWN KEYS - e.stopEvent(); - break; - } - - if(!s){ - cell = walk(0, 0, 1); // *** use private walk() function defined above - if(cell){ - this.select(cell[0], cell[1]); - } - return; - } - - cell = s.cell; // currently selected cell - r = cell[0]; // current row - c = cell[1]; // current column - - switch(k){ - case e.TAB: - if(e.shiftKey){ - newCell = walk(r, c - 1, -1); - }else{ - newCell = walk(r, c + 1, 1); - } - break; - case e.DOWN: - newCell = walk(r + 1, c, 1); - break; - case e.UP: - newCell = walk(r - 1, c, -1); - break; - case e.RIGHT: - newCell = walk(r, c + 1, 1); - break; - case e.LEFT: - newCell = walk(r, c - 1, -1); - break; - case e.ENTER: - if (g.isEditor && !g.editing) { - g.startEditing(r, c); - return; - } - break; - } - - if(newCell){ - // *** reassign r & c variables to newly-selected cell's row and column - r = newCell[0]; - c = newCell[1]; - - this.select(r, c); // *** highlight newly-selected cell and update selection - - if(g.isEditor && g.editing){ // *** handle tabbing while editorgrid is in edit mode - ae = g.activeEditor; - if(ae && ae.field.triggerBlur){ - // *** if activeEditor is a TriggerField, explicitly call its triggerBlur() method - ae.field.triggerBlur(); - } - g.startEditing(r, c); - } - } - }, - - acceptsNav : function(row, col, cm){ - return !cm.isHidden(col) && cm.isCellEditable(col, row); - } -});/** - * @class Ext.grid.EditorGridPanel - * @extends Ext.grid.GridPanel - *

      This class extends the {@link Ext.grid.GridPanel GridPanel Class} to provide cell editing - * on selected {@link Ext.grid.Column columns}. The editable columns are specified by providing - * an {@link Ext.grid.ColumnModel#editor editor} in the {@link Ext.grid.Column column configuration}.

      - *

      Editability of columns may be controlled programatically by inserting an implementation - * of {@link Ext.grid.ColumnModel#isCellEditable isCellEditable} into the - * {@link Ext.grid.ColumnModel ColumnModel}.

      - *

      Editing is performed on the value of the field specified by the column's - * {@link Ext.grid.ColumnModel#dataIndex dataIndex} in the backing {@link Ext.data.Store Store} - * (so if you are using a {@link Ext.grid.ColumnModel#setRenderer renderer} in order to display - * transformed data, this must be accounted for).

      - *

      If a value-to-description mapping is used to render a column, then a {@link Ext.form.Field#ComboBox ComboBox} - * which uses the same {@link Ext.form.Field#valueField value}-to-{@link Ext.form.Field#displayFieldField description} - * mapping would be an appropriate editor.

      - * If there is a more complex mismatch between the visible data in the grid, and the editable data in - * the {@link Edt.data.Store Store}, then code to transform the data both before and after editing can be - * injected using the {@link #beforeedit} and {@link #afteredit} events. - * @constructor - * @param {Object} config The config object - * @xtype editorgrid - */ -Ext.grid.EditorGridPanel = Ext.extend(Ext.grid.GridPanel, { - /** - * @cfg {Number} clicksToEdit - *

      The number of clicks on a cell required to display the cell's editor (defaults to 2).

      - *

      Setting this option to 'auto' means that mousedown on the selected cell starts - * editing that cell.

      - */ - clicksToEdit: 2, - - /** - * @cfg {Boolean} forceValidation - * True to force validation even if the value is unmodified (defaults to false) - */ - forceValidation: false, - - // private - isEditor : true, - // private - detectEdit: false, - - /** - * @cfg {Boolean} autoEncode - * True to automatically HTML encode and decode values pre and post edit (defaults to false) - */ - autoEncode : false, - - /** - * @cfg {Boolean} trackMouseOver @hide - */ - // private - trackMouseOver: false, // causes very odd FF errors - - // private - initComponent : function(){ - Ext.grid.EditorGridPanel.superclass.initComponent.call(this); - - if(!this.selModel){ - /** - * @cfg {Object} selModel Any subclass of AbstractSelectionModel that will provide the selection model for - * the grid (defaults to {@link Ext.grid.CellSelectionModel} if not specified). - */ - this.selModel = new Ext.grid.CellSelectionModel(); - } - - this.activeEditor = null; - - this.addEvents( - /** - * @event beforeedit - * Fires before cell editing is triggered. The edit event object has the following properties
      - *
        - *
      • grid - This grid
      • - *
      • record - The record being edited
      • - *
      • field - The field name being edited
      • - *
      • value - The value for the field being edited.
      • - *
      • row - The grid row index
      • - *
      • column - The grid column index
      • - *
      • cancel - Set this to true to cancel the edit or return false from your handler.
      • - *
      - * @param {Object} e An edit event (see above for description) - */ - "beforeedit", - /** - * @event afteredit - * Fires after a cell is edited. The edit event object has the following properties
      - *
        - *
      • grid - This grid
      • - *
      • record - The record being edited
      • - *
      • field - The field name being edited
      • - *
      • value - The value being set
      • - *
      • originalValue - The original value for the field, before the edit.
      • - *
      • row - The grid row index
      • - *
      • column - The grid column index
      • - *
      - * - *
      
      -grid.on('afteredit', afterEdit, this );
      -
      -function afterEdit(e) {
      -    // execute an XHR to send/commit data to the server, in callback do (if successful):
      -    e.record.commit();
      -};
      -             * 
      - * @param {Object} e An edit event (see above for description) - */ - "afteredit", - /** - * @event validateedit - * Fires after a cell is edited, but before the value is set in the record. Return false - * to cancel the change. The edit event object has the following properties
      - *
        - *
      • grid - This grid
      • - *
      • record - The record being edited
      • - *
      • field - The field name being edited
      • - *
      • value - The value being set
      • - *
      • originalValue - The original value for the field, before the edit.
      • - *
      • row - The grid row index
      • - *
      • column - The grid column index
      • - *
      • cancel - Set this to true to cancel the edit or return false from your handler.
      • - *
      - * Usage example showing how to remove the red triangle (dirty record indicator) from some - * records (not all). By observing the grid's validateedit event, it can be cancelled if - * the edit occurs on a targeted row (for example) and then setting the field's new value - * in the Record directly: - *
      
      -grid.on('validateedit', function(e) {
      -  var myTargetRow = 6;
      -
      -  if (e.row == myTargetRow) {
      -    e.cancel = true;
      -    e.record.data[e.field] = e.value;
      -  }
      -});
      -             * 
      - * @param {Object} e An edit event (see above for description) - */ - "validateedit" - ); - }, - - // private - initEvents : function(){ - Ext.grid.EditorGridPanel.superclass.initEvents.call(this); - - this.getGridEl().on('mousewheel', this.stopEditing.createDelegate(this, [true]), this); - this.on('columnresize', this.stopEditing, this, [true]); - - if(this.clicksToEdit == 1){ - this.on("cellclick", this.onCellDblClick, this); - }else { - var view = this.getView(); - if(this.clicksToEdit == 'auto' && view.mainBody){ - view.mainBody.on('mousedown', this.onAutoEditClick, this); - } - this.on('celldblclick', this.onCellDblClick, this); - } - }, - - onResize : function(){ - Ext.grid.EditorGridPanel.superclass.onResize.apply(this, arguments); - var ae = this.activeEditor; - if(this.editing && ae){ - ae.realign(true); - } - }, - - // private - onCellDblClick : function(g, row, col){ - this.startEditing(row, col); - }, - - // private - onAutoEditClick : function(e, t){ - if(e.button !== 0){ - return; - } - var row = this.view.findRowIndex(t), - col = this.view.findCellIndex(t); - if(row !== false && col !== false){ - this.stopEditing(); - if(this.selModel.getSelectedCell){ // cell sm - var sc = this.selModel.getSelectedCell(); - if(sc && sc[0] === row && sc[1] === col){ - this.startEditing(row, col); - } - }else{ - if(this.selModel.isSelected(row)){ - this.startEditing(row, col); - } - } - } - }, - - // private - onEditComplete : function(ed, value, startValue){ - this.editing = false; - this.lastActiveEditor = this.activeEditor; - this.activeEditor = null; - - var r = ed.record, - field = this.colModel.getDataIndex(ed.col); - value = this.postEditValue(value, startValue, r, field); - if(this.forceValidation === true || String(value) !== String(startValue)){ - var e = { - grid: this, - record: r, - field: field, - originalValue: startValue, - value: value, - row: ed.row, - column: ed.col, - cancel:false - }; - if(this.fireEvent("validateedit", e) !== false && !e.cancel && String(value) !== String(startValue)){ - r.set(field, e.value); - delete e.cancel; - this.fireEvent("afteredit", e); - } - } - this.view.focusCell(ed.row, ed.col); - }, - - /** - * Starts editing the specified for the specified row/column - * @param {Number} rowIndex - * @param {Number} colIndex - */ - startEditing : function(row, col){ - this.stopEditing(); - if(this.colModel.isCellEditable(col, row)){ - this.view.ensureVisible(row, col, true); - var r = this.store.getAt(row), - field = this.colModel.getDataIndex(col), - e = { - grid: this, - record: r, - field: field, - value: r.data[field], - row: row, - column: col, - cancel:false - }; - if(this.fireEvent("beforeedit", e) !== false && !e.cancel){ - this.editing = true; - var ed = this.colModel.getCellEditor(col, row); - if(!ed){ - return; - } - if(!ed.rendered){ - ed.parentEl = this.view.getEditorParent(ed); - ed.on({ - scope: this, - render: { - fn: function(c){ - c.field.focus(false, true); - }, - single: true, - scope: this - }, - specialkey: function(field, e){ - this.getSelectionModel().onEditorKey(field, e); - }, - complete: this.onEditComplete, - canceledit: this.stopEditing.createDelegate(this, [true]) - }); - } - Ext.apply(ed, { - row : row, - col : col, - record : r - }); - this.lastEdit = { - row: row, - col: col - }; - this.activeEditor = ed; - // Set the selectSameEditor flag if we are reusing the same editor again and - // need to prevent the editor from firing onBlur on itself. - ed.selectSameEditor = (this.activeEditor == this.lastActiveEditor); - var v = this.preEditValue(r, field); - ed.startEdit(this.view.getCell(row, col).firstChild, Ext.isDefined(v) ? v : ''); - - // Clear the selectSameEditor flag - (function(){ - delete ed.selectSameEditor; - }).defer(50); - } - } - }, - - // private - preEditValue : function(r, field){ - var value = r.data[field]; - return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value; - }, - - // private - postEditValue : function(value, originalValue, r, field){ - return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlEncode(value) : value; - }, - - /** - * Stops any active editing - * @param {Boolean} cancel (optional) True to cancel any changes - */ - stopEditing : function(cancel){ - if(this.editing){ - // Store the lastActiveEditor to check if it is changing - var ae = this.lastActiveEditor = this.activeEditor; - if(ae){ - ae[cancel === true ? 'cancelEdit' : 'completeEdit'](); - this.view.focusCell(ae.row, ae.col); - } - this.activeEditor = null; - } - this.editing = false; - } -}); -Ext.reg('editorgrid', Ext.grid.EditorGridPanel);// private -// This is a support class used internally by the Grid components -Ext.grid.GridEditor = function(field, config){ - Ext.grid.GridEditor.superclass.constructor.call(this, field, config); - field.monitorTab = false; -}; - -Ext.extend(Ext.grid.GridEditor, Ext.Editor, { - alignment: "tl-tl", - autoSize: "width", - hideEl : false, - cls: "x-small-editor x-grid-editor", - shim:false, - shadow:false -});/** - * @class Ext.grid.PropertyRecord - * A specific {@link Ext.data.Record} type that represents a name/value pair and is made to work with the - * {@link Ext.grid.PropertyGrid}. Typically, PropertyRecords do not need to be created directly as they can be - * created implicitly by simply using the appropriate data configs either via the {@link Ext.grid.PropertyGrid#source} - * config property or by calling {@link Ext.grid.PropertyGrid#setSource}. However, if the need arises, these records - * can also be created explicitly as shwon below. Example usage: - *
      
      -var rec = new Ext.grid.PropertyRecord({
      -    name: 'Birthday',
      -    value: new Date(Date.parse('05/26/1972'))
      -});
      -// Add record to an already populated grid
      -grid.store.addSorted(rec);
      -
      - * @constructor - * @param {Object} config A data object in the format: {name: [name], value: [value]}. The specified value's type - * will be read automatically by the grid to determine the type of editor to use when displaying it. - */ -Ext.grid.PropertyRecord = Ext.data.Record.create([ - {name:'name',type:'string'}, 'value' -]); - -/** - * @class Ext.grid.PropertyStore - * @extends Ext.util.Observable - * A custom wrapper for the {@link Ext.grid.PropertyGrid}'s {@link Ext.data.Store}. This class handles the mapping - * between the custom data source objects supported by the grid and the {@link Ext.grid.PropertyRecord} format - * required for compatibility with the underlying store. Generally this class should not need to be used directly -- - * the grid's data should be accessed from the underlying store via the {@link #store} property. - * @constructor - * @param {Ext.grid.Grid} grid The grid this store will be bound to - * @param {Object} source The source data config object - */ -Ext.grid.PropertyStore = Ext.extend(Ext.util.Observable, { - - constructor : function(grid, source){ - this.grid = grid; - this.store = new Ext.data.Store({ - recordType : Ext.grid.PropertyRecord - }); - this.store.on('update', this.onUpdate, this); - if(source){ - this.setSource(source); - } - Ext.grid.PropertyStore.superclass.constructor.call(this); - }, - - // protected - should only be called by the grid. Use grid.setSource instead. - setSource : function(o){ - this.source = o; - this.store.removeAll(); - var data = []; - for(var k in o){ - if(this.isEditableValue(o[k])){ - data.push(new Ext.grid.PropertyRecord({name: k, value: o[k]}, k)); - } - } - this.store.loadRecords({records: data}, {}, true); - }, - - // private - onUpdate : function(ds, record, type){ - if(type == Ext.data.Record.EDIT){ - var v = record.data.value; - var oldValue = record.modified.value; - if(this.grid.fireEvent('beforepropertychange', this.source, record.id, v, oldValue) !== false){ - this.source[record.id] = v; - record.commit(); - this.grid.fireEvent('propertychange', this.source, record.id, v, oldValue); - }else{ - record.reject(); - } - } - }, - - // private - getProperty : function(row){ - return this.store.getAt(row); - }, - - // private - isEditableValue: function(val){ - return Ext.isPrimitive(val) || Ext.isDate(val); - }, - - // private - setValue : function(prop, value, create){ - var r = this.getRec(prop); - if(r){ - r.set('value', value); - this.source[prop] = value; - }else if(create){ - // only create if specified. - this.source[prop] = value; - r = new Ext.grid.PropertyRecord({name: prop, value: value}, prop); - this.store.add(r); - - } - }, - - // private - remove : function(prop){ - var r = this.getRec(prop); - if(r){ - this.store.remove(r); - delete this.source[prop]; - } - }, - - // private - getRec : function(prop){ - return this.store.getById(prop); - }, - - // protected - should only be called by the grid. Use grid.getSource instead. - getSource : function(){ - return this.source; - } -}); - -/** - * @class Ext.grid.PropertyColumnModel - * @extends Ext.grid.ColumnModel - * A custom column model for the {@link Ext.grid.PropertyGrid}. Generally it should not need to be used directly. - * @constructor - * @param {Ext.grid.Grid} grid The grid this store will be bound to - * @param {Object} source The source data config object - */ -Ext.grid.PropertyColumnModel = Ext.extend(Ext.grid.ColumnModel, { - // private - strings used for locale support - nameText : 'Name', - valueText : 'Value', - dateFormat : 'm/j/Y', - trueText: 'true', - falseText: 'false', - - constructor : function(grid, store){ - var g = Ext.grid, - f = Ext.form; - - this.grid = grid; - g.PropertyColumnModel.superclass.constructor.call(this, [ - {header: this.nameText, width:50, sortable: true, dataIndex:'name', id: 'name', menuDisabled:true}, - {header: this.valueText, width:50, resizable:false, dataIndex: 'value', id: 'value', menuDisabled:true} - ]); - this.store = store; - - var bfield = new f.Field({ - autoCreate: {tag: 'select', children: [ - {tag: 'option', value: 'true', html: this.trueText}, - {tag: 'option', value: 'false', html: this.falseText} - ]}, - getValue : function(){ - return this.el.dom.value == 'true'; - } - }); - this.editors = { - 'date' : new g.GridEditor(new f.DateField({selectOnFocus:true})), - 'string' : new g.GridEditor(new f.TextField({selectOnFocus:true})), - 'number' : new g.GridEditor(new f.NumberField({selectOnFocus:true, style:'text-align:left;'})), - 'boolean' : new g.GridEditor(bfield, { - autoSize: 'both' - }) - }; - this.renderCellDelegate = this.renderCell.createDelegate(this); - this.renderPropDelegate = this.renderProp.createDelegate(this); - }, - - // private - renderDate : function(dateVal){ - return dateVal.dateFormat(this.dateFormat); - }, - - // private - renderBool : function(bVal){ - return this[bVal ? 'trueText' : 'falseText']; - }, - - // private - isCellEditable : function(colIndex, rowIndex){ - return colIndex == 1; - }, - - // private - getRenderer : function(col){ - return col == 1 ? - this.renderCellDelegate : this.renderPropDelegate; - }, - - // private - renderProp : function(v){ - return this.getPropertyName(v); - }, - - // private - renderCell : function(val, meta, rec){ - var renderer = this.grid.customRenderers[rec.get('name')]; - if(renderer){ - return renderer.apply(this, arguments); - } - var rv = val; - if(Ext.isDate(val)){ - rv = this.renderDate(val); - }else if(typeof val == 'boolean'){ - rv = this.renderBool(val); - } - return Ext.util.Format.htmlEncode(rv); - }, - - // private - getPropertyName : function(name){ - var pn = this.grid.propertyNames; - return pn && pn[name] ? pn[name] : name; - }, - - // private - getCellEditor : function(colIndex, rowIndex){ - var p = this.store.getProperty(rowIndex), - n = p.data.name, - val = p.data.value; - if(this.grid.customEditors[n]){ - return this.grid.customEditors[n]; - } - if(Ext.isDate(val)){ - return this.editors.date; - }else if(typeof val == 'number'){ - return this.editors.number; - }else if(typeof val == 'boolean'){ - return this.editors['boolean']; - }else{ - return this.editors.string; - } - }, - - // inherit docs - destroy : function(){ - Ext.grid.PropertyColumnModel.superclass.destroy.call(this); - this.destroyEditors(this.editors); - this.destroyEditors(this.grid.customEditors); - }, - - destroyEditors: function(editors){ - for(var ed in editors){ - Ext.destroy(editors[ed]); - } - } -}); - -/** - * @class Ext.grid.PropertyGrid - * @extends Ext.grid.EditorGridPanel - * A specialized grid implementation intended to mimic the traditional property grid as typically seen in - * development IDEs. Each row in the grid represents a property of some object, and the data is stored - * as a set of name/value pairs in {@link Ext.grid.PropertyRecord}s. Example usage: - *
      
      -var grid = new Ext.grid.PropertyGrid({
      -    title: 'Properties Grid',
      -    autoHeight: true,
      -    width: 300,
      -    renderTo: 'grid-ct',
      -    source: {
      -        "(name)": "My Object",
      -        "Created": new Date(Date.parse('10/15/2006')),
      -        "Available": false,
      -        "Version": .01,
      -        "Description": "A test object"
      -    }
      -});
      -
      - * @constructor - * @param {Object} config The grid config object - */ -Ext.grid.PropertyGrid = Ext.extend(Ext.grid.EditorGridPanel, { - /** - * @cfg {Object} propertyNames An object containing property name/display name pairs. - * If specified, the display name will be shown in the name column instead of the property name. - */ - /** - * @cfg {Object} source A data object to use as the data source of the grid (see {@link #setSource} for details). - */ - /** - * @cfg {Object} customEditors An object containing name/value pairs of custom editor type definitions that allow - * the grid to support additional types of editable fields. By default, the grid supports strongly-typed editing - * of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and - * associated with a custom input control by specifying a custom editor. The name of the editor - * type should correspond with the name of the property that will use the editor. Example usage: - *
      
      -var grid = new Ext.grid.PropertyGrid({
      -    ...
      -    customEditors: {
      -        'Start Time': new Ext.grid.GridEditor(new Ext.form.TimeField({selectOnFocus:true}))
      -    },
      -    source: {
      -        'Start Time': '10:00 AM'
      -    }
      -});
      -
      - */ - /** - * @cfg {Object} source A data object to use as the data source of the grid (see {@link #setSource} for details). - */ - /** - * @cfg {Object} customRenderers An object containing name/value pairs of custom renderer type definitions that allow - * the grid to support custom rendering of fields. By default, the grid supports strongly-typed rendering - * of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and - * associated with the type of the value. The name of the renderer type should correspond with the name of the property - * that it will render. Example usage: - *
      
      -var grid = new Ext.grid.PropertyGrid({
      -    ...
      -    customRenderers: {
      -        Available: function(v){
      -            if(v){
      -                return 'Yes';
      -            }else{
      -                return 'No';
      -            }
      -        }
      -    },
      -    source: {
      -        Available: true
      -    }
      -});
      -
      - */ - - // private config overrides - enableColumnMove:false, - stripeRows:false, - trackMouseOver: false, - clicksToEdit:1, - enableHdMenu : false, - viewConfig : { - forceFit:true - }, - - // private - initComponent : function(){ - this.customRenderers = this.customRenderers || {}; - this.customEditors = this.customEditors || {}; - this.lastEditRow = null; - var store = new Ext.grid.PropertyStore(this); - this.propStore = store; - var cm = new Ext.grid.PropertyColumnModel(this, store); - store.store.sort('name', 'ASC'); - this.addEvents( - /** - * @event beforepropertychange - * Fires before a property value changes. Handlers can return false to cancel the property change - * (this will internally call {@link Ext.data.Record#reject} on the property's record). - * @param {Object} source The source data object for the grid (corresponds to the same object passed in - * as the {@link #source} config property). - * @param {String} recordId The record's id in the data store - * @param {Mixed} value The current edited property value - * @param {Mixed} oldValue The original property value prior to editing - */ - 'beforepropertychange', - /** - * @event propertychange - * Fires after a property value has changed. - * @param {Object} source The source data object for the grid (corresponds to the same object passed in - * as the {@link #source} config property). - * @param {String} recordId The record's id in the data store - * @param {Mixed} value The current edited property value - * @param {Mixed} oldValue The original property value prior to editing - */ - 'propertychange' - ); - this.cm = cm; - this.ds = store.store; - Ext.grid.PropertyGrid.superclass.initComponent.call(this); - - this.mon(this.selModel, 'beforecellselect', function(sm, rowIndex, colIndex){ - if(colIndex === 0){ - this.startEditing.defer(200, this, [rowIndex, 1]); - return false; - } - }, this); - }, - - // private - onRender : function(){ - Ext.grid.PropertyGrid.superclass.onRender.apply(this, arguments); - - this.getGridEl().addClass('x-props-grid'); - }, - - // private - afterRender: function(){ - Ext.grid.PropertyGrid.superclass.afterRender.apply(this, arguments); - if(this.source){ - this.setSource(this.source); - } - }, - - /** - * Sets the source data object containing the property data. The data object can contain one or more name/value - * pairs representing all of the properties of an object to display in the grid, and this data will automatically - * be loaded into the grid's {@link #store}. The values should be supplied in the proper data type if needed, - * otherwise string type will be assumed. If the grid already contains data, this method will replace any - * existing data. See also the {@link #source} config value. Example usage: - *
      
      -grid.setSource({
      -    "(name)": "My Object",
      -    "Created": new Date(Date.parse('10/15/2006')),  // date type
      -    "Available": false,  // boolean type
      -    "Version": .01,      // decimal type
      -    "Description": "A test object"
      -});
      -
      - * @param {Object} source The data object - */ - setSource : function(source){ - this.propStore.setSource(source); - }, - - /** - * Gets the source data object containing the property data. See {@link #setSource} for details regarding the - * format of the data object. - * @return {Object} The data object - */ - getSource : function(){ - return this.propStore.getSource(); - }, - - /** - * Sets the value of a property. - * @param {String} prop The name of the property to set - * @param {Mixed} value The value to test - * @param {Boolean} create (Optional) True to create the property if it doesn't already exist. Defaults to false. - */ - setProperty : function(prop, value, create){ - this.propStore.setValue(prop, value, create); - }, - - /** - * Removes a property from the grid. - * @param {String} prop The name of the property to remove - */ - removeProperty : function(prop){ - this.propStore.remove(prop); - } - - /** - * @cfg store - * @hide - */ - /** - * @cfg colModel - * @hide - */ - /** - * @cfg cm - * @hide - */ - /** - * @cfg columns - * @hide - */ -}); -Ext.reg("propertygrid", Ext.grid.PropertyGrid); -/** - * @class Ext.grid.GroupingView - * @extends Ext.grid.GridView - * Adds the ability for single level grouping to the grid. A {@link Ext.data.GroupingStore GroupingStore} - * must be used to enable grouping. Some grouping characteristics may also be configured at the - * {@link Ext.grid.Column Column level}
        - *
      • {@link Ext.grid.Column#emptyGroupText emptyGroupText}
      • - *
      • {@link Ext.grid.Column#groupable groupable}
      • - *
      • {@link Ext.grid.Column#groupName groupName}
      • - *
      • {@link Ext.grid.Column#groupRender groupRender}
      • - *
      - *

      Sample usage:

      - *
      
      -var grid = new Ext.grid.GridPanel({
      -    // A groupingStore is required for a GroupingView
      -    store: new {@link Ext.data.GroupingStore}({
      -        autoDestroy: true,
      -        reader: reader,
      -        data: xg.dummyData,
      -        sortInfo: {field: 'company', direction: 'ASC'},
      -        {@link Ext.data.GroupingStore#groupOnSort groupOnSort}: true,
      -        {@link Ext.data.GroupingStore#remoteGroup remoteGroup}: true,
      -        {@link Ext.data.GroupingStore#groupField groupField}: 'industry'
      -    }),
      -    colModel: new {@link Ext.grid.ColumnModel}({
      -        columns:[
      -            {id:'company',header: 'Company', width: 60, dataIndex: 'company'},
      -            // {@link Ext.grid.Column#groupable groupable}, {@link Ext.grid.Column#groupName groupName}, {@link Ext.grid.Column#groupRender groupRender} are also configurable at column level
      -            {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price', {@link Ext.grid.Column#groupable groupable}: false},
      -            {header: 'Change', dataIndex: 'change', renderer: Ext.util.Format.usMoney},
      -            {header: 'Industry', dataIndex: 'industry'},
      -            {header: 'Last Updated', renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
      -        ],
      -        defaults: {
      -            sortable: true,
      -            menuDisabled: false,
      -            width: 20
      -        }
      -    }),
      -
      -    view: new Ext.grid.GroupingView({
      -        {@link Ext.grid.GridView#forceFit forceFit}: true,
      -        // custom grouping text template to display the number of items per group
      -        {@link #groupTextTpl}: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
      -    }),
      -
      -    frame:true,
      -    width: 700,
      -    height: 450,
      -    collapsible: true,
      -    animCollapse: false,
      -    title: 'Grouping Example',
      -    iconCls: 'icon-grid',
      -    renderTo: document.body
      -});
      - * 
      - * @constructor - * @param {Object} config - */ -Ext.grid.GroupingView = Ext.extend(Ext.grid.GridView, { - - /** - * @cfg {String} groupByText Text displayed in the grid header menu for grouping by a column - * (defaults to 'Group By This Field'). - */ - groupByText : 'Group By This Field', - /** - * @cfg {String} showGroupsText Text displayed in the grid header for enabling/disabling grouping - * (defaults to 'Show in Groups'). - */ - showGroupsText : 'Show in Groups', - /** - * @cfg {Boolean} hideGroupedColumn true to hide the column that is currently grouped (defaults to false) - */ - hideGroupedColumn : false, - /** - * @cfg {Boolean} showGroupName If true will display a prefix plus a ': ' before the group field value - * in the group header line. The prefix will consist of the {@link Ext.grid.Column#groupName groupName} - * (or the configured {@link Ext.grid.Column#header header} if not provided) configured in the - * {@link Ext.grid.Column} for each set of grouped rows (defaults to true). - */ - showGroupName : true, - /** - * @cfg {Boolean} startCollapsed true to start all groups collapsed (defaults to false) - */ - startCollapsed : false, - /** - * @cfg {Boolean} enableGrouping false to disable grouping functionality (defaults to true) - */ - enableGrouping : true, - /** - * @cfg {Boolean} enableGroupingMenu true to enable the grouping control in the column menu (defaults to true) - */ - enableGroupingMenu : true, - /** - * @cfg {Boolean} enableNoGroups true to allow the user to turn off grouping (defaults to true) - */ - enableNoGroups : true, - /** - * @cfg {String} emptyGroupText The text to display when there is an empty group value (defaults to '(None)'). - * May also be specified per column, see {@link Ext.grid.Column}.{@link Ext.grid.Column#emptyGroupText emptyGroupText}. - */ - emptyGroupText : '(None)', - /** - * @cfg {Boolean} ignoreAdd true to skip refreshing the view when new rows are added (defaults to false) - */ - ignoreAdd : false, - /** - * @cfg {String} groupTextTpl The template used to render the group header (defaults to '{text}'). - * This is used to format an object which contains the following properties: - *
        - *
      • group : String

        The rendered value of the group field. - * By default this is the unchanged value of the group field. If a {@link Ext.grid.Column#groupRenderer groupRenderer} - * is specified, it is the result of a call to that function.

      • - *
      • gvalue : Object

        The raw value of the group field.

      • - *
      • text : String

        The configured header (as described in {@link #showGroupName}) - * if {@link #showGroupName} is true) plus the rendered group field value.

      • - *
      • groupId : String

        A unique, generated ID which is applied to the - * View Element which contains the group.

      • - *
      • startRow : Number

        The row index of the Record which caused group change.

      • - *
      • rs : Array

        Contains a single element: The Record providing the data - * for the row which caused group change.

      • - *
      • cls : String

        The generated class name string to apply to the group header Element.

      • - *
      • style : String

        The inline style rules to apply to the group header Element.

      • - *

      - * See {@link Ext.XTemplate} for information on how to format data using a template. Possible usage:
      
      -var grid = new Ext.grid.GridPanel({
      -    ...
      -    view: new Ext.grid.GroupingView({
      -        groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
      -    }),
      -});
      -     * 
      - */ - groupTextTpl : '{text}', - - /** - * @cfg {String} groupMode Indicates how to construct the group identifier. 'value' constructs the id using - * raw value, 'display' constructs the id using the rendered value. Defaults to 'value'. - */ - groupMode: 'value', - - /** - * @cfg {Function} groupRenderer This property must be configured in the {@link Ext.grid.Column} for - * each column. - */ - - /** - * @cfg {Boolean} cancelEditOnToggle True to cancel any editing when the group header is toggled. Defaults to true. - */ - cancelEditOnToggle: true, - - // private - initTemplates : function(){ - Ext.grid.GroupingView.superclass.initTemplates.call(this); - this.state = {}; - - var sm = this.grid.getSelectionModel(); - sm.on(sm.selectRow ? 'beforerowselect' : 'beforecellselect', - this.onBeforeRowSelect, this); - - if(!this.startGroup){ - this.startGroup = new Ext.XTemplate( - '
      ', - '
      ', this.groupTextTpl ,'
      ', - '
      ' - ); - } - this.startGroup.compile(); - - if (!this.endGroup) { - this.endGroup = '
      '; - } - }, - - // private - findGroup : function(el){ - return Ext.fly(el).up('.x-grid-group', this.mainBody.dom); - }, - - // private - getGroups : function(){ - return this.hasRows() ? this.mainBody.dom.childNodes : []; - }, - - // private - onAdd : function(ds, records, index) { - if (this.canGroup() && !this.ignoreAdd) { - var ss = this.getScrollState(); - this.fireEvent('beforerowsinserted', ds, index, index + (records.length-1)); - this.refresh(); - this.restoreScroll(ss); - this.fireEvent('rowsinserted', ds, index, index + (records.length-1)); - } else if (!this.canGroup()) { - Ext.grid.GroupingView.superclass.onAdd.apply(this, arguments); - } - }, - - // private - onRemove : function(ds, record, index, isUpdate){ - Ext.grid.GroupingView.superclass.onRemove.apply(this, arguments); - var g = document.getElementById(record._groupId); - if(g && g.childNodes[1].childNodes.length < 1){ - Ext.removeNode(g); - } - this.applyEmptyText(); - }, - - // private - refreshRow : function(record){ - if(this.ds.getCount()==1){ - this.refresh(); - }else{ - this.isUpdating = true; - Ext.grid.GroupingView.superclass.refreshRow.apply(this, arguments); - this.isUpdating = false; - } - }, - - // private - beforeMenuShow : function(){ - var item, items = this.hmenu.items, disabled = this.cm.config[this.hdCtxIndex].groupable === false; - if((item = items.get('groupBy'))){ - item.setDisabled(disabled); - } - if((item = items.get('showGroups'))){ - item.setDisabled(disabled); - item.setChecked(this.canGroup(), true); - } - }, - - // private - renderUI : function(){ - var markup = Ext.grid.GroupingView.superclass.renderUI.call(this); - - if(this.enableGroupingMenu && this.hmenu){ - this.hmenu.add('-',{ - itemId:'groupBy', - text: this.groupByText, - handler: this.onGroupByClick, - scope: this, - iconCls:'x-group-by-icon' - }); - if(this.enableNoGroups){ - this.hmenu.add({ - itemId:'showGroups', - text: this.showGroupsText, - checked: true, - checkHandler: this.onShowGroupsClick, - scope: this - }); - } - this.hmenu.on('beforeshow', this.beforeMenuShow, this); - } - return markup; - }, - - processEvent: function(name, e){ - Ext.grid.GroupingView.superclass.processEvent.call(this, name, e); - var hd = e.getTarget('.x-grid-group-hd', this.mainBody); - if(hd){ - // group value is at the end of the string - var field = this.getGroupField(), - prefix = this.getPrefix(field), - groupValue = hd.id.substring(prefix.length), - emptyRe = new RegExp('gp-' + Ext.escapeRe(field) + '--hd'); - - // remove trailing '-hd' - groupValue = groupValue.substr(0, groupValue.length - 3); - - // also need to check for empty groups - if(groupValue || emptyRe.test(hd.id)){ - this.grid.fireEvent('group' + name, this.grid, field, groupValue, e); - } - if(name == 'mousedown' && e.button == 0){ - this.toggleGroup(hd.parentNode); - } - } - - }, - - // private - onGroupByClick : function(){ - var grid = this.grid; - this.enableGrouping = true; - grid.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex)); - grid.fireEvent('groupchange', grid, grid.store.getGroupState()); - this.beforeMenuShow(); // Make sure the checkboxes get properly set when changing groups - this.refresh(); - }, - - // private - onShowGroupsClick : function(mi, checked){ - this.enableGrouping = checked; - if(checked){ - this.onGroupByClick(); - }else{ - this.grid.store.clearGrouping(); - this.grid.fireEvent('groupchange', this, null); - } - }, - - /** - * Toggle the group that contains the specific row. - * @param {Number} rowIndex The row inside the group - * @param {Boolean} expanded (optional) - */ - toggleRowIndex : function(rowIndex, expanded){ - if(!this.canGroup()){ - return; - } - var row = this.getRow(rowIndex); - if(row){ - this.toggleGroup(this.findGroup(row), expanded); - } - }, - - /** - * Toggles the specified group if no value is passed, otherwise sets the expanded state of the group to the value passed. - * @param {String} groupId The groupId assigned to the group (see getGroupId) - * @param {Boolean} expanded (optional) - */ - toggleGroup : function(group, expanded){ - var gel = Ext.get(group), - id = Ext.util.Format.htmlEncode(gel.id); - - expanded = Ext.isDefined(expanded) ? expanded : gel.hasClass('x-grid-group-collapsed'); - if(this.state[id] !== expanded){ - if (this.cancelEditOnToggle !== false) { - this.grid.stopEditing(true); - } - this.state[id] = expanded; - gel[expanded ? 'removeClass' : 'addClass']('x-grid-group-collapsed'); - } - }, - - /** - * Toggles all groups if no value is passed, otherwise sets the expanded state of all groups to the value passed. - * @param {Boolean} expanded (optional) - */ - toggleAllGroups : function(expanded){ - var groups = this.getGroups(); - for(var i = 0, len = groups.length; i < len; i++){ - this.toggleGroup(groups[i], expanded); - } - }, - - /** - * Expands all grouped rows. - */ - expandAllGroups : function(){ - this.toggleAllGroups(true); - }, - - /** - * Collapses all grouped rows. - */ - collapseAllGroups : function(){ - this.toggleAllGroups(false); - }, - - // private - getGroup : function(v, r, groupRenderer, rowIndex, colIndex, ds){ - var column = this.cm.config[colIndex], - g = groupRenderer ? groupRenderer.call(column.scope, v, {}, r, rowIndex, colIndex, ds) : String(v); - if(g === '' || g === ' '){ - g = column.emptyGroupText || this.emptyGroupText; - } - return g; - }, - - // private - getGroupField : function(){ - return this.grid.store.getGroupState(); - }, - - // private - afterRender : function(){ - if(!this.ds || !this.cm){ - return; - } - Ext.grid.GroupingView.superclass.afterRender.call(this); - if(this.grid.deferRowRender){ - this.updateGroupWidths(); - } - }, - - afterRenderUI: function () { - Ext.grid.GroupingView.superclass.afterRenderUI.call(this); - - if (this.enableGroupingMenu && this.hmenu) { - this.hmenu.add('-',{ - itemId:'groupBy', - text: this.groupByText, - handler: this.onGroupByClick, - scope: this, - iconCls:'x-group-by-icon' - }); - - if (this.enableNoGroups) { - this.hmenu.add({ - itemId:'showGroups', - text: this.showGroupsText, - checked: true, - checkHandler: this.onShowGroupsClick, - scope: this - }); - } - - this.hmenu.on('beforeshow', this.beforeMenuShow, this); - } - }, - - // private - renderRows : function(){ - var groupField = this.getGroupField(); - var eg = !!groupField; - // if they turned off grouping and the last grouped field is hidden - if(this.hideGroupedColumn) { - var colIndex = this.cm.findColumnIndex(groupField), - hasLastGroupField = Ext.isDefined(this.lastGroupField); - if(!eg && hasLastGroupField){ - this.mainBody.update(''); - this.cm.setHidden(this.cm.findColumnIndex(this.lastGroupField), false); - delete this.lastGroupField; - }else if (eg && !hasLastGroupField){ - this.lastGroupField = groupField; - this.cm.setHidden(colIndex, true); - }else if (eg && hasLastGroupField && groupField !== this.lastGroupField) { - this.mainBody.update(''); - var oldIndex = this.cm.findColumnIndex(this.lastGroupField); - this.cm.setHidden(oldIndex, false); - this.lastGroupField = groupField; - this.cm.setHidden(colIndex, true); - } - } - return Ext.grid.GroupingView.superclass.renderRows.apply( - this, arguments); - }, - - // private - doRender : function(cs, rs, ds, startRow, colCount, stripe){ - if(rs.length < 1){ - return ''; - } - - if(!this.canGroup() || this.isUpdating){ - return Ext.grid.GroupingView.superclass.doRender.apply(this, arguments); - } - - var groupField = this.getGroupField(), - colIndex = this.cm.findColumnIndex(groupField), - g, - gstyle = 'width:' + this.getTotalWidth() + ';', - cfg = this.cm.config[colIndex], - groupRenderer = cfg.groupRenderer || cfg.renderer, - prefix = this.showGroupName ? (cfg.groupName || cfg.header)+': ' : '', - groups = [], - curGroup, i, len, gid; - - for(i = 0, len = rs.length; i < len; i++){ - var rowIndex = startRow + i, - r = rs[i], - gvalue = r.data[groupField]; - - g = this.getGroup(gvalue, r, groupRenderer, rowIndex, colIndex, ds); - if(!curGroup || curGroup.group != g){ - gid = this.constructId(gvalue, groupField, colIndex); - // if state is defined use it, however state is in terms of expanded - // so negate it, otherwise use the default. - this.state[gid] = !(Ext.isDefined(this.state[gid]) ? !this.state[gid] : this.startCollapsed); - curGroup = { - group: g, - gvalue: gvalue, - text: prefix + g, - groupId: gid, - startRow: rowIndex, - rs: [r], - cls: this.state[gid] ? '' : 'x-grid-group-collapsed', - style: gstyle - }; - groups.push(curGroup); - }else{ - curGroup.rs.push(r); - } - r._groupId = gid; - } - - var buf = []; - for(i = 0, len = groups.length; i < len; i++){ - g = groups[i]; - this.doGroupStart(buf, g, cs, ds, colCount); - buf[buf.length] = Ext.grid.GroupingView.superclass.doRender.call( - this, cs, g.rs, ds, g.startRow, colCount, stripe); - - this.doGroupEnd(buf, g, cs, ds, colCount); - } - return buf.join(''); - }, - - /** - * Dynamically tries to determine the groupId of a specific value - * @param {String} value - * @return {String} The group id - */ - getGroupId : function(value){ - var field = this.getGroupField(); - return this.constructId(value, field, this.cm.findColumnIndex(field)); - }, - - // private - constructId : function(value, field, idx){ - var cfg = this.cm.config[idx], - groupRenderer = cfg.groupRenderer || cfg.renderer, - val = (this.groupMode == 'value') ? value : this.getGroup(value, {data:{}}, groupRenderer, 0, idx, this.ds); - - return this.getPrefix(field) + Ext.util.Format.htmlEncode(val); - }, - - // private - canGroup : function(){ - return this.enableGrouping && !!this.getGroupField(); - }, - - // private - getPrefix: function(field){ - return this.grid.getGridEl().id + '-gp-' + field + '-'; - }, - - // private - doGroupStart : function(buf, g, cs, ds, colCount){ - buf[buf.length] = this.startGroup.apply(g); - }, - - // private - doGroupEnd : function(buf, g, cs, ds, colCount){ - buf[buf.length] = this.endGroup; - }, - - // private - getRows : function(){ - if(!this.canGroup()){ - return Ext.grid.GroupingView.superclass.getRows.call(this); - } - var r = [], - gs = this.getGroups(), - g, - i = 0, - len = gs.length, - j, - jlen; - for(; i < len; ++i){ - g = gs[i].childNodes[1]; - if(g){ - g = g.childNodes; - for(j = 0, jlen = g.length; j < jlen; ++j){ - r[r.length] = g[j]; - } - } - } - return r; - }, - - // private - updateGroupWidths : function(){ - if(!this.canGroup() || !this.hasRows()){ - return; - } - var tw = Math.max(this.cm.getTotalWidth(), this.el.dom.offsetWidth-this.getScrollOffset()) +'px'; - var gs = this.getGroups(); - for(var i = 0, len = gs.length; i < len; i++){ - gs[i].firstChild.style.width = tw; - } - }, - - // private - onColumnWidthUpdated : function(col, w, tw){ - Ext.grid.GroupingView.superclass.onColumnWidthUpdated.call(this, col, w, tw); - this.updateGroupWidths(); - }, - - // private - onAllColumnWidthsUpdated : function(ws, tw){ - Ext.grid.GroupingView.superclass.onAllColumnWidthsUpdated.call(this, ws, tw); - this.updateGroupWidths(); - }, - - // private - onColumnHiddenUpdated : function(col, hidden, tw){ - Ext.grid.GroupingView.superclass.onColumnHiddenUpdated.call(this, col, hidden, tw); - this.updateGroupWidths(); - }, - - // private - onLayout : function(){ - this.updateGroupWidths(); - }, - - // private - onBeforeRowSelect : function(sm, rowIndex){ - this.toggleRowIndex(rowIndex, true); - } -}); -// private -Ext.grid.GroupingView.GROUP_ID = 1000; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug.js b/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug.js deleted file mode 100644 index f878a11418..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/ext-all-debug.js +++ /dev/null @@ -1,52079 +0,0 @@ - -(function(){ - -var EXTUTIL = Ext.util, - EACH = Ext.each, - TRUE = true, - FALSE = false; - -EXTUTIL.Observable = function(){ - - var me = this, e = me.events; - if(me.listeners){ - me.on(me.listeners); - delete me.listeners; - } - me.events = e || {}; -}; - -EXTUTIL.Observable.prototype = { - - filterOptRe : /^(?:scope|delay|buffer|single)$/, - - - 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; - }, - - - addListener : function(eventName, fn, scope, o){ - var me = this, - e, - oe, - 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 : {}); - } - }, - - - removeListener : function(eventName, fn, scope){ - var ce = this.events[eventName.toLowerCase()]; - if (typeof ce == 'object') { - ce.removeListener(fn, scope); - } - }, - - - purgeListeners : function(){ - var events = this.events, - evt, - key; - for(key in events){ - evt = events[key]; - if(typeof evt == 'object'){ - evt.clearListeners(); - } - } - }, - - - 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); - } - }, - - - hasListener : function(eventName){ - var e = this.events[eventName.toLowerCase()]; - return typeof e == 'object' && e.listeners.length > 0; - }, - - - suspendEvents : function(queueSuspended){ - this.eventsSuspended = TRUE; - if(queueSuspended && !this.eventQueue){ - this.eventQueue = []; - } - }, - - - 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; - -OBSERVABLE.on = OBSERVABLE.addListener; - -OBSERVABLE.un = OBSERVABLE.removeListener; - - -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(), - args = Array.prototype.slice.call(arguments, 0); - if(!l.tasks) { - l.tasks = []; - } - l.tasks.push(task); - task.delay(o.delay || 10, function(){ - l.tasks.remove(task); - h.apply(scope, args); - }, scope); - }; -}; - -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){ - 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; - }, - - - 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; - } - -}; -})(); - -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, - - afterbegin = 'afterbegin', - afterend = 'afterend', - beforebegin = 'beforebegin', - beforeend = 'beforeend', - ts = '', - te = '
      ', - tbs = ts+'', - tbe = ''+te, - trs = tbs + '', - tre = ''+tbe; - - - 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; - } - - - function createHtml(o){ - var b = '', - attr, - val, - key, - 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 + '"'; - } - } - }; - - 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(ns = el.nextSibling){ - var df = document.createDocumentFragment(); - while(el){ - ns = el.nextSibling; - df.appendChild(el); - el = ns; - } - el = df; - } - return el; - } - - - 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; - } - - - function createContextualFragment(html){ - var div = document.createElement("div"), - fragment = document.createDocumentFragment(), - i = 0, - length, childNodes; - - div.innerHTML = html; - childNodes = div.childNodes; - length = childNodes.length; - - for (; i < length; i++) { - fragment.appendChild(childNodes[i].cloneNode(true)); - } - - return fragment; - } - - pub = { - - markup : function(o){ - return createHtml(o); - }, - - - applyStyles : function(el, styles){ - if (styles) { - var matches; - - el = Ext.fly(el); - if (typeof styles == "function") { - styles = styles.call(); - } - if (typeof styles == "string") { - - cssRe.lastIndex = 0; - while ((matches = cssRe.exec(styles))) { - el.setStyle(matches[1], matches[2]); - } - } else if (typeof styles == "object") { - el.setStyle(styles); - } - } - }, - - insertHtml : function(where, el, html){ - var hash = {}, - hashVal, - range, - rangeEl, - setStart, - frag, - rs; - - where = where.toLowerCase(); - - 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; - } - - 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); - if (!range.createContextualFragment) { - frag = createContextualFragment(html); - } - else { - 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]); - if (!range.createContextualFragment) { - frag = createContextualFragment(html); - } - else { - 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 + '"'; - }, - - - insertBefore : function(el, o, returnElement){ - return doInsert(el, o, returnElement, beforebegin); - }, - - - insertAfter : function(el, o, returnElement){ - return doInsert(el, o, returnElement, afterend, 'nextSibling'); - }, - - - insertFirst : function(el, o, returnElement){ - return doInsert(el, o, returnElement, afterbegin, 'firstChild'); - }, - - - append : function(el, o, returnElement){ - return doInsert(el, o, returnElement, beforeend, '', true); - }, - - - 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; -}(); - -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(''); - } - - - me.html = html; - - if (me.compiled) { - me.compile(); - } -}; -Ext.Template.prototype = { - - re : /\{([\w\-]+)\}/g, - - - - 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] : ""; - }); - }, - - - set : function(html, compile){ - var me = this; - me.html = html; - me.compiled = null; - return compile ? me.compile() : me; - }, - - - 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; - }, - - - insertFirst: function(el, values, returnElement){ - return this.doInsert('afterBegin', el, values, returnElement); - }, - - - insertBefore: function(el, values, returnElement){ - return this.doInsert('beforeBegin', el, values, returnElement); - }, - - - insertAfter : function(el, values, returnElement){ - return this.doInsert('afterEnd', el, values, returnElement); - }, - - - 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; - }, - - - overwrite : function(el, values, returnElement){ - el = Ext.getDom(el); - el.innerHTML = this.applyTemplate(values); - return returnElement ? Ext.get(el.firstChild, true) : el.firstChild; - } -}; - -Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate; - - -Ext.Template.from = function(el, config){ - el = Ext.getDom(el); - return new Ext.Template(el.value || el.innerHTML, config || ''); -}; - - -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/, - - - - 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; 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; - } - - - - function byAttribute(cs, attr, value, op, custom){ - var result = [], - ri = -1, - useGetStyle = custom == "{", - fn = Ext.DomQuery.operators[op], - a, - xml, - hasXml; - - for(var i = 0, ci; ci = cs[i]; i++){ - - if(ci.nodeType != 1){ - continue; - } - - if(!hasXml){ - xml = Ext.DomQuery.isXml(ci); - hasXml = true; - } - - - if(!xml){ - 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"){ - - - 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); - }, - - compile : function(path, type){ - type = type || "select"; - - - 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, - - lmode = path.match(modeRe); - - if(lmode && lmode[1]){ - fn[fn.length] = 'mode="'+lmode[1].replace(trimRe, "")+'";'; - path = path.replace(lmode[1], ""); - } - - - 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){ - - 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, "*");'; - } - - }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; - } - } - - 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], ""); - } - } - - fn[fn.length] = "return nodup(n);\n}"; - - - eval(fn.join("")); - return f; - }, - - - jsSelect: function(path, root, type){ - - root = root || document; - - if(typeof root == "string"){ - root = document.getElementById(root); - } - var paths = path.split(","), - results = []; - - - for(var i = 0, len = paths.length; i < len; i++){ - var subPath = paths[i].replace(trimRe, ""); - - 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(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); - }, - - - 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?(["']?)(.*?)\4)?[\]\}])/, - select: 'n = byAttribute(n, "{2}", "{5}", "{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; - } - }; -};/** - * @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 DH = Ext.DomHelper, - 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 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; - }, - - - isBorderBox : function(){ - return Ext.isBorderBox || Ext.isForcedBorderBox || noBoxAdjust[(this.dom.tagName || "").toLowerCase()]; - }, - - - remove : function(){ - var me = this, - dom = me.dom; - - if (dom) { - delete me.dom; - Ext.removeNode(dom); - } - }, - - - 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; - }, - - - contains : function(el){ - return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el); - }, - - - getAttributeNS : function(ns, name){ - return this.getAttribute(name, ns); - }, - - - getAttribute: (function(){ - var test = document.createElement('table'), - isBrokenOnTable = false, - hasGetAttribute = 'getAttribute' in test, - unknownRe = /undefined|unknown/; - - if (hasGetAttribute) { - - try { - test.getAttribute('ext:qtip'); - } catch (e) { - isBrokenOnTable = true; - } - - return function(name, ns) { - var el = this.dom, - value; - - if (el.getAttributeNS) { - value = el.getAttributeNS(ns, name) || null; - } - - if (value == null) { - if (ns) { - if (isBrokenOnTable && el.tagName.toUpperCase() == 'TABLE') { - try { - value = el.getAttribute(ns + ':' + name); - } catch (e) { - value = ''; - } - } else { - value = el.getAttribute(ns + ':' + name); - } - } else { - value = el.getAttribute(name) || el[name]; - } - } - return value || ''; - }; - } else { - return function(name, ns) { - var el = this.om, - value, - attribute; - - if (ns) { - attribute = el[ns + ':' + name]; - value = unknownRe.test(typeof attribute) ? undefined : attribute; - } else { - value = el[name]; - } - return value || ''; - }; - } - test = null; - })(), - - - update : function(html) { - if (this.dom) { - this.dom.innerHTML = html; - } - return this; - } -}; - -var ep = El.prototype; - -El.addMethods = function(o){ - Ext.apply(ep, o); -}; - - -ep.on = ep.addListener; - - -ep.un = ep.removeListener; - - -ep.autoBoxAdjust = true; - - -var unitPattern = /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i, - docEl; - - - - -El.get = function(el){ - var ex, - elm, - id; - if(!el){ return null; } - if (typeof el == "string") { - 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) { - 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){ - - - - - 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) { - - 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; -}; - - -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); - } -}; - - - - -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; - - - - - - - - - - - - - - - - - - if(!d || !d.parentNode || (!d.offsetParent && !DOC.getElementById(eid))){ - if(Ext.enableListenerCollection){ - Ext.EventManager.removeAll(d); - } - delete EC[eid]; - } - } - - 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; - - -El.Flyweight = function(dom){ - this.dom = dom; -}; - -El.Flyweight.prototype = new flyFn(); -El.Flyweight.prototype.isFlyweight = true; -El._flyweights = {}; - - -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; -}; - - -Ext.get = El.get; - - -Ext.fly = El.fly; - - -var noBoxAdjust = Ext.isStrict ? { - select:1 -} : { - input:1, select:1, textarea:1 -}; -if(Ext.isIE || Ext.isGecko){ - noBoxAdjust['button'] = 1; -} - -})(); - -Ext.Element.addMethods(function(){ - var PARENTNODE = 'parentNode', - NEXTSIBLING = 'nextSibling', - PREVIOUSSIBLING = 'previousSibling', - DQ = Ext.DomQuery, - GET = Ext.get; - - return { - - 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; - }, - - - findParentNode : function(simpleSelector, maxDepth, returnEl){ - var p = Ext.fly(this.dom.parentNode, '_internal'); - return p ? p.findParent(simpleSelector, maxDepth, returnEl) : null; - }, - - - up : function(simpleSelector, maxDepth){ - return this.findParentNode(simpleSelector, maxDepth, true); - }, - - - select : function(selector){ - return Ext.Element.select(selector, this.dom); - }, - - - query : function(selector){ - return DQ.select(selector, this.dom); - }, - - - child : function(selector, returnDom){ - var n = DQ.selectNode(selector, this.dom); - return returnDom ? n : GET(n); - }, - - - down : function(selector, returnDom){ - var n = DQ.selectNode(" > " + selector, this.dom); - return returnDom ? n : GET(n); - }, - - - parent : function(selector, returnDom){ - return this.matchNode(PARENTNODE, PARENTNODE, selector, returnDom); - }, - - - next : function(selector, returnDom){ - return this.matchNode(NEXTSIBLING, NEXTSIBLING, selector, returnDom); - }, - - - prev : function(selector, returnDom){ - return this.matchNode(PREVIOUSSIBLING, PREVIOUSSIBLING, selector, returnDom); - }, - - - - first : function(selector, returnDom){ - return this.matchNode(NEXTSIBLING, 'firstChild', selector, returnDom); - }, - - - 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; - } - }; -}()); -Ext.Element.addMethods( -function() { - var GETDOM = Ext.getDom, - GET = Ext.get, - DH = Ext.DomHelper; - - return { - - appendChild: function(el){ - return GET(el).appendTo(this); - }, - - - appendTo: function(el){ - GETDOM(el).appendChild(this.dom); - return this; - }, - - - insertBefore: function(el){ - (el = GETDOM(el)).parentNode.insertBefore(this.dom, el); - return this; - }, - - - insertAfter: function(el){ - (el = GETDOM(el)).parentNode.insertBefore(this.dom, el.nextSibling); - return this; - }, - - - insertFirst: function(el, returnDom){ - el = el || {}; - if(el.nodeType || el.dom || typeof el == 'string'){ - el = GETDOM(el); - this.dom.insertBefore(el, this.dom.firstChild); - return !returnDom ? GET(el) : el; - }else{ - return this.createChild(el, this.dom.firstChild, returnDom); - } - }, - - - replace: function(el){ - el = GET(el); - this.insertBefore(el); - el.remove(); - return 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; - }, - - - 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); - }, - - - 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; - }, - - - insertHtml : function(where, html, returnEl){ - var el = DH.insertHtml(where, this.dom, html); - return returnEl ? Ext.get(el) : el; - } - }; -}()); -Ext.Element.addMethods(function(){ - - var supports = Ext.supports, - propCache = {}, - camelRe = /(-[a-z])/gi, - view = document.defaultView, - opacityRe = /alpha\(opacity=(.*)\)/i, - trimRe = /^\s+|\s+$/g, - EL = Ext.Element, - spacesRe = /\s+/, - wordsRe = /\w/g, - 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', - - 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; - - - - function camelFn(m, a) { - return a.charAt(1).toUpperCase(); - } - - function chkCache(prop) { - return propCache[prop] || (propCache[prop] = prop == 'float' ? (supports.cssFloat ? 'cssFloat' : 'styleFloat') : prop.replace(camelRe, camelFn)); - } - - return { - - 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; - }, - - - 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; - }, - - - - addClass : function(className){ - var me = this, - i, - len, - v, - cls = []; - - 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; - }, - - - 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; - }, - - - 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); - }, - - - toggleClass : function(className){ - return this.hasClass(className) ? this.removeClass(className) : this.addClass(className); - }, - - - hasClass : function(className){ - return className && (' '+this.dom.className+' ').indexOf(' '+className+' ') != -1; - }, - - - replaceClass : function(oldClassName, newClassName){ - return this.removeClass(oldClassName).addClass(newClassName); - }, - - isStyle : function(style, val) { - return this.getStyle(style) == val; - }, - - - getStyle : function(){ - return view && view.getComputedStyle ? - function(prop){ - var el = this.dom, - v, - cs, - out, - display; - - if(el == document){ - return null; - } - prop = chkCache(prop); - out = (v = el.style[prop]) ? v : - (cs = view.getComputedStyle(el, "")) ? cs[prop] : null; - - - - if(prop == 'marginRight' && out != '0px' && !supports.correctRightMargin){ - display = el.style.display; - el.style.display = 'inline-block'; - out = view.getComputedStyle(el, '').marginRight; - el.style.display = display; - } - - if(prop == 'backgroundColor' && out == 'rgba(0, 0, 0, 0)' && !supports.correctTransparentColor){ - out = 'transparent'; - } - 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); - }; - }(), - - - 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); - }, - - - setStyle : function(prop, value){ - var tmp, style; - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - getBorderWidth : function(side){ - return this.addStyles(side, borders); - }, - - - getPadding : function(side){ - return this.addStyles(side, paddings); - }, - - - 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; - }, - - - 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; - }, - - - 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 - }; -}() -); - -(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({ - - getX : function(){ - return D.getX(this.dom); - }, - - - getY : function(){ - return D.getY(this.dom); - }, - - - getXY : function(){ - return D.getXY(this.dom); - }, - - - getOffsetsTo : function(el){ - var o = this.getXY(), - e = Ext.fly(el, '_internal').getXY(); - return [o[0]-e[0],o[1]-e[1]]; - }, - - - setX : function(x, animate){ - return this.setXY([x, this.getY()], this.animTest(arguments, animate, 1)); - }, - - - setY : function(y, animate){ - return this.setXY([this.getX(), y], this.animTest(arguments, animate, 1)); - }, - - - setLeft : function(left){ - this.setStyle(LEFT, this.addUnits(left)); - return this; - }, - - - setTop : function(top){ - this.setStyle(TOP, this.addUnits(top)); - return this; - }, - - - setRight : function(right){ - this.setStyle(RIGHT, this.addUnits(right)); - return this; - }, - - - setBottom : function(bottom){ - this.setStyle(BOTTOM, this.addUnits(bottom)); - return 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; - }, - - - setLocation : function(x, y, animate){ - return this.setXY([x, y], this.animTest(arguments, animate, 2)); - }, - - - moveTo : function(x, y, animate){ - return this.setXY([x, y], this.animTest(arguments, animate, 2)); - }, - - - getLeft : function(local){ - return !local ? this.getX() : parseInt(this.getStyle(LEFT), 10) || 0; - }, - - - getRight : function(local){ - var me = this; - return !local ? me.getX() + me.getWidth() : (me.getLeft(true) + me.getWidth()) || 0; - }, - - - getTop : function(local) { - return !local ? this.getY() : parseInt(this.getStyle(TOP), 10) || 0; - }, - - - getBottom : function(local){ - var me = this; - return !local ? me.getY() + me.getHeight() : (me.getTop(true) + me.getHeight()) || 0; - }, - - - 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]); - }, - - - clearPositioning : function(value){ - value = value || ''; - this.setStyle({ - left : value, - right : value, - top : value, - bottom : value, - "z-index" : "", - position : STATIC - }); - return this; - }, - - - 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) - }; - }, - - - 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; - }, - - - 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; - } -}); -})(); -Ext.Element.addMethods({ - - isScrollable : function(){ - var dom = this.dom; - return dom.scrollHeight > dom.clientHeight || dom.scrollWidth > dom.clientWidth; - }, - - - scrollTo : function(side, value){ - this.dom["scroll" + (/top/i.test(side) ? "Top" : "Left")] = value; - return this; - }, - - - 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; - } -}); - -Ext.Element.VISIBILITY = 1; - -Ext.Element.DISPLAY = 2; - - -Ext.Element.OFFSETS = 3; - - -Ext.Element.ASCLASS = 4; - - -Ext.Element.visibilityCls = 'x-hide-nosize'; - -Ext.Element.addMethods(function(){ - var El = Ext.Element, - OPACITY = "opacity", - VISIBILITY = "visibility", - DISPLAY = "display", - HIDDEN = "hidden", - OFFSETS = "offsets", - ASCLASS = "asclass", - NONE = "none", - NOSIZE = 'nosize', - ORIGINALDISPLAY = 'originalDisplay', - VISMODE = 'visibilityMode', - ISVISIBLE = 'isVisible', - data = El.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 { - - originalDisplay : "", - visibilityMode : 1, - - - setVisibilityMode : function(visMode){ - data(this.dom, VISMODE, visMode); - return this; - }, - - - animate : function(args, duration, onComplete, easing, animType){ - this.anim(args, {duration: duration, callback: onComplete, easing: easing}, animType); - return this; - }, - - - 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; - }, - - - 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]}); - }, - - - isVisible : function() { - var me = this, - dom = me.dom, - visible = data(dom, ISVISIBLE); - - if(typeof visible == 'boolean'){ - return visible; - } - - visible = !me.isStyle(VISIBILITY, HIDDEN) && - !me.isStyle(DISPLAY, NONE) && - !((getVisMode(dom) == El.ASCLASS) && me.hasClass(me.visibilityCls || El.visibilityCls)); - - data(dom, ISVISIBLE, visible); - return visible; - }, - - - setVisible : function(visible, animate){ - var me = this, isDisplay, isVisibility, isOffsets, isNosize, - dom = me.dom, - visMode = getVisMode(dom); - - - - if (typeof animate == 'string'){ - switch (animate) { - case DISPLAY: - visMode = El.DISPLAY; - break; - case VISIBILITY: - visMode = El.VISIBILITY; - break; - case OFFSETS: - visMode = El.OFFSETS; - break; - case NOSIZE: - case ASCLASS: - visMode = El.ASCLASS; - break; - } - me.setVisibilityMode(visMode); - animate = false; - } - - if (!animate || !me.anim) { - if(visMode == El.ASCLASS ){ - - me[visible?'removeClass':'addClass'](me.visibilityCls || El.visibilityCls); - - } else if (visMode == El.DISPLAY){ - - return me.setDisplayed(visible); - - } else if (visMode == El.OFFSETS){ - - 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: ''}); - delete me.hideModeStyles; - } - - }else{ - me.fixDisplay(); - dom.style.visibility = visible ? "visible" : HIDDEN; - } - }else{ - - if(visible){ - me.setOpacity(.01); - me.setVisible(true); - } - me.anim({opacity: { to: (visible?1:0) }}, - me.preanim(arguments, 1), - null, - .35, - 'easeIn', - function(){ - visible || me.setVisible(false).setOpacity(1); - }); - } - data(dom, ISVISIBLE, visible); - return me; - }, - - - - hasMetrics : function(){ - var dom = this.dom; - return this.isVisible() || (getVisMode(dom) == El.VISIBILITY); - }, - - - toggle : function(animate){ - var me = this; - me.setVisible(!me.isVisible(), me.preanim(arguments, 0)); - return me; - }, - - - setDisplayed : function(value) { - if(typeof value == "boolean"){ - value = value ? getDisplay(this.dom) : NONE; - } - this.setStyle(DISPLAY, value); - return this; - }, - - - fixDisplay : function(){ - var me = this; - if(me.isStyle(DISPLAY, NONE)){ - me.setStyle(VISIBILITY, HIDDEN); - me.setStyle(DISPLAY, getDisplay(this.dom)); - if(me.isStyle(DISPLAY, NONE)){ - me.setStyle(DISPLAY, "block"); - } - } - }, - - - hide : function(animate){ - - if (typeof animate == 'string'){ - this.setVisible(false, animate); - return this; - } - this.setVisible(false, this.preanim(arguments, 0)); - return this; - }, - - - show : function(animate){ - - if (typeof animate == 'string'){ - this.setVisible(true, animate); - return this; - } - this.setVisible(true, this.preanim(arguments, 0)); - return this; - } - }; -}());(function(){ - - 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", - - flyEl = new Ext.Element.Flyweight(), - queues = {}, - getObject = function(o){ - return o || {}; - }, - fly = function(dom){ - flyEl.dom = dom; - flyEl.id = Ext.id(dom); - return flyEl; - }, - - getQueue = function(id){ - if(!queues[id]){ - queues[id] = []; - } - return queues[id]; - }, - setQueue = function(id, value){ - queues[id] = value; - }; - - -Ext.enableFx = TRUE; - - -Ext.Fx = { - - - - switchStatements : function(key, fn, argHash){ - return fn.apply(this, argHash[key]); - }, - - - 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(); - - fly(dom).fixDisplay(); - - - 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; - - - fly(dom).setWidth(b.width).setHeight(b.height); - - - wrap = fly(dom).fxWrap(r.pos, o, HIDDEN); - - st.visibility = VISIBLE; - st.position = ABSOLUTE; - - - function after(){ - fly(dom).fxUnwrap(wrap, r.pos, o); - st.width = r.width; - st.height = r.height; - fly(dom).afterFx(o); - } - - - 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; - }, - - - 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(){ - - - 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; - - - fly(dom).setWidth(b.width).setHeight(b.height); - - - 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; - }, - - - 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(); - - - 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; - }, - - - 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(); - - - 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; - }, - - - 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; - }, - - - 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, - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - scale : function(w, h, o){ - this.shift(Ext.apply({}, o, { - width: w, - height: h - })); - return this; - }, - - - 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; - }, - - - 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(){ - - 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; - }, - - - syncFx : function(){ - var me = this; - me.fxDefaults = Ext.apply(me.fxDefaults || {}, { - block : FALSE, - concurrent : TRUE, - stopFx : FALSE - }); - return me; - }, - - - sequenceFx : function(){ - var me = this; - me.fxDefaults = Ext.apply(me.fxDefaults || {}, { - block : FALSE, - concurrent : FALSE, - stopFx : FALSE - }); - return me; - }, - - - nextFx : function(){ - var ef = getQueue(this.dom.id)[0]; - if(ef){ - ef.call(this); - } - }, - - - hasActiveFx : function(){ - return getQueue(this.dom.id)[0]; - }, - - - 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]); - cur.anim.stop(finish !== undefined ? finish : TRUE); - }else{ - setQueue(id, []); - } - } - } - return me; - }, - - - beforeFx : function(o){ - if(this.hasActiveFx() && !o.concurrent){ - if(o.stopFx){ - this.stopFx(); - return TRUE; - } - return FALSE; - } - return TRUE; - }, - - - hasFxBlock : function(){ - var q = getQueue(this.dom.id); - return q && q[0] && q[0].block; - }, - - - 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; - }, - - - 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; - }, - - - 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(); - } - }, - - - getFxRestore : function(){ - var st = this.dom.style; - return {pos: this.getPositioning(), width: st.width, height : st.height}; - }, - - - 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(); - } - }, - - - 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; - } -}; - - -Ext.Fx.resize = Ext.Fx.scale; - - - -Ext.Element.addMethods(Ext.Fx); -})(); - -Ext.CompositeElementLite = function(els, root){ - - this.elements = []; - this.add(els, root); - this.el = new Ext.Element.Flyweight(); -}; - -Ext.CompositeElementLite.prototype = { - isComposite: true, - - - getElement : function(el){ - - var e = this.el; - e.dom = el; - e.id = el.id; - return e; - }, - - - transformElement : function(el){ - return Ext.getDom(el); - }, - - - getCount : function(){ - return this.elements.length; - }, - - 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; - }, - - item : function(index){ - var me = this, - el = me.elements[index], - out = null; - - if(el){ - out = me.getElement(el); - } - return out; - }, - - - addListener : function(eventName, handler, scope, opt){ - var els = this.elements, - len = els.length, - i, e; - - for(i = 0; i -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; - }, - - - clear : function(){ - this.elements = []; - } -}; - -Ext.CompositeElementLite.prototype.on = Ext.CompositeElementLite.prototype.addListener; - - -Ext.CompositeElementLite.importElementMethods = function() { - var fnName, - ElProto = Ext.Element.prototype, - CelProto = Ext.CompositeElementLite.prototype; - - for (fnName in ElProto) { - if (typeof ElProto[fnName] == 'function'){ - (function(fnName) { - CelProto[fnName] = CelProto[fnName] || function() { - return this.invoke(fnName, arguments); - }; - }).call(CelProto, fnName); - - } - } -}; - -Ext.CompositeElementLite.importElementMethods(); - -if(Ext.DomQuery){ - Ext.Element.selectorFunction = Ext.DomQuery.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); -}; - -Ext.select = Ext.Element.select; -(function(){ - var BEFOREREQUEST = "beforerequest", - REQUESTCOMPLETE = "requestcomplete", - REQUESTEXCEPTION = "requestexception", - UNDEFINED = undefined, - LOAD = 'load', - POST = 'POST', - GET = 'GET', - WINDOW = window; - - - Ext.data.Connection = function(config){ - Ext.apply(this, config); - this.addEvents( - - BEFOREREQUEST, - - REQUESTCOMPLETE, - - REQUESTEXCEPTION - ); - 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(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 : Ext.num(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.applyIf(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; - } - }, - - - isLoading : function(transId){ - return transId ? Ext.lib.Ajax.isCallInProgress(transId) : !! this.transId; - }, - - - abort : function(transId){ - if(transId || this.isLoading()){ - Ext.lib.Ajax.abort(transId || this.transId); - } - }, - - - 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); - } - }, - - - 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); - } - }, - - - 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 - }; - - - Ext.fly(frame).set({ - id: id, - name: id, - cls: 'x-hidden', - src: Ext.SSL_SECURE_URL - }); - - doc.body.appendChild(frame); - - - if(Ext.isIE){ - document.frames[id].name = id; - } - - - Ext.fly(form).set({ - target: id, - method: POST, - enctype: encoding, - encoding: encoding, - action: url || buf.action - }); - - - 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, - - 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)){ - r.responseText = firstChild.value; - }else{ - r.responseText = doc.body.innerHTML; - } - } - - 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); - }); - } - }); -})(); - - -Ext.Ajax = new Ext.data.Connection({ - - - - - - - - - - - - - - - - - - autoAbort : false, - - - serializeForm : function(form){ - return Ext.lib.Ajax.serializeForm(form); - } -}); - -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 json ? 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"){ - - return isFinite(o) ? String(o) : "null"; - }else if(Ext.isBoolean(o)){ - return String(o); - }else { - var a = ["{"], b, i, v; - for (i in o) { - - 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(""); - }; - - - this.encodeDate = function(o){ - return '"' + o.getFullYear() + "-" + - pad(o.getMonth() + 1) + "-" + - pad(o.getDate()) + "T" + - pad(o.getHours()) + ":" + - pad(o.getMinutes()) + ":" + - pad(o.getSeconds()) + '"'; - }; - - - this.encode = function() { - var ec; - return function(o) { - if (!ec) { - - ec = isNative() ? JSON.stringify : doEncode; - } - return ec(o); - }; - }(); - - - - this.decode = function() { - var dc; - return function(json) { - if (!dc) { - - dc = isNative() ? JSON.parse : doDecode; - } - return dc(json); - }; - }(); - -})(); - -Ext.encode = Ext.util.JSON.encode; - -Ext.decode = Ext.util.JSON.decode; - -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)$/, - - specialElCache = []; - - function getId(el){ - var id = false, - i = 0, - len = specialElCache.length, - skip = false, - o; - - if (el) { - if (el.getElementById || el.navigator) { - - for(; i < len; ++i){ - o = specialElCache[i]; - if(o.el === el){ - id = o.id; - break; - } - } - if(!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; - } - - - 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] || []; - - - es[ename].push([fn, wrap, scope, wfn, task]); - - - - - - 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); - }); - } - - - if(el == DOC && ename == "mousedown"){ - Ext.EventManager.stoppedMouseDownEvent.addListener(wrap); - } - } - - function doScrollChk(){ - - if(window != top){ - return false; - } - - try{ - DOC.documentElement.doScroll('left'); - }catch(e){ - return false; - } - - fireDocReady(); - return true; - } - - 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; - - if(docReadyProcId){ - clearTimeout(docReadyProcId); - } - if(DETECT_NATIVE) { - DOC.removeEventListener(DOMCONTENTLOADED, fireDocReady, false); - } - if(Ext.isIE && checkReadyState.bindIE){ - 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); - } - - if (Ext.isIE){ - - - if(!checkReadyState()){ - checkReadyState.bindIE = true; - DOC.attachEvent('onreadystatechange', checkReadyState); - } - - }else if(Ext.isOpera ){ - - - - (DOC.readyState == COMPLETE && checkStyleSheets()) || - DOC.addEventListener(DOMCONTENTLOADED, OperaDOMContentLoaded, false); - - }else if (Ext.isWebKit){ - - checkReadyState(); - } - - 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){ - - 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){ - - if(!Ext){ - 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 === false) { - 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 = { - - 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)){ - - listen(element, e, o, val, o.scope); - }else{ - - listen(element, e, val); - } - } - } - } else { - listen(element, eventName, options, fn, scope); - } - }, - - - 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++) { - - - 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); - - - if(wrap && el.addEventListener && eventName == "mousewheel"){ - el.removeEventListener("DOMMouseScroll", wrap, false); - } - - - 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; - } - } - }, - - - 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]; - - 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); - - - if(el.addEventListener && wrap && ename == "mousewheel"){ - el.removeEventListener("DOMMouseScroll", wrap, false); - } - - - 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; - - - 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}); - } - } - }, - - onDocumentReady : function(fn, scope, options){ - if (Ext.isReady) { - 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); - } - }, - - - fireDocReady : fireDocReady - }; - - pub.on = pub.addListener; - - pub.un = pub.removeListener; - - pub.stoppedMouseDownEvent = new Ext.util.Event(); - return pub; -}(); - -Ext.onReady = Ext.EventManager.onDocumentReady; - - - -(function(){ - var initExtCss = function() { - - 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.isIE8 ? 'ext-ie8' : 'ext-ie9'))) - : 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) { - var p = bd.parentNode; - if (p) { - if (!Ext.isStrict) { - Ext.fly(p, '_internal').addClass('x-quirks'); - if (Ext.isIE && !Ext.isStrict) { - Ext.isIEQuirks = true; - } - } - Ext.fly(p, '_internal').addClass(((Ext.isStrict && Ext.isIE ) || (!Ext.enableForcedBoxModel && !Ext.isIE)) ? ' ext-strict' : ' ext-border-box'); - } - } - - - if (Ext.enableForcedBoxModel && !Ext.isIE) { - Ext.isForcedBorderBox = true; - cls.push("ext-forced-border-box"); - } - - Ext.fly(bd, '_internal').addClass(cls); - return true; - }; - - if (!initExtCss()) { - Ext.onReady(initExtCss); - } -})(); - - -(function(){ - var supports = Ext.apply(Ext.supports, { - - correctRightMargin: true, - - - correctTransparentColor: true, - - - cssFloat: true - }); - - var supportTests = function(){ - var div = document.createElement('div'), - doc = document, - view, - last; - - div.innerHTML = '
      '; - doc.body.appendChild(div); - last = div.lastChild; - - if((view = doc.defaultView)){ - if(view.getComputedStyle(div.firstChild.firstChild, null).marginRight != '0px'){ - supports.correctRightMargin = false; - } - if(view.getComputedStyle(last, null).backgroundColor != 'transparent'){ - supports.correctTransparentColor = false; - } - } - supports.cssFloat = !!last.style.cssFloat; - doc.body.removeChild(div); - }; - - if (Ext.isReady) { - supportTests(); - } else { - Ext.onReady(supportTests); - } -})(); - - - -Ext.EventObject = function(){ - var E = Ext.lib.Event, - clickRe = /(dbl)?click/, - - safariKeys = { - 3 : 13, - 63234 : 37, - 63235 : 39, - 63232 : 38, - 63233 : 40, - 63276 : 33, - 63277 : 34, - 63272 : 46, - 63273 : 36, - 63275 : 35 - }, - - btnMap = Ext.isIE ? {1:0,4:1,2:2} : {0:0,1:1,2:2}; - - Ext.EventObjectImpl = function(e){ - if(e){ - this.setEvent(e.browserEvent || e); - } - }; - - Ext.EventObjectImpl.prototype = { - - setEvent : function(e){ - var me = this; - if(e == me || (e && e.browserEvent)){ - return e; - } - me.browserEvent = e; - if(e){ - - me.button = e.button ? btnMap[e.button] : (e.which ? e.which - 1 : -1); - if(clickRe.test(e.type) && me.button == -1){ - me.button = 0; - } - me.type = e.type; - me.shiftKey = e.shiftKey; - - me.ctrlKey = e.ctrlKey || e.metaKey || false; - me.altKey = e.altKey; - - me.keyCode = e.keyCode; - me.charCode = e.charCode; - - me.target = E.getTarget(e); - - 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; - }, - - - stopEvent : function(){ - var me = this; - if(me.browserEvent){ - if(me.browserEvent.type == 'mousedown'){ - Ext.EventManager.stoppedMouseDownEvent.fire(me); - } - E.stopEvent(me.browserEvent); - } - }, - - - preventDefault : function(){ - if(this.browserEvent){ - E.preventDefault(this.browserEvent); - } - }, - - - stopPropagation : function(){ - var me = this; - if(me.browserEvent){ - if(me.browserEvent.type == 'mousedown'){ - Ext.EventManager.stoppedMouseDownEvent.fire(me); - } - E.stopPropagation(me.browserEvent); - } - }, - - - getCharCode : function(){ - return this.charCode || this.keyCode; - }, - - - getKey : function(){ - return this.normalizeKey(this.keyCode || this.charCode); - }, - - - normalizeKey: function(k){ - return Ext.isSafari ? (safariKeys[k] || k) : k; - }, - - - getPageX : function(){ - return this.xy[0]; - }, - - - getPageY : function(){ - return this.xy[1]; - }, - - - getXY : function(){ - return this.xy; - }, - - - getTarget : function(selector, maxDepth, returnEl){ - return selector ? Ext.fly(this.target).findParent(selector, maxDepth, returnEl) : (returnEl ? Ext.get(this.target) : this.target); - }, - - - getRelatedTarget : function(){ - return this.browserEvent ? E.getRelatedTarget(this.browserEvent) : null; - }, - - - getWheelDelta : function(){ - var e = this.browserEvent; - var delta = 0; - if(e.wheelDelta){ - delta = e.wheelDelta/120; - }else if(e.detail){ - delta = -e.detail/3; - } - return delta; - }, - - - 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(); -}(); -Ext.Loader = Ext.apply({}, { - - load: function(fileList, callback, scope, preserveOrder) { - var scope = scope || this, - head = document.getElementsByTagName("head")[0], - fragment = document.createDocumentFragment(), - numFiles = fileList.length, - loadedFiles = 0, - me = this; - - - var loadFileIndex = function(index) { - head.appendChild( - me.buildScriptTag(fileList[index], onFileLoaded) - ); - }; - - - var onFileLoaded = function() { - loadedFiles ++; - - - if (numFiles == loadedFiles && typeof callback == 'function') { - callback.call(scope); - } else { - if (preserveOrder === true) { - loadFileIndex(loadedFiles); - } - } - }; - - if (preserveOrder === true) { - loadFileIndex.call(this, 0); - } else { - - Ext.each(fileList, function(file, index) { - fragment.appendChild( - this.buildScriptTag(file, onFileLoaded) - ); - }, this); - - head.appendChild(fragment); - } - }, - - - buildScriptTag: function(filename, callback) { - var script = document.createElement('script'); - script.type = "text/javascript"; - script.src = filename; - - - if (script.readyState) { - script.onreadystatechange = function() { - if (script.readyState == "loaded" || script.readyState == "complete") { - script.onreadystatechange = null; - callback(); - } - }; - } else { - script.onload = callback; - } - - return script; - } -}); - - -Ext.ns("Ext.grid", "Ext.list", "Ext.dd", "Ext.tree", "Ext.form", "Ext.menu", - "Ext.state", "Ext.layout.boxOverflow", "Ext.app", "Ext.ux", "Ext.chart", "Ext.direct", "Ext.slider"); - - -Ext.apply(Ext, function(){ - var E = Ext, - idSeed = 0, - scrollWidth = null; - - return { - - emptyFn : function(){}, - - - BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 || Ext.isAir ? - 'http:/' + '/www.extjs.com/s.gif' : - 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==', - - extendX : function(supr, fn){ - return Ext.extend(supr, fn(supr.prototype)); - }, - - - getDoc : function(){ - return Ext.get(document); - }, - - - num : function(v, defaultValue){ - v = Number(Ext.isEmpty(v) || Ext.isArray(v) || typeof v == 'boolean' || (typeof v == 'string' && v.trim().length == 0) ? NaN : v); - return isNaN(v) ? defaultValue : v; - }, - - - value : function(v, defaultValue, allowBlank){ - return Ext.isEmpty(v, allowBlank) ? defaultValue : v; - }, - - - escapeRe : function(s) { - return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1"); - }, - - sequence : function(o, name, fn, scope){ - o[name] = o[name].createSequence(fn, scope); - }, - - - addBehaviors : function(o){ - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.addBehaviors(o); - }); - } else { - var cache = {}, - parts, - b, - s; - for (b in o) { - if ((parts = b.split('@'))[1]) { - s = parts[0]; - if(!cache[s]){ - cache[s] = Ext.select(s); - } - cache[s].on(parts[1], o[b]); - } - } - cache = null; - } - }, - - - getScrollBarWidth: function(force){ - if(!Ext.isReady){ - return 0; - } - - if(force === true || scrollWidth === null){ - - var div = Ext.getBody().createChild('
      '), - child = div.child('div', true); - var w1 = child.offsetWidth; - div.setStyle('overflow', (Ext.isWebKit || Ext.isGecko) ? 'auto' : 'scroll'); - var w2 = child.offsetWidth; - div.remove(); - - scrollWidth = w1 - w2 + 2; - } - return scrollWidth; - }, - - - - combine : function(){ - var as = arguments, l = as.length, r = []; - for(var i = 0; i < l; i++){ - var a = as[i]; - if(Ext.isArray(a)){ - r = r.concat(a); - }else if(a.length !== undefined && !a.substr){ - r = r.concat(Array.prototype.slice.call(a, 0)); - }else{ - r.push(a); - } - } - return r; - }, - - - copyTo : function(dest, source, names){ - if(typeof names == 'string'){ - names = names.split(/[,;\s]/); - } - Ext.each(names, function(name){ - if(source.hasOwnProperty(name)){ - dest[name] = source[name]; - } - }, this); - return dest; - }, - - - destroy : function(){ - Ext.each(arguments, function(arg){ - if(arg){ - if(Ext.isArray(arg)){ - this.destroy.apply(this, arg); - }else if(typeof arg.destroy == 'function'){ - arg.destroy(); - }else if(arg.dom){ - arg.remove(); - } - } - }, this); - }, - - - destroyMembers : function(o, arg1, arg2, etc){ - for(var i = 1, a = arguments, len = a.length; i < len; i++) { - Ext.destroy(o[a[i]]); - delete o[a[i]]; - } - }, - - - clean : function(arr){ - var ret = []; - Ext.each(arr, function(v){ - if(!!v){ - ret.push(v); - } - }); - return ret; - }, - - - unique : function(arr){ - var ret = [], - collect = {}; - - Ext.each(arr, function(v) { - if(!collect[v]){ - ret.push(v); - } - collect[v] = true; - }); - return ret; - }, - - - flatten : function(arr){ - var worker = []; - function rFlatten(a) { - Ext.each(a, function(v) { - if(Ext.isArray(v)){ - rFlatten(v); - }else{ - worker.push(v); - } - }); - return worker; - } - return rFlatten(arr); - }, - - - min : function(arr, comp){ - var ret = arr[0]; - comp = comp || function(a,b){ return a < b ? -1 : 1; }; - Ext.each(arr, function(v) { - ret = comp(ret, v) == -1 ? ret : v; - }); - return ret; - }, - - - max : function(arr, comp){ - var ret = arr[0]; - comp = comp || function(a,b){ return a > b ? 1 : -1; }; - Ext.each(arr, function(v) { - ret = comp(ret, v) == 1 ? ret : v; - }); - return ret; - }, - - - mean : function(arr){ - return arr.length > 0 ? Ext.sum(arr) / arr.length : undefined; - }, - - - sum : function(arr){ - var ret = 0; - Ext.each(arr, function(v) { - ret += v; - }); - return ret; - }, - - - partition : function(arr, truth){ - var ret = [[],[]]; - Ext.each(arr, function(v, i, a) { - ret[ (truth && truth(v, i, a)) || (!truth && v) ? 0 : 1].push(v); - }); - return ret; - }, - - - invoke : function(arr, methodName){ - var ret = [], - args = Array.prototype.slice.call(arguments, 2); - Ext.each(arr, function(v,i) { - if (v && typeof v[methodName] == 'function') { - ret.push(v[methodName].apply(v, args)); - } else { - ret.push(undefined); - } - }); - return ret; - }, - - - pluck : function(arr, prop){ - var ret = []; - Ext.each(arr, function(v) { - ret.push( v[prop] ); - }); - return ret; - }, - - - zip : function(){ - var parts = Ext.partition(arguments, function( val ){ return typeof val != 'function'; }), - arrs = parts[0], - fn = parts[1][0], - len = Ext.max(Ext.pluck(arrs, "length")), - ret = []; - - for (var i = 0; i < len; i++) { - ret[i] = []; - if(fn){ - ret[i] = fn.apply(fn, Ext.pluck(arrs, i)); - }else{ - for (var j = 0, aLen = arrs.length; j < aLen; j++){ - ret[i].push( arrs[j][i] ); - } - } - } - return ret; - }, - - - getCmp : function(id){ - return Ext.ComponentMgr.get(id); - }, - - - useShims: E.isIE6 || (E.isMac && E.isGecko2), - - - - type : function(o){ - if(o === undefined || o === null){ - return false; - } - if(o.htmlElement){ - return 'element'; - } - var t = typeof o; - if(t == 'object' && o.nodeName) { - switch(o.nodeType) { - case 1: return 'element'; - case 3: return (/\S/).test(o.nodeValue) ? 'textnode' : 'whitespace'; - } - } - if(t == 'object' || t == 'function') { - switch(o.constructor) { - case Array: return 'array'; - case RegExp: return 'regexp'; - case Date: return 'date'; - } - if(typeof o.length == 'number' && typeof o.item == 'function') { - return 'nodelist'; - } - } - return t; - }, - - intercept : function(o, name, fn, scope){ - o[name] = o[name].createInterceptor(fn, scope); - }, - - - callback : function(cb, scope, args, delay){ - if(typeof cb == 'function'){ - if(delay){ - cb.defer(delay, scope, args || []); - }else{ - cb.apply(scope, args || []); - } - } - } - }; -}()); - - -Ext.apply(Function.prototype, { - - createSequence : function(fcn, scope){ - var method = this; - return (typeof fcn != 'function') ? - this : - function(){ - var retval = method.apply(this || window, arguments); - fcn.apply(scope || this || window, arguments); - return retval; - }; - } -}); - - - -Ext.applyIf(String, { - - - escape : function(string) { - return string.replace(/('|\\)/g, "\\$1"); - }, - - - leftPad : function (val, size, ch) { - var result = String(val); - if(!ch) { - ch = " "; - } - while (result.length < size) { - result = ch + result; - } - return result; - } -}); - - -String.prototype.toggle = function(value, other){ - return this == value ? other : value; -}; - - -String.prototype.trim = function(){ - var re = /^\s+|\s+$/g; - return function(){ return this.replace(re, ""); }; -}(); - - - -Date.prototype.getElapsed = function(date) { - return Math.abs((date || new Date()).getTime()-this.getTime()); -}; - - - -Ext.applyIf(Number.prototype, { - - constrain : function(min, max){ - return Math.min(Math.max(this, min), max); - } -}); -Ext.lib.Dom.getRegion = function(el) { - return Ext.lib.Region.getRegion(el); -}; Ext.lib.Region = function(t, r, b, l) { - var me = this; - me.top = t; - me[1] = t; - me.right = r; - me.bottom = b; - me.left = l; - me[0] = l; - }; - - Ext.lib.Region.prototype = { - contains : function(region) { - var me = this; - return ( region.left >= me.left && - region.right <= me.right && - region.top >= me.top && - region.bottom <= me.bottom ); - - }, - - getArea : function() { - var me = this; - return ( (me.bottom - me.top) * (me.right - me.left) ); - }, - - intersect : function(region) { - var me = this, - t = Math.max(me.top, region.top), - r = Math.min(me.right, region.right), - b = Math.min(me.bottom, region.bottom), - l = Math.max(me.left, region.left); - - if (b >= t && r >= l) { - return new Ext.lib.Region(t, r, b, l); - } - }, - - union : function(region) { - var me = this, - t = Math.min(me.top, region.top), - r = Math.max(me.right, region.right), - b = Math.max(me.bottom, region.bottom), - l = Math.min(me.left, region.left); - - return new Ext.lib.Region(t, r, b, l); - }, - - constrainTo : function(r) { - var me = this; - me.top = me.top.constrain(r.top, r.bottom); - me.bottom = me.bottom.constrain(r.top, r.bottom); - me.left = me.left.constrain(r.left, r.right); - me.right = me.right.constrain(r.left, r.right); - return me; - }, - - adjust : function(t, l, b, r) { - var me = this; - me.top += t; - me.left += l; - me.right += r; - me.bottom += b; - return me; - } - }; - - Ext.lib.Region.getRegion = function(el) { - var p = Ext.lib.Dom.getXY(el), - t = p[1], - r = p[0] + el.offsetWidth, - b = p[1] + el.offsetHeight, - l = p[0]; - - return new Ext.lib.Region(t, r, b, l); - }; Ext.lib.Point = function(x, y) { - if (Ext.isArray(x)) { - y = x[1]; - x = x[0]; - } - var me = this; - me.x = me.right = me.left = me[0] = x; - me.y = me.top = me.bottom = me[1] = y; - }; - - Ext.lib.Point.prototype = new Ext.lib.Region(); - -Ext.apply(Ext.DomHelper, -function(){ - var pub, - afterbegin = 'afterbegin', - afterend = 'afterend', - beforebegin = 'beforebegin', - beforeend = 'beforeend', - confRe = /tag|children|cn|html$/i; - - - 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; - } - - - - function createDom(o, parentNode){ - var el, - doc = document, - useSet, - attr, - val, - cn; - - if (Ext.isArray(o)) { - el = doc.createDocumentFragment(); - for (var i = 0, l = o.length; i < l; i++) { - createDom(o[i], el); - } - } else if (typeof o == 'string') { - el = doc.createTextNode(o); - } else { - el = doc.createElement( o.tag || 'div' ); - useSet = !!el.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 = { - - createTemplate : function(o){ - var html = Ext.DomHelper.createHtml(o); - return new Ext.Template(html); - }, - - - useDom : false, - - - insertBefore : function(el, o, returnElement){ - return doInsert(el, o, returnElement, beforebegin); - }, - - - insertAfter : function(el, o, returnElement){ - return doInsert(el, o, returnElement, afterend, 'nextSibling'); - }, - - - insertFirst : function(el, o, returnElement){ - return doInsert(el, o, returnElement, afterbegin, 'firstChild'); - }, - - - append: function(el, o, returnElement){ - return doInsert(el, o, returnElement, beforeend, '', true); - }, - - - createDom: createDom - }; - return pub; -}()); - -Ext.apply(Ext.Template.prototype, { - - disableFormats : false, - - - - 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; -/** - * @class Ext.util.Functions - * @singleton - */ -Ext.util.Functions = { - /** - * Creates an interceptor function. The passed function is called before the original one. If it returns false, - * the original one is not called. The resulting function returns the results of the original function. - * The passed function is called with the parameters of the original function. Example usage: - *
      
      -var sayHi = function(name){
      -    alert('Hi, ' + name);
      -}
      -
      -sayHi('Fred'); // alerts "Hi, Fred"
      -
      -// create a new function that validates input without
      -// directly modifying the original function:
      -var sayHiToFriend = Ext.createInterceptor(sayHi, function(name){
      -    return name == 'Brian';
      -});
      -
      -sayHiToFriend('Fred');  // no alert
      -sayHiToFriend('Brian'); // alerts "Hi, Brian"
      -       
      - * @param {Function} origFn The original function. - * @param {Function} newFn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createInterceptor: function(origFn, newFn, scope) { - var method = origFn; - if (!Ext.isFunction(newFn)) { - return origFn; - } - else { - return function() { - var me = this, - args = arguments; - newFn.target = me; - newFn.method = origFn; - return (newFn.apply(scope || me || window, args) !== false) ? - origFn.apply(me || window, args) : - null; - }; - } - }, - - /** - * Creates a delegate (callback) that sets the scope to obj. - * Call directly on any function. Example: Ext.createDelegate(this.myFunction, this, [arg1, arg2]) - * Will create a function that is automatically scoped to obj so that the this variable inside the - * callback points to obj. Example usage: - *
      
      -var sayHi = function(name){
      -    // Note this use of "this.text" here.  This function expects to
      -    // execute within a scope that contains a text property.  In this
      -    // example, the "this" variable is pointing to the btn object that
      -    // was passed in createDelegate below.
      -    alert('Hi, ' + name + '. You clicked the "' + this.text + '" button.');
      -}
      -
      -var btn = new Ext.Button({
      -    text: 'Say Hi',
      -    renderTo: Ext.getBody()
      -});
      -
      -// This callback will execute in the scope of the
      -// button instance. Clicking the button alerts
      -// "Hi, Fred. You clicked the "Say Hi" button."
      -btn.on('click', Ext.createDelegate(sayHi, btn, ['Fred']));
      -       
      - * @param {Function} fn The function to delegate. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - */ - createDelegate: function(fn, obj, args, appendArgs) { - if (!Ext.isFunction(fn)) { - return fn; - } - return function() { - var callArgs = args || arguments; - if (appendArgs === true) { - callArgs = Array.prototype.slice.call(arguments, 0); - callArgs = callArgs.concat(args); - } - else if (Ext.isNumber(appendArgs)) { - callArgs = Array.prototype.slice.call(arguments, 0); - // copy arguments first - var applyArgs = [appendArgs, 0].concat(args); - // create method call params - Array.prototype.splice.apply(callArgs, applyArgs); - // splice them in - } - return fn.apply(obj || window, callArgs); - }; - }, - - /** - * Calls this function after the number of millseconds specified, optionally in a specific scope. Example usage: - *
      
      -var sayHi = function(name){
      -    alert('Hi, ' + name);
      -}
      -
      -// executes immediately:
      -sayHi('Fred');
      -
      -// executes after 2 seconds:
      -Ext.defer(sayHi, 2000, this, ['Fred']);
      -
      -// this syntax is sometimes useful for deferring
      -// execution of an anonymous function:
      -Ext.defer(function(){
      -    alert('Anonymous');
      -}, 100);
      -       
      - * @param {Function} fn The function to defer. - * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - */ - defer: function(fn, millis, obj, args, appendArgs) { - fn = Ext.util.Functions.createDelegate(fn, obj, args, appendArgs); - if (millis > 0) { - return setTimeout(fn, millis); - } - fn(); - return 0; - }, - - - /** - * Create a combined function call sequence of the original function + the passed function. - * The resulting function returns the results of the original function. - * The passed fcn is called with the parameters of the original function. Example usage: - * - -var sayHi = function(name){ - alert('Hi, ' + name); -} - -sayHi('Fred'); // alerts "Hi, Fred" - -var sayGoodbye = Ext.createSequence(sayHi, function(name){ - alert('Bye, ' + name); -}); - -sayGoodbye('Fred'); // both alerts show - - * @param {Function} origFn The original function. - * @param {Function} newFn The function to sequence - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - */ - createSequence: function(origFn, newFn, scope) { - if (!Ext.isFunction(newFn)) { - return origFn; - } - else { - return function() { - var retval = origFn.apply(this || window, arguments); - newFn.apply(scope || this || window, arguments); - return retval; - }; - } - } -}; - -/** - * Shorthand for {@link Ext.util.Functions#defer} - * @param {Function} fn The function to defer. - * @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Number} The timeout id that can be used with clearTimeout - * @member Ext - * @method defer - */ - -Ext.defer = Ext.util.Functions.defer; - -/** - * Shorthand for {@link Ext.util.Functions#createInterceptor} - * @param {Function} origFn The original function. - * @param {Function} newFn The function to call before the original - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - * @member Ext - * @method defer - */ - -Ext.createInterceptor = Ext.util.Functions.createInterceptor; - -/** - * Shorthand for {@link Ext.util.Functions#createSequence} - * @param {Function} origFn The original function. - * @param {Function} newFn The function to sequence - * @param {Object} scope (optional) The scope (this reference) in which the passed function is executed. - * If omitted, defaults to the scope in which the original function is called or the browser window. - * @return {Function} The new function - * @member Ext - * @method defer - */ - -Ext.createSequence = Ext.util.Functions.createSequence; - -/** - * Shorthand for {@link Ext.util.Functions#createDelegate} - * @param {Function} fn The function to delegate. - * @param {Object} scope (optional) The scope (this reference) in which the function is executed. - * If omitted, defaults to the browser window. - * @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding, - * if a number the args are inserted at the specified position - * @return {Function} The new function - * @member Ext - * @method defer - */ -Ext.createDelegate = Ext.util.Functions.createDelegate; -/** - * @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, {
      -    
      -    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
      -        this.enableBubble('change');
      -    }),
      -
      -    
      -    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() {
      -            
      -            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; - } - } - } - }; -}()); - - - -Ext.util.Observable.capture = function(o, fn, scope){ - o.fireEvent = o.fireEvent.createInterceptor(fn, scope); -}; - - - -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; - } -}; - -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)$/, - unload = Ext.EventManager._unload, - curWidth = 0, - curHeight = 0, - - - - useKeydown = Ext.isWebKit ? - Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1]) >= 525 : - !((Ext.isGecko && !Ext.isWindows) || Ext.isOpera); - - return { - _unload: function(){ - Ext.EventManager.un(window, "resize", this.fireWindowResize, this); - unload.call(Ext.EventManager); - }, - - - doResizeEvent: function(){ - var h = D.getViewHeight(), - w = D.getViewWidth(); - - - if(curHeight != h || curWidth != w){ - resizeEvent.fire(curWidth = w, curHeight = h); - } - }, - - - 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); - }, - - - fireWindowResize : function(){ - if(resizeEvent){ - resizeTask.delay(100); - } - }, - - - 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); - }, - - - removeResizeListener : function(fn, scope){ - if(resizeEvent){ - resizeEvent.removeListener(fn, scope); - } - }, - - - fireResize : function(){ - if(resizeEvent){ - resizeEvent.fire(D.getViewWidth(), D.getViewHeight()); - } - }, - - - textResizeInterval : 50, - - - ieDeferSrc : false, - - - getKeyEvent : function(){ - return useKeydown ? 'keydown' : 'keypress'; - }, - - - - useKeydown: useKeydown - }; -}()); - -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 me = this, - k = this.normalizeKey(me.keyCode); - return (k >= 33 && k <= 40) || - 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) || - (k >= 16 && k <= 20) || - (k >= 44 && k <= 46); - }, - - getPoint : function(){ - return new Ext.lib.Point(this.xy[0], this.xy[1]); - }, - - - hasModifier : function(){ - return ((this.ctrlKey || this.altKey) || this.shiftKey); - } -}); -Ext.Element.addMethods({ - - 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; - }, - - - relayEvent : function(eventName, observable) { - this.on(eventName, function(e) { - observable.fireEvent(eventName, e); - }); - }, - - - 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; - }, - - - load : function() { - var updateManager = this.getUpdater(); - updateManager.update.apply(updateManager, 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(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) { - proxy.setBox(me.getBox()); - } - return proxy; - } -}); - -Ext.Element.prototype.getUpdateManager = Ext.Element.prototype.getUpdater; - -Ext.Element.addMethods({ - - getAnchorXY : function(anchor, local, s){ - - - 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]; - }, - - - 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(); - - - 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); - return me; - }, - - - 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; - }, - - - 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; - }, - - - 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, - - w, - h, - r, - dw = Ext.lib.Dom.getViewWidth() -10, - dh = Ext.lib.Dom.getViewHeight()-10, - 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, - 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]; - - - - 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(); - - - - 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]; - }, - - - 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); - }, - - - adjustForConstraints : function(xy, parent, offsets){ - return this.getConstrainToXY(parent || document, false, offsets, xy) || xy; - }, - - - 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, - vb = vy + vh, - xy = proposedXY || (!local ? this.getXY() : [this.getLeft(true), this.getTop(true)]), - x = xy[0], y = xy[1], - offset = this.getConstrainOffset(), - w = this.dom.offsetWidth + offset, - h = this.dom.offsetHeight + offset; - - - var moved = false; - - - if((x + w) > vr){ - x = vr - w; - moved = true; - } - if((y + h) > vb){ - y = vb - h; - moved = true; - } - - if(x < vx){ - x = vx; - moved = true; - } - if(y < vy){ - y = vy; - moved = true; - } - return moved ? [x, y] : false; - }; - }(), - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - getConstrainOffset : function(){ - return 0; - }, - - - getCenterXY : function(){ - return this.getAlignToXY(document, 'c-c'); - }, - - - center : function(centerIn){ - return this.alignTo(centerIn || document, 'c-c'); - } -}); - -Ext.Element.addMethods({ - - select : function(selector, unique){ - return Ext.Element.select(selector, unique, this.dom); - } -}); -Ext.apply(Ext.Element.prototype, function() { - var GETDOM = Ext.getDom, - GET = Ext.get, - DH = Ext.DomHelper; - - return { - - 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; - } - }; -}()); - - -Ext.Element.boxMarkup = '
      '; - -Ext.Element.addMethods(function(){ - var INTERNAL = "_internal", - pxMatch = /(\d+\.?\d+)px/; - return { - - applyStyles : function(style){ - Ext.DomHelper.applyStyles(this.dom, style); - return this; - }, - - - getStyles : function(){ - var ret = {}; - Ext.each(arguments, function(v) { - ret[v] = this.getStyle(v); - }, - this); - return ret; - }, - - - setOverflow : function(v){ - var dom = this.dom; - if(v=='auto' && Ext.isMac && Ext.isGecko2){ - dom.style.overflow = 'hidden'; - (function(){dom.style.overflow = 'auto';}).defer(1); - }else{ - dom.style.overflow = v; - } - }, - - - boxWrap : function(cls){ - cls = cls || 'x-box'; - var el = Ext.get(this.insertHtml("beforeBegin", "
      " + String.format(Ext.Element.boxMarkup, cls) + "
      ")); - Ext.DomQuery.selectNode('.' + cls + '-mc', el.dom).appendChild(this.dom); - return el; - }, - - - setSize : function(width, height, animate){ - var me = this; - if(typeof width == 'object'){ - 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; - }, - - - 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; - }, - - - 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; - }, - - - getFrameWidth : function(sides, onlyContentBox){ - return onlyContentBox && this.isBorderBox() ? 0 : (this.getPadding(sides) + this.getBorderWidth(sides)); - }, - - - addClassOnOver : function(className){ - this.hover( - function(){ - Ext.fly(this, INTERNAL).addClass(className); - }, - function(){ - Ext.fly(this, INTERNAL).removeClass(className); - } - ); - return 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; - }, - - - 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; - }, - - - - getViewSize : function(){ - var doc = document, - d = this.dom, - isDoc = (d == doc || d == doc.body); - - - if (isDoc) { - var extdom = Ext.lib.Dom; - return { - width : extdom.getViewWidth(), - height : extdom.getViewHeight() - }; - - - } else { - return { - width : d.clientWidth, - height : d.clientHeight - }; - } - }, - - - - getStyleSize : function(){ - var me = this, - w, h, - doc = document, - d = this.dom, - isDoc = (d == doc || d == doc.body), - s = d.style; - - - if (isDoc) { - var extdom = Ext.lib.Dom; - return { - width : extdom.getViewWidth(), - height : extdom.getViewHeight() - }; - } - - if(s.width && s.width != 'auto'){ - w = parseFloat(s.width); - if(me.isBorderBox()){ - w -= me.getFrameWidth('lr'); - } - } - - if(s.height && s.height != 'auto'){ - h = parseFloat(s.height); - if(me.isBorderBox()){ - h -= me.getFrameWidth('tb'); - } - } - - return {width: w || me.getWidth(true), height: h || me.getHeight(true)}; - }, - - - getSize : function(contentSize){ - return {width: this.getWidth(contentSize), height: this.getHeight(contentSize)}; - }, - - - repaint : function(){ - var dom = this.dom; - this.addClass("x-repaint"); - setTimeout(function(){ - Ext.fly(dom).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(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); - } - } - }; -}()); - -Ext.Element.addMethods({ - - 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; - }, - - - 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 : 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)); - }, - - - setLeftTop : function(left, top){ - var me = this, - style = me.dom.style; - style.left = me.addUnits(left); - style.top = me.addUnits(top); - return me; - }, - - - getRegion : function(){ - return Ext.lib.Dom.getRegion(this.dom); - }, - - - 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; - }, - - - 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)); - } -}); -Ext.Element.addMethods({ - - scrollTo : function(side, value, animate) { - - var top = /top/i.test(side), - me = this, - dom = me.dom, - prop; - if (!animate || !me.anim) { - - prop = 'scroll' + (top ? 'Top' : 'Left'); - dom[prop] = value; - } - else { - - prop = 'scroll' + (top ? 'Left' : 'Top'); - me.anim({scroll: {to: top ? [dom[prop], value] : [value, dom[prop]]}}, me.preanim(arguments, 2), 'scroll'); - } - return me; - }, - - - 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; - - 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; - }, - - - scrollChildIntoView : function(child, hscroll) { - Ext.fly(child, '_scrollChildIntoView').scrollIntoView(this, hscroll); - }, - - - scroll : function(direction, distance, animate) { - if (!this.isScrollable()) { - return false; - } - 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; - } -}); -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 { - - 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; - }, - - - isDisplayed : function() { - return !this.isStyle(DISPLAY, NONE); - }, - - - enableDisplayMode : function(display) { - this.setVisibilityMode(Ext.Element.DISPLAY); - - if (!Ext.isEmpty(display)) { - data(this.dom, 'originalDisplay', display); - } - - return this; - }, - - - 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') { - mask.setSize(undefined, me.getHeight()); - } - - return 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]); - } - }, - - - isMasked : function() { - var m = data(this.dom, 'mask'); - return m && m.isVisible(); - }, - - - 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; - } - }; - }() -); -Ext.Element.addMethods({ - - 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); - }, - - - addKeyMap : function(config){ - return new Ext.KeyMap(this, config); - } -}); - - - -Ext.CompositeElementLite.importElementMethods(); -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; - }, - - - first : function(){ - return this.item(0); - }, - - - last : function(){ - return this.item(this.getCount()-1); - }, - - - contains : function(el){ - return this.indexOf(el) != -1; - }, - - - 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; - } -}); - -Ext.CompositeElement = Ext.extend(Ext.CompositeElementLite, { - - constructor : function(els, root){ - this.elements = []; - this.add(els, root); - }, - - - getElement : function(el){ - - return el; - }, - - - transformElement : function(el){ - return Ext.get(el); - } - - - - - - -}); - - -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); -}; - - -Ext.select = Ext.Element.select; -Ext.UpdateManager = Ext.Updater = Ext.extend(Ext.util.Observable, -function() { - var BEFOREUPDATE = "beforeupdate", - UPDATE = "update", - FAILURE = "failure"; - - - function processSuccess(response){ - var me = this; - me.transaction = null; - if (response.argument.form && response.argument.reset) { - try { - 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); - } - } - - - 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); - } - } - - - 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; - } - - me.el = el; - - me.defaultUrl = null; - - me.addEvents( - - BEFOREUPDATE, - - UPDATE, - - FAILURE - ); - - Ext.apply(me, Ext.Updater.defaults); - - - - - - - - - me.transaction = null; - - me.refreshDelegate = me.refresh.createDelegate(me); - - me.updateDelegate = me.update.createDelegate(me); - - me.formUpdateDelegate = (me.formUpdate || function(){}).createDelegate(me); - - - me.renderer = me.renderer || me.getDefaultRenderer(); - - Ext.Updater.superclass.constructor.call(me); - }, - - - setRenderer : function(renderer){ - this.renderer = renderer; - }, - - - getRenderer : function(){ - return this.renderer; - }, - - - getDefaultRenderer: function() { - return new Ext.Updater.BasicRenderer(); - }, - - - setDefaultUrl : function(defaultUrl){ - this.defaultUrl = defaultUrl; - }, - - - getEl : function(){ - return this.el; - }, - - - update : function(url, params, callback, discardUrl){ - var me = this, - cfg, - callerScope; - - if(me.fireEvent(BEFOREUPDATE, me.el, url, params) !== false){ - if(Ext.isObject(url)){ - 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); - } - }, - - - 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); - } - }, - - - 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); - }, - - - 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(callback){ - if(this.defaultUrl){ - this.update(this.defaultUrl, null, callback, true); - } - } - }; -}()); - - -Ext.Updater.defaults = { - - timeout : 30, - - disableCaching : false, - - showLoadIndicator : true, - - indicatorText : '
      Loading...
      ', - - loadScripts : false, - - sslBlankUrl : Ext.SSL_SECURE_URL -}; - - - -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); -}; - - -Ext.Updater.BasicRenderer = function(){}; - -Ext.Updater.BasicRenderer.prototype = { - - render : function(el, response, updateManager, callback){ - el.update(response.responseText, updateManager.loadScripts, callback); - } -}; - - - -(function() { - - -Date.useStrict = false; - - - - - -function xf(format) { - var args = Array.prototype.slice.call(arguments, 1); - return format.replace(/\{(\d+)\}/g, function(m, i) { - return args[i]; - }); -} - - - -Date.formatCodeToRegex = function(character, currentGroup) { - - var p = Date.parseCodes[character]; - - if (p) { - p = typeof p == 'function'? p() : p; - Date.parseCodes[character] = p; - } - - return p ? Ext.applyIf({ - c: p.c ? xf(p.c, currentGroup || "{0}") : p.c - }, p) : { - g:0, - c:null, - s:Ext.escapeRe(character) - }; -}; - - -var $f = Date.formatCodeToRegex; - -Ext.apply(Date, { - - parseFunctions: { - "M$": function(input, strict) { - - - var re = new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/'); - var r = (input || '').match(re); - return r? new Date(((r[1] || '') + r[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(month) { - return Date.monthNames[month].substring(0, 3); - }, - - - getShortDayName : function(day) { - return Date.dayNames[day].substring(0, 3); - }, - - - getMonthNumber : function(name) { - - return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; - }, - - - formatContainsHourInfo : (function(){ - var stripEscapeRe = /(\\.)/g, - hourInfoRe = /([gGhHisucUOPZ]|M\$)/; - return function(format){ - return hourInfoRe.test(format.replace(stripEscapeRe, '')); - }; - })(), - - - 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: "String.leftPad(this.getFullYear(), 4, '0')", - 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 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)); - } - return code.join(" + "); - }, - - - U: "Math.round(this.getTime() / 1000)" - }, - - - isValid : function(y, m, d, h, i, s, ms) { - - h = h || 0; - i = i || 0; - s = s || 0; - ms = ms || 0; - - - var dt = new Date(y < 100 ? 100 : y, m - 1, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0); - - return y == dt.getFullYear() && - m == dt.getMonth() + 1 && - d == dt.getDate() && - h == dt.getHours() && - i == dt.getMinutes() && - s == dt.getSeconds() && - ms == dt.getMilliseconds(); - }, - - - 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); - }, - - - getFormatCode : function(character) { - var f = Date.formatCodes[character]; - - if (f) { - f = typeof f == 'function'? f() : f; - Date.formatCodes[character] = f; - } - - - return f || ("'" + String.escape(character) + "'"); - }, - - - 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('+')); - }, - - - 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}]);", - - "if(results){", - "{1}", - - "if(u != null){", - "v = new Date(u * 1000);", - "}else{", - - - - "dt = (new Date()).clearTime();", - - - "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()));", - - - "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){", - - - - - - "v = new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);", - - - "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 < 100 ? 100 : y, m, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);", - "}", - "}", - "}", - - "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(format) { - var regexNum = Date.parseRegexes.length, - currentGroup = 1, - calc = [], - regex = [], - special = false, - ch = "", - i = 0, - obj, - last; - - for (; i < format.length; ++i) { - ch = format.charAt(i); - if (!special && ch == "\\") { - special = true; - } else if (special) { - special = false; - regex.push(String.escape(ch)); - } else { - obj = $f(ch, currentGroup); - currentGroup += obj.g; - regex.push(obj.s); - if (obj.g && obj.c) { - if (obj.calcLast) { - last = obj.c; - } else { - calc.push(obj.c); - } - } - } - } - - if (last) { - calc.push(last); - } - - Date.parseRegexes[regexNum] = new RegExp("^" + regex.join('') + "$", 'i'); - Date.parseFunctions[format] = new Function("input", "strict", xf(code, regexNum, calc.join(''))); - }; - }(), - - - parseCodes : { - - d: { - g:1, - c:"d = parseInt(results[{0}], 10);\n", - s:"(\\d{2})" - }, - j: { - g:1, - c:"d = parseInt(results[{0}], 10);\n", - s:"(\\d{1,2})" - }, - D: function() { - for (var a = [], i = 0; i < 7; a.push(Date.getShortDayName(i)), ++i); - 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]" - }, - S: { - g:0, - c:null, - s:"(?:st|nd|rd|th)" - }, - w: { - g:0, - c:null, - s:"[0-6]" - }, - z: { - g:1, - c:"z = parseInt(results[{0}], 10);\n", - s:"(\\d{1,3})" - }, - W: { - g:0, - c:null, - s:"(?:\\d{2})" - }, - F: function() { - return { - g:1, - c:"m = parseInt(Date.getMonthNumber(results[{0}]), 10);\n", - s:"(" + Date.monthNames.join("|") + ")" - }; - }, - M: function() { - for (var a = [], i = 0; i < 12; a.push(Date.getShortMonthName(i)), ++i); - return Ext.applyIf({ - s:"(" + a.join("|") + ")" - }, $f("F")); - }, - m: { - g:1, - c:"m = parseInt(results[{0}], 10) - 1;\n", - s:"(\\d{2})" - }, - n: { - g:1, - c:"m = parseInt(results[{0}], 10) - 1;\n", - s:"(\\d{1,2})" - }, - t: { - g:0, - c:null, - s:"(?:\\d{2})" - }, - 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})" - }, - y: { - g:1, - c:"var ty = parseInt(results[{0}], 10);\n" - + "y = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n", - s:"(\\d{1,2})" - }, - - a: function(){ - return $f("A"); - }, - A: { - - calcLast: true, - g:1, - c:"if (/(am)/i.test(results[{0}])) {\n" - + "if (!h || h == 12) { h = 0; }\n" - + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}", - s:"(AM|PM|am|pm)" - }, - g: function() { - return $f("G"); - }, - G: { - g:1, - c:"h = parseInt(results[{0}], 10);\n", - s:"(\\d{1,2})" - }, - h: function() { - return $f("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;\n" - + "zz = (-43200 <= zz && zz <= 50400)? zz : null;\n", - s:"([+\-]?\\d{1,5})" - }, - c: function() { - var calc = [], - arr = [ - $f("Y", 1), - $f("m", 2), - $f("d", 3), - $f("h", 4), - $f("i", 5), - $f("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){", - $f("P", 8).c, - "}else{", - $f("O", 8).c, - "}", - "}" - ].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, - "(?:", "-", arr[1].s, - "(?:", "-", arr[2].s, - "(?:", - "(?:T| )?", - arr[3].s, ":", arr[4].s, - "(?::", arr[5].s, ")?", - "(?:(?:\\.|,)(\\d+))?", - "(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?", - ")?", - ")?", - ")?" - ].join("") - }; - }, - U: { - g:1, - c:"u = parseInt(results[{0}], 10);\n", - s:"(-?\\d+)" - } - } -}); - -}()); - -Ext.apply(Date.prototype, { - - dateFormat : function(format) { - if (Date.formatFunctions[format] == null) { - Date.createFormat(format); - } - return Date.formatFunctions[format].call(this); - }, - - - getTimezone : function() { - - - - - - - - - - - - - return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, "$1$2").replace(/[^A-Z]/g, ""); - }, - - - 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"); - }, - - - 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; - }, - - - getWeekOfYear : function() { - - var ms1d = 864e5, - ms7d = 7 * ms1d; - - return function() { - var DC3 = Date.UTC(this.getFullYear(), this.getMonth(), this.getDate() + 3) / ms1d, - AWN = Math.floor(DC3 / 7), - Wyr = new Date(AWN * ms7d).getUTCFullYear(); - - return AWN - Math.floor(Date.UTC(Wyr, 0, 7) / ms7d) + 1; - }; - }(), - - - isLeapYear : function() { - var year = this.getFullYear(); - return !!((year & 3) == 0 && (year % 100 || (year % 400 == 0 && year))); - }, - - - getFirstDayOfMonth : function() { - var day = (this.getDay() - (this.getDate() - 1)) % 7; - return (day < 0) ? (day + 7) : day; - }, - - - getLastDayOfMonth : function() { - return this.getLastDateOfMonth().getDay(); - }, - - - - getFirstDateOfMonth : function() { - return new Date(this.getFullYear(), this.getMonth(), 1); - }, - - - getLastDateOfMonth : function() { - return new Date(this.getFullYear(), this.getMonth(), this.getDaysInMonth()); - }, - - - getDaysInMonth: function() { - var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - - return function() { - var m = this.getMonth(); - - return m == 1 && this.isLeapYear() ? 29 : daysInMonth[m]; - }; - }(), - - - 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"; - } - }, - - - clone : function() { - return new Date(this.getTime()); - }, - - - isDST : function() { - - - return new Date(this.getFullYear(), 0, 1).getTimezoneOffset() != this.getTimezoneOffset(); - }, - - - clearTime : function(clone) { - if (clone) { - return this.clone().clearTime(); - } - - - var d = this.getDate(); - - - this.setHours(0); - this.setMinutes(0); - this.setSeconds(0); - this.setMilliseconds(0); - - if (this.getDate() != d) { - - - - - 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; - }, - - - 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; - }, - - - between : function(start, end) { - var t = this.getTime(); - return start.getTime() <= t && t <= end.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(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); - } - }, - - - - - setDate : function(d) { - - - return this.setTime(this.getTime() - (this.getDate() - d) * 864e5); - } - }); -} - - - - - -Ext.util.MixedCollection = function(allowFunctions, keyFn){ - this.items = []; - this.map = {}; - this.keys = []; - this.length = 0; - this.addEvents( - - 'clear', - - 'add', - - 'replace', - - '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, { - - - allowFunctions : false, - - - 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; - }, - - - getKey : function(o){ - return o.id; - }, - - - 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; - }, - - - 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]); - } - } - } - }, - - - each : function(fn, scope){ - var items = [].concat(this.items); - for(var i = 0, len = items.length; i < len; i++){ - if(fn.call(scope || items[i], items[i], i, len) === false){ - break; - } - } - }, - - - 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); - } - }, - - - 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; - }, - - - 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 : function(o){ - return this.removeAt(this.indexOf(o)); - }, - - - 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; - }, - - - removeKey : function(key){ - return this.removeAt(this.indexOfKey(key)); - }, - - - getCount : function(){ - return this.length; - }, - - - indexOf : function(o){ - return this.items.indexOf(o); - }, - - - indexOfKey : function(key){ - return this.keys.indexOf(key); - }, - - - 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; - }, - - - itemAt : function(index){ - return this.items[index]; - }, - - - key : function(key){ - return this.map[key]; - }, - - - contains : function(o){ - return this.indexOf(o) != -1; - }, - - - containsKey : function(key){ - return typeof this.map[key] != '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(property, dir, fn){ - var i, len, - dsc = String(dir).toUpperCase() == 'DESC' ? -1 : 1, - - - c = [], - keys = this.keys, - items = this.items; - - - fn = fn || function(a, b) { - return a - b; - }; - - - for(i = 0, len = items.length; i < len; i++){ - c[c.length] = { - key : keys[i], - value: items[i], - index: i - }; - } - - - 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; - }); - - - for(i = 0, len = c.length; i < len; i++){ - items[i] = c[i].value; - keys[i] = c[i].key; - } - - this.fireEvent('sort', this); - }, - - - sort : function(dir, fn){ - this._sort('value', dir, fn); - }, - - - reorder: function(mapping) { - this.suspendEvents(); - - var items = this.items, - index = 0, - length = items.length, - order = [], - remaining = [], - oldIndex; - - - 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); - }, - - - 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); - }); - }, - - - 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 : 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]); - }); - }, - - - 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; - }, - - - 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); - }, - - - 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; - }, - - - createValueMatcher : function(value, anyMatch, caseSensitive, exactMatch) { - if (!value.exec) { - 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; - }, - - - 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; - } -}); - -Ext.util.MixedCollection.prototype.get = Ext.util.MixedCollection.prototype.item; - -Ext.AbstractManager = Ext.extend(Object, { - typeName: 'type', - - constructor: function(config) { - Ext.apply(this, config || {}); - - - this.all = new Ext.util.MixedCollection(); - - this.types = {}; - }, - - - get : function(id){ - return this.all.get(id); - }, - - - register: function(item) { - this.all.add(item); - }, - - - unregister: function(item) { - this.all.remove(item); - }, - - - registerType : function(type, cls){ - this.types[type] = cls; - cls[this.typeName] = type; - }, - - - isRegistered : function(type){ - return this.types[type] !== undefined; - }, - - - create: function(config, defaultType) { - var type = config[this.typeName] || config.type || defaultType, - Constructor = this.types[type]; - - if (Constructor == undefined) { - throw new Error(String.format("The '{0}' type has not been registered with this manager", type)); - } - - return new Constructor(config); - }, - - - onAvailable : function(id, fn, scope){ - var all = this.all; - - all.on("add", function(index, o){ - if (o.id == id) { - fn.call(scope || o, o); - all.un("add", fn, scope); - } - }); - } -}); -Ext.util.Format = function() { - var trimRe = /^\s+|\s+$/g, - stripTagsRE = /<\/?[^>]+>/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 < 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, - i; - - for (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); - }, - - - numberRenderer : function(format) { - return function(v) { - return Ext.util.Format.number(v, format); - }; - }, - - - plural : function(v, s, p) { - return v +' ' + (v == 1 ? s : (p ? p : s+'s')); - }, - - - nl2br : function(v) { - return Ext.isEmpty(v) ? '' : v.replace(nl2brRe, '
      '); - } - }; -}(); - -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, { - - re : /\{([\w\-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g, - - codeRe : /\{\[((?:\\\]|.|\n)*?)\]\}/g, - - - 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); - }, - - - 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){ - - return "'" + sep + '(' + code.replace(/\\'/g, "'") + ')' + sep + "'"; - } - - - 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; - }, - - - applyTemplate : function(values){ - return this.master.compiled.call(this, values, {}, 1, 1); - }, - - - compile : function(){return this;} - - - - - -}); - -Ext.XTemplate.prototype.apply = Ext.XTemplate.prototype.applyTemplate; - - -Ext.XTemplate.from = function(el){ - el = Ext.getDom(el); - return new Ext.XTemplate(el.value || el.innerHTML); -}; - -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 { - - 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; - }, - - - removeStyleSheet : function(id){ - var existing = doc.getElementById(id); - if(existing){ - existing.parentNode.removeChild(existing); - } - }, - - - 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); - }, - - - refreshCache : function(){ - return this.getRules(true); - }, - - - cacheStyleSheet : function(ss){ - if(!rules){ - rules = {}; - } - try{ - var ssRules = ss.cssRules || ss.rules; - for(var j = ssRules.length-1; j >= 0; --j){ - rules[ssRules[j].selectorText.toLowerCase()] = ssRules[j]; - } - }catch(e){} - }, - - - 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; - }, - - - 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; - }, - - - - 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; - } - }; -}(); -Ext.util.ClickRepeater = Ext.extend(Ext.util.Observable, { - - constructor : function(el, config){ - this.el = Ext.get(el); - this.el.unselectable(); - - Ext.apply(this, config); - - this.addEvents( - - "mousedown", - - "click", - - "mouseup" - ); - - if(!this.disabled){ - this.disabled = true; - this.enable(); - } - - - if(this.handler){ - this.on("click", this.handler, this.scope || this); - } - - Ext.util.ClickRepeater.superclass.constructor.call(this); - }, - - interval : 20, - delay: 250, - preventDefault : true, - stopDefault : false, - timer : 0, - - - 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; - }, - - - disable: function( 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; - }, - - - setDisabled: function(disabled){ - this[disabled ? 'disable' : 'enable'](); - }, - - eventOptions: function(e){ - if(this.preventDefault){ - e.preventDefault(); - } - if(this.stopDefault){ - e.stopEvent(); - } - }, - - - destroy : function() { - this.disable(true); - Ext.destroy(this.el); - this.purgeListeners(); - }, - - handleDblClick : function(e){ - clearTimeout(this.timer); - this.el.blur(); - - this.fireEvent("mousedown", this, e); - this.fireEvent("click", this, e); - }, - - - handleMouseDown : function(e){ - 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, e); - this.fireEvent("click", this, e); - - - if (this.accelerate) { - this.delay = 400; - } - this.timer = this.click.defer(this.delay || this.interval, this, [e]); - }, - - - click : function(e){ - this.fireEvent("click", this, e); - this.timer = this.click.defer(this.accelerate ? - this.easeOutExpo(this.mousedownTime.getElapsed(), - 400, - -390, - 12000) : - this.interval, this, [e]); - }, - - easeOutExpo : function (t, b, c, d) { - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; - }, - - - handleMouseOut : function(){ - clearTimeout(this.timer); - if(this.pressClass){ - this.el.removeClass(this.pressClass); - } - this.el.on("mouseover", this.handleMouseReturn, this); - }, - - - handleMouseReturn : function(){ - this.el.un("mouseover", this.handleMouseReturn, this); - if(this.pressClass){ - this.el.addClass(this.pressClass); - } - this.click(); - }, - - - handleMouseUp : function(e){ - 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, e); - } -}); -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 = { - - disabled : false, - - defaultEventAction: "stopEvent", - - forceKeyDown : false, - - - relay : function(e){ - var k = e.getKey(), - h = this.keyToHandler[k]; - if(h && this[h]){ - if(this.doRelay(e, this[h], h) !== true){ - e[this.defaultEventAction](); - } - } - }, - - - doRelay : function(e, h, hname){ - return h.call(this.scope || this, e, hname); - }, - - - enter : false, - left : false, - right : false, - up : false, - down : false, - tab : false, - esc : false, - pageUp : false, - pageDown : false, - del : false, - home : false, - end : false, - space : false, - - - 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", - 32 : "space" - }, - - stopKeyUp: function(e) { - var k = e.getKey(); - - if (k >= 37 && k <= 40) { - - - e.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(disabled){ - this[disabled ? "disable" : "enable"](); - }, - - - isKeydown: function(){ - return this.forceKeyDown || Ext.EventManager.useKeydown; - } -}; - -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 = { - - stopEvent : false, - - - 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); - }, - - - 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; - }, - - - 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 - }); - }, - - - handleKeyDown : function(e){ - if(this.enabled){ - var b = this.bindings; - for(var i = 0, len = b.length; i < len; i++){ - b[i].call(this, e); - } - } - }, - - - isEnabled : function(){ - return this.enabled; - }, - - - enable: function(){ - if(!this.enabled){ - this.el.on(this.eventName, this.handleKeyDown, this); - this.enabled = true; - } - }, - - - disable: function(){ - if(this.enabled){ - this.el.removeListener(this.eventName, this.handleKeyDown, this); - this.enabled = false; - } - }, - - - setDisabled : function(disabled){ - this[disabled ? "disable" : "enable"](); - } -}; -Ext.util.TextMetrics = function(){ - var shared; - return { - - 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); - }, - - - 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 = { - - getSize : function(text){ - ml.update(text); - var s = ml.getSize(); - ml.update(''); - return s; - }, - - - bind : function(el){ - ml.setStyle( - Ext.fly(el).getStyles('font-size','font-style', 'font-weight', 'font-family','line-height', 'text-transform', 'letter-spacing') - ); - }, - - - setFixedWidth : function(width){ - ml.setWidth(width); - }, - - - getWidth : function(text){ - ml.dom.style.width = 'auto'; - return this.getSize(text).width; - }, - - - getHeight : function(text){ - return this.getSize(text).height; - } - }; - - instance.bind(bindTo); - - return instance; -}; - -Ext.Element.addMethods({ - - 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); - } -}); - -Ext.util.Cookies = { - - 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" : ""); - }, - - - 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; - }, - - - clear : function(name){ - if(Ext.util.Cookies.get(name)){ - document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; - } - }, - - getCookieVal : function(offset){ - var endstr = document.cookie.indexOf(";", offset); - if(endstr == -1){ - endstr = document.cookie.length; - } - return unescape(document.cookie.substring(offset, endstr)); - } -}; -Ext.handleError = function(e) { - throw e; -}; - - -Ext.Error = function(message) { - - this.message = (this.lang[message]) ? this.lang[message] : message; -}; - -Ext.Error.prototype = new Error(); -Ext.apply(Ext.Error.prototype, { - - lang: {}, - - name: 'Ext.Error', - - getName : function() { - return this.name; - }, - - getMessage : function() { - return this.message; - }, - - toJson : function() { - return Ext.encode(this); - } -}); - -Ext.ComponentMgr = function(){ - var all = new Ext.util.MixedCollection(); - var types = {}; - var ptypes = {}; - - return { - - register : function(c){ - all.add(c); - }, - - - unregister : function(c){ - all.remove(c); - }, - - - get : function(id){ - return all.get(id); - }, - - - 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); - } - }); - }, - - - all : all, - - - types : types, - - - ptypes: ptypes, - - - isRegistered : function(xtype){ - return types[xtype] !== undefined; - }, - - - isPluginRegistered : function(ptype){ - return ptypes[ptype] !== undefined; - }, - - - registerType : function(xtype, cls){ - types[xtype] = cls; - cls.xtype = xtype; - }, - - - create : function(config, defaultType){ - return config.render ? config : new types[config.xtype || defaultType](config); - }, - - - registerPlugin : function(ptype, cls){ - ptypes[ptype] = cls; - cls.ptype = ptype; - }, - - - createPlugin : function(config, defaultType){ - var PluginCls = ptypes[config.ptype || defaultType]; - if (PluginCls.init) { - return PluginCls; - } else { - return new PluginCls(config); - } - } - }; -}(); - - -Ext.reg = Ext.ComponentMgr.registerType; - -Ext.preg = Ext.ComponentMgr.registerPlugin; - -Ext.create = Ext.ComponentMgr.create; -Ext.Component = function(config){ - config = config || {}; - if(config.initialConfig){ - if(config.isAction){ - this.baseAction = config; - } - config = config.initialConfig; - }else if(config.tagName || config.dom || Ext.isString(config)){ - config = {applyTo: config, id: config.id || config}; - } - - - this.initialConfig = config; - - Ext.apply(this, config); - this.addEvents( - - 'added', - - 'disable', - - 'enable', - - 'beforeshow', - - 'show', - - 'beforehide', - - 'hide', - - 'removed', - - 'beforerender', - - 'render', - - 'afterrender', - - 'beforedestroy', - - 'destroy', - - 'beforestaterestore', - - 'staterestore', - - 'beforestatesave', - - '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; - } -}; - - -Ext.Component.AUTO_ID = 1000; - -Ext.extend(Ext.Component, Ext.util.Observable, { - - - - - - - - - - - - - - - - - - disabled : false, - - hidden : false, - - - - - - - - autoEl : 'div', - - - disabledClass : 'x-item-disabled', - - allowDomMove : true, - - autoShow : false, - - hideMode : 'display', - - hideParent : false, - - - - - - rendered : false, - - - - - - - - tplWriteMode : 'overwrite', - - - - - bubbleEvents: [], - - - - ctype : 'Ext.Component', - - - actionMode : 'el', - - - 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; - }, - - - initComponent : function(){ - - if(this.listeners){ - this.on(this.listeners); - delete this.listeners; - } - this.enableBubble(this.bubbleEvents); - }, - - - 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); - - - - - 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){ - - this.doHide(); - } - if(this.disabled){ - - this.disable(true); - } - - if(this.stateful !== false){ - this.initStateEvents(); - } - this.fireEvent('afterrender', this); - } - return this; - }, - - - - 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); - } - }, - - - - onAdded : function(container, pos) { - this.ownerCt = container; - this.initRef(); - this.fireEvent('added', this, container, pos); - }, - - - onRemoved : function() { - this.removeRef(); - this.fireEvent('removed', this, this.ownerCt); - delete this.ownerCt; - }, - - - initRef : function() { - - 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; - - this.refOwner = t; - } - } - }, - - removeRef : function() { - if (this.refOwner && this.refName) { - delete this.refOwner[this.refName]; - delete this.refOwner; - } - }, - - - 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); - } - } - } - } - }, - - - getStateId : function(){ - return this.stateId || ((/^(ext-comp-|ext-gen)/).test(String(this.id)) ? null : this.id); - }, - - - initStateEvents : function(){ - if(this.stateEvents){ - for(var i = 0, e; e = this.stateEvents[i]; i++){ - this.on(e, this.saveState, this, {delay:100}); - } - } - }, - - - applyState : function(state){ - if(state){ - Ext.apply(this, state); - } - }, - - - getState : function(){ - return null; - }, - - - 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); - } - } - } - }, - - - applyToMarkup : function(el){ - this.allowDomMove = false; - this.el = Ext.get(el); - this.render(this.el.dom.parentNode); - }, - - - addClass : function(cls){ - if(this.el){ - this.el.addClass(cls); - }else{ - this.cls = this.cls ? this.cls + ' ' + cls : cls; - } - return 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; - }, - - - - 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; - } - } - } - }, - - - 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; - }, - - - afterRender : Ext.emptyFn, - - - 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(); - } - } - - 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]]; - } - }, - - - beforeDestroy : Ext.emptyFn, - - - onDestroy : Ext.emptyFn, - - - getEl : function(){ - return this.el; - }, - - - getContentTarget : function(){ - return this.el; - }, - - - getId : function(){ - return this.id || (this.id = 'ext-comp-' + (++Ext.Component.AUTO_ID)); - }, - - - getItemId : function(){ - return this.itemId || this.getId(); - }, - - - 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 this; - } - if(this.rendered && !this.isDestroyed){ - this.el.focus(); - if(selectText === true){ - this.el.dom.select(); - } - } - return this; - }, - - - blur : function(){ - if(this.rendered){ - this.el.blur(); - } - return this; - }, - - - disable : function( silent){ - if(this.rendered){ - this.onDisable(); - } - this.disabled = true; - if(silent !== true){ - this.fireEvent('disable', this); - } - return this; - }, - - - onDisable : function(){ - this.getActionEl().addClass(this.disabledClass); - this.el.dom.disabled = true; - }, - - - enable : function(){ - if(this.rendered){ - this.onEnable(); - } - this.disabled = false; - this.fireEvent('enable', this); - return this; - }, - - - onEnable : function(){ - this.getActionEl().removeClass(this.disabledClass); - this.el.dom.disabled = false; - }, - - - setDisabled : function(disabled){ - return this[disabled ? 'disable' : 'enable'](); - }, - - - 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; - }, - - - onShow : function(){ - this.getVisibilityEl().removeClass('x-hide-' + this.hideMode); - }, - - - hide : function(){ - if(this.fireEvent('beforehide', this) !== false){ - this.doHide(); - this.fireEvent('hide', this); - } - return this; - }, - - - doHide: function(){ - this.hidden = true; - if(this.rendered){ - this.onHide(); - } - }, - - - onHide : function(){ - this.getVisibilityEl().addClass('x-hide-' + this.hideMode); - }, - - - getVisibilityEl : function(){ - return this.hideParent ? this.container : this.getActionEl(); - }, - - - setVisible : function(visible){ - return this[visible ? 'show' : 'hide'](); - }, - - - isVisible : function(){ - return this.rendered && this.getVisibilityEl().isVisible(); - }, - - - cloneConfig : function(overrides){ - overrides = overrides || {}; - var id = overrides.id || Ext.id(); - var cfg = Ext.applyIf(overrides, this.initialConfig); - cfg.id = id; - return new this.constructor(cfg); - }, - - - getXType : function(){ - return this.constructor.xtype; - }, - - - isXType : function(xtype, shallow){ - - if (Ext.isFunction(xtype)){ - xtype = xtype.xtype; - }else if (Ext.isObject(xtype)){ - xtype = xtype.constructor.xtype; - } - - return !shallow ? ('/' + this.getXTypes() + '/').indexOf('/' + xtype + '/') != -1 : this.constructor.xtype == xtype; - }, - - - 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; - }, - - - findParentBy : function(fn) { - for (var p = this.ownerCt; (p != null) && !fn(p, this); p = p.ownerCt); - return p || null; - }, - - - findParentByType : function(xtype, shallow){ - return this.findParentBy(function(c){ - return c.isXType(xtype, shallow); - }); - }, - - - bubble : function(fn, scope, args){ - var p = this; - while(p){ - if(fn.apply(scope || p, args || [p]) === false){ - break; - } - p = p.ownerCt; - } - return this; - }, - - - getPositionEl : function(){ - return this.positionEl || this.el; - }, - - - purgeListeners : function(){ - Ext.Component.superclass.purgeListeners.call(this); - if(this.mons){ - this.on('beforedestroy', this.clearMons, this, {single: true}); - } - }, - - - clearMons : function(){ - Ext.each(this.mons, function(m){ - m.item.un(m.ename, m.fn, m.scope); - }, this); - this.mons = []; - }, - - - createMons: function(){ - if(!this.mons){ - this.mons = []; - this.on('beforedestroy', this.clearMons, this, {single: true}); - } - }, - - - 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])){ - - this.mons.push({ - item: item, ename: e, fn: o[e], scope: o.scope - }); - item.on(e, o[e], o.scope, o); - }else{ - - 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); - }, - - - 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; - }, - - - 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; - }, - - - previousSibling : function(){ - if(this.ownerCt){ - var index = this.ownerCt.items.indexOf(this); - if(index > 0){ - return this.ownerCt.items.itemAt(index-1); - } - } - return null; - }, - - - getBubbleTarget : function(){ - return this.ownerCt; - } -}); - -Ext.reg('component', Ext.Component); - -Ext.Action = Ext.extend(Object, { - - - - - - - - - constructor : function(config){ - this.initialConfig = config; - this.itemId = config.itemId = (config.itemId || config.id || Ext.id()); - this.items = []; - }, - - - isAction : true, - - - setText : function(text){ - this.initialConfig.text = text; - this.callEach('setText', [text]); - }, - - - getText : function(){ - return this.initialConfig.text; - }, - - - setIconClass : function(cls){ - this.initialConfig.iconCls = cls; - this.callEach('setIconClass', [cls]); - }, - - - getIconClass : function(){ - return this.initialConfig.iconCls; - }, - - - setDisabled : function(v){ - this.initialConfig.disabled = v; - this.callEach('setDisabled', [v]); - }, - - - enable : function(){ - this.setDisabled(false); - }, - - - disable : function(){ - this.setDisabled(true); - }, - - - isDisabled : function(){ - return this.initialConfig.disabled; - }, - - - setHidden : function(v){ - this.initialConfig.hidden = v; - this.callEach('setVisible', [!v]); - }, - - - show : function(){ - this.setHidden(false); - }, - - - hide : function(){ - this.setHidden(true); - }, - - - isHidden : function(){ - return this.initialConfig.hidden; - }, - - - setHandler : function(fn, scope){ - this.initialConfig.handler = fn; - this.initialConfig.scope = scope; - this.callEach('setHandler', [fn, scope]); - }, - - - each : function(fn, scope){ - Ext.each(this.items, fn, scope); - }, - - - 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); - } - }, - - - addComponent : function(comp){ - this.items.push(comp); - comp.on('destroy', this.removeComponent, this); - }, - - - removeComponent : function(comp){ - this.items.remove(comp); - }, - - - execute : function(){ - this.initialConfig.handler.apply(this.initialConfig.scope || window, arguments); - } -}); - -(function(){ -Ext.Layer = function(config, existingEl){ - config = config || {}; - var dh = Ext.DomHelper, - 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; - - -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; - if(Ext.isDefined(this.lastShadowOffset)) { - this.shadowOffset = this.lastShadowOffset; - delete this.lastShadowOffset; - } - if(show){ - this.sync(true); - } - } - }, - - - - - 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(); - } - - 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); - } - } - }, - - - destroy : function(){ - this.hideShim(); - if(this.shadow){ - this.shadow.hide(); - } - this.removeAllListeners(); - Ext.removeNode(this.dom); - delete this.dom; - }, - - remove : function(){ - this.destroy(); - }, - - - beginUpdate : function(){ - this.updating = true; - }, - - - endUpdate : function(){ - this.updating = false; - this.sync(true); - }, - - - hideUnders : function(negOffset){ - if(this.shadow){ - this.shadow.hide(); - } - this.hideShim(); - }, - - - 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; - - var moved = false; - - if((x + w) > vw+s.left){ - x = vw - w - so; - moved = true; - } - if((y + h) > vh+s.top){ - y = vh - h - so; - moved = true; - } - - 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; - }, - - getConstrainOffset : function(){ - return this.shadowOffset; - }, - - isVisible : function(){ - return this.visible; - }, - - - showAction : function(){ - this.visible = true; - 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]); - } - }, - - - hideAction : function(){ - this.visible = false; - if(this.useDisplay === true){ - this.setDisplayed(false); - }else{ - this.setLeftTop(-10000,-10000); - } - }, - - - 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]; - }, - - - 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(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; - }, - - - createCB : function(c){ - var el = this; - return function(){ - el.constrainXY(); - el.sync(true); - if(c){ - c(); - } - }; - }, - - - setX : function(x, a, d, c, e){ - this.setXY([x, this.getY()], a, d, c, e); - return this; - }, - - - setY : function(y, a, d, c, e){ - this.setXY([this.getX(), y], a, d, c, e); - return this; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - }, - - - 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; - } -}); -})(); - -Ext.Shadow = function(config) { - Ext.apply(this, config); - if (typeof this.mode != "string") { - this.mode = this.defaultMode; - } - var o = this.offset, - a = { - h: 0 - }, - rad = Math.floor(this.offset / 2); - switch (this.mode.toLowerCase()) { - - 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 = { - - - offset: 4, - - - defaultMode: "drop", - - - 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"; - }, - - - isVisible: function() { - return this.el ? true: false; - }, - - - realign: function(l, t, w, h) { - if (!this.el) { - return; - } - var a = this.adjusts, - d = this.el.dom, - s = d.style, - iea = 0, - sw = (w + a.w), - sh = (h + a.h), - sws = sw + "px", - shs = sh + "px", - cn, - sww; - s.left = (l + a.l) + "px"; - s.top = (t + a.t) + "px"; - if (s.width != sws || s.height != shs) { - s.width = sws; - s.height = shs; - if (!Ext.isIE) { - cn = d.childNodes; - 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"; - } - } - }, - - - hide: function() { - if (this.el) { - this.el.dom.style.display = "none"; - Ext.Shadow.Pool.push(this.el); - delete this.el; - } - }, - - - setZIndex: function(z) { - this.zIndex = z; - if (this.el) { - this.el.setStyle("z-index", z); - } - } -}; - - -Ext.Shadow.Pool = function() { - var p = [], - 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); - } - }; -}(); -Ext.BoxComponent = Ext.extend(Ext.Component, { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - initComponent : function(){ - Ext.BoxComponent.superclass.initComponent.call(this); - this.addEvents( - - 'resize', - - 'move' - ); - }, - - - boxReady : false, - - deferHeight: false, - - - setSize : function(w, h){ - - - 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; - } - - if(!this.boxReady){ - this.width = w; - this.height = h; - return this; - } - - - 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){ - 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; - }, - - - setWidth : function(width){ - return this.setSize(width); - }, - - - setHeight : function(height){ - return this.setSize(undefined, height); - }, - - - getSize : function(){ - return this.getResizeEl().getSize(); - }, - - - getWidth : function(){ - return this.getResizeEl().getWidth(); - }, - - - getHeight : function(){ - return this.getResizeEl().getHeight(); - }, - - - getOuterSize : function(){ - var el = this.getResizeEl(); - return {width: el.getWidth() + el.getMargins('lr'), - height: el.getHeight() + el.getMargins('tb')}; - }, - - - getPosition : function(local){ - var el = this.getPositionEl(); - if(local === true){ - return [el.getLeft(true), el.getTop(true)]; - } - return this.xy || el.getXY(); - }, - - - getBox : function(local){ - var pos = this.getPosition(local); - var s = this.getSize(); - s.x = pos[0]; - s.y = pos[1]; - return s; - }, - - - updateBox : function(box){ - this.setSize(box.width, box.height); - this.setPagePosition(box.x, box.y); - return this; - }, - - - getResizeEl : function(){ - return this.resizeEl || this.el; - }, - - - setAutoScroll : function(scroll){ - if(this.rendered){ - this.getContentTarget().setOverflow(scroll ? 'auto' : ''); - } - this.autoScroll = scroll; - return 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; - }, - - - 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){ - return; - } - var p = this.getPositionEl().translatePoints(x, y); - this.setPosition(p.left, p.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(adjWidth, adjHeight, rawWidth, rawHeight){ - }, - - - onPosition : function(x, y){ - - }, - - - adjustSize : function(w, h){ - if(this.autoWidth){ - w = 'auto'; - } - if(this.autoHeight){ - h = 'auto'; - } - return {width : w, height: h}; - }, - - - adjustPosition : function(x, y){ - return {x : x, y: y}; - } -}); -Ext.reg('box', Ext.BoxComponent); - - - -Ext.Spacer = Ext.extend(Ext.BoxComponent, { - autoEl:'div' -}); -Ext.reg('spacer', Ext.Spacer); -Ext.SplitBar = function(dragElement, resizingElement, orientation, placement, existingProxy){ - - - this.el = Ext.get(dragElement, true); - this.el.dom.unselectable = "on"; - - this.resizingEl = Ext.get(resizingElement, true); - - - this.orientation = orientation || Ext.SplitBar.HORIZONTAL; - - - - this.minSize = 0; - - - this.maxSize = 2000; - - - this.animate = false; - - - this.useShim = false; - - - this.shim = null; - - if(!existingProxy){ - - this.proxy = Ext.SplitBar.createProxy(this.orientation); - }else{ - this.proxy = Ext.get(existingProxy).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 = placement || (this.el.getX() > this.resizingEl.getX() ? Ext.SplitBar.LEFT : Ext.SplitBar.RIGHT); - this.el.addClass("x-splitbar-h"); - }else{ - - this.placement = placement || (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(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); - }, - - - 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); - } - } - }, - - - getAdapter : function(){ - return this.adapter; - }, - - - setAdapter : function(adapter){ - this.adapter = adapter; - this.adapter.init(this); - }, - - - getMinimumSize : function(){ - return this.minSize; - }, - - - setMinimumSize : function(minSize){ - this.minSize = minSize; - }, - - - getMaximumSize : function(){ - return this.maxSize; - }, - - - setMaximumSize : function(maxSize){ - this.maxSize = maxSize; - }, - - - setCurrentSize : function(size){ - var oldAnimate = this.animate; - this.animate = false; - this.adapter.setElementSize(this, size); - this.animate = oldAnimate; - }, - - - destroy : function(removeEl){ - Ext.destroy(this.shim, Ext.get(this.proxy)); - this.dd.unreg(); - if(removeEl){ - this.el.remove(); - } - this.purgeListeners(); - } -}); - - -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; -}; - - -Ext.SplitBar.BasicLayoutAdapter = function(){ -}; - -Ext.SplitBar.BasicLayoutAdapter.prototype = { - - init : function(s){ - - }, - - getElementSize : function(s){ - if(s.orientation == Ext.SplitBar.HORIZONTAL){ - return s.resizingEl.getWidth(); - }else{ - return s.resizingEl.getHeight(); - } - }, - - - 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'); - } - } - } -}; - - -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; - } - } -}; - - -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 items = this.items; - if(items){ - delete this.items; - this.add(items); - } - }, - - - initItems : function(){ - if(!this.items){ - this.items = new Ext.util.MixedCollection(false, this.getComponentId); - this.getLayout(); - } - }, - - - setLayout : function(layout){ - if(this.layout && this.layout != layout){ - this.layout.setContainer(null); - } - this.layout = layout; - this.initItems(); - layout.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 && this.layout.setActiveItem){ - var item = this.activeItem; - delete this.activeItem; - this.layout.setActiveItem(item); - } - - - 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(comp){ - return comp.getItemId(); - }, - - - 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); - - c.onAdded(this, index); - this.onAdd(c); - this.fireEvent('add', this, c, index); - } - return c; - }, - - onAdd : function(c){ - - }, - - - onAdded : function(container, pos) { - - this.ownerCt = container; - this.initRef(); - - this.cascade(function(c){ - c.initRef(); - }); - this.fireEvent('added', this, container, pos); - }, - - - insert : function(index, comp) { - var args = arguments, - length = args.length, - result = [], - i, c; - - this.initItems(); - - if (length > 2) { - for (i = length - 1; i >= 1; --i) { - result.push(this.insert(index, args[i])); - } - return result; - } - - 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; - }, - - - 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.isAction ? c.initialConfig : c, d); - }else{ - Ext.apply(c, d); - } - } - return c; - }, - - - onBeforeAdd : function(item){ - if(item.ownerCt){ - item.ownerCt.remove(item, false); - } - if(this.hideBorders === true){ - item.border = (item.border === true); - } - }, - - - 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){ - - }, - - - 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); - } - }, - - - 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; - }, - - - getComponent : function(comp){ - if(Ext.isObject(comp)){ - comp = comp.getItemId(); - } - return this.items.get(comp); - }, - - - lookupComponent : function(comp){ - if(Ext.isString(comp)){ - return Ext.ComponentMgr.get(comp); - }else if(!comp.events){ - return this.createComponent(comp); - } - return comp; - }, - - - createComponent : function(config, defaultType){ - if (config.render) { - return config; - } - - - var c = Ext.create(Ext.apply({ - ownerCt: this - }, config), defaultType || this.defaultType); - delete c.initialConfig.ownerCt; - delete c.ownerCt; - return c; - }, - - - canLayout : function() { - var el = this.getVisibilityEl(); - return el && el.dom && !el.isStyle("display", "none"); - }, - - - - 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); - } - - this.hasLayout = true; - delete this.forceLayout; - }, - - onLayout : Ext.emptyFn, - - - shouldBufferLayout: function(){ - - var hl = this.hasLayout; - if(this.ownerCt){ - - return hl ? !this.hasLayoutPending() : false; - } - - return hl; - }, - - - hasLayoutPending: function(){ - - var pending = false; - this.ownerCt.bubble(function(c){ - if(c.layoutPending){ - pending = true; - return false; - } - }); - return pending; - }, - - onShow : function(){ - - Ext.Container.superclass.onShow.call(this); - - if(Ext.isDefined(this.deferLayout)){ - delete this.deferLayout; - this.doLayout(true); - } - }, - - - getLayout : function(){ - if(!this.layout){ - var layout = new Ext.layout.AutoLayout(this.layoutConfig); - this.setLayout(layout); - } - return this.layout; - }, - - - 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); - }, - - - 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; - }, - - - findById : function(id){ - var m = null, - ct = this; - this.cascade(function(c){ - if(ct != c && c.id === id){ - m = c; - return false; - } - }); - return m; - }, - - - findByType : function(xtype, shallow){ - return this.findBy(function(c){ - return c.isXType(xtype, shallow); - }); - }, - - - find : function(prop, value){ - return this.findBy(function(c){ - return c[prop] === value; - }); - }, - - - 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 : function(key){ - return this.getComponent(key); - } -}); - -Ext.Container.LAYOUTS = {}; -Ext.reg('container', Ext.Container); - -Ext.layout.ContainerLayout = Ext.extend(Object, { - - - - - - - monitorResize:false, - - activeItem : null, - - constructor : function(config){ - this.id = Ext.id(null, 'ext-layout-'); - Ext.apply(this, config); - }, - - type: 'container', - - - 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; - }, - - - getLayoutTargetSize : Ext.EmptyFn, - - - 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); - }, - - - onLayout : function(ct, target){ - this.renderAll(ct, target); - }, - - - isValidParent : function(c, target){ - return target && c.getPositionEl().dom.parentNode == (target.dom || target); - }, - - - 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); - } - } - }, - - - renderItem : function(c, position, target){ - if (c) { - if (!c.rendered) { - c.render(target, position); - this.configureItem(c); - } 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); - } - } - }, - - - - 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) && c.shouldLayout !== false){ - items.push(c); - } - }; - return items; - }, - - - configureItem: function(c){ - if (this.extraCls) { - var t = c.getPositionEl ? c.getPositionEl() : c; - t.addClass(this.extraCls); - } - - - 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; - } - }, - - - 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; - }, - - - setContainer : function(ct){ - - 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; - }, - - - 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 - }; - }, - - - fieldTpl: (function() { - var t = new Ext.Template( - '
      ', - '', - '
      ', - '
      ', - '
      ' - ); - t.disableFormats = true; - return t.compile(); - })(), - - - destroy : function(){ - - if(this.resizeTask && this.resizeTask.cancel){ - this.resizeTask.cancel(); - } - if(this.container) { - this.container.un(this.container.resizeEvent, this.onResize, this); - } - if(!Ext.isEmpty(this.targetCls)){ - var target = this.container.getLayoutTarget(); - if(target){ - target.removeClass(this.targetCls); - } - } - } -}); -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){ - - c.doLayout(true); - } - } - } -}); - -Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout; - -Ext.layout.FitLayout = Ext.extend(Ext.layout.ContainerLayout, { - - monitorResize:true, - - type: 'fit', - - getLayoutTargetSize : function() { - var target = this.container.getLayoutTarget(); - if (!target) { - return {}; - } - - return target.getStyleSize(); - }, - - - 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()); - } - }, - - - setItemSize : function(item, size){ - if(item && size.height > 0){ - item.setSize(size); - } - } -}); -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(item){ - var ai = this.activeItem, - ct = this.container; - item = ct.getComponent(item); - - - if(item && ai != item){ - - - if(ai){ - ai.hide(); - if (ai.hidden !== true) { - return false; - } - ai.fireEvent('deactivate', ai); - } - - var layout = item.doLayout && (this.layoutOnCardChange || !item.rendered); - - - this.activeItem = item; - - - - delete item.deferLayout; - - - item.show(); - - this.layout(); - - if(layout){ - item.doLayout(); - } - item.fireEvent('activate', item); - } - }, - - - 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; - -Ext.layout.AnchorLayout = Ext.extend(Ext.layout.ContainerLayout, { - - - - monitorResize : true, - - type : 'anchor', - - - defaultAnchor : '100%', - - parseAnchorRE : /^(r|right|b|bottom)$/i, - - - getLayoutTargetSize : function() { - var target = this.container.getLayoutTarget(), ret = {}; - if (target) { - ret = target.getViewSize(); - - - - - if (Ext.isIE && Ext.isStrict && ret.width == 0){ - ret = target.getStyleSize(); - } - ret.width -= target.getPadding('lr'); - ret.height -= target.getPadding('tb'); - } - return ret; - }, - - - onLayout : function(container, target) { - Ext.layout.AnchorLayout.superclass.onLayout.call(this, container, target); - - var size = this.getLayoutTargetSize(), - containerWidth = size.width, - containerHeight = size.height, - overflow = target.getStyle('overflow'), - components = this.getRenderedItems(container), - len = components.length, - boxes = [], - box, - anchorWidth, - anchorHeight, - component, - anchorSpec, - calcWidth, - calcHeight, - anchorsArray, - totalHeight = 0, - i, - el; - - if(containerWidth < 20 && containerHeight < 20){ - return; - } - - - if(container.anchorSize) { - if(typeof container.anchorSize == 'number') { - anchorWidth = container.anchorSize; - } else { - anchorWidth = container.anchorSize.width; - anchorHeight = container.anchorSize.height; - } - } else { - anchorWidth = container.initialConfig.width; - anchorHeight = container.initialConfig.height; - } - - for(i = 0; i < len; i++) { - component = components[i]; - el = component.getPositionEl(); - - - if (!component.anchor && component.items && !Ext.isNumber(component.width) && !(Ext.isIE6 && Ext.isStrict)){ - component.anchor = this.defaultAnchor; - } - - if(component.anchor) { - anchorSpec = component.anchorSpec; - - if(!anchorSpec){ - anchorsArray = component.anchor.split(' '); - component.anchorSpec = anchorSpec = { - right: this.parseAnchor(anchorsArray[0], component.initialConfig.width, anchorWidth), - bottom: this.parseAnchor(anchorsArray[1], component.initialConfig.height, anchorHeight) - }; - } - calcWidth = anchorSpec.right ? this.adjustWidthAnchor(anchorSpec.right(containerWidth) - el.getMargins('lr'), component) : undefined; - calcHeight = anchorSpec.bottom ? this.adjustHeightAnchor(anchorSpec.bottom(containerHeight) - el.getMargins('tb'), component) : undefined; - - if(calcWidth || calcHeight) { - boxes.push({ - component: component, - width: calcWidth || undefined, - height: calcHeight || undefined - }); - } - } - } - for (i = 0, len = boxes.length; i < len; i++) { - box = boxes[i]; - box.component.setSize(box.width, box.height); - } - - if (overflow && overflow != 'hidden' && !this.adjustmentPass) { - var newTargetSize = this.getLayoutTargetSize(); - if (newTargetSize.width != size.width || newTargetSize.height != size.height){ - this.adjustmentPass = true; - this.onLayout(container, target); - } - } - - delete this.adjustmentPass; - }, - - - parseAnchor : function(a, start, cstart) { - if (a && a != 'none') { - var last; - - if (this.parseAnchorRE.test(a)) { - var diff = cstart - start; - return function(v){ - if(v !== last){ - last = v; - return v - diff; - } - }; - - } else if(a.indexOf('%') != -1) { - var ratio = parseFloat(a.replace('%', ''))*.01; - return function(v){ - if(v !== last){ - last = v; - return Math.floor(v*ratio); - } - }; - - } else { - a = parseInt(a, 10); - if (!isNaN(a)) { - return function(v) { - if (v !== last) { - last = v; - return v + a; - } - }; - } - } - } - return false; - }, - - - adjustWidthAnchor : function(value, comp){ - return value; - }, - - - adjustHeightAnchor : function(value, comp){ - return value; - } - - -}); -Ext.Container.LAYOUTS['anchor'] = Ext.layout.AnchorLayout; - -Ext.layout.ColumnLayout = Ext.extend(Ext.layout.ContainerLayout, { - - monitorResize:true, - - type: 'column', - - extraCls: 'x-column', - - scrollOffset : 0, - - - - 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(); - - - - - 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){ - - - this.innerCt = target.createChild({cls:'x-column-inner'}); - this.innerCt.createChild({cls:'x-clear'}); - } - Ext.layout.ColumnLayout.superclass.renderAll.call(this, ct, this.innerCt); - }, - - - 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){ - return; - } - - var w = size.width - this.scrollOffset, - h = size.height, - pw = w; - - this.innerCt.setWidth(w); - - - - - 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); - } - } - - - - 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; - } - - -}); - -Ext.Container.LAYOUTS['column'] = Ext.layout.ColumnLayout; - -Ext.layout.BorderLayout = Ext.extend(Ext.layout.ContainerLayout, { - - monitorResize:true, - - rendered : false, - - type: 'border', - - targetCls: 'x-border-layout-ct', - - getLayoutTargetSize : function() { - var target = this.container.getLayoutTarget(); - return target ? target.getViewSize() : {}; - }, - - - 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){ - 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){ - target.repaint(); - } - - 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); - } - - -}); - - -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 = { - - - - - - - collapsible : false, - - split:false, - - floatable: true, - - minWidth:50, - - minHeight:50, - - - defaultMargins : {left:0,top:0,right:0,bottom:0}, - - defaultNSCMargins : {left:5,top:5,right:5,bottom:5}, - - defaultEWCMargins : {left:5,top:0,right:5,bottom:0}, - floatingZIndex: 100, - - - isCollapsed : false, - - - - - - - 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'); - } - } - }, - - - 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.expandToolEl = 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; - }, - - - onExpandClick : function(e){ - if(this.isSlid){ - this.panel.expand(false); - }else{ - this.panel.expand(); - } - }, - - - onCollapseClick : function(e){ - this.panel.collapse(); - }, - - - 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(); - }, - - - 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(); - }, - - - 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); - }, - - - 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(e){ - if(this.isSlid){ - e.stopPropagation(); - this.slideIn(); - }else{ - e.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(panel){ - this.panel = panel; - }, - - - getMinWidth: function(){ - return this.minWidth; - }, - - - getMinHeight: function(){ - return this.minHeight; - }, - - - applyLayoutCollapsed : function(box){ - var ce = this.getCollapsedEl(); - ce.setLeftTop(box.x, box.y); - ce.setSize(box.width, box.height); - }, - - - applyLayout : function(box){ - if(this.isCollapsed){ - this.applyLayoutCollapsed(box); - }else{ - this.panel.setPosition(box.x, box.y); - this.panel.setSize(box.width, box.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(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); - } - }, - - - 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 ts = this.panel.tools, dh, pc; - if(ts && ts.toggle){ - ts.toggle.hide(); - } - this.el.show(); - - - pc = this.panel.collapsed; - this.panel.collapsed = false; - - if(this.position == 'east' || this.position == 'west'){ - - dh = this.panel.deferHeight; - this.panel.deferHeight = false; - - this.panel.setSize(undefined, this.collapsedEl.getHeight()); - - - this.panel.deferHeight = dh; - }else{ - this.panel.setSize(this.collapsedEl.getWidth(), undefined); - } - - - 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); - } - }, - - - 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(); - } - }, - - - 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(); - } - }, - - - slideInIf : function(e){ - if(!e.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 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; - } - }, - - - 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.destroyMembers(this, 'miniCollapsedEl', 'collapsedEl', 'expandToolEl'); - } -}; - - -Ext.layout.BorderLayout.SplitRegion = function(layout, config, pos){ - Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this, layout, config, pos); - - this.applyLayout = this.applyFns[pos]; -}; - -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(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); - } - }, - - - 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); - } - }, - - - 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; - }, - - - getHMaxSize : function(){ - var cmax = this.maxSize || 10000; - var center = this.layout.center; - return Math.min(cmax, (this.el.getWidth()+center.el.getWidth())-center.getMinWidth()); - }, - - - getVMaxSize : function(){ - var cmax = this.maxSize || 10000; - var center = this.layout.center; - return Math.min(cmax, (this.el.getHeight()+center.el.getHeight())-center.getMinHeight()); - }, - - - 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; - }, - - - 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: true, - - 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); - } - - 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'); - } - } - }, - - - 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 = Ext.isDefined(ct.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;' - }); - } - } - }, - - - isHide: function(c){ - return c.hideLabel || this.container.hideLabels; - }, - - onFieldShow: function(c){ - c.getItemCt().removeClass('x-hide-' + c.hideMode); - - - if (c.isComposite) { - c.doLayout(); - } - }, - - onFieldHide: function(c){ - c.getItemCt().addClass('x-hide-' + c.hideMode); - }, - - - 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; - }, - - - - - 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){ - - - 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); - } - }, - - - getTemplateArgs: function(field) { - var noLabelSep = !field.fieldLabel || field.hideLabel, - itemCls = (field.itemCls || this.container.itemCls || '') + (field.hideLabel ? ' x-hide-label' : ''); - - - if (Ext.isIE9 && Ext.isIEQuirks && field instanceof Ext.form.TextField) { - itemCls += ' x-input-wrapper'; - } - - return { - id : field.id, - label : field.fieldLabel, - itemCls : itemCls, - 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) - }; - }, - - - 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; - }, - - - isValidParent : function(c, target){ - return target && this.container.getEl().contains(c.getPositionEl()); - } - - -}); - -Ext.Container.LAYOUTS['form'] = Ext.layout.FormLayout; - -Ext.layout.AccordionLayout = Ext.extend(Ext.layout.FitLayout, { - - fill : true, - - autoWidth : true, - - titleCollapse : true, - - hideCollapseTool : false, - - collapseFirst : false, - - animate : false, - - sequence : 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); - }, - - - 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); - } - - this.layout(); - }, - - - setItemSize : function(item, size){ - if(this.fill && item){ - var hh = 0, i, ct = this.getRenderedItems(this.container), len = ct.length, p; - - for (i = 0; i < len; i++) { - if((p = ct[i]) != item && !p.hidden){ - hh += p.header.getHeight(); - } - }; - - size.height -= hh; - - - item.setSize(size); - } - }, - - - setActiveItem : function(item){ - this.setActive(item, true); - }, - - - 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; - - -Ext.layout.Accordion = Ext.layout.AccordionLayout; -Ext.layout.TableLayout = Ext.extend(Ext.layout.ContainerLayout, { - - - - monitorResize:false, - - type: 'table', - - targetCls: 'x-table-layout-ct', - - - tableAttrs:null, - - - setContainer : function(ct){ - Ext.layout.TableLayout.superclass.setContainer.call(this, ct); - - this.currentRow = 0; - this.currentColumn = 0; - this.cells = []; - }, - - - 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); - }, - - - 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; - }, - - - 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; - }, - - - 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]; - }, - - - renderItem : function(c, position, target){ - - 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); - }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); - } - }, - - - isValidParent : function(c, target){ - return c.getPositionEl().up('table', 5).dom.parentNode === (target.dom || target); - }, - - destroy: function(){ - delete this.table; - Ext.layout.TableLayout.superclass.destroy.call(this); - } - - -}); - -Ext.Container.LAYOUTS['table'] = Ext.layout.TableLayout; -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); - }, - - - adjustWidthAnchor : function(value, comp){ - return value ? value - comp.getPosition(true)[0] + this.paddingLeft : value; - }, - - - adjustHeightAnchor : function(value, comp){ - return value ? value - comp.getPosition(true)[1] + this.paddingTop : value; - } - -}); -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(config){ - Ext.layout.BoxLayout.superclass.constructor.call(this, config); - - if (Ext.isString(this.defaultMargins)) { - this.defaultMargins = this.parseMargins(this.defaultMargins); - } - - var handler = this.overflowHandler; - - if (typeof handler == 'string') { - handler = { - type: handler - }; - } - - var handlerType = 'none'; - if (handler && handler.type != undefined) { - handlerType = handler.type; - } - - var constructor = Ext.layout.boxOverflow[handlerType]; - if (constructor[this.type]) { - constructor = constructor[this.type]; - } - - this.overflowHandler = new constructor(this, handler); - }, - - - onLayout: function(container, target) { - Ext.layout.BoxLayout.superclass.onLayout.call(this, container, target); - - var tSize = this.getLayoutTargetSize(), - items = this.getVisibleItems(container), - calcs = this.calculateChildBoxes(items, tSize), - boxes = calcs.boxes, - meta = calcs.meta; - - - if (tSize.width > 0) { - var handler = this.overflowHandler, - method = meta.tooNarrow ? 'handleOverflow' : 'clearOverflow'; - - var results = handler[method](calcs, tSize); - - if (results) { - if (results.targetSize) { - tSize = results.targetSize; - } - - if (results.recalculate) { - items = this.getVisibleItems(container); - calcs = this.calculateChildBoxes(items, tSize); - boxes = calcs.boxes; - } - } - } - - - this.layoutTargetLastSize = tSize; - - - this.childBoxCache = calcs; - - this.updateInnerCtSize(tSize, calcs); - this.updateChildBoxes(boxes); - - - this.handleTargetOverflow(tSize, container, target); - }, - - - 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); - } - - if (isNaN(box.left) || isNaN(box.top)) { - continue; - } - - comp.setPosition(box.left, box.top); - } - }, - - - updateInnerCtSize: function(tSize, calcs) { - var align = this.align, - padding = this.padding, - width = tSize.width, - height = tSize.height; - - if (this.type == 'hbox') { - var innerCtWidth = width, - innerCtHeight = calcs.meta.maxHeight + padding.top + padding.bottom; - - if (align == 'stretch') { - innerCtHeight = height; - } else if (align == 'middle') { - innerCtHeight = Math.max(height, innerCtHeight); - } - } else { - var innerCtHeight = height, - innerCtWidth = calcs.meta.maxWidth + padding.left + padding.right; - - if (align == 'stretch') { - innerCtWidth = width; - } else if (align == 'center') { - innerCtWidth = Math.max(width, innerCtWidth); - } - } - - this.innerCt.setSize(innerCtWidth || undefined, innerCtHeight || undefined); - }, - - - 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; - }, - - - isValidParent : function(c, target) { - return this.innerCt && c.getPositionEl().dom.parentNode == this.innerCt.dom; - }, - - - 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 && c.shouldLayout !== false){ - items.push(c); - } - } - - return items; - }, - - - renderAll : function(ct, target) { - if (!this.innerCt) { - - 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(); - - - - - if (Ext.isIE && Ext.isStrict && ret.width == 0){ - ret = target.getStyleSize(); - } - - ret.width -= target.getPadding('lr'); - ret.height -= target.getPadding('tb'); - } - - return ret; - }, - - - 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); - }, - - - destroy: function() { - Ext.destroy(this.overflowHandler); - - Ext.layout.BoxLayout.superclass.destroy.apply(this, arguments); - } -}); - - - -Ext.layout.boxOverflow.None = Ext.extend(Object, { - constructor: function(layout, config) { - this.layout = layout; - - Ext.apply(this, config || {}); - }, - - handleOverflow: Ext.emptyFn, - - clearOverflow: Ext.emptyFn -}); - - -Ext.layout.boxOverflow.none = Ext.layout.boxOverflow.None; - -Ext.layout.boxOverflow.Menu = Ext.extend(Ext.layout.boxOverflow.None, { - - afterCls: 'x-strip-right', - - - noItemsMenuText : '
      (None)
      ', - - constructor: function(layout) { - Ext.layout.boxOverflow.Menu.superclass.constructor.apply(this, arguments); - - - this.menuItems = []; - }, - - - createInnerElements: function() { - if (!this.afterCt) { - this.afterCt = this.layout.innerCt.insertSibling({cls: this.afterCls}, 'before'); - } - }, - - - clearOverflow: function(calculations, targetSize) { - var newWidth = targetSize.width + (this.afterCt ? this.afterCt.getWidth() : 0), - items = this.menuItems; - - this.hideTrigger(); - - for (var index = 0, length = items.length; index < length; index++) { - items.pop().component.show(); - } - - return { - targetSize: { - height: targetSize.height, - width : newWidth - } - }; - }, - - - showTrigger: function() { - this.createMenu(); - this.menuTrigger.show(); - }, - - - hideTrigger: function() { - if (this.menuTrigger != undefined) { - this.menuTrigger.hide(); - } - }, - - - beforeMenuShow: function(menu) { - var items = this.menuItems, - 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].component; - - if (prev && (needsSep(item, prev) || needsSep(prev, item))) { - menu.add('-'); - } - - this.addComponentToMenu(menu, item); - prev = item; - } - - - if (menu.items.length < 1) { - menu.add(this.noItemsMenuText); - } - }, - - - 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; - }, - - - 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); - } - } - }, - - - clearMenu : function(){ - var menu = this.moreMenu; - if (menu && menu.items) { - menu.items.each(function(item){ - delete item.menu; - }); - } - }, - - - createMenu: function() { - if (!this.menuTrigger) { - this.createInnerElements(); - - - this.menu = new Ext.menu.Menu({ - ownerCt : this.layout.container, - listeners: { - scope: this, - beforeshow: this.beforeMenuShow - } - }); - - - this.menuTrigger = new Ext.Button({ - iconCls : 'x-toolbar-more-icon', - cls : 'x-toolbar-more', - menu : this.menu, - renderTo: this.afterCt - }); - } - }, - - - destroy: function() { - Ext.destroy(this.menu, this.menuTrigger); - } -}); - -Ext.layout.boxOverflow.menu = Ext.layout.boxOverflow.Menu; - - - -Ext.layout.boxOverflow.HorizontalMenu = Ext.extend(Ext.layout.boxOverflow.Menu, { - - constructor: function() { - Ext.layout.boxOverflow.HorizontalMenu.superclass.constructor.apply(this, arguments); - - var me = this, - layout = me.layout, - origFunction = layout.calculateChildBoxes; - - layout.calculateChildBoxes = function(visibleItems, targetSize) { - var calcs = origFunction.apply(layout, arguments), - meta = calcs.meta, - items = me.menuItems; - - - - var hiddenWidth = 0; - for (var index = 0, length = items.length; index < length; index++) { - hiddenWidth += items[index].width; - } - - meta.minimumWidth += hiddenWidth; - meta.tooNarrow = meta.minimumWidth > targetSize.width; - - return calcs; - }; - }, - - handleOverflow: function(calculations, targetSize) { - this.showTrigger(); - - var newWidth = targetSize.width - this.afterCt.getWidth(), - boxes = calculations.boxes, - usedWidth = 0, - recalculate = false; - - - for (var index = 0, length = boxes.length; index < length; index++) { - usedWidth += boxes[index].width; - } - - var spareWidth = newWidth - usedWidth, - showCount = 0; - - - for (var index = 0, length = this.menuItems.length; index < length; index++) { - var hidden = this.menuItems[index], - comp = hidden.component, - width = hidden.width; - - if (width < spareWidth) { - comp.show(); - - spareWidth -= width; - showCount ++; - recalculate = true; - } else { - break; - } - } - - if (recalculate) { - this.menuItems = this.menuItems.slice(showCount); - } else { - for (var i = boxes.length - 1; i >= 0; i--) { - var item = boxes[i].component, - right = boxes[i].left + boxes[i].width; - - if (right >= newWidth) { - this.menuItems.unshift({ - component: item, - width : boxes[i].width - }); - - item.hide(); - } else { - break; - } - } - } - - if (this.menuItems.length == 0) { - this.hideTrigger(); - } - - return { - targetSize: { - height: targetSize.height, - width : newWidth - }, - recalculate: recalculate - }; - } -}); - -Ext.layout.boxOverflow.menu.hbox = Ext.layout.boxOverflow.HorizontalMenu; -Ext.layout.boxOverflow.Scroller = Ext.extend(Ext.layout.boxOverflow.None, { - - animateScroll: true, - - - scrollIncrement: 100, - - - wheelIncrement: 3, - - - scrollRepeatInterval: 400, - - - scrollDuration: 0.4, - - - beforeCls: 'x-strip-left', - - - afterCls: 'x-strip-right', - - - scrollerCls: 'x-strip-scroller', - - - beforeScrollerCls: 'x-strip-scroller-left', - - - afterScrollerCls: 'x-strip-scroller-right', - - - createWheelListener: function() { - this.layout.innerCt.on({ - scope : this, - mousewheel: function(e) { - e.stopEvent(); - - this.scrollBy(e.getWheelDelta() * this.wheelIncrement * -1, false); - } - }); - }, - - - handleOverflow: function(calculations, targetSize) { - this.createInnerElements(); - this.showScrollers(); - }, - - - clearOverflow: function() { - this.hideScrollers(); - }, - - - showScrollers: function() { - this.createScrollers(); - - this.beforeScroller.show(); - this.afterScroller.show(); - - this.updateScrollButtons(); - }, - - - hideScrollers: function() { - if (this.beforeScroller != undefined) { - this.beforeScroller.hide(); - this.afterScroller.hide(); - } - }, - - - createScrollers: function() { - if (!this.beforeScroller && !this.afterScroller) { - var before = this.beforeCt.createChild({ - cls: String.format("{0} {1} ", this.scrollerCls, this.beforeScrollerCls) - }); - - var after = this.afterCt.createChild({ - cls: String.format("{0} {1}", this.scrollerCls, this.afterScrollerCls) - }); - - before.addClassOnOver(this.beforeScrollerCls + '-hover'); - after.addClassOnOver(this.afterScrollerCls + '-hover'); - - before.setVisibilityMode(Ext.Element.DISPLAY); - after.setVisibilityMode(Ext.Element.DISPLAY); - - this.beforeRepeater = new Ext.util.ClickRepeater(before, { - interval: this.scrollRepeatInterval, - handler : this.scrollLeft, - scope : this - }); - - this.afterRepeater = new Ext.util.ClickRepeater(after, { - interval: this.scrollRepeatInterval, - handler : this.scrollRight, - scope : this - }); - - - this.beforeScroller = before; - - - this.afterScroller = after; - } - }, - - - destroy: function() { - Ext.destroy(this.beforeScroller, this.afterScroller, this.beforeRepeater, this.afterRepeater, this.beforeCt, this.afterCt); - }, - - - scrollBy: function(delta, animate) { - this.scrollTo(this.getScrollPosition() + delta, animate); - }, - - - getItem: function(item) { - if (Ext.isString(item)) { - item = Ext.getCmp(item); - } else if (Ext.isNumber(item)) { - item = this.items[item]; - } - - return item; - }, - - - getScrollAnim: function() { - return { - duration: this.scrollDuration, - callback: this.updateScrollButtons, - scope : this - }; - }, - - - updateScrollButtons: function() { - if (this.beforeScroller == undefined || this.afterScroller == undefined) { - return; - } - - var beforeMeth = this.atExtremeBefore() ? 'addClass' : 'removeClass', - afterMeth = this.atExtremeAfter() ? 'addClass' : 'removeClass', - beforeCls = this.beforeScrollerCls + '-disabled', - afterCls = this.afterScrollerCls + '-disabled'; - - this.beforeScroller[beforeMeth](beforeCls); - this.afterScroller[afterMeth](afterCls); - this.scrolling = false; - }, - - - atExtremeBefore: function() { - return this.getScrollPosition() === 0; - }, - - - scrollLeft: function(animate) { - this.scrollBy(-this.scrollIncrement, animate); - }, - - - scrollRight: function(animate) { - this.scrollBy(this.scrollIncrement, animate); - }, - - - scrollToItem: function(item, animate) { - item = this.getItem(item); - - if (item != undefined) { - var visibility = this.getItemVisibility(item); - - if (!visibility.fullyVisible) { - var box = item.getBox(true, true), - newX = box.x; - - if (visibility.hiddenRight) { - newX -= (this.layout.innerCt.getWidth() - box.width); - } - - this.scrollTo(newX, animate); - } - } - }, - - - getItemVisibility: function(item) { - var box = this.getItem(item).getBox(true, true), - itemLeft = box.x, - itemRight = box.x + box.width, - scrollLeft = this.getScrollPosition(), - scrollRight = this.layout.innerCt.getWidth() + scrollLeft; - - return { - hiddenLeft : itemLeft < scrollLeft, - hiddenRight : itemRight > scrollRight, - fullyVisible: itemLeft > scrollLeft && itemRight < scrollRight - }; - } -}); - -Ext.layout.boxOverflow.scroller = Ext.layout.boxOverflow.Scroller; - - - -Ext.layout.boxOverflow.VerticalScroller = Ext.extend(Ext.layout.boxOverflow.Scroller, { - scrollIncrement: 75, - wheelIncrement : 2, - - handleOverflow: function(calculations, targetSize) { - Ext.layout.boxOverflow.VerticalScroller.superclass.handleOverflow.apply(this, arguments); - - return { - targetSize: { - height: targetSize.height - (this.beforeCt.getHeight() + this.afterCt.getHeight()), - width : targetSize.width - } - }; - }, - - - createInnerElements: function() { - var target = this.layout.innerCt; - - - - if (!this.beforeCt) { - this.beforeCt = target.insertSibling({cls: this.beforeCls}, 'before'); - this.afterCt = target.insertSibling({cls: this.afterCls}, 'after'); - - this.createWheelListener(); - } - }, - - - scrollTo: function(position, animate) { - var oldPosition = this.getScrollPosition(), - newPosition = position.constrain(0, this.getMaxScrollBottom()); - - if (newPosition != oldPosition && !this.scrolling) { - if (animate == undefined) { - animate = this.animateScroll; - } - - this.layout.innerCt.scrollTo('top', newPosition, animate ? this.getScrollAnim() : false); - - if (animate) { - this.scrolling = true; - } else { - this.scrolling = false; - this.updateScrollButtons(); - } - } - }, - - - getScrollPosition: function(){ - return parseInt(this.layout.innerCt.dom.scrollTop, 10) || 0; - }, - - - getMaxScrollBottom: function() { - return this.layout.innerCt.dom.scrollHeight - this.layout.innerCt.getHeight(); - }, - - - atExtremeAfter: function() { - return this.getScrollPosition() >= this.getMaxScrollBottom(); - } -}); - -Ext.layout.boxOverflow.scroller.vbox = Ext.layout.boxOverflow.VerticalScroller; - - - -Ext.layout.boxOverflow.HorizontalScroller = Ext.extend(Ext.layout.boxOverflow.Scroller, { - handleOverflow: function(calculations, targetSize) { - Ext.layout.boxOverflow.HorizontalScroller.superclass.handleOverflow.apply(this, arguments); - - return { - targetSize: { - height: targetSize.height, - width : targetSize.width - (this.beforeCt.getWidth() + this.afterCt.getWidth()) - } - }; - }, - - - createInnerElements: function() { - var target = this.layout.innerCt; - - - - if (!this.beforeCt) { - this.afterCt = target.insertSibling({cls: this.afterCls}, 'before'); - this.beforeCt = target.insertSibling({cls: this.beforeCls}, 'before'); - - this.createWheelListener(); - } - }, - - - scrollTo: function(position, animate) { - var oldPosition = this.getScrollPosition(), - newPosition = position.constrain(0, this.getMaxScrollRight()); - - if (newPosition != oldPosition && !this.scrolling) { - if (animate == undefined) { - animate = this.animateScroll; - } - - this.layout.innerCt.scrollTo('left', newPosition, animate ? this.getScrollAnim() : false); - - if (animate) { - this.scrolling = true; - } else { - this.scrolling = false; - this.updateScrollButtons(); - } - } - }, - - - getScrollPosition: function(){ - return parseInt(this.layout.innerCt.dom.scrollLeft, 10) || 0; - }, - - - getMaxScrollRight: function() { - return this.layout.innerCt.dom.scrollWidth - this.layout.innerCt.getWidth(); - }, - - - atExtremeAfter: function() { - return this.getScrollPosition() >= this.getMaxScrollRight(); - } -}); - -Ext.layout.boxOverflow.scroller.hbox = Ext.layout.boxOverflow.HorizontalScroller; -Ext.layout.HBoxLayout = Ext.extend(Ext.layout.BoxLayout, { - - align: 'top', - - type : 'hbox', - - - - - - 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', - - nonFlexWidth = 0, - maxHeight = 0, - totalFlex = 0, - desiredWidth = 0, - minimumWidth = 0, - - - boxes = [], - - - child, childWidth, childHeight, childSize, childMargins, canLayout, i, calcs, flexedWidth, - horizMargins, vertMargins, stretchHeight; - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - childHeight = child.height; - childWidth = child.width; - canLayout = !child.hasLayout && typeof child.doLayout == 'function'; - - - if (typeof childWidth != 'number') { - - - if (child.flex && !childWidth) { - totalFlex += child.flex; - - - } else { - - - if (!childWidth && canLayout) { - child.doLayout(); - } - - childSize = child.getSize(); - childWidth = childSize.width; - childHeight = childSize.height; - } - } - - childMargins = child.margins; - horizMargins = childMargins.left + childMargins.right; - - nonFlexWidth += horizMargins + (childWidth || 0); - desiredWidth += horizMargins + (child.flex ? child.minWidth || 0 : childWidth); - minimumWidth += horizMargins + (child.minWidth || childWidth || 0); - - - if (typeof childHeight != 'number') { - if (canLayout) { - child.doLayout(); - } - childHeight = child.getHeight(); - } - - maxHeight = Math.max(maxHeight, childHeight + childMargins.top + childMargins.bottom); - - - boxes.push({ - component: child, - height : childHeight || undefined, - width : childWidth || undefined - }); - } - - var shortfall = desiredWidth - width, - tooNarrow = minimumWidth > width; - - - var availableWidth = Math.max(0, width - nonFlexWidth - paddingHoriz); - - if (tooNarrow) { - for (i = 0; i < visibleCount; i++) { - boxes[i].width = visibleItems[i].minWidth || visibleItems[i].width || boxes[i].width; - } - } else { - - - if (shortfall > 0) { - var minWidths = []; - - - for (var index = 0, length = visibleCount; index < length; index++) { - var item = visibleItems[index], - minWidth = item.minWidth || 0; - - - - if (item.flex) { - boxes[index].width = minWidth; - } else { - minWidths.push({ - minWidth : minWidth, - available: boxes[index].width - minWidth, - index : index - }); - } - } - - - minWidths.sort(function(a, b) { - return a.available > b.available ? 1 : -1; - }); - - - for (var i = 0, length = minWidths.length; i < length; i++) { - var itemIndex = minWidths[i].index; - - if (itemIndex == undefined) { - continue; - } - - var item = visibleItems[itemIndex], - box = boxes[itemIndex], - oldWidth = box.width, - minWidth = item.minWidth, - newWidth = Math.max(minWidth, oldWidth - Math.ceil(shortfall / (length - i))), - reduction = oldWidth - newWidth; - - boxes[itemIndex].width = newWidth; - shortfall -= reduction; - } - } else { - - var remainingWidth = availableWidth, - remainingFlex = totalFlex; - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - vertMargins = childMargins.top + childMargins.bottom; - - if (isStart && child.flex && !child.width) { - flexedWidth = Math.ceil((child.flex / remainingFlex) * remainingWidth); - remainingWidth -= flexedWidth; - remainingFlex -= child.flex; - - calcs.width = flexedWidth; - calcs.dirtySize = true; - } - } - } - } - - if (isCenter) { - leftOffset += availableWidth / 2; - } else if (isEnd) { - leftOffset += availableWidth; - } - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - leftOffset += childMargins.left; - vertMargins = childMargins.top + childMargins.bottom; - - 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, - nonFlexWidth: nonFlexWidth, - desiredWidth: desiredWidth, - minimumWidth: minimumWidth, - shortfall : desiredWidth - width, - tooNarrow : tooNarrow - } - }; - } -}); - -Ext.Container.LAYOUTS.hbox = Ext.layout.HBoxLayout; -Ext.layout.VBoxLayout = Ext.extend(Ext.layout.BoxLayout, { - - align : 'left', - type: 'vbox', - - - - - - - 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, - desiredHeight= 0, - minimumHeight= 0, - - - boxes = [], - - - child, childWidth, childHeight, childSize, childMargins, canLayout, i, calcs, flexedHeight, - horizMargins, vertMargins, stretchWidth, length; - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - childHeight = child.height; - childWidth = child.width; - canLayout = !child.hasLayout && typeof child.doLayout == 'function'; - - - if (typeof childHeight != 'number') { - - - if (child.flex && !childHeight) { - totalFlex += child.flex; - - - } else { - - - if (!childHeight && canLayout) { - child.doLayout(); - } - - childSize = child.getSize(); - childWidth = childSize.width; - childHeight = childSize.height; - } - } - - childMargins = child.margins; - vertMargins = childMargins.top + childMargins.bottom; - - nonFlexHeight += vertMargins + (childHeight || 0); - desiredHeight += vertMargins + (child.flex ? child.minHeight || 0 : childHeight); - minimumHeight += vertMargins + (child.minHeight || childHeight || 0); - - - if (typeof childWidth != 'number') { - if (canLayout) { - child.doLayout(); - } - childWidth = child.getWidth(); - } - - maxWidth = Math.max(maxWidth, childWidth + childMargins.left + childMargins.right); - - - boxes.push({ - component: child, - height : childHeight || undefined, - width : childWidth || undefined - }); - } - - var shortfall = desiredHeight - height, - tooNarrow = minimumHeight > height; - - - var availableHeight = Math.max(0, (height - nonFlexHeight - paddingVert)); - - if (tooNarrow) { - for (i = 0, length = visibleCount; i < length; i++) { - boxes[i].height = visibleItems[i].minHeight || visibleItems[i].height || boxes[i].height; - } - } else { - - - if (shortfall > 0) { - var minHeights = []; - - - for (var index = 0, length = visibleCount; index < length; index++) { - var item = visibleItems[index], - minHeight = item.minHeight || 0; - - - - if (item.flex) { - boxes[index].height = minHeight; - } else { - minHeights.push({ - minHeight: minHeight, - available: boxes[index].height - minHeight, - index : index - }); - } - } - - - minHeights.sort(function(a, b) { - return a.available > b.available ? 1 : -1; - }); - - - for (var i = 0, length = minHeights.length; i < length; i++) { - var itemIndex = minHeights[i].index; - - if (itemIndex == undefined) { - continue; - } - - var item = visibleItems[itemIndex], - box = boxes[itemIndex], - oldHeight = box.height, - minHeight = item.minHeight, - newHeight = Math.max(minHeight, oldHeight - Math.ceil(shortfall / (length - i))), - reduction = oldHeight - newHeight; - - boxes[itemIndex].height = newHeight; - shortfall -= reduction; - } - } else { - - var remainingHeight = availableHeight, - remainingFlex = totalFlex; - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - horizMargins = childMargins.left + childMargins.right; - - if (isStart && child.flex && !child.height) { - flexedHeight = Math.ceil((child.flex / remainingFlex) * remainingHeight); - remainingHeight -= flexedHeight; - remainingFlex -= child.flex; - - calcs.height = flexedHeight; - calcs.dirtySize = true; - } - } - } - } - - if (isCenter) { - topOffset += availableHeight / 2; - } else if (isEnd) { - topOffset += availableHeight; - } - - - for (i = 0; i < visibleCount; i++) { - child = visibleItems[i]; - calcs = boxes[i]; - - childMargins = child.margins; - topOffset += childMargins.top; - horizMargins = childMargins.left + childMargins.right; - - - 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, - nonFlexHeight: nonFlexHeight, - desiredHeight: desiredHeight, - minimumHeight: minimumHeight, - shortfall : desiredHeight - height, - tooNarrow : tooNarrow - } - }; - } -}); - -Ext.Container.LAYOUTS.vbox = Ext.layout.VBoxLayout; - -Ext.layout.ToolbarLayout = Ext.extend(Ext.layout.ContainerLayout, { - monitorResize : true, - - type: 'toolbar', - - - triggerWidth: 18, - - - noItemsMenuText : '
      (None)
      ', - - - lastOverflow: false, - - - tableHTML: [ - '', - '', - '', - '', - '', - '', - '', - '
      ', - '', - '', - '', - '', - '
      ', - '
      ', - '', - '', - '', - '', - '', - '', - '', - '
      ', - '', - '', - '', - '', - '
      ', - '
      ', - '', - '', - '', - '', - '
      ', - '
      ', - '
      ' - ].join(""), - - - onLayout : function(ct, target) { - - 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) { - - this.hiddenItems = []; - } - } - - var side = ct.buttonAlign == 'right' ? this.rightTr : this.leftTr, - items = ct.items.items, - position = 0; - - - 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)); - this.configureItem(c); - } 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); - } - } - } - - - this.cleanup(this.leftTr); - this.cleanup(this.rightTr); - this.cleanup(this.extrasTr); - this.fitToSize(target); - }, - - - 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); - } - } - }, - - - insertCell : function(c, target, position) { - var td = document.createElement('td'); - td.className = 'x-toolbar-cell'; - - target.insertBefore(td, target.childNodes[position] || null); - - return td; - }, - - - hideItem : function(item) { - this.hiddenItems.push(item); - - item.xtbHidden = true; - item.xtbWidth = item.getPositionEl().dom.parentNode.offsetWidth; - item.hide(); - }, - - - unhideItem : function(item) { - item.show(); - item.xtbHidden = false; - this.hiddenItems.remove(item); - }, - - - getItemWidth : function(c) { - return c.hidden ? (c.xtbWidth || 0) : c.getPositionEl().dom.parentNode.offsetWidth; - }, - - - 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); - } - } - } - } - - - 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; - } - } - }, - - - 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; - }, - - - 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); - } - } - }, - - - clearMenu : function(){ - var menu = this.moreMenu; - if (menu && menu.items) { - menu.items.each(function(item){ - delete item.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; - } - } - - - if (menu.items.length < 1) { - menu.add(this.noItemsMenuText); - } - }, - - - initMore : function(){ - if (!this.more) { - - this.moreMenu = new Ext.menu.Menu({ - ownerCt : this.container, - listeners: { - beforeshow: this.beforeMoreShow, - scope: this - } - }); - - - 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; - - Ext.layout.MenuLayout = Ext.extend(Ext.layout.ContainerLayout, { - monitorResize : true, - - type: 'menu', - - setContainer : function(ct){ - this.monitorResize = !ct.floating; - - - 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( - '
    • ', - '', - '{altText}', - '', - '
    • ' - ); - } - - if(c && !c.rendered){ - if(Ext.isNumber(position)){ - position = target.dom.childNodes[position]; - } - var a = this.getItemArgs(c); - - - c.render(c.positionEl = position ? - this.itemTpl.insertBefore(position, a, true) : - this.itemTpl.append(target, a, true)); - - - c.positionEl.menuItemId = c.getItemId(); - - - - if (!a.isMenuItem && a.needsIcon) { - c.positionEl.addClass('x-menu-list-item-indent'); - } - this.configureItem(c); - }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, - canHaveIcon = !(isMenuItem || c instanceof Ext.menu.Separator); - - return { - isMenuItem: isMenuItem, - needsIcon: canHaveIcon && (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 ', - altText: c.altText || '' - }; - }, - - - 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 || Ext.isIE9) ? 'auto' : ct.minWidth); - var el = ct.getEl(), t = el.dom.offsetWidth; - ct.setWidth(ct.getLayoutTarget().getWidth() + el.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(w, h){ - this.fireEvent('resize', this, w, h, w, h); - } -}); -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(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 - }; - } - }); - - - - this.fbar.items.each(function(c){ - c.minWidth = c.minWidth || this.minButtonWidth; - }, this); - this.buttons = this.fbar.items.items; - }, - - - createToolbar: function(tb, options){ - var result; - - 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; - }, - - - 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']); - } - } - }, - - - 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){ - 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'; - } - - - - - if(this.frame){ - el.insertHtml('afterBegin', String.format(Ext.Element.boxMarkup, this.baseCls)); - - this.createElement('header', d.firstChild.firstChild.firstChild); - this.createElement('bwrap', d); - - - 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'; - } - - this.ft = Ext.get(this.bwrap.dom.lastChild); - this.mc = Ext.get(mc); - }else{ - this.createElement('header', d); - this.createElement('bwrap', d); - - - 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(); - - - 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); - } - - - 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(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', alt: '', src: Ext.BLANK_IMAGE_URL, cls:'x-panel-inline-icon '+this.iconCls - }); - } - } - } - } - this.fireEvent('iconchange', this, cls, old); - }, - - - 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); - }, - - - getTopToolbar : function(){ - return this.topToolbar; - }, - - - getBottomToolbar : function(){ - return this.bottomToolbar; - }, - - - getFooterToolbar : function() { - return this.fbar; - }, - - - 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); - }, - - - addTool : function(){ - if(!this.rendered){ - if(!this.tools){ - this.tools = []; - } - Ext.each(arguments, function(arg){ - this.tools.push(arg); - }, this); - return; - } - - if(!this[this.toolTarget]){ - return; - } - if(!this.toolTemplate){ - - 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); - } - }, - - - 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(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); - } - }; - }, - - - 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(tb){ - tb.doLayout(); - tb.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(anim){ - if(this.floating){ - this.el.beforeAction(); - } - if(anim !== false){ - this.el.addClass('x-panel-animated'); - } - }, - - - afterEffect : function(anim){ - this.syncShadow(); - this.el.removeClass('x-panel-animated'); - }, - - - 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 { - o.callback = function(){ - cb.call(scope); - Ext.callback(a.callback, a.scope); - }; - } - return Ext.applyIf(o, a); - }, - - - 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; - }, - - - 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); - } - }, - - - afterCollapse : function(anim){ - this.collapsed = true; - this.el.addClass(this.collapsedCls); - if(anim !== false){ - this[this.collapseEl].hide(this.hideMode); - } - this.afterEffect(anim); - - - this.cascade(function(c) { - if (c.lastSize) { - c.lastSize = { width: undefined, height: undefined }; - } - }); - this.fireEvent('collapse', 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; - }, - - - 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); - } - }, - - - 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); - }, - - - toggleCollapse : function(animate){ - this[this.collapsed ? 'expand' : 'collapse'](animate); - 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(adjWidth, adjHeight, rawWidth, rawHeight){ - var w = adjWidth, - h = adjHeight; - - if(Ext.isDefined(w) || Ext.isDefined(h)){ - if(!this.collapsed){ - - - - - 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); - - 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'); - } - } - - - if(Ext.isNumber(h)){ - h = Math.max(0, h - this.getFrameHeight()); - - 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{ - - 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); - - }, - - - onBodyResize: function(w, h){ - this.fireEvent('bodyresize', this, w, h); - }, - - - getToolbarHeight: function(){ - var h = 0; - if(this.rendered){ - Ext.each(this.toolbars, function(tb){ - h += tb.getHeight(); - }, this); - } - return h; - }, - - - adjustBodyHeight : function(h){ - return h; - }, - - - adjustBodyWidth : function(w){ - return w; - }, - - - onPosition : function(){ - this.syncShadow(); - }, - - - 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; - }, - - - getFrameHeight : function() { - 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; - }, - - - 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(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; - }, - - - getUpdater : function(){ - return this.body.getUpdater(); - }, - - - load : function(){ - var um = this.body.getUpdater(); - um.update.apply(um, arguments); - return this; - }, - - - 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); - }, - - - 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(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); - } - }, - - - 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}); - }, - - - getTool : function(id) { - return this.tools[id]; - } - - -}); -Ext.reg('panel', Ext.Panel); - -Ext.Editor = function(field, config){ - if(field.field){ - this.field = Ext.create(field.field, 'textfield'); - config = Ext.apply({}, field); - delete config.field; - }else{ - this.field = field; - } - Ext.Editor.superclass.constructor.call(this, config); -}; - -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(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', - 'keydown' - ]); - } - }, - - - 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); - }, - - - 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(); - } - }, - - - 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); - } - } - }, - - - setSize : function(w, h){ - delete this.field.lastSize; - this.field.setSize(w, h); - if(this.el){ - - if(Ext.isGecko2 || Ext.isOpera || (Ext.isIE7 && Ext.isStrict)){ - - this.el.setSize(w, h); - } - this.el.sync(); - } - }, - - - realign : function(autoSize){ - if(autoSize === true){ - this.doAutoSize(); - } - this.el.alignTo(this.boundEl, this.alignment, this.offsets); - }, - - - completeEdit : function(remainVisible){ - if(!this.editing){ - return; - } - - 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); - } - }, - - - 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(remainVisible){ - if(this.editing){ - var v = this.getValue(); - this.setValue(this.startValue); - this.hideEdit(remainVisible); - this.fireEvent("canceledit", this, v, this.startValue); - } - }, - - - hideEdit: function(remainVisible){ - if(remainVisible !== 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(v){ - this.field.setValue(v); - }, - - - 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(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}); - } - }, - - - afterRender : function(){ - Ext.ColorPalette.superclass.afterRender.call(this); - if(this.value){ - var s = this.value; - this.value = null; - this.select(s, true); - } - }, - - - handleClick : function(e, t){ - e.preventDefault(); - if(!this.disabled){ - var c = t.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1]; - this.select(c.toUpperCase()); - } - }, - - - 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); - } - } - } - - -}); -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 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 + ')'); - } - }, - - - setDisabledDates : function(dd){ - if(Ext.isArray(dd)){ - this.disabledDates = dd; - this.disabledDatesRE = null; - }else{ - this.disabledDatesRE = dd; - } - this.initDisabledDays(); - this.update(this.value, true); - }, - - - setDisabledDays : function(dd){ - this.disabledDays = dd; - this.update(this.value, true); - }, - - - setMinDate : function(dt){ - this.minDate = dt; - this.update(this.value, true); - }, - - - setMaxDate : function(dt){ - this.maxDate = dt; - this.update(this.value, true); - }, - - - setValue : function(value){ - this.value = value.clearTime(true); - this.update(this.value); - }, - - - getValue : function(){ - return this.value; - }, - - - focus : function(){ - this.update(this.activeDate); - }, - - - 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(); - } - - }, - - - 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(el){ - Ext.fly(el).repaint(); - }); - } - }, - - - 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); - } - }, - - - 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); - }, - - - 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); - } - }); - } - }, - - - 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}); - } - }, - - - 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'); - } - }, - - - updateMPMonth : function(sm){ - this.mpMonths.each(function(m, a, i){ - m[m.dom.xmonth == sm ? 'addClass' : 'removeClass']('x-date-mp-sel'); - }); - }, - - - selectMPMonth : function(m){ - - }, - - - 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){ - - 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); - } - }, - - - 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(); - } - }, - - - hideMonthPicker : function(disableAnim){ - if(this.monthPicker){ - if(disableAnim === true){ - this.monthPicker.hide(); - }else{ - this.monthPicker.slideOut('t', {duration:0.2}); - } - } - }, - - - showPrevMonth : function(e){ - this.update(this.activeDate.add('mo', -1)); - }, - - - showNextMonth : function(e){ - 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(e){ - e.stopEvent(); - if(!this.disabled){ - var delta = e.getWheelDelta(); - if(delta > 0){ - this.showPrevMonth(); - } else if(delta < 0){ - this.showNextMonth(); - } - } - }, - - - 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); - } - }, - - - selectToday : function(){ - if(this.todayBtn && !this.todayBtn.disabled){ - this.setValue(new Date().clearTime()); - this.fireEvent('select', this, this.value); - } - }, - - - 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, - - 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); - } - } - - 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; - - - - 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]); - } - } - } - }, - - - 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; - } - } - - -}); - -Ext.reg('datepicker', Ext.DatePicker); - -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; - um.on({ - scope: this, - beforeupdate: this.onBeforeLoad, - update: this.onLoad, - failure: this.onLoad - }); - this.removeMask = Ext.value(this.removeMask, true); - } -}; - -Ext.LoadMask.prototype = { - - - - msg : 'Loading...', - - msgCls : 'x-mask-loading', - - - disabled: false, - - - disable : function(){ - this.disabled = true; - }, - - - enable : function(){ - this.disabled = false; - }, - - - onLoad : function(){ - this.el.unmask(this.removeMask); - }, - - - onBeforeLoad : function(){ - if(!this.disabled){ - this.el.mask(this.msg, this.msgCls); - } - }, - - - show: function(){ - this.onBeforeLoad(); - }, - - - hide: function(){ - this.onLoad(); - }, - - - 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.slider.Thumb = Ext.extend(Object, { - - - dragging: false, - - - constructor: function(config) { - - Ext.apply(this, config || {}, { - cls: 'x-slider-thumb', - - - constrain: false - }); - - Ext.slider.Thumb.superclass.constructor.call(this, config); - - if (this.slider.vertical) { - Ext.apply(this, Ext.slider.Thumb.Vertical); - } - }, - - - render: function() { - this.el = this.slider.innerEl.insertFirst({cls: this.cls}); - - this.initEvents(); - }, - - - enable: function() { - this.disabled = false; - this.el.removeClass(this.slider.disabledClass); - }, - - - disable: function() { - this.disabled = true; - this.el.addClass(this.slider.disabledClass); - }, - - - 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); - }, - - - onBeforeDragStart : function(e) { - if (this.disabled) { - return false; - } else { - this.slider.promoteThumb(this); - return true; - } - }, - - - 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); - }, - - - 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); - }, - - - 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); - } - }, - - - destroy: function(){ - Ext.destroyMembers(this, 'tracker', 'el'); - } -}); - - -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, - - 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 values = this.values; - - for (var i=0; i < values.length; i++) { - this.addThumb(values[i]); - } - - if(this.vertical){ - Ext.apply(this, Ext.slider.Vertical); - } - }, - - - addThumb: function(value) { - var thumb = new Ext.slider.Thumb({ - value : value, - slider : this, - index : this.thumbs.length, - constrain: this.constrainThumbs - }); - this.thumbs.push(thumb); - - - if (this.rendered) thumb.render(); - }, - - - 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); - } - }, - - - 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'); - - - for (var i=0; i < this.thumbs.length; i++) { - this.thumbs[i].render(); - } - - - var thumb = this.innerEl.child('.x-slider-thumb'); - this.halfThumb = (this.vertical ? thumb.getHeight() : thumb.getWidth()) / 2; - - this.initEvents(); - }, - - - initEvents : function(){ - this.mon(this.el, { - scope : this, - mousedown: this.onMouseDown, - keydown : this.onKeyDown - }); - - this.focusEl.swallowEvent("click", true); - }, - - - onMouseDown : function(e){ - if(this.disabled){ - return; - } - - - 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(); - }, - - - onClickChange : function(local) { - if (local.top > this.clickRange[0] && local.top < this.clickRange[1]) { - - var thumb = this.getNearest(local, 'left'), - index = thumb.index; - - this.setValue(index, Ext.util.Format.round(this.reverseValue(local.left), this.decimalPrecision), undefined, true); - } - }, - - - 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, - 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; - }, - - - onKeyDown : function(e){ - - 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(); - } - }, - - - 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); - }, - - - 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) { - - this.setValue(i, v, false); - } else { - this.moveThumb(i, this.translateValue(v), false); - } - } - }; - }, - - - getRatio : function(){ - var w = this.innerEl.getWidth(), - v = this.maxValue - this.minValue; - return v == 0 ? w : (w/v); - }, - - - normalizeValue : function(v){ - v = this.doSnap(v); - v = Ext.util.Format.round(v, this.decimalPrecision); - v = v.constrain(this.minValue, this.maxValue); - return v; - }, - - - 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(); - }, - - - 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(); - }, - - - 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); - } - } - } - }, - - - translateValue : function(v) { - var ratio = this.getRatio(); - return (v * ratio) - (this.minValue * ratio) - this.halfThumb; - }, - - - reverseValue : function(pos){ - var ratio = this.getRatio(); - return (pos + (this.minValue * ratio)) / ratio; - }, - - - 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}); - } - }, - - - focus : function(){ - this.focusEl.focus(10); - }, - - - onResize : function(w, h){ - var thumbs = this.thumbs, - len = thumbs.length, - i = 0; - - - for(; i < len; ++i){ - thumbs[i].el.stopFx(); - } - - if(Ext.isNumber(w)){ - this.innerEl.setWidth(w - (this.el.getPadding('l') + this.endEl.getPadding('r'))); - } - this.syncThumb(); - Ext.slider.MultiSlider.superclass.onResize.apply(this, arguments); - }, - - - 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){ - - - 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); - } - } - }, - - - 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(); - } - } - }, - - - syncThumb : function() { - if (this.rendered) { - for (var i=0; i < this.thumbs.length; i++) { - this.moveThumb(i, this.translateValue(this.thumbs[i].value)); - } - } - }, - - - getValue : function(index) { - return this.thumbs[index].value; - }, - - - getValues: function() { - var values = []; - - for (var i=0; i < this.thumbs.length; i++) { - values.push(this.thumbs[i].value); - } - - return values; - }, - - - beforeDestroy : function(){ - var thumbs = this.thumbs; - for(var i = 0, len = thumbs.length; i < len; ++i){ - thumbs[i].destroy(); - thumbs[i] = null; - } - Ext.destroyMembers(this, 'endEl', 'innerEl', 'focusEl', 'thumbHolder'); - Ext.slider.MultiSlider.superclass.beforeDestroy.call(this); - } -}); - -Ext.reg('multislider', Ext.slider.MultiSlider); - - -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); - }, - - - getValue: function() { - - return Ext.slider.SingleSlider.superclass.getValue.call(this, 0); - }, - - - setValue: function(value, animate) { - var args = Ext.toArray(arguments), - len = args.length; - - - - - if (len == 1 || (len <= 3 && typeof arguments[1] != 'number')) { - args.unshift(0); - } - - return Ext.slider.SingleSlider.superclass.setValue.apply(this, args); - }, - - - syncThumb : function() { - return Ext.slider.SingleSlider.superclass.syncThumb.apply(this, [0].concat(arguments)); - }, - - - getNearest : function(){ - - return this.thumbs[0]; - } -}); - - -Ext.Slider = Ext.slider.SingleSlider; - -Ext.reg('slider', Ext.slider.SingleSlider); - - -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); - } - } -}; - - -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); - } -}; - -Ext.ProgressBar = Ext.extend(Ext.BoxComponent, { - - baseCls : 'x-progress', - - - animate : false, - - - waitTimer : null, - - - initComponent : function(){ - Ext.ProgressBar.superclass.initComponent.call(this); - this.addEvents( - - "update" - ); - }, - - - 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){ - - this.textEl = Ext.get(this.textEl); - delete this.textTopEl; - }else{ - - 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); - }, - - - afterRender : function(){ - Ext.ProgressBar.superclass.afterRender.call(this); - if(this.value){ - this.updateProgress(this.value, this.text); - }else{ - this.updateText(this.text); - } - }, - - - 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){ - - this.textTopEl.removeClass('x-hidden').setWidth(w); - } - } - this.fireEvent('update', this, value, text); - return 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; - }, - - - isWaiting : function(){ - return this.waitTimer !== null; - }, - - - updateText : function(text){ - this.text = text || ' '; - 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(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; - }, - - - reset : function(hide){ - this.updateProgress(0); - if(this.textTopEl){ - this.textTopEl.addClass('x-hidden'); - } - this.clearTimer(); - if(hide === 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); - -(function() { - -var Event=Ext.EventManager; -var Dom=Ext.lib.Dom; - - -Ext.dd.DragDrop = function(id, sGroup, config) { - if(id) { - this.init(id, sGroup, config); - } -}; - -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(x, y) { }, - - - startDrag: function(x, y) { }, - - - b4Drag: function(e) { }, - - - onDrag: function(e) { }, - - - onDragEnter: function(e, id) { }, - - - b4DragOver: function(e) { }, - - - onDragOver: function(e, id) { }, - - - b4DragOut: function(e) { }, - - - onDragOut: function(e, id) { }, - - - b4DragDrop: function(e) { }, - - - onDragDrop: function(e, id) { }, - - - onInvalidDrop: function(e) { }, - - - b4EndDrag: function(e) { }, - - - endDrag: function(e) { }, - - - b4MouseDown: function(e) { }, - - - onMouseDown: function(e) { }, - - - onMouseUp: function(e) { }, - - - onAvailable: function () { - }, - - - defaultPadding : {left:0, right:0, top:0, bottom:0}, - - - 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), - c.width - leftSpace - b.width - (pad.right||0), - this.xTickSize - ); - this.setYConstraint(topSpace - (pad.top||0), - c.height - topSpace - b.height - (pad.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(id, sGroup, config) { - this.initTarget(id, sGroup, config); - Event.on(this.id, "mousedown", this.handleMouseDown, this); - - }, - - - initTarget: function(id, sGroup, config) { - - - this.config = config || {}; - - - this.DDM = Ext.dd.DDM; - - this.groups = {}; - - - - if (typeof id !== "string") { - id = Ext.id(id); - } - - - this.id = id; - - - this.addToGroup((sGroup) ? sGroup : "default"); - - - - this.handleElId = id; - - - this.setDragElId(id); - - - 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(iTop, iRight, iBot, iLeft) { - - 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]; - } - }, - - - 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); - }, - - - setStartPosition: function(pos) { - var p = pos || Dom.getXY( this.getEl() ); - this.deltaSetXY = null; - - this.startPageX = p[0]; - this.startPageY = p[1]; - }, - - - addToGroup: function(sGroup) { - this.groups[sGroup] = true; - this.DDM.regDragDrop(this, sGroup); - }, - - - removeFromGroup: function(sGroup) { - if (this.groups[sGroup]) { - delete this.groups[sGroup]; - } - - this.DDM.removeDDFromGroup(this, sGroup); - }, - - - setDragElId: function(id) { - this.dragElId = id; - }, - - - setHandleElId: function(id) { - if (typeof id !== "string") { - id = Ext.id(id); - } - this.handleElId = id; - this.DDM.regHandle(this.id, id); - }, - - - setOuterHandleElId: function(id) { - if (typeof id !== "string") { - id = Ext.id(id); - } - Event.on(id, "mousedown", - this.handleMouseDown, this); - this.setHandleElId(id); - - this.hasOuterHandles = true; - }, - - - unreg: function() { - Event.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(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)) { - - - 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)) ); - }, - - - addInvalidHandleType: function(tagName) { - var type = tagName.toUpperCase(); - this.invalidHandleTypes[type] = type; - }, - - - addInvalidHandleId: function(id) { - if (typeof id !== "string") { - id = Ext.id(id); - } - this.invalidHandleIds[id] = id; - }, - - - addInvalidHandleClass: function(cssClass) { - this.invalidHandleClasses.push(cssClass); - }, - - - removeInvalidHandleType: function(tagName) { - var type = tagName.toUpperCase(); - - delete this.invalidHandleTypes[type]; - }, - - - removeInvalidHandleId: function(id) { - if (typeof id !== "string") { - id = Ext.id(id); - } - delete this.invalidHandleIds[id]; - }, - - - 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) ; - }, - - - 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) ; - }, - - - 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; - }, - - - 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(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: function() { - - if (this.initPageX || this.initPageX === 0) { - - var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0; - var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0; - - this.setInitPosition(dx, dy); - - - } 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(val, tickArray) { - if (!tickArray) { - - - return val; - } else if (tickArray[0] >= val) { - - - 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]; - } - } - - - - return tickArray[tickArray.length - 1]; - } - }, - - - toString: function() { - return ("DragDrop " + this.id); - } - -}; - -})(); - - - - -if (!Ext.dd.DragDropMgr) { - - -Ext.dd.DragDropMgr = function() { - - var Event = 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(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); - } - } - }, - - - _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); - - - }, - - - _onResize: function(e) { - 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(oDD, sGroup) { - if (!this.initialized) { this.init(); } - - if (!this.ids[sGroup]) { - this.ids[sGroup] = {}; - } - this.ids[sGroup][oDD.id] = oDD; - }, - - - 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]; - } - }, - - - _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]; - }, - - - regHandle: function(sDDId, sHandleId) { - if (!this.handleIds[sDDId]) { - this.handleIds[sDDId] = {}; - } - this.handleIds[sDDId][sHandleId] = sHandleId; - }, - - - isDragDrop: function(id) { - return ( this.getDDById(id) ) ? true : false; - }, - - - 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; - }, - - - 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; - }, - - - fireEvents: function(e, isDrop) { - var dc = this.dragCurrent; - - - - if (!dc || dc.isLocked()) { - return; - } - - var pt = e.getPoint(); - - - var oldOvers = []; - - var outEvts = []; - var overEvts = []; - var dropEvts = []; - var enterEvts = []; - - - - 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)) { - - if (isDrop) { - dropEvts.push( oDD ); - - } else { - - - if (!oldOvers[oDD.id]) { - enterEvts.push( oDD ); - - } 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 { - - var len = 0; - for (i=0, len=outEvts.length; i 2000) { - } else { - setTimeout(DDM._addListeners, 10); - if (document && document.body) { - DDM._timeoutCount += 1; - } - } - } - }, - - - handleWasClicked: function(node, id) { - if (this.isHandle(id, node.id)) { - return true; - } else { - - var p = node.parentNode; - - while (p) { - if (this.isHandle(id, p.id)) { - return true; - } else { - p = p.parentNode; - } - } - } - - return false; - } - - }; - -}(); - - -Ext.dd.DDM = Ext.dd.DragDropMgr; -Ext.dd.DDM._addListeners(); - -} - - -Ext.dd.DD = function(id, sGroup, config) { - if (id) { - this.init(id, sGroup, config); - } -}; - -Ext.extend(Ext.dd.DD, Ext.dd.DragDrop, { - - - scroll: true, - - - autoOffset: function(iPageX, iPageY) { - var x = iPageX - this.startPageX; - var y = iPageY - this.startPageY; - this.setDelta(x, y); - }, - - - setDelta: function(iDeltaX, iDeltaY) { - this.deltaX = iDeltaX; - this.deltaY = iDeltaY; - }, - - - setDragElPos: function(iPageX, iPageY) { - - - - var el = this.getDragEl(); - this.alignElWithMouse(el, iPageX, iPageY); - }, - - - 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; - }, - - - 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]; - } - }, - - - autoScroll: function(x, y, h, w) { - - if (this.scroll) { - - var clientH = Ext.lib.Dom.getViewHeight(); - - - var clientW = Ext.lib.Dom.getViewWidth(); - - - var st = this.DDM.getScrollTop(); - - - var sl = this.DDM.getScrollLeft(); - - - var bot = h + y; - - - var right = w + x; - - - - - var toBot = (clientH + st - y - this.deltaY); - - - var toRight = (clientW + sl - x - this.deltaX); - - - - - var thresh = 40; - - - - - var scrAmt = (document.all) ? 80 : 30; - - - - if ( bot > clientH && toBot < thresh ) { - window.scrollTo(sl, st + scrAmt); - } - - - - if ( y < st && st > 0 && y - st < thresh ) { - window.scrollTo(sl, st - scrAmt); - } - - - - if ( right > clientW && toRight < thresh ) { - window.scrollTo(sl + scrAmt, st); - } - - - - if ( x < sl && sl > 0 && x - sl < thresh ) { - window.scrollTo(sl - scrAmt, st); - } - } - }, - - - 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}; - }, - - - applyConfig: function() { - Ext.dd.DD.superclass.applyConfig.call(this); - this.scroll = (this.config.scroll !== false); - }, - - - b4MouseDown: function(e) { - - this.autoOffset(e.getPageX(), - e.getPageY()); - }, - - - b4Drag: function(e) { - this.setDragElPos(e.getPageX(), - e.getPageY()); - }, - - toString: function() { - return ("DD " + this.id); - } - - - - - - -}); - -Ext.dd.DDProxy = function(id, sGroup, config) { - if (id) { - this.init(id, sGroup, config); - this.initFrame(); - } -}; - - -Ext.dd.DDProxy.dragElId = "ygddfdiv"; - -Ext.extend(Ext.dd.DDProxy, Ext.dd.DD, { - - - resizeFrame: true, - - - centerFrame: false, - - - 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; - - - - - body.insertBefore(div, body.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(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(); - }, - - - _resizeProxy: function() { - if (this.resizeFrame) { - var el = this.getEl(); - Ext.fly(this.getDragEl()).setSize(el.offsetWidth, el.offsetHeight); - } - }, - - - b4MouseDown: function(e) { - var x = e.getPageX(); - var y = e.getPageY(); - this.autoOffset(x, y); - this.setDragElPos(x, y); - }, - - - b4StartDrag: function(x, y) { - - this.showFrame(x, y); - }, - - - b4EndDrag: function(e) { - Ext.fly(this.getDragEl()).hide(); - }, - - - - - endDrag: function(e) { - - var lel = this.getEl(); - var del = this.getDragEl(); - - - del.style.visibility = ""; - - this.beforeMove(); - - - 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); - } - -}); - -Ext.dd.DDTarget = function(id, sGroup, config) { - if (id) { - this.initTarget(id, sGroup, config); - } -}; - - -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(config){ - Ext.apply(this, config); - 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, 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); - delete this.el; - }, - - 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(); - } - Ext.getDoc().on({ - scope: this, - mouseup: this.onMouseUp, - mousemove: this.onMouseMove, - selectstart: this.stopSelect - }); - if(this.autoStart){ - this.timer = this.triggerStart.defer(this.autoStart === true ? 1000 : this.autoStart, this, [e]); - } - } - }, - - onMouseMove: function(e, target){ - - 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(e); - }else{ - return; - } - } - this.fireEvent('mousemove', this, e); - this.onDrag(e); - this.fireEvent('drag', this, e); - }, - - onMouseUp: function(e) { - var doc = Ext.getDoc(), - wasActive = this.active; - - doc.un('mousemove', this.onMouseMove, this); - doc.un('mouseup', this.onMouseUp, this); - doc.un('selectstart', this.stopSelect, this); - e.preventDefault(); - this.clearStart(); - this.active = false; - delete this.elRegion; - this.fireEvent('mouseup', this, e); - if(wasActive){ - this.onEnd(e); - this.fireEvent('dragend', this, e); - } - }, - - triggerStart: function(e) { - this.clearStart(); - this.active = true; - this.onStart(e); - this.fireEvent('dragstart', this, e); - }, - - clearStart : function() { - if(this.timer){ - clearTimeout(this.timer); - delete this.timer; - } - }, - - stopSelect : function(e) { - e.stopEvent(); - return false; - }, - - - onBeforeStart : function(e) { - - }, - - - onStart : function(xy) { - - }, - - - onDrag : function(e) { - - }, - - - onEnd : function(e) { - - }, - - - 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), - 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]; - } - } -}); -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 group = el.ddScrollConfig ? el.ddScrollConfig.ddGroup : undefined, - freq = (el.ddScrollConfig && el.ddScrollConfig.frequency) - ? el.ddScrollConfig.frequency - : Ext.dd.ScrollManager.frequency; - - if (group === undefined || ddm.dragCurrent.ddGroup == group) { - 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; - - 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 { - - 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; - } - }, - - - 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]; - } - }, - - - vthresh : 25, - - hthresh : 25, - - - increment : 100, - - - frequency : 500, - - - animate: true, - - - animDuration: .4, - - - ddGroup: undefined, - - - refreshCache : function(){ - for(var id in els){ - if(typeof els[id] == 'object'){ - els[id]._region = els[id].getRegion(); - } - } - } - }; -}(); -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 { - - 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 : 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)]; - } - } - } - }, - - - getHandle : function(id){ - if(typeof id != "string"){ - id = id.id; - } - return handles[id]; - }, - - - getHandleFromEvent : function(e){ - var t = Ext.lib.Event.getTarget(e); - return t ? handles[t.id] : null; - }, - - - getTarget : function(id){ - if(typeof id != "string"){ - id = id.id; - } - return elements[id]; - }, - - - getTargetFromEvent : function(e){ - var t = Ext.lib.Event.getTarget(e); - return t ? elements[t.id] || handles[t.id] : null; - } - }; -}(); -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 = { - - dropAllowed : "x-dd-drop-ok", - - dropNotAllowed : "x-dd-drop-nodrop", - - - setStatus : function(cssClass){ - cssClass = cssClass || this.dropNotAllowed; - if(this.dropStatus != cssClass){ - this.el.replaceClass(this.dropStatus, cssClass); - this.dropStatus = cssClass; - } - }, - - - reset : function(clearGhost){ - this.el.dom.className = "x-dd-drag-proxy " + this.dropNotAllowed; - this.dropStatus = this.dropNotAllowed; - if(clearGhost){ - this.ghost.update(""); - } - }, - - - 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'); - } - }, - - - getEl : function(){ - return this.el; - }, - - - getGhost : function(){ - return this.ghost; - }, - - - hide : function(clear){ - this.el.hide(); - if(clear){ - this.reset(true); - } - }, - - - stop : function(){ - if(this.anim && this.anim.isAnimated && this.anim.isAnimated()){ - this.anim.stop(); - } - }, - - - show : function(){ - this.el.show(); - }, - - - sync : function(){ - this.el.sync(); - }, - - - 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(); - } - }, - - - 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); - } -}; -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, { - - - dropAllowed : "x-dd-drop-ok", - - dropNotAllowed : "x-dd-drop-nodrop", - - - getDragData : function(e){ - return this.dragData; - }, - - - 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){ - - this.afterDragEnter(target, e, id); - } - } - }, - - - beforeDragEnter : function(target, e, id){ - return true; - }, - - - alignElWithMouse: function() { - Ext.dd.DragSource.superclass.alignElWithMouse.apply(this, arguments); - this.proxy.sync(); - }, - - - 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){ - - this.afterDragOver(target, e, id); - } - } - }, - - - beforeDragOver : function(target, e, id){ - return true; - }, - - - 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){ - - this.afterDragOut(target, e, id); - } - } - this.cachedTarget = null; - }, - - - beforeDragOut : function(target, e, id){ - return true; - }, - - - 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)){ - this.onValidDrop(target, e, id); - }else{ - this.onInvalidDrop(target, e, id); - } - }else{ - this.onValidDrop(target, e, id); - } - - if(this.afterDragDrop){ - - this.afterDragDrop(target, e, id); - } - } - delete this.cachedTarget; - }, - - - beforeDragDrop : function(target, e, id){ - return true; - }, - - - onValidDrop : function(target, e, id){ - this.hideProxy(); - if(this.afterValidDrop){ - - this.afterValidDrop(target, e, id); - } - }, - - - getRepairXY : function(e, data){ - return this.el.getXY(); - }, - - - 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){ - - this.afterInvalidDrop(e, id); - } - }, - - - afterRepair : function(){ - if(Ext.enableFx){ - this.el.highlight(this.hlColor || "c3daf9"); - } - this.dragging = false; - }, - - - beforeInvalidDrop : function(target, e, id){ - return true; - }, - - - 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); - } - }, - - - onBeforeDrag : function(data, e){ - return true; - }, - - - onStartDrag : Ext.emptyFn, - - - startDrag : function(x, y){ - this.proxy.reset(); - this.dragging = true; - this.proxy.update(""); - this.onInitDrag(x, y); - this.proxy.show(); - }, - - - onInitDrag : function(x, y){ - var clone = this.el.dom.cloneNode(true); - clone.id = Ext.id(); - this.proxy.update(clone); - this.onStartDrag(x, y); - return true; - }, - - - getProxy : function(){ - return this.proxy; - }, - - - hideProxy : function(){ - this.proxy.hide(); - this.proxy.reset(true); - this.dragging = false; - }, - - - triggerCacheRefresh : function(){ - Ext.dd.DDM.refreshCache(this.groups); - }, - - - b4EndDrag: function(e) { - }, - - - endDrag : function(e){ - this.onEndDrag(this.dragData, e); - }, - - - onEndDrag : function(data, e){ - }, - - - autoOffset : function(x, y) { - this.setDelta(-12, -20); - }, - - destroy: function(){ - Ext.dd.DragSource.superclass.destroy.call(this); - Ext.destroy(this.proxy); - } -}); -Ext.dd.DropTarget = Ext.extend(Ext.dd.DDTarget, { - - constructor : 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}); - }, - - - - - dropAllowed : "x-dd-drop-ok", - - dropNotAllowed : "x-dd-drop-nodrop", - - - isTarget : true, - - - isNotifyTarget : true, - - - notifyEnter : function(dd, e, data){ - if(this.overClass){ - this.el.addClass(this.overClass); - } - return this.dropAllowed; - }, - - - notifyOver : function(dd, e, data){ - return this.dropAllowed; - }, - - - notifyOut : function(dd, e, data){ - if(this.overClass){ - this.el.removeClass(this.overClass); - } - }, - - - notifyDrop : function(dd, e, data){ - return false; - }, - - destroy : function(){ - Ext.dd.DropTarget.superclass.destroy.call(this); - if(this.containerScroll){ - Ext.dd.ScrollManager.unregister(this.el); - } - } -}); -Ext.dd.DragZone = Ext.extend(Ext.dd.DragSource, { - - constructor : function(el, config){ - Ext.dd.DragZone.superclass.constructor.call(this, el, config); - if(this.containerScroll){ - Ext.dd.ScrollManager.register(this.el); - } - }, - - - - - - - getDragData : function(e){ - return Ext.dd.Registry.getHandleFromEvent(e); - }, - - - onInitDrag : function(x, y){ - this.proxy.update(this.dragData.ddel.cloneNode(true)); - this.onStartDrag(x, y); - return true; - }, - - - afterRepair : function(){ - if(Ext.enableFx){ - Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || "c3daf9"); - } - this.dragging = false; - }, - - - getRepairXY : function(e){ - return Ext.Element.fly(this.dragData.ddel).getXY(); - }, - - destroy : function(){ - Ext.dd.DragZone.superclass.destroy.call(this); - if(this.containerScroll){ - Ext.dd.ScrollManager.unregister(this.el); - } - } -}); -Ext.dd.DropZone = function(el, config){ - Ext.dd.DropZone.superclass.constructor.call(this, el, config); -}; - -Ext.extend(Ext.dd.DropZone, Ext.dd.DropTarget, { - - getTargetFromEvent : function(e){ - return Ext.dd.Registry.getTargetFromEvent(e); - }, - - - onNodeEnter : function(n, dd, e, data){ - - }, - - - onNodeOver : function(n, dd, e, data){ - return this.dropAllowed; - }, - - - onNodeOut : function(n, dd, e, data){ - - }, - - - onNodeDrop : function(n, dd, e, data){ - return false; - }, - - - onContainerOver : function(dd, e, data){ - return this.dropNotAllowed; - }, - - - onContainerDrop : function(dd, e, data){ - return false; - }, - - - notifyEnter : function(dd, e, data){ - return this.dropNotAllowed; - }, - - - notifyOver : function(dd, e, data){ - var n = this.getTargetFromEvent(e); - if(!n){ - 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); - }, - - - notifyOut : function(dd, e, data){ - if(this.lastOverNode){ - this.onNodeOut(this.lastOverNode, dd, e, data); - this.lastOverNode = null; - } - }, - - - 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); - }, - - - triggerCacheRefresh : function(){ - Ext.dd.DDM.refreshCache(this.groups); - } -}); -Ext.Element.addMethods({ - - initDD : function(group, config, overrides){ - var dd = new Ext.dd.DD(Ext.id(this.dom), group, config); - return Ext.apply(dd, overrides); - }, - - - initDDProxy : function(group, config, overrides){ - var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config); - return Ext.apply(dd, overrides); - }, - - - initDDTarget : function(group, config, overrides){ - var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config); - return Ext.apply(dd, overrides); - } -}); - -Ext.data.Api = (function() { - - - - - - var validActions = {}; - - return { - - actions : { - create : 'create', - read : 'read', - update : 'update', - destroy : 'destroy' - }, - - - restActions : { - create : 'POST', - read : 'GET', - update : 'PUT', - destroy : 'DELETE' - }, - - - isAction : function(action) { - return (Ext.data.Api.actions[action]) ? true : false; - }, - - - getVerb : function(name) { - if (validActions[name]) { - return validActions[name]; - } - for (var verb in this.actions) { - if (this.actions[verb] === name) { - validActions[name] = verb; - break; - } - } - return (validActions[name] !== undefined) ? validActions[name] : null; - }, - - - isValid : function(api){ - var invalid = []; - var crud = this.actions; - for (var action in api) { - if (!(action in crud)) { - invalid.push(action); - } - } - return (!invalid.length) ? true : invalid; - }, - - - hasUniqueUrl : function(proxy, verb) { - var url = (proxy.api[verb]) ? proxy.api[verb].url : null; - var unique = true; - for (var action in proxy.api) { - if ((unique = (action === verb) ? true : (proxy.api[action].url != url) ? true : false) === false) { - break; - } - } - return unique; - }, - - - prepare : function(proxy) { - if (!proxy.api) { - proxy.api = {}; - } - for (var verb in this.actions) { - var action = this.actions[verb]; - proxy.api[action] = proxy.api[action] || proxy.url || proxy.directFn; - if (typeof(proxy.api[action]) == 'string') { - proxy.api[action] = { - url: proxy.api[action], - method: (proxy.restful === true) ? Ext.data.Api.restActions[action] : undefined - }; - } - } - }, - - - restify : function(proxy) { - proxy.restful = true; - for (var verb in this.restActions) { - proxy.api[this.actions[verb]].method || - (proxy.api[this.actions[verb]].method = this.restActions[verb]); - } - - - proxy.onWrite = proxy.onWrite.createInterceptor(function(action, o, response, rs) { - var reader = o.reader; - var res = new Ext.data.Response({ - action: action, - raw: response - }); - - switch (response.status) { - case 200: - return true; - break; - case 201: - if (Ext.isEmpty(res.raw.responseText)) { - res.success = true; - } else { - - return true; - } - break; - case 204: - res.success = true; - res.data = null; - break; - default: - return true; - break; - } - if (res.success === true) { - this.fireEvent("write", this, action, res.data, res, rs, o.request.arg); - } else { - this.fireEvent('exception', this, 'remote', action, o, res, rs); - } - o.request.callback.call(o.request.scope, res.data, res, res.success); - - return false; - }, proxy); - } - }; -})(); - - -Ext.data.Response = function(params, response) { - Ext.apply(this, params, { - raw: response - }); -}; -Ext.data.Response.prototype = { - message : null, - success : false, - status : null, - root : null, - raw : null, - - getMessage : function() { - return this.message; - }, - getSuccess : function() { - return this.success; - }, - getStatus : function() { - return this.status; - }, - getRoot : function() { - return this.root; - }, - getRawResponse : function() { - return this.raw; - } -}; - - -Ext.data.Api.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.Api' -}); -Ext.apply(Ext.data.Api.Error.prototype, { - lang: { - 'action-url-undefined': 'No fallback url defined for this action. When defining a DataProxy api, please be sure to define an url for each CRUD action in Ext.data.Api.actions or define a default url in addition to your api-configuration.', - 'invalid': 'received an invalid API-configuration. Please ensure your proxy API-configuration contains only the actions defined in Ext.data.Api.actions', - 'invalid-url': 'Invalid url. Please review your proxy configuration.', - 'execute': 'Attempted to execute an unknown action. Valid API actions are defined in Ext.data.Api.actions"' - } -}); - - - - -Ext.data.SortTypes = { - - none : function(s){ - return s; - }, - - - stripTagsRE : /<\/?[^>]+>/gi, - - - asText : function(s){ - return String(s).replace(this.stripTagsRE, ""); - }, - - - asUCText : function(s){ - return String(s).toUpperCase().replace(this.stripTagsRE, ""); - }, - - - asUCString : function(s) { - return String(s).toUpperCase(); - }, - - - asDate : function(s) { - if(!s){ - return 0; - } - if(Ext.isDate(s)){ - return s.getTime(); - } - return Date.parse(String(s)); - }, - - - asFloat : function(s) { - var val = parseFloat(String(s).replace(/,/g, "")); - return isNaN(val) ? 0 : val; - }, - - - asInt : function(s) { - var val = parseInt(String(s).replace(/,/g, ""), 10); - return isNaN(val) ? 0 : val; - } -}; -Ext.data.Record = function(data, id){ - - this.id = (id || id === 0) ? id : Ext.data.Record.id(this); - this.data = data || {}; -}; - - -Ext.data.Record.create = function(o){ - var f = Ext.extend(Ext.data.Record, {}); - var p = f.prototype; - p.fields = new Ext.util.MixedCollection(false, function(field){ - return field.name; - }); - for(var i = 0, len = o.length; i < len; i++){ - p.fields.add(new Ext.data.Field(o[i])); - } - f.getField = function(name){ - return p.fields.get(name); - }; - return f; -}; - -Ext.data.Record.PREFIX = 'ext-record'; -Ext.data.Record.AUTO_ID = 1; -Ext.data.Record.EDIT = 'edit'; -Ext.data.Record.REJECT = 'reject'; -Ext.data.Record.COMMIT = 'commit'; - - - -Ext.data.Record.id = function(rec) { - rec.phantom = true; - return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID++].join(''); -}; - -Ext.data.Record.prototype = { - - - - - - - dirty : false, - editing : false, - error : null, - - modified : null, - - phantom : false, - - - join : function(store){ - - this.store = store; - }, - - - set : function(name, value){ - var encode = Ext.isPrimitive(value) ? String : Ext.encode; - if(encode(this.data[name]) == encode(value)) { - return; - } - this.dirty = true; - if(!this.modified){ - this.modified = {}; - } - if(this.modified[name] === undefined){ - this.modified[name] = this.data[name]; - } - this.data[name] = value; - if(!this.editing){ - this.afterEdit(); - } - }, - - - afterEdit : function(){ - if (this.store != undefined && typeof this.store.afterEdit == "function") { - this.store.afterEdit(this); - } - }, - - - afterReject : function(){ - if(this.store){ - this.store.afterReject(this); - } - }, - - - afterCommit : function(){ - if(this.store){ - this.store.afterCommit(this); - } - }, - - - get : function(name){ - return this.data[name]; - }, - - - beginEdit : function(){ - this.editing = true; - this.modified = this.modified || {}; - }, - - - cancelEdit : function(){ - this.editing = false; - delete this.modified; - }, - - - endEdit : function(){ - this.editing = false; - if(this.dirty){ - this.afterEdit(); - } - }, - - - reject : function(silent){ - var m = this.modified; - for(var n in m){ - if(typeof m[n] != "function"){ - this.data[n] = m[n]; - } - } - this.dirty = false; - delete this.modified; - this.editing = false; - if(silent !== true){ - this.afterReject(); - } - }, - - - commit : function(silent){ - this.dirty = false; - delete this.modified; - this.editing = false; - if(silent !== true){ - this.afterCommit(); - } - }, - - - getChanges : function(){ - var m = this.modified, cs = {}; - for(var n in m){ - if(m.hasOwnProperty(n)){ - cs[n] = this.data[n]; - } - } - return cs; - }, - - - hasError : function(){ - return this.error !== null; - }, - - - clearError : function(){ - this.error = null; - }, - - - copy : function(newId) { - return new this.constructor(Ext.apply({}, this.data), newId || this.id); - }, - - - isModified : function(fieldName){ - return !!(this.modified && this.modified.hasOwnProperty(fieldName)); - }, - - - isValid : function() { - return this.fields.find(function(f) { - return (f.allowBlank === false && Ext.isEmpty(this.data[f.name])) ? true : false; - },this) ? false : true; - }, - - - markDirty : function(){ - this.dirty = true; - if(!this.modified){ - this.modified = {}; - } - this.fields.each(function(f) { - this.modified[f.name] = this.data[f.name]; - },this); - } -}; - -Ext.StoreMgr = Ext.apply(new Ext.util.MixedCollection(), { - - - - register : function(){ - for(var i = 0, s; (s = arguments[i]); i++){ - this.add(s); - } - }, - - - unregister : function(){ - for(var i = 0, s; (s = arguments[i]); i++){ - this.remove(this.lookup(s)); - } - }, - - - lookup : function(id){ - if(Ext.isArray(id)){ - var fields = ['field1'], expand = !Ext.isArray(id[0]); - if(!expand){ - for(var i = 2, len = id[0].length; i <= len; ++i){ - fields.push('field' + i); - } - } - return new Ext.data.ArrayStore({ - fields: fields, - data: id, - expandData: expand, - autoDestroy: true, - autoCreated: true - - }); - } - return Ext.isObject(id) ? (id.events ? id : Ext.create(id, 'store')) : this.get(id); - }, - - - getKey : function(o){ - return o.storeId; - } -}); -Ext.data.Store = Ext.extend(Ext.util.Observable, { - - - - - - - - writer : undefined, - - - - remoteSort : false, - - - autoDestroy : false, - - - pruneModifiedRecords : false, - - - lastOptions : null, - - - autoSave : true, - - - batch : true, - - - restful: false, - - - paramNames : undefined, - - - defaultParamNames : { - start : 'start', - limit : 'limit', - sort : 'sort', - dir : 'dir' - }, - - isDestroyed: false, - hasMultiSort: false, - - - batchKey : '_ext_batch_', - - constructor : function(config){ - - - - - this.data = new Ext.util.MixedCollection(false); - this.data.getKey = function(o){ - return o.id; - }; - - - - this.removed = []; - - if(config && config.data){ - this.inlineData = config.data; - delete config.data; - } - - Ext.apply(this, config); - - - this.baseParams = Ext.isObject(this.baseParams) ? this.baseParams : {}; - - this.paramNames = Ext.applyIf(this.paramNames || {}, this.defaultParamNames); - - if((this.url || this.api) && !this.proxy){ - this.proxy = new Ext.data.HttpProxy({url: this.url, api: this.api}); - } - - if (this.restful === true && this.proxy) { - - - this.batch = false; - Ext.data.Api.restify(this.proxy); - } - - if(this.reader){ - if(!this.recordType){ - this.recordType = this.reader.recordType; - } - if(this.reader.onMetaChange){ - this.reader.onMetaChange = this.reader.onMetaChange.createSequence(this.onMetaChange, this); - } - if (this.writer) { - if (this.writer instanceof(Ext.data.DataWriter) === false) { - this.writer = this.buildWriter(this.writer); - } - this.writer.meta = this.reader.meta; - this.pruneModifiedRecords = true; - } - } - - - - if(this.recordType){ - - this.fields = this.recordType.prototype.fields; - } - this.modified = []; - - this.addEvents( - - 'datachanged', - - 'metachange', - - 'add', - - 'remove', - - 'update', - - 'clear', - - 'exception', - - 'beforeload', - - 'load', - - 'loadexception', - - 'beforewrite', - - 'write', - - 'beforesave', - - 'save' - - ); - - if(this.proxy){ - - this.relayEvents(this.proxy, ['loadexception', 'exception']); - } - - if (this.writer) { - this.on({ - scope: this, - add: this.createRecords, - remove: this.destroyRecord, - update: this.updateRecord, - clear: this.onClear - }); - } - - this.sortToggle = {}; - if(this.sortField){ - this.setDefaultSort(this.sortField, this.sortDir); - }else if(this.sortInfo){ - this.setDefaultSort(this.sortInfo.field, this.sortInfo.direction); - } - - Ext.data.Store.superclass.constructor.call(this); - - if(this.id){ - this.storeId = this.id; - delete this.id; - } - if(this.storeId){ - Ext.StoreMgr.register(this); - } - if(this.inlineData){ - this.loadData(this.inlineData); - delete this.inlineData; - }else if(this.autoLoad){ - this.load.defer(10, this, [ - typeof this.autoLoad == 'object' ? - this.autoLoad : undefined]); - } - - this.batchCounter = 0; - this.batches = {}; - }, - - - buildWriter : function(config) { - var klass = undefined, - type = (config.format || 'json').toLowerCase(); - switch (type) { - case 'json': - klass = Ext.data.JsonWriter; - break; - case 'xml': - klass = Ext.data.XmlWriter; - break; - default: - klass = Ext.data.JsonWriter; - } - return new klass(config); - }, - - - destroy : function(){ - if(!this.isDestroyed){ - if(this.storeId){ - Ext.StoreMgr.unregister(this); - } - this.clearData(); - this.data = null; - Ext.destroy(this.proxy); - this.reader = this.writer = null; - this.purgeListeners(); - this.isDestroyed = true; - } - }, - - - add : function(records) { - var i, len, record, index; - - records = [].concat(records); - if (records.length < 1) { - return; - } - - for (i = 0, len = records.length; i < len; i++) { - record = records[i]; - - record.join(this); - - if (record.dirty || record.phantom) { - this.modified.push(record); - } - } - - index = this.data.length; - this.data.addAll(records); - - if (this.snapshot) { - this.snapshot.addAll(records); - } - - this.fireEvent('add', this, records, index); - }, - - - addSorted : function(record){ - var index = this.findInsertIndex(record); - this.insert(index, record); - }, - - - doUpdate: function(rec){ - var id = rec.id; - - this.getById(id).join(null); - - this.data.replace(id, rec); - if (this.snapshot) { - this.snapshot.replace(id, rec); - } - rec.join(this); - this.fireEvent('update', this, rec, Ext.data.Record.COMMIT); - }, - - - remove : function(record){ - if(Ext.isArray(record)){ - Ext.each(record, function(r){ - this.remove(r); - }, this); - return; - } - var index = this.data.indexOf(record); - if(index > -1){ - record.join(null); - this.data.removeAt(index); - } - if(this.pruneModifiedRecords){ - this.modified.remove(record); - } - if(this.snapshot){ - this.snapshot.remove(record); - } - if(index > -1){ - this.fireEvent('remove', this, record, index); - } - }, - - - removeAt : function(index){ - this.remove(this.getAt(index)); - }, - - - removeAll : function(silent){ - var items = []; - this.each(function(rec){ - items.push(rec); - }); - this.clearData(); - if(this.snapshot){ - this.snapshot.clear(); - } - if(this.pruneModifiedRecords){ - this.modified = []; - } - if (silent !== true) { - this.fireEvent('clear', this, items); - } - }, - - - onClear: function(store, records){ - Ext.each(records, function(rec, index){ - this.destroyRecord(this, rec, index); - }, this); - }, - - - insert : function(index, records) { - var i, len, record; - - records = [].concat(records); - for (i = 0, len = records.length; i < len; i++) { - record = records[i]; - - this.data.insert(index + i, record); - record.join(this); - - if (record.dirty || record.phantom) { - this.modified.push(record); - } - } - - if (this.snapshot) { - this.snapshot.addAll(records); - } - - this.fireEvent('add', this, records, index); - }, - - - indexOf : function(record){ - return this.data.indexOf(record); - }, - - - indexOfId : function(id){ - return this.data.indexOfKey(id); - }, - - - getById : function(id){ - return (this.snapshot || this.data).key(id); - }, - - - getAt : function(index){ - return this.data.itemAt(index); - }, - - - getRange : function(start, end){ - return this.data.getRange(start, end); - }, - - - storeOptions : function(o){ - o = Ext.apply({}, o); - delete o.callback; - delete o.scope; - this.lastOptions = o; - }, - - - clearData: function(){ - this.data.each(function(rec) { - rec.join(null); - }); - this.data.clear(); - }, - - - load : function(options) { - options = Ext.apply({}, options); - this.storeOptions(options); - if(this.sortInfo && this.remoteSort){ - var pn = this.paramNames; - options.params = Ext.apply({}, options.params); - options.params[pn.sort] = this.sortInfo.field; - options.params[pn.dir] = this.sortInfo.direction; - } - try { - return this.execute('read', null, options); - } catch(e) { - this.handleException(e); - return false; - } - }, - - - updateRecord : function(store, record, action) { - if (action == Ext.data.Record.EDIT && this.autoSave === true && (!record.phantom || (record.phantom && record.isValid()))) { - this.save(); - } - }, - - - createRecords : function(store, records, index) { - var modified = this.modified, - length = records.length, - record, i; - - for (i = 0; i < length; i++) { - record = records[i]; - - if (record.phantom && record.isValid()) { - record.markDirty(); - - if (modified.indexOf(record) == -1) { - modified.push(record); - } - } - } - if (this.autoSave === true) { - this.save(); - } - }, - - - destroyRecord : function(store, record, index) { - if (this.modified.indexOf(record) != -1) { - this.modified.remove(record); - } - if (!record.phantom) { - this.removed.push(record); - - - - - record.lastIndex = index; - - if (this.autoSave === true) { - this.save(); - } - } - }, - - - execute : function(action, rs, options, batch) { - - if (!Ext.data.Api.isAction(action)) { - throw new Ext.data.Api.Error('execute', action); - } - - options = Ext.applyIf(options||{}, { - params: {} - }); - if(batch !== undefined){ - this.addToBatch(batch); - } - - - var doRequest = true; - - if (action === 'read') { - doRequest = this.fireEvent('beforeload', this, options); - Ext.applyIf(options.params, this.baseParams); - } - else { - - - if (this.writer.listful === true && this.restful !== true) { - rs = (Ext.isArray(rs)) ? rs : [rs]; - } - - else if (Ext.isArray(rs) && rs.length == 1) { - rs = rs.shift(); - } - - if ((doRequest = this.fireEvent('beforewrite', this, action, rs, options)) !== false) { - this.writer.apply(options.params, this.baseParams, action, rs); - } - } - if (doRequest !== false) { - - if (this.writer && this.proxy.url && !this.proxy.restful && !Ext.data.Api.hasUniqueUrl(this.proxy, action)) { - options.params.xaction = action; - } - - - - - - this.proxy.request(Ext.data.Api.actions[action], rs, options.params, this.reader, this.createCallback(action, rs, batch), this, options); - } - return doRequest; - }, - - - save : function() { - if (!this.writer) { - throw new Ext.data.Store.Error('writer-undefined'); - } - - var queue = [], - len, - trans, - batch, - data = {}, - i; - - if(this.removed.length){ - queue.push(['destroy', this.removed]); - } - - - var rs = [].concat(this.getModifiedRecords()); - if(rs.length){ - - var phantoms = []; - for(i = rs.length-1; i >= 0; i--){ - if(rs[i].phantom === true){ - var rec = rs.splice(i, 1).shift(); - if(rec.isValid()){ - phantoms.push(rec); - } - }else if(!rs[i].isValid()){ - rs.splice(i,1); - } - } - - if(phantoms.length){ - queue.push(['create', phantoms]); - } - - - if(rs.length){ - queue.push(['update', rs]); - } - } - len = queue.length; - if(len){ - batch = ++this.batchCounter; - for(i = 0; i < len; ++i){ - trans = queue[i]; - data[trans[0]] = trans[1]; - } - if(this.fireEvent('beforesave', this, data) !== false){ - for(i = 0; i < len; ++i){ - trans = queue[i]; - this.doTransaction(trans[0], trans[1], batch); - } - return batch; - } - } - return -1; - }, - - - doTransaction : function(action, rs, batch) { - function transaction(records) { - try{ - this.execute(action, records, undefined, batch); - }catch (e){ - this.handleException(e); - } - } - if(this.batch === false){ - for(var i = 0, len = rs.length; i < len; i++){ - transaction.call(this, rs[i]); - } - }else{ - transaction.call(this, rs); - } - }, - - - addToBatch : function(batch){ - var b = this.batches, - key = this.batchKey + batch, - o = b[key]; - - if(!o){ - b[key] = o = { - id: batch, - count: 0, - data: {} - }; - } - ++o.count; - }, - - removeFromBatch : function(batch, action, data){ - var b = this.batches, - key = this.batchKey + batch, - o = b[key], - arr; - - - if(o){ - arr = o.data[action] || []; - o.data[action] = arr.concat(data); - if(o.count === 1){ - data = o.data; - delete b[key]; - this.fireEvent('save', this, batch, data); - }else{ - --o.count; - } - } - }, - - - - createCallback : function(action, rs, batch) { - var actions = Ext.data.Api.actions; - return (action == 'read') ? this.loadRecords : function(data, response, success) { - - this['on' + Ext.util.Format.capitalize(action) + 'Records'](success, rs, [].concat(data)); - - if (success === true) { - this.fireEvent('write', this, action, data, response, rs); - } - this.removeFromBatch(batch, action, data); - }; - }, - - - - - clearModified : function(rs) { - if (Ext.isArray(rs)) { - for (var n=rs.length-1;n>=0;n--) { - this.modified.splice(this.modified.indexOf(rs[n]), 1); - } - } else { - this.modified.splice(this.modified.indexOf(rs), 1); - } - }, - - - reMap : function(record) { - if (Ext.isArray(record)) { - for (var i = 0, len = record.length; i < len; i++) { - this.reMap(record[i]); - } - } else { - delete this.data.map[record._phid]; - this.data.map[record.id] = record; - var index = this.data.keys.indexOf(record._phid); - this.data.keys.splice(index, 1, record.id); - delete record._phid; - } - }, - - - onCreateRecords : function(success, rs, data) { - if (success === true) { - try { - this.reader.realize(rs, data); - } - catch (e) { - this.handleException(e); - if (Ext.isArray(rs)) { - - this.onCreateRecords(success, rs, data); - } - } - } - }, - - - onUpdateRecords : function(success, rs, data) { - if (success === true) { - try { - this.reader.update(rs, data); - } catch (e) { - this.handleException(e); - if (Ext.isArray(rs)) { - - this.onUpdateRecords(success, rs, data); - } - } - } - }, - - - onDestroyRecords : function(success, rs, data) { - - rs = (rs instanceof Ext.data.Record) ? [rs] : [].concat(rs); - for (var i=0,len=rs.length;i=0;i--) { - this.insert(rs[i].lastIndex, rs[i]); - } - } - }, - - - handleException : function(e) { - - Ext.handleError(e); - }, - - - reload : function(options){ - this.load(Ext.applyIf(options||{}, this.lastOptions)); - }, - - - - loadRecords : function(o, options, success){ - var i, len; - - if (this.isDestroyed === true) { - return; - } - if(!o || success === false){ - if(success !== false){ - this.fireEvent('load', this, [], options); - } - if(options.callback){ - options.callback.call(options.scope || this, [], options, false, o); - } - return; - } - var r = o.records, t = o.totalRecords || r.length; - if(!options || options.add !== true){ - if(this.pruneModifiedRecords){ - this.modified = []; - } - for(i = 0, len = r.length; i < len; i++){ - r[i].join(this); - } - if(this.snapshot){ - this.data = this.snapshot; - delete this.snapshot; - } - this.clearData(); - this.data.addAll(r); - this.totalLength = t; - this.applySort(); - this.fireEvent('datachanged', this); - }else{ - var toAdd = [], - rec, - cnt = 0; - for(i = 0, len = r.length; i < len; ++i){ - rec = r[i]; - if(this.indexOfId(rec.id) > -1){ - this.doUpdate(rec); - }else{ - toAdd.push(rec); - ++cnt; - } - } - this.totalLength = Math.max(t, this.data.length + cnt); - this.add(toAdd); - } - this.fireEvent('load', this, r, options); - if(options.callback){ - options.callback.call(options.scope || this, r, options, true); - } - }, - - - loadData : function(o, append){ - var r = this.reader.readRecords(o); - this.loadRecords(r, {add: append}, true); - }, - - - getCount : function(){ - return this.data.length || 0; - }, - - - getTotalCount : function(){ - return this.totalLength || 0; - }, - - - getSortState : function(){ - return this.sortInfo; - }, - - - applySort : function(){ - if ((this.sortInfo || this.multiSortInfo) && !this.remoteSort) { - this.sortData(); - } - }, - - - sortData : function() { - var sortInfo = this.hasMultiSort ? this.multiSortInfo : this.sortInfo, - direction = sortInfo.direction || "ASC", - sorters = sortInfo.sorters, - sortFns = []; - - - if (!this.hasMultiSort) { - sorters = [{direction: direction, field: sortInfo.field}]; - } - - - for (var i=0, j = sorters.length; i < j; i++) { - sortFns.push(this.createSortFunction(sorters[i].field, sorters[i].direction)); - } - - if (sortFns.length == 0) { - return; - } - - - - var directionModifier = direction.toUpperCase() == "DESC" ? -1 : 1; - - - var fn = function(r1, r2) { - var result = sortFns[0].call(this, r1, r2); - - - if (sortFns.length > 1) { - for (var i=1, j = sortFns.length; i < j; i++) { - result = result || sortFns[i].call(this, r1, r2); - } - } - - return directionModifier * result; - }; - - - this.data.sort(direction, fn); - if (this.snapshot && this.snapshot != this.data) { - this.snapshot.sort(direction, fn); - } - }, - - - createSortFunction: function(field, direction) { - direction = direction || "ASC"; - var directionModifier = direction.toUpperCase() == "DESC" ? -1 : 1; - - var sortType = this.fields.get(field).sortType; - - - - return function(r1, r2) { - var v1 = sortType(r1.data[field]), - v2 = sortType(r2.data[field]); - - return directionModifier * (v1 > v2 ? 1 : (v1 < v2 ? -1 : 0)); - }; - }, - - - setDefaultSort : function(field, dir) { - dir = dir ? dir.toUpperCase() : 'ASC'; - this.sortInfo = {field: field, direction: dir}; - this.sortToggle[field] = dir; - }, - - - sort : function(fieldName, dir) { - if (Ext.isArray(arguments[0])) { - return this.multiSort.call(this, fieldName, dir); - } else { - return this.singleSort(fieldName, dir); - } - }, - - - singleSort: function(fieldName, dir) { - var field = this.fields.get(fieldName); - if (!field) { - return false; - } - - var name = field.name, - sortInfo = this.sortInfo || null, - sortToggle = this.sortToggle ? this.sortToggle[name] : null; - - if (!dir) { - if (sortInfo && sortInfo.field == name) { - dir = (this.sortToggle[name] || 'ASC').toggle('ASC', 'DESC'); - } else { - dir = field.sortDir; - } - } - - this.sortToggle[name] = dir; - this.sortInfo = {field: name, direction: dir}; - this.hasMultiSort = false; - - if (this.remoteSort) { - if (!this.load(this.lastOptions)) { - if (sortToggle) { - this.sortToggle[name] = sortToggle; - } - if (sortInfo) { - this.sortInfo = sortInfo; - } - } - } else { - this.applySort(); - this.fireEvent('datachanged', this); - } - return true; - }, - - - multiSort: function(sorters, direction) { - this.hasMultiSort = true; - direction = direction || "ASC"; - - - if (this.multiSortInfo && direction == this.multiSortInfo.direction) { - direction = direction.toggle("ASC", "DESC"); - } - - - this.multiSortInfo = { - sorters : sorters, - direction: direction - }; - - if (this.remoteSort) { - this.singleSort(sorters[0].field, sorters[0].direction); - - } else { - this.applySort(); - this.fireEvent('datachanged', this); - } - }, - - - each : function(fn, scope){ - this.data.each(fn, scope); - }, - - - getModifiedRecords : function(){ - return this.modified; - }, - - - sum : function(property, start, end){ - var rs = this.data.items, v = 0; - start = start || 0; - end = (end || end === 0) ? end : rs.length-1; - - for(var i = start; i <= end; i++){ - v += (rs[i].data[property] || 0); - } - return v; - }, - - - createFilterFn : function(property, value, anyMatch, caseSensitive, exactMatch){ - if(Ext.isEmpty(value, false)){ - return false; - } - value = this.data.createValueMatcher(value, anyMatch, caseSensitive, exactMatch); - return function(r) { - return value.test(r.data[property]); - }; - }, - - - createMultipleFilterFn: function(filters) { - return function(record) { - var isMatch = true; - - for (var i=0, j = filters.length; i < j; i++) { - var filter = filters[i], - fn = filter.fn, - scope = filter.scope; - - isMatch = isMatch && fn.call(scope, record); - } - - return isMatch; - }; - }, - - - filter : function(property, value, anyMatch, caseSensitive, exactMatch){ - var fn; - - if (Ext.isObject(property)) { - property = [property]; - } - - if (Ext.isArray(property)) { - var filters = []; - - - for (var i=0, j = property.length; i < j; i++) { - var filter = property[i], - func = filter.fn, - scope = filter.scope || this; - - - if (!Ext.isFunction(func)) { - func = this.createFilterFn(filter.property, filter.value, filter.anyMatch, filter.caseSensitive, filter.exactMatch); - } - - filters.push({fn: func, scope: scope}); - } - - fn = this.createMultipleFilterFn(filters); - } else { - - fn = this.createFilterFn(property, value, anyMatch, caseSensitive, exactMatch); - } - - return fn ? this.filterBy(fn) : this.clearFilter(); - }, - - - filterBy : function(fn, scope){ - this.snapshot = this.snapshot || this.data; - this.data = this.queryBy(fn, scope || this); - this.fireEvent('datachanged', this); - }, - - - clearFilter : function(suppressEvent){ - if(this.isFiltered()){ - this.data = this.snapshot; - delete this.snapshot; - if(suppressEvent !== true){ - this.fireEvent('datachanged', this); - } - } - }, - - - isFiltered : function(){ - return !!this.snapshot && this.snapshot != this.data; - }, - - - query : function(property, value, anyMatch, caseSensitive){ - var fn = this.createFilterFn(property, value, anyMatch, caseSensitive); - return fn ? this.queryBy(fn) : this.data.clone(); - }, - - - queryBy : function(fn, scope){ - var data = this.snapshot || this.data; - return data.filterBy(fn, scope||this); - }, - - - find : function(property, value, start, anyMatch, caseSensitive){ - var fn = this.createFilterFn(property, value, anyMatch, caseSensitive); - return fn ? this.data.findIndexBy(fn, null, start) : -1; - }, - - - findExact: function(property, value, start){ - return this.data.findIndexBy(function(rec){ - return rec.get(property) === value; - }, this, start); - }, - - - findBy : function(fn, scope, start){ - return this.data.findIndexBy(fn, scope, start); - }, - - - collect : function(dataIndex, allowNull, bypassFilter){ - var d = (bypassFilter === true && this.snapshot) ? - this.snapshot.items : this.data.items; - var v, sv, r = [], l = {}; - for(var i = 0, len = d.length; i < len; i++){ - v = d[i].data[dataIndex]; - sv = String(v); - if((allowNull || !Ext.isEmpty(v)) && !l[sv]){ - l[sv] = true; - r[r.length] = v; - } - } - return r; - }, - - - afterEdit : function(record){ - if(this.modified.indexOf(record) == -1){ - this.modified.push(record); - } - this.fireEvent('update', this, record, Ext.data.Record.EDIT); - }, - - - afterReject : function(record){ - this.modified.remove(record); - this.fireEvent('update', this, record, Ext.data.Record.REJECT); - }, - - - afterCommit : function(record){ - this.modified.remove(record); - this.fireEvent('update', this, record, Ext.data.Record.COMMIT); - }, - - - commitChanges : function(){ - var modified = this.modified.slice(0), - length = modified.length, - i; - - for (i = 0; i < length; i++){ - modified[i].commit(); - } - - this.modified = []; - this.removed = []; - }, - - - rejectChanges : function() { - var modified = this.modified.slice(0), - removed = this.removed.slice(0).reverse(), - mLength = modified.length, - rLength = removed.length, - i; - - for (i = 0; i < mLength; i++) { - modified[i].reject(); - } - - for (i = 0; i < rLength; i++) { - this.insert(removed[i].lastIndex || 0, removed[i]); - removed[i].reject(); - } - - this.modified = []; - this.removed = []; - }, - - - onMetaChange : function(meta){ - this.recordType = this.reader.recordType; - this.fields = this.recordType.prototype.fields; - delete this.snapshot; - if(this.reader.meta.sortInfo){ - this.sortInfo = this.reader.meta.sortInfo; - }else if(this.sortInfo && !this.fields.get(this.sortInfo.field)){ - delete this.sortInfo; - } - if(this.writer){ - this.writer.meta = this.reader.meta; - } - this.modified = []; - this.fireEvent('metachange', this, this.reader.meta); - }, - - - findInsertIndex : function(record){ - this.suspendEvents(); - var data = this.data.clone(); - this.data.add(record); - this.applySort(); - var index = this.data.indexOf(record); - this.data = data; - this.resumeEvents(); - return index; - }, - - - setBaseParam : function (name, value){ - this.baseParams = this.baseParams || {}; - this.baseParams[name] = value; - } -}); - -Ext.reg('store', Ext.data.Store); - - -Ext.data.Store.Error = Ext.extend(Ext.Error, { - name: 'Ext.data.Store' -}); -Ext.apply(Ext.data.Store.Error.prototype, { - lang: { - 'writer-undefined' : 'Attempted to execute a write-action without a DataWriter installed.' - } -}); - -Ext.data.Field = Ext.extend(Object, { - - constructor : function(config){ - if(Ext.isString(config)){ - config = {name: config}; - } - Ext.apply(this, config); - - var types = Ext.data.Types, - st = this.sortType, - t; - - if(this.type){ - if(Ext.isString(this.type)){ - this.type = Ext.data.Types[this.type.toUpperCase()] || types.AUTO; - } - }else{ - this.type = types.AUTO; - } - - - if(Ext.isString(st)){ - this.sortType = Ext.data.SortTypes[st]; - }else if(Ext.isEmpty(st)){ - this.sortType = this.type.sortType; - } - - if(!this.convert){ - this.convert = this.type.convert; - } - }, - - - - - - dateFormat: null, - - - useNull: false, - - - defaultValue: "", - - mapping: null, - - sortType : null, - - sortDir : "ASC", - - allowBlank : true -}); - -Ext.data.DataReader = function(meta, recordType){ - - this.meta = meta; - - this.recordType = Ext.isArray(recordType) ? - Ext.data.Record.create(recordType) : recordType; - - - if (this.recordType){ - this.buildExtractors(); - } -}; - -Ext.data.DataReader.prototype = { - - - getTotal: Ext.emptyFn, - - getRoot: Ext.emptyFn, - - getMessage: Ext.emptyFn, - - getSuccess: Ext.emptyFn, - - getId: Ext.emptyFn, - - buildExtractors : Ext.emptyFn, - - extractValues : Ext.emptyFn, - - - realize: function(rs, data){ - if (Ext.isArray(rs)) { - for (var i = rs.length - 1; i >= 0; i--) { - - if (Ext.isArray(data)) { - this.realize(rs.splice(i,1).shift(), data.splice(i,1).shift()); - } - else { - - - this.realize(rs.splice(i,1).shift(), data); - } - } - } - else { - - if (Ext.isArray(data) && data.length == 1) { - data = data.shift(); - } - if (!this.isData(data)) { - - - throw new Ext.data.DataReader.Error('realize', rs); - } - rs.phantom = false; - rs._phid = rs.id; - rs.id = this.getId(data); - rs.data = data; - - rs.commit(); - rs.store.reMap(rs); - } - }, - - - update : function(rs, data) { - if (Ext.isArray(rs)) { - for (var i=rs.length-1; i >= 0; i--) { - if (Ext.isArray(data)) { - this.update(rs.splice(i,1).shift(), data.splice(i,1).shift()); - } - else { - - - this.update(rs.splice(i,1).shift(), data); - } - } - } - else { - - if (Ext.isArray(data) && data.length == 1) { - data = data.shift(); - } - if (this.isData(data)) { - rs.data = Ext.apply(rs.data, data); - } - rs.commit(); - } - }, - - - extractData : function(root, returnRecords) { - - var rawName = (this instanceof Ext.data.JsonReader) ? 'json' : 'node'; - - var rs = []; - - - - if (this.isData(root) && !(this instanceof Ext.data.XmlReader)) { - root = [root]; - } - var f = this.recordType.prototype.fields, - fi = f.items, - fl = f.length, - rs = []; - if (returnRecords === true) { - var Record = this.recordType; - for (var i = 0; i < root.length; i++) { - var n = root[i]; - var record = new Record(this.extractValues(n, fi, fl), this.getId(n)); - record[rawName] = n; - rs.push(record); - } - } - else { - for (var i = 0; i < root.length; i++) { - var data = this.extractValues(root[i], fi, fl); - data[this.meta.idProperty] = this.getId(root[i]); - rs.push(data); - } - } - return rs; - }, - - - isData : function(data) { - return (data && Ext.isObject(data) && !Ext.isEmpty(this.getId(data))) ? true : false; - }, - - - onMetaChange : function(meta){ - delete this.ef; - this.meta = meta; - this.recordType = Ext.data.Record.create(meta.fields); - this.buildExtractors(); - } -}; - - -Ext.data.DataReader.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.DataReader' -}); -Ext.apply(Ext.data.DataReader.Error.prototype, { - lang : { - 'update': "#update received invalid data from server. Please see docs for DataReader#update and review your DataReader configuration.", - 'realize': "#realize was called with invalid remote-data. Please see the docs for DataReader#realize and review your DataReader configuration.", - 'invalid-response': "#readResponse received an invalid response from the server." - } -}); - -Ext.data.DataWriter = function(config){ - Ext.apply(this, config); -}; -Ext.data.DataWriter.prototype = { - - - writeAllFields : false, - - listful : false, - - - apply : function(params, baseParams, action, rs) { - var data = [], - renderer = action + 'Record'; - - if (Ext.isArray(rs)) { - Ext.each(rs, function(rec){ - data.push(this[renderer](rec)); - }, this); - } - else if (rs instanceof Ext.data.Record) { - data = this[renderer](rs); - } - this.render(params, baseParams, data); - }, - - - render : Ext.emptyFn, - - - updateRecord : Ext.emptyFn, - - - createRecord : Ext.emptyFn, - - - destroyRecord : Ext.emptyFn, - - - toHash : function(rec, config) { - var map = rec.fields.map, - data = {}, - raw = (this.writeAllFields === false && rec.phantom === false) ? rec.getChanges() : rec.data, - m; - Ext.iterate(raw, function(prop, value){ - if((m = map[prop])){ - data[m.mapping ? m.mapping : m.name] = value; - } - }); - - - - if (rec.phantom) { - if (rec.fields.containsKey(this.meta.idProperty) && Ext.isEmpty(rec.data[this.meta.idProperty])) { - delete data[this.meta.idProperty]; - } - } else { - data[this.meta.idProperty] = rec.id; - } - return data; - }, - - - toArray : function(data) { - var fields = []; - Ext.iterate(data, function(k, v) {fields.push({name: k, value: v});},this); - return fields; - } -}; -Ext.data.DataProxy = function(conn){ - - - conn = conn || {}; - - - - - - this.api = conn.api; - this.url = conn.url; - this.restful = conn.restful; - this.listeners = conn.listeners; - - - this.prettyUrls = conn.prettyUrls; - - - - this.addEvents( - - 'exception', - - 'beforeload', - - 'load', - - 'loadexception', - - 'beforewrite', - - 'write' - ); - Ext.data.DataProxy.superclass.constructor.call(this); - - - try { - Ext.data.Api.prepare(this); - } catch (e) { - if (e instanceof Ext.data.Api.Error) { - e.toConsole(); - } - } - - Ext.data.DataProxy.relayEvents(this, ['beforewrite', 'write', 'exception']); -}; - -Ext.extend(Ext.data.DataProxy, Ext.util.Observable, { - - restful: false, - - - setApi : function() { - if (arguments.length == 1) { - var valid = Ext.data.Api.isValid(arguments[0]); - if (valid === true) { - this.api = arguments[0]; - } - else { - throw new Ext.data.Api.Error('invalid', valid); - } - } - else if (arguments.length == 2) { - if (!Ext.data.Api.isAction(arguments[0])) { - throw new Ext.data.Api.Error('invalid', arguments[0]); - } - this.api[arguments[0]] = arguments[1]; - } - Ext.data.Api.prepare(this); - }, - - - isApiAction : function(action) { - return (this.api[action]) ? true : false; - }, - - - request : function(action, rs, params, reader, callback, scope, options) { - if (!this.api[action] && !this.load) { - throw new Ext.data.DataProxy.Error('action-undefined', action); - } - params = params || {}; - if ((action === Ext.data.Api.actions.read) ? this.fireEvent("beforeload", this, params) : this.fireEvent("beforewrite", this, action, rs, params) !== false) { - this.doRequest.apply(this, arguments); - } - else { - callback.call(scope || this, null, options, false); - } - }, - - - - load : null, - - - doRequest : function(action, rs, params, reader, callback, scope, options) { - - - - this.load(params, reader, callback, scope, options); - }, - - - onRead : Ext.emptyFn, - - onWrite : Ext.emptyFn, - - buildUrl : function(action, record) { - record = record || null; - - - - - var url = (this.conn && this.conn.url) ? this.conn.url : (this.api[action]) ? this.api[action].url : this.url; - if (!url) { - throw new Ext.data.Api.Error('invalid-url', action); - } - - - - - - - - var provides = null; - var m = url.match(/(.*)(\.json|\.xml|\.html)$/); - if (m) { - provides = m[2]; - url = m[1]; - } - - if ((this.restful === true || this.prettyUrls === true) && record instanceof Ext.data.Record && !record.phantom) { - url += '/' + record.id; - } - return (provides === null) ? url : url + provides; - }, - - - destroy: function(){ - this.purgeListeners(); - } -}); - - - -Ext.apply(Ext.data.DataProxy, Ext.util.Observable.prototype); -Ext.util.Observable.call(Ext.data.DataProxy); - - -Ext.data.DataProxy.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name: 'Ext.data.DataProxy' -}); -Ext.apply(Ext.data.DataProxy.Error.prototype, { - lang: { - 'action-undefined': "DataProxy attempted to execute an API-action but found an undefined url / function. Please review your Proxy url/api-configuration.", - 'api-invalid': 'Recieved an invalid API-configuration. Please ensure your proxy API-configuration contains only the actions from Ext.data.Api.actions.' - } -}); - - - -Ext.data.Request = function(params) { - Ext.apply(this, params); -}; -Ext.data.Request.prototype = { - - action : undefined, - - rs : undefined, - - params: undefined, - - callback : Ext.emptyFn, - - scope : undefined, - - reader : undefined -}; - -Ext.data.Response = function(params) { - Ext.apply(this, params); -}; -Ext.data.Response.prototype = { - - action: undefined, - - success : undefined, - - message : undefined, - - data: undefined, - - raw: undefined, - - records: undefined -}; - -Ext.data.ScriptTagProxy = function(config){ - Ext.apply(this, config); - - Ext.data.ScriptTagProxy.superclass.constructor.call(this, config); - - this.head = document.getElementsByTagName("head")[0]; - - -}; - -Ext.data.ScriptTagProxy.TRANS_ID = 1000; - -Ext.extend(Ext.data.ScriptTagProxy, Ext.data.DataProxy, { - - - timeout : 30000, - - callbackParam : "callback", - - nocache : true, - - - doRequest : function(action, rs, params, reader, callback, scope, arg) { - var p = Ext.urlEncode(Ext.apply(params, this.extraParams)); - - var url = this.buildUrl(action, rs); - if (!url) { - throw new Ext.data.Api.Error('invalid-url', url); - } - url = Ext.urlAppend(url, p); - - if(this.nocache){ - url = Ext.urlAppend(url, '_dc=' + (new Date().getTime())); - } - var transId = ++Ext.data.ScriptTagProxy.TRANS_ID; - var trans = { - id : transId, - action: action, - cb : "stcCallback"+transId, - scriptId : "stcScript"+transId, - params : params, - arg : arg, - url : url, - callback : callback, - scope : scope, - reader : reader - }; - window[trans.cb] = this.createCallback(action, rs, trans); - url += String.format("&{0}={1}", this.callbackParam, trans.cb); - if(this.autoAbort !== false){ - this.abort(); - } - - trans.timeoutId = this.handleFailure.defer(this.timeout, this, [trans]); - - var script = document.createElement("script"); - script.setAttribute("src", url); - script.setAttribute("type", "text/javascript"); - script.setAttribute("id", trans.scriptId); - this.head.appendChild(script); - - this.trans = trans; - }, - - - createCallback : function(action, rs, trans) { - var self = this; - return function(res) { - self.trans = false; - self.destroyTrans(trans, true); - if (action === Ext.data.Api.actions.read) { - self.onRead.call(self, action, trans, res); - } else { - self.onWrite.call(self, action, trans, res, rs); - } - }; - }, - - onRead : function(action, trans, res) { - var result; - try { - result = trans.reader.readRecords(res); - }catch(e){ - - this.fireEvent("loadexception", this, trans, res, e); - - this.fireEvent('exception', this, 'response', action, trans, res, e); - trans.callback.call(trans.scope||window, null, trans.arg, false); - return; - } - if (result.success === false) { - - this.fireEvent('loadexception', this, trans, res); - - this.fireEvent('exception', this, 'remote', action, trans, res, null); - } else { - this.fireEvent("load", this, res, trans.arg); - } - trans.callback.call(trans.scope||window, result, trans.arg, result.success); - }, - - onWrite : function(action, trans, response, rs) { - var reader = trans.reader; - try { - - var res = reader.readResponse(action, response); - } catch (e) { - this.fireEvent('exception', this, 'response', action, trans, res, e); - trans.callback.call(trans.scope||window, null, res, false); - return; - } - if(!res.success === true){ - this.fireEvent('exception', this, 'remote', action, trans, res, rs); - trans.callback.call(trans.scope||window, null, res, false); - return; - } - this.fireEvent("write", this, action, res.data, res, rs, trans.arg ); - trans.callback.call(trans.scope||window, res.data, res, true); - }, - - - isLoading : function(){ - return this.trans ? true : false; - }, - - - abort : function(){ - if(this.isLoading()){ - this.destroyTrans(this.trans); - } - }, - - - destroyTrans : function(trans, isLoaded){ - this.head.removeChild(document.getElementById(trans.scriptId)); - clearTimeout(trans.timeoutId); - if(isLoaded){ - window[trans.cb] = undefined; - try{ - delete window[trans.cb]; - }catch(e){} - }else{ - - window[trans.cb] = function(){ - window[trans.cb] = undefined; - try{ - delete window[trans.cb]; - }catch(e){} - }; - } - }, - - - handleFailure : function(trans){ - this.trans = false; - this.destroyTrans(trans, false); - if (trans.action === Ext.data.Api.actions.read) { - - this.fireEvent("loadexception", this, null, trans.arg); - } - - this.fireEvent('exception', this, 'response', trans.action, { - response: null, - options: trans.arg - }); - trans.callback.call(trans.scope||window, null, trans.arg, false); - }, - - - destroy: function(){ - this.abort(); - Ext.data.ScriptTagProxy.superclass.destroy.call(this); - } -}); -Ext.data.HttpProxy = function(conn){ - Ext.data.HttpProxy.superclass.constructor.call(this, conn); - - - this.conn = conn; - - - - - - this.conn.url = null; - - this.useAjax = !conn || !conn.events; - - - var actions = Ext.data.Api.actions; - this.activeRequest = {}; - for (var verb in actions) { - this.activeRequest[actions[verb]] = undefined; - } -}; - -Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, { - - getConnection : function() { - return this.useAjax ? Ext.Ajax : this.conn; - }, - - - setUrl : function(url, makePermanent) { - this.conn.url = url; - if (makePermanent === true) { - this.url = url; - this.api = null; - Ext.data.Api.prepare(this); - } - }, - - - doRequest : function(action, rs, params, reader, cb, scope, arg) { - var o = { - method: (this.api[action]) ? this.api[action]['method'] : undefined, - request: { - callback : cb, - scope : scope, - arg : arg - }, - reader: reader, - callback : this.createCallback(action, rs), - scope: this - }; - - - - if (params.jsonData) { - o.jsonData = params.jsonData; - } else if (params.xmlData) { - o.xmlData = params.xmlData; - } else { - o.params = params || {}; - } - - - - this.conn.url = this.buildUrl(action, rs); - - if(this.useAjax){ - - Ext.applyIf(o, this.conn); - - - if (this.activeRequest[action]) { - - - - - - } - this.activeRequest[action] = Ext.Ajax.request(o); - }else{ - this.conn.request(o); - } - - this.conn.url = null; - }, - - - createCallback : function(action, rs) { - return function(o, success, response) { - this.activeRequest[action] = undefined; - if (!success) { - if (action === Ext.data.Api.actions.read) { - - - this.fireEvent('loadexception', this, o, response); - } - this.fireEvent('exception', this, 'response', action, o, response); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (action === Ext.data.Api.actions.read) { - this.onRead(action, o, response); - } else { - this.onWrite(action, o, response, rs); - } - }; - }, - - - onRead : function(action, o, response) { - var result; - try { - result = o.reader.read(response); - }catch(e){ - - - this.fireEvent('loadexception', this, o, response, e); - - this.fireEvent('exception', this, 'response', action, o, response, e); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (result.success === false) { - - - this.fireEvent('loadexception', this, o, response); - - - var res = o.reader.readResponse(action, response); - this.fireEvent('exception', this, 'remote', action, o, res, null); - } - else { - this.fireEvent('load', this, o, o.request.arg); - } - - - - o.request.callback.call(o.request.scope, result, o.request.arg, result.success); - }, - - onWrite : function(action, o, response, rs) { - var reader = o.reader; - var res; - try { - res = reader.readResponse(action, response); - } catch (e) { - this.fireEvent('exception', this, 'response', action, o, response, e); - o.request.callback.call(o.request.scope, null, o.request.arg, false); - return; - } - if (res.success === true) { - this.fireEvent('write', this, action, res.data, res, rs, o.request.arg); - } else { - this.fireEvent('exception', this, 'remote', action, o, res, rs); - } - - - - o.request.callback.call(o.request.scope, res.data, res, res.success); - }, - - - destroy: function(){ - if(!this.useAjax){ - this.conn.abort(); - }else if(this.activeRequest){ - var actions = Ext.data.Api.actions; - for (var verb in actions) { - if(this.activeRequest[actions[verb]]){ - Ext.Ajax.abort(this.activeRequest[actions[verb]]); - } - } - } - Ext.data.HttpProxy.superclass.destroy.call(this); - } -}); -Ext.data.MemoryProxy = function(data){ - - var api = {}; - api[Ext.data.Api.actions.read] = true; - Ext.data.MemoryProxy.superclass.constructor.call(this, { - api: api - }); - this.data = data; -}; - -Ext.extend(Ext.data.MemoryProxy, Ext.data.DataProxy, { - - - - doRequest : function(action, rs, params, reader, callback, scope, arg) { - - params = params || {}; - var result; - try { - result = reader.readRecords(this.data); - }catch(e){ - - this.fireEvent("loadexception", this, null, arg, e); - - this.fireEvent('exception', this, 'response', action, arg, null, e); - callback.call(scope, null, arg, false); - return; - } - callback.call(scope, result, arg, true); - } -}); -Ext.data.Types = new function(){ - var st = Ext.data.SortTypes; - Ext.apply(this, { - - stripRe: /[\$,%]/g, - - - AUTO: { - convert: function(v){ return v; }, - sortType: st.none, - type: 'auto' - }, - - - STRING: { - convert: function(v){ return (v === undefined || v === null) ? '' : String(v); }, - sortType: st.asUCString, - type: 'string' - }, - - - INT: { - convert: function(v){ - return v !== undefined && v !== null && v !== '' ? - parseInt(String(v).replace(Ext.data.Types.stripRe, ''), 10) : (this.useNull ? null : 0); - }, - sortType: st.none, - type: 'int' - }, - - - FLOAT: { - convert: function(v){ - return v !== undefined && v !== null && v !== '' ? - parseFloat(String(v).replace(Ext.data.Types.stripRe, ''), 10) : (this.useNull ? null : 0); - }, - sortType: st.none, - type: 'float' - }, - - - BOOL: { - convert: function(v){ return v === true || v === 'true' || v == 1; }, - sortType: st.none, - type: 'bool' - }, - - - DATE: { - convert: function(v){ - var df = this.dateFormat; - if(!v){ - return null; - } - if(Ext.isDate(v)){ - return v; - } - if(df){ - if(df == 'timestamp'){ - return new Date(v*1000); - } - if(df == 'time'){ - return new Date(parseInt(v, 10)); - } - return Date.parseDate(v, df); - } - var parsed = Date.parse(v); - return parsed ? new Date(parsed) : null; - }, - sortType: st.asDate, - type: 'date' - } - }); - - Ext.apply(this, { - - BOOLEAN: this.BOOL, - - INTEGER: this.INT, - - NUMBER: this.FLOAT - }); -}; -Ext.data.JsonWriter = Ext.extend(Ext.data.DataWriter, { - - encode : true, - - encodeDelete: false, - - constructor : function(config){ - Ext.data.JsonWriter.superclass.constructor.call(this, config); - }, - - - render : function(params, baseParams, data) { - if (this.encode === true) { - - Ext.apply(params, baseParams); - params[this.meta.root] = Ext.encode(data); - } else { - - var jdata = Ext.apply({}, baseParams); - jdata[this.meta.root] = data; - params.jsonData = jdata; - } - }, - - createRecord : function(rec) { - return this.toHash(rec); - }, - - updateRecord : function(rec) { - return this.toHash(rec); - - }, - - destroyRecord : function(rec){ - if(this.encodeDelete){ - var data = {}; - data[this.meta.idProperty] = rec.id; - return data; - }else{ - return rec.id; - } - } -}); -Ext.data.JsonReader = function(meta, recordType){ - meta = meta || {}; - - - - - Ext.applyIf(meta, { - idProperty: 'id', - successProperty: 'success', - totalProperty: 'total' - }); - - Ext.data.JsonReader.superclass.constructor.call(this, meta, recordType || meta.fields); -}; -Ext.extend(Ext.data.JsonReader, Ext.data.DataReader, { - - - read : function(response){ - var json = response.responseText; - var o = Ext.decode(json); - if(!o) { - throw {message: 'JsonReader.read: Json object not found'}; - } - return this.readRecords(o); - }, - - - - readResponse : function(action, response) { - var o = (response.responseText !== undefined) ? Ext.decode(response.responseText) : response; - if(!o) { - throw new Ext.data.JsonReader.Error('response'); - } - - var root = this.getRoot(o), - success = this.getSuccess(o); - if (success && action === Ext.data.Api.actions.create) { - var def = Ext.isDefined(root); - if (def && Ext.isEmpty(root)) { - throw new Ext.data.JsonReader.Error('root-empty', this.meta.root); - } - else if (!def) { - throw new Ext.data.JsonReader.Error('root-undefined-response', this.meta.root); - } - } - - - var res = new Ext.data.Response({ - action: action, - success: success, - data: (root) ? this.extractData(root, false) : [], - message: this.getMessage(o), - raw: o - }); - - - if (Ext.isEmpty(res.success)) { - throw new Ext.data.JsonReader.Error('successProperty-response', this.meta.successProperty); - } - return res; - }, - - - readRecords : function(o){ - - this.jsonData = o; - if(o.metaData){ - this.onMetaChange(o.metaData); - } - var s = this.meta, Record = this.recordType, - f = Record.prototype.fields, fi = f.items, fl = f.length, v; - - var root = this.getRoot(o), c = root.length, totalRecords = c, success = true; - if(s.totalProperty){ - v = parseInt(this.getTotal(o), 10); - if(!isNaN(v)){ - totalRecords = v; - } - } - if(s.successProperty){ - v = this.getSuccess(o); - if(v === false || v === 'false'){ - success = false; - } - } - - - return { - success : success, - records : this.extractData(root, true), - totalRecords : totalRecords - }; - }, - - - buildExtractors : function() { - if(this.ef){ - return; - } - var s = this.meta, Record = this.recordType, - f = Record.prototype.fields, fi = f.items, fl = f.length; - - if(s.totalProperty) { - this.getTotal = this.createAccessor(s.totalProperty); - } - if(s.successProperty) { - this.getSuccess = this.createAccessor(s.successProperty); - } - if (s.messageProperty) { - this.getMessage = this.createAccessor(s.messageProperty); - } - this.getRoot = s.root ? this.createAccessor(s.root) : function(p){return p;}; - if (s.id || s.idProperty) { - var g = this.createAccessor(s.id || s.idProperty); - this.getId = function(rec) { - var r = g(rec); - return (r === undefined || r === '') ? null : r; - }; - } else { - this.getId = function(){return null;}; - } - var ef = []; - for(var i = 0; i < fl; i++){ - f = fi[i]; - var map = (f.mapping !== undefined && f.mapping !== null) ? f.mapping : f.name; - ef.push(this.createAccessor(map)); - } - this.ef = ef; - }, - - - simpleAccess : function(obj, subsc) { - return obj[subsc]; - }, - - - createAccessor : function(){ - var re = /[\[\.]/; - return function(expr) { - if(Ext.isEmpty(expr)){ - return Ext.emptyFn; - } - if(Ext.isFunction(expr)){ - return expr; - } - var i = String(expr).search(re); - if(i >= 0){ - return new Function('obj', 'return obj' + (i > 0 ? '.' : '') + expr); - } - return function(obj){ - return obj[expr]; - }; - - }; - }(), - - - extractValues : function(data, items, len) { - var f, values = {}; - for(var j = 0; j < len; j++){ - f = items[j]; - var v = this.ef[j](data); - values[f.name] = f.convert((v !== undefined) ? v : f.defaultValue, data); - } - return values; - } -}); - - -Ext.data.JsonReader.Error = Ext.extend(Ext.Error, { - constructor : function(message, arg) { - this.arg = arg; - Ext.Error.call(this, message); - }, - name : 'Ext.data.JsonReader' -}); -Ext.apply(Ext.data.JsonReader.Error.prototype, { - lang: { - 'response': 'An error occurred while json-decoding your server response', - 'successProperty-response': 'Could not locate your "successProperty" in your server response. Please review your JsonReader config to ensure the config-property "successProperty" matches the property in your server-response. See the JsonReader docs.', - 'root-undefined-config': 'Your JsonReader was configured without a "root" property. Please review your JsonReader config and make sure to define the root property. See the JsonReader docs.', - 'idProperty-undefined' : 'Your JsonReader was configured without an "idProperty" Please review your JsonReader configuration and ensure the "idProperty" is set (e.g.: "id"). See the JsonReader docs.', - 'root-empty': 'Data was expected to be returned by the server in the "root" property of the response. Please review your JsonReader configuration to ensure the "root" property matches that returned in the server-response. See JsonReader docs.' - } -}); - -Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, { - - - - - readRecords : function(o){ - this.arrayData = o; - var s = this.meta, - sid = s ? Ext.num(s.idIndex, s.id) : null, - recordType = this.recordType, - fields = recordType.prototype.fields, - records = [], - success = true, - v; - - var root = this.getRoot(o); - - for(var i = 0, len = root.length; i < len; i++) { - var n = root[i], - values = {}, - id = ((sid || sid === 0) && n[sid] !== undefined && n[sid] !== "" ? n[sid] : null); - for(var j = 0, jlen = fields.length; j < jlen; j++) { - var f = fields.items[j], - k = f.mapping !== undefined && f.mapping !== null ? f.mapping : j; - v = n[k] !== undefined ? n[k] : f.defaultValue; - v = f.convert(v, n); - values[f.name] = v; - } - var record = new recordType(values, id); - record.json = n; - records[records.length] = record; - } - - var totalRecords = records.length; - - if(s.totalProperty) { - v = parseInt(this.getTotal(o), 10); - if(!isNaN(v)) { - totalRecords = v; - } - } - if(s.successProperty){ - v = this.getSuccess(o); - if(v === false || v === 'false'){ - success = false; - } - } - - return { - success : success, - records : records, - totalRecords : totalRecords - }; - } -}); -Ext.data.ArrayStore = Ext.extend(Ext.data.Store, { - - constructor: function(config){ - Ext.data.ArrayStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.ArrayReader(config) - })); - }, - - loadData : function(data, append){ - if(this.expandData === true){ - var r = []; - for(var i = 0, len = data.length; i < len; i++){ - r[r.length] = [data[i]]; - } - data = r; - } - Ext.data.ArrayStore.superclass.loadData.call(this, data, append); - } -}); -Ext.reg('arraystore', Ext.data.ArrayStore); - - -Ext.data.SimpleStore = Ext.data.ArrayStore; -Ext.reg('simplestore', Ext.data.SimpleStore); -Ext.data.JsonStore = Ext.extend(Ext.data.Store, { - - constructor: function(config){ - Ext.data.JsonStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.JsonReader(config) - })); - } -}); -Ext.reg('jsonstore', Ext.data.JsonStore); -Ext.data.XmlWriter = function(params) { - Ext.data.XmlWriter.superclass.constructor.apply(this, arguments); - - this.tpl = (typeof(this.tpl) === 'string') ? new Ext.XTemplate(this.tpl).compile() : this.tpl.compile(); -}; -Ext.extend(Ext.data.XmlWriter, Ext.data.DataWriter, { - - documentRoot: 'xrequest', - - forceDocumentRoot: false, - - root: 'records', - - xmlVersion : '1.0', - - xmlEncoding: 'ISO-8859-15', - - - tpl: '<\u003fxml version="{version}" encoding="{encoding}"\u003f><{documentRoot}><{name}>{value}<{root}><{parent.record}><{name}>{value}', - - - - render : function(params, baseParams, data) { - baseParams = this.toArray(baseParams); - params.xmlData = this.tpl.applyTemplate({ - version: this.xmlVersion, - encoding: this.xmlEncoding, - documentRoot: (baseParams.length > 0 || this.forceDocumentRoot === true) ? this.documentRoot : false, - record: this.meta.record, - root: this.root, - baseParams: baseParams, - records: (Ext.isArray(data[0])) ? data : [data] - }); - }, - - - createRecord : function(rec) { - return this.toArray(this.toHash(rec)); - }, - - - updateRecord : function(rec) { - return this.toArray(this.toHash(rec)); - - }, - - destroyRecord : function(rec) { - var data = {}; - data[this.meta.idProperty] = rec.id; - return this.toArray(data); - } -}); - -Ext.data.XmlReader = function(meta, recordType){ - meta = meta || {}; - - - Ext.applyIf(meta, { - idProperty: meta.idProperty || meta.idPath || meta.id, - successProperty: meta.successProperty || meta.success - }); - - Ext.data.XmlReader.superclass.constructor.call(this, meta, recordType || meta.fields); -}; -Ext.extend(Ext.data.XmlReader, Ext.data.DataReader, { - - read : function(response){ - var doc = response.responseXML; - if(!doc) { - throw {message: "XmlReader.read: XML Document not available"}; - } - return this.readRecords(doc); - }, - - - readRecords : function(doc){ - - this.xmlData = doc; - - var root = doc.documentElement || doc, - q = Ext.DomQuery, - totalRecords = 0, - success = true; - - if(this.meta.totalProperty){ - totalRecords = this.getTotal(root, 0); - } - if(this.meta.successProperty){ - success = this.getSuccess(root); - } - - var records = this.extractData(q.select(this.meta.record, root), true); - - - return { - success : success, - records : records, - totalRecords : totalRecords || records.length - }; - }, - - - readResponse : function(action, response) { - var q = Ext.DomQuery, - doc = response.responseXML, - root = doc.documentElement || doc; - - - var res = new Ext.data.Response({ - action: action, - success : this.getSuccess(root), - message: this.getMessage(root), - data: this.extractData(q.select(this.meta.record, root) || q.select(this.meta.root, root), false), - raw: doc - }); - - if (Ext.isEmpty(res.success)) { - throw new Ext.data.DataReader.Error('successProperty-response', this.meta.successProperty); - } - - - if (action === Ext.data.Api.actions.create) { - var def = Ext.isDefined(res.data); - if (def && Ext.isEmpty(res.data)) { - throw new Ext.data.JsonReader.Error('root-empty', this.meta.root); - } - else if (!def) { - throw new Ext.data.JsonReader.Error('root-undefined-response', this.meta.root); - } - } - return res; - }, - - getSuccess : function() { - return true; - }, - - - buildExtractors : function() { - if(this.ef){ - return; - } - var s = this.meta, - Record = this.recordType, - f = Record.prototype.fields, - fi = f.items, - fl = f.length; - - if(s.totalProperty) { - this.getTotal = this.createAccessor(s.totalProperty); - } - if(s.successProperty) { - this.getSuccess = this.createAccessor(s.successProperty); - } - if (s.messageProperty) { - this.getMessage = this.createAccessor(s.messageProperty); - } - this.getRoot = function(res) { - return (!Ext.isEmpty(res[this.meta.record])) ? res[this.meta.record] : res[this.meta.root]; - }; - if (s.idPath || s.idProperty) { - var g = this.createAccessor(s.idPath || s.idProperty); - this.getId = function(rec) { - var id = g(rec) || rec.id; - return (id === undefined || id === '') ? null : id; - }; - } else { - this.getId = function(){return null;}; - } - var ef = []; - for(var i = 0; i < fl; i++){ - f = fi[i]; - var map = (f.mapping !== undefined && f.mapping !== null) ? f.mapping : f.name; - ef.push(this.createAccessor(map)); - } - this.ef = ef; - }, - - - createAccessor : function(){ - var q = Ext.DomQuery; - return function(key) { - if (Ext.isFunction(key)) { - return key; - } - switch(key) { - case this.meta.totalProperty: - return function(root, def){ - return q.selectNumber(key, root, def); - }; - break; - case this.meta.successProperty: - return function(root, def) { - var sv = q.selectValue(key, root, true); - var success = sv !== false && sv !== 'false'; - return success; - }; - break; - default: - return function(root, def) { - return q.selectValue(key, root, def); - }; - break; - } - }; - }(), - - - extractValues : function(data, items, len) { - var f, values = {}; - for(var j = 0; j < len; j++){ - f = items[j]; - var v = this.ef[j](data); - values[f.name] = f.convert((v !== undefined) ? v : f.defaultValue, data); - } - return values; - } -}); -Ext.data.XmlStore = Ext.extend(Ext.data.Store, { - - constructor: function(config){ - Ext.data.XmlStore.superclass.constructor.call(this, Ext.apply(config, { - reader: new Ext.data.XmlReader(config) - })); - } -}); -Ext.reg('xmlstore', Ext.data.XmlStore); -Ext.data.GroupingStore = Ext.extend(Ext.data.Store, { - - - constructor: function(config) { - config = config || {}; - - - - - - this.hasMultiSort = true; - this.multiSortInfo = this.multiSortInfo || {sorters: []}; - - var sorters = this.multiSortInfo.sorters, - groupField = config.groupField || this.groupField, - sortInfo = config.sortInfo || this.sortInfo, - groupDir = config.groupDir || this.groupDir; - - - if(groupField){ - sorters.push({ - field : groupField, - direction: groupDir - }); - } - - - if (sortInfo) { - sorters.push(sortInfo); - } - - Ext.data.GroupingStore.superclass.constructor.call(this, config); - - this.addEvents( - - 'groupchange' - ); - - this.applyGroupField(); - }, - - - - remoteGroup : false, - - groupOnSort:false, - - - groupDir : 'ASC', - - - clearGrouping : function(){ - this.groupField = false; - - if(this.remoteGroup){ - if(this.baseParams){ - delete this.baseParams.groupBy; - delete this.baseParams.groupDir; - } - var lo = this.lastOptions; - if(lo && lo.params){ - delete lo.params.groupBy; - delete lo.params.groupDir; - } - - this.reload(); - }else{ - this.sort(); - this.fireEvent('datachanged', this); - } - }, - - - groupBy : function(field, forceRegroup, direction) { - direction = direction ? (String(direction).toUpperCase() == 'DESC' ? 'DESC' : 'ASC') : this.groupDir; - - if (this.groupField == field && this.groupDir == direction && !forceRegroup) { - return; - } - - - - var sorters = this.multiSortInfo.sorters; - if (sorters.length > 0 && sorters[0].field == this.groupField) { - sorters.shift(); - } - - this.groupField = field; - this.groupDir = direction; - this.applyGroupField(); - - var fireGroupEvent = function() { - this.fireEvent('groupchange', this, this.getGroupState()); - }; - - if (this.groupOnSort) { - this.sort(field, direction); - fireGroupEvent.call(this); - return; - } - - if (this.remoteGroup) { - this.on('load', fireGroupEvent, this, {single: true}); - this.reload(); - } else { - this.sort(sorters); - fireGroupEvent.call(this); - } - }, - - - - sort : function(fieldName, dir) { - if (this.remoteSort) { - return Ext.data.GroupingStore.superclass.sort.call(this, fieldName, dir); - } - - var sorters = []; - - - if (Ext.isArray(arguments[0])) { - sorters = arguments[0]; - } else if (fieldName == undefined) { - - - sorters = this.sortInfo ? [this.sortInfo] : []; - } else { - - - var field = this.fields.get(fieldName); - if (!field) return false; - - var name = field.name, - sortInfo = this.sortInfo || null, - sortToggle = this.sortToggle ? this.sortToggle[name] : null; - - if (!dir) { - if (sortInfo && sortInfo.field == name) { - dir = (this.sortToggle[name] || 'ASC').toggle('ASC', 'DESC'); - } else { - dir = field.sortDir; - } - } - - this.sortToggle[name] = dir; - this.sortInfo = {field: name, direction: dir}; - - sorters = [this.sortInfo]; - } - - - if (this.groupField) { - sorters.unshift({direction: this.groupDir, field: this.groupField}); - } - - return this.multiSort.call(this, sorters, dir); - }, - - - applyGroupField: function(){ - if (this.remoteGroup) { - if(!this.baseParams){ - this.baseParams = {}; - } - - Ext.apply(this.baseParams, { - groupBy : this.groupField, - groupDir: this.groupDir - }); - - var lo = this.lastOptions; - if (lo && lo.params) { - lo.params.groupDir = this.groupDir; - - - delete lo.params.groupBy; - } - } - }, - - - applyGrouping : function(alwaysFireChange){ - if(this.groupField !== false){ - this.groupBy(this.groupField, true, this.groupDir); - return true; - }else{ - if(alwaysFireChange === true){ - this.fireEvent('datachanged', this); - } - return false; - } - }, - - - getGroupState : function(){ - return this.groupOnSort && this.groupField !== false ? - (this.sortInfo ? this.sortInfo.field : undefined) : this.groupField; - } -}); -Ext.reg('groupingstore', Ext.data.GroupingStore); - -Ext.data.DirectProxy = function(config){ - Ext.apply(this, config); - if(typeof this.paramOrder == 'string'){ - this.paramOrder = this.paramOrder.split(/[\s,|]/); - } - Ext.data.DirectProxy.superclass.constructor.call(this, config); -}; - -Ext.extend(Ext.data.DirectProxy, Ext.data.DataProxy, { - - paramOrder: undefined, - - - paramsAsHash: true, - - - directFn : undefined, - - - doRequest : function(action, rs, params, reader, callback, scope, options) { - var args = [], - directFn = this.api[action] || this.directFn; - - switch (action) { - case Ext.data.Api.actions.create: - args.push(params.jsonData); - break; - case Ext.data.Api.actions.read: - - if(directFn.directCfg.method.len > 0){ - if(this.paramOrder){ - for(var i = 0, len = this.paramOrder.length; i < len; i++){ - args.push(params[this.paramOrder[i]]); - } - }else if(this.paramsAsHash){ - args.push(params); - } - } - break; - case Ext.data.Api.actions.update: - args.push(params.jsonData); - break; - case Ext.data.Api.actions.destroy: - args.push(params.jsonData); - break; - } - - var trans = { - params : params || {}, - request: { - callback : callback, - scope : scope, - arg : options - }, - reader: reader - }; - - args.push(this.createCallback(action, rs, trans), this); - directFn.apply(window, args); - }, - - - createCallback : function(action, rs, trans) { - var me = this; - return function(result, res) { - if (!res.status) { - - if (action === Ext.data.Api.actions.read) { - me.fireEvent("loadexception", me, trans, res, null); - } - me.fireEvent('exception', me, 'remote', action, trans, res, null); - trans.request.callback.call(trans.request.scope, null, trans.request.arg, false); - return; - } - if (action === Ext.data.Api.actions.read) { - me.onRead(action, trans, result, res); - } else { - me.onWrite(action, trans, result, res, rs); - } - }; - }, - - - onRead : function(action, trans, result, res) { - var records; - try { - records = trans.reader.readRecords(result); - } - catch (ex) { - - this.fireEvent("loadexception", this, trans, res, ex); - - this.fireEvent('exception', this, 'response', action, trans, res, ex); - trans.request.callback.call(trans.request.scope, null, trans.request.arg, false); - return; - } - this.fireEvent("load", this, res, trans.request.arg); - trans.request.callback.call(trans.request.scope, records, trans.request.arg, true); - }, - - onWrite : function(action, trans, result, res, rs) { - var data = trans.reader.extractData(trans.reader.getRoot(result), false); - var success = trans.reader.getSuccess(result); - success = (success !== false); - if (success){ - this.fireEvent("write", this, action, data, res, rs, trans.request.arg); - }else{ - this.fireEvent('exception', this, 'remote', action, trans, result, rs); - } - trans.request.callback.call(trans.request.scope, data, res, success); - } -}); - -Ext.data.DirectStore = Ext.extend(Ext.data.Store, { - constructor : function(config){ - - var c = Ext.apply({}, { - batchTransactions: false - }, config); - Ext.data.DirectStore.superclass.constructor.call(this, Ext.apply(c, { - proxy: Ext.isDefined(c.proxy) ? c.proxy : new Ext.data.DirectProxy(Ext.copyTo({}, c, 'paramOrder,paramsAsHash,directFn,api')), - reader: (!Ext.isDefined(c.reader) && c.fields) ? new Ext.data.JsonReader(Ext.copyTo({}, c, 'totalProperty,root,idProperty'), c.fields) : c.reader - })); - } -}); -Ext.reg('directstore', Ext.data.DirectStore); - -Ext.Direct = Ext.extend(Ext.util.Observable, { - - - - exceptions: { - TRANSPORT: 'xhr', - PARSE: 'parse', - LOGIN: 'login', - SERVER: 'exception' - }, - - - constructor: function(){ - this.addEvents( - - 'event', - - 'exception' - ); - this.transactions = {}; - this.providers = {}; - }, - - - addProvider : function(provider){ - var a = arguments; - if(a.length > 1){ - for(var i = 0, len = a.length; i < len; i++){ - this.addProvider(a[i]); - } - return; - } - - - if(!provider.events){ - provider = new Ext.Direct.PROVIDERS[provider.type](provider); - } - provider.id = provider.id || Ext.id(); - this.providers[provider.id] = provider; - - provider.on('data', this.onProviderData, this); - provider.on('exception', this.onProviderException, this); - - - if(!provider.isConnected()){ - provider.connect(); - } - - return provider; - }, - - - getProvider : function(id){ - return this.providers[id]; - }, - - removeProvider : function(id){ - var provider = id.id ? id : this.providers[id]; - provider.un('data', this.onProviderData, this); - provider.un('exception', this.onProviderException, this); - delete this.providers[provider.id]; - return provider; - }, - - addTransaction: function(t){ - this.transactions[t.tid] = t; - return t; - }, - - removeTransaction: function(t){ - delete this.transactions[t.tid || t]; - return t; - }, - - getTransaction: function(tid){ - return this.transactions[tid.tid || tid]; - }, - - onProviderData : function(provider, e){ - if(Ext.isArray(e)){ - for(var i = 0, len = e.length; i < len; i++){ - this.onProviderData(provider, e[i]); - } - return; - } - if(e.name && e.name != 'event' && e.name != 'exception'){ - this.fireEvent(e.name, e); - }else if(e.type == 'exception'){ - this.fireEvent('exception', e); - } - this.fireEvent('event', e, provider); - }, - - createEvent : function(response, extraProps){ - return new Ext.Direct.eventTypes[response.type](Ext.apply(response, extraProps)); - } -}); - -Ext.Direct = new Ext.Direct(); - -Ext.Direct.TID = 1; -Ext.Direct.PROVIDERS = {}; -Ext.Direct.Transaction = function(config){ - Ext.apply(this, config); - this.tid = ++Ext.Direct.TID; - this.retryCount = 0; -}; -Ext.Direct.Transaction.prototype = { - send: function(){ - this.provider.queueTransaction(this); - }, - - retry: function(){ - this.retryCount++; - this.send(); - }, - - getProvider: function(){ - return this.provider; - } -};Ext.Direct.Event = function(config){ - Ext.apply(this, config); -}; - -Ext.Direct.Event.prototype = { - status: true, - getData: function(){ - return this.data; - } -}; - -Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, { - type: 'rpc', - getTransaction: function(){ - return this.transaction || Ext.Direct.getTransaction(this.tid); - } -}); - -Ext.Direct.ExceptionEvent = Ext.extend(Ext.Direct.RemotingEvent, { - status: false, - type: 'exception' -}); - -Ext.Direct.eventTypes = { - 'rpc': Ext.Direct.RemotingEvent, - 'event': Ext.Direct.Event, - 'exception': Ext.Direct.ExceptionEvent -}; - -Ext.direct.Provider = Ext.extend(Ext.util.Observable, { - - - - priority: 1, - - - - - constructor : function(config){ - Ext.apply(this, config); - this.addEvents( - - 'connect', - - 'disconnect', - - 'data', - - 'exception' - ); - Ext.direct.Provider.superclass.constructor.call(this, config); - }, - - - isConnected: function(){ - return false; - }, - - - connect: Ext.emptyFn, - - - disconnect: Ext.emptyFn -}); - -Ext.direct.JsonProvider = Ext.extend(Ext.direct.Provider, { - parseResponse: function(xhr){ - if(!Ext.isEmpty(xhr.responseText)){ - if(typeof xhr.responseText == 'object'){ - return xhr.responseText; - } - return Ext.decode(xhr.responseText); - } - return null; - }, - - getEvents: function(xhr){ - var data = null; - try{ - data = this.parseResponse(xhr); - }catch(e){ - var event = new Ext.Direct.ExceptionEvent({ - data: e, - xhr: xhr, - code: Ext.Direct.exceptions.PARSE, - message: 'Error parsing json response: \n\n ' + data - }); - return [event]; - } - var events = []; - if(Ext.isArray(data)){ - for(var i = 0, len = data.length; i < len; i++){ - events.push(Ext.Direct.createEvent(data[i])); - } - }else{ - events.push(Ext.Direct.createEvent(data)); - } - return events; - } -}); -Ext.direct.PollingProvider = Ext.extend(Ext.direct.JsonProvider, { - - - priority: 3, - - - interval: 3000, - - - - - - - constructor : function(config){ - Ext.direct.PollingProvider.superclass.constructor.call(this, config); - this.addEvents( - - 'beforepoll', - - 'poll' - ); - }, - - - isConnected: function(){ - return !!this.pollTask; - }, - - - connect: function(){ - if(this.url && !this.pollTask){ - this.pollTask = Ext.TaskMgr.start({ - run: function(){ - if(this.fireEvent('beforepoll', this) !== false){ - if(typeof this.url == 'function'){ - this.url(this.baseParams); - }else{ - Ext.Ajax.request({ - url: this.url, - callback: this.onData, - scope: this, - params: this.baseParams - }); - } - } - }, - interval: this.interval, - scope: this - }); - this.fireEvent('connect', this); - }else if(!this.url){ - throw 'Error initializing PollingProvider, no url configured.'; - } - }, - - - disconnect: function(){ - if(this.pollTask){ - Ext.TaskMgr.stop(this.pollTask); - delete this.pollTask; - this.fireEvent('disconnect', this); - } - }, - - - onData: function(opt, success, xhr){ - if(success){ - var events = this.getEvents(xhr); - for(var i = 0, len = events.length; i < len; i++){ - var e = events[i]; - this.fireEvent('data', this, e); - } - }else{ - var e = new Ext.Direct.ExceptionEvent({ - data: e, - code: Ext.Direct.exceptions.TRANSPORT, - message: 'Unable to connect to the server.', - xhr: xhr - }); - this.fireEvent('data', this, e); - } - } -}); - -Ext.Direct.PROVIDERS['polling'] = Ext.direct.PollingProvider; -Ext.direct.RemotingProvider = Ext.extend(Ext.direct.JsonProvider, { - - - - - - - - - - enableBuffer: 10, - - - maxRetries: 1, - - - timeout: undefined, - - constructor : function(config){ - Ext.direct.RemotingProvider.superclass.constructor.call(this, config); - this.addEvents( - - 'beforecall', - - 'call' - ); - this.namespace = (Ext.isString(this.namespace)) ? Ext.ns(this.namespace) : this.namespace || window; - this.transactions = {}; - this.callBuffer = []; - }, - - - initAPI : function(){ - var o = this.actions; - for(var c in o){ - var cls = this.namespace[c] || (this.namespace[c] = {}), - ms = o[c]; - for(var i = 0, len = ms.length; i < len; i++){ - var m = ms[i]; - cls[m.name] = this.createMethod(c, m); - } - } - }, - - - isConnected: function(){ - return !!this.connected; - }, - - connect: function(){ - if(this.url){ - this.initAPI(); - this.connected = true; - this.fireEvent('connect', this); - }else if(!this.url){ - throw 'Error initializing RemotingProvider, no url configured.'; - } - }, - - disconnect: function(){ - if(this.connected){ - this.connected = false; - this.fireEvent('disconnect', this); - } - }, - - onData: function(opt, success, xhr){ - if(success){ - var events = this.getEvents(xhr); - for(var i = 0, len = events.length; i < len; i++){ - var e = events[i], - t = this.getTransaction(e); - this.fireEvent('data', this, e); - if(t){ - this.doCallback(t, e, true); - Ext.Direct.removeTransaction(t); - } - } - }else{ - var ts = [].concat(opt.ts); - for(var i = 0, len = ts.length; i < len; i++){ - var t = this.getTransaction(ts[i]); - if(t && t.retryCount < this.maxRetries){ - t.retry(); - }else{ - var e = new Ext.Direct.ExceptionEvent({ - data: e, - transaction: t, - code: Ext.Direct.exceptions.TRANSPORT, - message: 'Unable to connect to the server.', - xhr: xhr - }); - this.fireEvent('data', this, e); - if(t){ - this.doCallback(t, e, false); - Ext.Direct.removeTransaction(t); - } - } - } - } - }, - - getCallData: function(t){ - return { - action: t.action, - method: t.method, - data: t.data, - type: 'rpc', - tid: t.tid - }; - }, - - doSend : function(data){ - var o = { - url: this.url, - callback: this.onData, - scope: this, - ts: data, - timeout: this.timeout - }, callData; - - if(Ext.isArray(data)){ - callData = []; - for(var i = 0, len = data.length; i < len; i++){ - callData.push(this.getCallData(data[i])); - } - }else{ - callData = this.getCallData(data); - } - - if(this.enableUrlEncode){ - var params = {}; - params[Ext.isString(this.enableUrlEncode) ? this.enableUrlEncode : 'data'] = Ext.encode(callData); - o.params = params; - }else{ - o.jsonData = callData; - } - Ext.Ajax.request(o); - }, - - combineAndSend : function(){ - var len = this.callBuffer.length; - if(len > 0){ - this.doSend(len == 1 ? this.callBuffer[0] : this.callBuffer); - this.callBuffer = []; - } - }, - - queueTransaction: function(t){ - if(t.form){ - this.processForm(t); - return; - } - this.callBuffer.push(t); - if(this.enableBuffer){ - if(!this.callTask){ - this.callTask = new Ext.util.DelayedTask(this.combineAndSend, this); - } - this.callTask.delay(Ext.isNumber(this.enableBuffer) ? this.enableBuffer : 10); - }else{ - this.combineAndSend(); - } - }, - - doCall : function(c, m, args){ - var data = null, hs = args[m.len], scope = args[m.len+1]; - - if(m.len !== 0){ - data = args.slice(0, m.len); - } - - var t = new Ext.Direct.Transaction({ - provider: this, - args: args, - action: c, - method: m.name, - data: data, - cb: scope && Ext.isFunction(hs) ? hs.createDelegate(scope) : hs - }); - - if(this.fireEvent('beforecall', this, t, m) !== false){ - Ext.Direct.addTransaction(t); - this.queueTransaction(t); - this.fireEvent('call', this, t, m); - } - }, - - doForm : function(c, m, form, callback, scope){ - var t = new Ext.Direct.Transaction({ - provider: this, - action: c, - method: m.name, - args:[form, callback, scope], - cb: scope && Ext.isFunction(callback) ? callback.createDelegate(scope) : callback, - isForm: true - }); - - if(this.fireEvent('beforecall', this, t, m) !== false){ - Ext.Direct.addTransaction(t); - var isUpload = String(form.getAttribute("enctype")).toLowerCase() == 'multipart/form-data', - params = { - extTID: t.tid, - extAction: c, - extMethod: m.name, - extType: 'rpc', - extUpload: String(isUpload) - }; - - - - Ext.apply(t, { - form: Ext.getDom(form), - isUpload: isUpload, - params: callback && Ext.isObject(callback.params) ? Ext.apply(params, callback.params) : params - }); - this.fireEvent('call', this, t, m); - this.processForm(t); - } - }, - - processForm: function(t){ - Ext.Ajax.request({ - url: this.url, - params: t.params, - callback: this.onData, - scope: this, - form: t.form, - isUpload: t.isUpload, - ts: t - }); - }, - - createMethod : function(c, m){ - var f; - if(!m.formHandler){ - f = function(){ - this.doCall(c, m, Array.prototype.slice.call(arguments, 0)); - }.createDelegate(this); - }else{ - f = function(form, callback, scope){ - this.doForm(c, m, form, callback, scope); - }.createDelegate(this); - } - f.directCfg = { - action: c, - method: m - }; - return f; - }, - - getTransaction: function(opt){ - return opt && opt.tid ? Ext.Direct.getTransaction(opt.tid) : null; - }, - - doCallback: function(t, e){ - var fn = e.status ? 'success' : 'failure'; - if(t && t.cb){ - var hs = t.cb, - result = Ext.isDefined(e.result) ? e.result : e.data; - if(Ext.isFunction(hs)){ - hs(result, e); - } else{ - Ext.callback(hs[fn], hs.scope, [result, e]); - Ext.callback(hs.callback, hs.scope, [result, e]); - } - } - } -}); -Ext.Direct.PROVIDERS['remoting'] = Ext.direct.RemotingProvider; -Ext.Resizable = Ext.extend(Ext.util.Observable, { - - constructor: function(el, config){ - this.el = Ext.get(el); - if(config && config.wrap){ - config.resizeChild = this.el; - this.el = this.el.wrap(typeof config.wrap == 'object' ? config.wrap : {cls:'xresizable-wrap'}); - this.el.id = this.el.dom.id = config.resizeChild.id + '-rzwrap'; - this.el.setStyle('overflow', 'hidden'); - this.el.setPositioning(config.resizeChild.getPositioning()); - config.resizeChild.clearPositioning(); - if(!config.width || !config.height){ - var csize = config.resizeChild.getSize(); - this.el.setSize(csize.width, csize.height); - } - if(config.pinned && !config.adjustments){ - config.adjustments = 'auto'; - } - } - - - this.proxy = this.el.createProxy({tag: 'div', cls: 'x-resizable-proxy', id: this.el.id + '-rzproxy'}, Ext.getBody()); - this.proxy.unselectable(); - this.proxy.enableDisplayMode('block'); - - Ext.apply(this, config); - - if(this.pinned){ - this.disableTrackOver = true; - this.el.addClass('x-resizable-pinned'); - } - - var position = this.el.getStyle('position'); - if(position != 'absolute' && position != 'fixed'){ - this.el.setStyle('position', 'relative'); - } - if(!this.handles){ - this.handles = 's,e,se'; - if(this.multiDirectional){ - this.handles += ',n,w'; - } - } - if(this.handles == 'all'){ - this.handles = 'n s e w ne nw se sw'; - } - var hs = this.handles.split(/\s*?[,;]\s*?| /); - var ps = Ext.Resizable.positions; - for(var i = 0, len = hs.length; i < len; i++){ - if(hs[i] && ps[hs[i]]){ - var pos = ps[hs[i]]; - this[pos] = new Ext.Resizable.Handle(this, pos, this.disableTrackOver, this.transparent, this.handleCls); - } - } - - this.corner = this.southeast; - - if(this.handles.indexOf('n') != -1 || this.handles.indexOf('w') != -1){ - this.updateBox = true; - } - - this.activeHandle = null; - - if(this.resizeChild){ - if(typeof this.resizeChild == 'boolean'){ - this.resizeChild = Ext.get(this.el.dom.firstChild, true); - }else{ - this.resizeChild = Ext.get(this.resizeChild, true); - } - } - - if(this.adjustments == 'auto'){ - var rc = this.resizeChild; - var hw = this.west, he = this.east, hn = this.north, hs = this.south; - if(rc && (hw || hn)){ - rc.position('relative'); - rc.setLeft(hw ? hw.el.getWidth() : 0); - rc.setTop(hn ? hn.el.getHeight() : 0); - } - this.adjustments = [ - (he ? -he.el.getWidth() : 0) + (hw ? -hw.el.getWidth() : 0), - (hn ? -hn.el.getHeight() : 0) + (hs ? -hs.el.getHeight() : 0) -1 - ]; - } - - if(this.draggable){ - this.dd = this.dynamic ? - this.el.initDD(null) : this.el.initDDProxy(null, {dragElId: this.proxy.id}); - this.dd.setHandleElId(this.resizeChild ? this.resizeChild.id : this.el.id); - if(this.constrainTo){ - this.dd.constrainTo(this.constrainTo); - } - } - - this.addEvents( - - 'beforeresize', - - 'resize' - ); - - if(this.width !== null && this.height !== null){ - this.resizeTo(this.width, this.height); - }else{ - this.updateChildSize(); - } - if(Ext.isIE){ - this.el.dom.style.zoom = 1; - } - Ext.Resizable.superclass.constructor.call(this); - }, - - - adjustments : [0, 0], - - animate : false, - - - disableTrackOver : false, - - draggable: false, - - duration : 0.35, - - dynamic : false, - - easing : 'easeOutStrong', - - enabled : true, - - - handles : false, - - multiDirectional : false, - - height : null, - - width : null, - - heightIncrement : 0, - - widthIncrement : 0, - - minHeight : 5, - - minWidth : 5, - - maxHeight : 10000, - - maxWidth : 10000, - - minX: 0, - - minY: 0, - - pinned : false, - - preserveRatio : false, - - resizeChild : false, - - transparent: false, - - - - - - - resizeTo : function(width, height){ - this.el.setSize(width, height); - this.updateChildSize(); - this.fireEvent('resize', this, width, height, null); - }, - - - startSizing : function(e, handle){ - this.fireEvent('beforeresize', this, e); - if(this.enabled){ - - if(!this.overlay){ - this.overlay = this.el.createProxy({tag: 'div', cls: 'x-resizable-overlay', html: ' '}, Ext.getBody()); - this.overlay.unselectable(); - this.overlay.enableDisplayMode('block'); - this.overlay.on({ - scope: this, - mousemove: this.onMouseMove, - mouseup: this.onMouseUp - }); - } - this.overlay.setStyle('cursor', handle.el.getStyle('cursor')); - - this.resizing = true; - this.startBox = this.el.getBox(); - this.startPoint = e.getXY(); - this.offsets = [(this.startBox.x + this.startBox.width) - this.startPoint[0], - (this.startBox.y + this.startBox.height) - this.startPoint[1]]; - - this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true)); - this.overlay.show(); - - if(this.constrainTo) { - var ct = Ext.get(this.constrainTo); - this.resizeRegion = ct.getRegion().adjust( - ct.getFrameWidth('t'), - ct.getFrameWidth('l'), - -ct.getFrameWidth('b'), - -ct.getFrameWidth('r') - ); - } - - this.proxy.setStyle('visibility', 'hidden'); - this.proxy.show(); - this.proxy.setBox(this.startBox); - if(!this.dynamic){ - this.proxy.setStyle('visibility', 'visible'); - } - } - }, - - - onMouseDown : function(handle, e){ - if(this.enabled){ - e.stopEvent(); - this.activeHandle = handle; - this.startSizing(e, handle); - } - }, - - - onMouseUp : function(e){ - this.activeHandle = null; - var size = this.resizeElement(); - this.resizing = false; - this.handleOut(); - this.overlay.hide(); - this.proxy.hide(); - this.fireEvent('resize', this, size.width, size.height, e); - }, - - - updateChildSize : function(){ - if(this.resizeChild){ - var el = this.el; - var child = this.resizeChild; - var adj = this.adjustments; - if(el.dom.offsetWidth){ - var b = el.getSize(true); - child.setSize(b.width+adj[0], b.height+adj[1]); - } - - - - - if(Ext.isIE){ - setTimeout(function(){ - if(el.dom.offsetWidth){ - var b = el.getSize(true); - child.setSize(b.width+adj[0], b.height+adj[1]); - } - }, 10); - } - } - }, - - - snap : function(value, inc, min){ - if(!inc || !value){ - return value; - } - var newValue = value; - var m = value % inc; - if(m > 0){ - if(m > (inc/2)){ - newValue = value + (inc-m); - }else{ - newValue = value - m; - } - } - return Math.max(min, newValue); - }, - - - resizeElement : function(){ - var box = this.proxy.getBox(); - if(this.updateBox){ - this.el.setBox(box, false, this.animate, this.duration, null, this.easing); - }else{ - this.el.setSize(box.width, box.height, this.animate, this.duration, null, this.easing); - } - this.updateChildSize(); - if(!this.dynamic){ - this.proxy.hide(); - } - if(this.draggable && this.constrainTo){ - this.dd.resetConstraints(); - this.dd.constrainTo(this.constrainTo); - } - return box; - }, - - - constrain : function(v, diff, m, mx){ - if(v - diff < m){ - diff = v - m; - }else if(v - diff > mx){ - diff = v - mx; - } - return diff; - }, - - - onMouseMove : function(e){ - if(this.enabled && this.activeHandle){ - try{ - - if(this.resizeRegion && !this.resizeRegion.contains(e.getPoint())) { - return; - } - - - var curSize = this.curSize || this.startBox, - x = this.startBox.x, y = this.startBox.y, - ox = x, - oy = y, - w = curSize.width, - h = curSize.height, - ow = w, - oh = h, - mw = this.minWidth, - mh = this.minHeight, - mxw = this.maxWidth, - mxh = this.maxHeight, - wi = this.widthIncrement, - hi = this.heightIncrement, - eventXY = e.getXY(), - diffX = -(this.startPoint[0] - Math.max(this.minX, eventXY[0])), - diffY = -(this.startPoint[1] - Math.max(this.minY, eventXY[1])), - pos = this.activeHandle.position, - tw, - th; - - switch(pos){ - case 'east': - w += diffX; - w = Math.min(Math.max(mw, w), mxw); - break; - case 'south': - h += diffY; - h = Math.min(Math.max(mh, h), mxh); - break; - case 'southeast': - w += diffX; - h += diffY; - w = Math.min(Math.max(mw, w), mxw); - h = Math.min(Math.max(mh, h), mxh); - break; - case 'north': - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - break; - case 'west': - diffX = this.constrain(w, diffX, mw, mxw); - x += diffX; - w -= diffX; - break; - case 'northeast': - w += diffX; - w = Math.min(Math.max(mw, w), mxw); - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - break; - case 'northwest': - diffX = this.constrain(w, diffX, mw, mxw); - diffY = this.constrain(h, diffY, mh, mxh); - y += diffY; - h -= diffY; - x += diffX; - w -= diffX; - break; - case 'southwest': - diffX = this.constrain(w, diffX, mw, mxw); - h += diffY; - h = Math.min(Math.max(mh, h), mxh); - x += diffX; - w -= diffX; - break; - } - - var sw = this.snap(w, wi, mw); - var sh = this.snap(h, hi, mh); - if(sw != w || sh != h){ - switch(pos){ - case 'northeast': - y -= sh - h; - break; - case 'north': - y -= sh - h; - break; - case 'southwest': - x -= sw - w; - break; - case 'west': - x -= sw - w; - break; - case 'northwest': - x -= sw - w; - y -= sh - h; - break; - } - w = sw; - h = sh; - } - - if(this.preserveRatio){ - switch(pos){ - case 'southeast': - case 'east': - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - w = ow * (h/oh); - break; - case 'south': - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - break; - case 'northeast': - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - break; - case 'north': - tw = w; - w = ow * (h/oh); - w = Math.min(Math.max(mw, w), mxw); - h = oh * (w/ow); - x += (tw - w) / 2; - break; - case 'southwest': - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - tw = w; - w = ow * (h/oh); - x += tw - w; - break; - case 'west': - th = h; - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - y += (th - h) / 2; - tw = w; - w = ow * (h/oh); - x += tw - w; - break; - case 'northwest': - tw = w; - th = h; - h = oh * (w/ow); - h = Math.min(Math.max(mh, h), mxh); - w = ow * (h/oh); - y += th - h; - x += tw - w; - break; - - } - } - this.proxy.setBounds(x, y, w, h); - if(this.dynamic){ - this.resizeElement(); - } - }catch(ex){} - } - }, - - - handleOver : function(){ - if(this.enabled){ - this.el.addClass('x-resizable-over'); - } - }, - - - handleOut : function(){ - if(!this.resizing){ - this.el.removeClass('x-resizable-over'); - } - }, - - - getEl : function(){ - return this.el; - }, - - - getResizeChild : function(){ - return this.resizeChild; - }, - - - destroy : function(removeEl){ - Ext.destroy(this.dd, this.overlay, this.proxy); - this.overlay = null; - this.proxy = null; - - var ps = Ext.Resizable.positions; - for(var k in ps){ - if(typeof ps[k] != 'function' && this[ps[k]]){ - this[ps[k]].destroy(); - } - } - if(removeEl){ - this.el.update(''); - Ext.destroy(this.el); - this.el = null; - } - this.purgeListeners(); - }, - - syncHandleHeight : function(){ - var h = this.el.getHeight(true); - if(this.west){ - this.west.el.setHeight(h); - } - if(this.east){ - this.east.el.setHeight(h); - } - } -}); - - - -Ext.Resizable.positions = { - n: 'north', s: 'south', e: 'east', w: 'west', se: 'southeast', sw: 'southwest', nw: 'northwest', ne: 'northeast' -}; - -Ext.Resizable.Handle = Ext.extend(Object, { - constructor : function(rz, pos, disableTrackOver, transparent, cls){ - if(!this.tpl){ - - var tpl = Ext.DomHelper.createTemplate( - {tag: 'div', cls: 'x-resizable-handle x-resizable-handle-{0}'} - ); - tpl.compile(); - Ext.Resizable.Handle.prototype.tpl = tpl; - } - this.position = pos; - this.rz = rz; - this.el = this.tpl.append(rz.el.dom, [this.position], true); - this.el.unselectable(); - if(transparent){ - this.el.setOpacity(0); - } - if(!Ext.isEmpty(cls)){ - this.el.addClass(cls); - } - this.el.on('mousedown', this.onMouseDown, this); - if(!disableTrackOver){ - this.el.on({ - scope: this, - mouseover: this.onMouseOver, - mouseout: this.onMouseOut - }); - } - }, - - - afterResize : function(rz){ - - }, - - onMouseDown : function(e){ - this.rz.onMouseDown(this, e); - }, - - onMouseOver : function(e){ - this.rz.handleOver(this, e); - }, - - onMouseOut : function(e){ - this.rz.handleOut(this, e); - }, - - destroy : function(){ - Ext.destroy(this.el); - this.el = null; - } -}); - -Ext.Window = Ext.extend(Ext.Panel, { - - - - - - - - - - - - - baseCls : 'x-window', - - resizable : true, - - draggable : true, - - closable : true, - - closeAction : 'close', - - constrain : false, - - constrainHeader : false, - - plain : false, - - minimizable : false, - - maximizable : false, - - minHeight : 100, - - minWidth : 200, - - expandOnShow : true, - - - showAnimDuration: 0.25, - - - hideAnimDuration: 0.25, - - - collapsible : false, - - - initHidden : undefined, - - - hidden : true, - - - - - - - elements : 'header,body', - - frame : true, - - floating : true, - - - initComponent : function(){ - this.initTools(); - Ext.Window.superclass.initComponent.call(this); - this.addEvents( - - - - 'resize', - - 'maximize', - - 'minimize', - - 'restore' - ); - - if(Ext.isDefined(this.initHidden)){ - this.hidden = this.initHidden; - } - if(this.hidden === false){ - this.hidden = true; - this.show(); - } - }, - - - getState : function(){ - return Ext.apply(Ext.Window.superclass.getState.call(this) || {}, this.getBox(true)); - }, - - - onRender : function(ct, position){ - Ext.Window.superclass.onRender.call(this, ct, position); - - if(this.plain){ - this.el.addClass('x-window-plain'); - } - - - 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); - } - }, - - - 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(){ - - this.dd = new Ext.Window.DD(this); - }, - - - onEsc : function(k, e){ - if (this.activeGhost) { - this.unghost(); - } - e.stopEvent(); - this[this.closeAction](); - }, - - - 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); - }, - - - onDestroy : function(){ - if(this.manager){ - this.manager.unregister(this); - } - Ext.Window.superclass.onDestroy.call(this); - }, - - - 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, []) - }); - } - }, - - - resizerAction : function(){ - var box = this.proxy.getBox(); - this.proxy.hide(); - this.window.handleResize(box); - return box; - }, - - - beforeResize : function(){ - this.resizer.minHeight = Math.max(this.minHeight, this.getFrameHeight() + 40); - this.resizer.minWidth = Math.max(this.minWidth, this.getFrameWidth() + 40); - this.resizeBox = this.el.getBox(); - }, - - - updateHandles : function(){ - if(Ext.isIE && this.resizer){ - this.resizer.syncHandleHeight(); - this.el.repaint(); - } - }, - - - 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(); - }, - - - 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 (ct != document.body && !Ext.lib.Region.getRegion(ct).contains(Ext.lib.Region.getRegion(el.dom))){ - return; - } - } - } - f = f || this.focusEl; - f.focus.defer(10, f); - }, - - - setAnimateTarget : function(el){ - el = Ext.get(el); - this.animateTarget = el; - }, - - - 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(); - } - }, - - - 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; - }, - - - 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){ - 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); - }, - - - 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: this.showAnimDuration, - opacity: 0.5 - })); - }, - - - 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; - }, - - - 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); - }, - - - 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: this.hideAnimDuration, - easing: 'easeNone', - opacity: 0 - })); - }, - - - onShow : Ext.emptyFn, - - - onHide : Ext.emptyFn, - - - 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(); - }, - - - 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 + this.el.getConstrainOffset()) - }; - } - - var xy = this.el.getConstrainToXY(this.container, true, offsets); - if(xy){ - this.setPosition(xy[0], xy[1]); - } - } - }, - - - 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; - }, - - - unghost : function(show, matchPosition){ - if(!this.activeGhost) { - return; - } - if(show !== false){ - this.el.show(); - this.focus.defer(10, this); - if(Ext.isMac && Ext.isGecko2){ - 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; - }, - - - minimize : function(){ - this.fireEvent('minimize', this); - return this; - }, - - - close : function(){ - if(this.fireEvent('beforeclose', this) !== false){ - if(this.hidden){ - this.doClose(); - }else{ - this.hide(null, this.doClose, this); - } - } - }, - - - doClose : function(){ - this.fireEvent('close', this); - this.destroy(); - }, - - - 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; - }, - - - 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; - }, - - - toggleMaximize : function(){ - return this[this.maximized ? 'restore' : 'maximize'](); - }, - - - fitContainer : function(){ - var vs = this.container.getViewSize(false); - this.setSize(vs.width, vs.height); - }, - - - - 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; - }, - - - alignTo : function(element, position, offsets){ - var xy = this.el.getAlignToXY(element, position, offsets); - this.setPagePosition(xy[0], xy[1]); - return 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(); - }, - - - doAnchor : function(){ - var o = this.anchorTarget; - this.alignTo(o.el, o.alignment, o.offsets); - return 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; - }, - - - toFront : function(e){ - if(this.manager.bringToFront(this)){ - if(!e || !e.getTarget().focus){ - this.focus(); - } - } - return this; - }, - - - setActive : function(active){ - if(active){ - if(!this.maximized){ - this.el.enableShadow(true); - } - this.fireEvent('activate', this); - }else{ - this.el.disableShadow(); - this.fireEvent('deactivate', this); - } - }, - - - toBack : function(){ - this.manager.sendToBack(this); - return this; - }, - - - center : function(){ - var xy = this.el.getAlignToXY(this.container, 'c-c'); - this.setPagePosition(xy[0], xy[1]); - return this; - } - - -}); -Ext.reg('window', Ext.Window); - - -Ext.Window.DD = Ext.extend(Ext.dd.DD, { - - constructor : 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; - }, - - moveOnly:true, - headerOffsets:[100, 25], - startDrag : function(){ - var w = this.win; - this.proxy = w.ghost(w.initialConfig.cls); - 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(); - } -}); - -Ext.WindowGroup = function(){ - var list = {}; - var accessList = []; - var front = null; - - - var sortWindows = function(d1, d2){ - return (!d1._lastAccess || d1._lastAccess < d2._lastAccess) ? -1 : 1; - }; - - - 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(); - }; - - - var setActiveWin = function(win){ - if(win != front){ - if(front){ - front.setActive(false); - } - front = win; - if(win){ - win.setActive(true); - } - } - }; - - - var activateLast = function(){ - for(var i = accessList.length-1; i >=0; --i) { - if(!accessList[i].hidden){ - setActiveWin(accessList[i]); - return; - } - } - - setActiveWin(null); - }; - - return { - - zseed : 9000, - - - register : function(win){ - if(win.manager){ - win.manager.unregister(win); - } - win.manager = this; - - list[win.id] = win; - accessList.push(win); - win.on('hide', activateLast); - }, - - - unregister : function(win){ - delete win.manager; - delete list[win.id]; - win.un('hide', activateLast); - accessList.remove(win); - }, - - - get : function(id){ - return typeof id == "object" ? id : list[id]; - }, - - - bringToFront : function(win){ - win = this.get(win); - if(win != front){ - win._lastAccess = new Date().getTime(); - orderWindows(); - return true; - } - return false; - }, - - - sendToBack : function(win){ - win = this.get(win); - win._lastAccess = -(new Date().getTime()); - orderWindows(); - return win; - }, - - - hideAll : function(){ - for(var id in list){ - if(list[id] && typeof list[id] != "function" && list[id].isVisible()){ - list[id].hide(); - } - } - }, - - - getActive : function(){ - return front; - }, - - - 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; - }, - - - 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; - } - } - } - } - }; -}; - - - -Ext.WindowMgr = new Ext.WindowGroup(); -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']; - - - 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); - } - }; - - - var handleHide = function(){ - if(opt && opt.cls){ - dlg.el.removeClass(opt.cls); - } - progressBar.reset(); - }; - - - var handleEsc = function(d, k, e){ - if(opt && opt.closable !== false){ - dlg.hide(); - handleHide(); - } - if(e){ - e.stopEvent(); - } - }; - - - 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 { - - 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; - }, - - - updateText : function(text){ - if(!dlg.isVisible() && !opt.width){ - dlg.setSize(this.maxWidth, 100); - } - - msgEl.update(text ? 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; - - 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; - } - msgEl.update(text || ' '); - dlg.setSize(w, 'auto').center(); - return this; - }, - - - updateProgress : function(value, progressText, msg){ - progressBar.updateProgress(value, progressText); - if(msg){ - this.updateText(msg); - } - return this; - }, - - - isVisible : function(){ - return dlg && dlg.isVisible(); - }, - - - hide : function(){ - var proxy = dlg ? dlg.activeGhost : null; - if(this.isVisible() || proxy){ - dlg.hide(); - handleHide(); - if (proxy){ - - - dlg.unghost(false, false); - } - } - return 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(Ext.isDefined(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()){ - - document.body.appendChild(dlg.el.dom); - d.setAnimateTarget(opt.animEl); - - 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; - }, - - - 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; - }, - - - progress : function(title, msg, progressText){ - this.show({ - title : title, - msg : msg, - buttons: false, - progress:true, - closable:false, - minWidth: this.minProgressWidth, - progressText: progressText - }); - return 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; - }, - - - alert : function(title, msg, fn, scope){ - this.show({ - title : title, - msg : msg, - buttons: this.OK, - fn: fn, - scope : scope, - minWidth: this.minWidth - }); - return 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; - }, - - - 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; - }, - - - 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 = Ext.extend(Object, { - - constructor : function(panel, config){ - this.panel = panel; - this.id = this.panel.id +'-ddproxy'; - Ext.apply(this, config); - }, - - - 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(this.panel.initialConfig.cls, 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(xy, callback, scope){ - this.hide(); - if(typeof callback == "function"){ - callback.call(scope || this); - } - }, - - - moveProxy : function(parentNode, before){ - if(this.proxy){ - parentNode.insertBefore(this.proxy.dom, before); - } - } -}); - - -Ext.Panel.DD = Ext.extend(Ext.dd.DragSource, { - - constructor : 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, - el = panel.body; - if(h){ - this.setHandleElId(h.id); - el = panel.header; - } - el.setStyle('cursor', 'move'); - this.scroll = false; - }, - - showFrame: Ext.emptyFn, - startDrag: Ext.emptyFn, - b4StartDrag: function(x, y) { - this.proxy.show(); - }, - b4MouseDown: function(e) { - var x = e.getPageX(), - 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.state.Provider = Ext.extend(Ext.util.Observable, { - - constructor : function(){ - - this.addEvents("statechange"); - this.state = {}; - Ext.state.Provider.superclass.constructor.call(this); - }, - - - get : function(name, defaultValue){ - return typeof this.state[name] == "undefined" ? - defaultValue : this.state[name]; - }, - - - clear : function(name){ - delete this.state[name]; - this.fireEvent("statechange", this, name, null); - }, - - - set : function(name, value){ - this.state[name] = value; - this.fireEvent("statechange", this, name, value); - }, - - - decodeValue : function(cookie){ - - var re = /^(a|n|d|b|s|o|e)\:(.*)$/, - matches = re.exec(unescape(cookie)), - all, - type, - v, - kv; - if(!matches || !matches[1]){ - return; - } - type = matches[1]; - v = matches[2]; - switch(type){ - case 'e': - return null; - case 'n': - return parseFloat(v); - case 'd': - return new Date(Date.parse(v)); - case 'b': - return (v == '1'); - case 'a': - all = []; - if(v != ''){ - Ext.each(v.split('^'), function(val){ - all.push(this.decodeValue(val)); - }, this); - } - return all; - case 'o': - all = {}; - if(v != ''){ - Ext.each(v.split('^'), function(val){ - kv = val.split('='); - all[kv[0]] = this.decodeValue(kv[1]); - }, this); - } - return all; - default: - return v; - } - }, - - - encodeValue : function(v){ - var enc, - flat = '', - i = 0, - len, - key; - if(v == null){ - return 'e:1'; - }else if(typeof v == 'number'){ - enc = 'n:' + v; - }else if(typeof v == 'boolean'){ - enc = 'b:' + (v ? '1' : '0'); - }else if(Ext.isDate(v)){ - enc = 'd:' + v.toGMTString(); - }else if(Ext.isArray(v)){ - for(len = v.length; i < len; i++){ - flat += this.encodeValue(v[i]); - if(i != len - 1){ - flat += '^'; - } - } - enc = 'a:' + flat; - }else if(typeof v == 'object'){ - for(key in v){ - if(typeof v[key] != 'function' && v[key] !== undefined){ - flat += key + '=' + this.encodeValue(v[key]) + '^'; - } - } - enc = 'o:' + flat.substring(0, flat.length-1); - }else{ - enc = 's:' + v; - } - return escape(enc); - } -}); - -Ext.state.Manager = function(){ - var provider = new Ext.state.Provider(); - - return { - - setProvider : function(stateProvider){ - provider = stateProvider; - }, - - - get : function(key, defaultValue){ - return provider.get(key, defaultValue); - }, - - - set : function(key, value){ - provider.set(key, value); - }, - - - clear : function(key){ - provider.clear(key); - }, - - - getProvider : function(){ - return provider; - } - }; -}(); - -Ext.state.CookieProvider = Ext.extend(Ext.state.Provider, { - - constructor : function(config){ - Ext.state.CookieProvider.superclass.constructor.call(this); - this.path = "/"; - this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); - this.domain = null; - this.secure = false; - Ext.apply(this, config); - this.state = this.readCookies(); - }, - - - set : function(name, value){ - if(typeof value == "undefined" || value === null){ - this.clear(name); - return; - } - this.setCookie(name, value); - Ext.state.CookieProvider.superclass.set.call(this, name, value); - }, - - - clear : function(name){ - this.clearCookie(name); - Ext.state.CookieProvider.superclass.clear.call(this, name); - }, - - - readCookies : function(){ - var cookies = {}, - c = document.cookie + ";", - re = /\s?(.*?)=(.*?);/g, - matches, - name, - value; - while((matches = re.exec(c)) != null){ - name = matches[1]; - value = matches[2]; - if(name && name.substring(0,3) == "ys-"){ - cookies[name.substr(3)] = this.decodeValue(value); - } - } - return cookies; - }, - - - setCookie : function(name, value){ - document.cookie = "ys-"+ name + "=" + this.encodeValue(value) + - ((this.expires == null) ? "" : ("; expires=" + this.expires.toGMTString())) + - ((this.path == null) ? "" : ("; path=" + this.path)) + - ((this.domain == null) ? "" : ("; domain=" + this.domain)) + - ((this.secure == true) ? "; secure" : ""); - }, - - - clearCookie : function(name){ - document.cookie = "ys-" + name + "=null; expires=Thu, 01-Jan-70 00:00:01 GMT" + - ((this.path == null) ? "" : ("; path=" + this.path)) + - ((this.domain == null) ? "" : ("; domain=" + this.domain)) + - ((this.secure == true) ? "; secure" : ""); - } -}); -Ext.DataView = Ext.extend(Ext.BoxComponent, { - - - - - - - - - - selectedClass : "x-view-selected", - - emptyText : "", - - - deferEmptyText: true, - - trackOver: false, - - - blockRefresh: false, - - - last: false, - - - initComponent : function(){ - Ext.DataView.superclass.initComponent.call(this); - if(Ext.isString(this.tpl) || Ext.isArray(this.tpl)){ - this.tpl = new Ext.XTemplate(this.tpl); - } - - this.addEvents( - - "beforeclick", - - "click", - - "mouseenter", - - "mouseleave", - - "containerclick", - - "dblclick", - - "contextmenu", - - "containercontextmenu", - - "selectionchange", - - - "beforeselect" - ); - - this.store = Ext.StoreMgr.lookup(this.store); - this.all = new Ext.CompositeElementLite(); - this.selected = new Ext.CompositeElementLite(); - }, - - - afterRender : function(){ - Ext.DataView.superclass.afterRender.call(this); - - this.mon(this.getTemplateTarget(), { - "click": this.onClick, - "dblclick": this.onDblClick, - "contextmenu": this.onContextMenu, - scope:this - }); - - if(this.overClass || this.trackOver){ - this.mon(this.getTemplateTarget(), { - "mouseover": this.onMouseOver, - "mouseout": this.onMouseOut, - scope:this - }); - } - - if(this.store){ - this.bindStore(this.store, true); - } - }, - - - refresh : function() { - this.clearSelections(false, true); - var el = this.getTemplateTarget(), - records = this.store.getRange(); - - el.update(''); - if(records.length < 1){ - if(!this.deferEmptyText || this.hasSkippedEmptyText){ - el.update(this.emptyText); - } - this.all.clear(); - }else{ - this.tpl.overwrite(el, this.collectData(records, 0)); - this.all.fill(Ext.query(this.itemSelector, el.dom)); - this.updateIndexes(0); - } - this.hasSkippedEmptyText = true; - }, - - getTemplateTarget: function(){ - return this.el; - }, - - - prepareData : function(data){ - return data; - }, - - - collectData : function(records, startIndex){ - var r = [], - i = 0, - len = records.length; - for(; i < len; i++){ - r[r.length] = this.prepareData(records[i].data, startIndex + i, records[i]); - } - return r; - }, - - - bufferRender : function(records, index){ - var div = document.createElement('div'); - this.tpl.overwrite(div, this.collectData(records, index)); - return Ext.query(this.itemSelector, div); - }, - - - onUpdate : function(ds, record){ - var index = this.store.indexOf(record); - if(index > -1){ - var sel = this.isSelected(index), - original = this.all.elements[index], - node = this.bufferRender([record], index)[0]; - - this.all.replaceElement(index, node, true); - if(sel){ - this.selected.replaceElement(original, node); - this.all.item(index).addClass(this.selectedClass); - } - this.updateIndexes(index, index); - } - }, - - - onAdd : function(ds, records, index){ - if(this.all.getCount() === 0){ - this.refresh(); - return; - } - var nodes = this.bufferRender(records, index), n, a = this.all.elements; - if(index < this.all.getCount()){ - n = this.all.item(index).insertSibling(nodes, 'before', true); - a.splice.apply(a, [index, 0].concat(nodes)); - }else{ - n = this.all.last().insertSibling(nodes, 'after', true); - a.push.apply(a, nodes); - } - this.updateIndexes(index); - }, - - - onRemove : function(ds, record, index){ - this.deselect(index); - this.all.removeElement(index, true); - this.updateIndexes(index); - if (this.store.getCount() === 0){ - this.refresh(); - } - }, - - - refreshNode : function(index){ - this.onUpdate(this.store, this.store.getAt(index)); - }, - - - updateIndexes : function(startIndex, endIndex){ - var ns = this.all.elements; - startIndex = startIndex || 0; - endIndex = endIndex || ((endIndex === 0) ? 0 : (ns.length - 1)); - for(var i = startIndex; i <= endIndex; i++){ - ns[i].viewIndex = i; - } - }, - - - getStore : function(){ - return this.store; - }, - - - bindStore : function(store, initial){ - if(!initial && this.store){ - if(store !== this.store && this.store.autoDestroy){ - this.store.destroy(); - }else{ - this.store.un("beforeload", this.onBeforeLoad, this); - this.store.un("datachanged", this.onDataChanged, this); - this.store.un("add", this.onAdd, this); - this.store.un("remove", this.onRemove, this); - this.store.un("update", this.onUpdate, this); - this.store.un("clear", this.refresh, this); - } - if(!store){ - this.store = null; - } - } - if(store){ - store = Ext.StoreMgr.lookup(store); - store.on({ - scope: this, - beforeload: this.onBeforeLoad, - datachanged: this.onDataChanged, - add: this.onAdd, - remove: this.onRemove, - update: this.onUpdate, - clear: this.refresh - }); - } - this.store = store; - if(store){ - this.refresh(); - } - }, - - - onDataChanged: function() { - if (this.blockRefresh !== true) { - this.refresh.apply(this, arguments); - } - }, - - - findItemFromChild : function(node){ - return Ext.fly(node).findParent(this.itemSelector, this.getTemplateTarget()); - }, - - - onClick : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()), - index; - if(item){ - index = this.indexOf(item); - if(this.onItemClick(item, index, e) !== false){ - this.fireEvent("click", this, index, item, e); - } - }else{ - if(this.fireEvent("containerclick", this, e) !== false){ - this.onContainerClick(e); - } - } - }, - - onContainerClick : function(e){ - this.clearSelections(); - }, - - - onContextMenu : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item){ - this.fireEvent("contextmenu", this, this.indexOf(item), item, e); - }else{ - this.fireEvent("containercontextmenu", this, e); - } - }, - - - onDblClick : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item){ - this.fireEvent("dblclick", this, this.indexOf(item), item, e); - } - }, - - - onMouseOver : function(e){ - var item = e.getTarget(this.itemSelector, this.getTemplateTarget()); - if(item && item !== this.lastItem){ - this.lastItem = item; - Ext.fly(item).addClass(this.overClass); - this.fireEvent("mouseenter", this, this.indexOf(item), item, e); - } - }, - - - onMouseOut : function(e){ - if(this.lastItem){ - if(!e.within(this.lastItem, true, true)){ - Ext.fly(this.lastItem).removeClass(this.overClass); - this.fireEvent("mouseleave", this, this.indexOf(this.lastItem), this.lastItem, e); - delete this.lastItem; - } - } - }, - - - onItemClick : function(item, index, e){ - if(this.fireEvent("beforeclick", this, index, item, e) === false){ - return false; - } - if(this.multiSelect){ - this.doMultiSelection(item, index, e); - e.preventDefault(); - }else if(this.singleSelect){ - this.doSingleSelection(item, index, e); - e.preventDefault(); - } - return true; - }, - - - doSingleSelection : function(item, index, e){ - if(e.ctrlKey && this.isSelected(index)){ - this.deselect(index); - }else{ - this.select(index, false); - } - }, - - - doMultiSelection : function(item, index, e){ - if(e.shiftKey && this.last !== false){ - var last = this.last; - this.selectRange(last, index, e.ctrlKey); - this.last = last; - }else{ - if((e.ctrlKey||this.simpleSelect) && this.isSelected(index)){ - this.deselect(index); - }else{ - this.select(index, e.ctrlKey || e.shiftKey || this.simpleSelect); - } - } - }, - - - getSelectionCount : function(){ - return this.selected.getCount(); - }, - - - getSelectedNodes : function(){ - return this.selected.elements; - }, - - - getSelectedIndexes : function(){ - var indexes = [], - selected = this.selected.elements, - i = 0, - len = selected.length; - - for(; i < len; i++){ - indexes.push(selected[i].viewIndex); - } - return indexes; - }, - - - getSelectedRecords : function(){ - return this.getRecords(this.selected.elements); - }, - - - getRecords : function(nodes){ - var records = [], - i = 0, - len = nodes.length; - - for(; i < len; i++){ - records[records.length] = this.store.getAt(nodes[i].viewIndex); - } - return records; - }, - - - getRecord : function(node){ - return this.store.getAt(node.viewIndex); - }, - - - clearSelections : function(suppressEvent, skipUpdate){ - if((this.multiSelect || this.singleSelect) && this.selected.getCount() > 0){ - if(!skipUpdate){ - this.selected.removeClass(this.selectedClass); - } - this.selected.clear(); - this.last = false; - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } - }, - - - isSelected : function(node){ - return this.selected.contains(this.getNode(node)); - }, - - - deselect : function(node){ - if(this.isSelected(node)){ - node = this.getNode(node); - this.selected.removeElement(node); - if(this.last == node.viewIndex){ - this.last = false; - } - Ext.fly(node).removeClass(this.selectedClass); - this.fireEvent("selectionchange", this, this.selected.elements); - } - }, - - - select : function(nodeInfo, keepExisting, suppressEvent){ - if(Ext.isArray(nodeInfo)){ - if(!keepExisting){ - this.clearSelections(true); - } - for(var i = 0, len = nodeInfo.length; i < len; i++){ - this.select(nodeInfo[i], true, true); - } - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } else{ - var node = this.getNode(nodeInfo); - if(!keepExisting){ - this.clearSelections(true); - } - if(node && !this.isSelected(node)){ - if(this.fireEvent("beforeselect", this, node, this.selected.elements) !== false){ - Ext.fly(node).addClass(this.selectedClass); - this.selected.add(node); - this.last = node.viewIndex; - if(!suppressEvent){ - this.fireEvent("selectionchange", this, this.selected.elements); - } - } - } - } - }, - - - selectRange : function(start, end, keepExisting){ - if(!keepExisting){ - this.clearSelections(true); - } - this.select(this.getNodes(start, end), true); - }, - - - getNode : function(nodeInfo){ - if(Ext.isString(nodeInfo)){ - return document.getElementById(nodeInfo); - }else if(Ext.isNumber(nodeInfo)){ - return this.all.elements[nodeInfo]; - }else if(nodeInfo instanceof Ext.data.Record){ - var idx = this.store.indexOf(nodeInfo); - return this.all.elements[idx]; - } - return nodeInfo; - }, - - - getNodes : function(start, end){ - var ns = this.all.elements, - nodes = [], - i; - - start = start || 0; - end = !Ext.isDefined(end) ? Math.max(ns.length - 1, 0) : end; - if(start <= end){ - for(i = start; i <= end && ns[i]; i++){ - nodes.push(ns[i]); - } - } else{ - for(i = start; i >= end && ns[i]; i--){ - nodes.push(ns[i]); - } - } - return nodes; - }, - - - indexOf : function(node){ - node = this.getNode(node); - if(Ext.isNumber(node.viewIndex)){ - return node.viewIndex; - } - return this.all.indexOf(node); - }, - - - onBeforeLoad : function(){ - if(this.loadingText){ - this.clearSelections(false, true); - this.getTemplateTarget().update('
      '+this.loadingText+'
      '); - this.all.clear(); - } - }, - - onDestroy : function(){ - this.all.clear(); - this.selected.clear(); - Ext.DataView.superclass.onDestroy.call(this); - this.bindStore(null); - } -}); - - -Ext.DataView.prototype.setStore = Ext.DataView.prototype.bindStore; - -Ext.reg('dataview', Ext.DataView); - -Ext.list.ListView = Ext.extend(Ext.DataView, { - - - - itemSelector: 'dl', - - selectedClass:'x-list-selected', - - overClass:'x-list-over', - - - scrollOffset : undefined, - - columnResize: true, - - - columnSort: true, - - - - maxColumnWidth: Ext.isIE ? 99 : 100, - - initComponent : function(){ - if(this.columnResize){ - this.colResizer = new Ext.list.ColumnResizer(this.colResizer); - this.colResizer.init(this); - } - if(this.columnSort){ - this.colSorter = new Ext.list.Sorter(this.columnSort); - this.colSorter.init(this); - } - if(!this.internalTpl){ - this.internalTpl = new Ext.XTemplate( - '
      ', - '', - '
      ', - '{header}', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ' - ); - } - if(!this.tpl){ - this.tpl = new Ext.XTemplate( - '', - '
      ', - '', - '
      ', - ' class="{cls}">', - '{[values.tpl.apply(parent)]}', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ' - ); - }; - - var cs = this.columns, - allocatedWidth = 0, - colsWithWidth = 0, - len = cs.length, - columns = []; - - for(var i = 0; i < len; i++){ - var c = cs[i]; - if(!c.isColumn) { - c.xtype = c.xtype ? (/^lv/.test(c.xtype) ? c.xtype : 'lv' + c.xtype) : 'lvcolumn'; - c = Ext.create(c); - } - if(c.width) { - allocatedWidth += c.width*100; - if(allocatedWidth > this.maxColumnWidth){ - c.width -= (allocatedWidth - this.maxColumnWidth) / 100; - } - colsWithWidth++; - } - columns.push(c); - } - - cs = this.columns = columns; - - - if(colsWithWidth < len){ - var remaining = len - colsWithWidth; - if(allocatedWidth < this.maxColumnWidth){ - var perCol = ((this.maxColumnWidth-allocatedWidth) / remaining)/100; - for(var j = 0; j < len; j++){ - var c = cs[j]; - if(!c.width){ - c.width = perCol; - } - } - } - } - Ext.list.ListView.superclass.initComponent.call(this); - }, - - onRender : function(){ - this.autoEl = { - cls: 'x-list-wrap' - }; - Ext.list.ListView.superclass.onRender.apply(this, arguments); - - this.internalTpl.overwrite(this.el, {columns: this.columns}); - - this.innerBody = Ext.get(this.el.dom.childNodes[1].firstChild); - this.innerHd = Ext.get(this.el.dom.firstChild.firstChild); - - if(this.hideHeaders){ - this.el.dom.firstChild.style.display = 'none'; - } - }, - - getTemplateTarget : function(){ - return this.innerBody; - }, - - - collectData : function(){ - var rs = Ext.list.ListView.superclass.collectData.apply(this, arguments); - return { - columns: this.columns, - rows: rs - }; - }, - - verifyInternalSize : function(){ - if(this.lastSize){ - this.onResize(this.lastSize.width, this.lastSize.height); - } - }, - - - onResize : function(w, h){ - var body = this.innerBody.dom, - header = this.innerHd.dom, - scrollWidth = w - Ext.num(this.scrollOffset, Ext.getScrollBarWidth()) + 'px', - parentNode; - - if(!body){ - return; - } - parentNode = body.parentNode; - if(Ext.isNumber(w)){ - if(this.reserveScrollOffset || ((parentNode.offsetWidth - parentNode.clientWidth) > 10)){ - body.style.width = scrollWidth; - header.style.width = scrollWidth; - }else{ - body.style.width = w + 'px'; - header.style.width = w + 'px'; - setTimeout(function(){ - if((parentNode.offsetWidth - parentNode.clientWidth) > 10){ - body.style.width = scrollWidth; - header.style.width = scrollWidth; - } - }, 10); - } - } - if(Ext.isNumber(h)){ - parentNode.style.height = Math.max(0, h - header.parentNode.offsetHeight) + 'px'; - } - }, - - updateIndexes : function(){ - Ext.list.ListView.superclass.updateIndexes.apply(this, arguments); - this.verifyInternalSize(); - }, - - findHeaderIndex : function(header){ - header = header.dom || header; - var parentNode = header.parentNode, - children = parentNode.parentNode.childNodes, - i = 0, - c; - for(; c = children[i]; i++){ - if(c == parentNode){ - return i; - } - } - return -1; - }, - - setHdWidths : function(){ - var els = this.innerHd.dom.getElementsByTagName('div'), - i = 0, - columns = this.columns, - len = columns.length; - - for(; i < len; i++){ - els[i].style.width = (columns[i].width*100) + '%'; - } - } -}); - -Ext.reg('listview', Ext.list.ListView); - - -Ext.ListView = Ext.list.ListView; -Ext.list.Column = Ext.extend(Object, { - - isColumn: true, - - - align: 'left', - - header: '', - - - width: null, - - - cls: '', - - - - - - constructor : function(c){ - if(!c.tpl){ - c.tpl = new Ext.XTemplate('{' + c.dataIndex + '}'); - } - else if(Ext.isString(c.tpl)){ - c.tpl = new Ext.XTemplate(c.tpl); - } - - Ext.apply(this, c); - } -}); - -Ext.reg('lvcolumn', Ext.list.Column); - - -Ext.list.NumberColumn = Ext.extend(Ext.list.Column, { - - format: '0,000.00', - - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':number("' + (c.format || this.format) + '")}'); - Ext.list.NumberColumn.superclass.constructor.call(this, c); - } -}); - -Ext.reg('lvnumbercolumn', Ext.list.NumberColumn); - - -Ext.list.DateColumn = Ext.extend(Ext.list.Column, { - format: 'm/d/Y', - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':date("' + (c.format || this.format) + '")}'); - Ext.list.DateColumn.superclass.constructor.call(this, c); - } -}); -Ext.reg('lvdatecolumn', Ext.list.DateColumn); - - -Ext.list.BooleanColumn = Ext.extend(Ext.list.Column, { - - trueText: 'true', - - falseText: 'false', - - undefinedText: ' ', - - constructor : function(c) { - c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':this.format}'); - - var t = this.trueText, f = this.falseText, u = this.undefinedText; - c.tpl.format = function(v){ - if(v === undefined){ - return u; - } - if(!v || v === 'false'){ - return f; - } - return t; - }; - - Ext.list.DateColumn.superclass.constructor.call(this, c); - } -}); - -Ext.reg('lvbooleancolumn', Ext.list.BooleanColumn); -Ext.list.ColumnResizer = Ext.extend(Ext.util.Observable, { - - minPct: .05, - - constructor: function(config){ - Ext.apply(this, config); - Ext.list.ColumnResizer.superclass.constructor.call(this); - }, - init : function(listView){ - this.view = listView; - listView.on('render', this.initEvents, this); - }, - - initEvents : function(view){ - view.mon(view.innerHd, 'mousemove', this.handleHdMove, this); - this.tracker = new Ext.dd.DragTracker({ - onBeforeStart: this.onBeforeStart.createDelegate(this), - onStart: this.onStart.createDelegate(this), - onDrag: this.onDrag.createDelegate(this), - onEnd: this.onEnd.createDelegate(this), - tolerance: 3, - autoStart: 300 - }); - this.tracker.initEl(view.innerHd); - view.on('beforedestroy', this.tracker.destroy, this.tracker); - }, - - handleHdMove : function(e, t){ - var handleWidth = 5, - x = e.getPageX(), - header = e.getTarget('em', 3, true); - if(header){ - var region = header.getRegion(), - style = header.dom.style, - parentNode = header.dom.parentNode; - - if(x - region.left <= handleWidth && parentNode != parentNode.parentNode.firstChild){ - this.activeHd = Ext.get(parentNode.previousSibling.firstChild); - style.cursor = Ext.isWebKit ? 'e-resize' : 'col-resize'; - } else if(region.right - x <= handleWidth && parentNode != parentNode.parentNode.lastChild.previousSibling){ - this.activeHd = header; - style.cursor = Ext.isWebKit ? 'w-resize' : 'col-resize'; - } else{ - delete this.activeHd; - style.cursor = ''; - } - } - }, - - onBeforeStart : function(e){ - this.dragHd = this.activeHd; - return !!this.dragHd; - }, - - onStart: function(e){ - - var me = this, - view = me.view, - dragHeader = me.dragHd, - x = me.tracker.getXY()[0]; - - me.proxy = view.el.createChild({cls:'x-list-resizer'}); - me.dragX = dragHeader.getX(); - me.headerIndex = view.findHeaderIndex(dragHeader); - - me.headersDisabled = view.disableHeaders; - view.disableHeaders = true; - - me.proxy.setHeight(view.el.getHeight()); - me.proxy.setX(me.dragX); - me.proxy.setWidth(x - me.dragX); - - this.setBoundaries(); - - }, - - - setBoundaries: function(relativeX){ - var view = this.view, - headerIndex = this.headerIndex, - width = view.innerHd.getWidth(), - relativeX = view.innerHd.getX(), - minWidth = Math.ceil(width * this.minPct), - maxWidth = width - minWidth, - numColumns = view.columns.length, - headers = view.innerHd.select('em', true), - minX = minWidth + relativeX, - maxX = maxWidth + relativeX, - header; - - if (numColumns == 2) { - this.minX = minX; - this.maxX = maxX; - }else{ - header = headers.item(headerIndex + 2); - this.minX = headers.item(headerIndex).getX() + minWidth; - this.maxX = header ? header.getX() - minWidth : maxX; - if (headerIndex == 0) { - - this.minX = minX; - } else if (headerIndex == numColumns - 2) { - - this.maxX = maxX; - } - } - }, - - onDrag: function(e){ - var me = this, - cursorX = me.tracker.getXY()[0].constrain(me.minX, me.maxX); - - me.proxy.setWidth(cursorX - this.dragX); - }, - - onEnd: function(e){ - - var newWidth = this.proxy.getWidth(), - index = this.headerIndex, - view = this.view, - columns = view.columns, - width = view.innerHd.getWidth(), - newPercent = Math.ceil(newWidth * view.maxColumnWidth / width) / 100, - disabled = this.headersDisabled, - headerCol = columns[index], - otherCol = columns[index + 1], - totalPercent = headerCol.width + otherCol.width; - - this.proxy.remove(); - - headerCol.width = newPercent; - otherCol.width = totalPercent - newPercent; - - delete this.dragHd; - view.setHdWidths(); - view.refresh(); - - setTimeout(function(){ - view.disableHeaders = disabled; - }, 100); - } -}); - - -Ext.ListView.ColumnResizer = Ext.list.ColumnResizer; -Ext.list.Sorter = Ext.extend(Ext.util.Observable, { - - sortClasses : ["sort-asc", "sort-desc"], - - constructor: function(config){ - Ext.apply(this, config); - Ext.list.Sorter.superclass.constructor.call(this); - }, - - init : function(listView){ - this.view = listView; - listView.on('render', this.initEvents, this); - }, - - initEvents : function(view){ - view.mon(view.innerHd, 'click', this.onHdClick, this); - view.innerHd.setStyle('cursor', 'pointer'); - view.mon(view.store, 'datachanged', this.updateSortState, this); - this.updateSortState.defer(10, this, [view.store]); - }, - - updateSortState : function(store){ - var state = store.getSortState(); - if(!state){ - return; - } - this.sortState = state; - var cs = this.view.columns, sortColumn = -1; - for(var i = 0, len = cs.length; i < len; i++){ - if(cs[i].dataIndex == state.field){ - sortColumn = i; - break; - } - } - if(sortColumn != -1){ - var sortDir = state.direction; - this.updateSortIcon(sortColumn, sortDir); - } - }, - - updateSortIcon : function(col, dir){ - var sc = this.sortClasses; - var hds = this.view.innerHd.select('em').removeClass(sc); - hds.item(col).addClass(sc[dir == "DESC" ? 1 : 0]); - }, - - onHdClick : function(e){ - var hd = e.getTarget('em', 3); - if(hd && !this.view.disableHeaders){ - var index = this.view.findHeaderIndex(hd); - this.view.store.sort(this.view.columns[index].dataIndex); - } - } -}); - - -Ext.ListView.Sorter = Ext.list.Sorter; -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(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); - - - 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 tt = new Ext.Template( - '
    • ', - '', - '{text}', - '
    • ' - ); - tt.disableFormats = true; - tt.compile(); - Ext.TabPanel.prototype.itemTpl = tt; - } - - 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 item = Ext.isObject(this.activeTab) ? this.activeTab : this.items.get(this.activeTab); - delete this.activeTab; - this.setActiveTab(item); - } - }, - - - 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(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 - }; - }, - - - 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); - } - }, - - - onStripContextMenu : function(e){ - e.preventDefault(); - var t = this.findTargets(e); - if(t.item){ - this.fireEvent('contextmenu', this, t.item, e); - } - }, - - - 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 - }); - } - }, - - - 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; - - - 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 - }); - }, - - - - - 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 || '' - }; - }, - - - 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(); - } - }, - - - 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); - }, - - - onRemove : function(c){ - var te = Ext.get(c.tabEl); - - 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(); - } - }, - - - onBeforeShowItem : function(item){ - if(item != this.activeTab){ - this.setActiveTab(item); - return false; - } - }, - - - onItemDisabled : function(item){ - var el = this.getTabEl(item); - if(el){ - Ext.fly(el).addClass('x-item-disabled'); - } - this.stack.remove(item); - }, - - - onItemEnabled : function(item){ - var el = this.getTabEl(item); - if(el){ - Ext.fly(el).removeClass('x-item-disabled'); - } - }, - - - onItemTitleChanged : function(item){ - var el = this.getTabEl(item); - if(el){ - Ext.fly(el).child('span.x-tab-strip-text', true).innerHTML = item.title; - } - }, - - - 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'); - } - }, - - - getTabEl : function(item){ - var c = this.getComponent(item); - return c ? c.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(item){ - item = this.getComponent(item); - var el = this.getTabEl(item); - if(el){ - el.style.display = 'none'; - this.delegateUpdates(); - } - this.stack.remove(item); - }, - - - unhideTabStripItem : function(item){ - item = this.getComponent(item); - var el = this.getTabEl(item); - if(el){ - el.style.display = ''; - this.delegateUpdates(); - } - }, - - - delegateUpdates : function(){ - var rendered = this.rendered; - if(this.suspendUpdates){ - return; - } - if(this.resizeTabs && rendered){ - this.autoSizeTabs(); - } - if(this.enableTabScroll && rendered){ - this.autoScrollTabs(); - } - }, - - - 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){ - return; - } - - var each = Math.max(Math.min(Math.floor((aw-4) / count) - this.tabMargin, this.tabWidth), this.minTabWidth); - 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'; - } - }, - - - adjustBodyWidth : function(w){ - if(this.header){ - this.header.setWidth(w); - } - if(this.footer){ - this.footer.setWidth(w); - } - return w; - }, - - - 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); - - this.delegateUpdates(); - if(this.scrolling){ - this.scrollToTab(item, this.animScroll); - } - } - this.fireEvent('tabchange', this, item); - } - }, - - - getActiveTab : function(){ - return this.activeTab || null; - }, - - - getItem : function(item){ - return this.getComponent(item); - }, - - - 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 || cw < 20){ - return; - } - if(count == 0 || 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(); - - if(Ext.isAir || Ext.isWebKit){ - wd.style.marginLeft = ''; - wd.style.marginRight = ''; - } - } - }else{ - if(!this.scrolling){ - this.pos.addClass('x-tab-scrolling'); - - 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)){ - wd.scrollLeft = l-tw; - }else{ - this.scrollToTab(this.activeTab, false); - } - this.updateScrollButtons(); - } - }, - - - createScrollers : function(){ - this.pos.addClass('x-tab-scrolling-' + this.tabPosition); - var h = this.stripWrap.dom.offsetHeight; - - - 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; - - - 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; - }, - - - 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(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); - } - }, - - - 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); - } - }, - - - 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); - } - }, - - - onScrollLeft : function(){ - var pos = this.getScrollPos(), - s = Math.max(0, pos - this.getScrollIncrement()); - if(s != pos){ - this.scrollTo(s, this.animScroll); - } - }, - - - 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'); - }, - - - 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 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.Button = Ext.extend(Ext.BoxComponent, { - - hidden : false, - - disabled : false, - - pressed : false, - - - - - - - enableToggle : false, - - - - menuAlign : 'tl-bl?', - - - - - type : 'button', - - - menuClassTarget : 'tr:nth(2)', - - - clickEvent : 'click', - - - handleMouseEvents : true, - - - tooltipType : 'qtip', - - - buttonSelector : 'button:first-child', - - - scale : 'small', - - - - - iconAlign : 'left', - - - arrowAlign : 'right', - - - - - - - initComponent : function(){ - if(this.menu){ - - - if (Ext.isArray(this.menu)){ - this.menu = { items: this.menu }; - } - - - - if (Ext.isObject(this.menu)){ - this.menu.ownerCt = this; - } - - this.menu = Ext.menu.MenuMgr.get(this.menu); - this.menu.ownerCt = undefined; - } - - Ext.Button.superclass.initComponent.call(this); - - this.addEvents( - - 'click', - - 'toggle', - - 'mouseover', - - 'mouseout', - - 'menushow', - - 'menuhide', - - 'menutriggerover', - - 'menutriggerout' - ); - - if(Ext.isString(this.toggleGroup)){ - this.enableToggle = true; - } - }, - - - getTemplateArgs : function(){ - return [this.type, 'x-btn-' + this.scale + ' x-btn-icon-' + this.scale + '-' + this.iconAlign, this.getMenuClass(), this.cls, this.id]; - }, - - - 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]); - } - }, - - - getMenuClass : function(){ - return this.menu ? (this.arrowAlign != 'bottom' ? 'x-btn-arrow' : 'x-btn-arrow-bottom') : ''; - }, - - - onRender : function(ct, position){ - if(!this.template){ - if(!Ext.Button.buttonTemplate){ - - 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); - } - - 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); - }, - - - 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 - }); - - - - } - - 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.onRepeatClick, this); - }else{ - this.mon(btn, 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(cls){ - this.iconCls = cls; - if(this.el){ - this.btnEl.dom.className = ''; - this.btnEl.addClass(['x-btn-text', cls || '']); - this.setButtonClass(); - } - return this; - }, - - - setTooltip : function(tooltip, 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; - }, - - - 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.btnEl, 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 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); - } - } - } - }, - - - setHandler : function(handler, scope){ - this.handler = handler; - this.scope = scope; - return this; - }, - - - setText : function(text){ - this.text = text; - if(this.el){ - this.btnEl.update(text || ' '); - this.setButtonClass(); - } - this.doAutoWidth(); - return this; - }, - - - setIcon : function(icon){ - this.icon = icon; - if(this.el){ - this.btnEl.setStyle('background-image', icon ? 'url(' + icon + ')' : ''); - this.setButtonClass(); - } - return this; - }, - - - getText : function(){ - return this.text; - }, - - - 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; - }, - - - onDisable : function(){ - this.onDisableChange(true); - }, - - - 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; - }, - - - 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; - }, - - - hideMenu : function(){ - if(this.hasVisibleMenu()){ - this.menu.hide(); - } - return this; - }, - - - hasVisibleMenu : function(){ - return this.menu && this.menu.ownerCt == this && this.menu.isVisible(); - }, - - - onRepeatClick : function(repeat, e){ - this.onClick(e); - }, - - - onClick : function(e){ - if(e){ - e.preventDefault(); - } - if(e.button !== 0){ - return; - } - if(!this.disabled){ - this.doToggle(); - if(this.menu && !this.hasVisibleMenu() && !this.ignoreNextClick){ - this.showMenu(); - } - this.fireEvent('click', this, e); - if(this.handler){ - - this.handler.call(this.scope || this, this, e); - } - } - }, - - - doToggle: function(){ - if (this.enableToggle && (this.allowDepress !== false || !this.pressed)) { - this.toggle(); - } - }, - - - isMenuTriggerOver : function(e, internal){ - return this.menu && !internal; - }, - - - isMenuTriggerOut : function(e, internal){ - return this.menu && !internal; - }, - - - 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); - } - } - }, - - - 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); - } - }, - - - 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(); - }, - - - onFocus : function(e){ - if(!this.disabled){ - this.el.addClass('x-btn-focus'); - } - }, - - onBlur : function(e){ - this.el.removeClass('x-btn-focus'); - }, - - - getClickEl : function(e, isUp){ - return this.el; - }, - - - onMouseDown : function(e){ - if(!this.disabled && e.button === 0){ - this.getClickEl(e).addClass('x-btn-click'); - this.doc.on('mouseup', this.onMouseUp, this); - } - }, - - onMouseUp : function(e){ - if(e.button === 0){ - this.getClickEl(e, true).removeClass('x-btn-click'); - this.doc.un('mouseup', this.onMouseUp, this); - } - }, - - 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); - } - }, - - 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; - } - }, - - - restoreClick : function(){ - this.ignoreNextClick = 0; - } - - - - - - - -}); -Ext.reg('button', Ext.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); - } - }, - - - 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; - } - }; -}(); - -Ext.SplitButton = Ext.extend(Ext.Button, { - - arrowSelector : 'em', - split: true, - - - initComponent : function(){ - Ext.SplitButton.superclass.initComponent.call(this); - - this.addEvents("arrowclick"); - }, - - - onRender : function(){ - Ext.SplitButton.superclass.onRender.apply(this, arguments); - if(this.arrowTooltip){ - this.el.child(this.arrowSelector).dom[this.tooltipType] = this.arrowTooltip; - } - }, - - - 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; - } - }, - - - 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{ - this.doToggle(); - this.fireEvent("click", this, e); - if(this.handler){ - this.handler.call(this.scope || this, this, e); - } - } - } - }, - - - isMenuTriggerOver : function(e){ - return this.menu && e.target.tagName == this.arrowSelector; - }, - - - isMenuTriggerOut : function(e, internal){ - return this.menu && e.target.tagName != this.arrowSelector; - } -}); - -Ext.reg('splitbutton', Ext.SplitButton); -Ext.CycleButton = Ext.extend(Ext.SplitButton, { - - - - - - - - - getItemText : function(item){ - if(item && this.showText === true){ - var text = ''; - if(this.prependText){ - text += this.prependText; - } - text += item.text; - return text; - } - return undefined; - }, - - - 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, suppressEvent); - } - if(this.forceIcon){ - this.setIconClass(this.forceIcon); - } - if(!suppressEvent){ - this.fireEvent('change', this, item); - } - } - }, - - - 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 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); - }, - - - checkHandler : function(item, pressed){ - if(pressed){ - this.setActiveItem(item); - } - }, - - - toggleSelected : function(){ - var m = this.menu; - m.render(); - - if(!m.hasLayout){ - m.doLayout(); - } - - var nextIdx, checkItem; - for (var i = 1; i < this.itemCount; i++) { - nextIdx = (this.activeItem.itemIndex + i) % this.itemCount; - - checkItem = m.items.itemAt(nextIdx); - - if (!checkItem.disabled) { - checkItem.setChecked(true); - break; - } - } - } -}); -Ext.reg('cycle', Ext.CycleButton); -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', - - - - enableOverflow : false, - - - - - trackMenus : true, - internalDefaults: {removeMode: 'container', hideParent: true}, - toolbarCls: 'x-toolbar', - - initComponent : function(){ - T.superclass.initComponent.call(this); - - - this.addEvents('overflowchange'); - }, - - - 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); - } - }, - - - - - 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){ - c = this.createComponent(c); - }else if(c.tag){ - c = new T.Item({autoEl: c}); - }else if(c.tagName){ - c = new T.Item({el:c}); - }else if(Ext.isObject(c)){ - c = c.xtype ? this.createComponent(c) : this.constructButton(c); - } - } - return c; - }, - - - 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; - }, - - - addSeparator : function(){ - return this.add(new T.Separator()); - }, - - - addSpacer : function(){ - return this.add(new T.Spacer()); - }, - - - addFill : function(){ - this.add(new T.Fill()); - }, - - - addElement : function(el){ - return this.addItem(new T.Item({el:el})); - }, - - - addItem : function(item){ - return this.add.apply(this, arguments); - }, - - - 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)); - }, - - - addText : function(text){ - return this.addItem(new T.TextItem(text)); - }, - - - addDom : function(config){ - return this.add(new T.Item({autoEl: config})); - }, - - - addField : function(field){ - return this.add(field); - }, - - - 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); - }, - - - 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); - } - }, - - - constructButton : function(item){ - var b = item.events ? item : this.createComponent(item, item.split ? 'splitbutton' : this.defaultType); - return b; - }, - - - onAdd : function(c){ - Ext.Toolbar.superclass.onAdd.call(this); - this.trackMenu(c); - if(this.disabled){ - c.disable(); - } - }, - - - onRemove : function(c){ - Ext.Toolbar.superclass.onRemove.call(this); - if (c == this.activeMenuBtn) { - delete this.activeMenuBtn; - } - this.trackMenu(c, true); - }, - - - onDisable : function(){ - this.items.each(function(item){ - if(item.disable){ - item.disable(); - } - }); - }, - - - onEnable : function(){ - this.items.each(function(item){ - if(item.enable){ - item.enable(); - } - }); - }, - - - onButtonTriggerOver : function(btn){ - if(this.activeMenuBtn && this.activeMenuBtn != btn){ - this.activeMenuBtn.hideMenu(); - btn.showMenu(); - this.activeMenuBtn = btn; - } - }, - - - onButtonMenuShow : function(btn){ - this.activeMenuBtn = btn; - }, - - - onButtonMenuHide : function(btn){ - delete this.activeMenuBtn; - } -}); -Ext.reg('toolbar', Ext.Toolbar); - - -T.Item = Ext.extend(Ext.BoxComponent, { - hideParent: true, - enable:Ext.emptyFn, - disable:Ext.emptyFn, - focus:Ext.emptyFn - -}); -Ext.reg('tbitem', T.Item); - - -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); - - -T.Spacer = Ext.extend(T.Item, { - - - 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); - - -T.Fill = Ext.extend(T.Item, { - - render : Ext.emptyFn, - isFill : true -}); -Ext.reg('tbfill', T.Fill); - - -T.TextItem = Ext.extend(T.Item, { - - - constructor: function(config){ - T.TextItem.superclass.constructor.call(this, Ext.isString(config) ? {text: config} : config); - }, - - - onRender : function(ct, position) { - this.autoEl = {cls: 'xtb-text', html: this.text || ''}; - T.TextItem.superclass.onRender.call(this, ct, position); - }, - - - setText : function(t) { - if(this.rendered){ - this.el.update(t); - }else{ - this.text = t; - } - } -}); -Ext.reg('tbtext', T.TextItem); - - -T.Button = Ext.extend(Ext.Button, {}); -T.SplitButton = Ext.extend(Ext.SplitButton, {}); -Ext.reg('tbbutton', T.Button); -Ext.reg('tbsplit', T.SplitButton); - -})(); - -Ext.ButtonGroup = Ext.extend(Ext.Panel, { - - - baseCls: 'x-btn-group', - - layout:'table', - defaultType: 'button', - - 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()); - } - -}); - -Ext.reg('buttongroup', Ext.ButtonGroup); - -(function() { - -var T = Ext.Toolbar; - -Ext.PagingToolbar = Ext.extend(Ext.Toolbar, { - - - - pageSize : 20, - - - displayMsg : 'Displaying {0} - {1} of {2}', - - emptyMsg : 'No data to display', - - beforePageText : 'Page', - - afterPageText : 'of {0}', - - firstText : 'First Page', - - prevText : 'Previous Page', - - nextText : 'Next Page', - - lastText : 'Last Page', - - refreshText : 'Refresh', - - - - - - - - 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( - - '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 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); - } - }, - - - 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); - }, - - - 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) - }; - }, - - - changePage : function(page){ - this.doLoad(((page-1) * this.pageSize).constrain(0, this.store.getTotalCount())); - }, - - - onLoadError : function(){ - if(!this.rendered){ - return; - } - this.refresh.enable(); - }, - - - 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(); - }, - - - onPagingBlur : function(e){ - this.inputItem.setValue(this.getPageData().activePage); - }, - - - 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); - } - } - } - }, - - - getParams : function(){ - - return this.paramNames || this.store.paramNames; - }, - - - beforeLoad : function(){ - if(this.rendered && this.refresh){ - this.refresh.disable(); - } - }, - - - 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}); - } - }, - - - 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 total = this.store.getTotalCount(), - extra = total % this.pageSize; - - this.doLoad(extra ? (total - extra) : total - this.pageSize); - }, - - - doRefresh : function(){ - this.doLoad(this.cursor); - }, - - - 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, {}); - } - }, - - - unbind : function(store){ - this.bindStore(null); - }, - - - bind : function(store){ - this.bindStore(store); - }, - - - onDestroy : function(){ - this.bindStore(null); - Ext.PagingToolbar.superclass.onDestroy.call(this); - } -}); - -})(); -Ext.reg('paging', Ext.PagingToolbar); -Ext.History = (function () { - var iframe, hiddenField; - var ready = false; - var currentToken; - - function getHash() { - var href = location.href, i = href.indexOf("#"), - hash = i >= 0 ? href.substr(i + 1) : null; - - if (Ext.isGecko) { - hash = decodeURIComponent(hash); - } - return hash; - } - - function doSave() { - hiddenField.value = currentToken; - } - - function handleStateChange(token) { - currentToken = token; - Ext.History.fireEvent('change', token); - } - - function updateIFrame (token) { - var html = ['
      ',Ext.util.Format.htmlEncode(token),'
      '].join(''); - try { - var doc = iframe.contentWindow.document; - doc.open(); - doc.write(html); - doc.close(); - return true; - } catch (e) { - return false; - } - } - - function checkIFrame() { - if (!iframe.contentWindow || !iframe.contentWindow.document) { - setTimeout(checkIFrame, 10); - return; - } - - var doc = iframe.contentWindow.document; - var elem = doc.getElementById("state"); - var token = elem ? elem.innerText : null; - - var hash = getHash(); - - setInterval(function () { - - doc = iframe.contentWindow.document; - elem = doc.getElementById("state"); - - var newtoken = elem ? elem.innerText : null; - - var newHash = getHash(); - - if (newtoken !== token) { - token = newtoken; - handleStateChange(token); - location.hash = token; - hash = token; - doSave(); - } else if (newHash !== hash) { - hash = newHash; - updateIFrame(newHash); - } - - }, 50); - - ready = true; - - Ext.History.fireEvent('ready', Ext.History); - } - - function startUp() { - currentToken = hiddenField.value ? hiddenField.value : getHash(); - - if (Ext.isIE) { - checkIFrame(); - } else { - var hash = getHash(); - setInterval(function () { - var newHash = getHash(); - if (newHash !== hash) { - hash = newHash; - handleStateChange(hash); - doSave(); - } - }, 50); - ready = true; - Ext.History.fireEvent('ready', Ext.History); - } - } - - return { - - fieldId: 'x-history-field', - - iframeId: 'x-history-frame', - - events:{}, - - - init: function (onReady, scope) { - if(ready) { - Ext.callback(onReady, scope, [this]); - return; - } - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.History.init(onReady, scope); - }); - return; - } - hiddenField = Ext.getDom(Ext.History.fieldId); - if (Ext.isIE) { - iframe = Ext.getDom(Ext.History.iframeId); - } - this.addEvents( - - 'ready', - - 'change' - ); - if(onReady){ - this.on('ready', onReady, scope, {single:true}); - } - startUp(); - }, - - - add: function (token, preventDup) { - if(preventDup !== false){ - if(this.getToken() == token){ - return true; - } - } - if (Ext.isIE) { - return updateIFrame(token); - } else { - location.hash = token; - return true; - } - }, - - - back: function(){ - history.go(-1); - }, - - - forward: function(){ - history.go(1); - }, - - - getToken: function() { - return ready ? currentToken : getHash(); - } - }; -})(); -Ext.apply(Ext.History, new Ext.util.Observable()); -Ext.Tip = Ext.extend(Ext.Panel, { - - - - minWidth : 40, - - maxWidth : 300, - - shadow : "sides", - - defaultAlign : "tl-bl?", - autoRender: true, - quickShowInterval : 250, - - - frame:true, - hidden:true, - baseCls: 'x-tip', - floating:{shadow:true,shim:true,useDisplay:true,constrain:false}, - autoHeight:true, - - closeAction: 'hide', - - - initComponent : function(){ - Ext.Tip.superclass.initComponent.call(this); - if(this.closable && !this.title){ - this.elements += ',header'; - } - }, - - - afterRender : function(){ - Ext.Tip.superclass.afterRender.call(this); - if(this.closable){ - this.addTool({ - id: 'close', - handler: this[this.closeAction], - scope: this - }); - } - }, - - - showAt : function(xy){ - Ext.Tip.superclass.show.call(this); - if(this.measureWidth !== false && (!this.initialConfig || typeof this.initialConfig.width != 'number')){ - this.doAutoWidth(); - } - if(this.constrainPosition){ - xy = this.el.adjustForConstraints(xy); - } - this.setPagePosition(xy[0], xy[1]); - }, - - - doAutoWidth : function(adjust){ - adjust = adjust || 0; - var bw = this.body.getTextWidth(); - if(this.title){ - bw = Math.max(bw, this.header.child('span').getTextWidth(this.title)); - } - bw += this.getFrameWidth() + (this.closable ? 20 : 0) + this.body.getPadding("lr") + adjust; - this.setWidth(bw.constrain(this.minWidth, this.maxWidth)); - - - if(Ext.isIE7 && !this.repainted){ - this.el.repaint(); - this.repainted = true; - } - }, - - - showBy : function(el, pos){ - if(!this.rendered){ - this.render(Ext.getBody()); - } - this.showAt(this.el.getAlignToXY(el, pos || this.defaultAlign)); - }, - - initDraggable : function(){ - this.dd = new Ext.Tip.DD(this, typeof this.draggable == 'boolean' ? null : this.draggable); - this.header.addClass('x-tip-draggable'); - } -}); - -Ext.reg('tip', Ext.Tip); - - -Ext.Tip.DD = function(tip, config){ - Ext.apply(this, config); - this.tip = tip; - Ext.Tip.DD.superclass.constructor.call(this, tip.el.id, 'WindowDD-'+tip.id); - this.setHandleElId(tip.header.id); - this.scroll = false; -}; - -Ext.extend(Ext.Tip.DD, Ext.dd.DD, { - moveOnly:true, - scroll:false, - headerOffsets:[100, 25], - startDrag : function(){ - this.tip.el.disableShadow(); - }, - endDrag : function(e){ - this.tip.el.enableShadow(true); - } -}); -Ext.ToolTip = Ext.extend(Ext.Tip, { - - - - - showDelay : 500, - - hideDelay : 200, - - dismissDelay : 5000, - - - trackMouse : false, - - anchorToTarget : true, - - anchorOffset : 0, - - - - targetCounter : 0, - - constrainPosition : false, - - - initComponent : function(){ - Ext.ToolTip.superclass.initComponent.call(this); - this.lastActive = new Date(); - this.initTarget(this.target); - this.origAnchor = this.anchor; - }, - - - onRender : function(ct, position){ - Ext.ToolTip.superclass.onRender.call(this, ct, position); - this.anchorCls = 'x-tip-anchor-' + this.getAnchorPosition(); - this.anchorEl = this.el.createChild({ - cls: 'x-tip-anchor ' + this.anchorCls - }); - }, - - - afterRender : function(){ - Ext.ToolTip.superclass.afterRender.call(this); - this.anchorEl.setStyle('z-index', this.el.getZIndex() + 1).setVisibilityMode(Ext.Element.DISPLAY); - }, - - - initTarget : function(target){ - var t; - if((t = Ext.get(target))){ - if(this.target){ - var tg = Ext.get(this.target); - this.mun(tg, 'mouseover', this.onTargetOver, this); - this.mun(tg, 'mouseout', this.onTargetOut, this); - this.mun(tg, 'mousemove', this.onMouseMove, this); - } - this.mon(t, { - mouseover: this.onTargetOver, - mouseout: this.onTargetOut, - mousemove: this.onMouseMove, - scope: this - }); - this.target = t; - } - if(this.anchor){ - this.anchorTarget = this.target; - } - }, - - - onMouseMove : function(e){ - var t = this.delegate ? e.getTarget(this.delegate) : this.triggerElement = true; - if (t) { - this.targetXY = e.getXY(); - if (t === this.triggerElement) { - if(!this.hidden && this.trackMouse){ - this.setPagePosition(this.getTargetXY()); - } - } else { - this.hide(); - this.lastActive = new Date(0); - this.onTargetOver(e); - } - } else if (!this.closable && this.isVisible()) { - this.hide(); - } - }, - - - getTargetXY : function(){ - if(this.delegate){ - this.anchorTarget = this.triggerElement; - } - if(this.anchor){ - this.targetCounter++; - var offsets = this.getOffsets(), - xy = (this.anchorToTarget && !this.trackMouse) ? this.el.getAlignToXY(this.anchorTarget, this.getAnchorAlign()) : this.targetXY, - dw = Ext.lib.Dom.getViewWidth() - 5, - dh = Ext.lib.Dom.getViewHeight() - 5, - de = document.documentElement, - bd = document.body, - scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5, - scrollY = (de.scrollTop || bd.scrollTop || 0) + 5, - axy = [xy[0] + offsets[0], xy[1] + offsets[1]], - sz = this.getSize(); - - this.anchorEl.removeClass(this.anchorCls); - - if(this.targetCounter < 2){ - if(axy[0] < scrollX){ - if(this.anchorToTarget){ - this.defaultAlign = 'l-r'; - if(this.mouseOffset){this.mouseOffset[0] *= -1;} - } - this.anchor = 'left'; - return this.getTargetXY(); - } - if(axy[0]+sz.width > dw){ - if(this.anchorToTarget){ - this.defaultAlign = 'r-l'; - if(this.mouseOffset){this.mouseOffset[0] *= -1;} - } - this.anchor = 'right'; - return this.getTargetXY(); - } - if(axy[1] < scrollY){ - if(this.anchorToTarget){ - this.defaultAlign = 't-b'; - if(this.mouseOffset){this.mouseOffset[1] *= -1;} - } - this.anchor = 'top'; - return this.getTargetXY(); - } - if(axy[1]+sz.height > dh){ - if(this.anchorToTarget){ - this.defaultAlign = 'b-t'; - if(this.mouseOffset){this.mouseOffset[1] *= -1;} - } - this.anchor = 'bottom'; - return this.getTargetXY(); - } - } - - this.anchorCls = 'x-tip-anchor-'+this.getAnchorPosition(); - this.anchorEl.addClass(this.anchorCls); - this.targetCounter = 0; - return axy; - }else{ - var mouseOffset = this.getMouseOffset(); - return [this.targetXY[0]+mouseOffset[0], this.targetXY[1]+mouseOffset[1]]; - } - }, - - getMouseOffset : function(){ - var offset = this.anchor ? [0,0] : [15,18]; - if(this.mouseOffset){ - offset[0] += this.mouseOffset[0]; - offset[1] += this.mouseOffset[1]; - } - return offset; - }, - - - getAnchorPosition : function(){ - if(this.anchor){ - this.tipAnchor = this.anchor.charAt(0); - }else{ - var m = this.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/); - if(!m){ - throw 'AnchorTip.defaultAlign is invalid'; - } - this.tipAnchor = m[1].charAt(0); - } - - switch(this.tipAnchor){ - case 't': return 'top'; - case 'b': return 'bottom'; - case 'r': return 'right'; - } - return 'left'; - }, - - - getAnchorAlign : function(){ - switch(this.anchor){ - case 'top' : return 'tl-bl'; - case 'left' : return 'tl-tr'; - case 'right': return 'tr-tl'; - default : return 'bl-tl'; - } - }, - - - getOffsets : function(){ - var offsets, - ap = this.getAnchorPosition().charAt(0); - if(this.anchorToTarget && !this.trackMouse){ - switch(ap){ - case 't': - offsets = [0, 9]; - break; - case 'b': - offsets = [0, -13]; - break; - case 'r': - offsets = [-13, 0]; - break; - default: - offsets = [9, 0]; - break; - } - }else{ - switch(ap){ - case 't': - offsets = [-15-this.anchorOffset, 30]; - break; - case 'b': - offsets = [-19-this.anchorOffset, -13-this.el.dom.offsetHeight]; - break; - case 'r': - offsets = [-15-this.el.dom.offsetWidth, -13-this.anchorOffset]; - break; - default: - offsets = [25, -13-this.anchorOffset]; - break; - } - } - var mouseOffset = this.getMouseOffset(); - offsets[0] += mouseOffset[0]; - offsets[1] += mouseOffset[1]; - - return offsets; - }, - - - onTargetOver : function(e){ - if(this.disabled || e.within(this.target.dom, true)){ - return; - } - var t = e.getTarget(this.delegate); - if (t) { - this.triggerElement = t; - this.clearTimer('hide'); - this.targetXY = e.getXY(); - this.delayShow(); - } - }, - - - delayShow : function(){ - if(this.hidden && !this.showTimer){ - if(this.lastActive.getElapsed() < this.quickShowInterval){ - this.show(); - }else{ - this.showTimer = this.show.defer(this.showDelay, this); - } - }else if(!this.hidden && this.autoHide !== false){ - this.show(); - } - }, - - - onTargetOut : function(e){ - if(this.disabled || e.within(this.target.dom, true)){ - return; - } - this.clearTimer('show'); - if(this.autoHide !== false){ - this.delayHide(); - } - }, - - - delayHide : function(){ - if(!this.hidden && !this.hideTimer){ - this.hideTimer = this.hide.defer(this.hideDelay, this); - } - }, - - - hide: function(){ - this.clearTimer('dismiss'); - this.lastActive = new Date(); - if(this.anchorEl){ - this.anchorEl.hide(); - } - Ext.ToolTip.superclass.hide.call(this); - delete this.triggerElement; - }, - - - show : function(){ - if(this.anchor){ - - - this.showAt([-1000,-1000]); - this.origConstrainPosition = this.constrainPosition; - this.constrainPosition = false; - this.anchor = this.origAnchor; - } - this.showAt(this.getTargetXY()); - - if(this.anchor){ - this.anchorEl.show(); - this.syncAnchor(); - this.constrainPosition = this.origConstrainPosition; - }else{ - this.anchorEl.hide(); - } - }, - - - showAt : function(xy){ - this.lastActive = new Date(); - this.clearTimers(); - Ext.ToolTip.superclass.showAt.call(this, xy); - if(this.dismissDelay && this.autoHide !== false){ - this.dismissTimer = this.hide.defer(this.dismissDelay, this); - } - if(this.anchor && !this.anchorEl.isVisible()){ - this.syncAnchor(); - this.anchorEl.show(); - }else{ - this.anchorEl.hide(); - } - }, - - - syncAnchor : function(){ - var anchorPos, targetPos, offset; - switch(this.tipAnchor.charAt(0)){ - case 't': - anchorPos = 'b'; - targetPos = 'tl'; - offset = [20+this.anchorOffset, 2]; - break; - case 'r': - anchorPos = 'l'; - targetPos = 'tr'; - offset = [-2, 11+this.anchorOffset]; - break; - case 'b': - anchorPos = 't'; - targetPos = 'bl'; - offset = [20+this.anchorOffset, -2]; - break; - default: - anchorPos = 'r'; - targetPos = 'tl'; - offset = [2, 11+this.anchorOffset]; - break; - } - this.anchorEl.alignTo(this.el, anchorPos+'-'+targetPos, offset); - }, - - - setPagePosition : function(x, y){ - Ext.ToolTip.superclass.setPagePosition.call(this, x, y); - if(this.anchor){ - this.syncAnchor(); - } - }, - - - clearTimer : function(name){ - name = name + 'Timer'; - clearTimeout(this[name]); - delete this[name]; - }, - - - clearTimers : function(){ - this.clearTimer('show'); - this.clearTimer('dismiss'); - this.clearTimer('hide'); - }, - - - onShow : function(){ - Ext.ToolTip.superclass.onShow.call(this); - Ext.getDoc().on('mousedown', this.onDocMouseDown, this); - }, - - - onHide : function(){ - Ext.ToolTip.superclass.onHide.call(this); - Ext.getDoc().un('mousedown', this.onDocMouseDown, this); - }, - - - onDocMouseDown : function(e){ - if(this.autoHide !== true && !this.closable && !e.within(this.el.dom)){ - this.disable(); - this.doEnable.defer(100, this); - } - }, - - - doEnable : function(){ - if(!this.isDestroyed){ - this.enable(); - } - }, - - - onDisable : function(){ - this.clearTimers(); - this.hide(); - }, - - - adjustPosition : function(x, y){ - if(this.constrainPosition){ - var ay = this.targetXY[1], h = this.getSize().height; - if(y <= ay && (y+h) >= ay){ - y = ay-h-5; - } - } - return {x : x, y: y}; - }, - - beforeDestroy : function(){ - this.clearTimers(); - Ext.destroy(this.anchorEl); - delete this.anchorEl; - delete this.target; - delete this.anchorTarget; - delete this.triggerElement; - Ext.ToolTip.superclass.beforeDestroy.call(this); - }, - - - onDestroy : function(){ - Ext.getDoc().un('mousedown', this.onDocMouseDown, this); - Ext.ToolTip.superclass.onDestroy.call(this); - } -}); - -Ext.reg('tooltip', Ext.ToolTip); -Ext.QuickTip = Ext.extend(Ext.ToolTip, { - - - interceptTitles : false, - - - tagConfig : { - namespace : "ext", - attribute : "qtip", - width : "qwidth", - target : "target", - title : "qtitle", - hide : "hide", - cls : "qclass", - align : "qalign", - anchor : "anchor" - }, - - - initComponent : function(){ - this.target = this.target || Ext.getDoc(); - this.targets = this.targets || {}; - Ext.QuickTip.superclass.initComponent.call(this); - }, - - - register : function(config){ - var cs = Ext.isArray(config) ? config : arguments; - for(var i = 0, len = cs.length; i < len; i++){ - var c = cs[i]; - var target = c.target; - if(target){ - if(Ext.isArray(target)){ - for(var j = 0, jlen = target.length; j < jlen; j++){ - this.targets[Ext.id(target[j])] = c; - } - } else{ - this.targets[Ext.id(target)] = c; - } - } - } - }, - - - unregister : function(el){ - delete this.targets[Ext.id(el)]; - }, - - - cancelShow: function(el){ - var at = this.activeTarget; - el = Ext.get(el).dom; - if(this.isVisible()){ - if(at && at.el == el){ - this.hide(); - } - }else if(at && at.el == el){ - this.clearTimer('show'); - } - }, - - getTipCfg: function(e) { - var t = e.getTarget(), - ttp, - cfg; - if(this.interceptTitles && t.title && Ext.isString(t.title)){ - ttp = t.title; - t.qtip = ttp; - t.removeAttribute("title"); - e.preventDefault(); - }else{ - cfg = this.tagConfig; - ttp = t.qtip || Ext.fly(t).getAttribute(cfg.attribute, cfg.namespace); - } - return ttp; - }, - - - onTargetOver : function(e){ - if(this.disabled){ - return; - } - this.targetXY = e.getXY(); - var t = e.getTarget(); - if(!t || t.nodeType !== 1 || t == document || t == document.body){ - return; - } - if(this.activeTarget && ((t == this.activeTarget.el) || Ext.fly(this.activeTarget.el).contains(t))){ - this.clearTimer('hide'); - this.show(); - return; - } - if(t && this.targets[t.id]){ - this.activeTarget = this.targets[t.id]; - this.activeTarget.el = t; - this.anchor = this.activeTarget.anchor; - if(this.anchor){ - this.anchorTarget = t; - } - this.delayShow(); - return; - } - var ttp, et = Ext.fly(t), cfg = this.tagConfig, ns = cfg.namespace; - if(ttp = this.getTipCfg(e)){ - var autoHide = et.getAttribute(cfg.hide, ns); - this.activeTarget = { - el: t, - text: ttp, - width: et.getAttribute(cfg.width, ns), - autoHide: autoHide != "user" && autoHide !== 'false', - title: et.getAttribute(cfg.title, ns), - cls: et.getAttribute(cfg.cls, ns), - align: et.getAttribute(cfg.align, ns) - - }; - this.anchor = et.getAttribute(cfg.anchor, ns); - if(this.anchor){ - this.anchorTarget = t; - } - this.delayShow(); - } - }, - - - onTargetOut : function(e){ - - - if (this.activeTarget && e.within(this.activeTarget.el) && !this.getTipCfg(e)) { - return; - } - - this.clearTimer('show'); - if(this.autoHide !== false){ - this.delayHide(); - } - }, - - - showAt : function(xy){ - var t = this.activeTarget; - if(t){ - if(!this.rendered){ - this.render(Ext.getBody()); - this.activeTarget = t; - } - if(t.width){ - this.setWidth(t.width); - this.body.setWidth(this.adjustBodyWidth(t.width - this.getFrameWidth())); - this.measureWidth = false; - } else{ - this.measureWidth = true; - } - this.setTitle(t.title || ''); - this.body.update(t.text); - this.autoHide = t.autoHide; - this.dismissDelay = t.dismissDelay || this.dismissDelay; - if(this.lastCls){ - this.el.removeClass(this.lastCls); - delete this.lastCls; - } - if(t.cls){ - this.el.addClass(t.cls); - this.lastCls = t.cls; - } - if(this.anchor){ - this.constrainPosition = false; - }else if(t.align){ - xy = this.el.getAlignToXY(t.el, t.align); - this.constrainPosition = false; - }else{ - this.constrainPosition = true; - } - } - Ext.QuickTip.superclass.showAt.call(this, xy); - }, - - - hide: function(){ - delete this.activeTarget; - Ext.QuickTip.superclass.hide.call(this); - } -}); -Ext.reg('quicktip', Ext.QuickTip); -Ext.QuickTips = function(){ - var tip, - disabled = false; - - return { - - init : function(autoRender){ - if(!tip){ - if(!Ext.isReady){ - Ext.onReady(function(){ - Ext.QuickTips.init(autoRender); - }); - return; - } - tip = new Ext.QuickTip({ - elements:'header,body', - disabled: disabled - }); - if(autoRender !== false){ - tip.render(Ext.getBody()); - } - } - }, - - - ddDisable : function(){ - - if(tip && !disabled){ - tip.disable(); - } - }, - - - ddEnable : function(){ - - if(tip && !disabled){ - tip.enable(); - } - }, - - - enable : function(){ - if(tip){ - tip.enable(); - } - disabled = false; - }, - - - disable : function(){ - if(tip){ - tip.disable(); - } - disabled = true; - }, - - - isEnabled : function(){ - return tip !== undefined && !tip.disabled; - }, - - - getQuickTip : function(){ - return tip; - }, - - - register : function(){ - tip.register.apply(tip, arguments); - }, - - - unregister : function(){ - tip.unregister.apply(tip, arguments); - }, - - - tips : function(){ - tip.register.apply(tip, arguments); - } - }; -}(); -Ext.slider.Tip = Ext.extend(Ext.Tip, { - minWidth: 10, - offsets : [0, -10], - - init: function(slider) { - slider.on({ - scope : this, - dragstart: this.onSlide, - drag : this.onSlide, - dragend : this.hide, - destroy : this.destroy - }); - }, - - - onSlide : function(slider, e, thumb) { - this.show(); - this.body.update(this.getText(thumb)); - this.doAutoWidth(); - this.el.alignTo(thumb.el, 'b-t?', this.offsets); - }, - - - getText : function(thumb) { - return String(thumb.value); - } -}); - - -Ext.ux.SliderTip = Ext.slider.Tip; -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 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 = {}; - - - if(this.root){ - var r = this.root; - delete this.root; - this.setRootNode(r); - } - - - 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(ename, a1, a2, a3, a4, a5, a6){ - if(ename == 'collapse' || ename == 'expand' || ename == 'beforecollapse' || ename == 'beforeexpand' || ename == 'move' || ename == 'beforemove'){ - ename = ename+'node'; - } - - return this.fireEvent(ename, a1, a2, a3, a4, a5, a6); - }, - - - - getRootNode : function(){ - return this.root; - }, - - - setRootNode : function(node){ - this.destroyRoot(); - if(!node.render){ - 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(''); - }, - - - renderRoot : function(){ - this.root.render(); - if(!this.rootVisible){ - this.root.renderChildren(); - } - }, - - - getNodeById : function(id){ - return this.nodeHash[id]; - }, - - - registerNode : function(node){ - this.nodeHash[node.id] = node; - }, - - - unregisterNode : function(node){ - delete this.nodeHash[node.id]; - }, - - - toString : function(){ - return '[Tree'+(this.id?' '+this.id:'')+']'; - }, - - - restrictExpand : function(node){ - var p = node.parentNode; - if(p){ - if(p.expandedChild && p.expandedChild.parentNode == p){ - p.expandedChild.collapse(); - } - p.expandedChild = node; - } - }, - - - 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; - }, - - - 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(path, attr, callback){ - if(Ext.isEmpty(path)){ - if(callback){ - callback(false, undefined); - } - return; - } - attr = attr || 'id'; - var keys = path.split(this.pathSeparator); - var curNode = this.root; - if(curNode.attributes[attr] != keys[1]){ - 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); - }, - - - selectPath : function(path, attr, callback){ - if(Ext.isEmpty(path)){ - if(callback){ - callback(false, undefined); - } - return; - } - 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); - } - } - }, - - - getTreeEl : function(){ - return this.body; - }, - - - 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')}); - }, - - - 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(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){ - Ext.getBody().on('mouseover', this.trackExit, this); - this.trackingDoc = true; - } - if(this.lastEcOver){ - 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; - } -}; -Ext.tree.DefaultSelectionModel = Ext.extend(Ext.util.Observable, { - - constructor : function(config){ - this.selNode = null; - - this.addEvents( - - 'selectionchange', - - - '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 : function(node, selectNextNode){ - - 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; - }, - - - unselect : function(node, silent){ - if(this.selNode == node){ - this.clearSelections(silent); - } - }, - - - 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; - }, - - - getSelectedNode : function(){ - return this.selNode; - }, - - - isSelected : function(node){ - return this.selNode == node; - }, - - - selectPrevious : function( s){ - if(!(s = s || this.selNode || this.lastSelNode)){ - return null; - } - - 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; - }, - - - selectNext : function( s){ - if(!(s = s || this.selNode || this.lastSelNode)){ - return null; - } - - 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; - - 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; - }; - } -}); - - -Ext.tree.MultiSelectionModel = Ext.extend(Ext.util.Observable, { - - constructor : function(config){ - this.selNodes = []; - this.selMap = {}; - this.addEvents( - - '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 : 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; - }, - - - 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); - } - }, - - - 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); - } - } - }, - - - isSelected : function(node){ - return this.selMap[node.id] ? true : false; - }, - - - getSelectedNodes : function(){ - return this.selNodes.concat([]); - }, - - onKeyDown : Ext.tree.DefaultSelectionModel.prototype.onKeyDown, - - selectNext : Ext.tree.DefaultSelectionModel.prototype.selectNext, - - selectPrevious : Ext.tree.DefaultSelectionModel.prototype.selectPrevious -}); -Ext.data.Tree = Ext.extend(Ext.util.Observable, { - - constructor: function(root){ - this.nodeHash = {}; - - this.root = null; - if(root){ - this.setRootNode(root); - } - this.addEvents( - - "append", - - "remove", - - "move", - - "insert", - - "beforeappend", - - "beforeremove", - - "beforemove", - - "beforeinsert" - ); - Ext.data.Tree.superclass.constructor.call(this); - }, - - - pathSeparator: "/", - - - proxyNodeEvent : function(){ - return this.fireEvent.apply(this, arguments); - }, - - - getRootNode : function(){ - return this.root; - }, - - - setRootNode : function(node){ - this.root = node; - node.ownerTree = this; - node.isRoot = true; - this.registerNode(node); - return node; - }, - - - getNodeById : function(id){ - return this.nodeHash[id]; - }, - - - registerNode : function(node){ - this.nodeHash[node.id] = node; - }, - - - unregisterNode : function(node){ - delete this.nodeHash[node.id]; - }, - - toString : function(){ - return "[Tree"+(this.id?" "+this.id:"")+"]"; - } -}); - - -Ext.data.Node = Ext.extend(Ext.util.Observable, { - - constructor: function(attributes){ - - this.attributes = attributes || {}; - this.leaf = this.attributes.leaf; - - this.id = this.attributes.id; - if(!this.id){ - this.id = Ext.id(null, "xnode-"); - this.attributes.id = this.id; - } - - this.childNodes = []; - - this.parentNode = null; - - this.firstChild = null; - - this.lastChild = null; - - this.previousSibling = null; - - this.nextSibling = null; - - this.addEvents({ - - "append" : true, - - "remove" : true, - - "move" : true, - - "insert" : true, - - "beforeappend" : true, - - "beforeremove" : true, - - "beforemove" : true, - - "beforeinsert" : true - }); - this.listeners = this.attributes.listeners; - Ext.data.Node.superclass.constructor.call(this); - }, - - - fireEvent : function(evtName){ - - if(Ext.data.Node.superclass.fireEvent.apply(this, arguments) === false){ - return false; - } - - var ot = this.getOwnerTree(); - if(ot){ - if(ot.proxyNodeEvent.apply(ot, arguments) === false){ - return false; - } - } - return true; - }, - - - isLeaf : function(){ - return this.leaf === true; - }, - - - setFirstChild : function(node){ - this.firstChild = node; - }, - - - setLastChild : function(node){ - this.lastChild = node; - }, - - - - isLast : function(){ - return (!this.parentNode ? true : this.parentNode.lastChild == this); - }, - - - isFirst : function(){ - return (!this.parentNode ? true : this.parentNode.firstChild == this); - }, - - - hasChildNodes : function(){ - return !this.isLeaf() && this.childNodes.length > 0; - }, - - - isExpandable : function(){ - return this.attributes.expandable || this.hasChildNodes(); - }, - - - appendChild : function(node){ - var multi = false; - if(Ext.isArray(node)){ - multi = node; - }else if(arguments.length > 1){ - multi = arguments; - } - - 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; - - 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; - } - }, - - - 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; - } - - - this.childNodes.splice(index, 1); - - - if(node.previousSibling){ - node.previousSibling.nextSibling = node.nextSibling; - } - if(node.nextSibling){ - node.nextSibling.previousSibling = node.previousSibling; - } - - - 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; - }, - - - clear : function(destroy){ - - this.setOwnerTree(null, destroy); - this.parentNode = this.previousSibling = this.nextSibling = null; - if(destroy){ - this.firstChild = this.lastChild = null; - } - }, - - - destroy : function( silent){ - - if(silent === true){ - this.purgeListeners(); - this.clear(true); - Ext.each(this.childNodes, function(n){ - n.destroy(true); - }); - this.childNodes = null; - }else{ - this.remove(true); - } - }, - - - insertBefore : function(node, refNode){ - if(!refNode){ - return this.appendChild(node); - } - - 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; - - - if(oldParent == this && this.childNodes.indexOf(node) < index){ - refIndex--; - } - - - 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; - }, - - - remove : function(destroy){ - if (this.parentNode) { - this.parentNode.removeChild(this, destroy); - } - return this; - }, - - - removeAll : function(destroy){ - var cn = this.childNodes, - n; - while((n = cn[0])){ - this.removeChild(n, destroy); - } - return this; - }, - - - item : function(index){ - return this.childNodes[index]; - }, - - - replaceChild : function(newChild, oldChild){ - var s = oldChild ? oldChild.nextSibling : null; - this.removeChild(oldChild); - this.insertBefore(newChild, s); - return oldChild; - }, - - - indexOf : function(child){ - return this.childNodes.indexOf(child); - }, - - - getOwnerTree : function(){ - - if(!this.ownerTree){ - var p = this; - while(p){ - if(p.ownerTree){ - this.ownerTree = p.ownerTree; - break; - } - p = p.parentNode; - } - } - return this.ownerTree; - }, - - - getDepth : function(){ - var depth = 0; - var p = this; - while(p.parentNode){ - ++depth; - p = p.parentNode; - } - return depth; - }, - - - setOwnerTree : function(tree, destroy){ - - if(tree != this.ownerTree){ - if(this.ownerTree){ - this.ownerTree.unregisterNode(this); - } - this.ownerTree = tree; - - if(destroy !== true){ - Ext.each(this.childNodes, function(n){ - n.setOwnerTree(tree); - }); - } - if(tree){ - tree.registerNode(this); - } - } - }, - - - 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); - } - }, - - - onIdChange: Ext.emptyFn, - - - 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); - }, - - - bubble : function(fn, scope, args){ - var p = this; - while(p){ - if(fn.apply(scope || p, args || [p]) === false){ - break; - } - p = p.parentNode; - } - }, - - - 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); - } - } - }, - - - eachChild : function(fn, scope, args){ - var cs = this.childNodes; - for(var i = 0, len = cs.length; i < len; i++) { - if(fn.apply(scope || cs[i], args || [cs[i]]) === false){ - break; - } - } - }, - - - findChild : function(attribute, value, deep){ - return this.findChildBy(function(){ - return this.attributes[attribute] == value; - }, null, deep); - }, - - - 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; - }, - - - 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); - } - } - } - }, - - - contains : function(node){ - return node.isAncestor(this); - }, - - - 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:"")+"]"; - } -}); -Ext.tree.TreeNode = Ext.extend(Ext.data.Node, { - - constructor : 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; - - - this.text = attributes.text; - - this.disabled = attributes.disabled === true; - - this.hidden = attributes.hidden === true; - - this.addEvents( - - 'textchange', - - 'beforeexpand', - - 'beforecollapse', - - 'expand', - - 'disabledchange', - - 'collapse', - - 'beforeclick', - - 'click', - - 'checkchange', - - 'beforedblclick', - - 'dblclick', - - 'contextmenu', - - 'beforechildrenrendered' - ); - - var uiClass = this.attributes.uiProvider || this.defaultUI || Ext.tree.TreeNodeUI; - - - this.ui = new uiClass(this); - }, - - preventHScroll : true, - - isExpanded : function(){ - return this.expanded; - }, - - - 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())); - }, - - - 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); - } - }, - - - 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); - } - }, - - - - 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; - }, - - - removeChild : function(node, destroy){ - this.ownerTree.getSelectionModel().unselect(node); - Ext.tree.TreeNode.superclass.removeChild.apply(this, arguments); - - if(!destroy){ - var rendered = node.ui.rendered; - - if(rendered){ - node.ui.remove(); - } - if(rendered && this.childNodes.length < 1){ - this.collapse(false, false); - }else{ - this.ui.updateExpandIcon(); - } - if(!this.firstChild && !this.isHiddenRoot()){ - this.childrenRendered = false; - } - } - return node; - }, - - - 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; - }, - - - setText : function(text){ - var oldText = this.text; - this.text = this.attributes.text = text; - if(this.rendered){ - this.ui.onTextChange(this, text, oldText); - } - this.fireEvent('textchange', this, text, oldText); - }, - - - setIconCls : function(cls){ - var old = this.attributes.iconCls; - this.attributes.iconCls = cls; - if(this.rendered){ - this.ui.onIconClsChange(this, cls, old); - } - }, - - - setTooltip : function(tip, title){ - this.attributes.qtip = tip; - this.attributes.qtipTitle = title; - if(this.rendered){ - this.ui.onTipChange(this, tip, title); - } - }, - - - setIcon : function(icon){ - this.attributes.icon = icon; - if(this.rendered){ - this.ui.onIconChange(this, icon); - } - }, - - - setHref : function(href, target){ - this.attributes.href = href; - this.attributes.hrefTarget = target; - if(this.rendered){ - this.ui.onHrefChange(this, href, target); - } - }, - - - setCls : function(cls){ - var old = this.attributes.cls; - this.attributes.cls = cls; - if(this.rendered){ - this.ui.onClsChange(this, cls, old); - } - }, - - - select : function(){ - var t = this.getOwnerTree(); - if(t){ - t.getSelectionModel().select(this); - } - }, - - - unselect : function(silent){ - var t = this.getOwnerTree(); - if(t){ - t.getSelectionModel().unselect(this, silent); - } - }, - - - isSelected : function(){ - var t = this.getOwnerTree(); - return t ? t.getSelectionModel().isSelected(this) : false; - }, - - - 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, 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 : 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); - } - } - }, - - - delayedExpand : function(delay){ - if(!this.expandProcId){ - this.expandProcId = this.expand.defer(delay, this); - } - }, - - - cancelExpand : function(){ - if(this.expandProcId){ - clearTimeout(this.expandProcId); - } - this.expandProcId = false; - }, - - - toggle : function(){ - if(this.expanded){ - this.collapse(); - }else{ - this.expand(); - } - }, - - - 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); - tree.getTreeEl().scrollChildIntoView(node.ui.anchor); - this.runCallback(callback, scope || this, [this]); - }.createDelegate(this)); - }, - - - expandChildNodes : function(deep, anim) { - var cs = this.childNodes, - i, - len = cs.length; - for (i = 0; i < len; i++) { - cs[i].expand(deep, anim); - } - }, - - - collapseChildNodes : function(deep){ - var cs = this.childNodes; - for(var i = 0, len = cs.length; i < len; i++) { - cs[i].collapse(deep); - } - }, - - - disable : function(){ - this.disabled = true; - this.unselect(); - if(this.rendered && this.ui.onDisableChange){ - this.ui.onDisableChange(this, true); - } - this.fireEvent('disabledchange', this, true); - }, - - - enable : function(){ - this.disabled = false; - if(this.rendered && this.ui.onDisableChange){ - this.ui.onDisableChange(this, false); - } - this.fireEvent('disabledchange', this, false); - }, - - - 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; - }, - - - 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); - } - } - }, - - - render : function(bulkRender){ - this.ui.render(bulkRender); - if(!this.rendered){ - - this.getOwnerTree().registerNode(this); - this.rendered = true; - if(this.expanded){ - this.expanded = false; - this.expand(false, false); - } - } - }, - - - 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(); - } - }, - - - 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; - }, - - - onIdChange : function(id){ - this.ui.onIdChange(id); - } -}); - -Ext.tree.TreePanel.nodeTypes.node = Ext.tree.TreeNode; - Ext.tree.AsyncTreeNode = function(config){ - this.loaded = config && config.loaded === true; - this.loading = false; - Ext.tree.AsyncTreeNode.superclass.constructor.apply(this, arguments); - - this.addEvents('beforeload', 'load'); - - -}; -Ext.extend(Ext.tree.AsyncTreeNode, Ext.tree.TreeNode, { - expand : function(deep, anim, callback, scope){ - if(this.loading){ - var timer; - var f = function(){ - if(!this.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); - }, - - - 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); - }, - - - isLoaded : function(){ - return this.loaded; - }, - - hasChildNodes : function(){ - if(!this.isLeaf() && !this.loaded){ - return true; - }else{ - return Ext.tree.AsyncTreeNode.superclass.hasChildNodes.call(this); - } - }, - - - 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; -Ext.tree.TreeNodeUI = Ext.extend(Object, { - - constructor : function(node){ - Ext.apply(this, { - node: node, - rendered: false, - animating: false, - wasLeaf: true, - ecc: 'x-tree-ec-icon x-tree-elbow', - emptyIcon: Ext.BLANK_IMAGE_URL - }); - }, - - - removeChild : function(node){ - if(this.rendered){ - this.ctNode.removeChild(node.ui.getEl()); - } - }, - - - beforeLoad : function(){ - this.addClass("x-tree-node-loading"); - }, - - - afterLoad : function(){ - this.removeClass("x-tree-node-loading"); - }, - - - onTextChange : function(node, text, oldText){ - if(this.rendered){ - this.textNode.innerHTML = text; - } - }, - - - onIconClsChange : function(node, cls, oldCls){ - if(this.rendered){ - Ext.fly(this.iconNode).replaceClass(oldCls, cls); - } - }, - - - onIconChange : function(node, icon){ - if(this.rendered){ - - var empty = Ext.isEmpty(icon); - this.iconNode.src = empty ? this.emptyIcon : icon; - Ext.fly(this.iconNode)[empty ? 'removeClass' : 'addClass']('x-tree-node-inline-icon'); - } - }, - - - onTipChange : function(node, tip, title){ - if(this.rendered){ - var hasTitle = Ext.isDefined(title); - if(this.textNode.setAttributeNS){ - this.textNode.setAttributeNS("ext", "qtip", tip); - if(hasTitle){ - this.textNode.setAttributeNS("ext", "qtitle", title); - } - }else{ - this.textNode.setAttribute("ext:qtip", tip); - if(hasTitle){ - this.textNode.setAttribute("ext:qtitle", title); - } - } - } - }, - - - onHrefChange : function(node, href, target){ - if(this.rendered){ - this.anchor.href = this.getHref(href); - if(Ext.isDefined(target)){ - this.anchor.target = target; - } - } - }, - - - onClsChange : function(node, cls, oldCls){ - if(this.rendered){ - Ext.fly(this.elNode).replaceClass(oldCls, cls); - } - }, - - - onDisableChange : function(node, state){ - this.disabled = state; - if (this.checkbox) { - this.checkbox.disabled = state; - } - this[state ? 'addClass' : 'removeClass']('x-tree-node-disabled'); - }, - - - onSelectedChange : function(state){ - if(state){ - this.focus(); - this.addClass("x-tree-selected"); - }else{ - - this.removeClass("x-tree-selected"); - } - }, - - - onMove : function(tree, node, oldParent, newParent, index, refNode){ - this.childIndent = null; - if(this.rendered){ - var targetNode = newParent.ui.getContainer(); - if(!targetNode){ - 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); - } - }, - - - addClass : function(cls){ - if(this.elNode){ - Ext.fly(this.elNode).addClass(cls); - } - }, - - - removeClass : function(cls){ - if(this.elNode){ - Ext.fly(this.elNode).removeClass(cls); - } - }, - - - remove : function(){ - if(this.rendered){ - this.holder = document.createElement("div"); - this.holder.appendChild(this.wrap); - } - }, - - - fireEvent : function(){ - return this.node.fireEvent.apply(this.node, arguments); - }, - - - 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 - }); - } - }, - - - getDDHandles : function(){ - return [this.iconNode, this.textNode, this.elNode]; - }, - - - hide : function(){ - this.node.hidden = true; - if(this.wrap){ - this.wrap.style.display = "none"; - } - }, - - - show : function(){ - this.node.hidden = false; - if(this.wrap){ - this.wrap.style.display = ""; - } - }, - - - onContextMenu : function(e){ - if (this.node.hasListener("contextmenu") || this.node.getOwnerTree().hasListener("contextmenu")) { - e.preventDefault(); - this.focus(); - this.fireEvent("contextmenu", this.node, e); - } - }, - - - 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(); - } - }, - - - 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'); - }, - - - onCheckChange : function(){ - var checked = this.checkbox.checked; - - this.checkbox.defaultChecked = checked; - this.node.attributes.checked = checked; - this.fireEvent('checkchange', this.node, checked); - }, - - - ecClick : function(e){ - if(!this.animating && this.node.isExpandable()){ - this.node.toggle(); - } - }, - - - startDrop : function(){ - this.dropping = true; - }, - - - endDrop : function(){ - setTimeout(function(){ - this.dropping = false; - }.createDelegate(this), 50); - }, - - - expand : function(){ - this.updateExpandIcon(); - this.ctNode.style.display = ""; - }, - - - 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){} - } - }, - - - toggleCheck : function(value){ - var cb = this.checkbox; - if(cb){ - cb.checked = (value === undefined ? !cb.checked : value); - this.onCheckChange(); - } - }, - - - blur : function(){ - try{ - this.anchor.blur(); - }catch(e){} - }, - - - 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 - }); - }, - - - highlight : function(){ - var tree = this.node.getOwnerTree(); - Ext.fly(this.wrap).highlight( - tree.hlColor || "C3DAF9", - {endColor: tree.hlBaseColor} - ); - }, - - - collapse : function(){ - this.updateExpandIcon(); - this.ctNode.style.display = "none"; - }, - - - 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 - }); - }, - - - getContainer : function(){ - return this.ctNode; - }, - - - getEl : function(){ - return this.wrap; - }, - - - appendDDGhost : function(ghostNode){ - ghostNode.appendChild(this.elNode.cloneNode(true)); - }, - - - getDDRepairXY : function(){ - return Ext.lib.Dom.getXY(this.iconNode); - }, - - - onRender : function(){ - this.render(); - }, - - - 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){ - this.onTipChange(n, a.qtip, 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); - } - } - }, - - - renderElements : function(n, a, targetNode, bulkRender){ - - this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : ''; - - var cb = Ext.isBoolean(a.checked), - nel, - href = this.getHref(a.href), - 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]; - - this.checkbox.defaultChecked = this.checkbox.checked; - index++; - } - this.anchor = cs[index]; - this.textNode = cs[index].firstChild; - }, - - - getHref : function(href){ - return Ext.isEmpty(href) ? (Ext.isGecko ? '' : '#') : href; - }, - - - 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 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; - } - } - }, - - - onIdChange: function(id){ - if(this.rendered){ - this.elNode.setAttribute('ext:tree-node-id', id); - } - }, - - - 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; - }, - - - renderIndent : function(){ - if(this.rendered){ - var indent = "", - p = this.node.parentNode; - if(p){ - indent = p.ui.getChildIndent(); - } - if(this.indentMarkup != indent){ - 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; - } -}); - - -Ext.tree.RootTreeNodeUI = Ext.extend(Ext.tree.TreeNodeUI, { - - 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 -}); -Ext.tree.TreeLoader = function(config){ - this.baseParams = {}; - Ext.apply(this, config); - - 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(node, callback, scope){ - if(this.clearOnLoad){ - while(node.firstChild){ - node.removeChild(node.firstChild); - } - } - if(this.doPreload(node)){ - 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){ - 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){ - - 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{ - - - 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 - }); - } - }, - - - 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); - } - }, - - - createNode : function(attr){ - - 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(); - } -}); -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 : function(value, attr, startNode){ - attr = attr || "text"; - var f; - if(typeof value == "string"){ - var vlen = value.length; - - 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){ - f = function(n){ - return value.test(n.attributes[attr]); - }; - }else{ - throw 'Illegal filter type, must be string or regex'; - } - this.filterBy(f, null, startNode); - }, - - - 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); - } - } - } - } - }, - - - 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 = {}; - } -}; - -Ext.tree.TreeSorter = Ext.extend(Object, { - - constructor: function(tree, config){ - - - - - - - - Ext.apply(this, config); - tree.on({ - scope: this, - beforechildrenrendered: this.doSort, - append: this.updateSort, - insert: this.updateSort, - textchange: this.updateSortParent - }); - - var desc = this.dir && this.dir.toLowerCase() == 'desc', - prop = this.property || 'text', - sortType = this.sortType, - folderSort = this.folderSort, - caseSensitive = this.caseSensitive === true, - leafAttr = this.leafAttr || 'leaf'; - - if(Ext.isString(sortType)){ - sortType = Ext.data.SortTypes[sortType]; - } - this.sortFn = function(n1, n2){ - var attr1 = n1.attributes, - attr2 = n2.attributes; - - if(folderSort){ - if(attr1[leafAttr] && !attr2[leafAttr]){ - return 1; - } - if(!attr1[leafAttr] && attr2[leafAttr]){ - return -1; - } - } - var prop1 = attr1[prop], - prop2 = attr2[prop], - v1 = sortType ? sortType(prop1) : (caseSensitive ? prop1 : prop1.toUpperCase()), - v2 = sortType ? sortType(prop2) : (caseSensitive ? prop2 : prop2.toUpperCase()); - - if(v1 < v2){ - return desc ? 1 : -1; - }else if(v1 > v2){ - return desc ? -1 : 1; - } - return 0; - }; - }, - - doSort : function(node){ - node.sort(this.sortFn); - }, - - 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]); - } - } -}); - -if(Ext.dd.DropZone){ - -Ext.tree.TreeDropZone = function(tree, config){ - - this.allowParentInsert = config.allowParentInsert || false; - - this.allowContainerDrop = config.allowContainerDrop || false; - - this.appendOnly = config.appendOnly || false; - - Ext.tree.TreeDropZone.superclass.constructor.call(this, tree.getTreeEl(), config); - - this.tree = tree; - - this.dragOverData = {}; - - this.lastInsertClass = "x-tree-no-status"; -}; - -Ext.extend(Ext.tree.TreeDropZone, Ext.dd.DropZone, { - - ddGroup : "TreeDD", - - - expandDelay : 1000, - - - expandNode : function(node){ - if(node.hasChildNodes() && !node.isExpanded()){ - node.expand(false, null, this.triggerCacheRefresh.createDelegate(this)); - } - }, - - - queueExpand : function(node){ - this.expandProcId = this.expandNode.defer(this.expandDelay, this, [node]); - }, - - - cancelExpand : function(){ - if(this.expandProcId){ - clearTimeout(this.expandProcId); - this.expandProcId = false; - } - }, - - - isValidDropPoint : function(n, pt, dd, e, data){ - if(!n || !data){ return false; } - var targetNode = n.node; - var dropNode = data.node; - - 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; - } - - 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; - }, - - - getDropPoint : function(e, n, dd){ - var tn = n.node; - if(tn.isRoot){ - return tn.allowChildren !== false ? "append" : false; - } - 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"; - } - }, - - - 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; - }, - - - onNodeOver : function(n, dd, e, data){ - var pt = this.getDropPoint(e, n, dd); - var node = n.node; - - - if(!this.expandProcId && pt == "append" && node.hasChildNodes() && !n.node.isExpanded()){ - this.queueExpand(node); - }else if(pt != "append"){ - this.cancelExpand(); - } - - - 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; - }, - - - onNodeOut : function(n, dd, e, data){ - this.cancelExpand(); - this.removeDropIndicators(n); - }, - - - 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; - } - - 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; - }, - - - 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; - }, - - - 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); - }, - - - 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); - }, - - - getTree : function(){ - return this.tree; - }, - - - 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"; - } - }, - - - beforeDragDrop : function(target, e, id){ - this.cancelExpand(); - return true; - }, - - - afterRepair : function(data){ - if(data && Ext.enableFx){ - data.node.ui.highlight(); - } - this.hideProxy(); - } -}); - -} -if(Ext.dd.DragZone){ -Ext.tree.TreeDragZone = function(tree, config){ - Ext.tree.TreeDragZone.superclass.constructor.call(this, tree.innerCt, config); - - this.tree = tree; -}; - -Ext.extend(Ext.tree.TreeDragZone, Ext.dd.DragZone, { - - ddGroup : "TreeDD", - - - onBeforeDrag : function(data, e){ - var n = data.node; - return n && n.draggable && !n.disabled; - }, - - - 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); - }, - - - getRepairXY : function(e, data){ - return data.node.ui.getDDRepairXY(); - }, - - - onEndDrag : function(data, e){ - this.tree.eventModel.enable.defer(100, this.tree.eventModel); - this.tree.fireEvent("enddrag", this.tree, data.node, e); - }, - - - onValidDrop : function(dd, e, id){ - this.tree.fireEvent("dragdrop", this.tree, this.dragData.node, dd, e); - this.hideProxy(); - }, - - - beforeInvalidDrop : function(e, id){ - - var sm = this.tree.getSelectionModel(); - sm.clearSelections(); - sm.select(this.dragData.node); - }, - - - afterRepair : function(){ - if (Ext.enableFx && this.tree.hlDrop) { - Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor || "c3daf9"); - } - this.dragging = false; - } -}); -} -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, { - - alignment: "l-l", - - autoSize: false, - - hideEl : false, - - cls: "x-small-editor x-tree-editor", - - shim:false, - - shadow:"frame", - - maxWidth: 250, - - 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}); - }, - - - fitToTree : function(ed, el){ - var td = this.tree.getTreeEl().dom, nd = el.dom; - if(td.scrollLeft > nd.offsetLeft){ - td.scrollLeft = nd.offsetLeft; - } - var w = Math.min( - this.maxWidth, - (td.clientWidth > 20 ? td.clientWidth : td.offsetWidth) - Math.max(0, nd.offsetLeft-td.scrollLeft) - 5); - this.setSize(w, ''); - }, - - - triggerEdit : function(node, defer){ - this.completeEdit(); - if(node.attributes.editable !== false){ - - 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; - } - }, - - - bindScroll : function(){ - this.tree.getTreeEl().on('scroll', this.cancelEdit, this); - }, - - - 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); - }, - - - updateNode : function(ed, value){ - this.tree.getTreeEl().un('scroll', this.cancelEdit, this); - this.editNode.setText(value); - }, - - - onHide : function(){ - Ext.tree.TreeEditor.superclass.onHide.call(this); - if(this.editNode){ - this.editNode.ui.focus.defer(50, this.editNode.ui); - } - }, - - - 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); - } -}); - -var swfobject = function() { - - var UNDEF = "undefined", - OBJECT = "object", - SHOCKWAVE_FLASH = "Shockwave Flash", - SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash", - FLASH_MIME_TYPE = "application/x-shockwave-flash", - EXPRESS_INSTALL_ID = "SWFObjectExprInst", - ON_READY_STATE_CHANGE = "onreadystatechange", - - win = window, - doc = document, - nav = navigator, - - plugin = false, - domLoadFnArr = [main], - regObjArr = [], - objIdArr = [], - listenersArr = [], - storedAltContent, - storedAltContentId, - storedCallbackFn, - storedCallbackObj, - isDomLoaded = false, - isExpressInstallActive = false, - dynamicStylesheet, - dynamicStylesheetMedia, - autoHideShow = true, - - - ua = function() { - var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF, - u = nav.userAgent.toLowerCase(), - p = nav.platform.toLowerCase(), - windows = p ? (/win/).test(p) : /win/.test(u), - mac = p ? (/mac/).test(p) : /mac/.test(u), - webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, - ie = !+"\v1", - playerVersion = [0,0,0], - d = null; - if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) { - d = nav.plugins[SHOCKWAVE_FLASH].description; - if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { - plugin = true; - ie = false; - d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); - playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10); - playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10); - playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0; - } - } - else if (typeof win.ActiveXObject != UNDEF) { - try { - var a = new ActiveXObject(SHOCKWAVE_FLASH_AX); - if (a) { - d = a.GetVariable("$version"); - if (d) { - ie = true; - d = d.split(" ")[1].split(","); - playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; - } - } - } - catch(e) {} - } - return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac }; - }(), - - - onDomLoad = function() { - if (!ua.w3) { return; } - if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { - callDomLoadFunctions(); - } - if (!isDomLoaded) { - if (typeof doc.addEventListener != UNDEF) { - doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false); - } - if (ua.ie && ua.win) { - doc.attachEvent(ON_READY_STATE_CHANGE, function() { - if (doc.readyState == "complete") { - doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee); - callDomLoadFunctions(); - } - }); - if (win == top) { - (function(){ - if (isDomLoaded) { return; } - try { - doc.documentElement.doScroll("left"); - } - catch(e) { - setTimeout(arguments.callee, 0); - return; - } - callDomLoadFunctions(); - })(); - } - } - if (ua.wk) { - (function(){ - if (isDomLoaded) { return; } - if (!(/loaded|complete/).test(doc.readyState)) { - setTimeout(arguments.callee, 0); - return; - } - callDomLoadFunctions(); - })(); - } - addLoadEvent(callDomLoadFunctions); - } - }(); - - function callDomLoadFunctions() { - if (isDomLoaded) { return; } - try { - var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span")); - t.parentNode.removeChild(t); - } - catch (e) { return; } - isDomLoaded = true; - var dl = domLoadFnArr.length; - for (var i = 0; i < dl; i++) { - domLoadFnArr[i](); - } - } - - function addDomLoadEvent(fn) { - if (isDomLoaded) { - fn(); - } - else { - domLoadFnArr[domLoadFnArr.length] = fn; - } - } - - - function addLoadEvent(fn) { - if (typeof win.addEventListener != UNDEF) { - win.addEventListener("load", fn, false); - } - else if (typeof doc.addEventListener != UNDEF) { - doc.addEventListener("load", fn, false); - } - else if (typeof win.attachEvent != UNDEF) { - addListener(win, "onload", fn); - } - else if (typeof win.onload == "function") { - var fnOld = win.onload; - win.onload = function() { - fnOld(); - fn(); - }; - } - else { - win.onload = fn; - } - } - - - function main() { - if (plugin) { - testPlayerVersion(); - } - else { - matchVersions(); - } - } - - - function testPlayerVersion() { - var b = doc.getElementsByTagName("body")[0]; - var o = createElement(OBJECT); - o.setAttribute("type", FLASH_MIME_TYPE); - var t = b.appendChild(o); - if (t) { - var counter = 0; - (function(){ - if (typeof t.GetVariable != UNDEF) { - var d = t.GetVariable("$version"); - if (d) { - d = d.split(" ")[1].split(","); - ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; - } - } - else if (counter < 10) { - counter++; - setTimeout(arguments.callee, 10); - return; - } - b.removeChild(o); - t = null; - matchVersions(); - })(); - } - else { - matchVersions(); - } - } - - - function matchVersions() { - var rl = regObjArr.length; - if (rl > 0) { - for (var i = 0; i < rl; i++) { - var id = regObjArr[i].id; - var cb = regObjArr[i].callbackFn; - var cbObj = {success:false, id:id}; - if (ua.pv[0] > 0) { - var obj = getElementById(id); - if (obj) { - if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { - setVisibility(id, true); - if (cb) { - cbObj.success = true; - cbObj.ref = getObjectById(id); - cb(cbObj); - } - } - else if (regObjArr[i].expressInstall && canExpressInstall()) { - var att = {}; - att.data = regObjArr[i].expressInstall; - att.width = obj.getAttribute("width") || "0"; - att.height = obj.getAttribute("height") || "0"; - if (obj.getAttribute("class")) { att.styleclass = obj.getAttribute("class"); } - if (obj.getAttribute("align")) { att.align = obj.getAttribute("align"); } - - var par = {}; - var p = obj.getElementsByTagName("param"); - var pl = p.length; - for (var j = 0; j < pl; j++) { - if (p[j].getAttribute("name").toLowerCase() != "movie") { - par[p[j].getAttribute("name")] = p[j].getAttribute("value"); - } - } - showExpressInstall(att, par, id, cb); - } - else { - displayAltContent(obj); - if (cb) { cb(cbObj); } - } - } - } - else { - setVisibility(id, true); - if (cb) { - var o = getObjectById(id); - if (o && typeof o.SetVariable != UNDEF) { - cbObj.success = true; - cbObj.ref = o; - } - cb(cbObj); - } - } - } - } - } - - function getObjectById(objectIdStr) { - var r = null; - var o = getElementById(objectIdStr); - if (o && o.nodeName == "OBJECT") { - if (typeof o.SetVariable != UNDEF) { - r = o; - } - else { - var n = o.getElementsByTagName(OBJECT)[0]; - if (n) { - r = n; - } - } - } - return r; - } - - - function canExpressInstall() { - return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312); - } - - - function showExpressInstall(att, par, replaceElemIdStr, callbackFn) { - isExpressInstallActive = true; - storedCallbackFn = callbackFn || null; - storedCallbackObj = {success:false, id:replaceElemIdStr}; - var obj = getElementById(replaceElemIdStr); - if (obj) { - if (obj.nodeName == "OBJECT") { - storedAltContent = abstractAltContent(obj); - storedAltContentId = null; - } - else { - storedAltContent = obj; - storedAltContentId = replaceElemIdStr; - } - att.id = EXPRESS_INSTALL_ID; - if (typeof att.width == UNDEF || (!(/%$/).test(att.width) && parseInt(att.width, 10) < 310)) { - att.width = "310"; - } - - if (typeof att.height == UNDEF || (!(/%$/).test(att.height) && parseInt(att.height, 10) < 137)) { - att.height = "137"; - } - doc.title = doc.title.slice(0, 47) + " - Flash Player Installation"; - var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn", - fv = "MMredirectURL=" + win.location.toString().replace(/&/g,"%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title; - if (typeof par.flashvars != UNDEF) { - par.flashvars += "&" + fv; - } - else { - par.flashvars = fv; - } - - - if (ua.ie && ua.win && obj.readyState != 4) { - var newObj = createElement("div"); - replaceElemIdStr += "SWFObjectNew"; - newObj.setAttribute("id", replaceElemIdStr); - obj.parentNode.insertBefore(newObj, obj); - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - obj.parentNode.removeChild(obj); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - createSWF(att, par, replaceElemIdStr); - } - } - - - function displayAltContent(obj) { - if (ua.ie && ua.win && obj.readyState != 4) { - - - var el = createElement("div"); - obj.parentNode.insertBefore(el, obj); - el.parentNode.replaceChild(abstractAltContent(obj), el); - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - obj.parentNode.removeChild(obj); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - else { - obj.parentNode.replaceChild(abstractAltContent(obj), obj); - } - } - - function abstractAltContent(obj) { - var ac = createElement("div"); - if (ua.win && ua.ie) { - ac.innerHTML = obj.innerHTML; - } - else { - var nestedObj = obj.getElementsByTagName(OBJECT)[0]; - if (nestedObj) { - var c = nestedObj.childNodes; - if (c) { - var cl = c.length; - for (var i = 0; i < cl; i++) { - if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) { - ac.appendChild(c[i].cloneNode(true)); - } - } - } - } - } - return ac; - } - - - function createSWF(attObj, parObj, id) { - var r, el = getElementById(id); - if (ua.wk && ua.wk < 312) { return r; } - if (el) { - if (typeof attObj.id == UNDEF) { - attObj.id = id; - } - if (ua.ie && ua.win) { - var att = ""; - for (var i in attObj) { - if (attObj[i] != Object.prototype[i]) { - if (i.toLowerCase() == "data") { - parObj.movie = attObj[i]; - } - else if (i.toLowerCase() == "styleclass") { - att += ' class="' + attObj[i] + '"'; - } - else if (i.toLowerCase() != "classid") { - att += ' ' + i + '="' + attObj[i] + '"'; - } - } - } - var par = ""; - for (var j in parObj) { - if (parObj[j] != Object.prototype[j]) { - par += ''; - } - } - el.outerHTML = '' + par + ''; - objIdArr[objIdArr.length] = attObj.id; - r = getElementById(attObj.id); - } - else { - var o = createElement(OBJECT); - o.setAttribute("type", FLASH_MIME_TYPE); - for (var m in attObj) { - if (attObj[m] != Object.prototype[m]) { - if (m.toLowerCase() == "styleclass") { - o.setAttribute("class", attObj[m]); - } - else if (m.toLowerCase() != "classid") { - o.setAttribute(m, attObj[m]); - } - } - } - for (var n in parObj) { - if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { - createObjParam(o, n, parObj[n]); - } - } - el.parentNode.replaceChild(o, el); - r = o; - } - } - return r; - } - - function createObjParam(el, pName, pValue) { - var p = createElement("param"); - p.setAttribute("name", pName); - p.setAttribute("value", pValue); - el.appendChild(p); - } - - - function removeSWF(id) { - var obj = getElementById(id); - if (obj && obj.nodeName == "OBJECT") { - if (ua.ie && ua.win) { - obj.style.display = "none"; - (function(){ - if (obj.readyState == 4) { - removeObjectInIE(id); - } - else { - setTimeout(arguments.callee, 10); - } - })(); - } - else { - obj.parentNode.removeChild(obj); - } - } - } - - function removeObjectInIE(id) { - var obj = getElementById(id); - if (obj) { - for (var i in obj) { - if (typeof obj[i] == "function") { - obj[i] = null; - } - } - obj.parentNode.removeChild(obj); - } - } - - - function getElementById(id) { - var el = null; - try { - el = doc.getElementById(id); - } - catch (e) {} - return el; - } - - function createElement(el) { - return doc.createElement(el); - } - - - function addListener(target, eventType, fn) { - target.attachEvent(eventType, fn); - listenersArr[listenersArr.length] = [target, eventType, fn]; - } - - - function hasPlayerVersion(rv) { - var pv = ua.pv, v = rv.split("."); - v[0] = parseInt(v[0], 10); - v[1] = parseInt(v[1], 10) || 0; - v[2] = parseInt(v[2], 10) || 0; - return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false; - } - - - function createCSS(sel, decl, media, newStyle) { - if (ua.ie && ua.mac) { return; } - var h = doc.getElementsByTagName("head")[0]; - if (!h) { return; } - var m = (media && typeof media == "string") ? media : "screen"; - if (newStyle) { - dynamicStylesheet = null; - dynamicStylesheetMedia = null; - } - if (!dynamicStylesheet || dynamicStylesheetMedia != m) { - - var s = createElement("style"); - s.setAttribute("type", "text/css"); - s.setAttribute("media", m); - dynamicStylesheet = h.appendChild(s); - if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) { - dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1]; - } - dynamicStylesheetMedia = m; - } - - if (ua.ie && ua.win) { - if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) { - dynamicStylesheet.addRule(sel, decl); - } - } - else { - if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) { - dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}")); - } - } - } - - function setVisibility(id, isVisible) { - if (!autoHideShow) { return; } - var v = isVisible ? "visible" : "hidden"; - if (isDomLoaded && getElementById(id)) { - getElementById(id).style.visibility = v; - } - else { - createCSS("#" + id, "visibility:" + v); - } - } - - - function urlEncodeIfNecessary(s) { - var regex = /[\\\"<>\.;]/; - var hasBadChars = regex.exec(s) != null; - return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s; - } - - - var cleanup = function() { - if (ua.ie && ua.win) { - window.attachEvent("onunload", function() { - - var ll = listenersArr.length; - for (var i = 0; i < ll; i++) { - listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]); - } - - var il = objIdArr.length; - for (var j = 0; j < il; j++) { - removeSWF(objIdArr[j]); - } - - for (var k in ua) { - ua[k] = null; - } - ua = null; - for (var l in swfobject) { - swfobject[l] = null; - } - swfobject = null; - window.detachEvent('onunload', arguments.callee); - }); - } - }(); - - return { - - registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) { - if (ua.w3 && objectIdStr && swfVersionStr) { - var regObj = {}; - regObj.id = objectIdStr; - regObj.swfVersion = swfVersionStr; - regObj.expressInstall = xiSwfUrlStr; - regObj.callbackFn = callbackFn; - regObjArr[regObjArr.length] = regObj; - setVisibility(objectIdStr, false); - } - else if (callbackFn) { - callbackFn({success:false, id:objectIdStr}); - } - }, - - getObjectById: function(objectIdStr) { - if (ua.w3) { - return getObjectById(objectIdStr); - } - }, - - embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) { - var callbackObj = {success:false, id:replaceElemIdStr}; - if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) { - setVisibility(replaceElemIdStr, false); - addDomLoadEvent(function() { - widthStr += ""; - heightStr += ""; - var att = {}; - if (attObj && typeof attObj === OBJECT) { - for (var i in attObj) { - att[i] = attObj[i]; - } - } - att.data = swfUrlStr; - att.width = widthStr; - att.height = heightStr; - var par = {}; - if (parObj && typeof parObj === OBJECT) { - for (var j in parObj) { - par[j] = parObj[j]; - } - } - if (flashvarsObj && typeof flashvarsObj === OBJECT) { - for (var k in flashvarsObj) { - if (typeof par.flashvars != UNDEF) { - par.flashvars += "&" + k + "=" + flashvarsObj[k]; - } - else { - par.flashvars = k + "=" + flashvarsObj[k]; - } - } - } - if (hasPlayerVersion(swfVersionStr)) { - var obj = createSWF(att, par, replaceElemIdStr); - if (att.id == replaceElemIdStr) { - setVisibility(replaceElemIdStr, true); - } - callbackObj.success = true; - callbackObj.ref = obj; - } - else if (xiSwfUrlStr && canExpressInstall()) { - att.data = xiSwfUrlStr; - showExpressInstall(att, par, replaceElemIdStr, callbackFn); - return; - } - else { - setVisibility(replaceElemIdStr, true); - } - if (callbackFn) { callbackFn(callbackObj); } - }); - } - else if (callbackFn) { callbackFn(callbackObj); } - }, - - switchOffAutoHideShow: function() { - autoHideShow = false; - }, - - ua: ua, - - getFlashPlayerVersion: function() { - return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] }; - }, - - hasFlashPlayerVersion: hasPlayerVersion, - - createSWF: function(attObj, parObj, replaceElemIdStr) { - if (ua.w3) { - return createSWF(attObj, parObj, replaceElemIdStr); - } - else { - return undefined; - } - }, - - showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) { - if (ua.w3 && canExpressInstall()) { - showExpressInstall(att, par, replaceElemIdStr, callbackFn); - } - }, - - removeSWF: function(objElemIdStr) { - if (ua.w3) { - removeSWF(objElemIdStr); - } - }, - - createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) { - if (ua.w3) { - createCSS(selStr, declStr, mediaStr, newStyleBoolean); - } - }, - - addDomLoadEvent: addDomLoadEvent, - - addLoadEvent: addLoadEvent, - - getQueryParamValue: function(param) { - var q = doc.location.search || doc.location.hash; - if (q) { - if (/\?/.test(q)) { q = q.split("?")[1]; } - if (param == null) { - return urlEncodeIfNecessary(q); - } - var pairs = q.split("&"); - for (var i = 0; i < pairs.length; i++) { - if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) { - return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1))); - } - } - } - return ""; - }, - - - expressInstallCallback: function() { - if (isExpressInstallActive) { - var obj = getElementById(EXPRESS_INSTALL_ID); - if (obj && storedAltContent) { - obj.parentNode.replaceChild(storedAltContent, obj); - if (storedAltContentId) { - setVisibility(storedAltContentId, true); - if (ua.ie && ua.win) { storedAltContent.style.display = "block"; } - } - if (storedCallbackFn) { storedCallbackFn(storedCallbackObj); } - } - isExpressInstallActive = false; - } - } - }; -}(); - -Ext.FlashComponent = Ext.extend(Ext.BoxComponent, { - - flashVersion : '9.0.115', - - - backgroundColor: '#ffffff', - - - wmode: 'opaque', - - - flashVars: undefined, - - - flashParams: undefined, - - - url: undefined, - swfId : undefined, - swfWidth: '100%', - swfHeight: '100%', - - - expressInstall: false, - - initComponent : function(){ - Ext.FlashComponent.superclass.initComponent.call(this); - - this.addEvents( - - 'initialize' - ); - }, - - onRender : function(){ - Ext.FlashComponent.superclass.onRender.apply(this, arguments); - - var params = Ext.apply({ - allowScriptAccess: 'always', - bgcolor: this.backgroundColor, - wmode: this.wmode - }, this.flashParams), vars = Ext.apply({ - allowedDomain: document.location.hostname, - YUISwfId: this.getId(), - YUIBridgeCallback: 'Ext.FlashEventProxy.onEvent' - }, this.flashVars); - - new swfobject.embedSWF(this.url, this.id, this.swfWidth, this.swfHeight, this.flashVersion, - this.expressInstall ? Ext.FlashComponent.EXPRESS_INSTALL_URL : undefined, vars, params); - - this.swf = Ext.getDom(this.id); - this.el = Ext.get(this.swf); - }, - - getSwfId : function(){ - return this.swfId || (this.swfId = "extswf" + (++Ext.Component.AUTO_ID)); - }, - - getId : function(){ - return this.id || (this.id = "extflashcmp" + (++Ext.Component.AUTO_ID)); - }, - - onFlashEvent : function(e){ - switch(e.type){ - case "swfReady": - this.initSwf(); - return; - case "log": - return; - } - e.component = this; - this.fireEvent(e.type.toLowerCase().replace(/event$/, ''), e); - }, - - initSwf : function(){ - this.onSwfReady(!!this.isInitialized); - this.isInitialized = true; - this.fireEvent('initialize', this); - }, - - beforeDestroy: function(){ - if(this.rendered){ - swfobject.removeSWF(this.swf.id); - } - Ext.FlashComponent.superclass.beforeDestroy.call(this); - }, - - onSwfReady : Ext.emptyFn -}); - - -Ext.FlashComponent.EXPRESS_INSTALL_URL = 'http:/' + '/swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf'; - -Ext.reg('flash', Ext.FlashComponent); -Ext.FlashEventProxy = { - onEvent : function(id, e){ - var fp = Ext.getCmp(id); - if(fp){ - fp.onFlashEvent(e); - }else{ - arguments.callee.defer(10, this, [id, e]); - } - } -}; - - Ext.chart.Chart = Ext.extend(Ext.FlashComponent, { - refreshBuffer: 100, - - - - - chartStyle: { - padding: 10, - animationEnabled: true, - font: { - name: 'Tahoma', - color: 0x444444, - size: 11 - }, - dataTip: { - padding: 5, - border: { - color: 0x99bbe8, - size:1 - }, - background: { - color: 0xDAE7F6, - alpha: .9 - }, - font: { - name: 'Tahoma', - color: 0x15428B, - size: 10, - bold: true - } - } - }, - - - - - extraStyle: null, - - - seriesStyles: null, - - - disableCaching: Ext.isIE || Ext.isOpera, - disableCacheParam: '_dc', - - initComponent : function(){ - Ext.chart.Chart.superclass.initComponent.call(this); - if(!this.url){ - this.url = Ext.chart.Chart.CHART_URL; - } - if(this.disableCaching){ - this.url = Ext.urlAppend(this.url, String.format('{0}={1}', this.disableCacheParam, new Date().getTime())); - } - this.addEvents( - 'itemmouseover', - 'itemmouseout', - 'itemclick', - 'itemdoubleclick', - 'itemdragstart', - 'itemdrag', - 'itemdragend', - - 'beforerefresh', - - 'refresh' - ); - this.store = Ext.StoreMgr.lookup(this.store); - }, - - - setStyle: function(name, value){ - this.swf.setStyle(name, Ext.encode(value)); - }, - - - setStyles: function(styles){ - this.swf.setStyles(Ext.encode(styles)); - }, - - - setSeriesStyles: function(styles){ - this.seriesStyles = styles; - var s = []; - Ext.each(styles, function(style){ - s.push(Ext.encode(style)); - }); - this.swf.setSeriesStyles(s); - }, - - setCategoryNames : function(names){ - this.swf.setCategoryNames(names); - }, - - setLegendRenderer : function(fn, scope){ - var chart = this; - scope = scope || chart; - chart.removeFnProxy(chart.legendFnName); - chart.legendFnName = chart.createFnProxy(function(name){ - return fn.call(scope, name); - }); - chart.swf.setLegendLabelFunction(chart.legendFnName); - }, - - setTipRenderer : function(fn, scope){ - var chart = this; - scope = scope || chart; - chart.removeFnProxy(chart.tipFnName); - chart.tipFnName = chart.createFnProxy(function(item, index, series){ - var record = chart.store.getAt(index); - return fn.call(scope, chart, record, index, series); - }); - chart.swf.setDataTipFunction(chart.tipFnName); - }, - - setSeries : function(series){ - this.series = series; - this.refresh(); - }, - - - bindStore : function(store, initial){ - if(!initial && this.store){ - if(store !== this.store && this.store.autoDestroy){ - this.store.destroy(); - }else{ - this.store.un("datachanged", this.refresh, this); - this.store.un("add", this.delayRefresh, this); - this.store.un("remove", this.delayRefresh, this); - this.store.un("update", this.delayRefresh, this); - this.store.un("clear", this.refresh, this); - } - } - if(store){ - store = Ext.StoreMgr.lookup(store); - store.on({ - scope: this, - datachanged: this.refresh, - add: this.delayRefresh, - remove: this.delayRefresh, - update: this.delayRefresh, - clear: this.refresh - }); - } - this.store = store; - if(store && !initial){ - this.refresh(); - } - }, - - onSwfReady : function(isReset){ - Ext.chart.Chart.superclass.onSwfReady.call(this, isReset); - var ref; - this.swf.setType(this.type); - - if(this.chartStyle){ - this.setStyles(Ext.apply({}, this.extraStyle, this.chartStyle)); - } - - if(this.categoryNames){ - this.setCategoryNames(this.categoryNames); - } - - if(this.tipRenderer){ - ref = this.getFunctionRef(this.tipRenderer); - this.setTipRenderer(ref.fn, ref.scope); - } - if(this.legendRenderer){ - ref = this.getFunctionRef(this.legendRenderer); - this.setLegendRenderer(ref.fn, ref.scope); - } - if(!isReset){ - this.bindStore(this.store, true); - } - this.refresh.defer(10, this); - }, - - delayRefresh : function(){ - if(!this.refreshTask){ - this.refreshTask = new Ext.util.DelayedTask(this.refresh, this); - } - this.refreshTask.delay(this.refreshBuffer); - }, - - refresh : function(){ - if(this.fireEvent('beforerefresh', this) !== false){ - var styleChanged = false; - - var data = [], rs = this.store.data.items; - for(var j = 0, len = rs.length; j < len; j++){ - data[j] = rs[j].data; - } - - - var dataProvider = []; - var seriesCount = 0; - var currentSeries = null; - var i = 0; - if(this.series){ - seriesCount = this.series.length; - for(i = 0; i < seriesCount; i++){ - currentSeries = this.series[i]; - var clonedSeries = {}; - for(var prop in currentSeries){ - if(prop == "style" && currentSeries.style !== null){ - clonedSeries.style = Ext.encode(currentSeries.style); - styleChanged = true; - - - - - } else{ - clonedSeries[prop] = currentSeries[prop]; - } - } - dataProvider.push(clonedSeries); - } - } - - if(seriesCount > 0){ - for(i = 0; i < seriesCount; i++){ - currentSeries = dataProvider[i]; - if(!currentSeries.type){ - currentSeries.type = this.type; - } - currentSeries.dataProvider = data; - } - } else{ - dataProvider.push({type: this.type, dataProvider: data}); - } - this.swf.setDataProvider(dataProvider); - if(this.seriesStyles){ - this.setSeriesStyles(this.seriesStyles); - } - this.fireEvent('refresh', this); - } - }, - - - createFnProxy : function(fn){ - var fnName = 'extFnProxy' + (++Ext.chart.Chart.PROXY_FN_ID); - Ext.chart.Chart.proxyFunction[fnName] = fn; - return 'Ext.chart.Chart.proxyFunction.' + fnName; - }, - - - removeFnProxy : function(fn){ - if(!Ext.isEmpty(fn)){ - fn = fn.replace('Ext.chart.Chart.proxyFunction.', ''); - delete Ext.chart.Chart.proxyFunction[fn]; - } - }, - - - getFunctionRef : function(val){ - if(Ext.isFunction(val)){ - return { - fn: val, - scope: this - }; - }else{ - return { - fn: val.fn, - scope: val.scope || this - }; - } - }, - - - onDestroy: function(){ - if (this.refreshTask && this.refreshTask.cancel){ - this.refreshTask.cancel(); - } - Ext.chart.Chart.superclass.onDestroy.call(this); - this.bindStore(null); - this.removeFnProxy(this.tipFnName); - this.removeFnProxy(this.legendFnName); - } -}); -Ext.reg('chart', Ext.chart.Chart); -Ext.chart.Chart.PROXY_FN_ID = 0; -Ext.chart.Chart.proxyFunction = {}; - - -Ext.chart.Chart.CHART_URL = 'http:/' + '/yui.yahooapis.com/2.8.2/build/charts/assets/charts.swf'; - - -Ext.chart.PieChart = Ext.extend(Ext.chart.Chart, { - type: 'pie', - - onSwfReady : function(isReset){ - Ext.chart.PieChart.superclass.onSwfReady.call(this, isReset); - - this.setDataField(this.dataField); - this.setCategoryField(this.categoryField); - }, - - setDataField : function(field){ - this.dataField = field; - this.swf.setDataField(field); - }, - - setCategoryField : function(field){ - this.categoryField = field; - this.swf.setCategoryField(field); - } -}); -Ext.reg('piechart', Ext.chart.PieChart); - - -Ext.chart.CartesianChart = Ext.extend(Ext.chart.Chart, { - onSwfReady : function(isReset){ - Ext.chart.CartesianChart.superclass.onSwfReady.call(this, isReset); - this.labelFn = []; - if(this.xField){ - this.setXField(this.xField); - } - if(this.yField){ - this.setYField(this.yField); - } - if(this.xAxis){ - this.setXAxis(this.xAxis); - } - if(this.xAxes){ - this.setXAxes(this.xAxes); - } - if(this.yAxis){ - this.setYAxis(this.yAxis); - } - if(this.yAxes){ - this.setYAxes(this.yAxes); - } - if(Ext.isDefined(this.constrainViewport)){ - this.swf.setConstrainViewport(this.constrainViewport); - } - }, - - setXField : function(value){ - this.xField = value; - this.swf.setHorizontalField(value); - }, - - setYField : function(value){ - this.yField = value; - this.swf.setVerticalField(value); - }, - - setXAxis : function(value){ - this.xAxis = this.createAxis('xAxis', value); - this.swf.setHorizontalAxis(this.xAxis); - }, - - setXAxes : function(value){ - var axis; - for(var i = 0; i < value.length; i++) { - axis = this.createAxis('xAxis' + i, value[i]); - this.swf.setHorizontalAxis(axis); - } - }, - - setYAxis : function(value){ - this.yAxis = this.createAxis('yAxis', value); - this.swf.setVerticalAxis(this.yAxis); - }, - - setYAxes : function(value){ - var axis; - for(var i = 0; i < value.length; i++) { - axis = this.createAxis('yAxis' + i, value[i]); - this.swf.setVerticalAxis(axis); - } - }, - - createAxis : function(axis, value){ - var o = Ext.apply({}, value), - ref, - old; - - if(this[axis]){ - old = this[axis].labelFunction; - this.removeFnProxy(old); - this.labelFn.remove(old); - } - if(o.labelRenderer){ - ref = this.getFunctionRef(o.labelRenderer); - o.labelFunction = this.createFnProxy(function(v){ - return ref.fn.call(ref.scope, v); - }); - delete o.labelRenderer; - this.labelFn.push(o.labelFunction); - } - if(axis.indexOf('xAxis') > -1 && o.position == 'left'){ - o.position = 'bottom'; - } - return o; - }, - - onDestroy : function(){ - Ext.chart.CartesianChart.superclass.onDestroy.call(this); - Ext.each(this.labelFn, function(fn){ - this.removeFnProxy(fn); - }, this); - } -}); -Ext.reg('cartesianchart', Ext.chart.CartesianChart); - - -Ext.chart.LineChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'line' -}); -Ext.reg('linechart', Ext.chart.LineChart); - - -Ext.chart.ColumnChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'column' -}); -Ext.reg('columnchart', Ext.chart.ColumnChart); - - -Ext.chart.StackedColumnChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'stackcolumn' -}); -Ext.reg('stackedcolumnchart', Ext.chart.StackedColumnChart); - - -Ext.chart.BarChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'bar' -}); -Ext.reg('barchart', Ext.chart.BarChart); - - -Ext.chart.StackedBarChart = Ext.extend(Ext.chart.CartesianChart, { - type: 'stackbar' -}); -Ext.reg('stackedbarchart', Ext.chart.StackedBarChart); - - - - -Ext.chart.Axis = function(config){ - Ext.apply(this, config); -}; - -Ext.chart.Axis.prototype = -{ - - type: null, - - - orientation: "horizontal", - - - reverse: false, - - - labelFunction: null, - - - hideOverlappingLabels: true, - - - labelSpacing: 2 -}; - - -Ext.chart.NumericAxis = Ext.extend(Ext.chart.Axis, { - type: "numeric", - - - minimum: NaN, - - - maximum: NaN, - - - majorUnit: NaN, - - - minorUnit: NaN, - - - snapToUnits: true, - - - alwaysShowZero: true, - - - scale: "linear", - - - roundMajorUnit: true, - - - calculateByLabelSize: true, - - - position: 'left', - - - adjustMaximumByMajorUnit: true, - - - adjustMinimumByMajorUnit: true - -}); - - -Ext.chart.TimeAxis = Ext.extend(Ext.chart.Axis, { - type: "time", - - - minimum: null, - - - maximum: null, - - - majorUnit: NaN, - - - majorTimeUnit: null, - - - minorUnit: NaN, - - - minorTimeUnit: null, - - - snapToUnits: true, - - - stackingEnabled: false, - - - calculateByLabelSize: true - -}); - - -Ext.chart.CategoryAxis = Ext.extend(Ext.chart.Axis, { - type: "category", - - - categoryNames: null, - - - calculateCategoryCount: false - -}); - - -Ext.chart.Series = function(config) { Ext.apply(this, config); }; - -Ext.chart.Series.prototype = -{ - - type: null, - - - displayName: null -}; - - -Ext.chart.CartesianSeries = Ext.extend(Ext.chart.Series, { - - xField: null, - - - yField: null, - - - showInLegend: true, - - - axis: 'primary' -}); - - -Ext.chart.ColumnSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "column" -}); - - -Ext.chart.LineSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "line" -}); - - -Ext.chart.BarSeries = Ext.extend(Ext.chart.CartesianSeries, { - type: "bar" -}); - - - -Ext.chart.PieSeries = Ext.extend(Ext.chart.Series, { - type: "pie", - dataField: null, - categoryField: null -}); -Ext.menu.Menu = Ext.extend(Ext.Container, { - - - - minWidth : 120, - - shadow : 'sides', - - subMenuAlign : 'tl-tr?', - - defaultAlign : 'tl-bl?', - - allowOtherMenus : false, - - ignoreParentClicks : false, - - enableScrolling : true, - - maxHeight : null, - - scrollIncrement : 24, - - showSeparator : true, - - defaultOffsets : [0, 0], - - - plain : false, - - - floating : true, - - - - zIndex: 15000, - - - hidden : true, - - - layout : 'menu', - hideMode : 'offsets', - scrollerHeight : 8, - autoLayout : true, - defaultType : 'menuitem', - bufferResize : false, - - initComponent : function(){ - if(Ext.isArray(this.initialConfig)){ - Ext.apply(this, {items:this.initialConfig}); - } - this.addEvents( - - 'click', - - 'mouseover', - - 'mouseout', - - 'itemclick' - ); - Ext.menu.MenuMgr.register(this); - if(this.floating){ - Ext.EventManager.onWindowResize(this.hide, this); - }else{ - if(this.initialConfig.hidden !== false){ - this.hidden = false; - } - this.internalDefaults = {hideOnClick: false}; - } - Ext.menu.Menu.superclass.initComponent.call(this); - if(this.autoLayout){ - var fn = this.doLayout.createDelegate(this, []); - this.on({ - add: fn, - remove: fn - }); - } - }, - - - getLayoutTarget : function() { - return this.ul; - }, - - - onRender : function(ct, position){ - if(!ct){ - ct = Ext.getBody(); - } - - var dh = { - id: this.getId(), - cls: 'x-menu ' + ((this.floating) ? 'x-menu-floating x-layer ' : '') + (this.cls || '') + (this.plain ? ' x-menu-plain' : '') + (this.showSeparator ? '' : ' x-menu-nosep'), - style: this.style, - cn: [ - {tag: 'a', cls: 'x-menu-focus', href: '#', onclick: 'return false;', tabIndex: '-1'}, - {tag: 'ul', cls: 'x-menu-list'} - ] - }; - if(this.floating){ - this.el = new Ext.Layer({ - shadow: this.shadow, - dh: dh, - constrain: false, - parentEl: ct, - zindex: this.zIndex - }); - }else{ - this.el = ct.createChild(dh); - } - Ext.menu.Menu.superclass.onRender.call(this, ct, position); - - if(!this.keyNav){ - this.keyNav = new Ext.menu.MenuNav(this); - } - - this.focusEl = this.el.child('a.x-menu-focus'); - this.ul = this.el.child('ul.x-menu-list'); - this.mon(this.ul, { - scope: this, - click: this.onClick, - mouseover: this.onMouseOver, - mouseout: this.onMouseOut - }); - if(this.enableScrolling){ - this.mon(this.el, { - scope: this, - delegate: '.x-menu-scroller', - click: this.onScroll, - mouseover: this.deactivateActive - }); - } - }, - - - findTargetItem : function(e){ - var t = e.getTarget('.x-menu-list-item', this.ul, true); - if(t && t.menuItemId){ - return this.items.get(t.menuItemId); - } - }, - - - onClick : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t.isFormField){ - this.setActiveItem(t); - }else if(t instanceof Ext.menu.BaseItem){ - if(t.menu && this.ignoreParentClicks){ - t.expandMenu(); - e.preventDefault(); - }else if(t.onClick){ - t.onClick(e); - this.fireEvent('click', this, t, e); - } - } - } - }, - - - setActiveItem : function(item, autoExpand){ - if(item != this.activeItem){ - this.deactivateActive(); - if((this.activeItem = item).isFormField){ - item.focus(); - }else{ - item.activate(autoExpand); - } - }else if(autoExpand){ - item.expandMenu(); - } - }, - - deactivateActive : function(){ - var a = this.activeItem; - if(a){ - if(a.isFormField){ - - if(a.collapse){ - a.collapse(); - } - }else{ - a.deactivate(); - } - delete this.activeItem; - } - }, - - - tryActivate : function(start, step){ - var items = this.items; - for(var i = start, len = items.length; i >= 0 && i < len; i+= step){ - var item = items.get(i); - if(item.isVisible() && !item.disabled && (item.canActivate || item.isFormField)){ - this.setActiveItem(item, false); - return item; - } - } - return false; - }, - - - onMouseOver : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t.canActivate && !t.disabled){ - this.setActiveItem(t, true); - } - } - this.over = true; - this.fireEvent('mouseover', this, e, t); - }, - - - onMouseOut : function(e){ - var t = this.findTargetItem(e); - if(t){ - if(t == this.activeItem && t.shouldDeactivate && t.shouldDeactivate(e)){ - this.activeItem.deactivate(); - delete this.activeItem; - } - } - this.over = false; - this.fireEvent('mouseout', this, e, t); - }, - - - onScroll : function(e, t){ - if(e){ - e.stopEvent(); - } - var ul = this.ul.dom, top = Ext.fly(t).is('.x-menu-scroller-top'); - ul.scrollTop += this.scrollIncrement * (top ? -1 : 1); - if(top ? ul.scrollTop <= 0 : ul.scrollTop + this.activeMax >= ul.scrollHeight){ - this.onScrollerOut(null, t); - } - }, - - - onScrollerIn : function(e, t){ - var ul = this.ul.dom, top = Ext.fly(t).is('.x-menu-scroller-top'); - if(top ? ul.scrollTop > 0 : ul.scrollTop + this.activeMax < ul.scrollHeight){ - Ext.fly(t).addClass(['x-menu-item-active', 'x-menu-scroller-active']); - } - }, - - - onScrollerOut : function(e, t){ - Ext.fly(t).removeClass(['x-menu-item-active', 'x-menu-scroller-active']); - }, - - - show : function(el, pos, parentMenu){ - if(this.floating){ - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - this.doLayout(false, true); - } - this.showAt(this.el.getAlignToXY(el, pos || this.defaultAlign, this.defaultOffsets), parentMenu); - }else{ - Ext.menu.Menu.superclass.show.call(this); - } - }, - - - showAt : function(xy, parentMenu){ - if(this.fireEvent('beforeshow', this) !== false){ - this.parentMenu = parentMenu; - if(!this.el){ - this.render(); - } - if(this.enableScrolling){ - - this.el.setXY(xy); - - xy[1] = this.constrainScroll(xy[1]); - xy = [this.el.adjustForConstraints(xy)[0], xy[1]]; - }else{ - - xy = this.el.adjustForConstraints(xy); - } - this.el.setXY(xy); - this.el.show(); - Ext.menu.Menu.superclass.onShow.call(this); - if(Ext.isIE){ - - this.fireEvent('autosize', this); - if(!Ext.isIE8){ - this.el.repaint(); - } - } - this.hidden = false; - this.focus(); - this.fireEvent('show', this); - } - }, - - constrainScroll : function(y){ - var max, full = this.ul.setHeight('auto').getHeight(), - returnY = y, normalY, parentEl, scrollTop, viewHeight; - if(this.floating){ - parentEl = Ext.fly(this.el.dom.parentNode); - scrollTop = parentEl.getScroll().top; - viewHeight = parentEl.getViewSize().height; - - - normalY = y - scrollTop; - max = this.maxHeight ? this.maxHeight : viewHeight - normalY; - if(full > viewHeight) { - max = viewHeight; - - returnY = y - normalY; - } else if(max < full) { - returnY = y - (full - max); - max = full; - } - }else{ - max = this.getHeight(); - } - - if (this.maxHeight){ - max = Math.min(this.maxHeight, max); - } - if(full > max && max > 0){ - this.activeMax = max - this.scrollerHeight * 2 - this.el.getFrameWidth('tb') - Ext.num(this.el.shadowOffset, 0); - this.ul.setHeight(this.activeMax); - this.createScrollers(); - this.el.select('.x-menu-scroller').setDisplayed(''); - }else{ - this.ul.setHeight(full); - this.el.select('.x-menu-scroller').setDisplayed('none'); - } - this.ul.dom.scrollTop = 0; - return returnY; - }, - - createScrollers : function(){ - if(!this.scroller){ - this.scroller = { - pos: 0, - top: this.el.insertFirst({ - tag: 'div', - cls: 'x-menu-scroller x-menu-scroller-top', - html: ' ' - }), - bottom: this.el.createChild({ - tag: 'div', - cls: 'x-menu-scroller x-menu-scroller-bottom', - html: ' ' - }) - }; - this.scroller.top.hover(this.onScrollerIn, this.onScrollerOut, this); - this.scroller.topRepeater = new Ext.util.ClickRepeater(this.scroller.top, { - listeners: { - click: this.onScroll.createDelegate(this, [null, this.scroller.top], false) - } - }); - this.scroller.bottom.hover(this.onScrollerIn, this.onScrollerOut, this); - this.scroller.bottomRepeater = new Ext.util.ClickRepeater(this.scroller.bottom, { - listeners: { - click: this.onScroll.createDelegate(this, [null, this.scroller.bottom], false) - } - }); - } - }, - - onLayout : function(){ - if(this.isVisible()){ - if(this.enableScrolling){ - this.constrainScroll(this.el.getTop()); - } - if(this.floating){ - this.el.sync(); - } - } - }, - - focus : function(){ - if(!this.hidden){ - this.doFocus.defer(50, this); - } - }, - - doFocus : function(){ - if(!this.hidden){ - this.focusEl.focus(); - } - }, - - - hide : function(deep){ - if (!this.isDestroyed) { - this.deepHide = deep; - Ext.menu.Menu.superclass.hide.call(this); - delete this.deepHide; - } - }, - - - onHide : function(){ - Ext.menu.Menu.superclass.onHide.call(this); - this.deactivateActive(); - if(this.el && this.floating){ - this.el.hide(); - } - var pm = this.parentMenu; - if(this.deepHide === true && pm){ - if(pm.floating){ - pm.hide(true); - }else{ - pm.deactivateActive(); - } - } - }, - - - lookupComponent : function(c){ - if(Ext.isString(c)){ - c = (c == 'separator' || c == '-') ? new Ext.menu.Separator() : new Ext.menu.TextItem(c); - this.applyDefaults(c); - }else{ - if(Ext.isObject(c)){ - c = this.getMenuItem(c); - }else if(c.tagName || c.el){ - c = new Ext.BoxComponent({ - el: c - }); - } - } - return c; - }, - - applyDefaults : function(c) { - if (!Ext.isString(c)) { - c = Ext.menu.Menu.superclass.applyDefaults.call(this, c); - var d = this.internalDefaults; - if(d){ - if(c.events){ - Ext.applyIf(c.initialConfig, d); - Ext.apply(c, d); - }else{ - Ext.applyIf(c, d); - } - } - } - return c; - }, - - - getMenuItem : function(config) { - config.ownerCt = this; - - if (!config.isXType) { - if (!config.xtype && Ext.isBoolean(config.checked)) { - return new Ext.menu.CheckItem(config); - } - return Ext.create(config, this.defaultType); - } - return config; - }, - - - addSeparator : function() { - return this.add(new Ext.menu.Separator()); - }, - - - addElement : function(el) { - return this.add(new Ext.menu.BaseItem({ - el: el - })); - }, - - - addItem : function(item) { - return this.add(item); - }, - - - addMenuItem : function(config) { - return this.add(this.getMenuItem(config)); - }, - - - addText : function(text){ - return this.add(new Ext.menu.TextItem(text)); - }, - - - onDestroy : function(){ - Ext.EventManager.removeResizeListener(this.hide, this); - var pm = this.parentMenu; - if(pm && pm.activeChild == this){ - delete pm.activeChild; - } - delete this.parentMenu; - Ext.menu.Menu.superclass.onDestroy.call(this); - Ext.menu.MenuMgr.unregister(this); - if(this.keyNav) { - this.keyNav.disable(); - } - var s = this.scroller; - if(s){ - Ext.destroy(s.topRepeater, s.bottomRepeater, s.top, s.bottom); - } - Ext.destroy( - this.el, - this.focusEl, - this.ul - ); - } -}); - -Ext.reg('menu', Ext.menu.Menu); - - -Ext.menu.MenuNav = Ext.extend(Ext.KeyNav, function(){ - function up(e, m){ - if(!m.tryActivate(m.items.indexOf(m.activeItem)-1, -1)){ - m.tryActivate(m.items.length-1, -1); - } - } - function down(e, m){ - if(!m.tryActivate(m.items.indexOf(m.activeItem)+1, 1)){ - m.tryActivate(0, 1); - } - } - return { - constructor : function(menu){ - Ext.menu.MenuNav.superclass.constructor.call(this, menu.el); - this.scope = this.menu = menu; - }, - - doRelay : function(e, h){ - var k = e.getKey(); - - if (this.menu.activeItem && this.menu.activeItem.isFormField && k != e.TAB) { - return false; - } - if(!this.menu.activeItem && e.isNavKeyPress() && k != e.SPACE && k != e.RETURN){ - this.menu.tryActivate(0, 1); - return false; - } - return h.call(this.scope || this, e, this.menu); - }, - - tab: function(e, m) { - e.stopEvent(); - if (e.shiftKey) { - up(e, m); - } else { - down(e, m); - } - }, - - up : up, - - down : down, - - right : function(e, m){ - if(m.activeItem){ - m.activeItem.expandMenu(true); - } - }, - - left : function(e, m){ - m.hide(); - if(m.parentMenu && m.parentMenu.activeItem){ - m.parentMenu.activeItem.activate(); - } - }, - - enter : function(e, m){ - if(m.activeItem){ - e.stopPropagation(); - m.activeItem.onClick(e); - m.fireEvent('click', this, m.activeItem); - return true; - } - } - }; -}()); - -Ext.menu.MenuMgr = function(){ - var menus, - active, - map, - groups = {}, - attached = false, - lastShow = new Date(); - - - - function init(){ - menus = {}; - active = new Ext.util.MixedCollection(); - map = Ext.getDoc().addKeyListener(27, hideAll); - map.disable(); - } - - - function hideAll(){ - if(active && active.length > 0){ - var c = active.clone(); - c.each(function(m){ - m.hide(); - }); - return true; - } - return false; - } - - - function onHide(m){ - active.remove(m); - if(active.length < 1){ - map.disable(); - Ext.getDoc().un("mousedown", onMouseDown); - attached = false; - } - } - - - function onShow(m){ - var last = active.last(); - lastShow = new Date(); - active.add(m); - if(!attached){ - map.enable(); - Ext.getDoc().on("mousedown", onMouseDown); - attached = true; - } - if(m.parentMenu){ - m.getEl().setZIndex(parseInt(m.parentMenu.getEl().getStyle("z-index"), 10) + 3); - m.parentMenu.activeChild = m; - }else if(last && !last.isDestroyed && last.isVisible()){ - m.getEl().setZIndex(parseInt(last.getEl().getStyle("z-index"), 10) + 3); - } - } - - - function onBeforeHide(m){ - if(m.activeChild){ - m.activeChild.hide(); - } - if(m.autoHideTimer){ - clearTimeout(m.autoHideTimer); - delete m.autoHideTimer; - } - } - - - function onBeforeShow(m){ - var pm = m.parentMenu; - if(!pm && !m.allowOtherMenus){ - hideAll(); - }else if(pm && pm.activeChild){ - pm.activeChild.hide(); - } - } - - - function onMouseDown(e){ - if(lastShow.getElapsed() > 50 && active.length > 0 && !e.getTarget(".x-menu")){ - hideAll(); - } - } - - return { - - - hideAll : function(){ - return hideAll(); - }, - - - register : function(menu){ - if(!menus){ - init(); - } - menus[menu.id] = menu; - menu.on({ - beforehide: onBeforeHide, - hide: onHide, - beforeshow: onBeforeShow, - show: onShow - }); - }, - - - get : function(menu){ - if(typeof menu == "string"){ - if(!menus){ - return null; - } - return menus[menu]; - }else if(menu.events){ - return menu; - }else if(typeof menu.length == 'number'){ - return new Ext.menu.Menu({items:menu}); - }else{ - return Ext.create(menu, 'menu'); - } - }, - - - unregister : function(menu){ - delete menus[menu.id]; - menu.un("beforehide", onBeforeHide); - menu.un("hide", onHide); - menu.un("beforeshow", onBeforeShow); - menu.un("show", onShow); - }, - - - registerCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - if(!groups[g]){ - groups[g] = []; - } - groups[g].push(menuItem); - } - }, - - - unregisterCheckable : function(menuItem){ - var g = menuItem.group; - if(g){ - groups[g].remove(menuItem); - } - }, - - - onCheckChange: function(item, state){ - if(item.group && state){ - var group = groups[item.group], - i = 0, - len = group.length, - current; - - for(; i < len; i++){ - current = group[i]; - if(current != item){ - current.setChecked(false); - } - } - } - }, - - getCheckedItem : function(groupId){ - var g = groups[groupId]; - if(g){ - for(var i = 0, l = g.length; i < l; i++){ - if(g[i].checked){ - return g[i]; - } - } - } - return null; - }, - - setCheckedItem : function(groupId, itemId){ - var g = groups[groupId]; - if(g){ - for(var i = 0, l = g.length; i < l; i++){ - if(g[i].id == itemId){ - g[i].setChecked(true); - } - } - } - return null; - } - }; -}(); - -Ext.menu.BaseItem = Ext.extend(Ext.Component, { - - - - - canActivate : false, - - activeClass : "x-menu-item-active", - - hideOnClick : true, - - clickHideDelay : 1, - - - ctype : "Ext.menu.BaseItem", - - - actionMode : "container", - - initComponent : function(){ - Ext.menu.BaseItem.superclass.initComponent.call(this); - this.addEvents( - - 'click', - - 'activate', - - 'deactivate' - ); - if(this.handler){ - this.on("click", this.handler, this.scope); - } - }, - - - onRender : function(container, position){ - Ext.menu.BaseItem.superclass.onRender.apply(this, arguments); - if(this.ownerCt && this.ownerCt instanceof Ext.menu.Menu){ - this.parentMenu = this.ownerCt; - }else{ - this.container.addClass('x-menu-list-item'); - this.mon(this.el, { - scope: this, - click: this.onClick, - mouseenter: this.activate, - mouseleave: this.deactivate - }); - } - }, - - - setHandler : function(handler, scope){ - if(this.handler){ - this.un("click", this.handler, this.scope); - } - this.on("click", this.handler = handler, this.scope = scope); - }, - - - onClick : function(e){ - if(!this.disabled && this.fireEvent("click", this, e) !== false - && (this.parentMenu && this.parentMenu.fireEvent("itemclick", this, e) !== false)){ - this.handleClick(e); - }else{ - e.stopEvent(); - } - }, - - - activate : function(){ - if(this.disabled){ - return false; - } - var li = this.container; - li.addClass(this.activeClass); - this.region = li.getRegion().adjust(2, 2, -2, -2); - this.fireEvent("activate", this); - return true; - }, - - - deactivate : function(){ - this.container.removeClass(this.activeClass); - this.fireEvent("deactivate", this); - }, - - - shouldDeactivate : function(e){ - return !this.region || !this.region.contains(e.getPoint()); - }, - - - handleClick : function(e){ - var pm = this.parentMenu; - if(this.hideOnClick){ - if(pm.floating){ - this.clickHideDelayTimer = pm.hide.defer(this.clickHideDelay, pm, [true]); - }else{ - pm.deactivateActive(); - } - } - }, - - beforeDestroy: function(){ - clearTimeout(this.clickHideDelayTimer); - Ext.menu.BaseItem.superclass.beforeDestroy.call(this); - }, - - - expandMenu : Ext.emptyFn, - - - hideMenu : Ext.emptyFn -}); -Ext.reg('menubaseitem', Ext.menu.BaseItem); -Ext.menu.TextItem = Ext.extend(Ext.menu.BaseItem, { - - - hideOnClick : false, - - itemCls : "x-menu-text", - - constructor : function(config) { - if (typeof config == 'string') { - config = { - text: config - }; - } - Ext.menu.TextItem.superclass.constructor.call(this, config); - }, - - - onRender : function() { - var s = document.createElement("span"); - s.className = this.itemCls; - s.innerHTML = this.text; - this.el = s; - Ext.menu.TextItem.superclass.onRender.apply(this, arguments); - } -}); -Ext.reg('menutextitem', Ext.menu.TextItem); -Ext.menu.Separator = Ext.extend(Ext.menu.BaseItem, { - - itemCls : "x-menu-sep", - - hideOnClick : false, - - - activeClass: '', - - - onRender : function(li){ - var s = document.createElement("span"); - s.className = this.itemCls; - s.innerHTML = " "; - this.el = s; - li.addClass("x-menu-sep-li"); - Ext.menu.Separator.superclass.onRender.apply(this, arguments); - } -}); -Ext.reg('menuseparator', Ext.menu.Separator); -Ext.menu.Item = Ext.extend(Ext.menu.BaseItem, { - - - - - - - - - itemCls : 'x-menu-item', - - canActivate : true, - - showDelay: 200, - - - altText: '', - - - hideDelay: 200, - - - ctype: 'Ext.menu.Item', - - initComponent : function(){ - Ext.menu.Item.superclass.initComponent.call(this); - if(this.menu){ - - - if (Ext.isArray(this.menu)){ - this.menu = { items: this.menu }; - } - - - - if (Ext.isObject(this.menu)){ - this.menu.ownerCt = this; - } - - this.menu = Ext.menu.MenuMgr.get(this.menu); - this.menu.ownerCt = undefined; - } - }, - - - onRender : function(container, position){ - if (!this.itemTpl) { - this.itemTpl = Ext.menu.Item.prototype.itemTpl = new Ext.XTemplate( - '', - ' target="{hrefTarget}"', - '', - '>', - '{altText}', - '{text}', - '' - ); - } - var a = this.getTemplateArgs(); - this.el = position ? this.itemTpl.insertBefore(position, a, true) : this.itemTpl.append(container, a, true); - this.iconEl = this.el.child('img.x-menu-item-icon'); - this.textEl = this.el.child('.x-menu-item-text'); - if(!this.href) { - this.mon(this.el, 'click', Ext.emptyFn, null, { preventDefault: true }); - } - Ext.menu.Item.superclass.onRender.call(this, container, position); - }, - - getTemplateArgs: function() { - return { - id: this.id, - cls: this.itemCls + (this.menu ? ' x-menu-item-arrow' : '') + (this.cls ? ' ' + this.cls : ''), - href: this.href || '#', - hrefTarget: this.hrefTarget, - icon: this.icon || Ext.BLANK_IMAGE_URL, - iconCls: this.iconCls || '', - text: this.itemText||this.text||' ', - altText: this.altText || '' - }; - }, - - - setText : function(text){ - this.text = text||' '; - if(this.rendered){ - this.textEl.update(this.text); - this.parentMenu.layout.doAutoSize(); - } - }, - - - setIconClass : function(cls){ - var oldCls = this.iconCls; - this.iconCls = cls; - if(this.rendered){ - this.iconEl.replaceClass(oldCls, this.iconCls); - } - }, - - - beforeDestroy: function(){ - clearTimeout(this.showTimer); - clearTimeout(this.hideTimer); - if (this.menu){ - delete this.menu.ownerCt; - this.menu.destroy(); - } - Ext.menu.Item.superclass.beforeDestroy.call(this); - }, - - - handleClick : function(e){ - if(!this.href){ - e.stopEvent(); - } - Ext.menu.Item.superclass.handleClick.apply(this, arguments); - }, - - - activate : function(autoExpand){ - if(Ext.menu.Item.superclass.activate.apply(this, arguments)){ - this.focus(); - if(autoExpand){ - this.expandMenu(); - } - } - return true; - }, - - - shouldDeactivate : function(e){ - if(Ext.menu.Item.superclass.shouldDeactivate.call(this, e)){ - if(this.menu && this.menu.isVisible()){ - return !this.menu.getEl().getRegion().contains(e.getPoint()); - } - return true; - } - return false; - }, - - - deactivate : function(){ - Ext.menu.Item.superclass.deactivate.apply(this, arguments); - this.hideMenu(); - }, - - - expandMenu : function(autoActivate){ - if(!this.disabled && this.menu){ - clearTimeout(this.hideTimer); - delete this.hideTimer; - if(!this.menu.isVisible() && !this.showTimer){ - this.showTimer = this.deferExpand.defer(this.showDelay, this, [autoActivate]); - }else if (this.menu.isVisible() && autoActivate){ - this.menu.tryActivate(0, 1); - } - } - }, - - - deferExpand : function(autoActivate){ - delete this.showTimer; - this.menu.show(this.container, this.parentMenu.subMenuAlign || 'tl-tr?', this.parentMenu); - if(autoActivate){ - this.menu.tryActivate(0, 1); - } - }, - - - hideMenu : function(){ - clearTimeout(this.showTimer); - delete this.showTimer; - if(!this.hideTimer && this.menu && this.menu.isVisible()){ - this.hideTimer = this.deferHide.defer(this.hideDelay, this); - } - }, - - - deferHide : function(){ - delete this.hideTimer; - if(this.menu.over){ - this.parentMenu.setActiveItem(this, false); - }else{ - this.menu.hide(); - } - } -}); -Ext.reg('menuitem', Ext.menu.Item); -Ext.menu.CheckItem = Ext.extend(Ext.menu.Item, { - - - itemCls : "x-menu-item x-menu-check-item", - - groupClass : "x-menu-group-item", - - - checked: false, - - - ctype: "Ext.menu.CheckItem", - - initComponent : function(){ - Ext.menu.CheckItem.superclass.initComponent.call(this); - this.addEvents( - - "beforecheckchange" , - - "checkchange" - ); - - if(this.checkHandler){ - this.on('checkchange', this.checkHandler, this.scope); - } - Ext.menu.MenuMgr.registerCheckable(this); - }, - - - onRender : function(c){ - Ext.menu.CheckItem.superclass.onRender.apply(this, arguments); - if(this.group){ - this.el.addClass(this.groupClass); - } - if(this.checked){ - this.checked = false; - this.setChecked(true, true); - } - }, - - - destroy : function(){ - Ext.menu.MenuMgr.unregisterCheckable(this); - Ext.menu.CheckItem.superclass.destroy.apply(this, arguments); - }, - - - setChecked : function(state, suppressEvent){ - var suppress = suppressEvent === true; - if(this.checked != state && (suppress || this.fireEvent("beforecheckchange", this, state) !== false)){ - Ext.menu.MenuMgr.onCheckChange(this, state); - if(this.container){ - this.container[state ? "addClass" : "removeClass"]("x-menu-item-checked"); - } - this.checked = state; - if(!suppress){ - this.fireEvent("checkchange", this, state); - } - } - }, - - - handleClick : function(e){ - if(!this.disabled && !(this.checked && this.group)){ - this.setChecked(!this.checked); - } - Ext.menu.CheckItem.superclass.handleClick.apply(this, arguments); - } -}); -Ext.reg('menucheckitem', Ext.menu.CheckItem); - Ext.menu.DateMenu = Ext.extend(Ext.menu.Menu, { - - enableScrolling : false, - - - - hideOnClick : true, - - - pickerId : null, - - - - - cls : 'x-date-menu', - - - - - - initComponent : function(){ - this.on('beforeshow', this.onBeforeShow, this); - if(this.strict = (Ext.isIE7 && Ext.isStrict)){ - this.on('show', this.onShow, this, {single: true, delay: 20}); - } - Ext.apply(this, { - plain: true, - showSeparator: false, - items: this.picker = new Ext.DatePicker(Ext.applyIf({ - internalRender: this.strict || !Ext.isIE, - ctCls: 'x-menu-date-item', - id: this.pickerId - }, this.initialConfig)) - }); - this.picker.purgeListeners(); - Ext.menu.DateMenu.superclass.initComponent.call(this); - - this.relayEvents(this.picker, ['select']); - this.on('show', this.picker.focus, this.picker); - this.on('select', this.menuHide, this); - if(this.handler){ - this.on('select', this.handler, this.scope || this); - } - }, - - menuHide : function() { - if(this.hideOnClick){ - this.hide(true); - } - }, - - onBeforeShow : function(){ - if(this.picker){ - this.picker.hideMonthPicker(true); - } - }, - - onShow : function(){ - var el = this.picker.getEl(); - el.setWidth(el.getWidth()); - } - }); - Ext.reg('datemenu', Ext.menu.DateMenu); - - Ext.menu.ColorMenu = Ext.extend(Ext.menu.Menu, { - - enableScrolling : false, - - - - - hideOnClick : true, - - cls : 'x-color-menu', - - - paletteId : null, - - - - - - - - - - - initComponent : function(){ - Ext.apply(this, { - plain: true, - showSeparator: false, - items: this.palette = new Ext.ColorPalette(Ext.applyIf({ - id: this.paletteId - }, this.initialConfig)) - }); - this.palette.purgeListeners(); - Ext.menu.ColorMenu.superclass.initComponent.call(this); - - this.relayEvents(this.palette, ['select']); - this.on('select', this.menuHide, this); - if(this.handler){ - this.on('select', this.handler, this.scope || this); - } - }, - - menuHide : function(){ - if(this.hideOnClick){ - this.hide(true); - } - } -}); -Ext.reg('colormenu', Ext.menu.ColorMenu); - -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(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]); - }, - - - 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(readOnly){ - if(this.rendered){ - this.el.dom.readOnly = readOnly; - } - this.readOnly = readOnly; - }, - - - afterRender : function(){ - Ext.form.Field.superclass.afterRender.call(this); - this.initEvents(); - this.initValue(); - }, - - - fireKey : function(e){ - if(e.isSpecialKey()){ - this.fireEvent('specialkey', this, e); - } - }, - - - reset : function(){ - this.setValue(this.originalValue); - this.clearInvalid(); - }, - - - initEvents : function(){ - this.mon(this.el, Ext.EventManager.getKeyEvent(), 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 v = this.getValue(); - if(String(v) !== String(this.startValue)){ - this.fireEvent('change', this, v, this.startValue); - } - this.fireEvent('blur', this); - this.postBlur(); - }, - - - postBlur : Ext.emptyFn, - - - isValid : function(preventMark){ - if(this.disabled){ - return true; - } - var restore = this.preventMark; - this.preventMark = preventMark === true; - var v = this.validateValue(this.processValue(this.getRawValue()), preventMark); - this.preventMark = restore; - return v; - }, - - - validate : function(){ - if(this.disabled || this.validateValue(this.processValue(this.getRawValue()))){ - this.clearInvalid(); - return true; - } - return false; - }, - - - processValue : function(value){ - return value; - }, - - - validateValue : function(value) { - - var error = this.getErrors(value)[0]; - - if (error == undefined) { - return true; - } else { - this.markInvalid(error); - return false; - } - }, - - - getErrors: function() { - return []; - }, - - - getActiveError : function(){ - return this.activeError || ''; - }, - - - markInvalid : function(msg){ - - 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); - }, - - - clearInvalid : function(){ - - 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(); - }, - - - setActiveError: function(msg, suppressEvent) { - this.activeError = msg; - if (suppressEvent !== true) this.fireEvent('invalid', this, msg); - }, - - - unsetActiveError: function(suppressEvent) { - delete this.activeError; - if (suppressEvent !== 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 v = this.rendered ? this.el.getValue() : Ext.value(this.value, ''); - if(v === this.emptyText){ - v = ''; - } - return v; - }, - - - getValue : function(){ - if(!this.rendered) { - return this.value; - } - var v = this.el.getValue(); - if(v === this.emptyText || v === undefined){ - v = ''; - } - return v; - }, - - - setRawValue : function(v){ - return this.rendered ? (this.el.dom.value = (Ext.isEmpty(v) ? '' : v)) : ''; - }, - - - setValue : function(v){ - this.value = v; - if(this.rendered){ - this.el.dom.value = (Ext.isEmpty(v) ? '' : v); - this.validate(); - } - return this; - }, - - - append : function(v){ - this.setValue([this.getValue(), v].join('')); - } - - - - - -}); - - -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){ - 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.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(); - - 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 = ''; - } - } - } -}; - - -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); - -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(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); - } - }, - - - 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(e){ - if(this.doAutoSize(e)){ - this.autoSize(); - } - }, - - - doAutoSize : function(e){ - return !e.isNavKeyPress(); - }, - - - onKeyUp : function(e){ - this.fireEvent('keyup', this, e); - }, - - - onKeyDown : function(e){ - this.fireEvent('keydown', this, e); - }, - - - onKeyPress : function(e){ - this.fireEvent('keypress', this, e); - }, - - - 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 el = this.el, - isEmpty; - if(this.emptyText){ - if(el.dom.value == this.emptyText){ - this.setRawValue(''); - isEmpty = true; - } - el.removeClass(this.emptyClass); - } - if(this.selectOnFocus || isEmpty){ - el.dom.select(); - } - }, - - - postBlur : function(){ - this.applyEmptyText(); - }, - - - 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; - }, - - - getErrors: function(value) { - var errors = Ext.form.TextField.superclass.getErrors.apply(this, arguments); - - value = Ext.isDefined(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) { - - return errors; - } else { - errors.push(this.blankText); - } - } - - if (!this.allowBlank && (value.length < 1 || value === this.emptyText)) { - 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; - }, - - - 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(); - } - }, - - - 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) + 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); - -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(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; - }, - - - alignErrorIcon : function(){ - if(this.wrap){ - this.errorIcon.alignTo(this.wrap, 'tl-tr', [2, 0]); - } - }, - - - 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, alt: "", 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(); - } - }, - - - setEditable: function(editable){ - if(editable != this.editable){ - this.editable = editable; - this.updateEditState(); - } - }, - - - setReadOnly: function(readOnly){ - if(readOnly != this.readOnly){ - this.readOnly = readOnly; - 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(me, e){ - if(e.getKey() == e.TAB){ - this.triggerBlur(); - } - }, - - - onBlur : Ext.emptyFn, - - - mimicBlur : function(e){ - if(!this.isDestroyed && !this.wrap.contains(e.target) && this.validateBlur(e)){ - 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(e){ - 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, alt: "", cls: "x-form-trigger " + this.trigger1Class}, - {tag: "img", src: Ext.BLANK_IMAGE_URL, alt: "", cls: "x-form-trigger " + this.trigger2Class} - ]}; - }, - - getTrigger : function(index){ - return this.triggers[index]; - }, - - afterRender: function(){ - Ext.form.TwinTriggerField.superclass.afterRender.call(this); - var triggers = this.triggers, - i = 0, - len = triggers.length; - - for(; i < len; ++i){ - if(this['hideTrigger' + (i + 1)]){ - triggers[i].hide(); - } - - } - }, - - initTrigger : function(){ - var ts = this.trigger.select('.x-form-trigger', true), - 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()); - triggerField['hidden' + triggerIndex] = true; - }; - t.show = function(){ - var w = triggerField.wrap.getWidth(); - this.dom.style.display = ''; - triggerField.el.setWidth(w-triggerField.trigger.getWidth()); - triggerField['hidden' + triggerIndex] = false; - }; - 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; - }, - - - 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(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); - } - }, - - - doAutoSize : function(e){ - return !e.isNavKeyPress() || e.getKey() == e.ENTER; - }, - - - filterValidation: function(e) { - if(!e.isNavKeyPress() || (!this.enterIsSpecial && e.keyCode == e.ENTER)){ - this.validationTask.delay(this.validationDelay); - } - }, - - - 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); -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", - - - autoStripChars: false, - - - initEvents : function() { - var allowed = this.baseChars + ''; - if (this.allowDecimals) { - allowed += this.decimalSeparator; - } - if (this.allowNegative) { - allowed += '-'; - } - allowed = Ext.escapeRe(allowed); - this.maskRe = new RegExp('[' + allowed + ']'); - if (this.autoStripChars) { - this.stripCharsRe = new RegExp('[^' + allowed + ']', 'gi'); - } - - Ext.form.NumberField.superclass.initEvents.call(this); - }, - - - getErrors: function(value) { - var errors = Ext.form.NumberField.superclass.getErrors.apply(this, arguments); - - value = Ext.isDefined(value) ? value : this.processValue(this.getRawValue()); - - if (value.length < 1) { - 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 = this.fixPrecision(v); - v = isNaN(v) ? '' : String(v).replace(".", this.decimalSeparator); - return Ext.form.NumberField.superclass.setValue.call(this, v); - }, - - - setMinValue : function(value) { - this.minValue = Ext.num(value, Number.NEGATIVE_INFINITY); - }, - - - setMaxValue : function(value) { - this.maxValue = Ext.num(value, Number.MAX_VALUE); - }, - - - parseValue : function(value) { - value = parseFloat(String(value).replace(this.decimalSeparator, ".")); - return isNaN(value) ? '' : value; - }, - - - 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(v); - } - } -}); - -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|n-j|n/j", - - 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, - - - startDay : 0, - - - - - - - - - defaultAutoCreate : {tag: "input", type: "text", size: "10", autocomplete: "off"}, - - - - initTime: '12', - - initTimeFormat: 'H', - - - safeParse : function(value, format) { - if (Date.formatContainsHourInfo(format)) { - - return Date.parseDate(value, format); - } else { - - 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( - - '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 - }); - }, - - - - 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 + ')'); - } - }, - - - setDisabledDates : function(dd){ - this.disabledDates = dd; - this.initDisabledDays(); - if(this.menu){ - this.menu.picker.setDisabledDates(this.disabledDatesRE); - } - }, - - - setDisabledDays : function(dd){ - this.disabledDays = dd; - if(this.menu){ - this.menu.picker.setDisabledDays(dd); - } - }, - - - setMinValue : function(dt){ - this.minValue = (Ext.isString(dt) ? this.parseDate(dt) : dt); - if(this.menu){ - this.menu.picker.setMinDate(this.minValue); - } - }, - - - setMaxValue : function(dt){ - this.maxValue = (Ext.isString(dt) ? this.parseDate(dt) : dt); - if(this.menu){ - this.menu.picker.setMaxDate(this.maxValue); - } - }, - - - 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) { - 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.clearTime().getTime()) { - errors.push(String.format(this.minText, this.formatDate(this.minValue))); - } - - if (this.maxValue && time > this.maxValue.clearTime().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; - }, - - - - validateBlur : function(){ - return !this.menu || !this.menu.isVisible(); - }, - - - getValue : function(){ - return this.parseDate(Ext.form.DateField.superclass.getValue.call(this)) || ""; - }, - - - setValue : function(date){ - return Ext.form.DateField.superclass.setValue.call(this, this.formatDate(this.parseDate(date))); - }, - - - 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; - }, - - - onDestroy : function(){ - Ext.destroy(this.menu, this.keyNav); - Ext.form.DateField.superclass.onDestroy.call(this); - }, - - - formatDate : function(date){ - return Ext.isDate(date) ? date.dateFormat(this.format) : date; - }, - - - - - 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, - startDay: this.startDay, - 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'); - }, - - - 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'); - }, - - - beforeBlur : function(){ - var v = this.parseDate(this.getRawValue()); - if(v){ - this.setValue(v); - } - } - - - - - -}); -Ext.reg('datefield', Ext.form.DateField); - -Ext.form.DisplayField = Ext.extend(Ext.form.Field, { - validationEvent : false, - validateOnBlur : false, - defaultAutoCreate : {tag: "div"}, - - fieldClass : "x-form-display-field", - - htmlEncode: false, - - - 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; - } - - - - - - -}); - -Ext.reg('displayfield', Ext.form.DisplayField); - -Ext.form.ComboBox = Ext.extend(Ext.form.TriggerField, { - - - - - - - - defaultAutoCreate : {tag: "input", type: "text", size: "24", autocomplete: "off"}, - - - - - - - - listClass : '', - - selectedClass : 'x-combo-selected', - - listEmptyText: '', - - triggerClass : 'x-form-arrow-trigger', - - shadow : 'sides', - - listAlign : 'tl-bl?', - - maxHeight : 300, - - minHeight : 90, - - triggerAction : 'query', - - minChars : 4, - - autoSelect : true, - - typeAhead : false, - - queryDelay : 500, - - pageSize : 0, - - selectOnFocus : false, - - queryParam : 'query', - - loadingText : 'Loading...', - - resizable : false, - - handleHeight : 8, - - allQuery: '', - - mode: 'remote', - - minListWidth : 70, - - forceSelection : false, - - typeAheadDelay : 250, - - - - lazyInit : true, - - - clearFilterOnReset : true, - - - submitValue: undefined, - - - - - initComponent : function(){ - Ext.form.ComboBox.superclass.initComponent.call(this); - this.addEvents( - - 'expand', - - 'collapse', - - - 'beforeselect', - - 'select', - - '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({ - idIndex: 0, - fields: ['value', 'text'], - data : d, - autoDestroy: true - }); - this.valueField = 'value'; - this.displayField = 'text'; - } - s.name = Ext.id(); - 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); - } - - 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; - } - } - }, - - - 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 || Ext.id())}, '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}); - } - }, - - - 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; - }, - - getZIndex : function(listParent){ - listParent = listParent || Ext.getDom(this.getListParent() || Ext.getBody()); - var zindex = parseInt(Ext.fly(listParent).getStyle('z-index'), 10); - if(!zindex){ - zindex = this.getParentZIndex(); - } - return (zindex || 12000) + 5; - }, - - - initList : function(){ - if(!this.list){ - var cls = 'x-combo-list', - listParent = Ext.getDom(this.getListParent() || Ext.getBody()); - - this.list = new Ext.Layer({ - parentEl: listParent, - shadow: this.shadow, - cls: [cls, this.listClass].join(' '), - constrain:false, - zindex: this.getZIndex(listParent) - }); - - 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){ - - this.tpl = '
      {' + this.displayField + '}
      '; - - } - - - 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'); - } - } - }, - - - getListParent : function() { - return document.body; - }, - - - getStore : function(){ - return this.store; - }, - - - 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(){ - if(this.clearFilterOnReset && this.mode == 'local'){ - this.store.clearFilter(); - } - Ext.form.ComboBox.superclass.reset.call(this); - }, - - - initEvents : function(){ - Ext.form.ComboBox.superclass.initEvents.call(this); - - - 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()){ - - var relay = Ext.KeyNav.prototype.doRelay.apply(this, arguments); - if(!Ext.isIE && Ext.EventManager.useKeydown){ - - 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); - } - }, - - - - 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(e){ - if (!this.isExpanded()) { - Ext.form.ComboBox.superclass.fireKey.call(this, e); - } - }, - - - 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')); - } - }, - - - 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 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); - } - } - }, - - - assertValue : function(){ - var val = this.getRawValue(), - rec; - - if(this.valueField && Ext.isDefined(this.value)){ - rec = this.findRecord(this.valueField, this.value); - } - if(!rec || rec.get(this.displayField) != val){ - 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 && this.valueField){ - - - - if (this.value == val){ - return; - } - val = rec.get(this.valueField || this.displayField); - } - this.setValue(val); - } - }, - - - 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); - } - }, - - - getName: function(){ - var hf = this.hiddenField; - return hf && hf.name ? hf.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(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; - }, - - - 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; - }, - - - onViewMove : function(e, t){ - this.inKeyMode = false; - }, - - - onViewOver : function(e, t){ - if(this.inKeyMode){ - return; - } - var item = this.view.findItemFromChild(t); - if(item){ - var index = this.view.indexOf(item); - this.select(index, false); - } - }, - - - 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(); - } - }, - - - - 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(); - }, - - - isExpanded : function(){ - return this.list && this.list.isVisible(); - }, - - - 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 : 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); - } - } - - }, - - - 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); - } - } - }, - - - 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); - } - } - }, - - - 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); - }, - - - 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(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(); - } - } - }, - - - getParams : function(q){ - var params = {}, - paramNames = this.store.paramNames; - if(this.pageSize){ - params[paramNames.start] = 0; - params[paramNames.limit] = this.pageSize; - } - return params; - }, - - - 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(e){ - if(!this.isDestroyed && !e.within(this.wrap) && !e.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)); - - - this.list.setZIndex(this.getZIndex()); - 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(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; - } - - if (Ext.isIE && !Ext.isStrict) { - 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(v){ - var checked = this.checked, - inputVal = this.inputValue; - - if (v === false) { - this.checked = false; - } else { - this.checked = (v === true || v === 'true' || v == '1' || (inputVal ? v == inputVal : 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); - -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(ct, position){ - if(!this.el){ - var panelCfg = { - autoEl: { - id: this.id - }, - cls: this.groupCls, - layout: 'column', - renderTo: ct, - bufferResize: false - }; - var colCfg = { - xtype: 'container', - defaultType: this.defaultType, - layout: 'form', - defaults: { - hideLabel: true, - anchor: '100%' - } - }; - - if(this.items[0].items){ - - - - 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 -1){ - item.setValue(true); - } - }); - }, - - - 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; - }, - - - getValue : function(){ - var out = []; - this.eachItem(function(item){ - if(item.checked){ - out.push(item); - } - }); - return out; - }, - - - eachItem: function(fn, scope) { - if(this.items && this.items.each){ - this.items.each(fn, scope || 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, - - - labelConnector: ', ', - - - - - - initComponent: function() { - var labels = [], - items = this.items, - item; - - for (var i=0, j = items.length; i < j; i++) { - item = items[i]; - - if (!Ext.isEmpty(item.ref)){ - item.ref = '../' + item.ref; - } - - labels.push(item.fieldLabel); - - - Ext.applyIf(item, this.defaults); - - - if (!(i == j - 1 && this.skipLastItemMargin)) { - Ext.applyIf(item, {margins: this.defaultMargins}); - } - } - - this.fieldLabel = this.fieldLabel || this.buildLabel(labels); - - - 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); - - this.innerCt = new Ext.Container({ - layout : 'hbox', - items : this.items, - cls : 'x-form-composite', - defaultMargins: '0 3 0 0', - ownerCt: this - }); - this.innerCt.ownerCt = undefined; - - var fields = this.innerCt.findBy(function(c) { - return c.isFormField; - }, this); - - - this.items = new Ext.util.MixedCollection(); - this.items.addAll(fields); - - }, - - - onRender: function(ct, position) { - if (!this.el) { - - var innerCt = this.innerCt; - innerCt.render(ct); - - this.el = innerCt.getEl(); - - - - if (this.combineErrors) { - this.eachItem(function(field) { - Ext.apply(field, { - markInvalid : this.onFieldMarkInvalid.createDelegate(this, [field], 0), - clearInvalid: this.onFieldClearInvalid.createDelegate(this, [field], 0) - }); - }); - } - - - 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); - }, - - - onFieldMarkInvalid: function(field, message) { - var name = field.getName(), - error = { - field: name, - errorName: field.fieldLabel || name, - error: message - }; - - this.fieldErrors.replace(name, error); - - if (!field.preventMark) { - field.el.addClass(field.invalidClass); - } - }, - - - onFieldClearInvalid: function(field) { - this.fieldErrors.removeKey(field.getName()); - - field.el.removeClass(field.invalidClass); - }, - - - updateInvalidMark: function() { - var ieStrict = Ext.isIE6 && Ext.isStrict; - - if (this.fieldErrors.length == 0) { - this.clearInvalid(); - - - if (ieStrict) { - this.clearInvalid.defer(50, this); - } - } else { - var message = this.buildCombinedErrorMessage(this.fieldErrors.items); - - this.sortErrors(); - this.markInvalid(message); - - - if (ieStrict) { - this.markInvalid(message); - } - } - }, - - - validateValue: function(value, preventMark) { - var valid = true; - - this.eachItem(function(field) { - if (!field.isValid(preventMark)) { - valid = false; - } - }); - - return valid; - }, - - - 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.errorName, error.error)); - } - - return combined.join("
      "); - }, - - - 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; - }); - }, - - - reset: function() { - this.eachItem(function(item) { - item.reset(); - }); - - - - (function() { - this.clearInvalid(); - }).defer(50, this); - }, - - - clearInvalidChildren: function() { - this.eachItem(function(item) { - item.clearInvalid(); - }); - }, - - - buildLabel: function(segments) { - return Ext.clean(segments).join(this.labelConnector); - }, - - - isDirty: function(){ - - if (this.disabled || !this.rendered) { - return false; - } - - var dirty = false; - this.eachItem(function(item){ - if(item.isDirty()){ - dirty = true; - return false; - } - }); - return dirty; - }, - - - eachItem: function(fn, scope) { - if(this.items && this.items.each){ - this.items.each(fn, scope || this); - } - }, - - - 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); - }, - - - doLayout: function(shallow, force) { - if (this.rendered) { - var innerCt = this.innerCt; - - innerCt.forceLayout = this.ownerCt.forceLayout; - innerCt.doLayout(shallow, force); - } - }, - - - beforeDestroy: function(){ - Ext.destroy(this.innerCt); - - Ext.form.CompositeField.superclass.beforeDestroy.call(this); - }, - - - setReadOnly : function(readOnly) { - if (readOnly == undefined) { - readOnly = true; - } - readOnly = !!readOnly; - - if(this.rendered){ - this.eachItem(function(item){ - item.setReadOnly(readOnly); - }); - } - this.readOnly = readOnly; - }, - - onShow : function() { - Ext.form.CompositeField.superclass.onShow.call(this); - this.doLayout(); - }, - - - onDisable : function(){ - this.eachItem(function(item){ - item.disable(); - }); - }, - - - onEnable : function(){ - this.eachItem(function(item){ - item.enable(); - }); - } -}); - -Ext.reg('compositefield', Ext.form.CompositeField); -Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { - inputType: 'radio', - - - markInvalid : Ext.emptyFn, - - clearInvalid : Ext.emptyFn, - - - 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; - }, - - - setValue : function(v){ - var checkEl, - els, - radio; - if (typeof v == 'boolean') { - Ext.form.Radio.superclass.setValue.call(this, v); - } else if (this.rendered) { - checkEl = this.getCheckEl(); - radio = checkEl.child('input[name="' + this.el.dom.name + '"][value="' + v + '"]', true); - if(radio){ - Ext.getCmp(radio.id).setValue(true); - } - } - if(this.rendered && this.checked){ - checkEl = checkEl || this.getCheckEl(); - els = this.getCheckEl().select('input[name="' + this.el.dom.name + '"]'); - els.each(function(el){ - if(el.dom.id != this.id){ - Ext.getCmp(el.dom.id).setValue(false); - } - }, this); - } - return this; - }, - - - 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); - -Ext.form.RadioGroup = Ext.extend(Ext.form.CheckboxGroup, { - - - allowBlank : true, - - blankText : 'You must select one item in this group', - - - defaultType : 'radio', - - - groupCls : 'x-form-radio-group', - - - - - getValue : function(){ - var out = null; - this.eachItem(function(item){ - if(item.checked){ - out = item; - return false; - } - }); - return out; - }, - - - 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); - }); - }, - - - fireChecked : function(){ - if(!this.checkTask){ - this.checkTask = new Ext.util.DelayedTask(this.bufferChecked, this); - } - this.checkTask.delay(10); - }, - - - 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); - -Ext.form.Hidden = Ext.extend(Ext.form.Field, { - - inputType : 'hidden', - - shouldLayout: false, - - - 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(el, config){ - Ext.apply(this, config); - if(Ext.isString(this.paramOrder)){ - this.paramOrder = this.paramOrder.split(/[\s,|]/); - } - - this.items = new Ext.util.MixedCollection(false, function(o){ - return o.getItemId(); - }); - this.addEvents( - - 'beforeaction', - - 'actionfailed', - - 'actioncomplete' - ); - - if(el){ - this.initEl(el); - } - Ext.form.BasicForm.superclass.constructor.call(this); - }, - - - - - - - - - timeout: 30, - - - - - paramOrder: undefined, - - - paramsAsHash: false, - - - waitTitle: 'Please Wait...', - - - activeAction : null, - - - trackResetOnLoad : false, - - - - - - 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'); - }, - - - getEl: function(){ - return this.el; - }, - - - onSubmit : function(e){ - e.stopEvent(); - }, - - - destroy: function(bound){ - if(bound !== true){ - this.items.each(function(f){ - Ext.destroy(f); - }); - Ext.destroy(this.el); - } - this.items.clear(); - this.purgeListeners(); - }, - - - isValid : function(){ - var valid = true; - this.items.each(function(f){ - if(!f.validate()){ - valid = false; - } - }); - return valid; - }, - - - isDirty : function(){ - var dirty = false; - this.items.each(function(f){ - if(f.isDirty()){ - dirty = true; - return false; - } - }); - return dirty; - }, - - - 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; - }, - - - 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; - }, - - - load : function(options){ - var loadAction = String.format('{0}load', this.api ? 'direct' : ''); - this.doAction(loadAction, options); - return this; - }, - - - updateRecord : function(record){ - record.beginEdit(); - var fs = record.fields, - field, - value; - fs.each(function(f){ - field = this.findField(f.name); - if(field){ - value = field.getValue(); - if (Ext.type(value) !== false && value.getGroupValue) { - value = value.getGroupValue(); - } else if ( field.eachItem ) { - value = []; - field.eachItem(function(item){ - value.push(item.getValue()); - }); - } - record.set(f.name, value); - } - }, this); - record.endEdit(); - return this; - }, - - - loadRecord : function(record){ - this.setValues(record.data); - return this; - }, - - - beforeAction : function(action){ - - 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); - } - } - }, - - - 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); - } - }, - - - findField : function(id) { - var field = this.items.get(id); - - if (!Ext.isObject(field)) { - - 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) { - return f.items.each(findMatchingField); - } else if (f instanceof Ext.form.CheckboxGroup && f.rendered) { - return f.eachItem(findMatchingField); - } - } - }; - - this.items.each(findMatchingField); - } - return field || null; - }, - - - - 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; - }, - - - setValues : function(values){ - if(Ext.isArray(values)){ - 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{ - 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; - }, - - - getValues : function(asString){ - var fs = Ext.lib.Ajax.serializeForm(this.el.dom); - if(asString === true){ - return fs; - } - return Ext.urlDecode(fs); - }, - - - getFieldValues : function(dirtyOnly){ - var o = {}, - n, - key, - val; - this.items.each(function(f) { - if (!f.disabled && (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; - }, - - - clearInvalid : function(){ - this.items.each(function(f){ - f.clearInvalid(); - }); - return this; - }, - - - reset : function(){ - this.items.each(function(f){ - f.reset(); - }); - return this; - }, - - - add : function(){ - this.items.addAll(Array.prototype.slice.call(arguments, 0)); - return this; - }, - - - remove : function(field){ - this.items.remove(field); - return this; - }, - - - cleanDestroyed : function() { - this.items.filterBy(function(o) { return !!o.isDestroyed; }).each(this.remove, this); - }, - - - render : function(){ - this.items.each(function(f){ - if(f.isFormField && !f.rendered && document.getElementById(f.id)){ - f.applyToMarkup(f.id); - } - }); - return this; - }, - - - applyToFields : function(o){ - this.items.each(function(f){ - Ext.apply(f, o); - }); - return 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; - } -}); - - -Ext.BasicForm = Ext.form.BasicForm; - -Ext.FormPanel = Ext.extend(Ext.Panel, { - - - - - - - - - - - minButtonWidth : 75, - - - labelAlign : 'left', - - - monitorValid : false, - - - monitorPoll : 200, - - - layout : 'form', - - - 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( - - 'clientvalidation' - ); - - this.relayEvents(this.form, ['beforeaction', 'actionfailed', 'actioncomplete']); - }, - - - createForm : function(){ - var config = Ext.applyIf({listeners: {}}, this.initialConfig); - return new Ext.form.BasicForm(null, config); - }, - - - 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); - - if(c.items && c.items.each){ - c.items.each(fn, this); - } - } - }; - this.items.each(fn, this); - }, - - - applySettings: function(c){ - var ct = c.ownerCt; - Ext.applyIf(c, { - labelAlign: ct.labelAlign, - labelWidth: ct.labelWidth, - itemCls: ct.itemCls - }); - }, - - - getLayoutTarget : function(){ - return this.form.el; - }, - - - getForm : function(){ - return this.form; - }, - - - onRender : function(ct, position){ - this.initFields(); - Ext.FormPanel.superclass.onRender.call(this, ct, position); - this.form.initEl(this.body); - }, - - - beforeDestroy : function(){ - this.stopMonitoring(); - this.form.destroy(true); - Ext.FormPanel.superclass.beforeDestroy.call(this); - }, - - - isField : function(c) { - return !!c.setValue && !!c.getValue && !!c.markInvalid && !!c.clearInvalid; - }, - - - initEvents : function(){ - Ext.FormPanel.superclass.initEvents.call(this); - - this.on({ - scope: this, - add: this.onAddEvent, - remove: this.onRemoveEvent - }); - if(this.monitorValid){ - this.startMonitoring(); - } - }, - - - onAdd: function(c){ - Ext.FormPanel.superclass.onAdd.call(this, c); - this.processAdd(c); - }, - - - onAddEvent: function(ct, c){ - if(ct !== this){ - this.processAdd(c); - } - }, - - - processAdd : function(c){ - - if(this.isField(c)){ - this.form.add(c); - - }else if(c.findBy){ - this.applySettings(c); - this.form.add.apply(this.form, c.findBy(this.isField)); - } - }, - - - onRemove: function(c){ - Ext.FormPanel.superclass.onRemove.call(this, c); - this.processRemove(c); - }, - - onRemoveEvent: function(ct, c){ - if(ct !== this){ - this.processRemove(c); - } - }, - - - processRemove: function(c){ - if(!this.destroying){ - - if(this.isField(c)){ - this.form.remove(c); - - }else if (c.findBy){ - Ext.each(c.findBy(this.isField), this.form.remove, this.form); - - this.form.cleanDestroyed(); - } - } - }, - - - startMonitoring : function(){ - if(!this.validTask){ - this.validTask = new Ext.util.TaskRunner(); - this.validTask.start({ - run : this.bindHandler, - interval : this.monitorPoll || 200, - scope: this - }); - } - }, - - - stopMonitoring : function(){ - if(this.validTask){ - this.validTask.stopAll(); - this.validTask = null; - } - }, - - - load : function(){ - this.form.load.apply(this.form, arguments); - }, - - - onDisable : function(){ - Ext.FormPanel.superclass.onDisable.call(this); - if(this.form){ - this.form.items.each(function(){ - this.disable(); - }); - } - }, - - - onEnable : function(){ - Ext.FormPanel.superclass.onEnable.call(this); - if(this.form){ - this.form.items.each(function(){ - this.enable(); - }); - } - }, - - - 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; - -Ext.form.FieldSet = Ext.extend(Ext.Panel, { - - - - - - - baseCls : 'x-fieldset', - - layout : 'form', - - animCollapse : false, - - - 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); - } - }, - - - onCollapse : function(doAnim, animArg){ - if(this.checkbox){ - this.checkbox.dom.checked = false; - } - Ext.form.FieldSet.superclass.onCollapse.call(this, doAnim, animArg); - - }, - - - onExpand : function(doAnim, animArg){ - if(this.checkbox){ - this.checkbox.dom.checked = true; - } - Ext.form.FieldSet.superclass.onExpand.call(this, doAnim, animArg); - }, - - - onCheckClick : function(){ - this[this.checkbox.dom.checked ? 'expand' : 'collapse'](); - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}); -Ext.reg('fieldset', Ext.form.FieldSet); - -Ext.form.HtmlEditor = Ext.extend(Ext.form.Field, { - - enableFormat : true, - - enableFontSize : true, - - enableColors : true, - - enableAlignments : true, - - enableLists : true, - - enableSourceEdit : true, - - enableLinks : true, - - enableFont : true, - - createLinkText : 'Please enter the URL for the link:', - - defaultLinkValue : 'http:/'+'/', - - fontFamilies : [ - 'Arial', - 'Courier New', - 'Tahoma', - 'Times New Roman', - 'Verdana' - ], - defaultFont: 'tahoma', - - defaultValue: (Ext.isOpera || Ext.isIE6) ? ' ' : '​', - - - 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" - }, - - - initComponent : function(){ - this.addEvents( - - 'initialize', - - 'activate', - - 'beforesync', - - 'beforepush', - - 'sync', - - 'push', - - 'editmodechange' - ); - Ext.form.HtmlEditor.superclass.initComponent.call(this); - }, - - - 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(''); - }, - - - 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); - }) - ); - } - } - - - 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); - } - - - 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); - } - }, - - - getDocMarkup : function(){ - var h = Ext.fly(this.iframe).getHeight() - this.iframePad * 2; - return String.format('', this.iframePad, h); - }, - - - getEditorBody : function(){ - var doc = this.getDoc(); - return doc.body || doc.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(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){ - 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'; - iframe.src = Ext.SSL_SECURE_URL; - - 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 = { - 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(); - } - } - }, - - - setDesignMode : function(mode){ - var doc = this.getDoc(); - if (doc) { - if(this.readOnly){ - mode = false; - } - doc.designMode = (/on|true/i).test(String(mode).toLowerCase()) ?'on':'off'; - } - - }, - - - 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); - } - }); - }, - - - 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'; - } - } - } - }, - - - toggleSourceEdit : function(sourceEditMode){ - var iframeHeight, - elHeight; - - 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) { - - this.previousSize = 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(this.previousSize); - delete this.previousSize; - this.iframe.style.height = elHeight + 'px'; - } - this.fireEvent('editmodechange', this, this.sourceEditMode); - }, - - - createLink : function() { - var url = prompt(this.createLinkText, this.defaultLinkValue); - if(url && url != 'http:/'+'/'){ - this.relayCmd('createlink', url); - } - }, - - - initEvents : function(){ - this.originalValue = this.getValue(); - }, - - - markInvalid : Ext.emptyFn, - - - clearInvalid : Ext.emptyFn, - - - setValue : function(v){ - Ext.form.HtmlEditor.superclass.setValue.call(this, v); - this.pushValue(); - return this; - }, - - - cleanHtml: function(html) { - html = String(html); - if(Ext.isWebKit){ - html = html.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi, ''); - } - - - if(html.charCodeAt(0) == this.defaultValue.replace(/\D/g, '')){ - html = html.substring(1); - } - return html; - }, - - - syncValue : function(){ - if(this.initialized){ - var bd = this.getEditorBody(); - var html = bd.innerHTML; - if(Ext.isWebKit){ - var bs = bd.getAttribute('style'); - 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); - } - } - }, - - - getValue : function() { - this[this.sourceEditMode ? 'pushValue' : 'syncValue'](); - return Ext.form.HtmlEditor.superclass.getValue.call(this); - }, - - - 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){ - - this.setDesignMode(false); - this.setDesignMode(true); - } - this.fireEvent('push', this, v); - } - - } - }, - - - 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 dbody = this.getEditorBody(), - ss = this.el.getStyles('font-size', 'font-family', 'background-image', 'background-repeat', 'background-color', 'color'), - doc, - fn; - - ss['background-attachment'] = 'fixed'; - dbody.bgProperties = 'fixed'; - - Ext.DomHelper.applyStyles(dbody, ss); - - doc = this.getDoc(); - - if(doc){ - try{ - Ext.EventManager.removeAll(doc); - }catch(e){} - } - - - 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){} - }, - - - beforeDestroy : 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(); - } - } - Ext.form.HtmlEditor.superclass.beforeDestroy.call(this); - }, - - - onFirstFocus : function(){ - this.activated = true; - this.disableItems(this.readOnly); - if(Ext.isGecko){ - 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); - }, - - - 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){ - - - 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){ - adjust *= 2; - } - v = Math.max(1, v+adjust) + (Ext.isSafari ? 'px' : 0); - } - this.execCmd('FontSize', v); - }, - - - onEditorEvent : function(e){ - this.updateToolbar(); - }, - - - - 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(); - }, - - - relayBtnCmd : function(btn){ - this.relayCmd(btn.getItemId()); - }, - - - relayCmd : function(cmd, value){ - (function(){ - this.focus(); - this.execCmd(cmd, value); - this.updateToolbar(); - }).defer(10, this); - }, - - - execCmd : function(cmd, value){ - var doc = this.getDoc(); - doc.execCommand(cmd, false, value === undefined ? null : value); - this.syncValue(); - }, - - - 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(); - } - } - } - }, - - - 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(); - } - }, - - - fixKeys : function(){ - 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(); - } - }; - } - }(), - - - 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(value, initial){ - this.setLimit(value, true, initial); - return this; - }, - - - setMaxValue: function(value, initial){ - this.setLimit(value, false, initial); - return this; - }, - - - 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); - }, - - - 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(); - } - } - }, - - - getValue : function(){ - var v = Ext.form.TimeField.superclass.getValue.call(this); - return this.formatDate(this.parseDate(v)) || ''; - }, - - - setValue : function(value){ - return Ext.form.TimeField.superclass.setValue.call(this, this.formatDate(this.parseDate(value))); - }, - - - 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), - 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); -Ext.form.SliderField = Ext.extend(Ext.form.Field, { - - - useTips : true, - - - tipText : null, - - - actionMode: 'wrap', - - - initComponent : function() { - var cfg = Ext.copyTo({ - id: this.id + '-slider' - }, this.initialConfig, ['vertical', 'minValue', 'maxValue', 'decimalPrecision', 'keyIncrement', 'increment', 'clickToChange', 'animate']); - - - 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); - }, - - - 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); - }, - - - onResize : function(w, h, aw, ah){ - Ext.form.SliderField.superclass.onResize.call(this, w, h, aw, ah); - this.slider.setSize(w, h); - }, - - - initEvents : function(){ - Ext.form.SliderField.superclass.initEvents.call(this); - this.slider.on('change', this.onChange, this); - }, - - - onChange : function(slider, v){ - this.setValue(v, undefined, true); - }, - - - onEnable : function(){ - Ext.form.SliderField.superclass.onEnable.call(this); - this.slider.enable(); - }, - - - onDisable : function(){ - Ext.form.SliderField.superclass.onDisable.call(this); - this.slider.disable(); - }, - - - beforeDestroy : function(){ - Ext.destroy(this.slider); - Ext.form.SliderField.superclass.beforeDestroy.call(this); - }, - - - alignErrorIcon : function(){ - this.errorIcon.alignTo(this.slider.el, 'tl-tr', [2, 0]); - }, - - - setMinValue : function(v){ - this.slider.setMinValue(v); - return this; - }, - - - setMaxValue : function(v){ - this.slider.setMaxValue(v); - return this; - }, - - - setValue : function(v, animate, silent){ - - - if(!silent){ - this.slider.setValue(v, animate); - } - return Ext.form.SliderField.superclass.setValue.call(this, this.slider.getValue()); - }, - - - getValue : function(){ - return this.slider.getValue(); - } -}); - -Ext.reg('sliderfield', Ext.form.SliderField); -Ext.form.Label = Ext.extend(Ext.BoxComponent, { - - - - - - 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); - }, - - - 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); -Ext.form.Action = function(form, options){ - this.form = form; - this.options = options || {}; -}; - - -Ext.form.Action.CLIENT_INVALID = 'client'; - -Ext.form.Action.SERVER_INVALID = 'server'; - -Ext.form.Action.CONNECT_FAILURE = 'connect'; - -Ext.form.Action.LOAD_FAILURE = 'load'; - -Ext.form.Action.prototype = { - - - - - - - - - - - - - - - type : 'default', - - - - - - run : function(options){ - - }, - - - success : function(response){ - - }, - - - handleResponse : function(response){ - - }, - - - failure : function(response){ - this.response = response; - this.failureType = Ext.form.Action.CONNECT_FAILURE; - this.form.afterAction(this, false); - }, - - - - - processResponse : function(response){ - this.response = response; - if(!response.responseText && !response.responseXML){ - return true; - } - this.result = this.handleResponse(response); - return this.result; - }, - - decodeResponse: function(response) { - try { - return Ext.decode(response.responseText); - } catch(e) { - return false; - } - }, - - - 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; - }, - - - getMethod : function(){ - return (this.options.method || this.form.method || this.form.el.dom.method || 'POST').toUpperCase(); - }, - - - 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; - }, - - - 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 - }; - } -}; - - -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, { - - - type : 'submit', - - - 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 = [], - setupEmptyFields = function(f){ - if (f.el.getValue() == f.emptyText) { - emptyFields.push(f); - f.el.dom.value = ""; - } - if(f.isComposite && f.rendered){ - f.items.each(setupEmptyFields); - } - }; - - fields.each(setupEmptyFields); - } - 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){ - this.failureType = Ext.form.Action.CLIENT_INVALID; - this.form.afterAction(this, false); - } - }, - - - 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); - }, - - - 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 this.decodeResponse(response); - } -}); - - - -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, { - - type : 'load', - - - 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() - })); - }, - - - 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); - }, - - - 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 this.decodeResponse(response); - } -}); - - - - -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; - }, - - - - 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); - } -}); - - -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', - - run : function(){ - var o = this.options; - if(o.clientValidation === false || this.form.isValid()){ - - - this.success.params = this.getParams(); - this.form.api.submit(this.form.el.dom, this.success, this); - }else if (o.clientValidation !== false){ - 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; - }, - - - - 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 -}; - -Ext.form.VTypes = function(){ - - 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; - - - return { - - 'email' : function(v){ - return email.test(v); - }, - - 'emailText' : 'This field should be an e-mail address in the format "user@example.com"', - - '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 - }; -}(); -/** - * @class Ext.grid.GridPanel - * @extends Ext.Panel - *

      This class represents the primary interface of a component based grid control to represent data - * in a tabular format of rows and columns. The GridPanel is composed of the following:

      - *
        - *
      • {@link Ext.data.Store Store} : The Model holding the data records (rows) - *
      • - *
      • {@link Ext.grid.ColumnModel Column model} : Column makeup - *
      • - *
      • {@link Ext.grid.GridView View} : Encapsulates the user interface - *
      • - *
      • {@link Ext.grid.AbstractSelectionModel selection model} : Selection behavior - *
      • - *
      - *

      Example usage:

      - *
      
      -var grid = new Ext.grid.GridPanel({
      -    {@link #store}: new {@link Ext.data.Store}({
      -        {@link Ext.data.Store#autoDestroy autoDestroy}: true,
      -        {@link Ext.data.Store#reader reader}: reader,
      -        {@link Ext.data.Store#data data}: xg.dummyData
      -    }),
      -    {@link #colModel}: new {@link Ext.grid.ColumnModel}({
      -        {@link Ext.grid.ColumnModel#defaults defaults}: {
      -            width: 120,
      -            sortable: true
      -        },
      -        {@link Ext.grid.ColumnModel#columns columns}: [
      -            {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
      -            {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
      -            {header: 'Change', dataIndex: 'change'},
      -            {header: '% Change', dataIndex: 'pctChange'},
      -            // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
      -            {
      -                header: 'Last Updated', width: 135, dataIndex: 'lastChange',
      -                xtype: 'datecolumn', format: 'M d, Y'
      -            }
      -        ]
      -    }),
      -    {@link #viewConfig}: {
      -        {@link Ext.grid.GridView#forceFit forceFit}: true,
      -
      -//      Return CSS class to apply to rows depending upon data values
      -        {@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
      -            var c = record.{@link Ext.data.Record#get get}('change');
      -            if (c < 0) {
      -                return 'price-fall';
      -            } else if (c > 0) {
      -                return 'price-rise';
      -            }
      -        }
      -    },
      -    {@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
      -    width: 600,
      -    height: 300,
      -    frame: true,
      -    title: 'Framed with Row Selection and Horizontal Scrolling',
      -    iconCls: 'icon-grid'
      -});
      - * 
      - *

      Notes:

      - *
        - *
      • Although this class inherits many configuration options from base classes, some of them - * (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will - * have no effect.
      • - *
      • A grid requires a width in which to scroll its columns, and a height in which to - * scroll its rows. These dimensions can either be set explicitly through the - * {@link Ext.BoxComponent#height height} and {@link Ext.BoxComponent#width width} - * configuration options or implicitly set by using the grid as a child item of a - * {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager} - * provide the sizing of its child items (for example the Container of the Grid may specify - * {@link Ext.Container#layout layout}:'fit').
      • - *
      • To access the data in a Grid, it is necessary to use the data model encapsulated - * by the {@link #store Store}. See the {@link #cellclick} event for more details.
      • - *
      - * @constructor - * @param {Object} config The config object - * @xtype grid - */ -Ext.grid.GridPanel = Ext.extend(Ext.Panel, { - /** - * @cfg {String} autoExpandColumn - *

      The {@link Ext.grid.Column#id id} of a {@link Ext.grid.Column column} in - * this grid that should expand to fill unused space. This value specified here can not - * be 0.

      - *

      Note: If the Grid's {@link Ext.grid.GridView view} is configured with - * {@link Ext.grid.GridView#forceFit forceFit}=true the autoExpandColumn - * is ignored. See {@link Ext.grid.Column}.{@link Ext.grid.Column#width width} - * for additional details.

      - *

      See {@link #autoExpandMax} and {@link #autoExpandMin} also.

      - */ - autoExpandColumn : false, - - - autoExpandMax : 1000, - - - autoExpandMin : 50, - - - columnLines : false, - - - - - - - ddText : '{0} selected row{1}', - - - deferRowRender : true, - - - - - enableColumnHide : true, - - - enableColumnMove : true, - - - enableDragDrop : false, - - - enableHdMenu : true, - - - - loadMask : false, - - - - minColumnWidth : 25, - - - - - - stripeRows : false, - - - trackMouseOver : true, - - - stateEvents : ['columnmove', 'columnresize', 'sortchange', 'groupchange'], - - - view : null, - - - bubbleEvents: [], - - - - - rendered : false, - - - viewReady : false, - - - initComponent : function() { - Ext.grid.GridPanel.superclass.initComponent.call(this); - - if (this.columnLines) { - this.cls = (this.cls || '') + ' x-grid-with-col-lines'; - } - - - this.autoScroll = false; - this.autoWidth = false; - - if(Ext.isArray(this.columns)){ - this.colModel = new Ext.grid.ColumnModel(this.columns); - delete this.columns; - } - - - if(this.ds){ - this.store = this.ds; - delete this.ds; - } - if(this.cm){ - this.colModel = this.cm; - delete this.cm; - } - if(this.sm){ - this.selModel = this.sm; - delete this.sm; - } - this.store = Ext.StoreMgr.lookup(this.store); - - this.addEvents( - - - 'click', - - 'dblclick', - - 'contextmenu', - - 'mousedown', - - 'mouseup', - - 'mouseover', - - 'mouseout', - - 'keypress', - - 'keydown', - - - - 'cellmousedown', - - 'rowmousedown', - - 'headermousedown', - - - 'groupmousedown', - - - 'rowbodymousedown', - - - 'containermousedown', - - - 'cellclick', - - 'celldblclick', - - 'rowclick', - - 'rowdblclick', - - 'headerclick', - - 'headerdblclick', - - 'groupclick', - - 'groupdblclick', - - 'containerclick', - - 'containerdblclick', - - - 'rowbodyclick', - - 'rowbodydblclick', - - - 'rowcontextmenu', - - 'cellcontextmenu', - - 'headercontextmenu', - - 'groupcontextmenu', - - 'containercontextmenu', - - 'rowbodycontextmenu', - - 'bodyscroll', - - 'columnresize', - - 'columnmove', - - 'sortchange', - - 'groupchange', - - 'reconfigure', - - 'viewready' - ); - }, - - - onRender : function(ct, position){ - Ext.grid.GridPanel.superclass.onRender.apply(this, arguments); - - var c = this.getGridEl(); - - this.el.addClass('x-grid-panel'); - - this.mon(c, { - scope: this, - mousedown: this.onMouseDown, - click: this.onClick, - dblclick: this.onDblClick, - contextmenu: this.onContextMenu - }); - - this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress', 'keydown']); - - var view = this.getView(); - view.init(this); - view.render(); - this.getSelectionModel().init(this); - }, - - - initEvents : function(){ - Ext.grid.GridPanel.superclass.initEvents.call(this); - - if(this.loadMask){ - this.loadMask = new Ext.LoadMask(this.bwrap, - Ext.apply({store:this.store}, this.loadMask)); - } - }, - - initStateEvents : function(){ - Ext.grid.GridPanel.superclass.initStateEvents.call(this); - this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100}); - }, - - applyState : function(state){ - var cm = this.colModel, - cs = state.columns, - store = this.store, - s, - c, - colIndex; - - if(cs){ - for(var i = 0, len = cs.length; i < len; i++){ - s = cs[i]; - c = cm.getColumnById(s.id); - if(c){ - colIndex = cm.getIndexById(s.id); - cm.setState(colIndex, { - hidden: s.hidden, - width: s.width, - sortable: s.sortable - }); - if(colIndex != i){ - cm.moveColumn(colIndex, i); - } - } - } - } - if(store){ - s = state.sort; - if(s){ - store[store.remoteSort ? 'setDefaultSort' : 'sort'](s.field, s.direction); - } - s = state.group; - if(store.groupBy){ - if(s){ - store.groupBy(s); - }else{ - store.clearGrouping(); - } - } - - } - var o = Ext.apply({}, state); - delete o.columns; - delete o.sort; - Ext.grid.GridPanel.superclass.applyState.call(this, o); - }, - - getState : function(){ - var o = {columns: []}, - store = this.store, - ss, - gs; - - for(var i = 0, c; (c = this.colModel.config[i]); i++){ - o.columns[i] = { - id: c.id, - width: c.width - }; - if(c.hidden){ - o.columns[i].hidden = true; - } - if(c.sortable){ - o.columns[i].sortable = true; - } - } - if(store){ - ss = store.getSortState(); - if(ss){ - o.sort = ss; - } - if(store.getGroupState){ - gs = store.getGroupState(); - if(gs){ - o.group = gs; - } - } - } - return o; - }, - - - afterRender : function(){ - Ext.grid.GridPanel.superclass.afterRender.call(this); - var v = this.view; - this.on('bodyresize', v.layout, v); - v.layout(true); - if(this.deferRowRender){ - if (!this.deferRowRenderTask){ - this.deferRowRenderTask = new Ext.util.DelayedTask(v.afterRender, this.view); - } - this.deferRowRenderTask.delay(10); - }else{ - v.afterRender(); - } - this.viewReady = true; - }, - - - reconfigure : function(store, colModel){ - var rendered = this.rendered; - if(rendered){ - if(this.loadMask){ - this.loadMask.destroy(); - this.loadMask = new Ext.LoadMask(this.bwrap, - Ext.apply({}, {store:store}, this.initialConfig.loadMask)); - } - } - if(this.view){ - this.view.initData(store, colModel); - } - this.store = store; - this.colModel = colModel; - if(rendered){ - this.view.refresh(true); - } - this.fireEvent('reconfigure', this, store, colModel); - }, - - - onDestroy : function(){ - if (this.deferRowRenderTask && this.deferRowRenderTask.cancel){ - this.deferRowRenderTask.cancel(); - } - if(this.rendered){ - Ext.destroy(this.view, this.loadMask); - }else if(this.store && this.store.autoDestroy){ - this.store.destroy(); - } - Ext.destroy(this.colModel, this.selModel); - this.store = this.selModel = this.colModel = this.view = this.loadMask = null; - Ext.grid.GridPanel.superclass.onDestroy.call(this); - }, - - - processEvent : function(name, e){ - this.view.processEvent(name, e); - }, - - - onClick : function(e){ - this.processEvent('click', e); - }, - - - onMouseDown : function(e){ - this.processEvent('mousedown', e); - }, - - - onContextMenu : function(e, t){ - this.processEvent('contextmenu', e); - }, - - - onDblClick : function(e){ - this.processEvent('dblclick', e); - }, - - - walkCells : function(row, col, step, fn, scope){ - var cm = this.colModel, - clen = cm.getColumnCount(), - ds = this.store, - rlen = ds.getCount(), - first = true; - - if(step < 0){ - if(col < 0){ - row--; - first = false; - } - while(row >= 0){ - if(!first){ - col = clen-1; - } - first = false; - while(col >= 0){ - if(fn.call(scope || this, row, col, cm) === true){ - return [row, col]; - } - col--; - } - row--; - } - } else { - if(col >= clen){ - row++; - first = false; - } - while(row < rlen){ - if(!first){ - col = 0; - } - first = false; - while(col < clen){ - if(fn.call(scope || this, row, col, cm) === true){ - return [row, col]; - } - col++; - } - row++; - } - } - return null; - }, - - - getGridEl : function(){ - return this.body; - }, - - - stopEditing : Ext.emptyFn, - - - getSelectionModel : function(){ - if(!this.selModel){ - this.selModel = new Ext.grid.RowSelectionModel( - this.disableSelection ? {selectRow: Ext.emptyFn} : null); - } - return this.selModel; - }, - - - getStore : function(){ - return this.store; - }, - - - getColumnModel : function(){ - return this.colModel; - }, - - - getView : function() { - if (!this.view) { - this.view = new Ext.grid.GridView(this.viewConfig); - } - - return this.view; - }, - - getDragDropText : function(){ - var count = this.selModel.getCount(); - return String.format(this.ddText, count, count == 1 ? '' : 's'); - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}); -Ext.reg('grid', Ext.grid.GridPanel); -Ext.grid.PivotGrid = Ext.extend(Ext.grid.GridPanel, { - - - aggregator: 'sum', - - - renderer: undefined, - - - - - - - - - initComponent: function() { - Ext.grid.PivotGrid.superclass.initComponent.apply(this, arguments); - - this.initAxes(); - - - this.enableColumnResize = false; - - this.viewConfig = Ext.apply(this.viewConfig || {}, { - forceFit: true - }); - - - - this.colModel = new Ext.grid.ColumnModel({}); - }, - - - getAggregator: function() { - if (typeof this.aggregator == 'string') { - return Ext.grid.PivotAggregatorMgr.types[this.aggregator]; - } else { - return this.aggregator; - } - }, - - - setAggregator: function(aggregator) { - this.aggregator = aggregator; - }, - - - setMeasure: function(measure) { - this.measure = measure; - }, - - - setLeftAxis: function(axis, refresh) { - - this.leftAxis = axis; - - if (refresh) { - this.view.refresh(); - } - }, - - - setTopAxis: function(axis, refresh) { - - this.topAxis = axis; - - if (refresh) { - this.view.refresh(); - } - }, - - - initAxes: function() { - var PivotAxis = Ext.grid.PivotAxis; - - if (!(this.leftAxis instanceof PivotAxis)) { - this.setLeftAxis(new PivotAxis({ - orientation: 'vertical', - dimensions : this.leftAxis || [], - store : this.store - })); - }; - - if (!(this.topAxis instanceof PivotAxis)) { - this.setTopAxis(new PivotAxis({ - orientation: 'horizontal', - dimensions : this.topAxis || [], - store : this.store - })); - }; - }, - - - extractData: function() { - var records = this.store.data.items, - recCount = records.length, - cells = [], - record, i, j, k; - - if (recCount == 0) { - return []; - } - - var leftTuples = this.leftAxis.getTuples(), - leftCount = leftTuples.length, - topTuples = this.topAxis.getTuples(), - topCount = topTuples.length, - aggregator = this.getAggregator(); - - for (i = 0; i < recCount; i++) { - record = records[i]; - - for (j = 0; j < leftCount; j++) { - cells[j] = cells[j] || []; - - if (leftTuples[j].matcher(record) === true) { - for (k = 0; k < topCount; k++) { - cells[j][k] = cells[j][k] || []; - - if (topTuples[k].matcher(record)) { - cells[j][k].push(record); - } - } - } - } - } - - var rowCount = cells.length, - colCount, row; - - for (i = 0; i < rowCount; i++) { - row = cells[i]; - colCount = row.length; - - for (j = 0; j < colCount; j++) { - cells[i][j] = aggregator(cells[i][j], this.measure); - } - } - - return cells; - }, - - - getView: function() { - if (!this.view) { - this.view = new Ext.grid.PivotGridView(this.viewConfig); - } - - return this.view; - } -}); - -Ext.reg('pivotgrid', Ext.grid.PivotGrid); - - -Ext.grid.PivotAggregatorMgr = new Ext.AbstractManager(); - -Ext.grid.PivotAggregatorMgr.registerType('sum', function(records, measure) { - var length = records.length, - total = 0, - i; - - for (i = 0; i < length; i++) { - total += records[i].get(measure); - } - - return total; -}); - -Ext.grid.PivotAggregatorMgr.registerType('avg', function(records, measure) { - var length = records.length, - total = 0, - i; - - for (i = 0; i < length; i++) { - total += records[i].get(measure); - } - - return (total / length) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('min', function(records, measure) { - var data = [], - length = records.length, - i; - - for (i = 0; i < length; i++) { - data.push(records[i].get(measure)); - } - - return Math.min.apply(this, data) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('max', function(records, measure) { - var data = [], - length = records.length, - i; - - for (i = 0; i < length; i++) { - data.push(records[i].get(measure)); - } - - return Math.max.apply(this, data) || 'n/a'; -}); - -Ext.grid.PivotAggregatorMgr.registerType('count', function(records, measure) { - return records.length; -}); -Ext.grid.GridView = Ext.extend(Ext.util.Observable, { - - - - - - - - - - - - deferEmptyText : true, - - - scrollOffset : undefined, - - - autoFill : false, - - - forceFit : false, - - - sortClasses : ['sort-asc', 'sort-desc'], - - - sortAscText : 'Sort Ascending', - - - sortDescText : 'Sort Descending', - - - columnsText : 'Columns', - - - selectedRowClass : 'x-grid3-row-selected', - - - borderWidth : 2, - tdClass : 'x-grid3-cell', - hdCls : 'x-grid3-hd', - - - - markDirty : true, - - - cellSelectorDepth : 4, - - - rowSelectorDepth : 10, - - - rowBodySelectorDepth : 10, - - - cellSelector : 'td.x-grid3-cell', - - - rowSelector : 'div.x-grid3-row', - - - rowBodySelector : 'div.x-grid3-row-body', - - - firstRowCls: 'x-grid3-row-first', - lastRowCls: 'x-grid3-row-last', - rowClsRe: /(?:^|\s+)x-grid3-row-(first|last|alt)(?:\s+|$)/g, - - - headerMenuOpenCls: 'x-grid3-hd-menu-open', - - - rowOverCls: 'x-grid3-row-over', - - constructor : function(config) { - Ext.apply(this, config); - - - this.addEvents( - - 'beforerowremoved', - - - 'beforerowsinserted', - - - 'beforerefresh', - - - 'rowremoved', - - - 'rowsinserted', - - - 'rowupdated', - - - 'refresh' - ); - - Ext.grid.GridView.superclass.constructor.call(this); - }, - - - - - masterTpl: new Ext.Template( - '
      ', - '
      ', - '
      ', - '
      ', - '
      {header}
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      {body}
      ', - '', - '
      ', - '
      ', - '
       
      ', - '
       
      ', - '
      ' - ), - - - headerTpl: new Ext.Template( - '', - '', - '{cells}', - '', - '
      ' - ), - - - bodyTpl: new Ext.Template('{rows}'), - - - cellTpl: new Ext.Template( - '', - '
      {value}
      ', - '' - ), - - - initTemplates : function() { - var templates = this.templates || {}, - template, name, - - headerCellTpl = new Ext.Template( - '', - '
      ', - this.grid.enableHdMenu ? '' : '', - '{value}', - '', - '
      ', - '' - ), - - rowBodyText = [ - '', - '', - '
      {body}
      ', - '', - '' - ].join(""), - - innerText = [ - '', - '', - '{cells}', - this.enableRowBody ? rowBodyText : '', - '', - '
      ' - ].join(""); - - Ext.applyIf(templates, { - hcell : headerCellTpl, - cell : this.cellTpl, - body : this.bodyTpl, - header : this.headerTpl, - master : this.masterTpl, - row : new Ext.Template('
      ' + innerText + '
      '), - rowInner: new Ext.Template(innerText) - }); - - for (name in templates) { - template = templates[name]; - - if (template && Ext.isFunction(template.compile) && !template.compiled) { - template.disableFormats = true; - template.compile(); - } - } - - this.templates = templates; - this.colRe = new RegExp('x-grid3-td-([^\\s]+)', ''); - }, - - - fly : function(el) { - if (!this._flyweight) { - this._flyweight = new Ext.Element.Flyweight(document.body); - } - this._flyweight.dom = el; - return this._flyweight; - }, - - - getEditorParent : function() { - return this.scroller.dom; - }, - - - initElements : function() { - var Element = Ext.Element, - el = Ext.get(this.grid.getGridEl().dom.firstChild), - mainWrap = new Element(el.child('div.x-grid3-viewport')), - mainHd = new Element(mainWrap.child('div.x-grid3-header')), - scroller = new Element(mainWrap.child('div.x-grid3-scroller')); - - if (this.grid.hideHeaders) { - mainHd.setDisplayed(false); - } - - if (this.forceFit) { - scroller.setStyle('overflow-x', 'hidden'); - } - - - - Ext.apply(this, { - el : el, - mainWrap: mainWrap, - scroller: scroller, - mainHd : mainHd, - innerHd : mainHd.child('div.x-grid3-header-inner').dom, - mainBody: new Element(Element.fly(scroller).child('div.x-grid3-body')), - focusEl : new Element(Element.fly(scroller).child('a')), - - resizeMarker: new Element(el.child('div.x-grid3-resize-marker')), - resizeProxy : new Element(el.child('div.x-grid3-resize-proxy')) - }); - - this.focusEl.swallowEvent('click', true); - }, - - - getRows : function() { - return this.hasRows() ? this.mainBody.dom.childNodes : []; - }, - - - - - findCell : function(el) { - if (!el) { - return false; - } - return this.fly(el).findParent(this.cellSelector, this.cellSelectorDepth); - }, - - - findCellIndex : function(el, requiredCls) { - var cell = this.findCell(el), - hasCls; - - if (cell) { - hasCls = this.fly(cell).hasClass(requiredCls); - if (!requiredCls || hasCls) { - return this.getCellIndex(cell); - } - } - return false; - }, - - - getCellIndex : function(el) { - if (el) { - var match = el.className.match(this.colRe); - - if (match && match[1]) { - return this.cm.getIndexById(match[1]); - } - } - return false; - }, - - - findHeaderCell : function(el) { - var cell = this.findCell(el); - return cell && this.fly(cell).hasClass(this.hdCls) ? cell : null; - }, - - - findHeaderIndex : function(el){ - return this.findCellIndex(el, this.hdCls); - }, - - - findRow : function(el) { - if (!el) { - return false; - } - return this.fly(el).findParent(this.rowSelector, this.rowSelectorDepth); - }, - - - findRowIndex : function(el) { - var row = this.findRow(el); - return row ? row.rowIndex : false; - }, - - - findRowBody : function(el) { - if (!el) { - return false; - } - - return this.fly(el).findParent(this.rowBodySelector, this.rowBodySelectorDepth); - }, - - - - - getRow : function(row) { - return this.getRows()[row]; - }, - - - getCell : function(row, col) { - return Ext.fly(this.getRow(row)).query(this.cellSelector)[col]; - }, - - - getHeaderCell : function(index) { - return this.mainHd.dom.getElementsByTagName('td')[index]; - }, - - - - - addRowClass : function(rowId, cls) { - var row = this.getRow(rowId); - if (row) { - this.fly(row).addClass(cls); - } - }, - - - removeRowClass : function(row, cls) { - var r = this.getRow(row); - if(r){ - this.fly(r).removeClass(cls); - } - }, - - - removeRow : function(row) { - Ext.removeNode(this.getRow(row)); - this.syncFocusEl(row); - }, - - - removeRows : function(firstRow, lastRow) { - var bd = this.mainBody.dom, - rowIndex; - - for (rowIndex = firstRow; rowIndex <= lastRow; rowIndex++){ - Ext.removeNode(bd.childNodes[firstRow]); - } - - this.syncFocusEl(firstRow); - }, - - - - - getScrollState : function() { - var sb = this.scroller.dom; - - return { - left: sb.scrollLeft, - top : sb.scrollTop - }; - }, - - - restoreScroll : function(state) { - var sb = this.scroller.dom; - sb.scrollLeft = state.left; - sb.scrollTop = state.top; - }, - - - scrollToTop : function() { - var dom = this.scroller.dom; - - dom.scrollTop = 0; - dom.scrollLeft = 0; - }, - - - syncScroll : function() { - this.syncHeaderScroll(); - var mb = this.scroller.dom; - this.grid.fireEvent('bodyscroll', mb.scrollLeft, mb.scrollTop); - }, - - - syncHeaderScroll : function() { - var innerHd = this.innerHd, - scrollLeft = this.scroller.dom.scrollLeft; - - innerHd.scrollLeft = scrollLeft; - innerHd.scrollLeft = scrollLeft; - }, - - - updateSortIcon : function(col, dir) { - var sortClasses = this.sortClasses, - sortClass = sortClasses[dir == "DESC" ? 1 : 0], - headers = this.mainHd.select('td').removeClass(sortClasses); - - headers.item(col).addClass(sortClass); - }, - - - updateAllColumnWidths : function() { - var totalWidth = this.getTotalWidth(), - colCount = this.cm.getColumnCount(), - rows = this.getRows(), - rowCount = rows.length, - widths = [], - row, rowFirstChild, trow, i, j; - - for (i = 0; i < colCount; i++) { - widths[i] = this.getColumnWidth(i); - this.getHeaderCell(i).style.width = widths[i]; - } - - this.updateHeaderWidth(); - - for (i = 0; i < rowCount; i++) { - row = rows[i]; - row.style.width = totalWidth; - rowFirstChild = row.firstChild; - - if (rowFirstChild) { - rowFirstChild.style.width = totalWidth; - trow = rowFirstChild.rows[0]; - - for (j = 0; j < colCount; j++) { - trow.childNodes[j].style.width = widths[j]; - } - } - } - - this.onAllColumnWidthsUpdated(widths, totalWidth); - }, - - - updateColumnWidth : function(column, width) { - var columnWidth = this.getColumnWidth(column), - totalWidth = this.getTotalWidth(), - headerCell = this.getHeaderCell(column), - nodes = this.getRows(), - nodeCount = nodes.length, - row, i, firstChild; - - this.updateHeaderWidth(); - headerCell.style.width = columnWidth; - - for (i = 0; i < nodeCount; i++) { - row = nodes[i]; - firstChild = row.firstChild; - - row.style.width = totalWidth; - if (firstChild) { - firstChild.style.width = totalWidth; - firstChild.rows[0].childNodes[column].style.width = columnWidth; - } - } - - this.onColumnWidthUpdated(column, columnWidth, totalWidth); - }, - - - updateColumnHidden : function(col, hidden) { - var totalWidth = this.getTotalWidth(), - display = hidden ? 'none' : '', - headerCell = this.getHeaderCell(col), - nodes = this.getRows(), - nodeCount = nodes.length, - row, rowFirstChild, i; - - this.updateHeaderWidth(); - headerCell.style.display = display; - - for (i = 0; i < nodeCount; i++) { - row = nodes[i]; - row.style.width = totalWidth; - rowFirstChild = row.firstChild; - - if (rowFirstChild) { - rowFirstChild.style.width = totalWidth; - rowFirstChild.rows[0].childNodes[col].style.display = display; - } - } - - this.onColumnHiddenUpdated(col, hidden, totalWidth); - delete this.lastViewWidth; - this.layout(); - }, - - - doRender : function(columns, records, store, startRow, colCount, stripe) { - var templates = this.templates, - cellTemplate = templates.cell, - rowTemplate = templates.row, - last = colCount - 1, - tstyle = 'width:' + this.getTotalWidth() + ';', - - rowBuffer = [], - colBuffer = [], - rowParams = {tstyle: tstyle}, - meta = {}, - len = records.length, - alt, - column, - record, i, j, rowIndex; - - - for (j = 0; j < len; j++) { - record = records[j]; - colBuffer = []; - - rowIndex = j + startRow; - - - for (i = 0; i < colCount; i++) { - column = columns[i]; - - meta.id = column.id; - meta.css = i === 0 ? 'x-grid3-cell-first ' : (i == last ? 'x-grid3-cell-last ' : ''); - meta.attr = meta.cellAttr = ''; - meta.style = column.style; - meta.value = column.renderer.call(column.scope, record.data[column.name], meta, record, rowIndex, i, store); - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (this.markDirty && record.dirty && typeof record.modified[column.name] != 'undefined') { - meta.css += ' x-grid3-dirty-cell'; - } - - colBuffer[colBuffer.length] = cellTemplate.apply(meta); - } - - alt = []; - - if (stripe && ((rowIndex + 1) % 2 === 0)) { - alt[0] = 'x-grid3-row-alt'; - } - - if (record.dirty) { - alt[1] = ' x-grid3-dirty-row'; - } - - rowParams.cols = colCount; - - if (this.getRowClass) { - alt[2] = this.getRowClass(record, rowIndex, rowParams, store); - } - - rowParams.alt = alt.join(' '); - rowParams.cells = colBuffer.join(''); - - rowBuffer[rowBuffer.length] = rowTemplate.apply(rowParams); - } - - return rowBuffer.join(''); - }, - - - processRows : function(startRow, skipStripe) { - if (!this.ds || this.ds.getCount() < 1) { - return; - } - - var rows = this.getRows(), - length = rows.length, - row, i; - - skipStripe = skipStripe || !this.grid.stripeRows; - startRow = startRow || 0; - - for (i = 0; i < length; i++) { - row = rows[i]; - if (row) { - row.rowIndex = i; - if (!skipStripe) { - row.className = row.className.replace(this.rowClsRe, ' '); - if ((i + 1) % 2 === 0){ - row.className += ' x-grid3-row-alt'; - } - } - } - } - - - if (startRow === 0) { - Ext.fly(rows[0]).addClass(this.firstRowCls); - } - - Ext.fly(rows[length - 1]).addClass(this.lastRowCls); - }, - - - afterRender : function() { - if (!this.ds || !this.cm) { - return; - } - - this.mainBody.dom.innerHTML = this.renderBody() || ' '; - this.processRows(0, true); - - if (this.deferEmptyText !== true) { - this.applyEmptyText(); - } - - this.grid.fireEvent('viewready', this.grid); - }, - - - afterRenderUI: function() { - var grid = this.grid; - - this.initElements(); - - - Ext.fly(this.innerHd).on('click', this.handleHdDown, this); - - this.mainHd.on({ - scope : this, - mouseover: this.handleHdOver, - mouseout : this.handleHdOut, - mousemove: this.handleHdMove - }); - - this.scroller.on('scroll', this.syncScroll, this); - - if (grid.enableColumnResize !== false) { - this.splitZone = new Ext.grid.GridView.SplitDragZone(grid, this.mainHd.dom); - } - - if (grid.enableColumnMove) { - this.columnDrag = new Ext.grid.GridView.ColumnDragZone(grid, this.innerHd); - this.columnDrop = new Ext.grid.HeaderDropZone(grid, this.mainHd.dom); - } - - if (grid.enableHdMenu !== false) { - this.hmenu = new Ext.menu.Menu({id: grid.id + '-hctx'}); - this.hmenu.add( - {itemId:'asc', text: this.sortAscText, cls: 'xg-hmenu-sort-asc'}, - {itemId:'desc', text: this.sortDescText, cls: 'xg-hmenu-sort-desc'} - ); - - if (grid.enableColumnHide !== false) { - this.colMenu = new Ext.menu.Menu({id:grid.id + '-hcols-menu'}); - this.colMenu.on({ - scope : this, - beforeshow: this.beforeColMenuShow, - itemclick : this.handleHdMenuClick - }); - this.hmenu.add('-', { - itemId:'columns', - hideOnClick: false, - text: this.columnsText, - menu: this.colMenu, - iconCls: 'x-cols-icon' - }); - } - - this.hmenu.on('itemclick', this.handleHdMenuClick, this); - } - - if (grid.trackMouseOver) { - this.mainBody.on({ - scope : this, - mouseover: this.onRowOver, - mouseout : this.onRowOut - }); - } - - if (grid.enableDragDrop || grid.enableDrag) { - this.dragZone = new Ext.grid.GridDragZone(grid, { - ddGroup : grid.ddGroup || 'GridDD' - }); - } - - this.updateHeaderSortState(); - }, - - - renderUI : function() { - var templates = this.templates; - - return templates.master.apply({ - body : templates.body.apply({rows:' '}), - header: this.renderHeaders(), - ostyle: 'width:' + this.getOffsetWidth() + ';', - bstyle: 'width:' + this.getTotalWidth() + ';' - }); - }, - - - processEvent : function(name, e) { - var target = e.getTarget(), - grid = this.grid, - header = this.findHeaderIndex(target), - row, cell, col, body; - - grid.fireEvent(name, e); - - if (header !== false) { - grid.fireEvent('header' + name, grid, header, e); - } else { - row = this.findRowIndex(target); - - - - - if (row !== false) { - cell = this.findCellIndex(target); - if (cell !== false) { - col = grid.colModel.getColumnAt(cell); - if (grid.fireEvent('cell' + name, grid, row, cell, e) !== false) { - if (!col || (col.processEvent && (col.processEvent(name, e, grid, row, cell) !== false))) { - grid.fireEvent('row' + name, grid, row, e); - } - } - } else { - if (grid.fireEvent('row' + name, grid, row, e) !== false) { - (body = this.findRowBody(target)) && grid.fireEvent('rowbody' + name, grid, row, e); - } - } - } else { - grid.fireEvent('container' + name, grid, e); - } - } - }, - - - layout : function(initial) { - if (!this.mainBody) { - return; - } - - var grid = this.grid, - gridEl = grid.getGridEl(), - gridSize = gridEl.getSize(true), - gridWidth = gridSize.width, - gridHeight = gridSize.height, - scroller = this.scroller, - scrollStyle, headerHeight, scrollHeight; - - if (gridWidth < 20 || gridHeight < 20) { - return; - } - - if (grid.autoHeight) { - scrollStyle = scroller.dom.style; - scrollStyle.overflow = 'visible'; - - if (Ext.isWebKit) { - scrollStyle.position = 'static'; - } - } else { - this.el.setSize(gridWidth, gridHeight); - - headerHeight = this.mainHd.getHeight(); - scrollHeight = gridHeight - headerHeight; - - scroller.setSize(gridWidth, scrollHeight); - - if (this.innerHd) { - this.innerHd.style.width = (gridWidth) + "px"; - } - } - - if (this.forceFit || (initial === true && this.autoFill)) { - if (this.lastViewWidth != gridWidth) { - this.fitColumns(false, false); - this.lastViewWidth = gridWidth; - } - } else { - this.autoExpand(); - this.syncHeaderScroll(); - } - - this.onLayout(gridWidth, scrollHeight); - }, - - - - onLayout : function(vw, vh) { - - }, - - onColumnWidthUpdated : function(col, w, tw) { - - }, - - onAllColumnWidthsUpdated : function(ws, tw) { - - }, - - onColumnHiddenUpdated : function(col, hidden, tw) { - - }, - - updateColumnText : function(col, text) { - - }, - - afterMove : function(colIndex) { - - }, - - - - init : function(grid) { - this.grid = grid; - - this.initTemplates(); - this.initData(grid.store, grid.colModel); - this.initUI(grid); - }, - - - getColumnId : function(index){ - return this.cm.getColumnId(index); - }, - - - getOffsetWidth : function() { - return (this.cm.getTotalWidth() + this.getScrollOffset()) + 'px'; - }, - - - getScrollOffset: function() { - return Ext.num(this.scrollOffset, Ext.getScrollBarWidth()); - }, - - - renderHeaders : function() { - var colModel = this.cm, - templates = this.templates, - headerTpl = templates.hcell, - properties = {}, - colCount = colModel.getColumnCount(), - last = colCount - 1, - cells = [], - i, cssCls; - - for (i = 0; i < colCount; i++) { - if (i == 0) { - cssCls = 'x-grid3-cell-first '; - } else { - cssCls = i == last ? 'x-grid3-cell-last ' : ''; - } - - properties = { - id : colModel.getColumnId(i), - value : colModel.getColumnHeader(i) || '', - style : this.getColumnStyle(i, true), - css : cssCls, - tooltip: this.getColumnTooltip(i) - }; - - if (colModel.config[i].align == 'right') { - properties.istyle = 'padding-right: 16px;'; - } else { - delete properties.istyle; - } - - cells[i] = headerTpl.apply(properties); - } - - return templates.header.apply({ - cells : cells.join(""), - tstyle: String.format("width: {0};", this.getTotalWidth()) - }); - }, - - - getColumnTooltip : function(i) { - var tooltip = this.cm.getColumnTooltip(i); - if (tooltip) { - if (Ext.QuickTips.isEnabled()) { - return 'ext:qtip="' + tooltip + '"'; - } else { - return 'title="' + tooltip + '"'; - } - } - - return ''; - }, - - - beforeUpdate : function() { - this.grid.stopEditing(true); - }, - - - updateHeaders : function() { - this.innerHd.firstChild.innerHTML = this.renderHeaders(); - - this.updateHeaderWidth(false); - }, - - - updateHeaderWidth: function(updateMain) { - var innerHdChild = this.innerHd.firstChild, - totalWidth = this.getTotalWidth(); - - innerHdChild.style.width = this.getOffsetWidth(); - innerHdChild.firstChild.style.width = totalWidth; - - if (updateMain !== false) { - this.mainBody.dom.style.width = totalWidth; - } - }, - - - focusRow : function(row) { - this.focusCell(row, 0, false); - }, - - - focusCell : function(row, col, hscroll) { - this.syncFocusEl(this.ensureVisible(row, col, hscroll)); - - var focusEl = this.focusEl; - - if (Ext.isGecko) { - focusEl.focus(); - } else { - focusEl.focus.defer(1, focusEl); - } - }, - - - resolveCell : function(row, col, hscroll) { - if (!Ext.isNumber(row)) { - row = row.rowIndex; - } - - if (!this.ds) { - return null; - } - - if (row < 0 || row >= this.ds.getCount()) { - return null; - } - col = (col !== undefined ? col : 0); - - var rowEl = this.getRow(row), - colModel = this.cm, - colCount = colModel.getColumnCount(), - cellEl; - - if (!(hscroll === false && col === 0)) { - while (col < colCount && colModel.isHidden(col)) { - col++; - } - - cellEl = this.getCell(row, col); - } - - return {row: rowEl, cell: cellEl}; - }, - - - getResolvedXY : function(resolved) { - if (!resolved) { - return null; - } - - var cell = resolved.cell, - row = resolved.row; - - if (cell) { - return Ext.fly(cell).getXY(); - } else { - return [this.el.getX(), Ext.fly(row).getY()]; - } - }, - - - syncFocusEl : function(row, col, hscroll) { - var xy = row; - - if (!Ext.isArray(xy)) { - row = Math.min(row, Math.max(0, this.getRows().length-1)); - - if (isNaN(row)) { - return; - } - - xy = this.getResolvedXY(this.resolveCell(row, col, hscroll)); - } - - this.focusEl.setXY(xy || this.scroller.getXY()); - }, - - - ensureVisible : function(row, col, hscroll) { - var resolved = this.resolveCell(row, col, hscroll); - - if (!resolved || !resolved.row) { - return null; - } - - var rowEl = resolved.row, - cellEl = resolved.cell, - c = this.scroller.dom, - p = rowEl, - ctop = 0, - stop = this.el.dom; - - while (p && p != stop) { - ctop += p.offsetTop; - p = p.offsetParent; - } - - ctop -= this.mainHd.dom.offsetHeight; - stop = parseInt(c.scrollTop, 10); - - var cbot = ctop + rowEl.offsetHeight, - ch = c.clientHeight, - sbot = stop + ch; - - - if (ctop < stop) { - c.scrollTop = ctop; - } else if(cbot > sbot) { - c.scrollTop = cbot-ch; - } - - if (hscroll !== false) { - var cleft = parseInt(cellEl.offsetLeft, 10), - cright = cleft + cellEl.offsetWidth, - sleft = parseInt(c.scrollLeft, 10), - sright = sleft + c.clientWidth; - - if (cleft < sleft) { - c.scrollLeft = cleft; - } else if(cright > sright) { - c.scrollLeft = cright-c.clientWidth; - } - } - - return this.getResolvedXY(resolved); - }, - - - insertRows : function(dm, firstRow, lastRow, isUpdate) { - var last = dm.getCount() - 1; - if( !isUpdate && firstRow === 0 && lastRow >= last) { - this.fireEvent('beforerowsinserted', this, firstRow, lastRow); - this.refresh(); - this.fireEvent('rowsinserted', this, firstRow, lastRow); - } else { - if (!isUpdate) { - this.fireEvent('beforerowsinserted', this, firstRow, lastRow); - } - var html = this.renderRows(firstRow, lastRow), - before = this.getRow(firstRow); - if (before) { - if(firstRow === 0){ - Ext.fly(this.getRow(0)).removeClass(this.firstRowCls); - } - Ext.DomHelper.insertHtml('beforeBegin', before, html); - } else { - var r = this.getRow(last - 1); - if(r){ - Ext.fly(r).removeClass(this.lastRowCls); - } - Ext.DomHelper.insertHtml('beforeEnd', this.mainBody.dom, html); - } - if (!isUpdate) { - this.processRows(firstRow); - this.fireEvent('rowsinserted', this, firstRow, lastRow); - } else if (firstRow === 0 || firstRow >= last) { - - Ext.fly(this.getRow(firstRow)).addClass(firstRow === 0 ? this.firstRowCls : this.lastRowCls); - } - } - this.syncFocusEl(firstRow); - }, - - - deleteRows : function(dm, firstRow, lastRow) { - if (dm.getRowCount() < 1) { - this.refresh(); - } else { - this.fireEvent('beforerowsdeleted', this, firstRow, lastRow); - - this.removeRows(firstRow, lastRow); - - this.processRows(firstRow); - this.fireEvent('rowsdeleted', this, firstRow, lastRow); - } - }, - - - getColumnStyle : function(colIndex, isHeader) { - var colModel = this.cm, - colConfig = colModel.config, - style = isHeader ? '' : colConfig[colIndex].css || '', - align = colConfig[colIndex].align; - - style += String.format("width: {0};", this.getColumnWidth(colIndex)); - - if (colModel.isHidden(colIndex)) { - style += 'display: none; '; - } - - if (align) { - style += String.format("text-align: {0};", align); - } - - return style; - }, - - - getColumnWidth : function(column) { - var columnWidth = this.cm.getColumnWidth(column), - borderWidth = this.borderWidth; - - if (Ext.isNumber(columnWidth)) { - if (Ext.isBorderBox || (Ext.isWebKit && !Ext.isSafari2)) { - return columnWidth + "px"; - } else { - return Math.max(columnWidth - borderWidth, 0) + "px"; - } - } else { - return columnWidth; - } - }, - - - getTotalWidth : function() { - return this.cm.getTotalWidth() + 'px'; - }, - - - fitColumns : function(preventRefresh, onlyExpand, omitColumn) { - var grid = this.grid, - colModel = this.cm, - totalColWidth = colModel.getTotalWidth(false), - gridWidth = this.getGridInnerWidth(), - extraWidth = gridWidth - totalColWidth, - columns = [], - extraCol = 0, - width = 0, - colWidth, fraction, i; - - - if (gridWidth < 20 || extraWidth === 0) { - return false; - } - - var visibleColCount = colModel.getColumnCount(true), - totalColCount = colModel.getColumnCount(false), - adjCount = visibleColCount - (Ext.isNumber(omitColumn) ? 1 : 0); - - if (adjCount === 0) { - adjCount = 1; - omitColumn = undefined; - } - - - for (i = 0; i < totalColCount; i++) { - if (!colModel.isFixed(i) && i !== omitColumn) { - colWidth = colModel.getColumnWidth(i); - columns.push(i, colWidth); - - if (!colModel.isHidden(i)) { - extraCol = i; - width += colWidth; - } - } - } - - fraction = (gridWidth - colModel.getTotalWidth()) / width; - - while (columns.length) { - colWidth = columns.pop(); - i = columns.pop(); - - colModel.setColumnWidth(i, Math.max(grid.minColumnWidth, Math.floor(colWidth + colWidth * fraction)), true); - } - - - totalColWidth = colModel.getTotalWidth(false); - - if (totalColWidth > gridWidth) { - var adjustCol = (adjCount == visibleColCount) ? extraCol : omitColumn, - newWidth = Math.max(1, colModel.getColumnWidth(adjustCol) - (totalColWidth - gridWidth)); - - colModel.setColumnWidth(adjustCol, newWidth, true); - } - - if (preventRefresh !== true) { - this.updateAllColumnWidths(); - } - - return true; - }, - - - autoExpand : function(preventUpdate) { - var grid = this.grid, - colModel = this.cm, - gridWidth = this.getGridInnerWidth(), - totalColumnWidth = colModel.getTotalWidth(false), - autoExpandColumn = grid.autoExpandColumn; - - if (!this.userResized && autoExpandColumn) { - if (gridWidth != totalColumnWidth) { - - var colIndex = colModel.getIndexById(autoExpandColumn), - currentWidth = colModel.getColumnWidth(colIndex), - desiredWidth = gridWidth - totalColumnWidth + currentWidth, - newWidth = Math.min(Math.max(desiredWidth, grid.autoExpandMin), grid.autoExpandMax); - - if (currentWidth != newWidth) { - colModel.setColumnWidth(colIndex, newWidth, true); - - if (preventUpdate !== true) { - this.updateColumnWidth(colIndex, newWidth); - } - } - } - } - }, - - - getGridInnerWidth: function() { - return this.grid.getGridEl().getWidth(true) - this.getScrollOffset(); - }, - - - getColumnData : function() { - var columns = [], - colModel = this.cm, - colCount = colModel.getColumnCount(), - fields = this.ds.fields, - i, name; - - for (i = 0; i < colCount; i++) { - name = colModel.getDataIndex(i); - - columns[i] = { - name : Ext.isDefined(name) ? name : (fields.get(i) ? fields.get(i).name : undefined), - renderer: colModel.getRenderer(i), - scope : colModel.getRendererScope(i), - id : colModel.getColumnId(i), - style : this.getColumnStyle(i) - }; - } - - return columns; - }, - - - renderRows : function(startRow, endRow) { - var grid = this.grid, - store = grid.store, - stripe = grid.stripeRows, - colModel = grid.colModel, - colCount = colModel.getColumnCount(), - rowCount = store.getCount(), - records; - - if (rowCount < 1) { - return ''; - } - - startRow = startRow || 0; - endRow = Ext.isDefined(endRow) ? endRow : rowCount - 1; - records = store.getRange(startRow, endRow); - - return this.doRender(this.getColumnData(), records, store, startRow, colCount, stripe); - }, - - - renderBody : function(){ - var markup = this.renderRows() || ' '; - return this.templates.body.apply({rows: markup}); - }, - - - refreshRow: function(record) { - var store = this.ds, - colCount = this.cm.getColumnCount(), - columns = this.getColumnData(), - last = colCount - 1, - cls = ['x-grid3-row'], - rowParams = { - tstyle: String.format("width: {0};", this.getTotalWidth()) - }, - colBuffer = [], - cellTpl = this.templates.cell, - rowIndex, row, column, meta, css, i; - - if (Ext.isNumber(record)) { - rowIndex = record; - record = store.getAt(rowIndex); - } else { - rowIndex = store.indexOf(record); - } - - - if (!record || rowIndex < 0) { - return; - } - - - for (i = 0; i < colCount; i++) { - column = columns[i]; - - if (i == 0) { - css = 'x-grid3-cell-first'; - } else { - css = (i == last) ? 'x-grid3-cell-last ' : ''; - } - - meta = { - id : column.id, - style : column.style, - css : css, - attr : "", - cellAttr: "" - }; - - meta.value = column.renderer.call(column.scope, record.data[column.name], meta, record, rowIndex, i, store); - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (this.markDirty && record.dirty && typeof record.modified[column.name] != 'undefined') { - meta.css += ' x-grid3-dirty-cell'; - } - - colBuffer[i] = cellTpl.apply(meta); - } - - row = this.getRow(rowIndex); - row.className = ''; - - if (this.grid.stripeRows && ((rowIndex + 1) % 2 === 0)) { - cls.push('x-grid3-row-alt'); - } - - if (this.getRowClass) { - rowParams.cols = colCount; - cls.push(this.getRowClass(record, rowIndex, rowParams, store)); - } - - this.fly(row).addClass(cls).setStyle(rowParams.tstyle); - rowParams.cells = colBuffer.join(""); - row.innerHTML = this.templates.rowInner.apply(rowParams); - - this.fireEvent('rowupdated', this, rowIndex, record); - }, - - - refresh : function(headersToo) { - this.fireEvent('beforerefresh', this); - this.grid.stopEditing(true); - - var result = this.renderBody(); - this.mainBody.update(result).setWidth(this.getTotalWidth()); - if (headersToo === true) { - this.updateHeaders(); - this.updateHeaderSortState(); - } - this.processRows(0, true); - this.layout(); - this.applyEmptyText(); - this.fireEvent('refresh', this); - }, - - - applyEmptyText : function() { - if (this.emptyText && !this.hasRows()) { - this.mainBody.update('
      ' + this.emptyText + '
      '); - } - }, - - - updateHeaderSortState : function() { - var state = this.ds.getSortState(); - if (!state) { - return; - } - - if (!this.sortState || (this.sortState.field != state.field || this.sortState.direction != state.direction)) { - this.grid.fireEvent('sortchange', this.grid, state); - } - - this.sortState = state; - - var sortColumn = this.cm.findColumnIndex(state.field); - if (sortColumn != -1) { - var sortDir = state.direction; - this.updateSortIcon(sortColumn, sortDir); - } - }, - - - clearHeaderSortState : function() { - if (!this.sortState) { - return; - } - this.grid.fireEvent('sortchange', this.grid, null); - this.mainHd.select('td').removeClass(this.sortClasses); - delete this.sortState; - }, - - - destroy : function() { - var me = this, - grid = me.grid, - gridEl = grid.getGridEl(), - dragZone = me.dragZone, - splitZone = me.splitZone, - columnDrag = me.columnDrag, - columnDrop = me.columnDrop, - scrollToTopTask = me.scrollToTopTask, - columnDragData, - columnDragProxy; - - if (scrollToTopTask && scrollToTopTask.cancel) { - scrollToTopTask.cancel(); - } - - Ext.destroyMembers(me, 'colMenu', 'hmenu'); - - me.initData(null, null); - me.purgeListeners(); - - Ext.fly(me.innerHd).un("click", me.handleHdDown, me); - - if (grid.enableColumnMove) { - columnDragData = columnDrag.dragData; - columnDragProxy = columnDrag.proxy; - Ext.destroy( - columnDrag.el, - columnDragProxy.ghost, - columnDragProxy.el, - columnDrop.el, - columnDrop.proxyTop, - columnDrop.proxyBottom, - columnDragData.ddel, - columnDragData.header - ); - - if (columnDragProxy.anim) { - Ext.destroy(columnDragProxy.anim); - } - - delete columnDragProxy.ghost; - delete columnDragData.ddel; - delete columnDragData.header; - columnDrag.destroy(); - - delete Ext.dd.DDM.locationCache[columnDrag.id]; - delete columnDrag._domRef; - - delete columnDrop.proxyTop; - delete columnDrop.proxyBottom; - columnDrop.destroy(); - delete Ext.dd.DDM.locationCache["gridHeader" + gridEl.id]; - delete columnDrop._domRef; - delete Ext.dd.DDM.ids[columnDrop.ddGroup]; - } - - if (splitZone) { - splitZone.destroy(); - delete splitZone._domRef; - delete Ext.dd.DDM.ids["gridSplitters" + gridEl.id]; - } - - Ext.fly(me.innerHd).removeAllListeners(); - Ext.removeNode(me.innerHd); - delete me.innerHd; - - Ext.destroy( - me.el, - me.mainWrap, - me.mainHd, - me.scroller, - me.mainBody, - me.focusEl, - me.resizeMarker, - me.resizeProxy, - me.activeHdBtn, - me._flyweight, - dragZone, - splitZone - ); - - delete grid.container; - - if (dragZone) { - dragZone.destroy(); - } - - Ext.dd.DDM.currentTarget = null; - delete Ext.dd.DDM.locationCache[gridEl.id]; - - Ext.EventManager.removeResizeListener(me.onWindowResize, me); - }, - - - onDenyColumnHide : function() { - - }, - - - render : function() { - if (this.autoFill) { - var ct = this.grid.ownerCt; - - if (ct && ct.getLayout()) { - ct.on('afterlayout', function() { - this.fitColumns(true, true); - this.updateHeaders(); - this.updateHeaderSortState(); - }, this, {single: true}); - } - } else if (this.forceFit) { - this.fitColumns(true, false); - } else if (this.grid.autoExpandColumn) { - this.autoExpand(true); - } - - this.grid.getGridEl().dom.innerHTML = this.renderUI(); - - this.afterRenderUI(); - }, - - - - - initData : function(newStore, newColModel) { - var me = this; - - if (me.ds) { - var oldStore = me.ds; - - oldStore.un('add', me.onAdd, me); - oldStore.un('load', me.onLoad, me); - oldStore.un('clear', me.onClear, me); - oldStore.un('remove', me.onRemove, me); - oldStore.un('update', me.onUpdate, me); - oldStore.un('datachanged', me.onDataChange, me); - - if (oldStore !== newStore && oldStore.autoDestroy) { - oldStore.destroy(); - } - } - - if (newStore) { - newStore.on({ - scope : me, - load : me.onLoad, - add : me.onAdd, - remove : me.onRemove, - update : me.onUpdate, - clear : me.onClear, - datachanged: me.onDataChange - }); - } - - if (me.cm) { - var oldColModel = me.cm; - - oldColModel.un('configchange', me.onColConfigChange, me); - oldColModel.un('widthchange', me.onColWidthChange, me); - oldColModel.un('headerchange', me.onHeaderChange, me); - oldColModel.un('hiddenchange', me.onHiddenChange, me); - oldColModel.un('columnmoved', me.onColumnMove, me); - } - - if (newColModel) { - delete me.lastViewWidth; - - newColModel.on({ - scope : me, - configchange: me.onColConfigChange, - widthchange : me.onColWidthChange, - headerchange: me.onHeaderChange, - hiddenchange: me.onHiddenChange, - columnmoved : me.onColumnMove - }); - } - - me.ds = newStore; - me.cm = newColModel; - }, - - - onDataChange : function(){ - this.refresh(true); - this.updateHeaderSortState(); - this.syncFocusEl(0); - }, - - - onClear : function() { - this.refresh(); - this.syncFocusEl(0); - }, - - - onUpdate : function(store, record) { - this.refreshRow(record); - }, - - - onAdd : function(store, records, index) { - this.insertRows(store, index, index + (records.length-1)); - }, - - - onRemove : function(store, record, index, isUpdate) { - if (isUpdate !== true) { - this.fireEvent('beforerowremoved', this, index, record); - } - - this.removeRow(index); - - if (isUpdate !== true) { - this.processRows(index); - this.applyEmptyText(); - this.fireEvent('rowremoved', this, index, record); - } - }, - - - onLoad : function() { - if (Ext.isGecko) { - if (!this.scrollToTopTask) { - this.scrollToTopTask = new Ext.util.DelayedTask(this.scrollToTop, this); - } - this.scrollToTopTask.delay(1); - } else { - this.scrollToTop(); - } - }, - - - onColWidthChange : function(cm, col, width) { - this.updateColumnWidth(col, width); - }, - - - onHeaderChange : function(cm, col, text) { - this.updateHeaders(); - }, - - - onHiddenChange : function(cm, col, hidden) { - this.updateColumnHidden(col, hidden); - }, - - - onColumnMove : function(cm, oldIndex, newIndex) { - this.indexMap = null; - this.refresh(true); - this.restoreScroll(this.getScrollState()); - - this.afterMove(newIndex); - this.grid.fireEvent('columnmove', oldIndex, newIndex); - }, - - - onColConfigChange : function() { - delete this.lastViewWidth; - this.indexMap = null; - this.refresh(true); - }, - - - - initUI : function(grid) { - grid.on('headerclick', this.onHeaderClick, this); - }, - - - initEvents : Ext.emptyFn, - - - onHeaderClick : function(g, index) { - if (this.headersDisabled || !this.cm.isSortable(index)) { - return; - } - g.stopEditing(true); - g.store.sort(this.cm.getDataIndex(index)); - }, - - - onRowOver : function(e, target) { - var row = this.findRowIndex(target); - - if (row !== false) { - this.addRowClass(row, this.rowOverCls); - } - }, - - - onRowOut : function(e, target) { - var row = this.findRowIndex(target); - - if (row !== false && !e.within(this.getRow(row), true)) { - this.removeRowClass(row, this.rowOverCls); - } - }, - - - onRowSelect : function(row) { - this.addRowClass(row, this.selectedRowClass); - }, - - - onRowDeselect : function(row) { - this.removeRowClass(row, this.selectedRowClass); - }, - - - onCellSelect : function(row, col) { - var cell = this.getCell(row, col); - if (cell) { - this.fly(cell).addClass('x-grid3-cell-selected'); - } - }, - - - onCellDeselect : function(row, col) { - var cell = this.getCell(row, col); - if (cell) { - this.fly(cell).removeClass('x-grid3-cell-selected'); - } - }, - - - handleWheel : function(e) { - e.stopPropagation(); - }, - - - onColumnSplitterMoved : function(cellIndex, width) { - this.userResized = true; - this.grid.colModel.setColumnWidth(cellIndex, width, true); - - if (this.forceFit) { - this.fitColumns(true, false, cellIndex); - this.updateAllColumnWidths(); - } else { - this.updateColumnWidth(cellIndex, width); - this.syncHeaderScroll(); - } - - this.grid.fireEvent('columnresize', cellIndex, width); - }, - - - beforeColMenuShow : function() { - var colModel = this.cm, - colCount = colModel.getColumnCount(), - colMenu = this.colMenu, - i; - - colMenu.removeAll(); - - for (i = 0; i < colCount; i++) { - if (colModel.config[i].hideable !== false) { - colMenu.add(new Ext.menu.CheckItem({ - text : colModel.getColumnHeader(i), - itemId : 'col-' + colModel.getColumnId(i), - checked : !colModel.isHidden(i), - disabled : colModel.config[i].hideable === false, - hideOnClick: false - })); - } - } - }, - - - handleHdMenuClick : function(item) { - var store = this.ds, - dataIndex = this.cm.getDataIndex(this.hdCtxIndex); - - switch (item.getItemId()) { - case 'asc': - store.sort(dataIndex, 'ASC'); - break; - case 'desc': - store.sort(dataIndex, 'DESC'); - break; - default: - this.handleHdMenuClickDefault(item); - } - return true; - }, - - - handleHdMenuClickDefault: function(item) { - var colModel = this.cm, - itemId = item.getItemId(), - index = colModel.getIndexById(itemId.substr(4)); - - if (index != -1) { - if (item.checked && colModel.getColumnsBy(this.isHideableColumn, this).length <= 1) { - this.onDenyColumnHide(); - return; - } - colModel.setHidden(index, item.checked); - } - }, - - - handleHdDown : function(e, target) { - if (Ext.fly(target).hasClass('x-grid3-hd-btn')) { - e.stopEvent(); - - var colModel = this.cm, - header = this.findHeaderCell(target), - index = this.getCellIndex(header), - sortable = colModel.isSortable(index), - menu = this.hmenu, - menuItems = menu.items, - menuCls = this.headerMenuOpenCls; - - this.hdCtxIndex = index; - - Ext.fly(header).addClass(menuCls); - menuItems.get('asc').setDisabled(!sortable); - menuItems.get('desc').setDisabled(!sortable); - - menu.on('hide', function() { - Ext.fly(header).removeClass(menuCls); - }, this, {single:true}); - - menu.show(target, 'tl-bl?'); - } - }, - - - handleHdMove : function(e) { - var header = this.findHeaderCell(this.activeHdRef); - - if (header && !this.headersDisabled) { - var handleWidth = this.splitHandleWidth || 5, - activeRegion = this.activeHdRegion, - headerStyle = header.style, - colModel = this.cm, - cursor = '', - pageX = e.getPageX(); - - if (this.grid.enableColumnResize !== false) { - var activeHeaderIndex = this.activeHdIndex, - previousVisible = this.getPreviousVisible(activeHeaderIndex), - currentResizable = colModel.isResizable(activeHeaderIndex), - previousResizable = previousVisible && colModel.isResizable(previousVisible), - inLeftResizer = pageX - activeRegion.left <= handleWidth, - inRightResizer = activeRegion.right - pageX <= (!this.activeHdBtn ? handleWidth : 2); - - if (inLeftResizer && previousResizable) { - cursor = Ext.isAir ? 'move' : Ext.isWebKit ? 'e-resize' : 'col-resize'; - } else if (inRightResizer && currentResizable) { - cursor = Ext.isAir ? 'move' : Ext.isWebKit ? 'w-resize' : 'col-resize'; - } - } - - headerStyle.cursor = cursor; - } - }, - - - getPreviousVisible: function(index) { - while (index > 0) { - if (!this.cm.isHidden(index - 1)) { - return index; - } - index--; - } - return undefined; - }, - - - handleHdOver : function(e, target) { - var header = this.findHeaderCell(target); - - if (header && !this.headersDisabled) { - var fly = this.fly(header); - - this.activeHdRef = target; - this.activeHdIndex = this.getCellIndex(header); - this.activeHdRegion = fly.getRegion(); - - if (!this.isMenuDisabled(this.activeHdIndex, fly)) { - fly.addClass('x-grid3-hd-over'); - this.activeHdBtn = fly.child('.x-grid3-hd-btn'); - - if (this.activeHdBtn) { - this.activeHdBtn.dom.style.height = (header.firstChild.offsetHeight - 1) + 'px'; - } - } - } - }, - - - handleHdOut : function(e, target) { - var header = this.findHeaderCell(target); - - if (header && (!Ext.isIE || !e.within(header, true))) { - this.activeHdRef = null; - this.fly(header).removeClass('x-grid3-hd-over'); - header.style.cursor = ''; - } - }, - - - isMenuDisabled: function(cellIndex, el) { - return this.cm.isMenuDisabled(cellIndex); - }, - - - hasRows : function() { - var fc = this.mainBody.dom.firstChild; - return fc && fc.nodeType == 1 && fc.className != 'x-grid-empty'; - }, - - - isHideableColumn : function(c) { - return !c.hidden; - }, - - - bind : function(d, c) { - this.initData(d, c); - } -}); - - - - -Ext.grid.GridView.SplitDragZone = Ext.extend(Ext.dd.DDProxy, { - - constructor: function(grid, hd){ - this.grid = grid; - this.view = grid.getView(); - this.marker = this.view.resizeMarker; - this.proxy = this.view.resizeProxy; - Ext.grid.GridView.SplitDragZone.superclass.constructor.call(this, hd, - 'gridSplitters' + this.grid.getGridEl().id, { - dragElId : Ext.id(this.proxy.dom), resizeFrame:false - }); - this.scroll = false; - this.hw = this.view.splitHandleWidth || 5; - }, - - b4StartDrag : function(x, y){ - this.dragHeadersDisabled = this.view.headersDisabled; - this.view.headersDisabled = true; - var h = this.view.mainWrap.getHeight(); - this.marker.setHeight(h); - this.marker.show(); - this.marker.alignTo(this.view.getHeaderCell(this.cellIndex), 'tl-tl', [-2, 0]); - this.proxy.setHeight(h); - var w = this.cm.getColumnWidth(this.cellIndex), - minw = Math.max(w-this.grid.minColumnWidth, 0); - this.resetConstraints(); - this.setXConstraint(minw, 1000); - this.setYConstraint(0, 0); - this.minX = x - minw; - this.maxX = x + 1000; - this.startPos = x; - Ext.dd.DDProxy.prototype.b4StartDrag.call(this, x, y); - }, - - allowHeaderDrag : function(e){ - return true; - }, - - handleMouseDown : function(e){ - var t = this.view.findHeaderCell(e.getTarget()); - if(t && this.allowHeaderDrag(e)){ - var xy = this.view.fly(t).getXY(), - x = xy[0], - exy = e.getXY(), - ex = exy[0], - w = t.offsetWidth, - adjust = false; - - if((ex - x) <= this.hw){ - adjust = -1; - }else if((x+w) - ex <= this.hw){ - adjust = 0; - } - if(adjust !== false){ - this.cm = this.grid.colModel; - var ci = this.view.getCellIndex(t); - if(adjust == -1){ - if (ci + adjust < 0) { - return; - } - while(this.cm.isHidden(ci+adjust)){ - --adjust; - if(ci+adjust < 0){ - return; - } - } - } - this.cellIndex = ci+adjust; - this.split = t.dom; - if(this.cm.isResizable(this.cellIndex) && !this.cm.isFixed(this.cellIndex)){ - Ext.grid.GridView.SplitDragZone.superclass.handleMouseDown.apply(this, arguments); - } - }else if(this.view.columnDrag){ - this.view.columnDrag.callHandleMouseDown(e); - } - } - }, - - endDrag : function(e){ - this.marker.hide(); - var v = this.view, - endX = Math.max(this.minX, e.getPageX()), - diff = endX - this.startPos, - disabled = this.dragHeadersDisabled; - - v.onColumnSplitterMoved(this.cellIndex, this.cm.getColumnWidth(this.cellIndex)+diff); - setTimeout(function(){ - v.headersDisabled = disabled; - }, 50); - }, - - autoOffset : function(){ - this.setDelta(0,0); - } -}); - -Ext.grid.PivotGridView = Ext.extend(Ext.grid.GridView, { - - - colHeaderCellCls: 'grid-hd-group-cell', - - - title: '', - - - - - getColumnHeaders: function() { - return this.grid.topAxis.buildHeaders();; - }, - - - getRowHeaders: function() { - return this.grid.leftAxis.buildHeaders(); - }, - - - renderRows : function(startRow, endRow) { - var grid = this.grid, - rows = grid.extractData(), - rowCount = rows.length, - templates = this.templates, - renderer = grid.renderer, - hasRenderer = typeof renderer == 'function', - getCellCls = this.getCellCls, - hasGetCellCls = typeof getCellCls == 'function', - cellTemplate = templates.cell, - rowTemplate = templates.row, - rowBuffer = [], - meta = {}, - tstyle = 'width:' + this.getGridInnerWidth() + 'px;', - colBuffer, colCount, column, i, row; - - startRow = startRow || 0; - endRow = Ext.isDefined(endRow) ? endRow : rowCount - 1; - - for (i = 0; i < rowCount; i++) { - row = rows[i]; - colCount = row.length; - colBuffer = []; - - - for (var j = 0; j < colCount; j++) { - - meta.id = i + '-' + j; - meta.css = j === 0 ? 'x-grid3-cell-first ' : (j == (colCount - 1) ? 'x-grid3-cell-last ' : ''); - meta.attr = meta.cellAttr = ''; - meta.value = row[j]; - - if (Ext.isEmpty(meta.value)) { - meta.value = ' '; - } - - if (hasRenderer) { - meta.value = renderer(meta.value); - } - - if (hasGetCellCls) { - meta.css += getCellCls(meta.value) + ' '; - } - - colBuffer[colBuffer.length] = cellTemplate.apply(meta); - } - - rowBuffer[rowBuffer.length] = rowTemplate.apply({ - tstyle: tstyle, - cols : colCount, - cells : colBuffer.join(""), - alt : '' - }); - } - - return rowBuffer.join(""); - }, - - - masterTpl: new Ext.Template( - '
      ', - '
      ', - '
      ', - '
      {title}
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      ', - '
      {body}
      ', - '', - '
      ', - '
      ', - '
       
      ', - '
       
      ', - '
      ' - ), - - - initTemplates: function() { - Ext.grid.PivotGridView.superclass.initTemplates.apply(this, arguments); - - var templates = this.templates || {}; - if (!templates.gcell) { - templates.gcell = new Ext.XTemplate( - '', - '
      ', - this.grid.enableHdMenu ? '' : '', '{value}', - '
      ', - '' - ); - } - - this.templates = templates; - this.hrowRe = new RegExp("ux-grid-hd-group-row-(\\d+)", ""); - }, - - - initElements: function() { - Ext.grid.PivotGridView.superclass.initElements.apply(this, arguments); - - - this.rowHeadersEl = new Ext.Element(this.scroller.child('div.x-grid3-row-headers')); - - - this.headerTitleEl = new Ext.Element(this.mainHd.child('div.x-grid3-header-title')); - }, - - - getGridInnerWidth: function() { - var previousWidth = Ext.grid.PivotGridView.superclass.getGridInnerWidth.apply(this, arguments); - - return previousWidth - this.getTotalRowHeaderWidth(); - }, - - - getTotalRowHeaderWidth: function() { - var headers = this.getRowHeaders(), - length = headers.length, - total = 0, - i; - - for (i = 0; i< length; i++) { - total += headers[i].width; - } - - return total; - }, - - - getTotalColumnHeaderHeight: function() { - return this.getColumnHeaders().length * 21; - }, - - - getCellIndex : function(el) { - if (el) { - var match = el.className.match(this.colRe), - data; - - if (match && (data = match[1])) { - return parseInt(data.split('-')[1], 10); - } - } - return false; - }, - - - - renderUI : function() { - var templates = this.templates, - innerWidth = this.getGridInnerWidth(); - - return templates.master.apply({ - body : templates.body.apply({rows:' '}), - ostyle: 'width:' + innerWidth + 'px', - bstyle: 'width:' + innerWidth + 'px' - }); - }, - - - onLayout: function(width, height) { - Ext.grid.PivotGridView.superclass.onLayout.apply(this, arguments); - - var width = this.getGridInnerWidth(); - - this.resizeColumnHeaders(width); - this.resizeAllRows(width); - }, - - - refresh : function(headersToo) { - this.fireEvent('beforerefresh', this); - this.grid.stopEditing(true); - - var result = this.renderBody(); - this.mainBody.update(result).setWidth(this.getGridInnerWidth()); - if (headersToo === true) { - this.updateHeaders(); - this.updateHeaderSortState(); - } - this.processRows(0, true); - this.layout(); - this.applyEmptyText(); - this.fireEvent('refresh', this); - }, - - - renderHeaders: Ext.emptyFn, - - - fitColumns: Ext.emptyFn, - - - resizeColumnHeaders: function(width) { - var topAxis = this.grid.topAxis; - - if (topAxis.rendered) { - topAxis.el.setWidth(width); - } - }, - - - resizeRowHeaders: function() { - var rowHeaderWidth = this.getTotalRowHeaderWidth(), - marginStyle = String.format("margin-left: {0}px;", rowHeaderWidth); - - this.rowHeadersEl.setWidth(rowHeaderWidth); - this.mainBody.applyStyles(marginStyle); - Ext.fly(this.innerHd).applyStyles(marginStyle); - - this.headerTitleEl.setWidth(rowHeaderWidth); - this.headerTitleEl.setHeight(this.getTotalColumnHeaderHeight()); - }, - - - resizeAllRows: function(width) { - var rows = this.getRows(), - length = rows.length, - i; - - for (i = 0; i < length; i++) { - Ext.fly(rows[i]).setWidth(width); - Ext.fly(rows[i]).child('table').setWidth(width); - } - }, - - - updateHeaders: function() { - this.renderGroupRowHeaders(); - this.renderGroupColumnHeaders(); - }, - - - renderGroupRowHeaders: function() { - var leftAxis = this.grid.leftAxis; - - this.resizeRowHeaders(); - leftAxis.rendered = false; - leftAxis.render(this.rowHeadersEl); - - this.setTitle(this.title); - }, - - - setTitle: function(title) { - this.headerTitleEl.child('span').dom.innerHTML = title; - }, - - - renderGroupColumnHeaders: function() { - var topAxis = this.grid.topAxis; - - topAxis.rendered = false; - topAxis.render(this.innerHd.firstChild); - }, - - - isMenuDisabled: function(cellIndex, el) { - return true; - } -}); -Ext.grid.PivotAxis = Ext.extend(Ext.Component, { - - orientation: 'horizontal', - - - defaultHeaderWidth: 80, - - - paddingWidth: 7, - - - setDimensions: function(dimensions) { - this.dimensions = dimensions; - }, - - - onRender: function(ct, position) { - var rows = this.orientation == 'horizontal' - ? this.renderHorizontalRows() - : this.renderVerticalRows(); - - this.el = Ext.DomHelper.overwrite(ct.dom, {tag: 'table', cn: rows}, true); - }, - - - renderHorizontalRows: function() { - var headers = this.buildHeaders(), - rowCount = headers.length, - rows = [], - cells, cols, colCount, i, j; - - for (i = 0; i < rowCount; i++) { - cells = []; - cols = headers[i].items; - colCount = cols.length; - - for (j = 0; j < colCount; j++) { - cells.push({ - tag: 'td', - html: cols[j].header, - colspan: cols[j].span - }); - } - - rows[i] = { - tag: 'tr', - cn: cells - }; - } - - return rows; - }, - - - renderVerticalRows: function() { - var headers = this.buildHeaders(), - colCount = headers.length, - rowCells = [], - rows = [], - rowCount, col, row, colWidth, i, j; - - for (i = 0; i < colCount; i++) { - col = headers[i]; - colWidth = col.width || 80; - rowCount = col.items.length; - - for (j = 0; j < rowCount; j++) { - row = col.items[j]; - - rowCells[row.start] = rowCells[row.start] || []; - rowCells[row.start].push({ - tag : 'td', - html : row.header, - rowspan: row.span, - width : Ext.isBorderBox ? colWidth : colWidth - this.paddingWidth - }); - } - } - - rowCount = rowCells.length; - for (i = 0; i < rowCount; i++) { - rows[i] = { - tag: 'tr', - cn : rowCells[i] - }; - } - - return rows; - }, - - - getTuples: function() { - var newStore = new Ext.data.Store({}); - - newStore.data = this.store.data.clone(); - newStore.fields = this.store.fields; - - var sorters = [], - dimensions = this.dimensions, - length = dimensions.length, - i; - - for (i = 0; i < length; i++) { - sorters.push({ - field : dimensions[i].dataIndex, - direction: dimensions[i].direction || 'ASC' - }); - } - - newStore.sort(sorters); - - var records = newStore.data.items, - hashes = [], - tuples = [], - recData, hash, info, data, key; - - length = records.length; - - for (i = 0; i < length; i++) { - info = this.getRecordInfo(records[i]); - data = info.data; - hash = ""; - - for (key in data) { - hash += data[key] + '---'; - } - - if (hashes.indexOf(hash) == -1) { - hashes.push(hash); - tuples.push(info); - } - } - - newStore.destroy(); - - return tuples; - }, - - - getRecordInfo: function(record) { - var dimensions = this.dimensions, - length = dimensions.length, - data = {}, - dimension, dataIndex, i; - - - for (i = 0; i < length; i++) { - dimension = dimensions[i]; - dataIndex = dimension.dataIndex; - - data[dataIndex] = record.get(dataIndex); - } - - - - var createMatcherFunction = function(data) { - return function(record) { - for (var dataIndex in data) { - if (record.get(dataIndex) != data[dataIndex]) { - return false; - } - } - - return true; - }; - }; - - return { - data: data, - matcher: createMatcherFunction(data) - }; - }, - - - buildHeaders: function() { - var tuples = this.getTuples(), - rowCount = tuples.length, - dimensions = this.dimensions, - dimension, - colCount = dimensions.length, - headers = [], - tuple, rows, currentHeader, previousHeader, span, start, isLast, changed, i, j; - - for (i = 0; i < colCount; i++) { - dimension = dimensions[i]; - rows = []; - span = 0; - start = 0; - - for (j = 0; j < rowCount; j++) { - tuple = tuples[j]; - isLast = j == (rowCount - 1); - currentHeader = tuple.data[dimension.dataIndex]; - - - changed = previousHeader != undefined && previousHeader != currentHeader; - if (i > 0 && j > 0) { - changed = changed || tuple.data[dimensions[i-1].dataIndex] != tuples[j-1].data[dimensions[i-1].dataIndex]; - } - - if (changed) { - rows.push({ - header: previousHeader, - span : span, - start : start - }); - - start += span; - span = 0; - } - - if (isLast) { - rows.push({ - header: currentHeader, - span : span + 1, - start : start - }); - - start += span; - span = 0; - } - - previousHeader = currentHeader; - span++; - } - - headers.push({ - items: rows, - width: dimension.width || this.defaultHeaderWidth - }); - - previousHeader = undefined; - } - - return headers; - } -}); - - -Ext.grid.HeaderDragZone = Ext.extend(Ext.dd.DragZone, { - maxDragWidth: 120, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - this.ddGroup = "gridHeader" + this.grid.getGridEl().id; - Ext.grid.HeaderDragZone.superclass.constructor.call(this, hd); - if(hd2){ - this.setHandleElId(Ext.id(hd)); - this.setOuterHandleElId(Ext.id(hd2)); - } - this.scroll = false; - }, - - getDragData : function(e){ - var t = Ext.lib.Event.getTarget(e), - h = this.view.findHeaderCell(t); - if(h){ - return {ddel: h.firstChild, header:h}; - } - return false; - }, - - onInitDrag : function(e){ - - this.dragHeadersDisabled = this.view.headersDisabled; - this.view.headersDisabled = true; - var clone = this.dragData.ddel.cloneNode(true); - clone.id = Ext.id(); - clone.style.width = Math.min(this.dragData.header.offsetWidth,this.maxDragWidth) + "px"; - this.proxy.update(clone); - return true; - }, - - afterValidDrop : function(){ - this.completeDrop(); - }, - - afterInvalidDrop : function(){ - this.completeDrop(); - }, - - completeDrop: function(){ - var v = this.view, - disabled = this.dragHeadersDisabled; - setTimeout(function(){ - v.headersDisabled = disabled; - }, 50); - } -}); - - - -Ext.grid.HeaderDropZone = Ext.extend(Ext.dd.DropZone, { - proxyOffsets : [-4, -9], - fly: Ext.Element.fly, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - - this.proxyTop = Ext.DomHelper.append(document.body, { - cls:"col-move-top", html:" " - }, true); - this.proxyBottom = Ext.DomHelper.append(document.body, { - cls:"col-move-bottom", html:" " - }, true); - this.proxyTop.hide = this.proxyBottom.hide = function(){ - this.setLeftTop(-100,-100); - this.setStyle("visibility", "hidden"); - }; - this.ddGroup = "gridHeader" + this.grid.getGridEl().id; - - - Ext.grid.HeaderDropZone.superclass.constructor.call(this, grid.getGridEl().dom); - }, - - getTargetFromEvent : function(e){ - var t = Ext.lib.Event.getTarget(e), - cindex = this.view.findCellIndex(t); - if(cindex !== false){ - return this.view.getHeaderCell(cindex); - } - }, - - nextVisible : function(h){ - var v = this.view, cm = this.grid.colModel; - h = h.nextSibling; - while(h){ - if(!cm.isHidden(v.getCellIndex(h))){ - return h; - } - h = h.nextSibling; - } - return null; - }, - - prevVisible : function(h){ - var v = this.view, cm = this.grid.colModel; - h = h.prevSibling; - while(h){ - if(!cm.isHidden(v.getCellIndex(h))){ - return h; - } - h = h.prevSibling; - } - return null; - }, - - positionIndicator : function(h, n, e){ - var x = Ext.lib.Event.getPageX(e), - r = Ext.lib.Dom.getRegion(n.firstChild), - px, - pt, - py = r.top + this.proxyOffsets[1]; - if((r.right - x) <= (r.right-r.left)/2){ - px = r.right+this.view.borderWidth; - pt = "after"; - }else{ - px = r.left; - pt = "before"; - } - - if(this.grid.colModel.isFixed(this.view.getCellIndex(n))){ - return false; - } - - px += this.proxyOffsets[0]; - this.proxyTop.setLeftTop(px, py); - this.proxyTop.show(); - if(!this.bottomOffset){ - this.bottomOffset = this.view.mainHd.getHeight(); - } - this.proxyBottom.setLeftTop(px, py+this.proxyTop.dom.offsetHeight+this.bottomOffset); - this.proxyBottom.show(); - return pt; - }, - - onNodeEnter : function(n, dd, e, data){ - if(data.header != n){ - this.positionIndicator(data.header, n, e); - } - }, - - onNodeOver : function(n, dd, e, data){ - var result = false; - if(data.header != n){ - result = this.positionIndicator(data.header, n, e); - } - if(!result){ - this.proxyTop.hide(); - this.proxyBottom.hide(); - } - return result ? this.dropAllowed : this.dropNotAllowed; - }, - - onNodeOut : function(n, dd, e, data){ - this.proxyTop.hide(); - this.proxyBottom.hide(); - }, - - onNodeDrop : function(n, dd, e, data){ - var h = data.header; - if(h != n){ - var cm = this.grid.colModel, - x = Ext.lib.Event.getPageX(e), - r = Ext.lib.Dom.getRegion(n.firstChild), - pt = (r.right - x) <= ((r.right-r.left)/2) ? "after" : "before", - oldIndex = this.view.getCellIndex(h), - newIndex = this.view.getCellIndex(n); - if(pt == "after"){ - newIndex++; - } - if(oldIndex < newIndex){ - newIndex--; - } - cm.moveColumn(oldIndex, newIndex); - return true; - } - return false; - } -}); - -Ext.grid.GridView.ColumnDragZone = Ext.extend(Ext.grid.HeaderDragZone, { - - constructor : function(grid, hd){ - Ext.grid.GridView.ColumnDragZone.superclass.constructor.call(this, grid, hd, null); - this.proxy.el.addClass('x-grid3-col-dd'); - }, - - handleMouseDown : function(e){ - }, - - callHandleMouseDown : function(e){ - Ext.grid.GridView.ColumnDragZone.superclass.handleMouseDown.call(this, e); - } -}); - -Ext.grid.SplitDragZone = Ext.extend(Ext.dd.DDProxy, { - fly: Ext.Element.fly, - - constructor : function(grid, hd, hd2){ - this.grid = grid; - this.view = grid.getView(); - this.proxy = this.view.resizeProxy; - Ext.grid.SplitDragZone.superclass.constructor.call(this, hd, - "gridSplitters" + this.grid.getGridEl().id, { - dragElId : Ext.id(this.proxy.dom), resizeFrame:false - }); - this.setHandleElId(Ext.id(hd)); - this.setOuterHandleElId(Ext.id(hd2)); - this.scroll = false; - }, - - b4StartDrag : function(x, y){ - this.view.headersDisabled = true; - this.proxy.setHeight(this.view.mainWrap.getHeight()); - var w = this.cm.getColumnWidth(this.cellIndex); - var minw = Math.max(w-this.grid.minColumnWidth, 0); - this.resetConstraints(); - this.setXConstraint(minw, 1000); - this.setYConstraint(0, 0); - this.minX = x - minw; - this.maxX = x + 1000; - this.startPos = x; - Ext.dd.DDProxy.prototype.b4StartDrag.call(this, x, y); - }, - - - handleMouseDown : function(e){ - var ev = Ext.EventObject.setEvent(e); - var t = this.fly(ev.getTarget()); - if(t.hasClass("x-grid-split")){ - this.cellIndex = this.view.getCellIndex(t.dom); - this.split = t.dom; - this.cm = this.grid.colModel; - if(this.cm.isResizable(this.cellIndex) && !this.cm.isFixed(this.cellIndex)){ - Ext.grid.SplitDragZone.superclass.handleMouseDown.apply(this, arguments); - } - } - }, - - endDrag : function(e){ - this.view.headersDisabled = false; - var endX = Math.max(this.minX, Ext.lib.Event.getPageX(e)); - var diff = endX - this.startPos; - this.view.onColumnSplitterMoved(this.cellIndex, this.cm.getColumnWidth(this.cellIndex)+diff); - }, - - autoOffset : function(){ - this.setDelta(0,0); - } -}); -Ext.grid.GridDragZone = function(grid, config){ - this.view = grid.getView(); - Ext.grid.GridDragZone.superclass.constructor.call(this, this.view.mainBody.dom, config); - this.scroll = false; - this.grid = grid; - this.ddel = document.createElement('div'); - this.ddel.className = 'x-grid-dd-wrap'; -}; - -Ext.extend(Ext.grid.GridDragZone, Ext.dd.DragZone, { - ddGroup : "GridDD", - - - getDragData : function(e){ - var t = Ext.lib.Event.getTarget(e); - var rowIndex = this.view.findRowIndex(t); - if(rowIndex !== false){ - var sm = this.grid.selModel; - if(!sm.isSelected(rowIndex) || e.hasModifier()){ - sm.handleMouseDown(this.grid, rowIndex, e); - } - return {grid: this.grid, ddel: this.ddel, rowIndex: rowIndex, selections:sm.getSelections()}; - } - return false; - }, - - - onInitDrag : function(e){ - var data = this.dragData; - this.ddel.innerHTML = this.grid.getDragDropText(); - this.proxy.update(this.ddel); - - }, - - - afterRepair : function(){ - this.dragging = false; - }, - - - getRepairXY : function(e, data){ - return false; - }, - - onEndDrag : function(data, e){ - - }, - - onValidDrop : function(dd, e, id){ - - this.hideProxy(); - }, - - beforeInvalidDrop : function(e, id){ - - } -}); - -Ext.grid.ColumnModel = Ext.extend(Ext.util.Observable, { - - defaultWidth: 100, - - - defaultSortable: false, - - - - - - constructor : function(config) { - - if (config.columns) { - Ext.apply(this, config); - this.setConfig(config.columns, true); - } else { - this.setConfig(config, true); - } - - this.addEvents( - - "widthchange", - - - "headerchange", - - - "hiddenchange", - - - "columnmoved", - - - "configchange" - ); - - Ext.grid.ColumnModel.superclass.constructor.call(this); - }, - - - getColumnId : function(index) { - return this.config[index].id; - }, - - getColumnAt : function(index) { - return this.config[index]; - }, - - - setConfig : function(config, initial) { - var i, c, len; - - if (!initial) { - delete this.totalWidth; - - for (i = 0, len = this.config.length; i < len; i++) { - c = this.config[i]; - - if (c.setEditor) { - - c.setEditor(null); - } - } - } - - - this.defaults = Ext.apply({ - width: this.defaultWidth, - sortable: this.defaultSortable - }, this.defaults); - - this.config = config; - this.lookup = {}; - - for (i = 0, len = config.length; i < len; i++) { - c = Ext.applyIf(config[i], this.defaults); - - - if (Ext.isEmpty(c.id)) { - c.id = i; - } - - if (!c.isColumn) { - var Cls = Ext.grid.Column.types[c.xtype || 'gridcolumn']; - c = new Cls(c); - config[i] = c; - } - - this.lookup[c.id] = c; - } - - if (!initial) { - this.fireEvent('configchange', this); - } - }, - - - getColumnById : function(id) { - return this.lookup[id]; - }, - - - getIndexById : function(id) { - for (var i = 0, len = this.config.length; i < len; i++) { - if (this.config[i].id == id) { - return i; - } - } - return -1; - }, - - - moveColumn : function(oldIndex, newIndex) { - var config = this.config, - c = config[oldIndex]; - - config.splice(oldIndex, 1); - config.splice(newIndex, 0, c); - this.dataMap = null; - this.fireEvent("columnmoved", this, oldIndex, newIndex); - }, - - - getColumnCount : function(visibleOnly) { - var length = this.config.length, - c = 0, - i; - - if (visibleOnly === true) { - for (i = 0; i < length; i++) { - if (!this.isHidden(i)) { - c++; - } - } - - return c; - } - - return length; - }, - - - getColumnsBy : function(fn, scope) { - var config = this.config, - length = config.length, - result = [], - i, c; - - for (i = 0; i < length; i++){ - c = config[i]; - - if (fn.call(scope || this, c, i) === true) { - result[result.length] = c; - } - } - - return result; - }, - - - isSortable : function(col) { - return !!this.config[col].sortable; - }, - - - isMenuDisabled : function(col) { - return !!this.config[col].menuDisabled; - }, - - - getRenderer : function(col) { - return this.config[col].renderer || Ext.grid.ColumnModel.defaultRenderer; - }, - - getRendererScope : function(col) { - return this.config[col].scope; - }, - - - setRenderer : function(col, fn) { - this.config[col].renderer = fn; - }, - - - getColumnWidth : function(col) { - var width = this.config[col].width; - if(typeof width != 'number'){ - width = this.defaultWidth; - } - return width; - }, - - - setColumnWidth : function(col, width, suppressEvent) { - this.config[col].width = width; - this.totalWidth = null; - - if (!suppressEvent) { - this.fireEvent("widthchange", this, col, width); - } - }, - - - getTotalWidth : function(includeHidden) { - if (!this.totalWidth) { - this.totalWidth = 0; - for (var i = 0, len = this.config.length; i < len; i++) { - if (includeHidden || !this.isHidden(i)) { - this.totalWidth += this.getColumnWidth(i); - } - } - } - return this.totalWidth; - }, - - - getColumnHeader : function(col) { - return this.config[col].header; - }, - - - setColumnHeader : function(col, header) { - this.config[col].header = header; - this.fireEvent("headerchange", this, col, header); - }, - - - getColumnTooltip : function(col) { - return this.config[col].tooltip; - }, - - setColumnTooltip : function(col, tooltip) { - this.config[col].tooltip = tooltip; - }, - - - getDataIndex : function(col) { - return this.config[col].dataIndex; - }, - - - setDataIndex : function(col, dataIndex) { - this.config[col].dataIndex = dataIndex; - }, - - - findColumnIndex : function(dataIndex) { - var c = this.config; - for(var i = 0, len = c.length; i < len; i++){ - if(c[i].dataIndex == dataIndex){ - return i; - } - } - return -1; - }, - - - isCellEditable : function(colIndex, rowIndex) { - var c = this.config[colIndex], - ed = c.editable; - - - return !!(ed || (!Ext.isDefined(ed) && c.editor)); - }, - - - getCellEditor : function(colIndex, rowIndex) { - return this.config[colIndex].getCellEditor(rowIndex); - }, - - - setEditable : function(col, editable) { - this.config[col].editable = editable; - }, - - - isHidden : function(colIndex) { - return !!this.config[colIndex].hidden; - }, - - - isFixed : function(colIndex) { - return !!this.config[colIndex].fixed; - }, - - - isResizable : function(colIndex) { - return colIndex >= 0 && this.config[colIndex].resizable !== false && this.config[colIndex].fixed !== true; - }, - - - setHidden : function(colIndex, hidden) { - var c = this.config[colIndex]; - if(c.hidden !== hidden){ - c.hidden = hidden; - this.totalWidth = null; - this.fireEvent("hiddenchange", this, colIndex, hidden); - } - }, - - - setEditor : function(col, editor) { - this.config[col].setEditor(editor); - }, - - - destroy : function() { - var length = this.config.length, - i = 0; - - for (; i < length; i++){ - this.config[i].destroy(); - } - delete this.config; - delete this.lookup; - this.purgeListeners(); - }, - - - setState : function(col, state) { - state = Ext.applyIf(state, this.defaults); - Ext.apply(this.config[col], state); - } -}); - - -Ext.grid.ColumnModel.defaultRenderer = function(value) { - if (typeof value == "string" && value.length < 1) { - return " "; - } - return value; -}; -Ext.grid.AbstractSelectionModel = Ext.extend(Ext.util.Observable, { - - - constructor : function(){ - this.locked = false; - Ext.grid.AbstractSelectionModel.superclass.constructor.call(this); - }, - - - init : function(grid){ - this.grid = grid; - if(this.lockOnInit){ - delete this.lockOnInit; - this.locked = false; - this.lock(); - } - this.initEvents(); - }, - - - lock : function(){ - if(!this.locked){ - this.locked = true; - - var g = this.grid; - if(g){ - g.getView().on({ - scope: this, - beforerefresh: this.sortUnLock, - refresh: this.sortLock - }); - }else{ - this.lockOnInit = true; - } - } - }, - - - sortLock : function() { - this.locked = true; - }, - - - sortUnLock : function() { - this.locked = false; - }, - - - unlock : function(){ - if(this.locked){ - this.locked = false; - var g = this.grid, - gv; - - - if(g){ - gv = g.getView(); - gv.un('beforerefresh', this.sortUnLock, this); - gv.un('refresh', this.sortLock, this); - }else{ - delete this.lockOnInit; - } - } - }, - - - isLocked : function(){ - return this.locked; - }, - - destroy: function(){ - this.unlock(); - this.purgeListeners(); - } -}); -Ext.grid.RowSelectionModel = Ext.extend(Ext.grid.AbstractSelectionModel, { - - singleSelect : false, - - constructor : function(config){ - Ext.apply(this, config); - this.selections = new Ext.util.MixedCollection(false, function(o){ - return o.id; - }); - - this.last = false; - this.lastActive = false; - - this.addEvents( - - 'selectionchange', - - 'beforerowselect', - - 'rowselect', - - 'rowdeselect' - ); - Ext.grid.RowSelectionModel.superclass.constructor.call(this); - }, - - - - initEvents : function(){ - - if(!this.grid.enableDragDrop && !this.grid.enableDrag){ - this.grid.on('rowmousedown', this.handleMouseDown, this); - } - - this.rowNav = new Ext.KeyNav(this.grid.getGridEl(), { - up: this.onKeyPress, - down: this.onKeyPress, - scope: this - }); - - this.grid.getView().on({ - scope: this, - refresh: this.onRefresh, - rowupdated: this.onRowUpdated, - rowremoved: this.onRemove - }); - }, - - onKeyPress : function(e, name){ - var up = name == 'up', - method = up ? 'selectPrevious' : 'selectNext', - add = up ? -1 : 1, - last; - if(!e.shiftKey || this.singleSelect){ - this[method](false); - }else if(this.last !== false && this.lastActive !== false){ - last = this.last; - this.selectRange(this.last, this.lastActive + add); - this.grid.getView().focusRow(this.lastActive); - if(last !== false){ - this.last = last; - } - }else{ - this.selectFirstRow(); - } - }, - - - onRefresh : function(){ - var ds = this.grid.store, - s = this.getSelections(), - i = 0, - len = s.length, - index, r; - - this.silent = true; - this.clearSelections(true); - for(; i < len; i++){ - r = s[i]; - if((index = ds.indexOfId(r.id)) != -1){ - this.selectRow(index, true); - } - } - if(s.length != this.selections.getCount()){ - this.fireEvent('selectionchange', this); - } - this.silent = false; - }, - - - onRemove : function(v, index, r){ - if(this.selections.remove(r) !== false){ - this.fireEvent('selectionchange', this); - } - }, - - - onRowUpdated : function(v, index, r){ - if(this.isSelected(r)){ - v.onRowSelect(index); - } - }, - - - selectRecords : function(records, keepExisting){ - if(!keepExisting){ - this.clearSelections(); - } - var ds = this.grid.store, - i = 0, - len = records.length; - for(; i < len; i++){ - this.selectRow(ds.indexOf(records[i]), true); - } - }, - - - getCount : function(){ - return this.selections.length; - }, - - - selectFirstRow : function(){ - this.selectRow(0); - }, - - - selectLastRow : function(keepExisting){ - this.selectRow(this.grid.store.getCount() - 1, keepExisting); - }, - - - selectNext : function(keepExisting){ - if(this.hasNext()){ - this.selectRow(this.last+1, keepExisting); - this.grid.getView().focusRow(this.last); - return true; - } - return false; - }, - - - selectPrevious : function(keepExisting){ - if(this.hasPrevious()){ - this.selectRow(this.last-1, keepExisting); - this.grid.getView().focusRow(this.last); - return true; - } - return false; - }, - - - hasNext : function(){ - return this.last !== false && (this.last+1) < this.grid.store.getCount(); - }, - - - hasPrevious : function(){ - return !!this.last; - }, - - - - getSelections : function(){ - return [].concat(this.selections.items); - }, - - - getSelected : function(){ - return this.selections.itemAt(0); - }, - - - each : function(fn, scope){ - var s = this.getSelections(), - i = 0, - len = s.length; - - for(; i < len; i++){ - if(fn.call(scope || this, s[i], i) === false){ - return false; - } - } - return true; - }, - - - clearSelections : function(fast){ - if(this.isLocked()){ - return; - } - if(fast !== true){ - var ds = this.grid.store, - s = this.selections; - s.each(function(r){ - this.deselectRow(ds.indexOfId(r.id)); - }, this); - s.clear(); - }else{ - this.selections.clear(); - } - this.last = false; - }, - - - - selectAll : function(){ - if(this.isLocked()){ - return; - } - this.selections.clear(); - for(var i = 0, len = this.grid.store.getCount(); i < len; i++){ - this.selectRow(i, true); - } - }, - - - hasSelection : function(){ - return this.selections.length > 0; - }, - - - isSelected : function(index){ - var r = Ext.isNumber(index) ? this.grid.store.getAt(index) : index; - return (r && this.selections.key(r.id) ? true : false); - }, - - - isIdSelected : function(id){ - return (this.selections.key(id) ? true : false); - }, - - - handleMouseDown : function(g, rowIndex, e){ - if(e.button !== 0 || this.isLocked()){ - return; - } - var view = this.grid.getView(); - if(e.shiftKey && !this.singleSelect && this.last !== false){ - var last = this.last; - this.selectRange(last, rowIndex, e.ctrlKey); - this.last = last; - view.focusRow(rowIndex); - }else{ - var isSelected = this.isSelected(rowIndex); - if(e.ctrlKey && isSelected){ - this.deselectRow(rowIndex); - }else if(!isSelected || this.getCount() > 1){ - this.selectRow(rowIndex, e.ctrlKey || e.shiftKey); - view.focusRow(rowIndex); - } - } - }, - - - selectRows : function(rows, keepExisting){ - if(!keepExisting){ - this.clearSelections(); - } - for(var i = 0, len = rows.length; i < len; i++){ - this.selectRow(rows[i], true); - } - }, - - - selectRange : function(startRow, endRow, keepExisting){ - var i; - if(this.isLocked()){ - return; - } - if(!keepExisting){ - this.clearSelections(); - } - if(startRow <= endRow){ - for(i = startRow; i <= endRow; i++){ - this.selectRow(i, true); - } - }else{ - for(i = startRow; i >= endRow; i--){ - this.selectRow(i, true); - } - } - }, - - - deselectRange : function(startRow, endRow, preventViewNotify){ - if(this.isLocked()){ - return; - } - for(var i = startRow; i <= endRow; i++){ - this.deselectRow(i, preventViewNotify); - } - }, - - - selectRow : function(index, keepExisting, preventViewNotify){ - if(this.isLocked() || (index < 0 || index >= this.grid.store.getCount()) || (keepExisting && this.isSelected(index))){ - return; - } - var r = this.grid.store.getAt(index); - if(r && this.fireEvent('beforerowselect', this, index, keepExisting, r) !== false){ - if(!keepExisting || this.singleSelect){ - this.clearSelections(); - } - this.selections.add(r); - this.last = this.lastActive = index; - if(!preventViewNotify){ - this.grid.getView().onRowSelect(index); - } - if(!this.silent){ - this.fireEvent('rowselect', this, index, r); - this.fireEvent('selectionchange', this); - } - } - }, - - - deselectRow : function(index, preventViewNotify){ - if(this.isLocked()){ - return; - } - if(this.last == index){ - this.last = false; - } - if(this.lastActive == index){ - this.lastActive = false; - } - var r = this.grid.store.getAt(index); - if(r){ - this.selections.remove(r); - if(!preventViewNotify){ - this.grid.getView().onRowDeselect(index); - } - this.fireEvent('rowdeselect', this, index, r); - this.fireEvent('selectionchange', this); - } - }, - - - acceptsNav : function(row, col, cm){ - return !cm.isHidden(col) && cm.isCellEditable(col, row); - }, - - - onEditorKey : function(field, e){ - var k = e.getKey(), - newCell, - g = this.grid, - last = g.lastEdit, - ed = g.activeEditor, - shift = e.shiftKey, - ae, last, r, c; - - if(k == e.TAB){ - e.stopEvent(); - ed.completeEdit(); - if(shift){ - newCell = g.walkCells(ed.row, ed.col-1, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(ed.row, ed.col+1, 1, this.acceptsNav, this); - } - }else if(k == e.ENTER){ - if(this.moveEditorOnEnter !== false){ - if(shift){ - newCell = g.walkCells(last.row - 1, last.col, -1, this.acceptsNav, this); - }else{ - newCell = g.walkCells(last.row + 1, last.col, 1, this.acceptsNav, this); - } - } - } - if(newCell){ - r = newCell[0]; - c = newCell[1]; - - this.onEditorSelect(r, last.row); - - if(g.isEditor && g.editing){ - ae = g.activeEditor; - if(ae && ae.field.triggerBlur){ - - ae.field.triggerBlur(); - } - } - g.startEditing(r, c); - } - }, - - onEditorSelect: function(row, lastRow){ - if(lastRow != row){ - this.selectRow(row); - } - }, - - destroy : function(){ - Ext.destroy(this.rowNav); - this.rowNav = null; - Ext.grid.RowSelectionModel.superclass.destroy.call(this); - } -}); - -Ext.grid.Column = Ext.extend(Ext.util.Observable, { - - - - - - - - - - - - - - - - - - - - - - - - - isColumn : true, - - constructor : function(config){ - Ext.apply(this, config); - - if(Ext.isString(this.renderer)){ - this.renderer = Ext.util.Format[this.renderer]; - }else if(Ext.isObject(this.renderer)){ - this.scope = this.renderer.scope; - this.renderer = this.renderer.fn; - } - if(!this.scope){ - this.scope = this; - } - - var ed = this.editor; - delete this.editor; - this.setEditor(ed); - this.addEvents( - - 'click', - - 'contextmenu', - - 'dblclick', - - 'mousedown' - ); - Ext.grid.Column.superclass.constructor.call(this); - }, - - - processEvent : function(name, e, grid, rowIndex, colIndex){ - return this.fireEvent(name, this, grid, rowIndex, e); - }, - - - destroy: function() { - if(this.setEditor){ - this.setEditor(null); - } - this.purgeListeners(); - }, - - - renderer : function(value){ - return value; - }, - - - getEditor: function(rowIndex){ - return this.editable !== false ? this.editor : null; - }, - - - setEditor : function(editor){ - var ed = this.editor; - if(ed){ - if(ed.gridEditor){ - ed.gridEditor.destroy(); - delete ed.gridEditor; - }else{ - ed.destroy(); - } - } - this.editor = null; - if(editor){ - - if(!editor.isXType){ - editor = Ext.create(editor, 'textfield'); - } - this.editor = editor; - } - }, - - - getCellEditor: function(rowIndex){ - var ed = this.getEditor(rowIndex); - if(ed){ - if(!ed.startEdit){ - if(!ed.gridEditor){ - ed.gridEditor = new Ext.grid.GridEditor(ed); - } - ed = ed.gridEditor; - } - } - return ed; - } -}); - - -Ext.grid.BooleanColumn = Ext.extend(Ext.grid.Column, { - - trueText: 'true', - - falseText: 'false', - - undefinedText: ' ', - - constructor: function(cfg){ - Ext.grid.BooleanColumn.superclass.constructor.call(this, cfg); - var t = this.trueText, f = this.falseText, u = this.undefinedText; - this.renderer = function(v){ - if(v === undefined){ - return u; - } - if(!v || v === 'false'){ - return f; - } - return t; - }; - } -}); - - -Ext.grid.NumberColumn = Ext.extend(Ext.grid.Column, { - - format : '0,000.00', - constructor: function(cfg){ - Ext.grid.NumberColumn.superclass.constructor.call(this, cfg); - this.renderer = Ext.util.Format.numberRenderer(this.format); - } -}); - - -Ext.grid.DateColumn = Ext.extend(Ext.grid.Column, { - - format : 'm/d/Y', - constructor: function(cfg){ - Ext.grid.DateColumn.superclass.constructor.call(this, cfg); - this.renderer = Ext.util.Format.dateRenderer(this.format); - } -}); - - -Ext.grid.TemplateColumn = Ext.extend(Ext.grid.Column, { - - constructor: function(cfg){ - Ext.grid.TemplateColumn.superclass.constructor.call(this, cfg); - var tpl = (!Ext.isPrimitive(this.tpl) && this.tpl.compile) ? this.tpl : new Ext.XTemplate(this.tpl); - this.renderer = function(value, p, r){ - return tpl.apply(r.data); - }; - this.tpl = tpl; - } -}); - - -Ext.grid.ActionColumn = Ext.extend(Ext.grid.Column, { - - - - - - - - - header: ' ', - - actionIdRe: /x-action-col-(\d+)/, - - - altText: '', - - constructor: function(cfg) { - var me = this, - items = cfg.items || (me.items = [me]), - l = items.length, - i, - item; - - Ext.grid.ActionColumn.superclass.constructor.call(me, cfg); - - - - me.renderer = function(v, meta) { - - v = Ext.isFunction(cfg.renderer) ? cfg.renderer.apply(this, arguments)||'' : ''; - - meta.css += ' x-action-col-cell'; - for (i = 0; i < l; i++) { - item = items[i]; - v += '' + (item.altText || me.altText) + ''; - } - return v; - }; - }, - - destroy: function() { - delete this.items; - delete this.renderer; - return Ext.grid.ActionColumn.superclass.destroy.apply(this, arguments); - }, - - - processEvent : function(name, e, grid, rowIndex, colIndex){ - var m = e.getTarget().className.match(this.actionIdRe), - item, fn; - if (m && (item = this.items[parseInt(m[1], 10)])) { - if (name == 'click') { - (fn = item.handler || this.handler) && fn.call(item.scope||this.scope||this, grid, rowIndex, colIndex, item, e); - } else if ((name == 'mousedown') && (item.stopSelection !== false)) { - return false; - } - } - return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments); - } -}); - - -Ext.grid.Column.types = { - gridcolumn : Ext.grid.Column, - booleancolumn: Ext.grid.BooleanColumn, - numbercolumn: Ext.grid.NumberColumn, - datecolumn: Ext.grid.DateColumn, - templatecolumn: Ext.grid.TemplateColumn, - actioncolumn: Ext.grid.ActionColumn -}; -Ext.grid.RowNumberer = Ext.extend(Object, { - - header: "", - - width: 23, - - sortable: false, - - constructor : function(config){ - Ext.apply(this, config); - if(this.rowspan){ - this.renderer = this.renderer.createDelegate(this); - } - }, - - - fixed:true, - hideable: false, - menuDisabled:true, - dataIndex: '', - id: 'numberer', - rowspan: undefined, - - - renderer : function(v, p, record, rowIndex){ - if(this.rowspan){ - p.cellAttr = 'rowspan="'+this.rowspan+'"'; - } - return rowIndex+1; - } -}); -Ext.grid.CheckboxSelectionModel = Ext.extend(Ext.grid.RowSelectionModel, { - - - - header : '
       
      ', - - width : 20, - - sortable : false, - - - menuDisabled : true, - fixed : true, - hideable: false, - dataIndex : '', - id : 'checker', - isColumn: true, - - constructor : function(){ - Ext.grid.CheckboxSelectionModel.superclass.constructor.apply(this, arguments); - if(this.checkOnly){ - this.handleMouseDown = Ext.emptyFn; - } - }, - - - initEvents : function(){ - Ext.grid.CheckboxSelectionModel.superclass.initEvents.call(this); - this.grid.on('render', function(){ - Ext.fly(this.grid.getView().innerHd).on('mousedown', this.onHdMouseDown, this); - }, this); - }, - - - processEvent : function(name, e, grid, rowIndex, colIndex){ - if (name == 'mousedown') { - this.onMouseDown(e, e.getTarget()); - return false; - } else { - return Ext.grid.Column.prototype.processEvent.apply(this, arguments); - } - }, - - - onMouseDown : function(e, t){ - if(e.button === 0 && t.className == 'x-grid3-row-checker'){ - e.stopEvent(); - var row = e.getTarget('.x-grid3-row'); - if(row){ - var index = row.rowIndex; - if(this.isSelected(index)){ - this.deselectRow(index); - }else{ - this.selectRow(index, true); - this.grid.getView().focusRow(index); - } - } - } - }, - - - onHdMouseDown : function(e, t) { - if(t.className == 'x-grid3-hd-checker'){ - e.stopEvent(); - var hd = Ext.fly(t.parentNode); - var isChecked = hd.hasClass('x-grid3-hd-checker-on'); - if(isChecked){ - hd.removeClass('x-grid3-hd-checker-on'); - this.clearSelections(); - }else{ - hd.addClass('x-grid3-hd-checker-on'); - this.selectAll(); - } - } - }, - - - renderer : function(v, p, record){ - return '
       
      '; - }, - - onEditorSelect: function(row, lastRow){ - if(lastRow != row && !this.checkOnly){ - this.selectRow(row); - } - } -}); -Ext.grid.CellSelectionModel = Ext.extend(Ext.grid.AbstractSelectionModel, { - - constructor : function(config){ - Ext.apply(this, config); - - this.selection = null; - - this.addEvents( - - "beforecellselect", - - "cellselect", - - "selectionchange" - ); - - Ext.grid.CellSelectionModel.superclass.constructor.call(this); - }, - - - initEvents : function(){ - this.grid.on('cellmousedown', this.handleMouseDown, this); - this.grid.on(Ext.EventManager.getKeyEvent(), this.handleKeyDown, this); - this.grid.getView().on({ - scope: this, - refresh: this.onViewChange, - rowupdated: this.onRowUpdated, - beforerowremoved: this.clearSelections, - beforerowsinserted: this.clearSelections - }); - if(this.grid.isEditor){ - this.grid.on('beforeedit', this.beforeEdit, this); - } - }, - - - beforeEdit : function(e){ - this.select(e.row, e.column, false, true, e.record); - }, - - - onRowUpdated : function(v, index, r){ - if(this.selection && this.selection.record == r){ - v.onCellSelect(index, this.selection.cell[1]); - } - }, - - - onViewChange : function(){ - this.clearSelections(true); - }, - - - getSelectedCell : function(){ - return this.selection ? this.selection.cell : null; - }, - - - clearSelections : function(preventNotify){ - var s = this.selection; - if(s){ - if(preventNotify !== true){ - this.grid.view.onCellDeselect(s.cell[0], s.cell[1]); - } - this.selection = null; - this.fireEvent("selectionchange", this, null); - } - }, - - - hasSelection : function(){ - return this.selection ? true : false; - }, - - - handleMouseDown : function(g, row, cell, e){ - if(e.button !== 0 || this.isLocked()){ - return; - } - this.select(row, cell); - }, - - - select : function(rowIndex, colIndex, preventViewNotify, preventFocus, r){ - if(this.fireEvent("beforecellselect", this, rowIndex, colIndex) !== false){ - this.clearSelections(); - r = r || this.grid.store.getAt(rowIndex); - this.selection = { - record : r, - cell : [rowIndex, colIndex] - }; - if(!preventViewNotify){ - var v = this.grid.getView(); - v.onCellSelect(rowIndex, colIndex); - if(preventFocus !== true){ - v.focusCell(rowIndex, colIndex); - } - } - this.fireEvent("cellselect", this, rowIndex, colIndex); - this.fireEvent("selectionchange", this, this.selection); - } - }, - - - isSelectable : function(rowIndex, colIndex, cm){ - return !cm.isHidden(colIndex); - }, - - - onEditorKey: function(field, e){ - if(e.getKey() == e.TAB){ - this.handleKeyDown(e); - } - }, - - - handleKeyDown : function(e){ - if(!e.isNavKeyPress()){ - return; - } - - var k = e.getKey(), - g = this.grid, - s = this.selection, - sm = this, - walk = function(row, col, step){ - return g.walkCells( - row, - col, - step, - g.isEditor && g.editing ? sm.acceptsNav : sm.isSelectable, - sm - ); - }, - cell, newCell, r, c, ae; - - switch(k){ - case e.ESC: - case e.PAGE_UP: - case e.PAGE_DOWN: - - break; - default: - - e.stopEvent(); - break; - } - - if(!s){ - cell = walk(0, 0, 1); - if(cell){ - this.select(cell[0], cell[1]); - } - return; - } - - cell = s.cell; - r = cell[0]; - c = cell[1]; - - switch(k){ - case e.TAB: - if(e.shiftKey){ - newCell = walk(r, c - 1, -1); - }else{ - newCell = walk(r, c + 1, 1); - } - break; - case e.DOWN: - newCell = walk(r + 1, c, 1); - break; - case e.UP: - newCell = walk(r - 1, c, -1); - break; - case e.RIGHT: - newCell = walk(r, c + 1, 1); - break; - case e.LEFT: - newCell = walk(r, c - 1, -1); - break; - case e.ENTER: - if (g.isEditor && !g.editing) { - g.startEditing(r, c); - return; - } - break; - } - - if(newCell){ - - r = newCell[0]; - c = newCell[1]; - - this.select(r, c); - - if(g.isEditor && g.editing){ - ae = g.activeEditor; - if(ae && ae.field.triggerBlur){ - - ae.field.triggerBlur(); - } - g.startEditing(r, c); - } - } - }, - - acceptsNav : function(row, col, cm){ - return !cm.isHidden(col) && cm.isCellEditable(col, row); - } -}); -Ext.grid.EditorGridPanel = Ext.extend(Ext.grid.GridPanel, { - - clicksToEdit: 2, - - - forceValidation: false, - - - isEditor : true, - - detectEdit: false, - - - autoEncode : false, - - - - trackMouseOver: false, - - - initComponent : function(){ - Ext.grid.EditorGridPanel.superclass.initComponent.call(this); - - if(!this.selModel){ - - this.selModel = new Ext.grid.CellSelectionModel(); - } - - this.activeEditor = null; - - this.addEvents( - - "beforeedit", - - "afteredit", - - "validateedit" - ); - }, - - - initEvents : function(){ - Ext.grid.EditorGridPanel.superclass.initEvents.call(this); - - this.getGridEl().on('mousewheel', this.stopEditing.createDelegate(this, [true]), this); - this.on('columnresize', this.stopEditing, this, [true]); - - if(this.clicksToEdit == 1){ - this.on("cellclick", this.onCellDblClick, this); - }else { - var view = this.getView(); - if(this.clicksToEdit == 'auto' && view.mainBody){ - view.mainBody.on('mousedown', this.onAutoEditClick, this); - } - this.on('celldblclick', this.onCellDblClick, this); - } - }, - - onResize : function(){ - Ext.grid.EditorGridPanel.superclass.onResize.apply(this, arguments); - var ae = this.activeEditor; - if(this.editing && ae){ - ae.realign(true); - } - }, - - - onCellDblClick : function(g, row, col){ - this.startEditing(row, col); - }, - - - onAutoEditClick : function(e, t){ - if(e.button !== 0){ - return; - } - var row = this.view.findRowIndex(t), - col = this.view.findCellIndex(t); - if(row !== false && col !== false){ - this.stopEditing(); - if(this.selModel.getSelectedCell){ - var sc = this.selModel.getSelectedCell(); - if(sc && sc[0] === row && sc[1] === col){ - this.startEditing(row, col); - } - }else{ - if(this.selModel.isSelected(row)){ - this.startEditing(row, col); - } - } - } - }, - - - onEditComplete : function(ed, value, startValue){ - this.editing = false; - this.lastActiveEditor = this.activeEditor; - this.activeEditor = null; - - var r = ed.record, - field = this.colModel.getDataIndex(ed.col); - value = this.postEditValue(value, startValue, r, field); - if(this.forceValidation === true || String(value) !== String(startValue)){ - var e = { - grid: this, - record: r, - field: field, - originalValue: startValue, - value: value, - row: ed.row, - column: ed.col, - cancel:false - }; - if(this.fireEvent("validateedit", e) !== false && !e.cancel && String(value) !== String(startValue)){ - r.set(field, e.value); - delete e.cancel; - this.fireEvent("afteredit", e); - } - } - this.view.focusCell(ed.row, ed.col); - }, - - - startEditing : function(row, col){ - this.stopEditing(); - if(this.colModel.isCellEditable(col, row)){ - this.view.ensureVisible(row, col, true); - var r = this.store.getAt(row), - field = this.colModel.getDataIndex(col), - e = { - grid: this, - record: r, - field: field, - value: r.data[field], - row: row, - column: col, - cancel:false - }; - if(this.fireEvent("beforeedit", e) !== false && !e.cancel){ - this.editing = true; - var ed = this.colModel.getCellEditor(col, row); - if(!ed){ - return; - } - if(!ed.rendered){ - ed.parentEl = this.view.getEditorParent(ed); - ed.on({ - scope: this, - render: { - fn: function(c){ - c.field.focus(false, true); - }, - single: true, - scope: this - }, - specialkey: function(field, e){ - this.getSelectionModel().onEditorKey(field, e); - }, - complete: this.onEditComplete, - canceledit: this.stopEditing.createDelegate(this, [true]) - }); - } - Ext.apply(ed, { - row : row, - col : col, - record : r - }); - this.lastEdit = { - row: row, - col: col - }; - this.activeEditor = ed; - - - ed.selectSameEditor = (this.activeEditor == this.lastActiveEditor); - var v = this.preEditValue(r, field); - ed.startEdit(this.view.getCell(row, col).firstChild, Ext.isDefined(v) ? v : ''); - - - (function(){ - delete ed.selectSameEditor; - }).defer(50); - } - } - }, - - - preEditValue : function(r, field){ - var value = r.data[field]; - return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlDecode(value) : value; - }, - - - postEditValue : function(value, originalValue, r, field){ - return this.autoEncode && Ext.isString(value) ? Ext.util.Format.htmlEncode(value) : value; - }, - - - stopEditing : function(cancel){ - if(this.editing){ - - var ae = this.lastActiveEditor = this.activeEditor; - if(ae){ - ae[cancel === true ? 'cancelEdit' : 'completeEdit'](); - this.view.focusCell(ae.row, ae.col); - } - this.activeEditor = null; - } - this.editing = false; - } -}); -Ext.reg('editorgrid', Ext.grid.EditorGridPanel); - -Ext.grid.GridEditor = function(field, config){ - Ext.grid.GridEditor.superclass.constructor.call(this, field, config); - field.monitorTab = false; -}; - -Ext.extend(Ext.grid.GridEditor, Ext.Editor, { - alignment: "tl-tl", - autoSize: "width", - hideEl : false, - cls: "x-small-editor x-grid-editor", - shim:false, - shadow:false -}); -Ext.grid.PropertyRecord = Ext.data.Record.create([ - {name:'name',type:'string'}, 'value' -]); - - -Ext.grid.PropertyStore = Ext.extend(Ext.util.Observable, { - - constructor : function(grid, source){ - this.grid = grid; - this.store = new Ext.data.Store({ - recordType : Ext.grid.PropertyRecord - }); - this.store.on('update', this.onUpdate, this); - if(source){ - this.setSource(source); - } - Ext.grid.PropertyStore.superclass.constructor.call(this); - }, - - - setSource : function(o){ - this.source = o; - this.store.removeAll(); - var data = []; - for(var k in o){ - if(this.isEditableValue(o[k])){ - data.push(new Ext.grid.PropertyRecord({name: k, value: o[k]}, k)); - } - } - this.store.loadRecords({records: data}, {}, true); - }, - - - onUpdate : function(ds, record, type){ - if(type == Ext.data.Record.EDIT){ - var v = record.data.value; - var oldValue = record.modified.value; - if(this.grid.fireEvent('beforepropertychange', this.source, record.id, v, oldValue) !== false){ - this.source[record.id] = v; - record.commit(); - this.grid.fireEvent('propertychange', this.source, record.id, v, oldValue); - }else{ - record.reject(); - } - } - }, - - - getProperty : function(row){ - return this.store.getAt(row); - }, - - - isEditableValue: function(val){ - return Ext.isPrimitive(val) || Ext.isDate(val); - }, - - - setValue : function(prop, value, create){ - var r = this.getRec(prop); - if(r){ - r.set('value', value); - this.source[prop] = value; - }else if(create){ - - this.source[prop] = value; - r = new Ext.grid.PropertyRecord({name: prop, value: value}, prop); - this.store.add(r); - - } - }, - - - remove : function(prop){ - var r = this.getRec(prop); - if(r){ - this.store.remove(r); - delete this.source[prop]; - } - }, - - - getRec : function(prop){ - return this.store.getById(prop); - }, - - - getSource : function(){ - return this.source; - } -}); - - -Ext.grid.PropertyColumnModel = Ext.extend(Ext.grid.ColumnModel, { - - nameText : 'Name', - valueText : 'Value', - dateFormat : 'm/j/Y', - trueText: 'true', - falseText: 'false', - - constructor : function(grid, store){ - var g = Ext.grid, - f = Ext.form; - - this.grid = grid; - g.PropertyColumnModel.superclass.constructor.call(this, [ - {header: this.nameText, width:50, sortable: true, dataIndex:'name', id: 'name', menuDisabled:true}, - {header: this.valueText, width:50, resizable:false, dataIndex: 'value', id: 'value', menuDisabled:true} - ]); - this.store = store; - - var bfield = new f.Field({ - autoCreate: {tag: 'select', children: [ - {tag: 'option', value: 'true', html: this.trueText}, - {tag: 'option', value: 'false', html: this.falseText} - ]}, - getValue : function(){ - return this.el.dom.value == 'true'; - } - }); - this.editors = { - 'date' : new g.GridEditor(new f.DateField({selectOnFocus:true})), - 'string' : new g.GridEditor(new f.TextField({selectOnFocus:true})), - 'number' : new g.GridEditor(new f.NumberField({selectOnFocus:true, style:'text-align:left;'})), - 'boolean' : new g.GridEditor(bfield, { - autoSize: 'both' - }) - }; - this.renderCellDelegate = this.renderCell.createDelegate(this); - this.renderPropDelegate = this.renderProp.createDelegate(this); - }, - - - renderDate : function(dateVal){ - return dateVal.dateFormat(this.dateFormat); - }, - - - renderBool : function(bVal){ - return this[bVal ? 'trueText' : 'falseText']; - }, - - - isCellEditable : function(colIndex, rowIndex){ - return colIndex == 1; - }, - - - getRenderer : function(col){ - return col == 1 ? - this.renderCellDelegate : this.renderPropDelegate; - }, - - - renderProp : function(v){ - return this.getPropertyName(v); - }, - - - renderCell : function(val, meta, rec){ - var renderer = this.grid.customRenderers[rec.get('name')]; - if(renderer){ - return renderer.apply(this, arguments); - } - var rv = val; - if(Ext.isDate(val)){ - rv = this.renderDate(val); - }else if(typeof val == 'boolean'){ - rv = this.renderBool(val); - } - return Ext.util.Format.htmlEncode(rv); - }, - - - getPropertyName : function(name){ - var pn = this.grid.propertyNames; - return pn && pn[name] ? pn[name] : name; - }, - - - getCellEditor : function(colIndex, rowIndex){ - var p = this.store.getProperty(rowIndex), - n = p.data.name, - val = p.data.value; - if(this.grid.customEditors[n]){ - return this.grid.customEditors[n]; - } - if(Ext.isDate(val)){ - return this.editors.date; - }else if(typeof val == 'number'){ - return this.editors.number; - }else if(typeof val == 'boolean'){ - return this.editors['boolean']; - }else{ - return this.editors.string; - } - }, - - - destroy : function(){ - Ext.grid.PropertyColumnModel.superclass.destroy.call(this); - this.destroyEditors(this.editors); - this.destroyEditors(this.grid.customEditors); - }, - - destroyEditors: function(editors){ - for(var ed in editors){ - Ext.destroy(editors[ed]); - } - } -}); - - -Ext.grid.PropertyGrid = Ext.extend(Ext.grid.EditorGridPanel, { - - - - - - - - enableColumnMove:false, - stripeRows:false, - trackMouseOver: false, - clicksToEdit:1, - enableHdMenu : false, - viewConfig : { - forceFit:true - }, - - - initComponent : function(){ - this.customRenderers = this.customRenderers || {}; - this.customEditors = this.customEditors || {}; - this.lastEditRow = null; - var store = new Ext.grid.PropertyStore(this); - this.propStore = store; - var cm = new Ext.grid.PropertyColumnModel(this, store); - store.store.sort('name', 'ASC'); - this.addEvents( - - 'beforepropertychange', - - 'propertychange' - ); - this.cm = cm; - this.ds = store.store; - Ext.grid.PropertyGrid.superclass.initComponent.call(this); - - this.mon(this.selModel, 'beforecellselect', function(sm, rowIndex, colIndex){ - if(colIndex === 0){ - this.startEditing.defer(200, this, [rowIndex, 1]); - return false; - } - }, this); - }, - - - onRender : function(){ - Ext.grid.PropertyGrid.superclass.onRender.apply(this, arguments); - - this.getGridEl().addClass('x-props-grid'); - }, - - - afterRender: function(){ - Ext.grid.PropertyGrid.superclass.afterRender.apply(this, arguments); - if(this.source){ - this.setSource(this.source); - } - }, - - - setSource : function(source){ - this.propStore.setSource(source); - }, - - - getSource : function(){ - return this.propStore.getSource(); - }, - - - setProperty : function(prop, value, create){ - this.propStore.setValue(prop, value, create); - }, - - - removeProperty : function(prop){ - this.propStore.remove(prop); - } - - - - - -}); -Ext.reg("propertygrid", Ext.grid.PropertyGrid); - -Ext.grid.GroupingView = Ext.extend(Ext.grid.GridView, { - - - groupByText : 'Group By This Field', - - showGroupsText : 'Show in Groups', - - hideGroupedColumn : false, - - showGroupName : true, - - startCollapsed : false, - - enableGrouping : true, - - enableGroupingMenu : true, - - enableNoGroups : true, - - emptyGroupText : '(None)', - - ignoreAdd : false, - - groupTextTpl : '{text}', - - - groupMode: 'value', - - - - - cancelEditOnToggle: true, - - - initTemplates : function(){ - Ext.grid.GroupingView.superclass.initTemplates.call(this); - this.state = {}; - - var sm = this.grid.getSelectionModel(); - sm.on(sm.selectRow ? 'beforerowselect' : 'beforecellselect', - this.onBeforeRowSelect, this); - - if(!this.startGroup){ - this.startGroup = new Ext.XTemplate( - '
      ', - '
      ', this.groupTextTpl ,'
      ', - '
      ' - ); - } - this.startGroup.compile(); - - if (!this.endGroup) { - this.endGroup = '
      '; - } - }, - - - findGroup : function(el){ - return Ext.fly(el).up('.x-grid-group', this.mainBody.dom); - }, - - - getGroups : function(){ - return this.hasRows() ? this.mainBody.dom.childNodes : []; - }, - - - onAdd : function(ds, records, index) { - if (this.canGroup() && !this.ignoreAdd) { - var ss = this.getScrollState(); - this.fireEvent('beforerowsinserted', ds, index, index + (records.length-1)); - this.refresh(); - this.restoreScroll(ss); - this.fireEvent('rowsinserted', ds, index, index + (records.length-1)); - } else if (!this.canGroup()) { - Ext.grid.GroupingView.superclass.onAdd.apply(this, arguments); - } - }, - - - onRemove : function(ds, record, index, isUpdate){ - Ext.grid.GroupingView.superclass.onRemove.apply(this, arguments); - var g = document.getElementById(record._groupId); - if(g && g.childNodes[1].childNodes.length < 1){ - Ext.removeNode(g); - } - this.applyEmptyText(); - }, - - - refreshRow : function(record){ - if(this.ds.getCount()==1){ - this.refresh(); - }else{ - this.isUpdating = true; - Ext.grid.GroupingView.superclass.refreshRow.apply(this, arguments); - this.isUpdating = false; - } - }, - - - beforeMenuShow : function(){ - var item, items = this.hmenu.items, disabled = this.cm.config[this.hdCtxIndex].groupable === false; - if((item = items.get('groupBy'))){ - item.setDisabled(disabled); - } - if((item = items.get('showGroups'))){ - item.setDisabled(disabled); - item.setChecked(this.canGroup(), true); - } - }, - - - renderUI : function(){ - var markup = Ext.grid.GroupingView.superclass.renderUI.call(this); - - if(this.enableGroupingMenu && this.hmenu){ - this.hmenu.add('-',{ - itemId:'groupBy', - text: this.groupByText, - handler: this.onGroupByClick, - scope: this, - iconCls:'x-group-by-icon' - }); - if(this.enableNoGroups){ - this.hmenu.add({ - itemId:'showGroups', - text: this.showGroupsText, - checked: true, - checkHandler: this.onShowGroupsClick, - scope: this - }); - } - this.hmenu.on('beforeshow', this.beforeMenuShow, this); - } - return markup; - }, - - processEvent: function(name, e){ - Ext.grid.GroupingView.superclass.processEvent.call(this, name, e); - var hd = e.getTarget('.x-grid-group-hd', this.mainBody); - if(hd){ - - var field = this.getGroupField(), - prefix = this.getPrefix(field), - groupValue = hd.id.substring(prefix.length), - emptyRe = new RegExp('gp-' + Ext.escapeRe(field) + '--hd'); - - - groupValue = groupValue.substr(0, groupValue.length - 3); - - - if(groupValue || emptyRe.test(hd.id)){ - this.grid.fireEvent('group' + name, this.grid, field, groupValue, e); - } - if(name == 'mousedown' && e.button == 0){ - this.toggleGroup(hd.parentNode); - } - } - - }, - - - onGroupByClick : function(){ - var grid = this.grid; - this.enableGrouping = true; - grid.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex)); - grid.fireEvent('groupchange', grid, grid.store.getGroupState()); - this.beforeMenuShow(); - this.refresh(); - }, - - - onShowGroupsClick : function(mi, checked){ - this.enableGrouping = checked; - if(checked){ - this.onGroupByClick(); - }else{ - this.grid.store.clearGrouping(); - this.grid.fireEvent('groupchange', this, null); - } - }, - - - toggleRowIndex : function(rowIndex, expanded){ - if(!this.canGroup()){ - return; - } - var row = this.getRow(rowIndex); - if(row){ - this.toggleGroup(this.findGroup(row), expanded); - } - }, - - - toggleGroup : function(group, expanded){ - var gel = Ext.get(group), - id = Ext.util.Format.htmlEncode(gel.id); - - expanded = Ext.isDefined(expanded) ? expanded : gel.hasClass('x-grid-group-collapsed'); - if(this.state[id] !== expanded){ - if (this.cancelEditOnToggle !== false) { - this.grid.stopEditing(true); - } - this.state[id] = expanded; - gel[expanded ? 'removeClass' : 'addClass']('x-grid-group-collapsed'); - } - }, - - - toggleAllGroups : function(expanded){ - var groups = this.getGroups(); - for(var i = 0, len = groups.length; i < len; i++){ - this.toggleGroup(groups[i], expanded); - } - }, - - - expandAllGroups : function(){ - this.toggleAllGroups(true); - }, - - - collapseAllGroups : function(){ - this.toggleAllGroups(false); - }, - - - getGroup : function(v, r, groupRenderer, rowIndex, colIndex, ds){ - var column = this.cm.config[colIndex], - g = groupRenderer ? groupRenderer.call(column.scope, v, {}, r, rowIndex, colIndex, ds) : String(v); - if(g === '' || g === ' '){ - g = column.emptyGroupText || this.emptyGroupText; - } - return g; - }, - - - getGroupField : function(){ - return this.grid.store.getGroupState(); - }, - - - afterRender : function(){ - if(!this.ds || !this.cm){ - return; - } - Ext.grid.GroupingView.superclass.afterRender.call(this); - if(this.grid.deferRowRender){ - this.updateGroupWidths(); - } - }, - - afterRenderUI: function () { - Ext.grid.GroupingView.superclass.afterRenderUI.call(this); - - if (this.enableGroupingMenu && this.hmenu) { - this.hmenu.add('-',{ - itemId:'groupBy', - text: this.groupByText, - handler: this.onGroupByClick, - scope: this, - iconCls:'x-group-by-icon' - }); - - if (this.enableNoGroups) { - this.hmenu.add({ - itemId:'showGroups', - text: this.showGroupsText, - checked: true, - checkHandler: this.onShowGroupsClick, - scope: this - }); - } - - this.hmenu.on('beforeshow', this.beforeMenuShow, this); - } - }, - - - renderRows : function(){ - var groupField = this.getGroupField(); - var eg = !!groupField; - - if(this.hideGroupedColumn) { - var colIndex = this.cm.findColumnIndex(groupField), - hasLastGroupField = Ext.isDefined(this.lastGroupField); - if(!eg && hasLastGroupField){ - this.mainBody.update(''); - this.cm.setHidden(this.cm.findColumnIndex(this.lastGroupField), false); - delete this.lastGroupField; - }else if (eg && !hasLastGroupField){ - this.lastGroupField = groupField; - this.cm.setHidden(colIndex, true); - }else if (eg && hasLastGroupField && groupField !== this.lastGroupField) { - this.mainBody.update(''); - var oldIndex = this.cm.findColumnIndex(this.lastGroupField); - this.cm.setHidden(oldIndex, false); - this.lastGroupField = groupField; - this.cm.setHidden(colIndex, true); - } - } - return Ext.grid.GroupingView.superclass.renderRows.apply( - this, arguments); - }, - - - doRender : function(cs, rs, ds, startRow, colCount, stripe){ - if(rs.length < 1){ - return ''; - } - - if(!this.canGroup() || this.isUpdating){ - return Ext.grid.GroupingView.superclass.doRender.apply(this, arguments); - } - - var groupField = this.getGroupField(), - colIndex = this.cm.findColumnIndex(groupField), - g, - gstyle = 'width:' + this.getTotalWidth() + ';', - cfg = this.cm.config[colIndex], - groupRenderer = cfg.groupRenderer || cfg.renderer, - prefix = this.showGroupName ? (cfg.groupName || cfg.header)+': ' : '', - groups = [], - curGroup, i, len, gid; - - for(i = 0, len = rs.length; i < len; i++){ - var rowIndex = startRow + i, - r = rs[i], - gvalue = r.data[groupField]; - - g = this.getGroup(gvalue, r, groupRenderer, rowIndex, colIndex, ds); - if(!curGroup || curGroup.group != g){ - gid = this.constructId(gvalue, groupField, colIndex); - - - this.state[gid] = !(Ext.isDefined(this.state[gid]) ? !this.state[gid] : this.startCollapsed); - curGroup = { - group: g, - gvalue: gvalue, - text: prefix + g, - groupId: gid, - startRow: rowIndex, - rs: [r], - cls: this.state[gid] ? '' : 'x-grid-group-collapsed', - style: gstyle - }; - groups.push(curGroup); - }else{ - curGroup.rs.push(r); - } - r._groupId = gid; - } - - var buf = []; - for(i = 0, len = groups.length; i < len; i++){ - g = groups[i]; - this.doGroupStart(buf, g, cs, ds, colCount); - buf[buf.length] = Ext.grid.GroupingView.superclass.doRender.call( - this, cs, g.rs, ds, g.startRow, colCount, stripe); - - this.doGroupEnd(buf, g, cs, ds, colCount); - } - return buf.join(''); - }, - - - getGroupId : function(value){ - var field = this.getGroupField(); - return this.constructId(value, field, this.cm.findColumnIndex(field)); - }, - - - constructId : function(value, field, idx){ - var cfg = this.cm.config[idx], - groupRenderer = cfg.groupRenderer || cfg.renderer, - val = (this.groupMode == 'value') ? value : this.getGroup(value, {data:{}}, groupRenderer, 0, idx, this.ds); - - return this.getPrefix(field) + Ext.util.Format.htmlEncode(val); - }, - - - canGroup : function(){ - return this.enableGrouping && !!this.getGroupField(); - }, - - - getPrefix: function(field){ - return this.grid.getGridEl().id + '-gp-' + field + '-'; - }, - - - doGroupStart : function(buf, g, cs, ds, colCount){ - buf[buf.length] = this.startGroup.apply(g); - }, - - - doGroupEnd : function(buf, g, cs, ds, colCount){ - buf[buf.length] = this.endGroup; - }, - - - getRows : function(){ - if(!this.canGroup()){ - return Ext.grid.GroupingView.superclass.getRows.call(this); - } - var r = [], - gs = this.getGroups(), - g, - i = 0, - len = gs.length, - j, - jlen; - for(; i < len; ++i){ - g = gs[i].childNodes[1]; - if(g){ - g = g.childNodes; - for(j = 0, jlen = g.length; j < jlen; ++j){ - r[r.length] = g[j]; - } - } - } - return r; - }, - - - updateGroupWidths : function(){ - if(!this.canGroup() || !this.hasRows()){ - return; - } - var tw = Math.max(this.cm.getTotalWidth(), this.el.dom.offsetWidth-this.getScrollOffset()) +'px'; - var gs = this.getGroups(); - for(var i = 0, len = gs.length; i < len; i++){ - gs[i].firstChild.style.width = tw; - } - }, - - - onColumnWidthUpdated : function(col, w, tw){ - Ext.grid.GroupingView.superclass.onColumnWidthUpdated.call(this, col, w, tw); - this.updateGroupWidths(); - }, - - - onAllColumnWidthsUpdated : function(ws, tw){ - Ext.grid.GroupingView.superclass.onAllColumnWidthsUpdated.call(this, ws, tw); - this.updateGroupWidths(); - }, - - - onColumnHiddenUpdated : function(col, hidden, tw){ - Ext.grid.GroupingView.superclass.onColumnHiddenUpdated.call(this, col, hidden, tw); - this.updateGroupWidths(); - }, - - - onLayout : function(){ - this.updateGroupWidths(); - }, - - - onBeforeRowSelect : function(sm, rowIndex){ - this.toggleRowIndex(rowIndex, true); - } -}); - -Ext.grid.GroupingView.GROUP_ID = 1000; diff --git a/scm-webapp/src/main/webapp/resources/extjs/ext-all.js b/scm-webapp/src/main/webapp/resources/extjs/ext-all.js deleted file mode 100644 index 5b0034a595..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/ext-all.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -(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(k,m,l,r){var n=this,q,s,p;if(typeof k=="object"){r=k;for(q in r){s=r[q];if(!n.filterOptRe.test(q)){n.addListener(q,s.fn||s,s.scope||r.scope,s.fn?s:r)}}}else{k=k.toLowerCase();p=n.events[k]||g;if(typeof p=="boolean"){n.events[k]=p=new h.Event(n,k)}p.addListener(m,l,typeof r=="object"?r:{})}},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(),o=Array.prototype.slice.call(arguments,0);if(!k.tasks){k.tasks=[]}k.tasks.push(l);l.delay(p.delay||10,function(){k.tasks.remove(l);n.apply(m,o)},m)}}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",i="",b=a+"",j=""+i,l=b+"",w=""+j;function h(B,D,C,E,A,y){var z=r.insertHtml(E,Ext.getDom(B),u(D));return C?Ext.get(z,true):z}function u(D){var z="",y,C,B,E;if(typeof D=="string"){z=D}else{if(Ext.isArray(D)){for(var A=0;A"}}}return z}function g(F,C,B,D){x.innerHTML=[C,B,D].join("");var y=-1,A=x,z;while(++y "'+D+'"'},insertBefore:function(y,A,z){return h(y,A,z,c)},insertAfter:function(y,A,z){return h(y,A,z,p,"nextSibling")},insertFirst:function(y,A,z){return h(y,A,z,n,"firstChild")},append:function(y,A,z){return h(y,A,z,q,"",true)},overwrite:function(y,A,z){y=Ext.getDom(y);y.innerHTML=u(A);return z?Ext.get(y.firstChild):y.firstChild},createHtml:u};return r}();Ext.Template=function(h){var j=this,c=arguments,e=[],d;if(Ext.isArray(h)){h=h.join("")}else{if(c.length>1){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?(["']?)(.*?)\4)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{5}", "{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=document;Ext.Element=function(l,m){var n=typeof l=="string"?h.getElementById(l):l,o;if(!n){return null}o=n.id;if(!m&&o&&Ext.elCache[o]){return Ext.elCache[o].el}this.dom=n;this.id=o||Ext.id(n)};var d=Ext.DomHelper,e=Ext.Element,a=Ext.elCache;e.prototype={set:function(q,m){var n=this.dom,l,p,m=(m!==false)&&!!n.setAttribute;for(l in q){if(q.hasOwnProperty(l)){p=q[l];if(l=="style"){d.applyStyles(n,p)}else{if(l=="cls"){n.className=p}else{if(m){n.setAttribute(l,p)}else{n[l]=p}}}}}return this},defaultUnit:"px",is:function(l){return Ext.DomQuery.is(this.dom,l)},focus:function(o,n){var l=this,n=n||l.dom;try{if(Number(o)){l.focus.defer(o,null,[null,n])}else{n.focus()}}catch(m){}return l},blur:function(){try{this.dom.blur()}catch(l){}return this},getValue:function(l){var m=this.dom.value;return l?parseInt(m,10):m},addListener:function(l,o,n,m){Ext.EventManager.on(this.dom,l,o,n||this,m);return this},removeListener:function(l,n,m){Ext.EventManager.removeListener(this.dom,l,n,m||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},purgeAllListeners:function(){Ext.EventManager.purgeElement(this,true);return this},addUnits:function(l){if(l===""||l=="auto"||l===undefined){l=l||""}else{if(!isNaN(l)||!i.test(l)){l=l+(this.defaultUnit||"px")}}return l},load:function(m,n,l){Ext.Ajax.request(Ext.apply({params:n,url:m.url||m,callback:l,el:this.dom,indicatorText:m.indicatorText||""},Ext.isObject(m)?m:{}));return this},isBorderBox:function(){return Ext.isBorderBox||Ext.isForcedBorderBox||g[(this.dom.tagName||"").toLowerCase()]},remove:function(){var l=this,m=l.dom;if(m){delete l.dom;Ext.removeNode(m)}},hover:function(m,l,o,n){var p=this;p.on("mouseenter",m,o||p.dom,n);p.on("mouseleave",l,o||p.dom,n);return p},contains:function(l){return !l?false:Ext.lib.Dom.isAncestor(this.dom,l.dom?l.dom:l)},getAttributeNS:function(m,l){return this.getAttribute(l,m)},getAttribute:(function(){var p=document.createElement("table"),o=false,m="getAttribute" in p,l=/undefined|unknown/;if(m){try{p.getAttribute("ext:qtip")}catch(n){o=true}return function(q,s){var r=this.dom,t;if(r.getAttributeNS){t=r.getAttributeNS(s,q)||null}if(t==null){if(s){if(o&&r.tagName.toUpperCase()=="TABLE"){try{t=r.getAttribute(s+":"+q)}catch(u){t=""}}else{t=r.getAttribute(s+":"+q)}}else{t=r.getAttribute(q)||r[q]}}return t||""}}else{return function(q,s){var r=this.om,u,t;if(s){t=r[s+":"+q];u=l.test(typeof t)?undefined:t}else{u=r[q]}return u||""}}p=null})(),update:function(l){if(this.dom){this.dom.innerHTML=l}return this}};var k=e.prototype;e.addMethods=function(l){Ext.apply(k,l)};k.on=k.addListener;k.un=k.removeListener;k.autoBoxAdjust=true;var i=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,c;e.get=function(m){var l,p,o;if(!m){return null}if(typeof m=="string"){if(!(p=h.getElementById(m))){return null}if(a[m]&&a[m].el){l=a[m].el;l.dom=p}else{l=e.addToCache(new e(p))}return l}else{if(m.tagName){if(!(o=m.id)){o=Ext.id(m)}if(a[o]&&a[o].el){l=a[o].el;l.dom=m}else{l=e.addToCache(new e(m))}return l}else{if(m instanceof e){if(m!=c){if(Ext.isIE&&(m.id==undefined||m.id=="")){m.dom=m.dom}else{m.dom=h.getElementById(m.id)||m.dom}}return m}else{if(m.isComposite){return m}else{if(Ext.isArray(m)){return e.select(m)}else{if(m==h){if(!c){var n=function(){};n.prototype=e.prototype;c=new n();c.dom=h}return c}}}}}}return null};e.addToCache=function(l,m){m=m||l.id;a[m]={el:l,data:{},events:{}};return l};e.data=function(m,l,n){m=e.get(m);if(!m){return null}var o=a[m.id].data;if(arguments.length==2){return o[l]}else{return(o[l]=n)}};function j(){if(!Ext.enableGarbageCollector){clearInterval(e.collectorThreadId)}else{var l,n,q,p;for(l in a){p=a[l];if(p.skipGC){continue}n=p.el;q=n.dom;if(!q||!q.parentNode||(!q.offsetParent&&!h.getElementById(l))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(q)}delete a[l]}}if(Ext.isIE){var m={};for(l in a){m[l]=a[l]}a=Ext.elCache=m}}}e.collectorThreadId=setInterval(j,30000);var b=function(){};b.prototype=e.prototype;e.Flyweight=function(l){this.dom=l};e.Flyweight.prototype=new b();e.Flyweight.prototype.isFlyweight=true;e._flyweights={};e.fly=function(n,l){var m=null;l=l||"_global";if(n=Ext.getDom(n)){(e._flyweights[l]=e._flyweights[l]||new e.Flyweight()).dom=n;m=e._flyweights[l]}return m};Ext.get=e.get;Ext.fly=e.fly;var g=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){g.button=1}})();Ext.Element.addMethods(function(){var d="parentNode",b="nextSibling",c="previousSibling",e=Ext.DomQuery,a=Ext.get;return{findParent:function(m,l,h){var j=this.dom,g=document.body,k=0,i;if(Ext.isGecko&&Object.prototype.toString.call(j)=="[object XULElement]"){return null}l=l||50;if(isNaN(l)){i=Ext.getDom(l);l=Number.MAX_VALUE}while(j&&j.nodeType==1&&k "+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(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.Element.addMethods(function(){var A=Ext.supports,h={},x=/(-[a-z])/gi,s=document.defaultView,D=/alpha\(opacity=(.*)\)/i,l=/^\s+|\s+$/g,B=Ext.Element,u=/\s+/,b=/\w/g,d="padding",c="margin",y="border",t="-left",q="-right",w="-top",o="-bottom",j="-width",r=Math,z="hidden",e="isClipped",k="overflow",n="overflow-x",m="overflow-y",C="originalClip",i={l:y+t+j,r:y+q+j,t:y+w+j,b:y+o+j},g={l:d+t,r:d+q,t:d+w,b:d+o},a={l:c+t,r:c+q,t:c+w,b:c+o},E=Ext.Element.data;function p(F,G){return G.charAt(1).toUpperCase()}function v(F){return h[F]||(h[F]=F=="float"?(A.cssFloat?"cssFloat":"styleFloat"):F.replace(x,p))}return{adjustWidth:function(F){var G=this;var H=(typeof F=="number");if(H&&G.autoBoxAdjust&&!G.isBorderBox()){F-=(G.getBorderWidth("lr")+G.getPadding("lr"))}return(H&&F<0)?0:F},adjustHeight:function(F){var G=this;var H=(typeof F=="number");if(H&&G.autoBoxAdjust&&!G.isBorderBox()){F-=(G.getBorderWidth("tb")+G.getPadding("tb"))}return(H&&F<0)?0:F},addClass:function(J){var K=this,I,F,H,G=[];if(!Ext.isArray(J)){if(typeof J=="string"&&!this.hasClass(J)){K.dom.className+=" "+J}}else{for(I=0,F=J.length;I5?H.toLowerCase():G)},setStyle:function(I,H){var F,G;if(typeof I!="object"){F={};F[I]=H;I=F}for(G in I){H=I[G];G=="opacity"?this.setOpacity(H):this.dom.style[v(G)]=H}return this},setOpacity:function(G,F){var J=this,H=J.dom.style;if(!F||!J.anim){if(Ext.isIE){var I=G<1?"alpha(opacity="+G*100+")":"",K=H.filter.replace(D,"").replace(l,"");H.zoom=1;H.filter=K+(K.length>0?" ":"")+I}else{H.opacity=G}}else{J.anim({opacity:{to:G}},J.preanim(arguments,1),null,0.35,"easeIn")}return J},clearOpacity:function(){var F=this.dom.style;if(Ext.isIE){if(!Ext.isEmpty(F.filter)){F.filter=F.filter.replace(D,"").replace(l,"")}}else{F.opacity=F["-moz-opacity"]=F["-khtml-opacity"]=""}return this},getHeight:function(H){var G=this,J=G.dom,I=Ext.isIE&&G.isStyle("display","none"),F=r.max(J.offsetHeight,I?0:J.clientHeight)||0;F=!H?F:F-G.getBorderWidth("tb")-G.getPadding("tb");return F<0?0:F},getWidth:function(G){var H=this,J=H.dom,I=Ext.isIE&&H.isStyle("display","none"),F=r.max(J.offsetWidth,I?0:J.clientWidth)||0;F=!G?F:F-H.getBorderWidth("lr")-H.getPadding("lr");return F<0?0:F},setWidth:function(G,F){var H=this;G=H.adjustWidth(G);!F||!H.anim?H.dom.style.width=H.addUnits(G):H.anim({width:{to:G}},H.preanim(arguments,1));return H},setHeight:function(F,G){var H=this;F=H.adjustHeight(F);!G||!H.anim?H.dom.style.height=H.addUnits(F):H.anim({height:{to:F}},H.preanim(arguments,1));return H},getBorderWidth:function(F){return this.addStyles(F,i)},getPadding:function(F){return this.addStyles(F,g)},clip:function(){var F=this,G=F.dom;if(!E(G,e)){E(G,e,true);E(G,C,{o:F.getStyle(k),x:F.getStyle(n),y:F.getStyle(m)});F.setStyle(k,z);F.setStyle(n,z);F.setStyle(m,z)}return F},unclip:function(){var F=this,H=F.dom;if(E(H,e)){E(H,e,false);var G=E(H,C);if(G.o){F.setStyle(k,G.o)}if(G.x){F.setStyle(n,G.x)}if(G.y){F.setStyle(m,G.y)}}return F},addStyles:function(M,L){var J=0,K=M.match(b),I,H,G,F=K.length;for(G=0;Ga.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.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.OFFSETS=3;Ext.Element.ASCLASS=4;Ext.Element.visibilityCls="x-hide-nosize";Ext.Element.addMethods(function(){var e=Ext.Element,p="opacity",j="visibility",g="display",d="hidden",n="offsets",k="asclass",m="none",a="nosize",b="originalDisplay",c="visibilityMode",h="isVisible",i=e.data,l=function(r){var q=i(r,b);if(q===undefined){i(r,b,q="")}return q},o=function(r){var q=i(r,c);if(q===undefined){i(r,c,q=1)}return q};return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(q){i(this.dom,c,q);return this},animate:function(r,t,s,u,q){this.anim(r,{duration:t,callback:s,easing:u},q);return this},anim:function(t,u,r,w,s,q){r=r||"run";u=u||{};var v=this,x=Ext.lib.Anim[r](v.dom,t,(u.duration||w)||0.35,(u.easing||s)||"easeOut",function(){if(q){q.call(v)}if(u.callback){u.callback.call(u.scope||v,v,u)}},v);u.anim=x;return x},preanim:function(q,r){return !q[r]?false:(typeof q[r]=="object"?q[r]:{duration:q[r+1],callback:q[r+2],easing:q[r+3]})},isVisible:function(){var q=this,s=q.dom,r=i(s,h);if(typeof r=="boolean"){return r}r=!q.isStyle(j,d)&&!q.isStyle(g,m)&&!((o(s)==e.ASCLASS)&&q.hasClass(q.visibilityCls||e.visibilityCls));i(s,h,r);return r},setVisible:function(t,q){var w=this,r,y,x,v,u=w.dom,s=o(u);if(typeof q=="string"){switch(q){case g:s=e.DISPLAY;break;case j:s=e.VISIBILITY;break;case n:s=e.OFFSETS;break;case a:case k:s=e.ASCLASS;break}w.setVisibilityMode(s);q=false}if(!q||!w.anim){if(s==e.ASCLASS){w[t?"removeClass":"addClass"](w.visibilityCls||e.visibilityCls)}else{if(s==e.DISPLAY){return w.setDisplayed(t)}else{if(s==e.OFFSETS){if(!t){w.hideModeStyles={position:w.getStyle("position"),top:w.getStyle("top"),left:w.getStyle("left")};w.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"})}else{w.applyStyles(w.hideModeStyles||{position:"",top:"",left:""});delete w.hideModeStyles}}else{w.fixDisplay();u.style.visibility=t?"visible":d}}}}else{if(t){w.setOpacity(0.01);w.setVisible(true)}w.anim({opacity:{to:(t?1:0)}},w.preanim(arguments,1),null,0.35,"easeIn",function(){t||w.setVisible(false).setOpacity(1)})}i(u,h,t);return w},hasMetrics:function(){var q=this.dom;return this.isVisible()||(o(q)==e.VISIBILITY)},toggle:function(q){var r=this;r.setVisible(!r.isVisible(),r.preanim(arguments,0));return r},setDisplayed:function(q){if(typeof q=="boolean"){q=q?l(this.dom):m}this.setStyle(g,q);return this},fixDisplay:function(){var q=this;if(q.isStyle(g,m)){q.setStyle(j,d);q.setStyle(g,l(this.dom));if(q.isStyle(g,m)){q.setStyle(g,"block")}}},hide:function(q){if(typeof q=="string"){this.setVisible(false,q);return this}this.setVisible(false,this.preanim(arguments,0));return this},show:function(q){if(typeof q=="string"){this.setVisible(true,q);return this}this.setVisible(true,this.preanim(arguments,0));return this}}}());(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;Ext.CompositeElementLite.importElementMethods=function(){var c,b=Ext.Element.prototype,a=Ext.CompositeElementLite.prototype;for(c in b){if(typeof b[c]=="function"){(function(d){a[d]=a[d]||function(){return this.invoke(d,arguments)}}).call(a,c)}}};Ext.CompositeElementLite.importElementMethods();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;(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:Ext.num(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.applyIf(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.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 json?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"){return isFinite(o)?String(o):"null"}else{if(Ext.isBoolean(o)){return String(o)}else{var a=["{"],b,i,v;for(i in o){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
      ';e.body.appendChild(g);d=g.lastChild;if((c=e.defaultView)){if(c.getComputedStyle(g.firstChild.firstChild,null).marginRight!="0px"){b.correctRightMargin=false}if(c.getComputedStyle(d,null).backgroundColor!="transparent"){b.correctTransparentColor=false}}b.cssFloat=!!d.style.cssFloat;e.body.removeChild(g)};if(Ext.isReady){a()}else{Ext.onReady(a)}})();Ext.EventObject=function(){var b=Ext.lib.Event,c=/(dbl)?click/,a={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},d=Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2};Ext.EventObjectImpl=function(g){if(g){this.setEvent(g.browserEvent||g)}};Ext.EventObjectImpl.prototype={setEvent:function(h){var g=this;if(h==g||(h&&h.browserEvent)){return h}g.browserEvent=h;if(h){g.button=h.button?d[h.button]:(h.which?h.which-1:-1);if(c.test(h.type)&&g.button==-1){g.button=0}g.type=h.type;g.shiftKey=h.shiftKey;g.ctrlKey=h.ctrlKey||h.metaKey||false;g.altKey=h.altKey;g.keyCode=h.keyCode;g.charCode=h.charCode;g.target=b.getTarget(h);g.xy=b.getXY(h)}else{g.button=-1;g.shiftKey=false;g.ctrlKey=false;g.altKey=false;g.keyCode=0;g.charCode=0;g.target=null;g.xy=[0,0]}return g},stopEvent:function(){var e=this;if(e.browserEvent){if(e.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(e)}b.stopEvent(e.browserEvent)}},preventDefault:function(){if(this.browserEvent){b.preventDefault(this.browserEvent)}},stopPropagation:function(){var e=this;if(e.browserEvent){if(e.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(e)}b.stopPropagation(e.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(e){return Ext.isSafari?(a[e]||e):e},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(g,h,e){return g?Ext.fly(this.target).findParent(g,h,e):(e?Ext.get(this.target):this.target)},getRelatedTarget:function(){return this.browserEvent?b.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var g=this.browserEvent;var h=0;if(g.wheelDelta){h=g.wheelDelta/120}else{if(g.detail){h=-g.detail/3}}return h},within:function(h,i,e){if(h){var g=this[i?"getRelatedTarget":"getTarget"]();return g&&((e?(g==Ext.getDom(h)):false)||Ext.fly(h).contains(g))}return false}};return new Ext.EventObjectImpl()}();Ext.Loader=Ext.apply({},{load:function(j,i,k,c){var k=k||this,g=document.getElementsByTagName("head")[0],b=document.createDocumentFragment(),a=j.length,h=0,e=this;var l=function(m){g.appendChild(e.buildScriptTag(j[m],d))};var d=function(){h++;if(a==h&&typeof i=="function"){i.call(k)}else{if(c===true){l(h)}}};if(c===true){l.call(this,0)}else{Ext.each(j,function(n,m){b.appendChild(this.buildScriptTag(n,d))},this);g.appendChild(b)}},buildScriptTag:function(b,c){var a=document.createElement("script");a.type="text/javascript";a.src=b;if(a.readyState){a.onreadystatechange=function(){if(a.readyState=="loaded"||a.readyState=="complete"){a.onreadystatechange=null;c()}}}else{a.onload=c}return a}});Ext.ns("Ext.grid","Ext.list","Ext.dd","Ext.tree","Ext.form","Ext.menu","Ext.state","Ext.layout.boxOverflow","Ext.app","Ext.ux","Ext.chart","Ext.direct","Ext.slider");Ext.apply(Ext,function(){var c=Ext,a=0,b=null;return{emptyFn:function(){},BLANK_IMAGE_URL:Ext.isIE6||Ext.isIE7||Ext.isAir?"http://www.extjs.com/s.gif":"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",extendX:function(d,e){return Ext.extend(d,e(d.prototype))},getDoc:function(){return Ext.get(document)},num:function(e,d){e=Number(Ext.isEmpty(e)||Ext.isArray(e)||typeof e=="boolean"||(typeof e=="string"&&e.trim().length==0)?NaN:e);return isNaN(e)?d:e},value:function(g,d,e){return Ext.isEmpty(g,e)?d:g},escapeRe:function(d){return d.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},sequence:function(h,d,g,e){h[d]=h[d].createSequence(g,e)},addBehaviors:function(i){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(i)})}else{var e={},h,d,g;for(d in i){if((h=d.split("@"))[1]){g=h[0];if(!e[g]){e[g]=Ext.select(g)}e[g].on(h[1],i[d])}}e=null}},getScrollBarWidth:function(g){if(!Ext.isReady){return 0}if(g===true||b===null){var i=Ext.getBody().createChild('
      '),h=i.child("div",true);var e=h.offsetWidth;i.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");var d=h.offsetWidth;i.remove();b=e-d+2}return b},combine:function(){var g=arguments,e=g.length,j=[];for(var h=0;hh?1:-1};Ext.each(d,function(h){g=e(g,h)==1?g:h});return g},mean:function(d){return d.length>0?Ext.sum(d)/d.length:undefined},sum:function(d){var e=0;Ext.each(d,function(g){e+=g});return e},partition:function(d,e){var g=[[],[]];Ext.each(d,function(j,k,h){g[(e&&e(j,k,h))||(!e&&j)?0:1].push(j)});return g},invoke:function(d,e){var h=[],g=Array.prototype.slice.call(arguments,2);Ext.each(d,function(j,k){if(j&&typeof j[e]=="function"){h.push(j[e].apply(j,g))}else{h.push(undefined)}});return h},pluck:function(d,g){var e=[];Ext.each(d,function(h){e.push(h[g])});return e},zip:function(){var n=Ext.partition(arguments,function(i){return typeof i!="function"}),k=n[0],m=n[1][0],d=Ext.max(Ext.pluck(k,"length")),h=[];for(var l=0;l=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom)},getArea:function(){var a=this;return((a.bottom-a.top)*(a.right-a.left))},intersect:function(h){var g=this,d=Math.max(g.top,h.top),e=Math.min(g.right,h.right),a=Math.min(g.bottom,h.bottom),c=Math.max(g.left,h.left);if(a>=d&&e>=c){return new Ext.lib.Region(d,e,a,c)}},union:function(h){var g=this,d=Math.min(g.top,h.top),e=Math.max(g.right,h.right),a=Math.max(g.bottom,h.bottom),c=Math.min(g.left,h.left);return new Ext.lib.Region(d,e,a,c)},constrainTo:function(b){var a=this;a.top=a.top.constrain(b.top,b.bottom);a.bottom=a.bottom.constrain(b.top,b.bottom);a.left=a.left.constrain(b.left,b.right);a.right=a.right.constrain(b.left,b.right);return a},adjust:function(d,c,a,g){var e=this;e.top+=d;e.left+=c;e.right+=g;e.bottom+=a;return e}};Ext.lib.Region.getRegion=function(e){var h=Ext.lib.Dom.getXY(e),d=h[1],g=h[0]+e.offsetWidth,a=h[1]+e.offsetHeight,c=h[0];return new Ext.lib.Region(d,g,a,c)};Ext.lib.Point=function(a,c){if(Ext.isArray(a)){c=a[1];a=a[0]}var b=this;b.x=b.right=b.left=b[0]=a;b.y=b.top=b.bottom=b[1]=c};Ext.lib.Point.prototype=new Ext.lib.Region();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;q0){return setTimeout(d,c)}d();return 0},createSequence:function(c,b,a){if(!Ext.isFunction(b)){return c}else{return function(){var d=c.apply(this||window,arguments);b.apply(a||this||window,arguments);return d}}}};Ext.defer=Ext.util.Functions.defer;Ext.createInterceptor=Ext.util.Functions.createInterceptor;Ext.createSequence=Ext.util.Functions.createSequence;Ext.createDelegate=Ext.util.Functions.createDelegate;Ext.apply(Ext.util.Observable.prototype,function(){function a(j){var i=(this.methodEvents=this.methodEvents||{})[j],d,c,g,h=this;if(!i){this.methodEvents[j]=i={};i.originalFn=this[j];i.methodName=j;i.before=[];i.after=[];var b=function(l,k,e){if((c=l.apply(k||h,e))!==undefined){if(typeof c=="object"){if(c.returnValue!==undefined){d=c.returnValue}else{d=c}g=!!c.cancel}else{if(c===false){g=true}else{d=c}}}};this[j]=function(){var l=Array.prototype.slice.call(arguments,0),k;d=c=undefined;g=false;for(var m=0,e=i.before.length;m=525:!((Ext.isGecko&&!Ext.isWindows)||Ext.isOpera);return{_unload:function(){Ext.EventManager.un(window,"resize",this.fireWindowResize,this);c.call(Ext.EventManager)},doResizeEvent:function(){var m=a.getViewHeight(),l=a.getViewWidth();if(h!=m||i!=l){d.fire(i=l,h=m)}},onWindowResize:function(n,m,l){if(!d){d=new Ext.util.Event();k=new Ext.util.DelayedTask(this.doResizeEvent);Ext.EventManager.on(window,"resize",this.fireWindowResize,this)}d.addListener(n,m,l)},fireWindowResize:function(){if(d){k.delay(100)}},onTextResize:function(o,n,l){if(!g){g=new Ext.util.Event();var m=new Ext.Element(document.createElement("div"));m.dom.className="x-text-resize";m.dom.innerHTML="X";m.appendTo(document.body);b=m.dom.offsetHeight;setInterval(function(){if(m.dom.offsetHeight!=b){g.fire(b,b=m.dom.offsetHeight)}},this.textResizeInterval)}g.addListener(o,n,l)},removeResizeListener:function(m,l){if(d){d.removeListener(m,l)}},fireResize:function(){if(d){d.fire(a.getViewWidth(),a.getViewHeight())}},textResizeInterval:50,ieDeferSrc:false,getKeyEvent:function(){return e?"keydown":"keypress"},useKeydown:e}}());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)}});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(lB){p=B-q;m=true}if((o+C)>g){o=g-C;m=true}if(p"+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)}}}}());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({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 false}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.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)}});Ext.CompositeElementLite.importElementMethods();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;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()]},formatContainsHourInfo:(function(){var d=/(\\.)/g,c=/([gGhHisucUOPZ]|M\$)/;return function(e){return c.test(e.replace(d,""))}})(),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:"String.leftPad(this.getFullYear(), 4, '0')",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 < 100 ? 100 : y, 0, 1, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","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 < 100 ? 100 : y, m, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","}","}","}","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,o=1,g=[],l=[],k=false,d="",j=0,h,n;for(;j Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:function(){return a("A")},A:{calcLast:true,g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|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},getConstrainOffset:function(){return this.shadowOffset},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},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,i=0,p=(q+n.w),e=(g+n.h),j=p+"px",o=e+"px",m,c;u.left=(b+n.l)+"px";u.top=(r+n.t)+"px";if(u.width!=j||u.height!=o){u.width=j;u.height=o;if(!Ext.isIE){m=k.childNodes;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=[],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&&this.layout.setActiveItem){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(e,b){var d=arguments,h=d.length,a=[],g,j;this.initItems();if(h>2){for(g=h-1;g>=1;--g){a.push(this.insert(e,d[g]))}return a}j=this.lookupComponent(this.applyDefaults(b));e=Math.min(e,this.items.length);if(this.fireEvent("beforeadd",this,j,e)!==false&&this.onBeforeAdd(j)!==false){if(j.ownerCt==this){this.items.remove(j)}this.items.insert(e,j);j.onAdded(this,e);this.onAdd(j);this.fireEvent("add",this,j,e)}return j},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.isAction?b.initialConfig: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(this.container){this.container.un(this.container.resizeEvent,this.onResize,this)}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 b=this.container.getLayoutTarget(),a={};if(b){a=b.getViewSize();if(Ext.isIE&&Ext.isStrict&&a.width==0){a=b.getStyleSize()}a.width-=b.getPadding("lr");a.height-=b.getPadding("tb")}return a},onLayout:function(m,w){Ext.layout.AnchorLayout.superclass.onLayout.call(this,m,w);var p=this.getLayoutTargetSize(),k=p.width,o=p.height,q=w.getStyle("overflow"),n=this.getRenderedItems(m),t=n.length,g=[],j,a,v,l,h,c,e,d,u=0,s,b;if(k<20&&o<20){return}if(m.anchorSize){if(typeof m.anchorSize=="number"){a=m.anchorSize}else{a=m.anchorSize.width;v=m.anchorSize.height}}else{a=m.initialConfig.width;v=m.initialConfig.height}for(s=0;s 
    ');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.expandToolEl=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.destroyMembers(this,"miniCollapsedEl","collapsedEl","expandToolEl")}};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:true,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=Ext.isDefined(a.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)}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)}}},isValidParent:function(b,a){return b.getPositionEl().up("table",5).dom.parentNode===(a.dom||a)},destroy:function(){delete this.table;Ext.layout.TableLayout.superclass.destroy.call(this)}});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)}var d=this.overflowHandler;if(typeof d=="string"){d={type:d}}var c="none";if(d&&d.type!=undefined){c=d.type}var b=Ext.layout.boxOverflow[c];if(b[this.type]){b=b[this.type]}this.overflowHandler=new b(this,d)},onLayout:function(b,h){Ext.layout.BoxLayout.superclass.onLayout.call(this,b,h);var d=this.getLayoutTargetSize(),i=this.getVisibleItems(b),c=this.calculateChildBoxes(i,d),g=c.boxes,j=c.meta;if(d.width>0){var k=this.overflowHandler,a=j.tooNarrow?"handleOverflow":"clearOverflow";var e=k[a](c,d);if(e){if(e.targetSize){d=e.targetSize}if(e.recalculate){i=this.getVisibleItems(b);c=this.calculateChildBoxes(i,d);g=c.boxes}}}this.layoutTargetLastSize=d;this.childBoxCache=c;this.updateInnerCtSize(d,c);this.updateChildBoxes(g);this.handleTargetOverflow(d,b,h)},updateChildBoxes:function(c){for(var b=0,e=c.length;b(None)
    ',constructor:function(a){Ext.layout.boxOverflow.Menu.superclass.constructor.apply(this,arguments);this.menuItems=[]},createInnerElements:function(){if(!this.afterCt){this.afterCt=this.layout.innerCt.insertSibling({cls:this.afterCls},"before")}},clearOverflow:function(a,g){var e=g.width+(this.afterCt?this.afterCt.getWidth():0),b=this.menuItems;this.hideTrigger();for(var c=0,d=b.length;ci.width;return l}},handleOverflow:function(d,h){this.showTrigger();var k=h.width-this.afterCt.getWidth(),l=d.boxes,e=0,r=false;for(var o=0,c=l.length;o=0;j--){var q=l[j].component,p=l[j].left+l[j].width;if(p>=k){this.menuItems.unshift({component:q,width:l[j].width});q.hide()}else{break}}}if(this.menuItems.length==0){this.hideTrigger()}return{targetSize:{height:h.height,width:k},recalculate:r}}});Ext.layout.boxOverflow.menu.hbox=Ext.layout.boxOverflow.HorizontalMenu;Ext.layout.boxOverflow.Scroller=Ext.extend(Ext.layout.boxOverflow.None,{animateScroll:true,scrollIncrement:100,wheelIncrement:3,scrollRepeatInterval:400,scrollDuration:0.4,beforeCls:"x-strip-left",afterCls:"x-strip-right",scrollerCls:"x-strip-scroller",beforeScrollerCls:"x-strip-scroller-left",afterScrollerCls:"x-strip-scroller-right",createWheelListener:function(){this.layout.innerCt.on({scope:this,mousewheel:function(a){a.stopEvent();this.scrollBy(a.getWheelDelta()*this.wheelIncrement*-1,false)}})},handleOverflow:function(a,b){this.createInnerElements();this.showScrollers()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){this.createScrollers();this.beforeScroller.show();this.afterScroller.show();this.updateScrollButtons()},hideScrollers:function(){if(this.beforeScroller!=undefined){this.beforeScroller.hide();this.afterScroller.hide()}},createScrollers:function(){if(!this.beforeScroller&&!this.afterScroller){var a=this.beforeCt.createChild({cls:String.format("{0} {1} ",this.scrollerCls,this.beforeScrollerCls)});var b=this.afterCt.createChild({cls:String.format("{0} {1}",this.scrollerCls,this.afterScrollerCls)});a.addClassOnOver(this.beforeScrollerCls+"-hover");b.addClassOnOver(this.afterScrollerCls+"-hover");a.setVisibilityMode(Ext.Element.DISPLAY);b.setVisibilityMode(Ext.Element.DISPLAY);this.beforeRepeater=new Ext.util.ClickRepeater(a,{interval:this.scrollRepeatInterval,handler:this.scrollLeft,scope:this});this.afterRepeater=new Ext.util.ClickRepeater(b,{interval:this.scrollRepeatInterval,handler:this.scrollRight,scope:this});this.beforeScroller=a;this.afterScroller=b}},destroy:function(){Ext.destroy(this.beforeScroller,this.afterScroller,this.beforeRepeater,this.afterRepeater,this.beforeCt,this.afterCt)},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getItem:function(a){if(Ext.isString(a)){a=Ext.getCmp(a)}else{if(Ext.isNumber(a)){a=this.items[a]}}return a},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){if(this.beforeScroller==undefined||this.afterScroller==undefined){return}var d=this.atExtremeBefore()?"addClass":"removeClass",c=this.atExtremeAfter()?"addClass":"removeClass",a=this.beforeScrollerCls+"-disabled",b=this.afterScrollerCls+"-disabled";this.beforeScroller[d](a);this.afterScroller[c](b);this.scrolling=false},atExtremeBefore:function(){return this.getScrollPosition()===0},scrollLeft:function(a){this.scrollBy(-this.scrollIncrement,a)},scrollRight:function(a){this.scrollBy(this.scrollIncrement,a)},scrollToItem:function(d,b){d=this.getItem(d);if(d!=undefined){var a=this.getItemVisibility(d);if(!a.fullyVisible){var c=d.getBox(true,true),e=c.x;if(a.hiddenRight){e-=(this.layout.innerCt.getWidth()-c.width)}this.scrollTo(e,b)}}},getItemVisibility:function(e){var d=this.getItem(e).getBox(true,true),a=d.x,c=d.x+d.width,g=this.getScrollPosition(),b=this.layout.innerCt.getWidth()+g;return{hiddenLeft:ab,fullyVisible:a>g&&c=this.getMaxScrollBottom()}});Ext.layout.boxOverflow.scroller.vbox=Ext.layout.boxOverflow.VerticalScroller;Ext.layout.boxOverflow.HorizontalScroller=Ext.extend(Ext.layout.boxOverflow.Scroller,{handleOverflow:function(a,b){Ext.layout.boxOverflow.HorizontalScroller.superclass.handleOverflow.apply(this,arguments);return{targetSize:{height:b.height,width:b.width-(this.beforeCt.getWidth()+this.afterCt.getWidth())}}},createInnerElements:function(){var a=this.layout.innerCt;if(!this.beforeCt){this.afterCt=a.insertSibling({cls:this.afterCls},"before");this.beforeCt=a.insertSibling({cls:this.beforeCls},"before");this.createWheelListener()}},scrollTo:function(a,b){var d=this.getScrollPosition(),c=a.constrain(0,this.getMaxScrollRight());if(c!=d&&!this.scrolling){if(b==undefined){b=this.animateScroll}this.layout.innerCt.scrollTo("left",c,b?this.getScrollAnim():false);if(b){this.scrolling=true}else{this.scrolling=false;this.updateScrollButtons()}}},getScrollPosition:function(){return parseInt(this.layout.innerCt.dom.scrollLeft,10)||0},getMaxScrollRight:function(){return this.layout.innerCt.dom.scrollWidth-this.layout.innerCt.getWidth()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollRight()}});Ext.layout.boxOverflow.scroller.hbox=Ext.layout.boxOverflow.HorizontalScroller;Ext.layout.HBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"top",type:"hbox",calculateChildBoxes:function(r,b){var F=r.length,R=this.padding,D=R.top,U=R.left,y=D+R.bottom,O=U+R.right,a=b.width-this.scrollOffset,e=b.height,o=Math.max(0,e-y),P=this.pack=="start",W=this.pack=="center",A=this.pack=="end",L=0,Q=0,T=0,l=0,X=0,H=[],k,J,M,V,w,j,S,I,c,x,q,N;for(S=0;Sa;var n=Math.max(0,a-L-O);if(p){for(S=0;S0){var C=[];for(var E=0,v=F;Ei.available?1:-1});for(var S=0,v=C.length;S0){I.top=D+q+(z/2)}}U+=I.width+w.right}return{boxes:H,meta:{maxHeight:Q,nonFlexWidth:L,desiredWidth:l,minimumWidth:X,shortfall:l-a,tooNarrow:p}}}});Ext.Container.LAYOUTS.hbox=Ext.layout.HBoxLayout;Ext.layout.VBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"left",type:"vbox",calculateChildBoxes:function(o,b){var E=o.length,R=this.padding,C=R.top,V=R.left,x=C+R.bottom,O=V+R.right,a=b.width-this.scrollOffset,c=b.height,K=Math.max(0,a-O),P=this.pack=="start",X=this.pack=="center",z=this.pack=="end",k=0,u=0,U=0,L=0,m=0,G=[],h,I,N,W,t,g,T,H,S,w,n,d,r;for(T=0;Tc;var q=Math.max(0,(c-k-x));if(l){for(T=0,r=E;T0){var J=[];for(var D=0,r=E;Di.available?1:-1});for(var T=0,r=J.length;T0){H.left=V+w+(y/2)}}C+=H.height+t.bottom}return{boxes:G,meta:{maxWidth:u,nonFlexHeight:k,desiredHeight:L,minimumHeight:m,shortfall:L-c,tooNarrow:l}}}});Ext.Container.LAYOUTS.vbox=Ext.layout.VBoxLayout;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','','{altText}',"","")}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)}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(d){var a=d instanceof Ext.menu.Item,b=!(a||d instanceof Ext.menu.Separator);return{isMenuItem:a,needsIcon:b&&(d.icon||d.iconCls),icon:d.icon||Ext.BLANK_IMAGE_URL,iconCls:"x-menu-item-icon "+(d.iconCls||""),itemId:"x-menu-el-"+d.id,itemCls:"x-menu-list-item ",altText:d.altText||""}},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||Ext.isIE9)?"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",alt:"",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=this.el.getFrameWidth("tb")+this.bwrap.getFrameWidth("tb");a+=(this.tbar?this.tbar.getHeight():0)+(this.bbar?this.bbar.getHeight():0);if(this.frame){a+=this.el.dom.firstChild.offsetHeight+this.ft.dom.offsetHeight+this.mc.getFrameWidth("tb")}else{a+=(this.header?this.header.getHeight():0)+(this.footer?this.footer.getHeight():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||(Ext.isIE7&&Ext.isStrict)){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)}},destroy:function(){Ext.destroyMembers(this,"tracker","el")}});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,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);(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);delete this.el},onMouseDown:function(b,a){if(this.fireEvent("mousedown",this,b)!==false&&this.onBeforeStart(b)!==false){this.startXY=this.lastXY=b.getXY();this.dragTarget=this.delegate?a:this.el.dom;if(this.preventDefault!==false){b.preventDefault()}Ext.getDoc().on({scope:this,mouseup:this.onMouseUp,mousemove:this.onMouseMove,selectstart:this.stopSelect});if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this,[b])}}},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(d)}else{return}}this.fireEvent("mousemove",this,d);this.onDrag(d);this.fireEvent("drag",this,d)},onMouseUp:function(c){var b=Ext.getDoc(),a=this.active;b.un("mousemove",this.onMouseMove,this);b.un("mouseup",this.onMouseUp,this);b.un("selectstart",this.stopSelect,this);c.preventDefault();this.clearStart();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(a);this.fireEvent("dragstart",this,a)},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),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 o=m.ddScrollConfig?m.ddScrollConfig.ddGroup:undefined,n=(m.ddScrollConfig&&m.ddScrollConfig.frequency)?m.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;if(o===undefined||c.dragCurrent.ddGroup==o){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;m]+>/gi,asText:function(a){return String(a).replace(this.stripTagsRE,"")},asUCText:function(a){return String(a).toUpperCase().replace(this.stripTagsRE,"")},asUCString:function(a){return String(a).toUpperCase()},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(a){var b=parseFloat(String(a).replace(/,/g,""));return isNaN(b)?0:b},asInt:function(a){var b=parseInt(String(a).replace(/,/g,""),10);return isNaN(b)?0:b}};Ext.data.Record=function(a,b){this.id=(b||b===0)?b:Ext.data.Record.id(this);this.data=a||{}};Ext.data.Record.create=function(e){var c=Ext.extend(Ext.data.Record,{});var d=c.prototype;d.fields=new Ext.util.MixedCollection(false,function(g){return g.name});for(var b=0,a=e.length;b-1){a.join(null);this.data.removeAt(b)}if(this.pruneModifiedRecords){this.modified.remove(a)}if(this.snapshot){this.snapshot.remove(a)}if(b>-1){this.fireEvent("remove",this,a,b)}},removeAt:function(a){this.remove(this.getAt(a))},removeAll:function(b){var a=[];this.each(function(c){a.push(c)});this.clearData();if(this.snapshot){this.snapshot.clear()}if(this.pruneModifiedRecords){this.modified=[]}if(b!==true){this.fireEvent("clear",this,a)}},onClear:function(b,a){Ext.each(a,function(d,c){this.destroyRecord(this,d,c)},this)},insert:function(d,c){var e,a,b;c=[].concat(c);for(e=0,a=c.length;e=0;d--){if(b[d].phantom===true){var a=b.splice(d,1).shift();if(a.isValid()){g.push(a)}}else{if(!b[d].isValid()){b.splice(d,1)}}}if(g.length){h.push(["create",g])}if(b.length){h.push(["update",b])}}j=h.length;if(j){e=++this.batchCounter;for(d=0;d=0;b--){this.modified.splice(this.modified.indexOf(a[b]),1)}}else{this.modified.splice(this.modified.indexOf(a),1)}},reMap:function(b){if(Ext.isArray(b)){for(var d=0,a=b.length;d=0;c--){this.insert(b[c].lastIndex,b[c])}}},handleException:function(a){Ext.handleError(a)},reload:function(a){this.load(Ext.applyIf(a||{},this.lastOptions))},loadRecords:function(b,l,h){var e,g;if(this.isDestroyed===true){return}if(!b||h===false){if(h!==false){this.fireEvent("load",this,[],l)}if(l.callback){l.callback.call(l.scope||this,[],l,false,b)}return}var a=b.records,j=b.totalRecords||a.length;if(!l||l.add!==true){if(this.pruneModifiedRecords){this.modified=[]}for(e=0,g=a.length;e-1){this.doUpdate(d)}else{k.push(d);++c}}this.totalLength=Math.max(j,this.data.length+c);this.add(k)}this.fireEvent("load",this,a,l);if(l.callback){l.callback.call(l.scope||this,a,l,true)}},loadData:function(c,a){var b=this.reader.readRecords(c);this.loadRecords(b,{add:a},true)},getCount:function(){return this.data.length||0},getTotalCount:function(){return this.totalLength||0},getSortState:function(){return this.sortInfo},applySort:function(){if((this.sortInfo||this.multiSortInfo)&&!this.remoteSort){this.sortData()}},sortData:function(){var a=this.hasMultiSort?this.multiSortInfo:this.sortInfo,k=a.direction||"ASC",h=a.sorters,c=[];if(!this.hasMultiSort){h=[{direction:k,field:a.field}]}for(var d=0,b=h.length;d1){for(var p=1,o=c.length;ph?1:(i=0;b--){if(Ext.isArray(c)){this.realize(a.splice(b,1).shift(),c.splice(b,1).shift())}else{this.realize(a.splice(b,1).shift(),c)}}}else{if(Ext.isArray(c)&&c.length==1){c=c.shift()}if(!this.isData(c)){throw new Ext.data.DataReader.Error("realize",a)}a.phantom=false;a._phid=a.id;a.id=this.getId(c);a.data=c;a.commit();a.store.reMap(a)}},update:function(a,c){if(Ext.isArray(a)){for(var b=a.length-1;b>=0;b--){if(Ext.isArray(c)){this.update(a.splice(b,1).shift(),c.splice(b,1).shift())}else{this.update(a.splice(b,1).shift(),c)}}}else{if(Ext.isArray(c)&&c.length==1){c=c.shift()}if(this.isData(c)){a.data=Ext.apply(a.data,c)}a.commit()}},extractData:function(k,a){var j=(this instanceof Ext.data.JsonReader)?"json":"node";var c=[];if(this.isData(k)&&!(this instanceof Ext.data.XmlReader)){k=[k]}var h=this.recordType.prototype.fields,o=h.items,m=h.length,c=[];if(a===true){var l=this.recordType;for(var e=0;e=0){return new Function("obj","return obj"+(b>0?".":"")+c)}return function(d){return d[c]}}}(),extractValues:function(h,d,a){var g,c={};for(var e=0;e<\u003fxml version="{version}" encoding="{encoding}"\u003f><{documentRoot}><{name}>{value}<{root}><{parent.record}><{name}>{value}',render:function(b,c,a){c=this.toArray(c);b.xmlData=this.tpl.applyTemplate({version:this.xmlVersion,encoding:this.xmlEncoding,documentRoot:(c.length>0||this.forceDocumentRoot===true)?this.documentRoot:false,record:this.meta.record,root:this.root,baseParams:c,records:(Ext.isArray(a[0]))?a:[a]})},createRecord:function(a){return this.toArray(this.toHash(a))},updateRecord:function(a){return this.toArray(this.toHash(a))},destroyRecord:function(b){var a={};a[this.meta.idProperty]=b.id;return this.toArray(a)}});Ext.data.XmlReader=function(a,b){a=a||{};Ext.applyIf(a,{idProperty:a.idProperty||a.idPath||a.id,successProperty:a.successProperty||a.success});Ext.data.XmlReader.superclass.constructor.call(this,a,b||a.fields)};Ext.extend(Ext.data.XmlReader,Ext.data.DataReader,{read:function(a){var b=a.responseXML;if(!b){throw {message:"XmlReader.read: XML Document not available"}}return this.readRecords(b)},readRecords:function(d){this.xmlData=d;var a=d.documentElement||d,c=Ext.DomQuery,g=0,e=true;if(this.meta.totalProperty){g=this.getTotal(a,0)}if(this.meta.successProperty){e=this.getSuccess(a)}var b=this.extractData(c.select(this.meta.record,a),true);return{success:e,records:b,totalRecords:g||b.length}},readResponse:function(g,b){var e=Ext.DomQuery,h=b.responseXML,a=h.documentElement||h;var c=new Ext.data.Response({action:g,success:this.getSuccess(a),message:this.getMessage(a),data:this.extractData(e.select(this.meta.record,a)||e.select(this.meta.root,a),false),raw:h});if(Ext.isEmpty(c.success)){throw new Ext.data.DataReader.Error("successProperty-response",this.meta.successProperty)}if(g===Ext.data.Api.actions.create){var d=Ext.isDefined(c.data);if(d&&Ext.isEmpty(c.data)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root)}else{if(!d){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root)}}}return c},getSuccess:function(){return true},buildExtractors:function(){if(this.ef){return}var l=this.meta,h=this.recordType,e=h.prototype.fields,k=e.items,j=e.length;if(l.totalProperty){this.getTotal=this.createAccessor(l.totalProperty)}if(l.successProperty){this.getSuccess=this.createAccessor(l.successProperty)}if(l.messageProperty){this.getMessage=this.createAccessor(l.messageProperty)}this.getRoot=function(g){return(!Ext.isEmpty(g[this.meta.record]))?g[this.meta.record]:g[this.meta.root]};if(l.idPath||l.idProperty){var d=this.createAccessor(l.idPath||l.idProperty);this.getId=function(g){var i=d(g)||g.id;return(i===undefined||i==="")?null:i}}else{this.getId=function(){return null}}var c=[];for(var b=0;b0&&c[0].field==this.groupField){c.shift()}this.groupField=e;this.groupDir=d;this.applyGroupField();var b=function(){this.fireEvent("groupchange",this,this.getGroupState())};if(this.groupOnSort){this.sort(e,d);b.call(this);return}if(this.remoteGroup){this.on("load",b,this,{single:true});this.reload()}else{this.sort(c);b.call(this)}},sort:function(h,c){if(this.remoteSort){return Ext.data.GroupingStore.superclass.sort.call(this,h,c)}var g=[];if(Ext.isArray(arguments[0])){g=arguments[0]}else{if(h==undefined){g=this.sortInfo?[this.sortInfo]:[]}else{var e=this.fields.get(h);if(!e){return false}var b=e.name,a=this.sortInfo||null,d=this.sortToggle?this.sortToggle[b]:null;if(!c){if(a&&a.field==b){c=(this.sortToggle[b]||"ASC").toggle("ASC","DESC")}else{c=e.sortDir}}this.sortToggle[b]=c;this.sortInfo={field:b,direction:c};g=[this.sortInfo]}}if(this.groupField){g.unshift({direction:this.groupDir,field:this.groupField})}return this.multiSort.call(this,g,c)},applyGroupField:function(){if(this.remoteGroup){if(!this.baseParams){this.baseParams={}}Ext.apply(this.baseParams,{groupBy:this.groupField,groupDir:this.groupDir});var a=this.lastOptions;if(a&&a.params){a.params.groupDir=this.groupDir;delete a.params.groupBy}}},applyGrouping:function(a){if(this.groupField!==false){this.groupBy(this.groupField,true,this.groupDir);return true}else{if(a===true){this.fireEvent("datachanged",this)}return false}},getGroupState:function(){return this.groupOnSort&&this.groupField!==false?(this.sortInfo?this.sortInfo.field:undefined):this.groupField}});Ext.reg("groupingstore",Ext.data.GroupingStore);Ext.data.DirectProxy=function(a){Ext.apply(this,a);if(typeof this.paramOrder=="string"){this.paramOrder=this.paramOrder.split(/[\s,|]/)}Ext.data.DirectProxy.superclass.constructor.call(this,a)};Ext.extend(Ext.data.DirectProxy,Ext.data.DataProxy,{paramOrder:undefined,paramsAsHash:true,directFn:undefined,doRequest:function(b,c,a,e,k,l,n){var j=[],h=this.api[b]||this.directFn;switch(b){case Ext.data.Api.actions.create:j.push(a.jsonData);break;case Ext.data.Api.actions.read:if(h.directCfg.method.len>0){if(this.paramOrder){for(var d=0,g=this.paramOrder.length;d1){for(var d=0,b=c.length;d0){this.doSend(a==1?this.callBuffer[0]:this.callBuffer);this.callBuffer=[]}},queueTransaction:function(a){if(a.form){this.processForm(a);return}this.callBuffer.push(a);if(this.enableBuffer){if(!this.callTask){this.callTask=new Ext.util.DelayedTask(this.combineAndSend,this)}this.callTask.delay(Ext.isNumber(this.enableBuffer)?this.enableBuffer:10)}else{this.combineAndSend()}},doCall:function(i,a,b){var h=null,e=b[a.len],g=b[a.len+1];if(a.len!==0){h=b.slice(0,a.len)}var d=new Ext.Direct.Transaction({provider:this,args:b,action:i,method:a.name,data:h,cb:g&&Ext.isFunction(e)?e.createDelegate(g):e});if(this.fireEvent("beforecall",this,d,a)!==false){Ext.Direct.addTransaction(d);this.queueTransaction(d);this.fireEvent("call",this,d,a)}},doForm:function(j,b,g,i,e){var d=new Ext.Direct.Transaction({provider:this,action:j,method:b.name,args:[g,i,e],cb:e&&Ext.isFunction(i)?i.createDelegate(e):i,isForm:true});if(this.fireEvent("beforecall",this,d,b)!==false){Ext.Direct.addTransaction(d);var a=String(g.getAttribute("enctype")).toLowerCase()=="multipart/form-data",h={extTID:d.tid,extAction:j,extMethod:b.name,extType:"rpc",extUpload:String(a)};Ext.apply(d,{form:Ext.getDom(g),isUpload:a,params:i&&Ext.isObject(i.params)?Ext.apply(h,i.params):h});this.fireEvent("call",this,d,b);this.processForm(d)}},processForm:function(a){Ext.Ajax.request({url:this.url,params:a.params,callback:this.onData,scope:this,form:a.form,isUpload:a.isUpload,ts:a})},createMethod:function(d,a){var b;if(!a.formHandler){b=function(){this.doCall(d,a,Array.prototype.slice.call(arguments,0))}.createDelegate(this)}else{b=function(e,g,c){this.doForm(d,a,e,g,c)}.createDelegate(this)}b.directCfg={action:d,method:a};return b},getTransaction:function(a){return a&&a.tid?Ext.Direct.getTransaction(a.tid):null},doCallback:function(c,g){var d=g.status?"success":"failure";if(c&&c.cb){var b=c.cb,a=Ext.isDefined(g.result)?g.result:g.data;if(Ext.isFunction(b)){b(a,g)}else{Ext.callback(b[d],b.scope,[a,g]);Ext.callback(b.callback,b.scope,[a,g])}}}});Ext.Direct.PROVIDERS.remoting=Ext.direct.RemotingProvider;Ext.Resizable=Ext.extend(Ext.util.Observable,{constructor:function(d,e){this.el=Ext.get(d);if(e&&e.wrap){e.resizeChild=this.el;this.el=this.el.wrap(typeof e.wrap=="object"?e.wrap:{cls:"xresizable-wrap"});this.el.id=this.el.dom.id=e.resizeChild.id+"-rzwrap";this.el.setStyle("overflow","hidden");this.el.setPositioning(e.resizeChild.getPositioning());e.resizeChild.clearPositioning();if(!e.width||!e.height){var g=e.resizeChild.getSize();this.el.setSize(g.width,g.height)}if(e.pinned&&!e.adjustments){e.adjustments="auto"}}this.proxy=this.el.createProxy({tag:"div",cls:"x-resizable-proxy",id:this.el.id+"-rzproxy"},Ext.getBody());this.proxy.unselectable();this.proxy.enableDisplayMode("block");Ext.apply(this,e);if(this.pinned){this.disableTrackOver=true;this.el.addClass("x-resizable-pinned")}var k=this.el.getStyle("position");if(k!="absolute"&&k!="fixed"){this.el.setStyle("position","relative")}if(!this.handles){this.handles="s,e,se";if(this.multiDirectional){this.handles+=",n,w"}}if(this.handles=="all"){this.handles="n s e w ne nw se sw"}var o=this.handles.split(/\s*?[,;]\s*?| /);var c=Ext.Resizable.positions;for(var j=0,l=o.length;j0){if(a>(e/2)){d=c+(e-a)}else{d=c-a}}return Math.max(b,d)},resizeElement:function(){var a=this.proxy.getBox();if(this.updateBox){this.el.setBox(a,false,this.animate,this.duration,null,this.easing)}else{this.el.setSize(a.width,a.height,this.animate,this.duration,null,this.easing)}this.updateChildSize();if(!this.dynamic){this.proxy.hide()}if(this.draggable&&this.constrainTo){this.dd.resetConstraints();this.dd.constrainTo(this.constrainTo)}return a},constrain:function(b,c,a,d){if(b-cd){c=b-d}}return c},onMouseMove:function(z){if(this.enabled&&this.activeHandle){try{if(this.resizeRegion&&!this.resizeRegion.contains(z.getPoint())){return}var t=this.curSize||this.startBox,l=this.startBox.x,k=this.startBox.y,c=l,b=k,m=t.width,u=t.height,d=m,o=u,n=this.minWidth,A=this.minHeight,s=this.maxWidth,D=this.maxHeight,i=this.widthIncrement,a=this.heightIncrement,B=z.getXY(),r=-(this.startPoint[0]-Math.max(this.minX,B[0])),p=-(this.startPoint[1]-Math.max(this.minY,B[1])),j=this.activeHandle.position,E,g;switch(j){case"east":m+=r;m=Math.min(Math.max(n,m),s);break;case"south":u+=p;u=Math.min(Math.max(A,u),D);break;case"southeast":m+=r;u+=p;m=Math.min(Math.max(n,m),s);u=Math.min(Math.max(A,u),D);break;case"north":p=this.constrain(u,p,A,D);k+=p;u-=p;break;case"west":r=this.constrain(m,r,n,s);l+=r;m-=r;break;case"northeast":m+=r;m=Math.min(Math.max(n,m),s);p=this.constrain(u,p,A,D);k+=p;u-=p;break;case"northwest":r=this.constrain(m,r,n,s);p=this.constrain(u,p,A,D);k+=p;u-=p;l+=r;m-=r;break;case"southwest":r=this.constrain(m,r,n,s);u+=p;u=Math.min(Math.max(A,u),D);l+=r;m-=r;break}var q=this.snap(m,i,n);var C=this.snap(u,a,A);if(q!=m||C!=u){switch(j){case"northeast":k-=C-u;break;case"north":k-=C-u;break;case"southwest":l-=q-m;break;case"west":l-=q-m;break;case"northwest":l-=q-m;k-=C-u;break}m=q;u=C}if(this.preserveRatio){switch(j){case"southeast":case"east":u=o*(m/d);u=Math.min(Math.max(A,u),D);m=d*(u/o);break;case"south":m=d*(u/o);m=Math.min(Math.max(n,m),s);u=o*(m/d);break;case"northeast":m=d*(u/o);m=Math.min(Math.max(n,m),s);u=o*(m/d);break;case"north":E=m;m=d*(u/o);m=Math.min(Math.max(n,m),s);u=o*(m/d);l+=(E-m)/2;break;case"southwest":u=o*(m/d);u=Math.min(Math.max(A,u),D);E=m;m=d*(u/o);l+=E-m;break;case"west":g=u;u=o*(m/d);u=Math.min(Math.max(A,u),D);k+=(g-u)/2;E=m;m=d*(u/o);l+=E-m;break;case"northwest":E=m;g=u;u=o*(m/d);u=Math.min(Math.max(A,u),D);m=d*(u/o);k+=g-u;l+=E-m;break}}this.proxy.setBounds(l,k,m,u);if(this.dynamic){this.resizeElement()}}catch(v){}}},handleOver:function(){if(this.enabled){this.el.addClass("x-resizable-over")}},handleOut:function(){if(!this.resizing){this.el.removeClass("x-resizable-over")}},getEl:function(){return this.el},getResizeChild:function(){return this.resizeChild},destroy:function(b){Ext.destroy(this.dd,this.overlay,this.proxy);this.overlay=null;this.proxy=null;var c=Ext.Resizable.positions;for(var a in c){if(typeof c[a]!="function"&&this[c[a]]){this[c[a]].destroy()}}if(b){this.el.update("");Ext.destroy(this.el);this.el=null}this.purgeListeners()},syncHandleHeight:function(){var a=this.el.getHeight(true);if(this.west){this.west.el.setHeight(a)}if(this.east){this.east.el.setHeight(a)}}});Ext.Resizable.positions={n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"};Ext.Resizable.Handle=Ext.extend(Object,{constructor:function(d,g,c,e,a){if(!this.tpl){var b=Ext.DomHelper.createTemplate({tag:"div",cls:"x-resizable-handle x-resizable-handle-{0}"});b.compile();Ext.Resizable.Handle.prototype.tpl=b}this.position=g;this.rz=d;this.el=this.tpl.append(d.el.dom,[this.position],true);this.el.unselectable();if(e){this.el.setOpacity(0)}if(!Ext.isEmpty(a)){this.el.addClass(a)}this.el.on("mousedown",this.onMouseDown,this);if(!c){this.el.on({scope:this,mouseover:this.onMouseOver,mouseout:this.onMouseOut})}},afterResize:function(a){},onMouseDown:function(a){this.rz.onMouseDown(this,a)},onMouseOver:function(a){this.rz.handleOver(this,a)},onMouseOut:function(a){this.rz.handleOut(this,a)},destroy:function(){Ext.destroy(this.el);this.el=null}});Ext.Window=Ext.extend(Ext.Panel,{baseCls:"x-window",resizable:true,draggable:true,closable:true,closeAction:"close",constrain:false,constrainHeader:false,plain:false,minimizable:false,maximizable:false,minHeight:100,minWidth:200,expandOnShow:true,showAnimDuration:0.25,hideAnimDuration:0.25,collapsible:false,initHidden:undefined,hidden:true,elements:"header,body",frame:true,floating:true,initComponent:function(){this.initTools();Ext.Window.superclass.initComponent.call(this);this.addEvents("resize","maximize","minimize","restore");if(Ext.isDefined(this.initHidden)){this.hidden=this.initHidden}if(this.hidden===false){this.hidden=true;this.show()}},getState:function(){return Ext.apply(Ext.Window.superclass.getState.call(this)||{},this.getBox(true))},onRender:function(b,a){Ext.Window.superclass.onRender.call(this,b,a);if(this.plain){this.el.addClass("x-window-plain")}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)}},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 a=this.getKeyMap();a.on(27,this.onEsc,this);a.disable()}},initDraggable:function(){this.dd=new Ext.Window.DD(this)},onEsc:function(a,b){if(this.activeGhost){this.unghost()}b.stopEvent();this[this.closeAction]()},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)},onDestroy:function(){if(this.manager){this.manager.unregister(this)}Ext.Window.superclass.onDestroy.call(this)},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,[])})}},resizerAction:function(){var a=this.proxy.getBox();this.proxy.hide();this.window.handleResize(a);return a},beforeResize:function(){this.resizer.minHeight=Math.max(this.minHeight,this.getFrameHeight()+40);this.resizer.minWidth=Math.max(this.minWidth,this.getFrameWidth()+40);this.resizeBox=this.el.getBox()},updateHandles:function(){if(Ext.isIE&&this.resizer){this.resizer.syncHandleHeight();this.el.repaint()}},handleResize:function(b){var a=this.resizeBox;if(a.x!=b.x||a.y!=b.y){this.updateBox(b)}else{this.setSize(b);if(Ext.isIE6&&Ext.isStrict){this.doLayout()}}this.focus();this.updateHandles();this.saveState()},focus:function(){var e=this.focusEl,a=this.defaultButton,c=typeof a,d,b;if(Ext.isDefined(a)){if(Ext.isNumber(a)&&this.fbar){e=this.fbar.items.get(a)}else{if(Ext.isString(a)){e=Ext.getCmp(a)}else{e=a}}d=e.getEl();b=Ext.getDom(this.container);if(d&&b){if(b!=document.body&&!Ext.lib.Region.getRegion(b).contains(Ext.lib.Region.getRegion(d.dom))){return}}}e=e||this.focusEl;e.focus.defer(10,e)},setAnimateTarget:function(a){a=Ext.get(a);this.animateTarget=a},beforeShow:function(){delete this.el.lastXY;delete this.el.lastLT;if(this.x===undefined||this.y===undefined){var a=this.el.getAlignToXY(this.container,"c-c");var b=this.el.translatePoints(a[0],a[1]);this.x=this.x===undefined?b.left:this.x;this.y=this.y===undefined?b.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()}},show:function(c,a,b){if(!this.rendered){this.render(Ext.getBody())}if(this.hidden===false){this.toFront();return this}if(this.fireEvent("beforeshow",this)===false){return this}if(a){this.on("show",a,b,{single:true})}this.hidden=false;if(Ext.isDefined(c)){this.setAnimateTarget(c)}this.beforeShow();if(this.animateTarget){this.animShow()}else{this.afterShow()}return this},afterShow:function(b){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){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(b&&(Ext.isIE||Ext.isWebKit)){var a=this.getSize();this.onResize(a.width,a.height)}this.onShow();this.fireEvent("show",this)},animShow:function(){this.proxy.show();this.proxy.setBox(this.animateTarget.getBox());this.proxy.setOpacity(0);var a=this.getBox();this.el.setStyle("display","none");this.proxy.shift(Ext.apply(a,{callback:this.afterShow.createDelegate(this,[true],false),scope:this,easing:"easeNone",duration:this.showAnimDuration,opacity:0.5}))},hide:function(c,a,b){if(this.hidden||this.fireEvent("beforehide",this)===false){return this}if(a){this.on("hide",a,b,{single:true})}this.hidden=true;if(c!==undefined){this.setAnimateTarget(c)}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},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)},animHide:function(){this.proxy.setOpacity(0.5);this.proxy.show();var a=this.getBox(false);this.proxy.setBox(a);this.el.hide();this.proxy.shift(Ext.apply(this.animateTarget.getBox(),{callback:this.afterHide,scope:this,duration:this.hideAnimDuration,easing:"easeNone",opacity:0}))},onShow:Ext.emptyFn,onHide:Ext.emptyFn,onWindowResize:function(){if(this.maximized){this.fitContainer()}if(this.modal){this.mask.setSize("100%","100%");var a=this.mask.dom.offsetHeight;this.mask.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true))}this.doConstrain()},doConstrain:function(){if(this.constrain||this.constrainHeader){var b;if(this.constrain){b={right:this.el.shadowOffset,left:this.el.shadowOffset,bottom:this.el.shadowOffset}}else{var a=this.getSize();b={right:-(a.width-100),bottom:-(a.height-25+this.el.getConstrainOffset())}}var c=this.el.getConstrainToXY(this.container,true,b);if(c){this.setPosition(c[0],c[1])}}},ghost:function(a){var c=this.createGhost(a);var b=this.getBox(true);c.setLeftTop(b.x,b.y);c.setWidth(b.width);this.el.hide();this.activeGhost=c;return c},unghost:function(b,a){if(!this.activeGhost){return}if(b!==false){this.el.show();this.focus.defer(10,this);if(Ext.isMac&&Ext.isGecko2){this.cascade(this.setAutoScroll)}}if(a!==false){this.setPosition(this.activeGhost.getLeft(true),this.activeGhost.getTop(true))}this.activeGhost.hide();this.activeGhost.remove();delete this.activeGhost},minimize:function(){this.fireEvent("minimize",this);return this},close:function(){if(this.fireEvent("beforeclose",this)!==false){if(this.hidden){this.doClose()}else{this.hide(null,this.doClose,this)}}},doClose:function(){this.fireEvent("close",this);this.destroy()},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},restore:function(){if(this.maximized){var a=this.tools;this.el.removeClass("x-window-maximized");if(a.restore){a.restore.hide()}if(a.maximize){a.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&&a.toggle){a.toggle.show()}this.container.removeClass("x-window-maximized-ct");this.doConstrain();this.fireEvent("restore",this)}return this},toggleMaximize:function(){return this[this.maximized?"restore":"maximize"]()},fitContainer:function(){var a=this.container.getViewSize(false);this.setSize(a.width,a.height)},setZIndex:function(a){if(this.modal){this.mask.setStyle("z-index",a)}this.el.setZIndex(++a);a+=5;if(this.resizer){this.resizer.proxy.setStyle("z-index",++a)}this.lastZIndex=a},alignTo:function(b,a,c){var d=this.el.getAlignToXY(b,a,c);this.setPagePosition(d[0],d[1]);return this},anchorTo:function(c,e,d,b){this.clearAnchor();this.anchorTarget={el:c,alignment:e,offsets:d};Ext.EventManager.onWindowResize(this.doAnchor,this);var a=typeof b;if(a!="undefined"){Ext.EventManager.on(window,"scroll",this.doAnchor,this,{buffer:a=="number"?b:50})}return this.doAnchor()},doAnchor:function(){var a=this.anchorTarget;this.alignTo(a.el,a.alignment,a.offsets);return 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},toFront:function(a){if(this.manager.bringToFront(this)){if(!a||!a.getTarget().focus){this.focus()}}return this},setActive:function(a){if(a){if(!this.maximized){this.el.enableShadow(true)}this.fireEvent("activate",this)}else{this.el.disableShadow();this.fireEvent("deactivate",this)}},toBack:function(){this.manager.sendToBack(this);return this},center:function(){var a=this.el.getAlignToXY(this.container,"c-c");this.setPagePosition(a[0],a[1]);return this}});Ext.reg("window",Ext.Window);Ext.Window.DD=Ext.extend(Ext.dd.DD,{constructor:function(a){this.win=a;Ext.Window.DD.superclass.constructor.call(this,a.el.id,"WindowDD-"+a.id);this.setHandleElId(a.header.id);this.scroll=false},moveOnly:true,headerOffsets:[100,25],startDrag:function(){var a=this.win;this.proxy=a.ghost(a.initialConfig.cls);if(a.constrain!==false){var c=a.el.shadowOffset;this.constrainTo(a.container,{right:c,left:c,bottom:c})}else{if(a.constrainHeader!==false){var b=this.proxy.getSize();this.constrainTo(a.container,{right:-(b.width-this.headerOffsets[0]),bottom:-(b.height-this.headerOffsets[1])})}}},b4Drag:Ext.emptyFn,onDrag:function(a){this.alignElWithMouse(this.proxy,a.getPageX(),a.getPageY())},endDrag:function(a){this.win.unghost();this.win.saveState()}});Ext.WindowGroup=function(){var g={};var d=[];var e=null;var c=function(j,i){return(!j._lastAccess||j._lastAccess0){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?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;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}l.update(A||" ");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(Ext.isDefined(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=Ext.extend(Object,{constructor:function(a,b){this.panel=a;this.id=this.panel.id+"-ddproxy";Ext.apply(this,b)},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(this.panel.initialConfig.cls,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=Ext.extend(Ext.dd.DragSource,{constructor: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 d=b.header,c=b.body;if(d){this.setHandleElId(d.id);c=b.header}c.setStyle("cursor","move");this.scroll=false},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.proxy.show()},b4MouseDown:function(b){var a=b.getPageX(),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.state.Provider=Ext.extend(Ext.util.Observable,{constructor:function(){this.addEvents("statechange");this.state={};Ext.state.Provider.superclass.constructor.call(this)},get:function(b,a){return typeof this.state[b]=="undefined"?a:this.state[b]},clear:function(a){delete this.state[a];this.fireEvent("statechange",this,a,null)},set:function(a,b){this.state[a]=b;this.fireEvent("statechange",this,a,b)},decodeValue:function(b){var e=/^(a|n|d|b|s|o|e)\:(.*)$/,h=e.exec(unescape(b)),d,c,a,g;if(!h||!h[1]){return}c=h[1];a=h[2];switch(c){case"e":return null;case"n":return parseFloat(a);case"d":return new Date(Date.parse(a));case"b":return(a=="1");case"a":d=[];if(a!=""){Ext.each(a.split("^"),function(i){d.push(this.decodeValue(i))},this)}return d;case"o":d={};if(a!=""){Ext.each(a.split("^"),function(i){g=i.split("=");d[g[0]]=this.decodeValue(g[1])},this)}return d;default:return a}},encodeValue:function(c){var b,g="",e=0,a,d;if(c==null){return"e:1"}else{if(typeof c=="number"){b="n:"+c}else{if(typeof c=="boolean"){b="b:"+(c?"1":"0")}else{if(Ext.isDate(c)){b="d:"+c.toGMTString()}else{if(Ext.isArray(c)){for(a=c.length;e-1){var e=this.isSelected(b),c=this.all.elements[b],d=this.bufferRender([a],b)[0];this.all.replaceElement(b,d,true);if(e){this.selected.replaceElement(c,d);this.all.item(b).addClass(this.selectedClass)}this.updateIndexes(b,b)}},onAdd:function(g,d,e){if(this.all.getCount()===0){this.refresh();return}var c=this.bufferRender(d,e),h,b=this.all.elements;if(e0){if(!b){this.selected.removeClass(this.selectedClass)}this.selected.clear();this.last=false;if(!a){this.fireEvent("selectionchange",this,this.selected.elements)}}},isSelected:function(a){return this.selected.contains(this.getNode(a))},deselect:function(a){if(this.isSelected(a)){a=this.getNode(a);this.selected.removeElement(a);if(this.last==a.viewIndex){this.last=false}Ext.fly(a).removeClass(this.selectedClass);this.fireEvent("selectionchange",this,this.selected.elements)}},select:function(d,g,b){if(Ext.isArray(d)){if(!g){this.clearSelections(true)}for(var c=0,a=d.length;c=a&&d[c];c--){b.push(d[c])}}return b},indexOf:function(a){a=this.getNode(a);if(Ext.isNumber(a.viewIndex)){return a.viewIndex}return this.all.indexOf(a)},onBeforeLoad:function(){if(this.loadingText){this.clearSelections(false,true);this.getTemplateTarget().update('
    '+this.loadingText+"
    ");this.all.clear()}},onDestroy:function(){this.all.clear();this.selected.clear();Ext.DataView.superclass.onDestroy.call(this);this.bindStore(null)}});Ext.DataView.prototype.setStore=Ext.DataView.prototype.bindStore;Ext.reg("dataview",Ext.DataView);Ext.list.ListView=Ext.extend(Ext.DataView,{itemSelector:"dl",selectedClass:"x-list-selected",overClass:"x-list-over",scrollOffset:undefined,columnResize:true,columnSort:true,maxColumnWidth:Ext.isIE?99:100,initComponent:function(){if(this.columnResize){this.colResizer=new Ext.list.ColumnResizer(this.colResizer);this.colResizer.init(this)}if(this.columnSort){this.colSorter=new Ext.list.Sorter(this.columnSort);this.colSorter.init(this)}if(!this.internalTpl){this.internalTpl=new Ext.XTemplate('
    ','','
    ',"{header}","
    ","
    ",'
    ',"
    ",'
    ',"
    ")}if(!this.tpl){this.tpl=new Ext.XTemplate('',"
    ",'','
    ',' class="{cls}">',"{[values.tpl.apply(parent)]}","
    ","
    ",'
    ',"
    ","
    ")}var l=this.columns,h=0,k=0,m=l.length,b=[];for(var g=0;gthis.maxColumnWidth){n.width-=(h-this.maxColumnWidth)/100}k++}b.push(n)}l=this.columns=b;if(k10)){b.style.width=d;g.style.width=d}else{b.style.width=c+"px";g.style.width=c+"px";setTimeout(function(){if((a.offsetWidth-a.clientWidth)>10){b.style.width=d;g.style.width=d}},10)}}if(Ext.isNumber(e)){a.style.height=Math.max(0,e-g.parentNode.offsetHeight)+"px"}},updateIndexes:function(){Ext.list.ListView.superclass.updateIndexes.apply(this,arguments);this.verifyInternalSize()},findHeaderIndex:function(g){g=g.dom||g;var a=g.parentNode,d=a.parentNode.childNodes,b=0,e;for(;e=d[b];b++){if(e==a){return b}}return -1},setHdWidths:function(){var d=this.innerHd.dom.getElementsByTagName("div"),c=0,b=this.columns,a=b.length;for(;c','','{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(){var a=this.rendered;if(this.suspendUpdates){return}if(this.resizeTabs&&a){this.autoSizeTabs()}if(this.enableTabScroll&&a){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.onRepeatClick,this)}else{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.btnEl,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{this.doToggle();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,a)}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.History=(function(){var e,c;var k=false;var d;function g(){var l=location.href,m=l.indexOf("#"),n=m>=0?l.substr(m+1):null;if(Ext.isGecko){n=decodeURIComponent(n)}return n}function a(){c.value=d}function h(l){d=l;Ext.History.fireEvent("change",l)}function i(m){var l=['
    ',Ext.util.Format.htmlEncode(m),"
    "].join("");try{var o=e.contentWindow.document;o.open();o.write(l);o.close();return true}catch(n){return false}}function b(){if(!e.contentWindow||!e.contentWindow.document){setTimeout(b,10);return}var o=e.contentWindow.document;var m=o.getElementById("state");var l=m?m.innerText:null;var n=g();setInterval(function(){o=e.contentWindow.document;m=o.getElementById("state");var q=m?m.innerText:null;var p=g();if(q!==l){l=q;h(l);location.hash=l;n=l;a()}else{if(p!==n){n=p;i(p)}}},50);k=true;Ext.History.fireEvent("ready",Ext.History)}function j(){d=c.value?c.value:g();if(Ext.isIE){b()}else{var l=g();setInterval(function(){var m=g();if(m!==l){l=m;h(l);a()}},50);k=true;Ext.History.fireEvent("ready",Ext.History)}}return{fieldId:"x-history-field",iframeId:"x-history-frame",events:{},init:function(m,l){if(k){Ext.callback(m,l,[this]);return}if(!Ext.isReady){Ext.onReady(function(){Ext.History.init(m,l)});return}c=Ext.getDom(Ext.History.fieldId);if(Ext.isIE){e=Ext.getDom(Ext.History.iframeId)}this.addEvents("ready","change");if(m){this.on("ready",m,l,{single:true})}j()},add:function(l,m){if(m!==false){if(this.getToken()==l){return true}}if(Ext.isIE){return i(l)}else{location.hash=l;return true}},back:function(){history.go(-1)},forward:function(){history.go(1)},getToken:function(){return k?d:g()}}})();Ext.apply(Ext.History,new Ext.util.Observable());Ext.Tip=Ext.extend(Ext.Panel,{minWidth:40,maxWidth:300,shadow:"sides",defaultAlign:"tl-bl?",autoRender:true,quickShowInterval:250,frame:true,hidden:true,baseCls:"x-tip",floating:{shadow:true,shim:true,useDisplay:true,constrain:false},autoHeight:true,closeAction:"hide",initComponent:function(){Ext.Tip.superclass.initComponent.call(this);if(this.closable&&!this.title){this.elements+=",header"}},afterRender:function(){Ext.Tip.superclass.afterRender.call(this);if(this.closable){this.addTool({id:"close",handler:this[this.closeAction],scope:this})}},showAt:function(a){Ext.Tip.superclass.show.call(this);if(this.measureWidth!==false&&(!this.initialConfig||typeof this.initialConfig.width!="number")){this.doAutoWidth()}if(this.constrainPosition){a=this.el.adjustForConstraints(a)}this.setPagePosition(a[0],a[1])},doAutoWidth:function(a){a=a||0;var b=this.body.getTextWidth();if(this.title){b=Math.max(b,this.header.child("span").getTextWidth(this.title))}b+=this.getFrameWidth()+(this.closable?20:0)+this.body.getPadding("lr")+a;this.setWidth(b.constrain(this.minWidth,this.maxWidth));if(Ext.isIE7&&!this.repainted){this.el.repaint();this.repainted=true}},showBy:function(a,b){if(!this.rendered){this.render(Ext.getBody())}this.showAt(this.el.getAlignToXY(a,b||this.defaultAlign))},initDraggable:function(){this.dd=new Ext.Tip.DD(this,typeof this.draggable=="boolean"?null:this.draggable);this.header.addClass("x-tip-draggable")}});Ext.reg("tip",Ext.Tip);Ext.Tip.DD=function(b,a){Ext.apply(this,a);this.tip=b;Ext.Tip.DD.superclass.constructor.call(this,b.el.id,"WindowDD-"+b.id);this.setHandleElId(b.header.id);this.scroll=false};Ext.extend(Ext.Tip.DD,Ext.dd.DD,{moveOnly:true,scroll:false,headerOffsets:[100,25],startDrag:function(){this.tip.el.disableShadow()},endDrag:function(a){this.tip.el.enableShadow(true)}});Ext.ToolTip=Ext.extend(Ext.Tip,{showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:false,anchorToTarget:true,anchorOffset:0,targetCounter:0,constrainPosition:false,initComponent:function(){Ext.ToolTip.superclass.initComponent.call(this);this.lastActive=new Date();this.initTarget(this.target);this.origAnchor=this.anchor},onRender:function(b,a){Ext.ToolTip.superclass.onRender.call(this,b,a);this.anchorCls="x-tip-anchor-"+this.getAnchorPosition();this.anchorEl=this.el.createChild({cls:"x-tip-anchor "+this.anchorCls})},afterRender:function(){Ext.ToolTip.superclass.afterRender.call(this);this.anchorEl.setStyle("z-index",this.el.getZIndex()+1).setVisibilityMode(Ext.Element.DISPLAY)},initTarget:function(c){var a;if((a=Ext.get(c))){if(this.target){var b=Ext.get(this.target);this.mun(b,"mouseover",this.onTargetOver,this);this.mun(b,"mouseout",this.onTargetOut,this);this.mun(b,"mousemove",this.onMouseMove,this)}this.mon(a,{mouseover:this.onTargetOver,mouseout:this.onTargetOut,mousemove:this.onMouseMove,scope:this});this.target=a}if(this.anchor){this.anchorTarget=this.target}},onMouseMove:function(b){var a=this.delegate?b.getTarget(this.delegate):this.triggerElement=true;if(a){this.targetXY=b.getXY();if(a===this.triggerElement){if(!this.hidden&&this.trackMouse){this.setPagePosition(this.getTargetXY())}}else{this.hide();this.lastActive=new Date(0);this.onTargetOver(b)}}else{if(!this.closable&&this.isVisible()){this.hide()}}},getTargetXY:function(){if(this.delegate){this.anchorTarget=this.triggerElement}if(this.anchor){this.targetCounter++;var c=this.getOffsets(),l=(this.anchorToTarget&&!this.trackMouse)?this.el.getAlignToXY(this.anchorTarget,this.getAnchorAlign()):this.targetXY,a=Ext.lib.Dom.getViewWidth()-5,h=Ext.lib.Dom.getViewHeight()-5,i=document.documentElement,e=document.body,k=(i.scrollLeft||e.scrollLeft||0)+5,j=(i.scrollTop||e.scrollTop||0)+5,b=[l[0]+c[0],l[1]+c[1]],g=this.getSize();this.anchorEl.removeClass(this.anchorCls);if(this.targetCounter<2){if(b[0]a){if(this.anchorToTarget){this.defaultAlign="r-l";if(this.mouseOffset){this.mouseOffset[0]*=-1}}this.anchor="right";return this.getTargetXY()}if(b[1]h){if(this.anchorToTarget){this.defaultAlign="b-t";if(this.mouseOffset){this.mouseOffset[1]*=-1}}this.anchor="bottom";return this.getTargetXY()}}this.anchorCls="x-tip-anchor-"+this.getAnchorPosition();this.anchorEl.addClass(this.anchorCls);this.targetCounter=0;return b}else{var d=this.getMouseOffset();return[this.targetXY[0]+d[0],this.targetXY[1]+d[1]]}},getMouseOffset:function(){var a=this.anchor?[0,0]:[15,18];if(this.mouseOffset){a[0]+=this.mouseOffset[0];a[1]+=this.mouseOffset[1]}return a},getAnchorPosition:function(){if(this.anchor){this.tipAnchor=this.anchor.charAt(0)}else{var a=this.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!a){throw"AnchorTip.defaultAlign is invalid"}this.tipAnchor=a[1].charAt(0)}switch(this.tipAnchor){case"t":return"top";case"b":return"bottom";case"r":return"right"}return"left"},getAnchorAlign:function(){switch(this.anchor){case"top":return"tl-bl";case"left":return"tl-tr";case"right":return"tr-tl";default:return"bl-tl"}},getOffsets:function(){var b,a=this.getAnchorPosition().charAt(0);if(this.anchorToTarget&&!this.trackMouse){switch(a){case"t":b=[0,9];break;case"b":b=[0,-13];break;case"r":b=[-13,0];break;default:b=[9,0];break}}else{switch(a){case"t":b=[-15-this.anchorOffset,30];break;case"b":b=[-19-this.anchorOffset,-13-this.el.dom.offsetHeight];break;case"r":b=[-15-this.el.dom.offsetWidth,-13-this.anchorOffset];break;default:b=[25,-13-this.anchorOffset];break}}var c=this.getMouseOffset();b[0]+=c[0];b[1]+=c[1];return b},onTargetOver:function(b){if(this.disabled||b.within(this.target.dom,true)){return}var a=b.getTarget(this.delegate);if(a){this.triggerElement=a;this.clearTimer("hide");this.targetXY=b.getXY();this.delayShow()}},delayShow:function(){if(this.hidden&&!this.showTimer){if(this.lastActive.getElapsed()=c){d=c-b-5}}return{x:a,y:d}},beforeDestroy:function(){this.clearTimers();Ext.destroy(this.anchorEl);delete this.anchorEl;delete this.target;delete this.anchorTarget;delete this.triggerElement;Ext.ToolTip.superclass.beforeDestroy.call(this)},onDestroy:function(){Ext.getDoc().un("mousedown",this.onDocMouseDown,this);Ext.ToolTip.superclass.onDestroy.call(this)}});Ext.reg("tooltip",Ext.ToolTip);Ext.QuickTip=Ext.extend(Ext.ToolTip,{interceptTitles:false,tagConfig:{namespace:"ext",attribute:"qtip",width:"qwidth",target:"target",title:"qtitle",hide:"hide",cls:"qclass",align:"qalign",anchor:"anchor"},initComponent:function(){this.target=this.target||Ext.getDoc();this.targets=this.targets||{};Ext.QuickTip.superclass.initComponent.call(this)},register:function(e){var h=Ext.isArray(e)?e:arguments;for(var g=0,a=h.length;g1){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},getHref:function(a){return Ext.isEmpty(a)?(Ext.isGecko?"":"#"):a},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;dp){return e?-1:1}}return 0}},doSort:function(a){a.sort(this.sortFn)},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)}}); -/* SWFObject v2.2 - is released under the MIT License -*/ -var swfobject=function(){var E="undefined",s="object",T="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash",S="SWFObjectExprInst",y="onreadystatechange",P=window,k=document,u=navigator,U=false,V=[i],p=[],O=[],J=[],m,R,F,C,K=false,a=false,o,H,n=true,N=function(){var ab=typeof k.getElementById!=E&&typeof k.getElementsByTagName!=E&&typeof k.createElement!=E,ai=u.userAgent.toLowerCase(),Z=u.platform.toLowerCase(),af=Z?(/win/).test(Z):/win/.test(ai),ad=Z?(/mac/).test(Z):/mac/.test(ai),ag=/webkit/.test(ai)?parseFloat(ai.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,Y=!+"\v1",ah=[0,0,0],ac=null;if(typeof u.plugins!=E&&typeof u.plugins[T]==s){ac=u.plugins[T].description;if(ac&&!(typeof u.mimeTypes!=E&&u.mimeTypes[r]&&!u.mimeTypes[r].enabledPlugin)){U=true;Y=false;ac=ac.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ah[0]=parseInt(ac.replace(/^(.*)\..*$/,"$1"),10);ah[1]=parseInt(ac.replace(/^.*\.(.*)\s.*$/,"$1"),10);ah[2]=/[a-zA-Z]/.test(ac)?parseInt(ac.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof P.ActiveXObject!=E){try{var ae=new ActiveXObject(X);if(ae){ac=ae.GetVariable("$version");if(ac){Y=true;ac=ac.split(" ")[1].split(",");ah=[parseInt(ac[0],10),parseInt(ac[1],10),parseInt(ac[2],10)]}}}catch(aa){}}}return{w3:ab,pv:ah,wk:ag,ie:Y,win:af,mac:ad}}(),l=function(){if(!N.w3){return}if((typeof k.readyState!=E&&k.readyState=="complete")||(typeof k.readyState==E&&(k.getElementsByTagName("body")[0]||k.body))){g()}if(!K){if(typeof k.addEventListener!=E){k.addEventListener("DOMContentLoaded",g,false)}if(N.ie&&N.win){k.attachEvent(y,function(){if(k.readyState=="complete"){k.detachEvent(y,arguments.callee);g()}});if(P==top){(function(){if(K){return}try{k.documentElement.doScroll("left")}catch(Y){setTimeout(arguments.callee,0);return}g()})()}}if(N.wk){(function(){if(K){return}if(!(/loaded|complete/).test(k.readyState)){setTimeout(arguments.callee,0);return}g()})()}t(g)}}();function g(){if(K){return}try{var aa=k.getElementsByTagName("body")[0].appendChild(D("span"));aa.parentNode.removeChild(aa)}catch(ab){return}K=true;var Y=V.length;for(var Z=0;Z0){for(var ag=0;ag0){var af=c(Z);if(af){if(G(p[ag].swfVersion)&&!(N.wk&&N.wk<312)){x(Z,true);if(ac){ab.success=true;ab.ref=A(Z);ac(ab)}}else{if(p[ag].expressInstall&&B()){var aj={};aj.data=p[ag].expressInstall;aj.width=af.getAttribute("width")||"0";aj.height=af.getAttribute("height")||"0";if(af.getAttribute("class")){aj.styleclass=af.getAttribute("class")}if(af.getAttribute("align")){aj.align=af.getAttribute("align")}var ai={};var Y=af.getElementsByTagName("param");var ad=Y.length;for(var ae=0;ae'}}ab.outerHTML='"+ag+"";O[O.length]=aj.id;Y=c(aj.id)}else{var aa=D(s);aa.setAttribute("type",r);for(var ad in aj){if(aj[ad]!=Object.prototype[ad]){if(ad.toLowerCase()=="styleclass"){aa.setAttribute("class",aj[ad])}else{if(ad.toLowerCase()!="classid"){aa.setAttribute(ad,aj[ad])}}}}for(var ac in ah){if(ah[ac]!=Object.prototype[ac]&&ac.toLowerCase()!="movie"){e(aa,ac,ah[ac])}}ab.parentNode.replaceChild(aa,ab);Y=aa}}return Y}function e(aa,Y,Z){var ab=D("param");ab.setAttribute("name",Y);ab.setAttribute("value",Z);aa.appendChild(ab)}function z(Z){var Y=c(Z);if(Y&&Y.nodeName=="OBJECT"){if(N.ie&&N.win){Y.style.display="none";(function(){if(Y.readyState==4){b(Z)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.removeChild(Y)}}}function b(aa){var Z=c(aa);if(Z){for(var Y in Z){if(typeof Z[Y]=="function"){Z[Y]=null}}Z.parentNode.removeChild(Z)}}function c(aa){var Y=null;try{Y=k.getElementById(aa)}catch(Z){}return Y}function D(Y){return k.createElement(Y)}function j(aa,Y,Z){aa.attachEvent(Y,Z);J[J.length]=[aa,Y,Z]}function G(aa){var Z=N.pv,Y=aa.split(".");Y[0]=parseInt(Y[0],10);Y[1]=parseInt(Y[1],10)||0;Y[2]=parseInt(Y[2],10)||0;return(Z[0]>Y[0]||(Z[0]==Y[0]&&Z[1]>Y[1])||(Z[0]==Y[0]&&Z[1]==Y[1]&&Z[2]>=Y[2]))?true:false}function w(ad,Z,ae,ac){if(N.ie&&N.mac){return}var ab=k.getElementsByTagName("head")[0];if(!ab){return}var Y=(ae&&typeof ae=="string")?ae:"screen";if(ac){o=null;H=null}if(!o||H!=Y){var aa=D("style");aa.setAttribute("type","text/css");aa.setAttribute("media",Y);o=ab.appendChild(aa);if(N.ie&&N.win&&typeof k.styleSheets!=E&&k.styleSheets.length>0){o=k.styleSheets[k.styleSheets.length-1]}H=Y}if(N.ie&&N.win){if(o&&typeof o.addRule==s){o.addRule(ad,Z)}}else{if(o&&typeof k.createTextNode!=E){o.appendChild(k.createTextNode(ad+" {"+Z+"}"))}}}function x(aa,Y){if(!n){return}var Z=Y?"visible":"hidden";if(K&&c(aa)){c(aa).style.visibility=Z}else{w("#"+aa,"visibility:"+Z)}}function M(Z){var aa=/[\\\"<>\.;]/;var Y=aa.exec(Z)!=null;return Y&&typeof encodeURIComponent!=E?encodeURIComponent(Z):Z}var d=function(){if(N.ie&&N.win){window.attachEvent("onunload",function(){var ad=J.length;for(var ac=0;ac0){for(h=0;h-1&&e.position=="left"){e.position="bottom"}return e},onDestroy:function(){Ext.chart.CartesianChart.superclass.onDestroy.call(this);Ext.each(this.labelFn,function(a){this.removeFnProxy(a)},this)}});Ext.reg("cartesianchart",Ext.chart.CartesianChart);Ext.chart.LineChart=Ext.extend(Ext.chart.CartesianChart,{type:"line"});Ext.reg("linechart",Ext.chart.LineChart);Ext.chart.ColumnChart=Ext.extend(Ext.chart.CartesianChart,{type:"column"});Ext.reg("columnchart",Ext.chart.ColumnChart);Ext.chart.StackedColumnChart=Ext.extend(Ext.chart.CartesianChart,{type:"stackcolumn"});Ext.reg("stackedcolumnchart",Ext.chart.StackedColumnChart);Ext.chart.BarChart=Ext.extend(Ext.chart.CartesianChart,{type:"bar"});Ext.reg("barchart",Ext.chart.BarChart);Ext.chart.StackedBarChart=Ext.extend(Ext.chart.CartesianChart,{type:"stackbar"});Ext.reg("stackedbarchart",Ext.chart.StackedBarChart);Ext.chart.Axis=function(a){Ext.apply(this,a)};Ext.chart.Axis.prototype={type:null,orientation:"horizontal",reverse:false,labelFunction:null,hideOverlappingLabels:true,labelSpacing:2};Ext.chart.NumericAxis=Ext.extend(Ext.chart.Axis,{type:"numeric",minimum:NaN,maximum:NaN,majorUnit:NaN,minorUnit:NaN,snapToUnits:true,alwaysShowZero:true,scale:"linear",roundMajorUnit:true,calculateByLabelSize:true,position:"left",adjustMaximumByMajorUnit:true,adjustMinimumByMajorUnit:true});Ext.chart.TimeAxis=Ext.extend(Ext.chart.Axis,{type:"time",minimum:null,maximum:null,majorUnit:NaN,majorTimeUnit:null,minorUnit:NaN,minorTimeUnit:null,snapToUnits:true,stackingEnabled:false,calculateByLabelSize:true});Ext.chart.CategoryAxis=Ext.extend(Ext.chart.Axis,{type:"category",categoryNames:null,calculateCategoryCount:false});Ext.chart.Series=function(a){Ext.apply(this,a)};Ext.chart.Series.prototype={type:null,displayName:null};Ext.chart.CartesianSeries=Ext.extend(Ext.chart.Series,{xField:null,yField:null,showInLegend:true,axis:"primary"});Ext.chart.ColumnSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"column"});Ext.chart.LineSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"line"});Ext.chart.BarSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"bar"});Ext.chart.PieSeries=Ext.extend(Ext.chart.Series,{type:"pie",dataField:null,categoryField:null});Ext.menu.Menu=Ext.extend(Ext.Container,{minWidth:120,shadow:"sides",subMenuAlign:"tl-tr?",defaultAlign:"tl-bl?",allowOtherMenus:false,ignoreParentClicks:false,enableScrolling:true,maxHeight:null,scrollIncrement:24,showSeparator:true,defaultOffsets:[0,0],plain:false,floating:true,zIndex:15000,hidden:true,layout:"menu",hideMode:"offsets",scrollerHeight:8,autoLayout:true,defaultType:"menuitem",bufferResize:false,initComponent:function(){if(Ext.isArray(this.initialConfig)){Ext.apply(this,{items:this.initialConfig})}this.addEvents("click","mouseover","mouseout","itemclick");Ext.menu.MenuMgr.register(this);if(this.floating){Ext.EventManager.onWindowResize(this.hide,this)}else{if(this.initialConfig.hidden!==false){this.hidden=false}this.internalDefaults={hideOnClick:false}}Ext.menu.Menu.superclass.initComponent.call(this);if(this.autoLayout){var a=this.doLayout.createDelegate(this,[]);this.on({add:a,remove:a})}},getLayoutTarget:function(){return this.ul},onRender:function(b,a){if(!b){b=Ext.getBody()}var c={id:this.getId(),cls:"x-menu "+((this.floating)?"x-menu-floating x-layer ":"")+(this.cls||"")+(this.plain?" x-menu-plain":"")+(this.showSeparator?"":" x-menu-nosep"),style:this.style,cn:[{tag:"a",cls:"x-menu-focus",href:"#",onclick:"return false;",tabIndex:"-1"},{tag:"ul",cls:"x-menu-list"}]};if(this.floating){this.el=new Ext.Layer({shadow:this.shadow,dh:c,constrain:false,parentEl:b,zindex:this.zIndex})}else{this.el=b.createChild(c)}Ext.menu.Menu.superclass.onRender.call(this,b,a);if(!this.keyNav){this.keyNav=new Ext.menu.MenuNav(this)}this.focusEl=this.el.child("a.x-menu-focus");this.ul=this.el.child("ul.x-menu-list");this.mon(this.ul,{scope:this,click:this.onClick,mouseover:this.onMouseOver,mouseout:this.onMouseOut});if(this.enableScrolling){this.mon(this.el,{scope:this,delegate:".x-menu-scroller",click:this.onScroll,mouseover:this.deactivateActive})}},findTargetItem:function(b){var a=b.getTarget(".x-menu-list-item",this.ul,true);if(a&&a.menuItemId){return this.items.get(a.menuItemId)}},onClick:function(b){var a=this.findTargetItem(b);if(a){if(a.isFormField){this.setActiveItem(a)}else{if(a instanceof Ext.menu.BaseItem){if(a.menu&&this.ignoreParentClicks){a.expandMenu();b.preventDefault()}else{if(a.onClick){a.onClick(b);this.fireEvent("click",this,a,b)}}}}}},setActiveItem:function(a,b){if(a!=this.activeItem){this.deactivateActive();if((this.activeItem=a).isFormField){a.focus()}else{a.activate(b)}}else{if(b){a.expandMenu()}}},deactivateActive:function(){var b=this.activeItem;if(b){if(b.isFormField){if(b.collapse){b.collapse()}}else{b.deactivate()}delete this.activeItem}},tryActivate:function(g,e){var b=this.items;for(var c=g,a=b.length;c>=0&&c=a.scrollHeight){this.onScrollerOut(null,b)}},onScrollerIn:function(d,b){var a=this.ul.dom,c=Ext.fly(b).is(".x-menu-scroller-top");if(c?a.scrollTop>0:a.scrollTop+this.activeMaxc){b=c;a=i-h}else{if(bb&&b>0){this.activeMax=b-this.scrollerHeight*2-this.el.getFrameWidth("tb")-Ext.num(this.el.shadowOffset,0);this.ul.setHeight(this.activeMax);this.createScrollers();this.el.select(".x-menu-scroller").setDisplayed("")}else{this.ul.setHeight(d);this.el.select(".x-menu-scroller").setDisplayed("none")}this.ul.dom.scrollTop=0;return a},createScrollers:function(){if(!this.scroller){this.scroller={pos:0,top:this.el.insertFirst({tag:"div",cls:"x-menu-scroller x-menu-scroller-top",html:" "}),bottom:this.el.createChild({tag:"div",cls:"x-menu-scroller x-menu-scroller-bottom",html:" "})};this.scroller.top.hover(this.onScrollerIn,this.onScrollerOut,this);this.scroller.topRepeater=new Ext.util.ClickRepeater(this.scroller.top,{listeners:{click:this.onScroll.createDelegate(this,[null,this.scroller.top],false)}});this.scroller.bottom.hover(this.onScrollerIn,this.onScrollerOut,this);this.scroller.bottomRepeater=new Ext.util.ClickRepeater(this.scroller.bottom,{listeners:{click:this.onScroll.createDelegate(this,[null,this.scroller.bottom],false)}})}},onLayout:function(){if(this.isVisible()){if(this.enableScrolling){this.constrainScroll(this.el.getTop())}if(this.floating){this.el.sync()}}},focus:function(){if(!this.hidden){this.doFocus.defer(50,this)}},doFocus:function(){if(!this.hidden){this.focusEl.focus()}},hide:function(a){if(!this.isDestroyed){this.deepHide=a;Ext.menu.Menu.superclass.hide.call(this);delete this.deepHide}},onHide:function(){Ext.menu.Menu.superclass.onHide.call(this);this.deactivateActive();if(this.el&&this.floating){this.el.hide()}var a=this.parentMenu;if(this.deepHide===true&&a){if(a.floating){a.hide(true)}else{a.deactivateActive()}}},lookupComponent:function(a){if(Ext.isString(a)){a=(a=="separator"||a=="-")?new Ext.menu.Separator():new Ext.menu.TextItem(a);this.applyDefaults(a)}else{if(Ext.isObject(a)){a=this.getMenuItem(a)}else{if(a.tagName||a.el){a=new Ext.BoxComponent({el:a})}}}return a},applyDefaults:function(b){if(!Ext.isString(b)){b=Ext.menu.Menu.superclass.applyDefaults.call(this,b);var a=this.internalDefaults;if(a){if(b.events){Ext.applyIf(b.initialConfig,a);Ext.apply(b,a)}else{Ext.applyIf(b,a)}}}return b},getMenuItem:function(a){a.ownerCt=this;if(!a.isXType){if(!a.xtype&&Ext.isBoolean(a.checked)){return new Ext.menu.CheckItem(a)}return Ext.create(a,this.defaultType)}return a},addSeparator:function(){return this.add(new Ext.menu.Separator())},addElement:function(a){return this.add(new Ext.menu.BaseItem({el:a}))},addItem:function(a){return this.add(a)},addMenuItem:function(a){return this.add(this.getMenuItem(a))},addText:function(a){return this.add(new Ext.menu.TextItem(a))},onDestroy:function(){Ext.EventManager.removeResizeListener(this.hide,this);var a=this.parentMenu;if(a&&a.activeChild==this){delete a.activeChild}delete this.parentMenu;Ext.menu.Menu.superclass.onDestroy.call(this);Ext.menu.MenuMgr.unregister(this);if(this.keyNav){this.keyNav.disable()}var b=this.scroller;if(b){Ext.destroy(b.topRepeater,b.bottomRepeater,b.top,b.bottom)}Ext.destroy(this.el,this.focusEl,this.ul)}});Ext.reg("menu",Ext.menu.Menu);Ext.menu.MenuNav=Ext.extend(Ext.KeyNav,function(){function a(d,c){if(!c.tryActivate(c.items.indexOf(c.activeItem)-1,-1)){c.tryActivate(c.items.length-1,-1)}}function b(d,c){if(!c.tryActivate(c.items.indexOf(c.activeItem)+1,1)){c.tryActivate(0,1)}}return{constructor:function(c){Ext.menu.MenuNav.superclass.constructor.call(this,c.el);this.scope=this.menu=c},doRelay:function(g,d){var c=g.getKey();if(this.menu.activeItem&&this.menu.activeItem.isFormField&&c!=g.TAB){return false}if(!this.menu.activeItem&&g.isNavKeyPress()&&c!=g.SPACE&&c!=g.RETURN){this.menu.tryActivate(0,1);return false}return d.call(this.scope||this,g,this.menu)},tab:function(d,c){d.stopEvent();if(d.shiftKey){a(d,c)}else{b(d,c)}},up:a,down:b,right:function(d,c){if(c.activeItem){c.activeItem.expandMenu(true)}},left:function(d,c){c.hide();if(c.parentMenu&&c.parentMenu.activeItem){c.parentMenu.activeItem.activate()}},enter:function(d,c){if(c.activeItem){d.stopPropagation();c.activeItem.onClick(d);c.fireEvent("click",this,c.activeItem);return true}}}}());Ext.menu.MenuMgr=function(){var h,e,b,d={},a=false,l=new Date();function n(){h={};e=new Ext.util.MixedCollection();b=Ext.getDoc().addKeyListener(27,j);b.disable()}function j(){if(e&&e.length>0){var o=e.clone();o.each(function(p){p.hide()});return true}return false}function g(o){e.remove(o);if(e.length<1){b.disable();Ext.getDoc().un("mousedown",m);a=false}}function k(o){var p=e.last();l=new Date();e.add(o);if(!a){b.enable();Ext.getDoc().on("mousedown",m);a=true}if(o.parentMenu){o.getEl().setZIndex(parseInt(o.parentMenu.getEl().getStyle("z-index"),10)+3);o.parentMenu.activeChild=o}else{if(p&&!p.isDestroyed&&p.isVisible()){o.getEl().setZIndex(parseInt(p.getEl().getStyle("z-index"),10)+3)}}}function c(o){if(o.activeChild){o.activeChild.hide()}if(o.autoHideTimer){clearTimeout(o.autoHideTimer);delete o.autoHideTimer}}function i(o){var p=o.parentMenu;if(!p&&!o.allowOtherMenus){j()}else{if(p&&p.activeChild){p.activeChild.hide()}}}function m(o){if(l.getElapsed()>50&&e.length>0&&!o.getTarget(".x-menu")){j()}}return{hideAll:function(){return j()},register:function(o){if(!h){n()}h[o.id]=o;o.on({beforehide:c,hide:g,beforeshow:i,show:k})},get:function(o){if(typeof o=="string"){if(!h){return null}return h[o]}else{if(o.events){return o}else{if(typeof o.length=="number"){return new Ext.menu.Menu({items:o})}else{return Ext.create(o,"menu")}}}},unregister:function(o){delete h[o.id];o.un("beforehide",c);o.un("hide",g);o.un("beforeshow",i);o.un("show",k)},registerCheckable:function(o){var p=o.group;if(p){if(!d[p]){d[p]=[]}d[p].push(o)}},unregisterCheckable:function(o){var p=o.group;if(p){d[p].remove(o)}},onCheckChange:function(q,r){if(q.group&&r){var t=d[q.group],p=0,o=t.length,s;for(;p',' target="{hrefTarget}"',"",">",'{altText}','{text}',"")}var c=this.getTemplateArgs();this.el=b?this.itemTpl.insertBefore(b,c,true):this.itemTpl.append(d,c,true);this.iconEl=this.el.child("img.x-menu-item-icon");this.textEl=this.el.child(".x-menu-item-text");if(!this.href){this.mon(this.el,"click",Ext.emptyFn,null,{preventDefault:true})}Ext.menu.Item.superclass.onRender.call(this,d,b)},getTemplateArgs:function(){return{id:this.id,cls:this.itemCls+(this.menu?" x-menu-item-arrow":"")+(this.cls?" "+this.cls:""),href:this.href||"#",hrefTarget:this.hrefTarget,icon:this.icon||Ext.BLANK_IMAGE_URL,iconCls:this.iconCls||"",text:this.itemText||this.text||" ",altText:this.altText||""}},setText:function(a){this.text=a||" ";if(this.rendered){this.textEl.update(this.text);this.parentMenu.layout.doAutoSize()}},setIconClass:function(a){var b=this.iconCls;this.iconCls=a;if(this.rendered){this.iconEl.replaceClass(b,this.iconCls)}},beforeDestroy:function(){clearTimeout(this.showTimer);clearTimeout(this.hideTimer);if(this.menu){delete this.menu.ownerCt;this.menu.destroy()}Ext.menu.Item.superclass.beforeDestroy.call(this)},handleClick:function(a){if(!this.href){a.stopEvent()}Ext.menu.Item.superclass.handleClick.apply(this,arguments)},activate:function(a){if(Ext.menu.Item.superclass.activate.apply(this,arguments)){this.focus();if(a){this.expandMenu()}}return true},shouldDeactivate:function(a){if(Ext.menu.Item.superclass.shouldDeactivate.call(this,a)){if(this.menu&&this.menu.isVisible()){return !this.menu.getEl().getRegion().contains(a.getPoint())}return true}return false},deactivate:function(){Ext.menu.Item.superclass.deactivate.apply(this,arguments);this.hideMenu()},expandMenu:function(a){if(!this.disabled&&this.menu){clearTimeout(this.hideTimer);delete this.hideTimer;if(!this.menu.isVisible()&&!this.showTimer){this.showTimer=this.deferExpand.defer(this.showDelay,this,[a])}else{if(this.menu.isVisible()&&a){this.menu.tryActivate(0,1)}}}},deferExpand:function(a){delete this.showTimer;this.menu.show(this.container,this.parentMenu.subMenuAlign||"tl-tr?",this.parentMenu);if(a){this.menu.tryActivate(0,1)}},hideMenu:function(){clearTimeout(this.showTimer);delete this.showTimer;if(!this.hideTimer&&this.menu&&this.menu.isVisible()){this.hideTimer=this.deferHide.defer(this.hideDelay,this)}},deferHide:function(){delete this.hideTimer;if(this.menu.over){this.parentMenu.setActiveItem(this,false)}else{this.menu.hide()}}});Ext.reg("menuitem",Ext.menu.Item);Ext.menu.CheckItem=Ext.extend(Ext.menu.Item,{itemCls:"x-menu-item x-menu-check-item",groupClass:"x-menu-group-item",checked:false,ctype:"Ext.menu.CheckItem",initComponent:function(){Ext.menu.CheckItem.superclass.initComponent.call(this);this.addEvents("beforecheckchange","checkchange");if(this.checkHandler){this.on("checkchange",this.checkHandler,this.scope)}Ext.menu.MenuMgr.registerCheckable(this)},onRender:function(a){Ext.menu.CheckItem.superclass.onRender.apply(this,arguments);if(this.group){this.el.addClass(this.groupClass)}if(this.checked){this.checked=false;this.setChecked(true,true)}},destroy:function(){Ext.menu.MenuMgr.unregisterCheckable(this);Ext.menu.CheckItem.superclass.destroy.apply(this,arguments)},setChecked:function(b,a){var c=a===true;if(this.checked!=b&&(c||this.fireEvent("beforecheckchange",this,b)!==false)){Ext.menu.MenuMgr.onCheckChange(this,b);if(this.container){this.container[b?"addClass":"removeClass"]("x-menu-item-checked")}this.checked=b;if(!c){this.fireEvent("checkchange",this,b)}}},handleClick:function(a){if(!this.disabled&&!(this.checked&&this.group)){this.setChecked(!this.checked)}Ext.menu.CheckItem.superclass.handleClick.apply(this,arguments)}});Ext.reg("menucheckitem",Ext.menu.CheckItem);Ext.menu.DateMenu=Ext.extend(Ext.menu.Menu,{enableScrolling:false,hideOnClick:true,pickerId:null,cls:"x-date-menu",initComponent:function(){this.on("beforeshow",this.onBeforeShow,this);if(this.strict=(Ext.isIE7&&Ext.isStrict)){this.on("show",this.onShow,this,{single:true,delay:20})}Ext.apply(this,{plain:true,showSeparator:false,items:this.picker=new Ext.DatePicker(Ext.applyIf({internalRender:this.strict||!Ext.isIE,ctCls:"x-menu-date-item",id:this.pickerId},this.initialConfig))});this.picker.purgeListeners();Ext.menu.DateMenu.superclass.initComponent.call(this);this.relayEvents(this.picker,["select"]);this.on("show",this.picker.focus,this.picker);this.on("select",this.menuHide,this);if(this.handler){this.on("select",this.handler,this.scope||this)}},menuHide:function(){if(this.hideOnClick){this.hide(true)}},onBeforeShow:function(){if(this.picker){this.picker.hideMonthPicker(true)}},onShow:function(){var a=this.picker.getEl();a.setWidth(a.getWidth())}});Ext.reg("datemenu",Ext.menu.DateMenu);Ext.menu.ColorMenu=Ext.extend(Ext.menu.Menu,{enableScrolling:false,hideOnClick:true,cls:"x-color-menu",paletteId:null,initComponent:function(){Ext.apply(this,{plain:true,showSeparator:false,items:this.palette=new Ext.ColorPalette(Ext.applyIf({id:this.paletteId},this.initialConfig))});this.palette.purgeListeners();Ext.menu.ColorMenu.superclass.initComponent.call(this);this.relayEvents(this.palette,["select"]);this.on("select",this.menuHide,this);if(this.handler){this.on("select",this.handler,this.scope||this)}},menuHide:function(){if(this.hideOnClick){this.hide(true)}}});Ext.reg("colormenu",Ext.menu.ColorMenu);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.getKeyEvent(),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()),a);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,b;if(this.emptyText){if(a.dom.value==this.emptyText){this.setRawValue("");b=true}a.removeClass(this.emptyClass)}if(this.selectOnFocus||b){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=Ext.isDefined(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,alt:"",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,alt:"",cls:"x-form-trigger "+this.trigger1Class},{tag:"img",src:Ext.BLANK_IMAGE_URL,alt:"",cls:"x-form-trigger "+this.trigger2Class}]}},getTrigger:function(a){return this.triggers[a]},afterRender:function(){Ext.form.TwinTriggerField.superclass.afterRender.call(this);var c=this.triggers,b=0,a=c.length;for(;b")}}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",autoStripChars:false,initEvents:function(){var a=this.baseChars+"";if(this.allowDecimals){a+=this.decimalSeparator}if(this.allowNegative){a+="-"}a=Ext.escapeRe(a);this.maskRe=new RegExp("["+a+"]");if(this.autoStripChars){this.stripCharsRe=new RegExp("[^"+a+"]","gi")}Ext.form.NumberField.superclass.initEvents.call(this)},getErrors:function(b){var c=Ext.form.NumberField.superclass.getErrors.apply(this,arguments);b=Ext.isDefined(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=this.fixPrecision(a);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(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|n-j|n/j",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,startDay:0,defaultAutoCreate:{tag:"input",type:"text",size:"10",autocomplete:"off"},initTime:"12",initTimeFormat:"H",safeParse:function(b,c){if(Date.formatContainsHourInfo(c)){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.clearTime().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(g,d,e){this.maxHeight=e-this.handleHeight-this.list.getFrameWidth("tb")-this.assetHeight;this.listWidth=d;this.innerList.setWidth(d-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(){if(this.clearFilterOnReset&&this.mode=="local"){this.store.clearFilter()}Ext.form.ComboBox.superclass.reset.call(this)},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;if(this.valueField&&Ext.isDefined(this.value)){a=this.findRecord(this.valueField,this.value)}if(!a||a.get(this.displayField)!=b){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&&this.valueField){if(this.value==b){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={},c=this.store.paramNames;if(this.pageSize){b[c.start]=0;b[c.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));this.list.setZIndex(this.getZIndex());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&&!Ext.isStrict){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 c=this.checked,b=this.inputValue;if(a===false){this.checked=false}else{this.checked=(a===true||a==="true"||a=="1"||(b?a==b:String(a).toLowerCase()=="on"))}if(this.rendered){this.el.dom.checked=this.checked;this.el.dom.defaultChecked=this.checked}if(c!=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,labelConnector:", ",initComponent:function(){var g=[],b=this.items,e;for(var d=0,c=b.length;d")},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",shouldLayout:false,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,d,c;a.each(function(e){d=this.findField(e.name);if(d){c=d.getValue();if(Ext.type(c)!==false&&c.getGroupValue){c=c.getGroupValue()}else{if(d.eachItem){c=[];d.eachItem(function(g){c.push(g.getValue())})}}b.set(e.name,c)}},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){return d.items.each(a)}else{if(d instanceof Ext.form.CheckboxGroup&&d.rendered){return d.eachItem(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";a.src=Ext.SSL_SECURE_URL;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=this.getDoc();if(a){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(b){var d,a;if(b===undefined){b=!this.sourceEditMode}this.sourceEditMode=b===true;var c=this.tb.getComponent("sourceedit");if(c.pressed!==this.sourceEditMode){c.toggle(this.sourceEditMode);if(!c.xtbHidden){return}}if(this.sourceEditMode){this.previousSize=this.getSize();d=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=d+"px"}else{a=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(this.previousSize);delete this.previousSize;this.iframe.style.height=a+"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){}},beforeDestroy: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()}}Ext.form.HtmlEditor.superclass.beforeDestroy.call(this)},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;e=0){if(!d){c=g-1}d=false;while(c>=0){if(e.call(j||this,k,c,i)===true){return[k,c]}c--}k--}}else{if(c>=g){k++;d=false}while(k','
    ','
    ','
    ','
    {header}
    ',"
    ",'
    ',"
    ",'
    ','
    {body}
    ','',"
    ","
    ",'
     
    ','
     
    ',"
    "),headerTpl:new Ext.Template('',"",'{cells}',"","
    "),bodyTpl:new Ext.Template("{rows}"),cellTpl:new Ext.Template('','
    {value}
    ',""),initTemplates:function(){var c=this.templates||{},d,b,g=new Ext.Template('','
    ',this.grid.enableHdMenu?'':"","{value}",'',"
    ",""),a=['','','
    {body}
    ',"",""].join(""),e=['',"","{cells}",this.enableRowBody?a:"","","
    "].join("");Ext.applyIf(c,{hcell:g,cell:this.cellTpl,body:this.bodyTpl,header:this.headerTpl,master:this.masterTpl,row:new Ext.Template('
    '+e+"
    "),rowInner:new Ext.Template(e)});for(b in c){d=c[b];if(d&&Ext.isFunction(d.compile)&&!d.compiled){d.disableFormats=true;d.compile()}}this.templates=c;this.colRe=new RegExp("x-grid3-td-([^\\s]+)","")},fly:function(a){if(!this._flyweight){this._flyweight=new Ext.Element.Flyweight(document.body)}this._flyweight.dom=a;return this._flyweight},getEditorParent:function(){return this.scroller.dom},initElements:function(){var b=Ext.Element,d=Ext.get(this.grid.getGridEl().dom.firstChild),e=new b(d.child("div.x-grid3-viewport")),c=new b(e.child("div.x-grid3-header")),a=new b(e.child("div.x-grid3-scroller"));if(this.grid.hideHeaders){c.setDisplayed(false)}if(this.forceFit){a.setStyle("overflow-x","hidden")}Ext.apply(this,{el:d,mainWrap:e,scroller:a,mainHd:c,innerHd:c.child("div.x-grid3-header-inner").dom,mainBody:new b(b.fly(a).child("div.x-grid3-body")),focusEl:new b(b.fly(a).child("a")),resizeMarker:new b(d.child("div.x-grid3-resize-marker")),resizeProxy:new b(d.child("div.x-grid3-resize-proxy"))});this.focusEl.swallowEvent("click",true)},getRows:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},findCell:function(a){if(!a){return false}return this.fly(a).findParent(this.cellSelector,this.cellSelectorDepth)},findCellIndex:function(d,c){var b=this.findCell(d),a;if(b){a=this.fly(b).hasClass(c);if(!c||a){return this.getCellIndex(b)}}return false},getCellIndex:function(b){if(b){var a=b.className.match(this.colRe);if(a&&a[1]){return this.cm.getIndexById(a[1])}}return false},findHeaderCell:function(b){var a=this.findCell(b);return a&&this.fly(a).hasClass(this.hdCls)?a:null},findHeaderIndex:function(a){return this.findCellIndex(a,this.hdCls)},findRow:function(a){if(!a){return false}return this.fly(a).findParent(this.rowSelector,this.rowSelectorDepth)},findRowIndex:function(a){var b=this.findRow(a);return b?b.rowIndex:false},findRowBody:function(a){if(!a){return false}return this.fly(a).findParent(this.rowBodySelector,this.rowBodySelectorDepth)},getRow:function(a){return this.getRows()[a]},getCell:function(b,a){return Ext.fly(this.getRow(b)).query(this.cellSelector)[a]},getHeaderCell:function(a){return this.mainHd.dom.getElementsByTagName("td")[a]},addRowClass:function(b,a){var c=this.getRow(b);if(c){this.fly(c).addClass(a)}},removeRowClass:function(c,a){var b=this.getRow(c);if(b){this.fly(b).removeClass(a)}},removeRow:function(a){Ext.removeNode(this.getRow(a));this.syncFocusEl(a)},removeRows:function(c,a){var b=this.mainBody.dom,d;for(d=c;d<=a;d++){Ext.removeNode(b.childNodes[c])}this.syncFocusEl(c)},getScrollState:function(){var a=this.scroller.dom;return{left:a.scrollLeft,top:a.scrollTop}},restoreScroll:function(a){var b=this.scroller.dom;b.scrollLeft=a.left;b.scrollTop=a.top},scrollToTop:function(){var a=this.scroller.dom;a.scrollTop=0;a.scrollLeft=0},syncScroll:function(){this.syncHeaderScroll();var a=this.scroller.dom;this.grid.fireEvent("bodyscroll",a.scrollLeft,a.scrollTop)},syncHeaderScroll:function(){var a=this.innerHd,b=this.scroller.dom.scrollLeft;a.scrollLeft=b;a.scrollLeft=b},updateSortIcon:function(d,c){var a=this.sortClasses,b=a[c=="DESC"?1:0],e=this.mainHd.select("td").removeClass(a);e.item(d).addClass(b)},updateAllColumnWidths:function(){var e=this.getTotalWidth(),k=this.cm.getColumnCount(),m=this.getRows(),g=m.length,b=[],l,a,h,d,c;for(d=0;d=this.ds.getCount()){return null}d=(d!==undefined?d:0);var c=this.getRow(h),b=this.cm,e=b.getColumnCount(),a;if(!(g===false&&d===0)){while(dm){n.scrollTop=q-a}}if(e!==false){var l=parseInt(h.offsetLeft,10),j=l+h.offsetWidth,i=parseInt(n.scrollLeft,10),b=i+n.clientWidth;if(lb){n.scrollLeft=j-n.clientWidth}}}return this.getResolvedXY(r)},insertRows:function(a,i,e,h){var d=a.getCount()-1;if(!h&&i===0&&e>=d){this.fireEvent("beforerowsinserted",this,i,e);this.refresh();this.fireEvent("rowsinserted",this,i,e)}else{if(!h){this.fireEvent("beforerowsinserted",this,i,e)}var b=this.renderRows(i,e),g=this.getRow(i);if(g){if(i===0){Ext.fly(this.getRow(0)).removeClass(this.firstRowCls)}Ext.DomHelper.insertHtml("beforeBegin",g,b)}else{var c=this.getRow(d-1);if(c){Ext.fly(c).removeClass(this.lastRowCls)}Ext.DomHelper.insertHtml("beforeEnd",this.mainBody.dom,b)}if(!h){this.processRows(i);this.fireEvent("rowsinserted",this,i,e)}else{if(i===0||i>=d){Ext.fly(this.getRow(i)).addClass(i===0?this.firstRowCls:this.lastRowCls)}}}this.syncFocusEl(i)},deleteRows:function(a,c,b){if(a.getRowCount()<1){this.refresh()}else{this.fireEvent("beforerowsdeleted",this,c,b);this.removeRows(c,b);this.processRows(c);this.fireEvent("rowsdeleted",this,c,b)}},getColumnStyle:function(b,d){var a=this.cm,g=a.config,c=d?"":g[b].css||"",e=g[b].align;c+=String.format("width: {0};",this.getColumnWidth(b));if(a.isHidden(b)){c+="display: none; "}if(e){c+=String.format("text-align: {0};",e)}return c},getColumnWidth:function(b){var c=this.cm.getColumnWidth(b),a=this.borderWidth;if(Ext.isNumber(c)){if(Ext.isBorderBox||(Ext.isWebKit&&!Ext.isSafari2)){return c+"px"}else{return Math.max(c-a,0)+"px"}}else{return c}},getTotalWidth:function(){return this.cm.getTotalWidth()+"px"},fitColumns:function(g,j,h){var a=this.grid,l=this.cm,s=l.getTotalWidth(false),q=this.getGridInnerWidth(),r=q-s,c=[],o=0,n=0,u,d,p;if(q<20||r===0){return false}var e=l.getColumnCount(true),m=l.getColumnCount(false),b=e-(Ext.isNumber(h)?1:0);if(b===0){b=1;h=undefined}for(p=0;pq){var t=(b==e)?o:h,k=Math.max(1,l.getColumnWidth(t)-(s-q));l.setColumnWidth(t,k,true)}if(g!==true){this.updateAllColumnWidths()}return true},autoExpand:function(k){var a=this.grid,i=this.cm,e=this.getGridInnerWidth(),c=i.getTotalWidth(false),g=a.autoExpandColumn;if(!this.userResized&&g){if(e!=c){var j=i.getIndexById(g),b=i.getColumnWidth(j),h=e-c+b,d=Math.min(Math.max(h,a.autoExpandMin),a.autoExpandMax);if(b!=d){i.setColumnWidth(j,d,true);if(k!==true){this.updateColumnWidth(j,d)}}}}},getGridInnerWidth:function(){return this.grid.getGridEl().getWidth(true)-this.getScrollOffset()},getColumnData:function(){var e=[],c=this.cm,g=c.getColumnCount(),a=this.ds.fields,d,b;for(d=0;d'+this.emptyText+"
    "),initTemplates:function(){Ext.grid.PivotGridView.superclass.initTemplates.apply(this,arguments);var a=this.templates||{};if(!a.gcell){a.gcell=new Ext.XTemplate('','
    ',this.grid.enableHdMenu?'':"","{value}","
    ","")}this.templates=a;this.hrowRe=new RegExp("ux-grid-hd-group-row-(\\d+)","")},initElements:function(){Ext.grid.PivotGridView.superclass.initElements.apply(this,arguments);this.rowHeadersEl=new Ext.Element(this.scroller.child("div.x-grid3-row-headers"));this.headerTitleEl=new Ext.Element(this.mainHd.child("div.x-grid3-header-title"))},getGridInnerWidth:function(){var a=Ext.grid.PivotGridView.superclass.getGridInnerWidth.apply(this,arguments);return a-this.getTotalRowHeaderWidth()},getTotalRowHeaderWidth:function(){var d=this.getRowHeaders(),c=d.length,b=0,a;for(a=0;a0&&d>0){h=h||o.data[a[g-1].dataIndex]!=l[d-1].data[a[g-1].dataIndex]}if(h){s.push({header:q,span:p,start:b});b+=p;p=0}if(k){s.push({header:n,span:p+1,start:b});b+=p;p=0}q=n;p++}c.push({items:s,width:e.width||this.defaultHeaderWidth});q=undefined}return c}});Ext.grid.HeaderDragZone=Ext.extend(Ext.dd.DragZone,{maxDragWidth:120,constructor:function(a,c,b){this.grid=a;this.view=a.getView();this.ddGroup="gridHeader"+this.grid.getGridEl().id;Ext.grid.HeaderDragZone.superclass.constructor.call(this,c);if(b){this.setHandleElId(Ext.id(c));this.setOuterHandleElId(Ext.id(b))}this.scroll=false},getDragData:function(c){var a=Ext.lib.Event.getTarget(c),b=this.view.findHeaderCell(a);if(b){return{ddel:b.firstChild,header:b}}return false},onInitDrag:function(a){this.dragHeadersDisabled=this.view.headersDisabled;this.view.headersDisabled=true;var b=this.dragData.ddel.cloneNode(true);b.id=Ext.id();b.style.width=Math.min(this.dragData.header.offsetWidth,this.maxDragWidth)+"px";this.proxy.update(b);return true},afterValidDrop:function(){this.completeDrop()},afterInvalidDrop:function(){this.completeDrop()},completeDrop:function(){var a=this.view,b=this.dragHeadersDisabled;setTimeout(function(){a.headersDisabled=b},50)}});Ext.grid.HeaderDropZone=Ext.extend(Ext.dd.DropZone,{proxyOffsets:[-4,-9],fly:Ext.Element.fly,constructor:function(a,c,b){this.grid=a;this.view=a.getView();this.proxyTop=Ext.DomHelper.append(document.body,{cls:"col-move-top",html:" "},true);this.proxyBottom=Ext.DomHelper.append(document.body,{cls:"col-move-bottom",html:" "},true);this.proxyTop.hide=this.proxyBottom.hide=function(){this.setLeftTop(-100,-100);this.setStyle("visibility","hidden")};this.ddGroup="gridHeader"+this.grid.getGridEl().id;Ext.grid.HeaderDropZone.superclass.constructor.call(this,a.getGridEl().dom)},getTargetFromEvent:function(c){var a=Ext.lib.Event.getTarget(c),b=this.view.findCellIndex(a);if(b!==false){return this.view.getHeaderCell(b)}},nextVisible:function(c){var b=this.view,a=this.grid.colModel;c=c.nextSibling;while(c){if(!a.isHidden(b.getCellIndex(c))){return c}c=c.nextSibling}return null},prevVisible:function(c){var b=this.view,a=this.grid.colModel;c=c.prevSibling;while(c){if(!a.isHidden(b.getCellIndex(c))){return c}c=c.prevSibling}return null},positionIndicator:function(d,k,j){var a=Ext.lib.Event.getPageX(j),g=Ext.lib.Dom.getRegion(k.firstChild),c,i,b=g.top+this.proxyOffsets[1];if((g.right-a)<=(g.right-g.left)/2){c=g.right+this.view.borderWidth;i="after"}else{c=g.left;i="before"}if(this.grid.colModel.isFixed(this.view.getCellIndex(k))){return false}c+=this.proxyOffsets[0];this.proxyTop.setLeftTop(c,b);this.proxyTop.show();if(!this.bottomOffset){this.bottomOffset=this.view.mainHd.getHeight()}this.proxyBottom.setLeftTop(c,b+this.proxyTop.dom.offsetHeight+this.bottomOffset);this.proxyBottom.show();return i},onNodeEnter:function(d,a,c,b){if(b.header!=d){this.positionIndicator(b.header,d,c)}},onNodeOver:function(g,b,d,c){var a=false;if(c.header!=g){a=this.positionIndicator(c.header,g,d)}if(!a){this.proxyTop.hide();this.proxyBottom.hide()}return a?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(d,a,c,b){this.proxyTop.hide();this.proxyBottom.hide()},onNodeDrop:function(b,m,g,c){var d=c.header;if(d!=b){var k=this.grid.colModel,j=Ext.lib.Event.getPageX(g),a=Ext.lib.Dom.getRegion(b.firstChild),o=(a.right-j)<=((a.right-a.left)/2)?"after":"before",i=this.view.getCellIndex(d),l=this.view.getCellIndex(b);if(o=="after"){l++}if(i=0&&this.config[a].resizable!==false&&this.config[a].fixed!==true},setHidden:function(a,b){var d=this.config[a];if(d.hidden!==b){d.hidden=b;this.totalWidth=null;this.fireEvent("hiddenchange",this,a,b)}},setEditor:function(a,b){this.config[a].setEditor(b)},destroy:function(){var b=this.config.length,a=0;for(;a0},isSelected:function(a){var b=Ext.isNumber(a)?this.grid.store.getAt(a):a;return(b&&this.selections.key(b.id)?true:false)},isIdSelected:function(a){return(this.selections.key(a)?true:false)},handleMouseDown:function(d,i,h){if(h.button!==0||this.isLocked()){return}var a=this.grid.getView();if(h.shiftKey&&!this.singleSelect&&this.last!==false){var c=this.last;this.selectRange(c,i,h.ctrlKey);this.last=c;a.focusRow(i)}else{var b=this.isSelected(i);if(h.ctrlKey&&b){this.deselectRow(i)}else{if(!b||this.getCount()>1){this.selectRow(i,h.ctrlKey||h.shiftKey);a.focusRow(i)}}}},selectRows:function(c,d){if(!d){this.clearSelections()}for(var b=0,a=c.length;b=a;c--){this.selectRow(c,true)}}},deselectRange:function(c,b,a){if(this.isLocked()){return}for(var d=c;d<=b;d++){this.deselectRow(d,a)}},selectRow:function(b,d,a){if(this.isLocked()||(b<0||b>=this.grid.store.getCount())||(d&&this.isSelected(b))){return}var c=this.grid.store.getAt(b);if(c&&this.fireEvent("beforerowselect",this,b,d,c)!==false){if(!d||this.singleSelect){this.clearSelections()}this.selections.add(c);this.last=this.lastActive=b;if(!a){this.grid.getView().onRowSelect(b)}if(!this.silent){this.fireEvent("rowselect",this,b,c);this.fireEvent("selectionchange",this)}}},deselectRow:function(b,a){if(this.isLocked()){return}if(this.last==b){this.last=false}if(this.lastActive==b){this.lastActive=false}var c=this.grid.store.getAt(b);if(c){this.selections.remove(c);if(!a){this.grid.getView().onRowDeselect(b)}this.fireEvent("rowdeselect",this,b,c);this.fireEvent("selectionchange",this)}},acceptsNav:function(c,b,a){return !a.isHidden(b)&&a.isCellEditable(b,c)},onEditorKey:function(n,l){var d=l.getKey(),h,i=this.grid,p=i.lastEdit,j=i.activeEditor,b=l.shiftKey,o,p,a,m;if(d==l.TAB){l.stopEvent();j.completeEdit();if(b){h=i.walkCells(j.row,j.col-1,-1,this.acceptsNav,this)}else{h=i.walkCells(j.row,j.col+1,1,this.acceptsNav,this)}}else{if(d==l.ENTER){if(this.moveEditorOnEnter!==false){if(b){h=i.walkCells(p.row-1,p.col,-1,this.acceptsNav,this)}else{h=i.walkCells(p.row+1,p.col,1,this.acceptsNav,this)}}}}if(h){a=h[0];m=h[1];this.onEditorSelect(a,p.row);if(i.isEditor&&i.editing){o=i.activeEditor;if(o&&o.field.triggerBlur){o.field.triggerBlur()}}i.startEditing(a,m)}},onEditorSelect:function(b,a){if(a!=b){this.selectRow(b)}},destroy:function(){Ext.destroy(this.rowNav);this.rowNav=null;Ext.grid.RowSelectionModel.superclass.destroy.call(this)}});Ext.grid.Column=Ext.extend(Ext.util.Observable,{isColumn:true,constructor:function(b){Ext.apply(this,b);if(Ext.isString(this.renderer)){this.renderer=Ext.util.Format[this.renderer]}else{if(Ext.isObject(this.renderer)){this.scope=this.renderer.scope;this.renderer=this.renderer.fn}}if(!this.scope){this.scope=this}var a=this.editor;delete this.editor;this.setEditor(a);this.addEvents("click","contextmenu","dblclick","mousedown");Ext.grid.Column.superclass.constructor.call(this)},processEvent:function(b,d,c,g,a){return this.fireEvent(b,this,c,g,d)},destroy:function(){if(this.setEditor){this.setEditor(null)}this.purgeListeners()},renderer:function(a){return a},getEditor:function(a){return this.editable!==false?this.editor:null},setEditor:function(b){var a=this.editor;if(a){if(a.gridEditor){a.gridEditor.destroy();delete a.gridEditor}else{a.destroy()}}this.editor=null;if(b){if(!b.isXType){b=Ext.create(b,"textfield")}this.editor=b}},getCellEditor:function(b){var a=this.getEditor(b);if(a){if(!a.startEdit){if(!a.gridEditor){a.gridEditor=new Ext.grid.GridEditor(a)}a=a.gridEditor}}return a}});Ext.grid.BooleanColumn=Ext.extend(Ext.grid.Column,{trueText:"true",falseText:"false",undefinedText:" ",constructor:function(a){Ext.grid.BooleanColumn.superclass.constructor.call(this,a);var c=this.trueText,d=this.falseText,b=this.undefinedText;this.renderer=function(e){if(e===undefined){return b}if(!e||e==="false"){return d}return c}}});Ext.grid.NumberColumn=Ext.extend(Ext.grid.Column,{format:"0,000.00",constructor:function(a){Ext.grid.NumberColumn.superclass.constructor.call(this,a);this.renderer=Ext.util.Format.numberRenderer(this.format)}});Ext.grid.DateColumn=Ext.extend(Ext.grid.Column,{format:"m/d/Y",constructor:function(a){Ext.grid.DateColumn.superclass.constructor.call(this,a);this.renderer=Ext.util.Format.dateRenderer(this.format)}});Ext.grid.TemplateColumn=Ext.extend(Ext.grid.Column,{constructor:function(a){Ext.grid.TemplateColumn.superclass.constructor.call(this,a);var b=(!Ext.isPrimitive(this.tpl)&&this.tpl.compile)?this.tpl:new Ext.XTemplate(this.tpl);this.renderer=function(d,e,c){return b.apply(c.data)};this.tpl=b}});Ext.grid.ActionColumn=Ext.extend(Ext.grid.Column,{header:" ",actionIdRe:/x-action-col-(\d+)/,altText:"",constructor:function(b){var g=this,c=b.items||(g.items=[g]),a=c.length,d,e;Ext.grid.ActionColumn.superclass.constructor.call(g,b);g.renderer=function(h,i){h=Ext.isFunction(b.renderer)?b.renderer.apply(this,arguments)||"":"";i.css+=" x-action-col-cell";for(d=0;d"}return h}},destroy:function(){delete this.items;delete this.renderer;return Ext.grid.ActionColumn.superclass.destroy.apply(this,arguments)},processEvent:function(c,i,d,j,b){var a=i.getTarget().className.match(this.actionIdRe),h,g;if(a&&(h=this.items[parseInt(a[1],10)])){if(c=="click"){(g=h.handler||this.handler)&&g.call(h.scope||this.scope||this,d,j,b,h,i)}else{if((c=="mousedown")&&(h.stopSelection!==false)){return false}}}return Ext.grid.ActionColumn.superclass.processEvent.apply(this,arguments)}});Ext.grid.Column.types={gridcolumn:Ext.grid.Column,booleancolumn:Ext.grid.BooleanColumn,numbercolumn:Ext.grid.NumberColumn,datecolumn:Ext.grid.DateColumn,templatecolumn:Ext.grid.TemplateColumn,actioncolumn:Ext.grid.ActionColumn};Ext.grid.RowNumberer=Ext.extend(Object,{header:"",width:23,sortable:false,constructor:function(a){Ext.apply(this,a);if(this.rowspan){this.renderer=this.renderer.createDelegate(this)}},fixed:true,hideable:false,menuDisabled:true,dataIndex:"",id:"numberer",rowspan:undefined,renderer:function(b,c,a,d){if(this.rowspan){c.cellAttr='rowspan="'+this.rowspan+'"'}return d+1}});Ext.grid.CheckboxSelectionModel=Ext.extend(Ext.grid.RowSelectionModel,{header:'
     
    ',width:20,sortable:false,menuDisabled:true,fixed:true,hideable:false,dataIndex:"",id:"checker",isColumn:true,constructor:function(){Ext.grid.CheckboxSelectionModel.superclass.constructor.apply(this,arguments);if(this.checkOnly){this.handleMouseDown=Ext.emptyFn}},initEvents:function(){Ext.grid.CheckboxSelectionModel.superclass.initEvents.call(this);this.grid.on("render",function(){Ext.fly(this.grid.getView().innerHd).on("mousedown",this.onHdMouseDown,this)},this)},processEvent:function(b,d,c,g,a){if(b=="mousedown"){this.onMouseDown(d,d.getTarget());return false}else{return Ext.grid.Column.prototype.processEvent.apply(this,arguments)}},onMouseDown:function(c,b){if(c.button===0&&b.className=="x-grid3-row-checker"){c.stopEvent();var d=c.getTarget(".x-grid3-row");if(d){var a=d.rowIndex;if(this.isSelected(a)){this.deselectRow(a)}else{this.selectRow(a,true);this.grid.getView().focusRow(a)}}}},onHdMouseDown:function(c,a){if(a.className=="x-grid3-hd-checker"){c.stopEvent();var b=Ext.fly(a.parentNode);var d=b.hasClass("x-grid3-hd-checker-on");if(d){b.removeClass("x-grid3-hd-checker-on");this.clearSelections()}else{b.addClass("x-grid3-hd-checker-on");this.selectAll()}}},renderer:function(b,c,a){return'
     
    '},onEditorSelect:function(b,a){if(a!=b&&!this.checkOnly){this.selectRow(b)}}});Ext.grid.CellSelectionModel=Ext.extend(Ext.grid.AbstractSelectionModel,{constructor:function(a){Ext.apply(this,a);this.selection=null;this.addEvents("beforecellselect","cellselect","selectionchange");Ext.grid.CellSelectionModel.superclass.constructor.call(this)},initEvents:function(){this.grid.on("cellmousedown",this.handleMouseDown,this);this.grid.on(Ext.EventManager.getKeyEvent(),this.handleKeyDown,this);this.grid.getView().on({scope:this,refresh:this.onViewChange,rowupdated:this.onRowUpdated,beforerowremoved:this.clearSelections,beforerowsinserted:this.clearSelections});if(this.grid.isEditor){this.grid.on("beforeedit",this.beforeEdit,this)}},beforeEdit:function(a){this.select(a.row,a.column,false,true,a.record)},onRowUpdated:function(a,b,c){if(this.selection&&this.selection.record==c){a.onCellSelect(b,this.selection.cell[1])}},onViewChange:function(){this.clearSelections(true)},getSelectedCell:function(){return this.selection?this.selection.cell:null},clearSelections:function(b){var a=this.selection;if(a){if(b!==true){this.grid.view.onCellDeselect(a.cell[0],a.cell[1])}this.selection=null;this.fireEvent("selectionchange",this,null)}},hasSelection:function(){return this.selection?true:false},handleMouseDown:function(b,d,a,c){if(c.button!==0||this.isLocked()){return}this.select(d,a)},select:function(g,c,b,e,d){if(this.fireEvent("beforecellselect",this,g,c)!==false){this.clearSelections();d=d||this.grid.store.getAt(g);this.selection={record:d,cell:[g,c]};if(!b){var a=this.grid.getView();a.onCellSelect(g,c);if(e!==true){a.focusCell(g,c)}}this.fireEvent("cellselect",this,g,c);this.fireEvent("selectionchange",this,this.selection)}},isSelectable:function(c,b,a){return !a.isHidden(b)},onEditorKey:function(b,a){if(a.getKey()==a.TAB){this.handleKeyDown(a)}},handleKeyDown:function(j){if(!j.isNavKeyPress()){return}var d=j.getKey(),i=this.grid,p=this.selection,b=this,m=function(g,c,e){return i.walkCells(g,c,e,i.isEditor&&i.editing?b.acceptsNav:b.isSelectable,b)},o,h,a,l,n;switch(d){case j.ESC:case j.PAGE_UP:case j.PAGE_DOWN:break;default:j.stopEvent();break}if(!p){o=m(0,0,1);if(o){this.select(o[0],o[1])}return}o=p.cell;a=o[0];l=o[1];switch(d){case j.TAB:if(j.shiftKey){h=m(a,l-1,-1)}else{h=m(a,l+1,1)}break;case j.DOWN:h=m(a+1,l,1);break;case j.UP:h=m(a-1,l,-1);break;case j.RIGHT:h=m(a,l+1,1);break;case j.LEFT:h=m(a,l-1,-1);break;case j.ENTER:if(i.isEditor&&!i.editing){i.startEditing(a,l);return}break}if(h){a=h[0];l=h[1];this.select(a,l);if(i.isEditor&&i.editing){n=i.activeEditor;if(n&&n.field.triggerBlur){n.field.triggerBlur()}i.startEditing(a,l)}}},acceptsNav:function(c,b,a){return !a.isHidden(b)&&a.isCellEditable(b,c)}});Ext.grid.EditorGridPanel=Ext.extend(Ext.grid.GridPanel,{clicksToEdit:2,forceValidation:false,isEditor:true,detectEdit:false,autoEncode:false,trackMouseOver:false,initComponent:function(){Ext.grid.EditorGridPanel.superclass.initComponent.call(this);if(!this.selModel){this.selModel=new Ext.grid.CellSelectionModel()}this.activeEditor=null;this.addEvents("beforeedit","afteredit","validateedit")},initEvents:function(){Ext.grid.EditorGridPanel.superclass.initEvents.call(this);this.getGridEl().on("mousewheel",this.stopEditing.createDelegate(this,[true]),this);this.on("columnresize",this.stopEditing,this,[true]);if(this.clicksToEdit==1){this.on("cellclick",this.onCellDblClick,this)}else{var a=this.getView();if(this.clicksToEdit=="auto"&&a.mainBody){a.mainBody.on("mousedown",this.onAutoEditClick,this)}this.on("celldblclick",this.onCellDblClick,this)}},onResize:function(){Ext.grid.EditorGridPanel.superclass.onResize.apply(this,arguments);var a=this.activeEditor;if(this.editing&&a){a.realign(true)}},onCellDblClick:function(b,c,a){this.startEditing(c,a)},onAutoEditClick:function(c,b){if(c.button!==0){return}var g=this.view.findRowIndex(b),a=this.view.findCellIndex(b);if(g!==false&&a!==false){this.stopEditing();if(this.selModel.getSelectedCell){var d=this.selModel.getSelectedCell();if(d&&d[0]===g&&d[1]===a){this.startEditing(g,a)}}else{if(this.selModel.isSelected(g)){this.startEditing(g,a)}}}},onEditComplete:function(b,d,a){this.editing=false;this.lastActiveEditor=this.activeEditor;this.activeEditor=null;var c=b.record,h=this.colModel.getDataIndex(b.col);d=this.postEditValue(d,a,c,h);if(this.forceValidation===true||String(d)!==String(a)){var g={grid:this,record:c,field:h,originalValue:a,value:d,row:b.row,column:b.col,cancel:false};if(this.fireEvent("validateedit",g)!==false&&!g.cancel&&String(d)!==String(a)){c.set(h,g.value);delete g.cancel;this.fireEvent("afteredit",g)}}this.view.focusCell(b.row,b.col)},startEditing:function(i,c){this.stopEditing();if(this.colModel.isCellEditable(c,i)){this.view.ensureVisible(i,c,true);var d=this.store.getAt(i),h=this.colModel.getDataIndex(c),g={grid:this,record:d,field:h,value:d.data[h],row:i,column:c,cancel:false};if(this.fireEvent("beforeedit",g)!==false&&!g.cancel){this.editing=true;var b=this.colModel.getCellEditor(c,i);if(!b){return}if(!b.rendered){b.parentEl=this.view.getEditorParent(b);b.on({scope:this,render:{fn:function(e){e.field.focus(false,true)},single:true,scope:this},specialkey:function(k,j){this.getSelectionModel().onEditorKey(k,j)},complete:this.onEditComplete,canceledit:this.stopEditing.createDelegate(this,[true])})}Ext.apply(b,{row:i,col:c,record:d});this.lastEdit={row:i,col:c};this.activeEditor=b;b.selectSameEditor=(this.activeEditor==this.lastActiveEditor);var a=this.preEditValue(d,h);b.startEdit(this.view.getCell(i,c).firstChild,Ext.isDefined(a)?a:"");(function(){delete b.selectSameEditor}).defer(50)}}},preEditValue:function(a,c){var b=a.data[c];return this.autoEncode&&Ext.isString(b)?Ext.util.Format.htmlDecode(b):b},postEditValue:function(c,a,b,d){return this.autoEncode&&Ext.isString(c)?Ext.util.Format.htmlEncode(c):c},stopEditing:function(b){if(this.editing){var a=this.lastActiveEditor=this.activeEditor;if(a){a[b===true?"cancelEdit":"completeEdit"]();this.view.focusCell(a.row,a.col)}this.activeEditor=null}this.editing=false}});Ext.reg("editorgrid",Ext.grid.EditorGridPanel);Ext.grid.GridEditor=function(b,a){Ext.grid.GridEditor.superclass.constructor.call(this,b,a);b.monitorTab=false};Ext.extend(Ext.grid.GridEditor,Ext.Editor,{alignment:"tl-tl",autoSize:"width",hideEl:false,cls:"x-small-editor x-grid-editor",shim:false,shadow:false});Ext.grid.PropertyRecord=Ext.data.Record.create([{name:"name",type:"string"},"value"]);Ext.grid.PropertyStore=Ext.extend(Ext.util.Observable,{constructor:function(a,b){this.grid=a;this.store=new Ext.data.Store({recordType:Ext.grid.PropertyRecord});this.store.on("update",this.onUpdate,this);if(b){this.setSource(b)}Ext.grid.PropertyStore.superclass.constructor.call(this)},setSource:function(c){this.source=c;this.store.removeAll();var b=[];for(var a in c){if(this.isEditableValue(c[a])){b.push(new Ext.grid.PropertyRecord({name:a,value:c[a]},a))}}this.store.loadRecords({records:b},{},true)},onUpdate:function(e,a,d){if(d==Ext.data.Record.EDIT){var b=a.data.value;var c=a.modified.value;if(this.grid.fireEvent("beforepropertychange",this.source,a.id,b,c)!==false){this.source[a.id]=b;a.commit();this.grid.fireEvent("propertychange",this.source,a.id,b,c)}else{a.reject()}}},getProperty:function(a){return this.store.getAt(a)},isEditableValue:function(a){return Ext.isPrimitive(a)||Ext.isDate(a)},setValue:function(d,c,a){var b=this.getRec(d);if(b){b.set("value",c);this.source[d]=c}else{if(a){this.source[d]=c;b=new Ext.grid.PropertyRecord({name:d,value:c},d);this.store.add(b)}}},remove:function(b){var a=this.getRec(b);if(a){this.store.remove(a);delete this.source[b]}},getRec:function(a){return this.store.getById(a)},getSource:function(){return this.source}});Ext.grid.PropertyColumnModel=Ext.extend(Ext.grid.ColumnModel,{nameText:"Name",valueText:"Value",dateFormat:"m/j/Y",trueText:"true",falseText:"false",constructor:function(c,b){var d=Ext.grid,e=Ext.form;this.grid=c;d.PropertyColumnModel.superclass.constructor.call(this,[{header:this.nameText,width:50,sortable:true,dataIndex:"name",id:"name",menuDisabled:true},{header:this.valueText,width:50,resizable:false,dataIndex:"value",id:"value",menuDisabled:true}]);this.store=b;var a=new e.Field({autoCreate:{tag:"select",children:[{tag:"option",value:"true",html:this.trueText},{tag:"option",value:"false",html:this.falseText}]},getValue:function(){return this.el.dom.value=="true"}});this.editors={date:new d.GridEditor(new e.DateField({selectOnFocus:true})),string:new d.GridEditor(new e.TextField({selectOnFocus:true})),number:new d.GridEditor(new e.NumberField({selectOnFocus:true,style:"text-align:left;"})),"boolean":new d.GridEditor(a,{autoSize:"both"})};this.renderCellDelegate=this.renderCell.createDelegate(this);this.renderPropDelegate=this.renderProp.createDelegate(this)},renderDate:function(a){return a.dateFormat(this.dateFormat)},renderBool:function(a){return this[a?"trueText":"falseText"]},isCellEditable:function(a,b){return a==1},getRenderer:function(a){return a==1?this.renderCellDelegate:this.renderPropDelegate},renderProp:function(a){return this.getPropertyName(a)},renderCell:function(d,b,c){var a=this.grid.customRenderers[c.get("name")];if(a){return a.apply(this,arguments)}var e=d;if(Ext.isDate(d)){e=this.renderDate(d)}else{if(typeof d=="boolean"){e=this.renderBool(d)}}return Ext.util.Format.htmlEncode(e)},getPropertyName:function(b){var a=this.grid.propertyNames;return a&&a[b]?a[b]:b},getCellEditor:function(a,e){var b=this.store.getProperty(e),d=b.data.name,c=b.data.value;if(this.grid.customEditors[d]){return this.grid.customEditors[d]}if(Ext.isDate(c)){return this.editors.date}else{if(typeof c=="number"){return this.editors.number}else{if(typeof c=="boolean"){return this.editors["boolean"]}else{return this.editors.string}}}},destroy:function(){Ext.grid.PropertyColumnModel.superclass.destroy.call(this);this.destroyEditors(this.editors);this.destroyEditors(this.grid.customEditors)},destroyEditors:function(b){for(var a in b){Ext.destroy(b[a])}}});Ext.grid.PropertyGrid=Ext.extend(Ext.grid.EditorGridPanel,{enableColumnMove:false,stripeRows:false,trackMouseOver:false,clicksToEdit:1,enableHdMenu:false,viewConfig:{forceFit:true},initComponent:function(){this.customRenderers=this.customRenderers||{};this.customEditors=this.customEditors||{};this.lastEditRow=null;var b=new Ext.grid.PropertyStore(this);this.propStore=b;var a=new Ext.grid.PropertyColumnModel(this,b);b.store.sort("name","ASC");this.addEvents("beforepropertychange","propertychange");this.cm=a;this.ds=b.store;Ext.grid.PropertyGrid.superclass.initComponent.call(this);this.mon(this.selModel,"beforecellselect",function(e,d,c){if(c===0){this.startEditing.defer(200,this,[d,1]);return false}},this)},onRender:function(){Ext.grid.PropertyGrid.superclass.onRender.apply(this,arguments);this.getGridEl().addClass("x-props-grid")},afterRender:function(){Ext.grid.PropertyGrid.superclass.afterRender.apply(this,arguments);if(this.source){this.setSource(this.source)}},setSource:function(a){this.propStore.setSource(a)},getSource:function(){return this.propStore.getSource()},setProperty:function(c,b,a){this.propStore.setValue(c,b,a)},removeProperty:function(a){this.propStore.remove(a)}});Ext.reg("propertygrid",Ext.grid.PropertyGrid);Ext.grid.GroupingView=Ext.extend(Ext.grid.GridView,{groupByText:"Group By This Field",showGroupsText:"Show in Groups",hideGroupedColumn:false,showGroupName:true,startCollapsed:false,enableGrouping:true,enableGroupingMenu:true,enableNoGroups:true,emptyGroupText:"(None)",ignoreAdd:false,groupTextTpl:"{text}",groupMode:"value",cancelEditOnToggle:true,initTemplates:function(){Ext.grid.GroupingView.superclass.initTemplates.call(this);this.state={};var a=this.grid.getSelectionModel();a.on(a.selectRow?"beforerowselect":"beforecellselect",this.onBeforeRowSelect,this);if(!this.startGroup){this.startGroup=new Ext.XTemplate('
    ','
    ',this.groupTextTpl,"
    ",'
    ')}this.startGroup.compile();if(!this.endGroup){this.endGroup="
    "}},findGroup:function(a){return Ext.fly(a).up(".x-grid-group",this.mainBody.dom)},getGroups:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},onAdd:function(d,a,b){if(this.canGroup()&&!this.ignoreAdd){var c=this.getScrollState();this.fireEvent("beforerowsinserted",d,b,b+(a.length-1));this.refresh();this.restoreScroll(c);this.fireEvent("rowsinserted",d,b,b+(a.length-1))}else{if(!this.canGroup()){Ext.grid.GroupingView.superclass.onAdd.apply(this,arguments)}}},onRemove:function(e,a,b,d){Ext.grid.GroupingView.superclass.onRemove.apply(this,arguments);var c=document.getElementById(a._groupId);if(c&&c.childNodes[1].childNodes.length<1){Ext.removeNode(c)}this.applyEmptyText()},refreshRow:function(a){if(this.ds.getCount()==1){this.refresh()}else{this.isUpdating=true;Ext.grid.GroupingView.superclass.refreshRow.apply(this,arguments);this.isUpdating=false}},beforeMenuShow:function(){var c,a=this.hmenu.items,b=this.cm.config[this.hdCtxIndex].groupable===false;if((c=a.get("groupBy"))){c.setDisabled(b)}if((c=a.get("showGroups"))){c.setDisabled(b);c.setChecked(this.canGroup(),true)}},renderUI:function(){var a=Ext.grid.GroupingView.superclass.renderUI.call(this);if(this.enableGroupingMenu&&this.hmenu){this.hmenu.add("-",{itemId:"groupBy",text:this.groupByText,handler:this.onGroupByClick,scope:this,iconCls:"x-group-by-icon"});if(this.enableNoGroups){this.hmenu.add({itemId:"showGroups",text:this.showGroupsText,checked:true,checkHandler:this.onShowGroupsClick,scope:this})}this.hmenu.on("beforeshow",this.beforeMenuShow,this)}return a},processEvent:function(b,i){Ext.grid.GroupingView.superclass.processEvent.call(this,b,i);var h=i.getTarget(".x-grid-group-hd",this.mainBody);if(h){var g=this.getGroupField(),d=this.getPrefix(g),a=h.id.substring(d.length),c=new RegExp("gp-"+Ext.escapeRe(g)+"--hd");a=a.substr(0,a.length-3);if(a||c.test(h.id)){this.grid.fireEvent("group"+b,this.grid,g,a,i)}if(b=="mousedown"&&i.button==0){this.toggleGroup(h.parentNode)}}},onGroupByClick:function(){var a=this.grid;this.enableGrouping=true;a.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex));a.fireEvent("groupchange",a,a.store.getGroupState());this.beforeMenuShow();this.refresh()},onShowGroupsClick:function(a,b){this.enableGrouping=b;if(b){this.onGroupByClick()}else{this.grid.store.clearGrouping();this.grid.fireEvent("groupchange",this,null)}},toggleRowIndex:function(c,a){if(!this.canGroup()){return}var b=this.getRow(c);if(b){this.toggleGroup(this.findGroup(b),a)}},toggleGroup:function(c,b){var a=Ext.get(c),d=Ext.util.Format.htmlEncode(a.id);b=Ext.isDefined(b)?b:a.hasClass("x-grid-group-collapsed");if(this.state[d]!==b){if(this.cancelEditOnToggle!==false){this.grid.stopEditing(true)}this.state[d]=b;a[b?"removeClass":"addClass"]("x-grid-group-collapsed")}},toggleAllGroups:function(c){var b=this.getGroups();for(var d=0,a=b.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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/README.txt b/scm-webapp/src/main/webapp/resources/extjs/resources/css/README.txt deleted file mode 100644 index 84ec2e7f89..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/README.txt +++ /dev/null @@ -1,6 +0,0 @@ -2010-03-16 jwr: -The CSS file, yourtheme.css, is an exact copy of xtheme-blue.css. Feel free to edit the images inside the yourtheme image directory to build your custom theme--just remember to update your background-image file paths in yourtheme.css. - -2006-11-21 jvs: -ext-all.css contains all of the other css files combined and stripped of comments (except themes). - diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/debug.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/debug.css deleted file mode 100644 index 23a7cfe113..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/debug.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -#x-debug-browser .x-tree .x-tree-node a span { - padding-top:2px; - line-height:18px; -} - -#x-debug-browser .x-tool-toggle { - background-position:0 -75px; -} - -#x-debug-browser .x-tool-toggle-over { - background-position:-15px -75px; -} - -#x-debug-browser.x-panel-collapsed .x-tool-toggle { - background-position:0 -60px; -} - -#x-debug-browser.x-panel-collapsed .x-tool-toggle-over { - background-position:-15px -60px; -}#x-debug-browser .x-tree .x-tree-node a span { - color:#222297; - font-size:11px; - font-family:"monotype","courier new",sans-serif; -} - -#x-debug-browser .x-tree a i { - color:#ff4545; - font-style:normal; -} - -#x-debug-browser .x-tree a em { - color:#999; -} - -#x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{ - background-color:#c3daf9; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all-notheme.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all-notheme.css deleted file mode 100644 index 6bc6765689..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all-notheme.css +++ /dev/null @@ -1,5326 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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-forced-border-box, .ext-forced-border-box * { - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - -webkit-box-sizing: border-box; -} -.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-nosize, -.x-hide-nosize * /* Emulate display:none for children */ - { - height:0px!important; - width:0px!important; - visibility:hidden!important; - border:none!important; - zoom:1; -} - -.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-color: 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 .x-tab-strip li { - position: relative; -} -.ext-border-box .ext-ie8 .x-tab-strip-top .x-tab-right { - top: 1px; -} -.ext-ie8 .x-tab-strip-top { - padding-top: 1; -} -.ext-border-box .ext-ie8 .x-tab-strip-top { - padding-top: 0; -} -.ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - top:3px; -} -.ext-border-box .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; -} - -.x-quirks .ext-ie9 .x-form-text { - height: 22px; - padding-top: 3px; - padding-bottom: 0px; -} - -/* Ugly hacks for the bogus 1px margin bug in IE9 quirks */ -.x-quirks .ext-ie9 .x-input-wrapper .x-form-text, -.x-quirks .ext-ie9 .x-form-field-trigger-wrap .x-form-text { - margin-top: -1px; - margin-bottom: -1px; -} -.x-quirks .ext-ie9 .x-input-wrapper .x-form-element { - margin-bottom: -1px; -} - -.ext-ie6 .x-form-field-wrap .x-form-file-btn, .ext-ie7 .x-form-field-wrap .x-form-file-btn { - top: -1px; /* because of all these margin hacks, these buttons are off by one pixel in IE6,7 */ -} - -.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%;} - -.ext-strict .ext-webkit .x-small-editor .x-form-text{ - height:14px !important; -} - -.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-strict .ext-ie9 .x-fieldset legend.x-fieldset-header { - padding-top: 1px; -} - -.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-mac.ext-gecko .x-window-body .x-form-item { - overflow:hidden; -} - -.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-color: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-color: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-color: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-color: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; -} - -/* ActionColumn, reduce padding to accommodate 16x16 icons in normal row height */ -.x-action-col-cell .x-grid3-cell-inner { - padding-top: 1px; - padding-bottom: 1px; -} - -.x-action-col-icon { - cursor: pointer; -} - -.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-color: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-pivotgrid .x-grid3-header-offset table { - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-header-offset table td { - padding: 4px 3px 4px 5px; - text-align: center; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-size: 11px; - line-height: 13px; - font-family: tahoma; -} - -.x-pivotgrid .x-grid3-row-headers { - display: block; - float: left; -} - -.x-pivotgrid .x-grid3-row-headers table { - height: 100%; - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-row-headers table td { - height: 18px; - padding: 2px 7px 0 0; - text-align: right; - text-overflow: ellipsis; - font-size: 11px; - font-family: tahoma; -} - -.ext-gecko .x-pivotgrid .x-grid3-row-headers table td { - height: 21px; -} - -.x-grid3-header-title { - top: 0%; - left: 0%; - position: absolute; - text-align: center; - vertical-align: middle; - font-family: tahoma; - font-size: 11px; - padding: auto 1px; - display: table-cell; -} - -.x-grid3-header-title span { - position: absolute; - top: 50%; - left: 0%; - width: 100%; - margin-top: -6px; -}.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-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-end{ - background-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-line{ - background-color:transparent; -} - -/* Arrows */ -.x-tree-arrows .x-tree-elbow{ - background-color: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-color: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-color: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-color: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-color: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-color: 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; -} - -/* - * Fixes an issue with "fat" separators in webkit - */ -.ext-webkit .x-menu-sep{ - 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 no-repeat; -} - -.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-color: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-prev { - background-position:0 -105px; -} - -.x-tool-prev-over { - background-position:-15px -105px; -} - -.x-tool-next { - background-position:0 -120px; -} - -.x-tool-next-over { - background-position:-15px -120px; -} - -.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-down { - background-position:0 -195px; -} - -.x-tool-down-over { - background-position:-15px -195px; -} - -.x-tool-up { - background-position:0 -210px; -} - -.x-tool-up-over { - background-position:-15px -210px; -} - -.x-tool-refresh { - background-position:0 -225px; -} - -.x-tool-refresh-over { - background-position:-15px -225px; -} - -.x-tool-plus { - background-position:0 -240px; -} - -.x-tool-plus-over { - background-position:-15px -240px; -} - -.x-tool-minus { - background-position:0 -255px; -} - -.x-tool-minus-over { - background-position:-15px -255px; -} - -.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; -} - -.x-tool-expand { - background-position:0 -330px; -} - -.x-tool-expand-over { - background-position:-15px -330px; -} - -.x-tool-collapse { - background-position:0 -345px; -} - -.x-tool-collapse-over { - background-position:-15px -345px; -} - -.x-tool-resize { - background-position:0 -360px; -} - -.x-tool-resize-over { - background-position:-15px -360px; -} - -.x-tool-move { - background-position:0 -375px; -} - -.x-tool-move-over { - background-position:-15px -375px; -} - -/* 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-color: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 2px; -} - -.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-color:transparent; -} - -.x-layout-cmini-north, .x-layout-cmini-south { - border:0 none; - height:5px !important; - padding:0; - background-color: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; -} - -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all.css deleted file mode 100644 index 38dff3e08e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/ext-all.css +++ /dev/null @@ -1,6993 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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-forced-border-box, .ext-forced-border-box * { - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - -webkit-box-sizing: border-box; -} -.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-nosize, -.x-hide-nosize * /* Emulate display:none for children */ - { - height:0px!important; - width:0px!important; - visibility:hidden!important; - border:none!important; - zoom:1; -} - -.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-color: 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 .x-tab-strip li { - position: relative; -} -.ext-border-box .ext-ie8 .x-tab-strip-top .x-tab-right { - top: 1px; -} -.ext-ie8 .x-tab-strip-top { - padding-top: 1; -} -.ext-border-box .ext-ie8 .x-tab-strip-top { - padding-top: 0; -} -.ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - top:3px; -} -.ext-border-box .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; -} - -.x-quirks .ext-ie9 .x-form-text { - height: 22px; - padding-top: 3px; - padding-bottom: 0px; -} - -/* Ugly hacks for the bogus 1px margin bug in IE9 quirks */ -.x-quirks .ext-ie9 .x-input-wrapper .x-form-text, -.x-quirks .ext-ie9 .x-form-field-trigger-wrap .x-form-text { - margin-top: -1px; - margin-bottom: -1px; -} -.x-quirks .ext-ie9 .x-input-wrapper .x-form-element { - margin-bottom: -1px; -} - -.ext-ie6 .x-form-field-wrap .x-form-file-btn, .ext-ie7 .x-form-field-wrap .x-form-file-btn { - top: -1px; /* because of all these margin hacks, these buttons are off by one pixel in IE6,7 */ -} - -.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%;} - -.ext-strict .ext-webkit .x-small-editor .x-form-text{ - height:14px !important; -} - -.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-strict .ext-ie9 .x-fieldset legend.x-fieldset-header { - padding-top: 1px; -} - -.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-mac.ext-gecko .x-window-body .x-form-item { - overflow:hidden; -} - -.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-color: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-color: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-color: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-color: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; -} - -/* ActionColumn, reduce padding to accommodate 16x16 icons in normal row height */ -.x-action-col-cell .x-grid3-cell-inner { - padding-top: 1px; - padding-bottom: 1px; -} - -.x-action-col-icon { - cursor: pointer; -} - -.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-color: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-pivotgrid .x-grid3-header-offset table { - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-header-offset table td { - padding: 4px 3px 4px 5px; - text-align: center; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-size: 11px; - line-height: 13px; - font-family: tahoma; -} - -.x-pivotgrid .x-grid3-row-headers { - display: block; - float: left; -} - -.x-pivotgrid .x-grid3-row-headers table { - height: 100%; - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-row-headers table td { - height: 18px; - padding: 2px 7px 0 0; - text-align: right; - text-overflow: ellipsis; - font-size: 11px; - font-family: tahoma; -} - -.ext-gecko .x-pivotgrid .x-grid3-row-headers table td { - height: 21px; -} - -.x-grid3-header-title { - top: 0%; - left: 0%; - position: absolute; - text-align: center; - vertical-align: middle; - font-family: tahoma; - font-size: 11px; - padding: auto 1px; - display: table-cell; -} - -.x-grid3-header-title span { - position: absolute; - top: 50%; - left: 0%; - width: 100%; - margin-top: -6px; -}.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-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-end{ - background-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-line{ - background-color:transparent; -} - -/* Arrows */ -.x-tree-arrows .x-tree-elbow{ - background-color: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-color: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-color: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-color: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-color: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-color: 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; -} - -/* - * Fixes an issue with "fat" separators in webkit - */ -.ext-webkit .x-menu-sep{ - 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 no-repeat; -} - -.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-color: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-prev { - background-position:0 -105px; -} - -.x-tool-prev-over { - background-position:-15px -105px; -} - -.x-tool-next { - background-position:0 -120px; -} - -.x-tool-next-over { - background-position:-15px -120px; -} - -.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-down { - background-position:0 -195px; -} - -.x-tool-down-over { - background-position:-15px -195px; -} - -.x-tool-up { - background-position:0 -210px; -} - -.x-tool-up-over { - background-position:-15px -210px; -} - -.x-tool-refresh { - background-position:0 -225px; -} - -.x-tool-refresh-over { - background-position:-15px -225px; -} - -.x-tool-plus { - background-position:0 -240px; -} - -.x-tool-plus-over { - background-position:-15px -240px; -} - -.x-tool-minus { - background-position:0 -255px; -} - -.x-tool-minus-over { - background-position:-15px -255px; -} - -.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; -} - -.x-tool-expand { - background-position:0 -330px; -} - -.x-tool-expand-over { - background-position:-15px -330px; -} - -.x-tool-collapse { - background-position:0 -345px; -} - -.x-tool-collapse-over { - background-position:-15px -345px; -} - -.x-tool-resize { - background-position:0 -360px; -} - -.x-tool-resize-over { - background-position:-15px -360px; -} - -.x-tool-move { - background-position:0 -375px; -} - -.x-tool-move-over { - background-position:-15px -375px; -} - -/* 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-color: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 2px; -} - -.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-color:transparent; -} - -.x-layout-cmini-north, .x-layout-cmini-south { - border:0 none; - height:5px !important; - padding:0; - background-color: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; -} - -.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/refresh-disabled.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); -} - -td.grid-hd-group-cell { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x bottom; -} - -.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-pivotgrid .x-grid3-header-offset table td { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; -} - -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} - -.x-pivotgrid .x-grid3-row-headers table td { - background: #EEE url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; - border-bottom: 1px solid; - border-bottom-color: #D0D0D0; - height: 18px; -} -.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/scm-webapp/src/main/webapp/resources/extjs/resources/css/reset-min.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/reset-min.css deleted file mode 100644 index f503196be0..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/reset-min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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:'';} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/borders.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/borders.css deleted file mode 100644 index 61512a33d5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/borders.css +++ /dev/null @@ -1,54 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/box.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/box.css deleted file mode 100644 index f658304288..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/box.css +++ /dev/null @@ -1,80 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/* - 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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/button.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/button.css deleted file mode 100644 index fb8cdc289f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/button.css +++ /dev/null @@ -1,445 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-btn{ - cursor:pointer; - white-space: nowrap; -} - -.x-btn button{ - border:0 none; - background-color: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-color: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-color: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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/combo.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/combo.css deleted file mode 100644 index 3edeea1b80..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/combo.css +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/core.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/core.css deleted file mode 100644 index caf75a3b4b..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/core.css +++ /dev/null @@ -1,341 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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-nosize, -.x-hide-nosize * /* Emulate display:none for children */ - { - height:0px!important; - width:0px!important; - visibility:hidden!important; - border:none!important; - zoom:1; -} - -.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-color: 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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/date-picker.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/date-picker.css deleted file mode 100644 index 8d5f409442..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/date-picker.css +++ /dev/null @@ -1,271 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dd.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dd.css deleted file mode 100644 index 6a5a6c34b2..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dd.css +++ /dev/null @@ -1,61 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/debug.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/debug.css deleted file mode 100644 index 9c18de97ed..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/debug.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -#x-debug-browser .x-tree .x-tree-node a span { - padding-top:2px; - line-height:18px; -} - -#x-debug-browser .x-tool-toggle { - background-position:0 -75px; -} - -#x-debug-browser .x-tool-toggle-over { - background-position:-15px -75px; -} - -#x-debug-browser.x-panel-collapsed .x-tool-toggle { - background-position:0 -60px; -} - -#x-debug-browser.x-panel-collapsed .x-tool-toggle-over { - background-position:-15px -60px; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dialog.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dialog.css deleted file mode 100644 index 09092019d5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/dialog.css +++ /dev/null @@ -1,59 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} - -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/editor.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/editor.css deleted file mode 100644 index dd5840a8b0..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/editor.css +++ /dev/null @@ -1,92 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/form.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/form.css deleted file mode 100644 index 9e7684bfd4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/form.css +++ /dev/null @@ -1,597 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/* 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; -} - -.x-quirks .ext-ie9 .x-form-text { - height: 22px; - padding-top: 3px; - padding-bottom: 0px; -} - -/* Ugly hacks for the bogus 1px margin bug in IE9 quirks */ -.x-quirks .ext-ie9 .x-input-wrapper .x-form-text, -.x-quirks .ext-ie9 .x-form-field-trigger-wrap .x-form-text { - margin-top: -1px; - margin-bottom: -1px; -} -.x-quirks .ext-ie9 .x-input-wrapper .x-form-element { - margin-bottom: -1px; -} - -.ext-ie6 .x-form-field-wrap .x-form-file-btn, .ext-ie7 .x-form-field-wrap .x-form-file-btn { - top: -1px; /* because of all these margin hacks, these buttons are off by one pixel in IE6,7 */ -} - -.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%;} - -.ext-strict .ext-webkit .x-small-editor .x-form-text{ - height:14px !important; -} - -.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-strict .ext-ie9 .x-fieldset legend.x-fieldset-header { - padding-top: 1px; -} - -.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-mac.ext-gecko .x-window-body .x-form-item { - overflow:hidden; -} - -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/grid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/grid.css deleted file mode 100644 index 4a3401e63a..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/grid.css +++ /dev/null @@ -1,588 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/* 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; -} - -/* ActionColumn, reduce padding to accommodate 16x16 icons in normal row height */ -.x-action-col-cell .x-grid3-cell-inner { - padding-top: 1px; - padding-bottom: 1px; -} - -.x-action-col-icon { - cursor: pointer; -} - -.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-color: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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/layout.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/layout.css deleted file mode 100644 index 89c2601b61..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/layout.css +++ /dev/null @@ -1,296 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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 2px; -} - -.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-color:transparent; -} - -.x-layout-cmini-north, .x-layout-cmini-south { - border:0 none; - height:5px !important; - padding:0; - background-color: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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/list-view.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/list-view.css deleted file mode 100644 index 1b166d5913..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/list-view.css +++ /dev/null @@ -1,86 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} - diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/menu.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/menu.css deleted file mode 100644 index a9565b2760..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/menu.css +++ /dev/null @@ -1,245 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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-color: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-color: 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; -} - -/* - * Fixes an issue with "fat" separators in webkit - */ -.ext-webkit .x-menu-sep{ - 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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel-reset.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel-reset.css deleted file mode 100644 index 42fe645827..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel-reset.css +++ /dev/null @@ -1,130 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/** - * 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 } diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel.css deleted file mode 100644 index 204b78777e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/panel.css +++ /dev/null @@ -1,493 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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 no-repeat; -} - -.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-color: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-prev { - background-position:0 -105px; -} - -.x-tool-prev-over { - background-position:-15px -105px; -} - -.x-tool-next { - background-position:0 -120px; -} - -.x-tool-next-over { - background-position:-15px -120px; -} - -.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-down { - background-position:0 -195px; -} - -.x-tool-down-over { - background-position:-15px -195px; -} - -.x-tool-up { - background-position:0 -210px; -} - -.x-tool-up-over { - background-position:-15px -210px; -} - -.x-tool-refresh { - background-position:0 -225px; -} - -.x-tool-refresh-over { - background-position:-15px -225px; -} - -.x-tool-plus { - background-position:0 -240px; -} - -.x-tool-plus-over { - background-position:-15px -240px; -} - -.x-tool-minus { - background-position:0 -255px; -} - -.x-tool-minus-over { - background-position:-15px -255px; -} - -.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; -} - -.x-tool-expand { - background-position:0 -330px; -} - -.x-tool-expand-over { - background-position:-15px -330px; -} - -.x-tool-collapse { - background-position:0 -345px; -} - -.x-tool-collapse-over { - background-position:-15px -345px; -} - -.x-tool-resize { - background-position:0 -360px; -} - -.x-tool-resize-over { - background-position:-15px -360px; -} - -.x-tool-move { - background-position:0 -375px; -} - -.x-tool-move-over { - background-position:-15px -375px; -} - -/* 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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/pivotgrid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/pivotgrid.css deleted file mode 100644 index d526d7205e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/pivotgrid.css +++ /dev/null @@ -1,65 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-pivotgrid .x-grid3-header-offset table { - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-header-offset table td { - padding: 4px 3px 4px 5px; - text-align: center; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-size: 11px; - line-height: 13px; - font-family: tahoma; -} - -.x-pivotgrid .x-grid3-row-headers { - display: block; - float: left; -} - -.x-pivotgrid .x-grid3-row-headers table { - height: 100%; - width: 100%; - border-collapse: collapse; -} - -.x-pivotgrid .x-grid3-row-headers table td { - height: 18px; - padding: 2px 7px 0 0; - text-align: right; - text-overflow: ellipsis; - font-size: 11px; - font-family: tahoma; -} - -.ext-gecko .x-pivotgrid .x-grid3-row-headers table td { - height: 21px; -} - -.x-grid3-header-title { - top: 0%; - left: 0%; - position: absolute; - text-align: center; - vertical-align: middle; - font-family: tahoma; - font-size: 11px; - padding: auto 1px; - display: table-cell; -} - -.x-grid3-header-title span { - position: absolute; - top: 50%; - left: 0%; - width: 100%; - margin-top: -6px; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/progress.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/progress.css deleted file mode 100644 index 906ddfcd6c..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/progress.css +++ /dev/null @@ -1,46 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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%; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/qtips.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/qtips.css deleted file mode 100644 index bcc7d3bf0d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/qtips.css +++ /dev/null @@ -1,153 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/reset.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/reset.css deleted file mode 100644 index 763a46a35a..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/reset.css +++ /dev/null @@ -1,13 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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-forced-border-box, .ext-forced-border-box * { - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - -webkit-box-sizing: border-box; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/resizable.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/resizable.css deleted file mode 100644 index ed3b5e5d5d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/resizable.css +++ /dev/null @@ -1,149 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/slider.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/slider.css deleted file mode 100644 index 51538af442..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/slider.css +++ /dev/null @@ -1,103 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/* 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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tabs.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tabs.css deleted file mode 100644 index e0f542c077..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tabs.css +++ /dev/null @@ -1,392 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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 .x-tab-strip li { - position: relative; -} -.ext-border-box .ext-ie8 .x-tab-strip-top .x-tab-right { - top: 1px; -} -.ext-ie8 .x-tab-strip-top { - padding-top: 1; -} -.ext-border-box .ext-ie8 .x-tab-strip-top { - padding-top: 0; -} -.ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - top:3px; -} -.ext-border-box .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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/toolbar.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/toolbar.css deleted file mode 100644 index e2d962c2b6..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/toolbar.css +++ /dev/null @@ -1,246 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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-color: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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tree.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tree.css deleted file mode 100644 index 08d32b97d5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/tree.css +++ /dev/null @@ -1,218 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-end{ - background-color:transparent; -} - -.x-tree-no-lines .x-tree-elbow-line{ - background-color:transparent; -} - -/* Arrows */ -.x-tree-arrows .x-tree-elbow{ - background-color: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-color: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-color: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-color: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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/window.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/window.css deleted file mode 100644 index 3871e642c1..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/structure/window.css +++ /dev/null @@ -1,222 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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-color: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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/borders.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/borders.css deleted file mode 100644 index 01a4c1b007..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/borders.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-panel-noborder .x-panel-header-noborder { - border-bottom-color:#343d4e; -} - -.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { - border-bottom-color:#343d4e; -} - -.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { - border-top-color:#343d4e; -} - -.x-tab-panel-bbar-noborder .x-toolbar { - border-top-color:#343d4e; -} - -.x-tab-panel-tbar-noborder .x-toolbar { - border-bottom-color:#343d4e; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/box.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/box.css deleted file mode 100644 index 9e4d28df00..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/box.css +++ /dev/null @@ -1,74 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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: 15px; -} - -.x-box-mc h3 { - font-size: 18px; - 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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/button.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/button.css deleted file mode 100644 index be74738193..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/button.css +++ /dev/null @@ -1,136 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-btn { - font:normal 14px tahoma, verdana, helvetica; -} - -.x-btn button { - font:normal 14px arial,tahoma,verdana,helvetica; - color:#fffffa; - padding-left:6px !important; - padding-right:6px !important; -} - -.x-btn-over .x-btn button{ - color:#fff; -} - -.x-btn-noicon .x-btn-small .x-btn-text, .x-btn-text-icon .x-btn-icon-small-left .x-btn-text, -.x-btn-icon .x-btn-small .x-btn-text, .x-btn-text-icon .x-btn-icon-small-right .x-btn-text { - height:18px; -} - -.x-btn-icon .x-btn-small .x-btn-text { - width:18px; -} - -.x-btn-text-icon .x-btn-icon-small-left .x-btn-text { - padding-left:21px !important; -} - -.x-btn-text-icon .x-btn-icon-small-right .x-btn-text { - padding-right:21px !important; -} - -.x-btn-text-icon .x-btn-icon-medium-left .x-btn-text { - padding-left:29px !important; -} - -.x-btn-text-icon .x-btn-icon-medium-right .x-btn-text { - padding-right:29px !important; -} - -.x-btn-text-icon .x-btn-icon-large-left .x-btn-text { - padding-left:37px !important; -} - -.x-btn-text-icon .x-btn-icon-large-right .x-btn-text { - padding-right:37px !important; -} - -.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/access/button/btn.gif); -} - -.x-btn-click .x-btn-text, .x-btn-menu-active .x-btn-text, .x-btn-pressed .x-btn-text{ - color:#fff; -} - -.x-btn-disabled *{ - color:#eee !important; -} - -.x-btn-mc em.x-btn-arrow { - background-image:url(../images/access/button/arrow.gif); - padding-right:13px; -} - -.x-btn-mc em.x-btn-split { - background-image:url(../images/access/button/s-arrow.gif); - padding-right:20px; -} - -.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/access/button/s-arrow-o.gif); -} - -.x-btn-mc em.x-btn-arrow-bottom { - background-image:url(../images/access/button/s-arrow-b-noline.gif); -} - -.x-btn-mc em.x-btn-split-bottom { - background-image:url(../images/access/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/access/button/s-arrow-bo.gif); -} - -.x-btn-group-header { - color: #d2d2d2; -} - -.x-btn-group-tc { - background-image: url(../images/access/button/group-tb.gif); -} - -.x-btn-group-tl { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-tr { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-bc { - background-image: url(../images/access/button/group-tb.gif); -} - -.x-btn-group-bl { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-br { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-ml { - background-image: url(../images/access/button/group-lr.gif); -} - -.x-btn-group-mr { - background-image: url(../images/access/button/group-lr.gif); -} - -.x-btn-group-notitle .x-btn-group-tc { - background-image: url(../images/access/button/group-tb.gif); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/combo.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/combo.css deleted file mode 100644 index d619754b6d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/combo.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-combo-list { - border:2px solid #232732; - background-color:#555566; - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-combo-list-inner { - background-color:#414551; -} - -.x-combo-list-hd { - font:bold 14px tahoma, arial, helvetica, sans-serif; - color:#fff; - 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:#556; -} - -.x-combo-list .x-combo-selected { - border-color:#e5872c !important; - background-color:#e5872c; -} - -.x-combo-list .x-toolbar { - border-top-color:#98c0f4; -} - -.x-combo-list-small { - font:normal 14px tahoma, arial, helvetica, sans-serif; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/core.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/core.css deleted file mode 100644 index 377192af3b..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/core.css +++ /dev/null @@ -1,81 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -body { - background-color:#16181a; - color:#fcfcfc; -} - -.ext-el-mask { - background-color: #ccc; -} - -.ext-el-mask-msg { - border-color:#223; - background-color:#3f4757; - background-image:url(../images/access/box/tb-blue.gif); -} -.ext-el-mask-msg div { - background-color: #232d38; - border-color:#556; - color:#fff; - font:normal 14px tahoma, arial, helvetica, sans-serif; -} - -.x-mask-loading div { - background-color:#232d38; - background-image:url(../images/access/grid/loading.gif); -} - -.x-item-disabled { - color: #ddd; -} - -.x-item-disabled * { - color: #ddd !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 { - 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: 14px; - background-image: url(../images/access/grid/loading.gif); -} - -.x-spotlight { - background-color: #ccc; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/date-picker.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/date-picker.css deleted file mode 100644 index 1509a612d7..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/date-picker.css +++ /dev/null @@ -1,145 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-date-picker { - border-color: #737b8c; - background-color:#21252e; -} - -.x-date-middle,.x-date-left,.x-date-right { - background-image: url(../images/access/shared/hd-sprite.gif); - color:#fff; - font:bold 14px "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/access/toolbar/btn-arrow-light.gif); -} - -.x-date-right a { - background-image: url(../images/access/shared/right-btn.gif); -} - -.x-date-left a{ - background-image: url(../images/access/shared/left-btn.gif); -} - -.x-date-inner th { - background-color:#363d4a; - background-image:url(../images/access/toolbar/bg.gif); - border-bottom-color:#535b5c; - font:normal 13px arial, helvetica,tahoma,sans-serif; - color:#fff; -} - -.x-date-inner td { - border-color:#112; -} - -.x-date-inner a { - font:normal 14px arial, helvetica,tahoma,sans-serif; - color:#fff; - padding:2px 7px 1px 3px; /* Structure to account for larger, bolder fonts in Access theme. */ -} - -.x-date-inner .x-date-active{ - color:#000; -} - -.x-date-inner .x-date-selected a{ - background-color:#e5872c; - background-image:none; - border-color:#864900; - padding:1px 6px 1px 2px; /* Structure to account for larger, bolder fonts in Access theme. */ -} - -.x-date-inner .x-date-today a{ - border-color:#99a; -} - -.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:#737b8c; - background-color:#464d5a; - background-image:url(../images/access/shared/glass-bg.gif); -} - -.x-date-inner a:hover, .x-date-inner .x-date-disabled a:hover{ - color:#fff; - background-color:#7e5530; -} - -.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:13px; - color:#000; -} - -.x-date-mp { - background-color:#21252e; -} - -.x-date-mp td { - font:normal 14px arial, helvetica,tahoma,sans-serif; -} - -.x-date-mp-btns button { - background-color:#083772; - color:#fff; - border-color: #3366cc #000055 #000055 #3366cc; - font:normal 14px arial, helvetica,tahoma,sans-serif; -} - -.x-date-mp-btns { - background-color: #dfecfb; - background-image: url(../images/access/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:#fff; -} - -td.x-date-mp-month a:hover,td.x-date-mp-year a:hover { - color:#fff; - background-color: #7e5530; -} - -td.x-date-mp-sel a { - background-color: #e5872c; - background-image: none; - border-color:#864900; -} - -.x-date-mp-ybtn a { - background-image:url(../images/access/panel/tool-sprites.gif); -} - -td.x-date-mp-sep { - border-right-color:#c5d2df; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dd.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dd.css deleted file mode 100644 index 51c05e4503..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dd.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-dd-drag-ghost{ - color:#000; - font: normal 14px 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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/debug.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/debug.css deleted file mode 100644 index f23055d814..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/debug.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -#x-debug-browser .x-tree .x-tree-node a span { - color:#222297; - font-size:14px; - font-family:"monotype","courier new",sans-serif; -} - -#x-debug-browser .x-tree a i { - color:#ff4545; - font-style:normal; -} - -#x-debug-browser .x-tree a em { - color:#999; -} - -#x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{ - background-color:#c3daf9; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dialog.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dialog.css deleted file mode 100644 index fc95f911d4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/dialog.css +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-window-dlg .ext-mb-text, -.x-window-dlg .x-window-header-text { - font-size:15px; -} - -.x-window-dlg .ext-mb-textarea { - font:normal 15px tahoma,arial,helvetica,sans-serif; -} - -.x-window-dlg .x-msg-box-wait { - background-image:url(../images/access/grid/loading.gif); -} - -.x-window-dlg .ext-mb-info { - background-image:url(../images/access/window/icon-info.gif); -} - -.x-window-dlg .ext-mb-warning { - background-image:url(../images/access/window/icon-warning.gif); -} - -.x-window-dlg .ext-mb-question { - background-image:url(../images/access/window/icon-question.gif); -} - -.x-window-dlg .ext-mb-error { - background-image:url(../images/access/window/icon-error.gif); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/editor.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/editor.css deleted file mode 100644 index b9c88fbf50..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/editor.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-html-editor-wrap { - border-color:#737B8C; - background-color:#fff; -} -.x-html-editor-wrap iframe { - background-color: #fff; -} -.x-html-editor-tb .x-btn-text { - background-image:url(../images/access/editor/tb-sprite.gif); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/form.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/form.css deleted file mode 100644 index 2fa569f234..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/form.css +++ /dev/null @@ -1,176 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-form-field { - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-text, textarea.x-form-field{ - color: #ffffff; - background-color:#33373d; - background-image:url(../images/access/form/text-bg.gif); - border-color:#737b8c; - border-width:2px; -} - -.ext-webkit .x-form-text, .ext-webkit textarea.x-form-field{ - border-width:2px; -} - -.x-form-text, .ext-ie .x-form-file { - height:26px; -} - -.ext-strict .x-form-text { - height:20px; -} - -.x-form-select-one { - background-color:#fff; - border-color:#b5b8c8; -} - -.x-form-check-group-label { - border-bottom: 1px solid #99bbe8; - color: #fff; -} - -.x-editor .x-form-check-wrap { - background-color:#fff; -} - -.x-form-field-wrap .x-form-trigger{ - background-image:url(../images/access/form/trigger.gif); - border-bottom-color:#737b8c; - border-bottom-width:2px; - height:24px; - width:20px; -} - -.x-form-field-wrap .x-form-trigger.x-form-trigger-over{ - border-bottom-color:#d97e27; -} - -.x-form-field-wrap .x-form-trigger.x-form-trigger-click{ - border-bottom-color:#c86e19; -} - -.x-small-editor .x-form-field-wrap .x-form-trigger { - height:24px; -} - -.x-form-field-wrap .x-form-trigger-over { - background-position:-20px 0; -} - -.x-form-field-wrap .x-form-trigger-click { - background-position:-40px 0; -} - -.x-trigger-wrap-focus .x-form-trigger { - background-position:-60px 0; -} - -.x-trigger-wrap-focus .x-form-trigger-over { - background-position:-80px 0; -} - -.x-trigger-wrap-focus .x-form-trigger-click { - background-position:-100px 0; -} - -.x-form-field-wrap .x-form-date-trigger{ - background-image: url(../images/access/form/date-trigger.gif); -} - -.x-form-field-wrap .x-form-clear-trigger{ - background-image: url(../images/access/form/clear-trigger.gif); -} - -.x-form-field-wrap .x-form-search-trigger{ - background-image: url(../images/access/form/search-trigger.gif); -} - -.x-trigger-wrap-focus .x-form-trigger{ - border-bottom-color:#737b8c; -} - -.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:#ff9c33; -} - -.x-form-invalid, textarea.x-form-invalid, -.ext-webkit .x-form-invalid, .ext-webkit textarea.x-form-invalid{ - background-color:#15171a; - background-image:url(../images/access/grid/invalid_line.gif); - border-color:#c30; -} - -/* -.ext-safari .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/access/grid/invalid_line.gif); -} - -.x-form-grow-sizer { - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-item { - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-invalid-msg { - color:#c0272b; - font:normal 14px tahoma, arial, helvetica, sans-serif; - background-image:url(../images/default/shared/warning.gif); -} - -.x-form-empty-field { - color:#dadadd; -} - -.x-small-editor .x-form-text { - height: 26px; -} - -.x-small-editor .x-form-field { - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.ext-safari .x-small-editor .x-form-field { - font:normal 15px arial, tahoma, helvetica, sans-serif; -} - -.x-form-invalid-icon { - background-image:url(../images/access/form/exclamation.gif); - height:25px; - width:19px; - background-position:center right; -} - -.x-fieldset { - border-color:#737B8C; -} - -.x-fieldset legend { - font:bold 14px tahoma, arial, helvetica, sans-serif; - color:#fff; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/grid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/grid.css deleted file mode 100644 index 5c13dc4ca8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/grid.css +++ /dev/null @@ -1,288 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-grid3 { - background-color:#1f2933; -} - -.x-grid-panel .x-panel-mc .x-panel-body { - border-color:#223; -} - -.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td{ - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-grid3-hd-row td { - border-left-color:#556; - border-right-color:#223; -} - -.x-grid-row-loading { - background-color: #fff; - background-image:url(../images/default/shared/loading-balls.gif); -} - -.x-grid3-row { - border:0 none; - border-bottom:1px solid #111; - border-right:1px solid #1a1a1c; -} - -.x-grid3-row-alt{ - background-color:#1b232b; -} - -.x-grid3-row-over { - background-color:#7e5530; -} - -.x-grid3-resize-proxy { - background-color:#777; -} - -.x-grid3-resize-marker { - background-color:#777; -} - -.x-grid3-header{ - background-color:#3b3f50; - background-image:url(../images/access/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:#889; - border-right-color:#445; -} - -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:#4e628a; - background-image:url(../images/access/grid/grid3-hrow-over.gif); -} - -.x-grid3-cell-inner, .x-grid3-hd-inner { - color:#fff; -} - -.sort-asc .x-grid3-sort-icon { - background-image: url(../images/access/grid/sort_asc.gif); - width:15px; - height:9px; - margin-left:5px; -} - -.sort-desc .x-grid3-sort-icon { - background-image: url(../images/access/grid/sort_desc.gif); - width:15px; - height:9px; - margin-left:5px; -} - -.x-grid3-cell-text, .x-grid3-hd-text { - color:#fff; -} - -.x-grid3-split { - background-image: url(../images/default/grid/grid-split.gif); -} - -.x-grid3-hd-text { - color:#fff; -} - -.x-dd-drag-proxy .x-grid3-hd-inner{ - background-color:#ebf3fd; - background-image:url(../images/access/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: #e5872c !important; - background-image: none; - border-style: solid; -} - -.x-grid3-row-selected .x-grid3-cell { - color: #fff; -} - -.x-grid3-cell-selected { - background-color: #ffa340 !important; - color:#fff; -} - -.x-grid3-cell-selected span{ - color:#fff !important; -} - -.x-grid3-cell-selected .x-grid3-cell-text{ - color:#fff; -} - -.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:#fff; - 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:#fff !important; -} - -.x-grid3-dirty-cell { - background-image:url(../images/access/grid/dirty.gif); -} - -.x-grid3-topbar, .x-grid3-bottombar{ - font:normal 14px 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/access/grid/grid3-special-col-bg.gif) !important; - color:#fff !important; -} -.x-props-grid .x-grid3-td-value { - color:#fff !important; -} - -.x-props-grid .x-grid3-body .x-grid3-td-name{ - background-color:#263240 !important; - border-right-color:#223; -} - -.xg-hmenu-sort-asc .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-asc.gif); -} - -.xg-hmenu-sort-desc .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-desc.gif); -} - -.xg-hmenu-lock .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-lock.gif); -} - -.xg-hmenu-unlock .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-unlock.gif); -} - -.x-grid3-hd-btn { - background-color:#c2c9d0; - background-image:url(../images/access/grid/grid3-hd-btn.gif); -} - -.x-grid3-body .x-grid3-td-expander { - background-image:url(../images/access/grid/grid3-special-col-bg.gif); -} - -.x-grid3-row-expander { - background-image:url(../images/access/grid/row-expand-sprite.gif); -} - -.x-grid3-body .x-grid3-td-checker { - background-image: url(../images/access/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/access/grid/grid3-special-col-bg.gif); -} - -.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner { - color:#fff; -} - -.x-grid3-body .x-grid3-td-row-icon { - background-image:url(../images/access/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/access/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:#4e628a; -} - -.x-grid-group-hd div.x-grid-group-title { - background-image:url(../images/access/grid/group-collapse.gif); - background-position:3px 6px; - color:#ffd; - font:bold 14px tahoma, arial, helvetica, sans-serif; -} - -.x-grid-group-collapsed .x-grid-group-hd div.x-grid-group-title { - background-image:url(../images/access/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 14px 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:#a3bae9; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/layout.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/layout.css deleted file mode 100644 index 22e482ddfe..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/layout.css +++ /dev/null @@ -1,56 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-border-layout-ct { - background-color:#3f4757; -} - -.x-accordion-hd { - color:#fff; - font-weight:normal; - background-image: url(../images/access/panel/light-hd.gif); -} - -.x-layout-collapsed{ - background-color:#323845; - border-color:#1a1a1c; -} - -.x-layout-collapsed-over{ - background-color:#2d3440; -} - -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/list-view.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/list-view.css deleted file mode 100644 index a62ae7a9af..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/list-view.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-list-header{ - background-color:#393d4e; - background-image:url(../images/access/toolbar/bg.gif); - background-position:0 top; -} - -.x-list-header-inner div em { - border-left-color:#667; - font:normal 14px arial, tahoma, helvetica, sans-serif; - line-height: 14px; -} - -.x-list-body-inner { - background-color:#1B232B; -} - -.x-list-body dt em { - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-list-over { - background-color:#7E5530; -} - -.x-list-selected { - background-color:#E5872C; -} - -.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/access/grid/sort-hd.gif); - border-color: #3e4e6c; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/menu.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/menu.css deleted file mode 100644 index bebe24f2ec..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/menu.css +++ /dev/null @@ -1,79 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-menu { - border-color:#222; - background-color:#414551; - background-image:url(../images/access/menu/menu.gif); -} - -.x-menu-nosep { - background-image:none; -} - -.x-menu-list-item{ - font:normal 14px tahoma,arial, sans-serif; -} - -.x-menu-item-arrow{ - background-image:url(../images/access/menu/menu-parent.gif); -} - -.x-menu-sep { - background-color:#223; - border-bottom-color:#666; -} - -a.x-menu-item { - color:#fffff6; -} - -.x-menu-item-active { - background-color: #f09134; - background-image: none; - border-color:#b36427; -} - -.x-menu-item-active a.x-menu-item { - border-color:#b36427; -} - -.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/access/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:#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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/panel.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/panel.css deleted file mode 100644 index 9c78ad6dd8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/panel.css +++ /dev/null @@ -1,94 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-panel { - border-color: #18181a; - font-size: 14px; -} - -.x-panel-header { - color:#fff; - font-weight:bold; - font-size: 14px; - font-family: tahoma,arial,verdana,sans-serif; - border-color:#18181a; - background-image: url(../images/access/panel/white-top-bottom.gif); -} - -.x-panel-body { - color: #fffff6; - border-color:#18181a; - background-color:#232d38; -} - -.x-tab-panel .x-panel-body { - color: #fffff6; - border-color:#18181a; - background-color:#1f2730; -} - -.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { - border-color:#223; -} - -.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { - border-top-color:#223; -} - -.x-panel-body-noheader, .x-panel-mc .x-panel-body { - border-top-color:#223; -} - -.x-panel-tl .x-panel-header { - color:#fff; - font:bold 14px tahoma,arial,verdana,sans-serif; -} - -.x-panel-tc { - background-image: url(../images/access/panel/top-bottom.gif); -} - -.x-panel-tl, .x-panel-tr, .x-panel-bl, .x-panel-br{ - background-image: url(../images/access/panel/corners-sprite.gif); - border-bottom-color:#222224; -} - -.x-panel-bc { - background-image: url(../images/access/panel/top-bottom.gif); -} - -.x-panel-mc { - font: normal 14px tahoma,arial,helvetica,sans-serif; - background-color:#3f4757; -} - -.x-panel-ml { - background-image:url(../images/access/panel/left-right.gif); -} - -.x-panel-mr { - background-image: url(../images/access/panel/left-right.gif); -} - -.x-tool { - background-image:url(../images/access/panel/tool-sprites.gif); -} - -.x-panel-ghost { - background-color:#3f4757; -} - -.x-panel-ghost ul { - border-color:#18181a; -} - -.x-panel-dd-spacer { - border-color:#18181a; -} - -.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 14px arial,tahoma, helvetica, sans-serif; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/progress.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/progress.css deleted file mode 100644 index f62cfaec66..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/progress.css +++ /dev/null @@ -1,35 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-progress-wrap { - border-color:#18181a; -} - -.x-progress-inner { - background-color:#232d38; - background-image:none; -} - -.x-progress-bar { - background-color:#f39a00; - background-image:url(../images/access/progress/progress-bg.gif); - border-top-color:#a66900; - border-bottom-color:#a66900; - border-right-color:#ffb941; - height: 20px !important; /* structural override for Accessibility Theme */ -} - -.x-progress-text { - font-size:14px; - font-weight:bold; - color:#fff; - padding: 0 5px !important; /* structural override for Accessibility Theme */ -} - -.x-progress-text-back { - color:#aaa; - line-height: 19px; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/qtips.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/qtips.css deleted file mode 100644 index a72bc2cca5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/qtips.css +++ /dev/null @@ -1,44 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-tip .x-tip-close{ - background-image: url(../images/access/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/access/qtip/tip-sprite.gif); -} - -.x-tip .x-tip-mc { - font: normal 14px tahoma,arial,helvetica,sans-serif; -} -.x-tip .x-tip-ml { - background-color: #fff; -} - -.x-tip .x-tip-header-text { - font: bold 14px tahoma,arial,helvetica,sans-serif; - color:#ffd; -} - -.x-tip .x-tip-body { - font: normal 14px tahoma,arial,helvetica,sans-serif; - color:#000; -} - -.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/access/form/exclamation.gif); -} - -.x-tip-anchor { - background-image:url(../images/access/qtip/tip-anchor-sprite.gif); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/resizable.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/resizable.css deleted file mode 100644 index b77c01e17d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/resizable.css +++ /dev/null @@ -1,44 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-resizable-handle { - background-color:#fff; - color: #000; -} - -.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/access/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/access/sizer/s-handle.gif); -} - -.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north{ - background-image:url(../images/access/sizer/s-handle.gif); -} -.x-resizable-over .x-resizable-handle-southeast, .x-resizable-pinned .x-resizable-handle-southeast{ - background-image:url(../images/access/sizer/se-handle.gif); -} -.x-resizable-over .x-resizable-handle-northwest, .x-resizable-pinned .x-resizable-handle-northwest{ - background-image:url(../images/access/sizer/nw-handle.gif); -} -.x-resizable-over .x-resizable-handle-northeast, .x-resizable-pinned .x-resizable-handle-northeast{ - background-image:url(../images/access/sizer/ne-handle.gif); -} -.x-resizable-over .x-resizable-handle-southwest, .x-resizable-pinned .x-resizable-handle-southwest{ - background-image:url(../images/access/sizer/sw-handle.gif); -} -.x-resizable-proxy{ - border-color:#3b5a82; -} -.x-resizable-overlay{ - background-color:#fff; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/slider.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/slider.css deleted file mode 100644 index b3632384e5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/slider.css +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-slider-horz, .x-slider-horz .x-slider-end, .x-slider-horz .x-slider-inner { - background-image:url(../images/access/slider/slider-bg.png); -} - -.x-slider-horz .x-slider-thumb { - background-image:url(../images/access/slider/slider-thumb.png); -} - -.x-slider-vert, .x-slider-vert .x-slider-end, .x-slider-vert .x-slider-inner { - background-image:url(../images/access/slider/slider-v-bg.png); -} - -.x-slider-vert .x-slider-thumb { - background-image:url(../images/access/slider/slider-v-thumb.png); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tabs.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tabs.css deleted file mode 100644 index 2c105a3790..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tabs.css +++ /dev/null @@ -1,119 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-tab-panel-header, .x-tab-panel-footer { - background-color:#e18325; - border-color:#8db2e3; - overflow:hidden; - zoom:1; -} - -.x-tab-panel-header, .x-tab-panel-footer { - border-color:#222; -} - -ul.x-tab-strip-top{ - background-color:#343843; - background-image: url(../images/access/tabs/tab-strip-bg.gif); - border-bottom-color:#343d4e; -} - -ul.x-tab-strip-bottom{ - background-color:#343843; - background-image: url(../images/access/tabs/tab-strip-btm-bg.gif); - border-top-color:#343843; -} - -.x-tab-panel-header-plain .x-tab-strip-spacer, -.x-tab-panel-footer-plain .x-tab-strip-spacer { - border-color:#222; - background-color:#e18325; -} - -.x-tab-strip span.x-tab-strip-text { - font:normal 14px tahoma,arial,helvetica; - color:#fff; -} - -.x-tab-strip-over span.x-tab-strip-text { - color:#fff; -} - -.x-tab-strip-active span.x-tab-strip-text { - color:#fff; - 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/access/tabs/tabs-sprite.gif); -} - -.x-tab-strip-bottom .x-tab-right { - background-image: url(../images/access/tabs/tab-btm-inactive-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-left { - background-image: url(../images/access/tabs/tab-btm-inactive-left-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { - background-image: url(../images/access/tabs/tab-btm-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { - background-image: url(../images/access/tabs/tab-btm-left-bg.gif); -} - -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - background-image:url(../images/access/tabs/tab-close.gif); -} - -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ - background-image:url(../images/access/tabs/tab-close.gif); -} - -.x-tab-panel-body { - border-color:#18181a; - 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/access/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/access/tabs/scroll-right.gif); - border-bottom-color:#8db2e3; -} - -.x-tab-panel-bbar .x-toolbar, .x-tab-panel-tbar .x-toolbar { - border-color:#99bbe8; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/toolbar.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/toolbar.css deleted file mode 100644 index ce24301ed3..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/toolbar.css +++ /dev/null @@ -1,120 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-toolbar{ - border-color:#18181a; - background-color:#393d4e; - background-image:url(../images/access/toolbar/bg.gif); -} - -.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{ - font:normal 14px 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/access/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/access/button/s-arrow-o.gif); -} - -.x-toolbar .x-btn-mc em.x-btn-split-bottom { - background-image:url(../images/access/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/access/button/s-arrow-bo.gif); -} - -.x-toolbar .xtb-sep { - background-image: url(../images/access/grid/grid-blue-split.gif); -} - -.x-toolbar .x-btn { - padding-left:3px; - padding-right:3px; -} - -.x-toolbar .x-btn-mc em.x-btn-arrow { - padding-right:10px; -} - -.x-toolbar .x-btn-text-icon .x-btn-icon-small-left .x-btn-text { - padding-left:18px !important; -} - -.x-toolbar .x-btn-mc em.x-btn-split { - padding-right:14px; -} - -.x-tbar-page-first{ - background-image: url(../images/access/grid/page-first.gif) !important; -} - -.x-tbar-loading{ - background-image: url(../images/access/grid/refresh.gif) !important; -} - -.x-tbar-page-last{ - background-image: url(../images/access/grid/page-last.gif) !important; -} - -.x-tbar-page-next{ - background-image: url(../images/access/grid/page-next.gif) !important; -} - -.x-tbar-page-prev{ - background-image: url(../images/access/grid/page-prev.gif) !important; -} - -.x-item-disabled .x-tbar-loading{ - background-image: url(../images/access/grid/loading.gif) !important; -} - -.x-item-disabled .x-tbar-page-first{ - background-image: url(../images/access/grid/page-first-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-last{ - background-image: url(../images/access/grid/page-last-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-next{ - background-image: url(../images/access/grid/page-next-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-prev{ - background-image: url(../images/access/grid/page-prev-disabled.gif) !important; -} - -.x-paging-info { - color:#444; -} - -.x-toolbar-more-icon { - background-image: url(../images/access/toolbar/more.gif) !important; -} - -.x-statusbar .x-status-busy { - background-image: url(../images/access/grid/loading.gif); -} - -.x-statusbar .x-status-text-panel { - border-color: #99bbe8 #fff #fff #99bbe8; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tree.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tree.css deleted file mode 100644 index 61fc2e0e3c..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/tree.css +++ /dev/null @@ -1,165 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-tree-node-expanded .x-tree-node-icon{ - background-image:url(../images/access/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/access/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:14px; - height:14px; -} - -.x-tree-lines .x-tree-elbow{ - background-image:url(../images/access/tree/elbow.gif); -} - -.x-tree-lines .x-tree-elbow-plus{ - background-image:url(../images/access/tree/elbow-plus.gif); -} - -.x-tree-lines .x-tree-elbow-minus{ - background-image:url(../images/access/tree/elbow-minus.gif); -} - -.x-tree-lines .x-tree-elbow-end{ - background-image:url(../images/access/tree/elbow-end.gif); -} - -.x-tree-lines .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/elbow-end-plus.gif); -} - -.x-tree-lines .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/elbow-end-minus.gif); -} - -.x-tree-lines .x-tree-elbow-line{ - background-image:url(../images/access/tree/elbow-line.gif); -} - -.x-tree-no-lines .x-tree-elbow-plus{ - background-image:url(../images/access/tree/elbow-plus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-minus{ - background-image:url(../images/access/tree/elbow-minus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/elbow-end-plus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/elbow-end-minus-nl.gif); -} - -.x-tree-arrows .x-tree-elbow-plus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-minus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-node{ - color:#000; - font: normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-tree-node a, .x-dd-drag-ghost a{ - color:#fff; -} - -.x-tree-node a span, .x-dd-drag-ghost a span{ - color:#fff; -} - -.x-tree-node .x-tree-selected a, .x-dd-drag-ghost a{ - color:#fff; -} - -.x-tree-node .x-tree-selected a span, .x-dd-drag-ghost a span{ - color:#fff; -} - -.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: #7e5530; -} - -.x-tree-node .x-tree-selected { - background-color: #e5872c; -} - -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/window.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/window.css deleted file mode 100644 index 066c6ac707..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-access/window.css +++ /dev/null @@ -1,87 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-window-proxy { - background-color:#1f2833; - border-color:#18181a; -} - -.x-window-tl .x-window-header { - color:#fff; - font:bold 14px tahoma,arial,verdana,sans-serif; -} - -.x-window-tc { - background-image: url(../images/access/window/top-bottom.png); -} - -.x-window-tl { - background-image: url(../images/access/window/left-corners.png); -} - -.x-window-tr { - background-image: url(../images/access/window/right-corners.png); -} - -.x-window-bc { - background-image: url(../images/access/window/top-bottom.png); -} - -.x-window-bl { - background-image: url(../images/access/window/left-corners.png); -} - -.x-window-br { - background-image: url(../images/access/window/right-corners.png); -} - -.x-window-mc { - border-color:#18181a; - font: normal 14px tahoma,arial,helvetica,sans-serif; - background-color:#1f2833; -} - -.x-window-ml { - background-image: url(../images/access/window/left-right.png); -} - -.x-window-mr { - background-image: url(../images/access/window/left-right.png); -} - -.x-window-maximized .x-window-tc { - background-color:#fff; -} - -.x-window-bbar .x-toolbar { - border-top-color:#323945; -} - -.x-panel-ghost .x-window-tl { - border-bottom-color:#323945; -} - -.x-panel-collapsed .x-window-tl { - border-bottom-color:#323945; -} - -.x-dlg-mask{ - background-color:#ccc; -} - -.x-window-plain .x-window-mc { - background-color: #464f61; - border-color: #636778; -} - -.x-window-plain .x-window-body { - color: #fffff6; - border-color: #464F61; -} - -body.x-body-masked .x-window-plain .x-window-mc { - background-color: #464f61; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/borders.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/borders.css deleted file mode 100644 index 8da99742ba..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/borders.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/box.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/box.css deleted file mode 100644 index 50794180ed..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/box.css +++ /dev/null @@ -1,74 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/button.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/button.css deleted file mode 100644 index 6cd0c84bdf..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/button.css +++ /dev/null @@ -1,94 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/combo.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/combo.css deleted file mode 100644 index 48137847e6..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/combo.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/core.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/core.css deleted file mode 100644 index 76cb5e103f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/core.css +++ /dev/null @@ -1,83 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/date-picker.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/date-picker.css deleted file mode 100644 index a67d32b983..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/date-picker.css +++ /dev/null @@ -1,143 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dd.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dd.css deleted file mode 100644 index a84897f0c8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dd.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/debug.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/debug.css deleted file mode 100644 index 6b48bad99c..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/debug.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -#x-debug-browser .x-tree .x-tree-node a span { - color:#222297; - font-size:11px; - font-family:"monotype","courier new",sans-serif; -} - -#x-debug-browser .x-tree a i { - color:#ff4545; - font-style:normal; -} - -#x-debug-browser .x-tree a em { - color:#999; -} - -#x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{ - background-color:#D5D5D5; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dialog.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dialog.css deleted file mode 100644 index a9984d58bc..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/dialog.css +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/editor.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/editor.css deleted file mode 100644 index fc9671067f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/editor.css +++ /dev/null @@ -1,13 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/form.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/form.css deleted file mode 100644 index 4b950e661e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/form.css +++ /dev/null @@ -1,117 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/grid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/grid.css deleted file mode 100644 index b003318215..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/grid.css +++ /dev/null @@ -1,276 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-grid3 { - background-color:#fff; -} - -.x-grid-panel .x-panel-mc .x-panel-body { - border-color:#d0d0d0; -} - -.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/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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/layout.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/layout.css deleted file mode 100644 index 86a86f4a2e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/layout.css +++ /dev/null @@ -1,53 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/list-view.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/list-view.css deleted file mode 100644 index deb9afdcc4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/list-view.css +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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:url(../images/gray/grid/sort-hd.gif); - border-color: #d0d0d0; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/menu.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/menu.css deleted file mode 100644 index cbd5773313..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/menu.css +++ /dev/null @@ -1,82 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/panel.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/panel.css deleted file mode 100644 index 1ea6c3d2eb..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/panel.css +++ /dev/null @@ -1,87 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/pivotgrid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/pivotgrid.css deleted file mode 100644 index a30305adf0..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/pivotgrid.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-pivotgrid .x-grid3-header-offset table td { - background: url(../images/gray/grid/grid3-hrow2.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #D0D0D0; - border-right-color: #D0D0D0; -} - -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} - -.x-pivotgrid .x-grid3-row-headers table td { - background: #EEE url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; - border-bottom: 1px solid; - border-bottom-color: #D0D0D0; - height: 18px; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/progress.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/progress.css deleted file mode 100644 index 168debb9f5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/progress.css +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/qtips.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/qtips.css deleted file mode 100644 index fdd266d653..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/qtips.css +++ /dev/null @@ -1,44 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/resizable.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/resizable.css deleted file mode 100644 index 8f0cbbc81c..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/resizable.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/slider.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/slider.css deleted file mode 100644 index af069a0ac0..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/slider.css +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tabs.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tabs.css deleted file mode 100644 index e07d5077c7..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tabs.css +++ /dev/null @@ -1,127 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/toolbar.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/toolbar.css deleted file mode 100644 index 453d7d6747..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/toolbar.css +++ /dev/null @@ -1,95 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tree.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tree.css deleted file mode 100644 index 62134df8f8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/tree.css +++ /dev/null @@ -1,157 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/window.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/window.css deleted file mode 100644 index 4098cbe8cd..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/theme-gray/window.css +++ /dev/null @@ -1,86 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/borders.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/borders.css deleted file mode 100644 index f42ca6ace8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/borders.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/box.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/box.css deleted file mode 100644 index 01f6988925..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/box.css +++ /dev/null @@ -1,74 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/button.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/button.css deleted file mode 100644 index 39a93ee73a..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/button.css +++ /dev/null @@ -1,94 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/combo.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/combo.css deleted file mode 100644 index 7672901a6e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/combo.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/core.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/core.css deleted file mode 100644 index 5c2aea52a4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/core.css +++ /dev/null @@ -1,82 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/date-picker.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/date-picker.css deleted file mode 100644 index 93b593a3e8..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/date-picker.css +++ /dev/null @@ -1,143 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dd.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dd.css deleted file mode 100644 index 3dca9de435..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dd.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/debug.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/debug.css deleted file mode 100644 index 111dd001d7..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/debug.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -#x-debug-browser .x-tree .x-tree-node a span { - color:#222297; - font-size:11px; - font-family:"monotype","courier new",sans-serif; -} - -#x-debug-browser .x-tree a i { - color:#ff4545; - font-style:normal; -} - -#x-debug-browser .x-tree a em { - color:#999; -} - -#x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{ - background-color:#c3daf9; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dialog.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dialog.css deleted file mode 100644 index 0cb26f8b4b..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/dialog.css +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/editor.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/editor.css deleted file mode 100644 index 9cc571cdc4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/editor.css +++ /dev/null @@ -1,13 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/form.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/form.css deleted file mode 100644 index df551889ca..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/form.css +++ /dev/null @@ -1,123 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/grid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/grid.css deleted file mode 100644 index 871bcca856..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/grid.css +++ /dev/null @@ -1,277 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} - -td.grid-hd-group-cell { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x bottom; -} - -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/layout.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/layout.css deleted file mode 100644 index eaa983eab4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/layout.css +++ /dev/null @@ -1,53 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/list-view.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/list-view.css deleted file mode 100644 index 424650b256..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/list-view.css +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/menu.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/menu.css deleted file mode 100644 index 49a816ada4..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/menu.css +++ /dev/null @@ -1,87 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/panel.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/panel.css deleted file mode 100644 index d72ba21d44..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/panel.css +++ /dev/null @@ -1,87 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/pivotgrid.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/pivotgrid.css deleted file mode 100644 index fb158a7002..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/pivotgrid.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.x-pivotgrid .x-grid3-header-offset table td { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; -} - -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} - -.x-pivotgrid .x-grid3-row-headers table td { - background: #EEE url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; - border-bottom: 1px solid; - border-bottom-color: #D0D0D0; - height: 18px; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/progress.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/progress.css deleted file mode 100644 index 7d90190c0d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/progress.css +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/qtips.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/qtips.css deleted file mode 100644 index 8c9eda5f0a..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/qtips.css +++ /dev/null @@ -1,44 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/resizable.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/resizable.css deleted file mode 100644 index 2ee809119f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/resizable.css +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/slider.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/slider.css deleted file mode 100644 index b82a4e0786..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/slider.css +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tabs.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tabs.css deleted file mode 100644 index c3615288fa..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tabs.css +++ /dev/null @@ -1,127 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/toolbar.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/toolbar.css deleted file mode 100644 index bfd0e5fe6d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/toolbar.css +++ /dev/null @@ -1,95 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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/refresh-disabled.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tree.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tree.css deleted file mode 100644 index 0623793597..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/tree.css +++ /dev/null @@ -1,152 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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); -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/window.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/window.css deleted file mode 100644 index e556dcf81f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/visual/window.css +++ /dev/null @@ -1,86 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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; -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-access.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-access.css deleted file mode 100644 index 44d0f95e5f..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-access.css +++ /dev/null @@ -1,1820 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -body { - background-color:#16181a; - color:#fcfcfc; -} - -.ext-el-mask { - background-color: #ccc; -} - -.ext-el-mask-msg { - border-color:#223; - background-color:#3f4757; - background-image:url(../images/access/box/tb-blue.gif); -} -.ext-el-mask-msg div { - background-color: #232d38; - border-color:#556; - color:#fff; - font:normal 14px tahoma, arial, helvetica, sans-serif; -} - -.x-mask-loading div { - background-color:#232d38; - background-image:url(../images/access/grid/loading.gif); -} - -.x-item-disabled { - color: #ddd; -} - -.x-item-disabled * { - color: #ddd !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 { - 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: 14px; - background-image: url(../images/access/grid/loading.gif); -} - -.x-spotlight { - background-color: #ccc; -}.x-tab-panel-header, .x-tab-panel-footer { - background-color:#e18325; - border-color:#8db2e3; - overflow:hidden; - zoom:1; -} - -.x-tab-panel-header, .x-tab-panel-footer { - border-color:#222; -} - -ul.x-tab-strip-top{ - background-color:#343843; - background-image: url(../images/access/tabs/tab-strip-bg.gif); - border-bottom-color:#343d4e; -} - -ul.x-tab-strip-bottom{ - background-color:#343843; - background-image: url(../images/access/tabs/tab-strip-btm-bg.gif); - border-top-color:#343843; -} - -.x-tab-panel-header-plain .x-tab-strip-spacer, -.x-tab-panel-footer-plain .x-tab-strip-spacer { - border-color:#222; - background-color:#e18325; -} - -.x-tab-strip span.x-tab-strip-text { - font:normal 14px tahoma,arial,helvetica; - color:#fff; -} - -.x-tab-strip-over span.x-tab-strip-text { - color:#fff; -} - -.x-tab-strip-active span.x-tab-strip-text { - color:#fff; - 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/access/tabs/tabs-sprite.gif); -} - -.x-tab-strip-bottom .x-tab-right { - background-image: url(../images/access/tabs/tab-btm-inactive-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-left { - background-image: url(../images/access/tabs/tab-btm-inactive-left-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { - background-image: url(../images/access/tabs/tab-btm-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { - background-image: url(../images/access/tabs/tab-btm-left-bg.gif); -} - -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - background-image:url(../images/access/tabs/tab-close.gif); -} - -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ - background-image:url(../images/access/tabs/tab-close.gif); -} - -.x-tab-panel-body { - border-color:#18181a; - 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/access/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/access/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 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-text, textarea.x-form-field{ - color: #ffffff; - background-color:#33373d; - background-image:url(../images/access/form/text-bg.gif); - border-color:#737b8c; - border-width:2px; -} - -.ext-webkit .x-form-text, .ext-webkit textarea.x-form-field{ - border-width:2px; -} - -.x-form-text, .ext-ie .x-form-file { - height:26px; -} - -.ext-strict .x-form-text { - height:20px; -} - -.x-form-select-one { - background-color:#fff; - border-color:#b5b8c8; -} - -.x-form-check-group-label { - border-bottom: 1px solid #99bbe8; - color: #fff; -} - -.x-editor .x-form-check-wrap { - background-color:#fff; -} - -.x-form-field-wrap .x-form-trigger{ - background-image:url(../images/access/form/trigger.gif); - border-bottom-color:#737b8c; - border-bottom-width:2px; - height:24px; - width:20px; -} - -.x-form-field-wrap .x-form-trigger.x-form-trigger-over{ - border-bottom-color:#d97e27; -} - -.x-form-field-wrap .x-form-trigger.x-form-trigger-click{ - border-bottom-color:#c86e19; -} - -.x-small-editor .x-form-field-wrap .x-form-trigger { - height:24px; -} - -.x-form-field-wrap .x-form-trigger-over { - background-position:-20px 0; -} - -.x-form-field-wrap .x-form-trigger-click { - background-position:-40px 0; -} - -.x-trigger-wrap-focus .x-form-trigger { - background-position:-60px 0; -} - -.x-trigger-wrap-focus .x-form-trigger-over { - background-position:-80px 0; -} - -.x-trigger-wrap-focus .x-form-trigger-click { - background-position:-100px 0; -} - -.x-form-field-wrap .x-form-date-trigger{ - background-image: url(../images/access/form/date-trigger.gif); -} - -.x-form-field-wrap .x-form-clear-trigger{ - background-image: url(../images/access/form/clear-trigger.gif); -} - -.x-form-field-wrap .x-form-search-trigger{ - background-image: url(../images/access/form/search-trigger.gif); -} - -.x-trigger-wrap-focus .x-form-trigger{ - border-bottom-color:#737b8c; -} - -.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:#ff9c33; -} - -.x-form-invalid, textarea.x-form-invalid, -.ext-webkit .x-form-invalid, .ext-webkit textarea.x-form-invalid{ - background-color:#15171a; - background-image:url(../images/access/grid/invalid_line.gif); - border-color:#c30; -} - -/* -.ext-safari .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/access/grid/invalid_line.gif); -} - -.x-form-grow-sizer { - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-item { - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-form-invalid-msg { - color:#c0272b; - font:normal 14px tahoma, arial, helvetica, sans-serif; - background-image:url(../images/default/shared/warning.gif); -} - -.x-form-empty-field { - color:#dadadd; -} - -.x-small-editor .x-form-text { - height: 26px; -} - -.x-small-editor .x-form-field { - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.ext-safari .x-small-editor .x-form-field { - font:normal 15px arial, tahoma, helvetica, sans-serif; -} - -.x-form-invalid-icon { - background-image:url(../images/access/form/exclamation.gif); - height:25px; - width:19px; - background-position:center right; -} - -.x-fieldset { - border-color:#737B8C; -} - -.x-fieldset legend { - font:bold 14px tahoma, arial, helvetica, sans-serif; - color:#fff; -} -.x-btn { - font:normal 14px tahoma, verdana, helvetica; -} - -.x-btn button { - font:normal 14px arial,tahoma,verdana,helvetica; - color:#fffffa; - padding-left:6px !important; - padding-right:6px !important; -} - -.x-btn-over .x-btn button{ - color:#fff; -} - -.x-btn-noicon .x-btn-small .x-btn-text, .x-btn-text-icon .x-btn-icon-small-left .x-btn-text, -.x-btn-icon .x-btn-small .x-btn-text, .x-btn-text-icon .x-btn-icon-small-right .x-btn-text { - height:18px; -} - -.x-btn-icon .x-btn-small .x-btn-text { - width:18px; -} - -.x-btn-text-icon .x-btn-icon-small-left .x-btn-text { - padding-left:21px !important; -} - -.x-btn-text-icon .x-btn-icon-small-right .x-btn-text { - padding-right:21px !important; -} - -.x-btn-text-icon .x-btn-icon-medium-left .x-btn-text { - padding-left:29px !important; -} - -.x-btn-text-icon .x-btn-icon-medium-right .x-btn-text { - padding-right:29px !important; -} - -.x-btn-text-icon .x-btn-icon-large-left .x-btn-text { - padding-left:37px !important; -} - -.x-btn-text-icon .x-btn-icon-large-right .x-btn-text { - padding-right:37px !important; -} - -.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/access/button/btn.gif); -} - -.x-btn-click .x-btn-text, .x-btn-menu-active .x-btn-text, .x-btn-pressed .x-btn-text{ - color:#fff; -} - -.x-btn-disabled *{ - color:#eee !important; -} - -.x-btn-mc em.x-btn-arrow { - background-image:url(../images/access/button/arrow.gif); - padding-right:13px; -} - -.x-btn-mc em.x-btn-split { - background-image:url(../images/access/button/s-arrow.gif); - padding-right:20px; -} - -.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/access/button/s-arrow-o.gif); -} - -.x-btn-mc em.x-btn-arrow-bottom { - background-image:url(../images/access/button/s-arrow-b-noline.gif); -} - -.x-btn-mc em.x-btn-split-bottom { - background-image:url(../images/access/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/access/button/s-arrow-bo.gif); -} - -.x-btn-group-header { - color: #d2d2d2; -} - -.x-btn-group-tc { - background-image: url(../images/access/button/group-tb.gif); -} - -.x-btn-group-tl { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-tr { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-bc { - background-image: url(../images/access/button/group-tb.gif); -} - -.x-btn-group-bl { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-br { - background-image: url(../images/access/button/group-cs.gif); -} - -.x-btn-group-ml { - background-image: url(../images/access/button/group-lr.gif); -} - -.x-btn-group-mr { - background-image: url(../images/access/button/group-lr.gif); -} - -.x-btn-group-notitle .x-btn-group-tc { - background-image: url(../images/access/button/group-tb.gif); -} -.x-toolbar{ - border-color:#18181a; - background-color:#393d4e; - background-image:url(../images/access/toolbar/bg.gif); -} - -.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{ - font:normal 14px 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/access/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/access/button/s-arrow-o.gif); -} - -.x-toolbar .x-btn-mc em.x-btn-split-bottom { - background-image:url(../images/access/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/access/button/s-arrow-bo.gif); -} - -.x-toolbar .xtb-sep { - background-image: url(../images/access/grid/grid-blue-split.gif); -} - -.x-toolbar .x-btn { - padding-left:3px; - padding-right:3px; -} - -.x-toolbar .x-btn-mc em.x-btn-arrow { - padding-right:10px; -} - -.x-toolbar .x-btn-text-icon .x-btn-icon-small-left .x-btn-text { - padding-left:18px !important; -} - -.x-toolbar .x-btn-mc em.x-btn-split { - padding-right:14px; -} - -.x-tbar-page-first{ - background-image: url(../images/access/grid/page-first.gif) !important; -} - -.x-tbar-loading{ - background-image: url(../images/access/grid/refresh.gif) !important; -} - -.x-tbar-page-last{ - background-image: url(../images/access/grid/page-last.gif) !important; -} - -.x-tbar-page-next{ - background-image: url(../images/access/grid/page-next.gif) !important; -} - -.x-tbar-page-prev{ - background-image: url(../images/access/grid/page-prev.gif) !important; -} - -.x-item-disabled .x-tbar-loading{ - background-image: url(../images/access/grid/loading.gif) !important; -} - -.x-item-disabled .x-tbar-page-first{ - background-image: url(../images/access/grid/page-first-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-last{ - background-image: url(../images/access/grid/page-last-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-next{ - background-image: url(../images/access/grid/page-next-disabled.gif) !important; -} - -.x-item-disabled .x-tbar-page-prev{ - background-image: url(../images/access/grid/page-prev-disabled.gif) !important; -} - -.x-paging-info { - color:#444; -} - -.x-toolbar-more-icon { - background-image: url(../images/access/toolbar/more.gif) !important; -} - -.x-statusbar .x-status-busy { - background-image: url(../images/access/grid/loading.gif); -} - -.x-statusbar .x-status-text-panel { - border-color: #99bbe8 #fff #fff #99bbe8; -} -.x-resizable-handle { - background-color:#fff; - color: #000; -} - -.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/access/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/access/sizer/s-handle.gif); -} - -.x-resizable-over .x-resizable-handle-north, .x-resizable-pinned .x-resizable-handle-north{ - background-image:url(../images/access/sizer/s-handle.gif); -} -.x-resizable-over .x-resizable-handle-southeast, .x-resizable-pinned .x-resizable-handle-southeast{ - background-image:url(../images/access/sizer/se-handle.gif); -} -.x-resizable-over .x-resizable-handle-northwest, .x-resizable-pinned .x-resizable-handle-northwest{ - background-image:url(../images/access/sizer/nw-handle.gif); -} -.x-resizable-over .x-resizable-handle-northeast, .x-resizable-pinned .x-resizable-handle-northeast{ - background-image:url(../images/access/sizer/ne-handle.gif); -} -.x-resizable-over .x-resizable-handle-southwest, .x-resizable-pinned .x-resizable-handle-southwest{ - background-image:url(../images/access/sizer/sw-handle.gif); -} -.x-resizable-proxy{ - border-color:#3b5a82; -} -.x-resizable-overlay{ - background-color:#fff; -} -.x-grid3 { - background-color:#1f2933; -} - -.x-grid-panel .x-panel-mc .x-panel-body { - border-color:#223; -} - -.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td{ - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-grid3-hd-row td { - border-left-color:#556; - border-right-color:#223; -} - -.x-grid-row-loading { - background-color: #fff; - background-image:url(../images/default/shared/loading-balls.gif); -} - -.x-grid3-row { - border:0 none; - border-bottom:1px solid #111; - border-right:1px solid #1a1a1c; -} - -.x-grid3-row-alt{ - background-color:#1b232b; -} - -.x-grid3-row-over { - background-color:#7e5530; -} - -.x-grid3-resize-proxy { - background-color:#777; -} - -.x-grid3-resize-marker { - background-color:#777; -} - -.x-grid3-header{ - background-color:#3b3f50; - background-image:url(../images/access/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:#889; - border-right-color:#445; -} - -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:#4e628a; - background-image:url(../images/access/grid/grid3-hrow-over.gif); -} - -.x-grid3-cell-inner, .x-grid3-hd-inner { - color:#fff; -} - -.sort-asc .x-grid3-sort-icon { - background-image: url(../images/access/grid/sort_asc.gif); - width:15px; - height:9px; - margin-left:5px; -} - -.sort-desc .x-grid3-sort-icon { - background-image: url(../images/access/grid/sort_desc.gif); - width:15px; - height:9px; - margin-left:5px; -} - -.x-grid3-cell-text, .x-grid3-hd-text { - color:#fff; -} - -.x-grid3-split { - background-image: url(../images/default/grid/grid-split.gif); -} - -.x-grid3-hd-text { - color:#fff; -} - -.x-dd-drag-proxy .x-grid3-hd-inner{ - background-color:#ebf3fd; - background-image:url(../images/access/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: #e5872c !important; - background-image: none; - border-style: solid; -} - -.x-grid3-row-selected .x-grid3-cell { - color: #fff; -} - -.x-grid3-cell-selected { - background-color: #ffa340 !important; - color:#fff; -} - -.x-grid3-cell-selected span{ - color:#fff !important; -} - -.x-grid3-cell-selected .x-grid3-cell-text{ - color:#fff; -} - -.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:#fff; - 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:#fff !important; -} - -.x-grid3-dirty-cell { - background-image:url(../images/access/grid/dirty.gif); -} - -.x-grid3-topbar, .x-grid3-bottombar{ - font:normal 14px 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/access/grid/grid3-special-col-bg.gif) !important; - color:#fff !important; -} -.x-props-grid .x-grid3-td-value { - color:#fff !important; -} - -.x-props-grid .x-grid3-body .x-grid3-td-name{ - background-color:#263240 !important; - border-right-color:#223; -} - -.xg-hmenu-sort-asc .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-asc.gif); -} - -.xg-hmenu-sort-desc .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-desc.gif); -} - -.xg-hmenu-lock .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-lock.gif); -} - -.xg-hmenu-unlock .x-menu-item-icon{ - background-image: url(../images/access/grid/hmenu-unlock.gif); -} - -.x-grid3-hd-btn { - background-color:#c2c9d0; - background-image:url(../images/access/grid/grid3-hd-btn.gif); -} - -.x-grid3-body .x-grid3-td-expander { - background-image:url(../images/access/grid/grid3-special-col-bg.gif); -} - -.x-grid3-row-expander { - background-image:url(../images/access/grid/row-expand-sprite.gif); -} - -.x-grid3-body .x-grid3-td-checker { - background-image: url(../images/access/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/access/grid/grid3-special-col-bg.gif); -} - -.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner { - color:#fff; -} - -.x-grid3-body .x-grid3-td-row-icon { - background-image:url(../images/access/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/access/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:#4e628a; -} - -.x-grid-group-hd div.x-grid-group-title { - background-image:url(../images/access/grid/group-collapse.gif); - background-position:3px 6px; - color:#ffd; - font:bold 14px tahoma, arial, helvetica, sans-serif; -} - -.x-grid-group-collapsed .x-grid-group-hd div.x-grid-group-title { - background-image:url(../images/access/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 14px 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:#a3bae9; -} -.x-dd-drag-ghost{ - color:#000; - font: normal 14px 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/access/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/access/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:14px; - height:14px; -} - -.x-tree-lines .x-tree-elbow{ - background-image:url(../images/access/tree/elbow.gif); -} - -.x-tree-lines .x-tree-elbow-plus{ - background-image:url(../images/access/tree/elbow-plus.gif); -} - -.x-tree-lines .x-tree-elbow-minus{ - background-image:url(../images/access/tree/elbow-minus.gif); -} - -.x-tree-lines .x-tree-elbow-end{ - background-image:url(../images/access/tree/elbow-end.gif); -} - -.x-tree-lines .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/elbow-end-plus.gif); -} - -.x-tree-lines .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/elbow-end-minus.gif); -} - -.x-tree-lines .x-tree-elbow-line{ - background-image:url(../images/access/tree/elbow-line.gif); -} - -.x-tree-no-lines .x-tree-elbow-plus{ - background-image:url(../images/access/tree/elbow-plus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-minus{ - background-image:url(../images/access/tree/elbow-minus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/elbow-end-plus-nl.gif); -} - -.x-tree-no-lines .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/elbow-end-minus-nl.gif); -} - -.x-tree-arrows .x-tree-elbow-plus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-minus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-end-plus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-arrows .x-tree-elbow-end-minus{ - background-image:url(../images/access/tree/arrows.gif); -} - -.x-tree-node{ - color:#000; - font: normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-tree-node a, .x-dd-drag-ghost a{ - color:#fff; -} - -.x-tree-node a span, .x-dd-drag-ghost a span{ - color:#fff; -} - -.x-tree-node .x-tree-selected a, .x-dd-drag-ghost a{ - color:#fff; -} - -.x-tree-node .x-tree-selected a span, .x-dd-drag-ghost a span{ - color:#fff; -} - -.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: #7e5530; -} - -.x-tree-node .x-tree-selected { - background-color: #e5872c; -} - -.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: #737b8c; - background-color:#21252e; -} - -.x-date-middle,.x-date-left,.x-date-right { - background-image: url(../images/access/shared/hd-sprite.gif); - color:#fff; - font:bold 14px "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/access/toolbar/btn-arrow-light.gif); -} - -.x-date-right a { - background-image: url(../images/access/shared/right-btn.gif); -} - -.x-date-left a{ - background-image: url(../images/access/shared/left-btn.gif); -} - -.x-date-inner th { - background-color:#363d4a; - background-image:url(../images/access/toolbar/bg.gif); - border-bottom-color:#535b5c; - font:normal 13px arial, helvetica,tahoma,sans-serif; - color:#fff; -} - -.x-date-inner td { - border-color:#112; -} - -.x-date-inner a { - font:normal 14px arial, helvetica,tahoma,sans-serif; - color:#fff; - padding:2px 7px 1px 3px; /* Structure to account for larger, bolder fonts in Access theme. */ -} - -.x-date-inner .x-date-active{ - color:#000; -} - -.x-date-inner .x-date-selected a{ - background-color:#e5872c; - background-image:none; - border-color:#864900; - padding:1px 6px 1px 2px; /* Structure to account for larger, bolder fonts in Access theme. */ -} - -.x-date-inner .x-date-today a{ - border-color:#99a; -} - -.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:#737b8c; - background-color:#464d5a; - background-image:url(../images/access/shared/glass-bg.gif); -} - -.x-date-inner a:hover, .x-date-inner .x-date-disabled a:hover{ - color:#fff; - background-color:#7e5530; -} - -.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:13px; - color:#000; -} - -.x-date-mp { - background-color:#21252e; -} - -.x-date-mp td { - font:normal 14px arial, helvetica,tahoma,sans-serif; -} - -.x-date-mp-btns button { - background-color:#083772; - color:#fff; - border-color: #3366cc #000055 #000055 #3366cc; - font:normal 14px arial, helvetica,tahoma,sans-serif; -} - -.x-date-mp-btns { - background-color: #dfecfb; - background-image: url(../images/access/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:#fff; -} - -td.x-date-mp-month a:hover,td.x-date-mp-year a:hover { - color:#fff; - background-color: #7e5530; -} - -td.x-date-mp-sel a { - background-color: #e5872c; - background-image: none; - border-color:#864900; -} - -.x-date-mp-ybtn a { - background-image:url(../images/access/panel/tool-sprites.gif); -} - -td.x-date-mp-sep { - border-right-color:#c5d2df; -} -.x-tip .x-tip-close{ - background-image: url(../images/access/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/access/qtip/tip-sprite.gif); -} - -.x-tip .x-tip-mc { - font: normal 14px tahoma,arial,helvetica,sans-serif; -} -.x-tip .x-tip-ml { - background-color: #fff; -} - -.x-tip .x-tip-header-text { - font: bold 14px tahoma,arial,helvetica,sans-serif; - color:#ffd; -} - -.x-tip .x-tip-body { - font: normal 14px tahoma,arial,helvetica,sans-serif; - color:#000; -} - -.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/access/form/exclamation.gif); -} - -.x-tip-anchor { - background-image:url(../images/access/qtip/tip-anchor-sprite.gif); -} -.x-menu { - border-color:#222; - background-color:#414551; - background-image:url(../images/access/menu/menu.gif); -} - -.x-menu-nosep { - background-image:none; -} - -.x-menu-list-item{ - font:normal 14px tahoma,arial, sans-serif; -} - -.x-menu-item-arrow{ - background-image:url(../images/access/menu/menu-parent.gif); -} - -.x-menu-sep { - background-color:#223; - border-bottom-color:#666; -} - -a.x-menu-item { - color:#fffff6; -} - -.x-menu-item-active { - background-color: #f09134; - background-image: none; - border-color:#b36427; -} - -.x-menu-item-active a.x-menu-item { - border-color:#b36427; -} - -.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/access/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:#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: 15px; -} - -.x-box-mc h3 { - font-size: 18px; - 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:2px solid #232732; - background-color:#555566; - font:normal 15px tahoma, arial, helvetica, sans-serif; -} - -.x-combo-list-inner { - background-color:#414551; -} - -.x-combo-list-hd { - font:bold 14px tahoma, arial, helvetica, sans-serif; - color:#fff; - 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:#556; -} - -.x-combo-list .x-combo-selected { - border-color:#e5872c !important; - background-color:#e5872c; -} - -.x-combo-list .x-toolbar { - border-top-color:#98c0f4; -} - -.x-combo-list-small { - font:normal 14px tahoma, arial, helvetica, sans-serif; -} -.x-panel { - border-color: #18181a; - font-size: 14px; -} - -.x-panel-header { - color:#fff; - font-weight:bold; - font-size: 14px; - font-family: tahoma,arial,verdana,sans-serif; - border-color:#18181a; - background-image: url(../images/access/panel/white-top-bottom.gif); -} - -.x-panel-body { - color: #fffff6; - border-color:#18181a; - background-color:#232d38; -} - -.x-tab-panel .x-panel-body { - color: #fffff6; - border-color:#18181a; - background-color:#1f2730; -} - -.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { - border-color:#223; -} - -.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { - border-top-color:#223; -} - -.x-panel-body-noheader, .x-panel-mc .x-panel-body { - border-top-color:#223; -} - -.x-panel-tl .x-panel-header { - color:#fff; - font:bold 14px tahoma,arial,verdana,sans-serif; -} - -.x-panel-tc { - background-image: url(../images/access/panel/top-bottom.gif); -} - -.x-panel-tl, .x-panel-tr, .x-panel-bl, .x-panel-br{ - background-image: url(../images/access/panel/corners-sprite.gif); - border-bottom-color:#222224; -} - -.x-panel-bc { - background-image: url(../images/access/panel/top-bottom.gif); -} - -.x-panel-mc { - font: normal 14px tahoma,arial,helvetica,sans-serif; - background-color:#3f4757; -} - -.x-panel-ml { - background-image:url(../images/access/panel/left-right.gif); -} - -.x-panel-mr { - background-image: url(../images/access/panel/left-right.gif); -} - -.x-tool { - background-image:url(../images/access/panel/tool-sprites.gif); -} - -.x-panel-ghost { - background-color:#3f4757; -} - -.x-panel-ghost ul { - border-color:#18181a; -} - -.x-panel-dd-spacer { - border-color:#18181a; -} - -.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 14px arial,tahoma, helvetica, sans-serif; -} -.x-window-proxy { - background-color:#1f2833; - border-color:#18181a; -} - -.x-window-tl .x-window-header { - color:#fff; - font:bold 14px tahoma,arial,verdana,sans-serif; -} - -.x-window-tc { - background-image: url(../images/access/window/top-bottom.png); -} - -.x-window-tl { - background-image: url(../images/access/window/left-corners.png); -} - -.x-window-tr { - background-image: url(../images/access/window/right-corners.png); -} - -.x-window-bc { - background-image: url(../images/access/window/top-bottom.png); -} - -.x-window-bl { - background-image: url(../images/access/window/left-corners.png); -} - -.x-window-br { - background-image: url(../images/access/window/right-corners.png); -} - -.x-window-mc { - border-color:#18181a; - font: normal 14px tahoma,arial,helvetica,sans-serif; - background-color:#1f2833; -} - -.x-window-ml { - background-image: url(../images/access/window/left-right.png); -} - -.x-window-mr { - background-image: url(../images/access/window/left-right.png); -} - -.x-window-maximized .x-window-tc { - background-color:#fff; -} - -.x-window-bbar .x-toolbar { - border-top-color:#323945; -} - -.x-panel-ghost .x-window-tl { - border-bottom-color:#323945; -} - -.x-panel-collapsed .x-window-tl { - border-bottom-color:#323945; -} - -.x-dlg-mask{ - background-color:#ccc; -} - -.x-window-plain .x-window-mc { - background-color: #464f61; - border-color: #636778; -} - -.x-window-plain .x-window-body { - color: #fffff6; - border-color: #464F61; -} - -body.x-body-masked .x-window-plain .x-window-mc { - background-color: #464f61; -} -.x-html-editor-wrap { - border-color:#737B8C; - background-color:#fff; -} -.x-html-editor-wrap iframe { - background-color: #fff; -} -.x-html-editor-tb .x-btn-text { - background-image:url(../images/access/editor/tb-sprite.gif); -}.x-panel-noborder .x-panel-header-noborder { - border-bottom-color:#343d4e; -} - -.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { - border-bottom-color:#343d4e; -} - -.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { - border-top-color:#343d4e; -} - -.x-tab-panel-bbar-noborder .x-toolbar { - border-top-color:#343d4e; -} - -.x-tab-panel-tbar-noborder .x-toolbar { - border-bottom-color:#343d4e; -} -.x-border-layout-ct { - background-color:#3f4757; -} - -.x-accordion-hd { - color:#fff; - font-weight:normal; - background-image: url(../images/access/panel/light-hd.gif); -} - -.x-layout-collapsed{ - background-color:#323845; - border-color:#1a1a1c; -} - -.x-layout-collapsed-over{ - background-color:#2d3440; -} - -.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:#18181a; -} - -.x-progress-inner { - background-color:#232d38; - background-image:none; -} - -.x-progress-bar { - background-color:#f39a00; - background-image:url(../images/access/progress/progress-bg.gif); - border-top-color:#a66900; - border-bottom-color:#a66900; - border-right-color:#ffb941; - height: 20px !important; /* structural override for Accessibility Theme */ -} - -.x-progress-text { - font-size:14px; - font-weight:bold; - color:#fff; - padding: 0 5px !important; /* structural override for Accessibility Theme */ -} - -.x-progress-text-back { - color:#aaa; - line-height: 19px; -} -.x-list-header{ - background-color:#393d4e; - background-image:url(../images/access/toolbar/bg.gif); - background-position:0 top; -} - -.x-list-header-inner div em { - border-left-color:#667; - font:normal 14px arial, tahoma, helvetica, sans-serif; - line-height: 14px; -} - -.x-list-body-inner { - background-color:#1B232B; -} - -.x-list-body dt em { - font:normal 14px arial, tahoma, helvetica, sans-serif; -} - -.x-list-over { - background-color:#7E5530; -} - -.x-list-selected { - background-color:#E5872C; -} - -.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/access/grid/sort-hd.gif); - border-color: #3e4e6c; -} -.x-slider-horz, .x-slider-horz .x-slider-end, .x-slider-horz .x-slider-inner { - background-image:url(../images/access/slider/slider-bg.png); -} - -.x-slider-horz .x-slider-thumb { - background-image:url(../images/access/slider/slider-thumb.png); -} - -.x-slider-vert, .x-slider-vert .x-slider-end, .x-slider-vert .x-slider-inner { - background-image:url(../images/access/slider/slider-v-bg.png); -} - -.x-slider-vert .x-slider-thumb { - background-image:url(../images/access/slider/slider-v-thumb.png); -} -.x-window-dlg .ext-mb-text, -.x-window-dlg .x-window-header-text { - font-size:15px; -} - -.x-window-dlg .ext-mb-textarea { - font:normal 15px tahoma,arial,helvetica,sans-serif; -} - -.x-window-dlg .x-msg-box-wait { - background-image:url(../images/access/grid/loading.gif); -} - -.x-window-dlg .ext-mb-info { - background-image:url(../images/access/window/icon-info.gif); -} - -.x-window-dlg .ext-mb-warning { - background-image:url(../images/access/window/icon-warning.gif); -} - -.x-window-dlg .ext-mb-question { - background-image:url(../images/access/window/icon-question.gif); -} - -.x-window-dlg .ext-mb-error { - background-image:url(../images/access/window/icon-error.gif); -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-blue.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-blue.css deleted file mode 100644 index a6d1502e1d..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-blue.css +++ /dev/null @@ -1,1674 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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/refresh-disabled.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); -} - -td.grid-hd-group-cell { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x bottom; -} - -.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-pivotgrid .x-grid3-header-offset table td { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; -} - -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} - -.x-pivotgrid .x-grid3-row-headers table td { - background: #EEE url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; - border-bottom: 1px solid; - border-bottom-color: #D0D0D0; - height: 18px; -} -.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/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-gray.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-gray.css deleted file mode 100644 index 8dc9c2a5ff..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-gray.css +++ /dev/null @@ -1,1682 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.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-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/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-pivotgrid .x-grid3-header-offset table td { - background: url(../images/gray/grid/grid3-hrow2.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #D0D0D0; - border-right-color: #D0D0D0; -} - -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} - -.x-pivotgrid .x-grid3-row-headers table td { - background: #EEE url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #D0D0D0; - border-bottom: 1px solid; - border-bottom-color: #D0D0D0; - height: 18px; -} -.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:url(../images/gray/grid/sort-hd.gif); - 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/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.css deleted file mode 100644 index 84f833ff53..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.css +++ /dev/null @@ -1,1401 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -/** colors **/ -/** header font **/ -/** font **/ -/** window **/ -.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 arial, tahoma, 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 arial, tahoma, helvetica, sans-serif; - 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 arial, tahoma, 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 arial, tahoma, helvetica, sans-serif; -} -.x-form-item { - font: normal 12px arial, tahoma, helvetica, sans-serif; -} -.x-form-invalid-msg { - color: #c0272b; - font: normal 11px arial, tahoma, 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-size: 12px; - font-weight: normal; - font-family: 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 arial, tahoma, helvetica, sans-serif; - color: #777777; -} -.x-btn { - font: normal 11px arial, tahoma, helvetica, sans-serif; -} -.x-btn button { - font: normal 11px arial, tahoma, helvetica, sans-serif; - 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-row td, .x-grid3-summary-row td { - /** ?? font-size 11px/13px ?? **/ - - font: normal 11px arial, tahoma, helvetica, sans-serif; -} -.x-grid3-hd-row td { - /** ?? font-size 11px/15px ?? **/ - - 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 arial, tahoma, 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 arial, tahoma, 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-pivotgrid .x-grid3-header-offset table td { - background: url(../images/gray/grid/grid3-hrow2.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #d0d0d0; - border-right-color: #d0d0d0; -} -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} -.x-pivotgrid .x-grid3-row-headers table td { - background: #eeeeee url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: #d0d0d0; - border-bottom: 1px solid; - border-bottom-color: #d0d0d0; - height: 18px; -} -.x-dd-drag-ghost { - color: #000; - font: normal 11px arial, tahoma, 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 11 tahoma, arial, verdana, sans-serif; -} -.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, tahoma, helvetica, sans-serif; - color: #595959; -} -.x-date-inner td { - border-color: #fff; -} -.x-date-inner a { - font: normal 11px arial, tahoma, helvetica, 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, tahoma, helvetica, sans-serif; -} -.x-date-mp-btns button { - background-color: #4E565F; - color: #fff; - border-color: #C0C0C0 #434343 #434343 #C0C0C0; - font: normal 11px arial, tahoma, helvetica, 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 arial, tahoma, helvetica, sans-serif; -} -.x-tip .x-tip-ml { - background-color: #fff; -} -.x-tip .x-tip-header-text { - font: bold 11px arial, tahoma, helvetica, sans-serif; - color: #444; -} -.x-tip .x-tip-body { - font: normal 11px arial, tahoma, 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, helvetica, 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: arial, tahoma, helvetica, 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 arial, tahoma, helvetica, sans-serif; -} -.x-combo-list-inner { - background-color: #fff; -} -.x-combo-list-hd { - font: bold 11px arial, tahoma, 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 arial, tahoma, helvetica, sans-serif; -} -.x-panel { - border-color: #d0d0d0; -} -.x-panel-header { - color: #333; - font-weight: bold; - font-size: 11; - 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 11 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 arial, tahoma, 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 11 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 arial, tahoma, 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: 11; - 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 arial, tahoma, helvetica, sans-serif; -} -.x-list-body dt em { - font: normal 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: url(../images/gray/grid/sort-hd.gif); - 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 arial, tahoma, 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/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.less b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.less deleted file mode 100644 index d60188de11..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scm.less +++ /dev/null @@ -1,1417 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ - -/** colors **/ -@base-color: #F1F1F1; -@header-color: #D7D7D7; -@background-color: #FFFFFF; -@border-color: #d0d0d0; - -/** header font **/ -@header-font-color: #222222; -@header-font-weight: bold; -@header-font-family: tahoma, arial, verdana, sans-serif; -@header-font-size: 11; - -/** font **/ -@font-color: #000000; -@font-weight: normal; -@font-family: arial, tahoma, helvetica, sans-serif; -@font-size: 11px; - -/** window **/ -@window-transparency:'255'; - -.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: @font-weight @font-size @font-family; -} -.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: @font-size; - 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: @border-color; - overflow: hidden; - zoom: 1; -} -.x-tab-panel-header, .x-tab-panel-footer { - border-color: @border-color; -} -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: @border-color; - background-color: #eaeaea; -} -.x-tab-strip span.x-tab-strip-text { - font: @font-weight @font-size @font-family; - 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: @border-color; - 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: @border-color; -} -.x-form-field { - font: normal 12px @font-family; -} -.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 @border-color; - 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 @font-family; -} -.x-form-item { - font: normal 12px @font-family; -} -.x-form-invalid-msg { - color: #c0272b; - font: @font-weight @font-size @font-family; - background-image: url(../images/default/shared/warning.gif); -} -.x-form-empty-field { - color: gray; -} -.x-small-editor .x-form-field { - font: @font-weight @font-size @font-family; -} -.ext-webkit .x-small-editor .x-form-field { - font-size: @font-size + 1; - font-weight: @font-weight; - font-family: @font-family; -} -.x-form-invalid-icon { - background-image: url(../images/default/form/exclamation.gif); -} -.x-fieldset { - border-color: #CCCCCC; -} -.x-fieldset legend { - font: bold @font-size @font-family; - color: #777777; -} -.x-btn { - font: @font-weight @font-size @font-family; -} -.x-btn button { - font: @font-weight @font-size @font-family; - 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: @border-color; - 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: @font-weight @font-size @font-family; -} -.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: @border-color; -} -.x-grid3-row td, .x-grid3-summary-row td { - /** ?? font-size 11px/13px ?? **/ - font: @font-weight @font-size @font-family; -} -.x-grid3-hd-row td { - /** ?? font-size 11px/15px ?? **/ - font: @font-weight @font-size @font-family; -} -.x-grid3-hd-row td { - border-left-color: #eee; - border-right-color: @border-color; -} -.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: @border-color; -} -.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: @font-weight @font-size @font-family; -} -.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: @border-color; -} -.x-grid-group-hd div.x-grid-group-title { - background-image: url(../images/gray/grid/group-collapse.gif); - color: #5F5F5F; - font: bold @font-size @font-family; -} -.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: @font-weight @font-size @font-family; -} -.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-pivotgrid .x-grid3-header-offset table td { - background: url(../images/gray/grid/grid3-hrow2.gif) repeat-x 50% 100%; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: @border-color; - border-right-color: @border-color; -} -.x-pivotgrid .x-grid3-row-headers { - background-color: #f9f9f9; -} -.x-pivotgrid .x-grid3-row-headers table td { - background: #eeeeee url(../images/default/grid/grid3-rowheader.gif) repeat-x left top; - border-left: 1px solid; - border-right: 1px solid; - border-left-color: #EEE; - border-right-color: @border-color; - border-bottom: 1px solid; - border-bottom-color: @border-color; - height: 18px; -} -.x-dd-drag-ghost { - color: #000; - font: @font-weight @font-size @font-family; - 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: @font-weight @font-size @font-family; -} -.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: @header-font-weight @header-font-size @header-font-family; -} -.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 @font-family; - color: #595959; -} -.x-date-inner td { - border-color: #fff; -} -.x-date-inner a { - font: @font-weight @font-size @font-family; - 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: @font-weight @font-size @font-family; -} -.x-date-mp-btns button { - background-color: #4E565F; - color: #fff; - border-color: #C0C0C0 #434343 #434343 #C0C0C0; - font: @font-weight @font-size @font-family; -} -.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: @header-color; -} -.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: @font-weight @font-size @font-family; -} -.x-tip .x-tip-ml { - background-color: #fff; -} -.x-tip .x-tip-header-text { - font: bold @font-size @font-family; - color: #444; -} -.x-tip .x-tip-body { - font: @font-weight @font-size @font-family; - 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: @font-weight @font-size @font-family; -} -.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: @base-color; - 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: @base-color; -} -.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: @font-family; - 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 @font-family; -} -.x-combo-list-inner { - background-color: #fff; -} -.x-combo-list-hd { - font: bold @font-size @font-family; - 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: @font-weight @font-size @font-family; -} -.x-panel { - border-color: @border-color; -} -.x-panel-header { - color: #333; - font-weight: @header-font-weight; - font-size: @header-font-size; - font-family: @header-font-family; - border-color: @border-color; - background-image: url(../images/gray/panel/white-top-bottom.gif); -} -.x-panel-body { - border-color: @border-color; - background-color: #fff; -} -.x-panel-bbar .x-toolbar, .x-panel-tbar .x-toolbar { - border-color: @border-color; -} -.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { - border-top-color: @border-color; -} -.x-panel-body-noheader, .x-panel-mc .x-panel-body { - border-top-color: @border-color; -} -.x-panel-tl .x-panel-header { - color: #333; - font: @header-font-weight @header-font-size @header-font-family; -} -.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: @border-color; -} -.x-panel-bc { - background-image: url(../images/gray/panel/top-bottom.gif); -} -.x-panel-mc { - font: @font-weight @font-size @font-family; - background-color: @base-color; -} -.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: @border-color; -} -.x-panel-dd-spacer { - border-color: @border-color; -} -.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: @font-weight @font-size @font-family; -} -.x-window-proxy { - background-color: #fcfcfc; - border-color: @border-color; -} -.x-window-tl .x-window-header { - color: #555; - font: @header-font-weight @header-font-size @header-font-family; -} -.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: @border-color; - font: @font-weight @font-size @font-family; - 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: @border-color; -} -.x-panel-ghost .x-window-tl { - border-bottom-color: @border-color; -} -.x-panel-collapsed .x-window-tl { - border-bottom-color: @border-color; -} -.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: @border-color; -} -.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { - border-bottom-color: @border-color; -} -.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { - border-top-color: @border-color; -} -.x-tab-panel-bbar-noborder .x-toolbar { - border-top-color: @border-color; -} -.x-tab-panel-tbar-noborder .x-toolbar { - border-bottom-color: @border-color; -} -.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: @border-color; -} -.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: @header-font-size; - font-weight: @header-font-weight ; - 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: @font-weight @font-family; -} -.x-list-body dt em { - font: @font-weight @font-family; -} -.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: url(../images/gray/grid/sort-hd.gif); - border-color: @border-color; -} -.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 @font-family; -} -.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/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scmslate.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scmslate.css deleted file mode 100755 index 7fe598fe1e..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/xtheme-scmslate.css +++ /dev/null @@ -1,761 +0,0 @@ -.x-panel { - border-style: solid; - border-color: #abc; -} -.x-panel-header { - color:#fafafa; - border:1px solid #abc; - background-image:url(../images/slate/panel/white-top-bottom.gif); -} - -.x-panel-body { - border-color:#abc; -} - -.x-panel-bbar .x-toolbar { - border-color:#abc; -} - -.x-panel-tbar .x-toolbar { - border-color:#abc; -} - -.x-panel-tbar-noheader .x-toolbar, .x-panel-mc .x-panel-tbar .x-toolbar { - border-color:#abc; -} -.x-panel-body-noheader, .x-panel-mc .x-panel-body { - border-color:#abc; -} -.x-panel-tl .x-panel-header { - color:#f4f4f4; -} -.x-panel-tc { - background-image:url(../images/slate/panel/top-bottom.gif); -} -.x-panel-tl { - background-image:url(../images/slate/panel/corners-sprite.gif); - border-color:#abc; -} -.x-panel-tr { - background-image:url(../images/slate/panel/corners-sprite.gif); -} -.x-panel-bc { - background-image:url(../images/slate/panel/top-bottom.gif); -} -.x-panel-bl { - background-image:url(../images/slate/panel/corners-sprite.gif); -} -.x-panel-br { - background-image:url(../images/slate/panel/corners-sprite.gif); -} -.x-panel-mc { - background-color: #f1f1f1; -} -.x-panel-mc .x-panel-body { - background:transparent; - border: 0 none; -} -.x-panel-ml { - background-image:url(../images/slate/panel/left-right.gif); -} -.x-panel-mr { - background-image:url(../images/slate/panel/left-right.gif); -} - -.x-panel-dd-spacer{ - border:2px dashed #89a; -} - - -/* Tools */ -.x-tool { - background-image:url(../images/slate/panel/tool-sprites.gif); -} - -/* Ghosting */ -.x-panel-ghost { - background:#e0e0e0; -} - -.x-panel-ghost ul { - border-color:#b0b0b0; -} - -.x-grid-panel .x-panel-mc .x-panel-body { - border:1px solid #abc; -} - -/* Buttons */ - -.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/slate/button/btn.gif); -} - -.x-btn-over button{ - color:#fff; -} -.x-btn-focus button{ - color:#fff; -} - -.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/slate/button/s-arrow-o.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/slate/button/s-arrow-o.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/slate/button/s-arrow-bo.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/slate/button/s-arrow-bo.gif); -} - -.x-btn-text-icon .x-btn-with-menu .x-btn-center em { - background:transparent url(../images/slate/toolbar/btn-arrow.gif) no-repeat scroll right 3px; -} -.x-btn-with-menu .x-btn-center em { - background:transparent url(../images/slate/toolbar/btn-arrow.gif) no-repeat scroll right 0pt; -} - - -/* Layout classes */ - -.x-border-layout-ct { - background:#f0f0f0; -} - -.x-accordion-hd { - background-image:url(../images/slate/panel/light-hd.gif); -} - -.x-layout-collapsed{ - background-color:#567; - border-color:#e0e0e0; -} -.x-layout-collapsed-over{ - background-color:#789; -} - - - -/* Toolbars */ - -.x-toolbar{ - border-color:#abc; - background:#516275 url(../images/slate/toolbar/bg.gif) repeat-x top left; -} -.x-toolbar button { - color:#f4f4f4; -} -.x-toolbar .ytb-text { - color:#fff; -} -.x-toolbar .x-btn-menu-arrow-wrap .x-btn-center button { - background-image:url(../images/slate/toolbar/btn-arrow.gif); -} -.x-toolbar .x-btn-text-icon .x-btn-menu-arrow-wrap .x-btn-center button { - background-image:url(../images/slate/toolbar/btn-arrow.gif); -} -.x-toolbar .x-btn-over .x-btn-left{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} -.x-toolbar .x-btn-over .x-btn-right{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} -.x-toolbar .x-btn-over .x-btn-center{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} -.x-toolbar .x-btn-over button { - color:#fff; -} -.x-toolbar .x-btn-click .x-btn-left, .x-toolbar .x-btn-pressed .x-btn-left, .x-toolbar .x-btn-menu-active .x-btn-left{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} -.x-toolbar .x-btn-click .x-btn-right, .x-toolbar .x-btn-pressed .x-btn-right, .x-toolbar .x-btn-menu-active .x-btn-right{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} - -.x-toolbar .x-btn-click .x-btn-center, .x-toolbar .x-btn-pressed .x-btn-center, .x-toolbar .x-btn-menu-active .x-btn-center{ - background-image:url(../images/slate/toolbar/tb-btn-sprite.gif); -} -.x-toolbar .xtb-sep { - background-image: url(../images/slate/grid/grid-split.gif); -} - -.x-btn-group-header { - color: #3f5d78; -} - -.x-btn-group-tc { - background-image: url(../images/slate/button/group-tb.gif); -} - -.x-btn-group-tl { - background-image: url(../images/slate/button/group-cs.gif); -} - -.x-btn-group-tr { - background-image: url(../images/slate/button/group-cs.gif); -} - -.x-btn-group-bc { - background-image: url(../images/slate/button/group-tb.gif); -} - -.x-btn-group-bl { - background-image: url(../images/slate/button/group-cs.gif); -} - -.x-btn-group-br { - background-image: url(../images/slate/button/group-cs.gif); -} - -.x-btn-group-ml { - background-image: url(../images/slate/button/group-lr.gif); -} -.x-btn-group-mr { - background-image: url(../images/slate/button/group-lr.gif); -} - -.x-btn-group-notitle .x-btn-group-tc { - background-image: url(../images/slate/button/group-tb.gif); - height:3px; -} - - -/* Menus */ - -.x-menu{ - border:1px solid #aaa; - background:#f0f0f0 url(../images/slate/menu/menu.gif) repeat-y; -} -.x-menu-item-active{ - background:#ebf3fd url(../images/slate/menu/item-over.gif) repeat-x left bottom; - border:1px solid #c2cbd2; -} -.x-menu-item-arrow{ - background:transparent url(../images/slate/menu/menu-parent.gif) no-repeat right; -} - - -/* Tabs */ - -.x-tab-panel-header, .x-tab-panel-footer { - - background: #6b869f; - border-color:#4f657b; -} - - -.x-tab-panel-header { - border-color:#abc; -} - -.x-tab-panel-footer { - border-color:#abc; -} - -ul.x-tab-strip-top{ - background:#dbdbdb url(../images/slate/tabs/tab-strip-bg.gif) repeat-x left top; - border-color:#4c647e; - padding-top: 2px; -} - -ul.x-tab-strip-bottom{ - background-image:url(../images/slate/tabs/tab-strip-btm-bg.gif); - border-color:#566c82; -} - -.x-tab-strip span.x-tab-strip-text { - color:#333; -} -.x-tab-strip-over span.x-tab-strip-text { - color:#111; -} - -.x-tab-strip-active span.x-tab-strip-text { - color:#fff; -} - -.x-tab-strip-disabled .x-tabs-text { - color:#aaaaaa; -} - -.x-tab-strip-top .x-tab-right { - background-image:url(../images/slate/tabs/tabs-sprite.gif); -} - -.x-tab-strip-top .x-tab-left { - background-image:url(../images/slate/tabs/tabs-sprite.gif); -} -.x-tab-strip-top .x-tab-strip-inner { - background-image:url(../images/slate/tabs/tabs-sprite.gif); -} - -.x-tab-strip-bottom .x-tab-right { - background-image:url(../images/slate/tabs/tab-btm-inactive-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-left { - background-image:url(../images/slate/tabs/tab-btm-inactive-left-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-right { - background-image:url(../images/slate/tabs/tab-btm-right-bg.gif); -} - -.x-tab-strip-bottom .x-tab-strip-active .x-tab-left { - background-image:url(../images/slate/tabs/tab-btm-left-bg.gif); -} - -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close { - background-image:url(../images/slate/tabs/tab-close.gif); -} -.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{ - background-image:url(../images/slate/tabs/tab-close.gif); -} - -.x-tab-panel-body { - border-color:#abc; - background:#fff; -} -.x-tab-panel-bbar .x-toolbar { - border-color: #abc; -} - -.x-tab-panel-tbar .x-toolbar { - border-color: #abc; -} - -.x-tab-panel-header-plain .x-tab-strip-spacer { - border-color:#abc; - background: #6b869f; -} - -.x-tab-scroller-left { - background-image: url(../images/slate/tabs/scroll-left.gif); - border-color:#aeaeae; -} -.x-tab-scroller-right { - background-image: url(../images/slate/tabs/scroll-right.gif); - border-color:#aeaeae; -} - -/* Window */ - -.x-window-proxy { - background:#e4e8ec; - border-color:#abc; -} - -.x-window-tl .x-window-header { - color:#fafafa; -} -.x-window-tc { - background-image:url(../images/slate/window/top-bottom.png); -} -.x-window-tl { - background-image:url(../images/slate/window/left-corners.png); -} -.x-window-tr { - background-image:url(../images/slate/window/right-corners.png); -} -.x-window-bc { - background-image:url(../images/slate/window/top-bottom.png); -} -.x-window-bl { - background-image:url(../images/slate/window/left-corners.png); -} -.x-window-br { - background-image:url(../images/slate/window/right-corners.png); -} -.x-window-mc { - border:1px solid #abc; - background:#e8e8e8; -} - -.x-window-ml { - background-image:url(../images/slate/window/left-right.png); -} -.x-window-mr { - background-image:url(../images/slate/window/left-right.png); -} -.x-panel-ghost .x-window-tl { - border-color:#abc; -} -.x-panel-collapsed .x-window-tl { - border-color:#abc; -} - -.x-window-plain .x-window-mc { - background: #e8e8e8; - border-right:1px solid #eee; - border-bottom:1px solid #eee; - border-top:1px solid #abc; - border-left:1px solid #abc; -} - -.x-window-plain .x-window-body { - border-left:1px solid #ddd; - border-top:1px solid #ddd; - border-bottom:1px solid #abc; - border-right:1px solid #abc; - background:transparent !important; -} - -body.x-body-masked .x-window-mc, body.x-body-masked .x-window-plain .x-window-mc { - background-color: #eceef0; -} - - -/* HTML Editor */ -.x-html-editor-wrap { - border-color:#abc; -} -.x-html-editor-tb .x-btn-text { -/* background:transparent url(../images/slate/editor/tb-sprite.gif) no-repeat scroll 0%; */ - background-image:url(../images/slate/editor/tb-sprite.gif); -} - - -/* Borders go last for specificity */ -.x-panel-noborder .x-panel-body-noborder { - border-width:0; -} - -.x-panel-noborder .x-panel-header-noborder { - border-width:0; - border-bottom:1px solid #abc; -} - -.x-panel-noborder .x-panel-tbar-noborder .x-toolbar { - border-width:0; - border-bottom:1px solid #abc; -} - -.x-panel-noborder .x-panel-bbar-noborder .x-toolbar { - border-width:0; - border-top:1px solid #abc; -} - -.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-top-width:0; - border-left-width:0; - border-right-width:0; -} - -.x-tab-panel-noborder .x-tab-panel-footer-noborder { - border-bottom-width:0; - border-left-width:0; - border-right-width:0; -} - - -.x-tab-panel-bbar-noborder .x-toolbar { - border-width:0; - border-top:1px solid #abc; -} - -.x-tab-panel-tbar-noborder .x-toolbar { - border-width:0; - border-bottom:1px solid #abc; -} - -/* Forms */ -.x-form-text, textarea.x-form-field { - border:1px solid #9ab; -} -.x-trigger-wrap-focus .x-form-trigger { - border-bottom:1px solid #4a7192; -} -.x-form-focus,textarea.x-form-focus { - border:1px solid #4a7192; -} - -.x-form-field-wrap .x-form-trigger { - background:transparent url(../images/slate/form/trigger.gif) no-repeat 0 0; -} -.x-form-field-wrap .x-form-date-trigger { - background-image:url(../images/slate/form/date-trigger.gif); -} -.x-form-field-wrap .x-form-clear-trigger { - background-image:url(../images/slate/form/clear-trigger.gif); -} -.x-form-field-wrap .x-form-search-trigger { - background-image:url(../images/slate/form/search-trigger.gif); -} - -.x-form-field-wrap .x-form-trigger { - border-bottom:1px solid #778899; -} - -.x-form fieldset legend { - color:#333; -} - -/* the following need to be duplicated from ext-all.js, - otherwise hover effects are broken */ -.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;} - - -/* Grid */ - -.x-grid3-row-selected { - background-color:#fbf0d2 !important; - border:1px dotted #ccc; -} -.x-grid3-hd-btn{ - background:#f2daa9 url(../images/slate/grid/grid3-hd-btn.gif) no-repeat left center; -} -.x-grid3-header{ - background:#f9f9f9 url(../images/slate/grid/grid3-hrow.gif) repeat-x 0 bottom; -} -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:#ebf3fd url(../images/slate/grid/grid3-hrow-over.gif) repeat-x left bottom; -} -.sort-asc .x-grid3-sort-icon{ - background-image:url(../images/slate/grid/sort_asc.gif); -} -.sort-desc .x-grid3-sort-icon{ - background-image:url(../images/slate/grid/sort_desc.gif); -} -td.x-grid3-hd-over, td.sort-desc, td.sort-asc, td.x-grid3-hd-menu-open { - border-left:1px solid #fff; - border-right:1px solid #ccc; -} -.x-grid3-cell-selected{ - background-color:#e0eaee!important; -} -.x-grid3-body .x-grid3-td-expander{ - background:transparent url(../images/slate/grid/grid3-special-col-bg.gif) repeat-y right; -} -.x-grid3-body .x-grid3-td-checker{ - background:transparent url(../images/slate/grid/grid3-special-col-bg.gif) repeat-y right; -} -.x-grid3-body .x-grid3-td-numberer{ - background:transparent url(../images/slate/grid/grid3-special-col-bg.gif) repeat-y right; -} -.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 url(../images/slate/grid/grid3-special-col-sel-bg.gif) repeat-y right; -} -.x-grid-group-hd { - border-bottom:2px solid #abb; -} -.x-grid-group-hd div { - color: #456; -} -.x-dd-drag-proxy .x-grid3-hd-inner{ - background:#ebf3fd url(../images/slate/grid/grid3-hrow-over.gif) repeat-x left bottom; - border:1px solid #abc; -} -.x-tbar-page-first{ - background-image:url(../images/slate/grid/page-first.gif)!important; -} -.x-tbar-page-last{ - background-image:url(../images/slate/grid/page-last.gif)!important; -} -.x-tbar-page-next{ - background-image:url(../images/slate/grid/page-next.gif)!important; -} -.x-tbar-page-prev{ - background-image:url(../images/slate/grid/page-prev.gif)!important; -} -.x-paging-info { - color:#FFFFFF; -} - - -/* Progress Bar */ - -.x-progress-bar{ - background:#9CBFEE url( ../../resources/images/slate/progress/progress-bg.gif ) repeat-x left center; - border-top:1px solid #ddd; - border-bottom:1px solid #ddd; -} - - -/* Combos */ -.x-combo-list{ - border:1px solid #89a; -} -.x-combo-list .x-combo-selected{ - border:1px dotted #ccc!important; - background-color:#fbf0d2; -} - - -/* Calendars */ - -.x-date-middle,.x-date-left,.x-date-right{ - background:url(../images/slate/shared/hd-sprite.gif) repeat-x 0 -83px; -} -.x-date-bottom { - background:#DFECFB url(../images/slate/shared/glass-bg.gif) repeat-x scroll left top; - border-top:1px solid #abc; -} -.x-date-right a{ - background-image:url(../images/slate/shared/right-btn.gif); -} -.x-date-left a{ - background-image:url(../images/slate/shared/left-btn.gif); -} -.x-date-inner th{ - background:#dfecfb url(../images/slate/shared/glass-bg.gif) repeat-x left top; - border-bottom:1px solid #abc; - color:#345; -} -.x-date-inner .x-date-selected a { - background:#dfecfb url(../images/slate/shared/glass-bg.gif) repeat-x scroll left top; - border:1px solid #89a; -} -.x-date-inner a:hover,.x-date-inner .x-date-disabled a:hover{ - background:#cfdce1; -} -td.x-date-mp-month a:hover,td.x-date-mp-year a:hover{ - color:#123; - background:#cfdce1; -} -.x-date-mp-ybtn a{ - background:transparent url(../images/slate/panel/tool-sprites.gif) no-repeat; -} -.x-date-mp-btns { - background:#dfecfb url(../images/slate/shared/glass-bg.gif) repeat-x scroll left top; -} -td.x-date-mp-sel a{ - background:#dfecfb url(../images/slate/shared/glass-bg.gif) repeat-x left top; - border:1px solid #abc; -} -.x-date-mp-btns button{ - background:#405574; - border:1px solid; - border-color:#abc #055 #055 #abc; -} - -/* Resizable Handle */ -.x-resizable-over .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-east{ - background:url(../images/slate/sizer/e-handle.gif);background-position:left; -} -.x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-west{ - background:url(../images/slate/sizer/e-handle.gif);background-position:left; -} -.x-resizable-over .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-south{ - background:url(../images/slate/sizer/s-handle.gif);background-position:top; -} -.x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{ - background:url(../images/slate/sizer/s-handle.gif);background-position:top; -} -.x-resizable-over .x-resizable-handle-southeast,.x-resizable-pinned .x-resizable-handle-southeast{ - background:url(../images/slate/sizer/se-handle.gif);background-position:top left; -} -.x-resizable-over .x-resizable-handle-northwest,.x-resizable-pinned .x-resizable-handle-northwest{ - background:url(../images/slate/sizer/nw-handle.gif);background-position:bottom right; -} -.x-resizable-over .x-resizable-handle-northeast,.x-resizable-pinned .x-resizable-handle-northeast{ - background:url(../images/slate/sizer/ne-handle.gif);background-position:bottom left; -} -.x-resizable-over .x-resizable-handle-southwest,.x-resizable-pinned .x-resizable-handle-southwest{ - background:url(../images/slate/sizer/sw-handle.gif);background-position:top right; -} - -/* Tips */ -.x-tip .x-tip-close{ - background-image:url(../images/slate/qtip/close.gif); -} -.x-tip .x-tip-tc{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat 0 -62px; -} -.x-tip .x-tip-tl{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat 0 0; -} -.x-tip .x-tip-tr{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat right 0; -} -.x-tip .x-tip-bc{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat 0 -121px; -} -.x-tip .x-tip-bl{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat 0 -59px; -} -.x-tip .x-tip-br{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat right -59px; -} -.x-tip .x-tip-ml{ - background:#fff url(../images/slate/qtip/tip-sprite.gif) no-repeat 0 -124px; -} -.x-tip .x-tip-mr{ - background:transparent url(../images/slate/qtip/tip-sprite.gif) no-repeat right -124px; -} -.x-form-invalid-tip .x-tip-tc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -12px;padding-top:6px;} -.x-form-invalid-tip .x-tip-tl{background-image:url(../images/default/form/error-tip-corners.gif);} -.x-form-invalid-tip .x-tip-tr{background-image:url(../images/default/form/error-tip-corners.gif);} -.x-form-invalid-tip .x-tip-bc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -18px;height:6px;} -.x-form-invalid-tip .x-tip-bl{background:url(../images/default/form/error-tip-corners.gif) no-repeat 0 -6px;} -.x-form-invalid-tip .x-tip-br{background:url(../images/default/form/error-tip-corners.gif) no-repeat right -6px;} -.x-form-invalid-tip .x-tip-ml{background-image:url(../images/default/form/error-tip-corners.gif);} -.x-form-invalid-tip .x-tip-mr{background-image:url(../images/default/form/error-tip-corners.gif);} - - -/* Sliders */ -.x-slider-horz, .x-slider-horz .x-slider-end, .x-slider-horz .x-slider-inner { - background-image:url(../images/slate/slider/slider-bg.png); -} - -.x-slider-horz .x-slider-thumb { - background-image:url(../images/slate/slider/slider-thumb.png); -} - -.x-slider-vert, .x-slider-vert .x-slider-end, .x-slider-vert .x-slider-inner { - background-image:url(../images/slate/slider/slider-v-bg.png); -} - -.x-slider-vert .x-slider-thumb { - background-image:url(../images/slate/slider/slider-v-thumb.png); -} - - -/* Miscellaneous */ - -.x-item-disabled * { - color:#333 !important; -} - -.xtb-text { - color:#fff !important; -} - -.x-tree-node .x-tree-selected { - background-color: #fbf0d2; -} - -.x-list-selected { - background-color:#fbf0d2; -} - -/* scm changes */ - -.x-tbar-loading { - background-image: url(../images/slate/grid/refresh.png) !important; -} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/css/yourtheme.css b/scm-webapp/src/main/webapp/resources/extjs/resources/css/yourtheme.css deleted file mode 100644 index ae791943ae..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/resources/css/yourtheme.css +++ /dev/null @@ -1,1652 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -.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/refresh-disabled.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); -} - -td.grid-hd-group-cell { - background: url(../images/default/grid/grid3-hrow.gif) repeat-x bottom; -} - -.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/scm-webapp/src/main/webapp/resources/extjs/resources/expressinstall.swf b/scm-webapp/src/main/webapp/resources/extjs/resources/expressinstall.swf deleted file mode 100644 index 613d69b721259a70ef98dcd2bc6e0258a4e3c10c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4823 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 Ru}w*2KC@pnhK+^68UTSX)nNbt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l-blue.gif deleted file mode 100644 index 5ed7f0043b6b0f956076e02583ca7d18a150e8f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-NGaC=| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/l.gif deleted file mode 100644 index 0160f97fe75409f17ab6c3c91f7cbdc58afa8f8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-N<)RPU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r-blue.gif deleted file mode 100644 index 3ea5cae3b7b571ec41ac2b5d38c8a675a1f66efc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-NJSY$C diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/r.gif deleted file mode 100644 index 34237f6292a7da6ac5d1b95d13ce76a7194dd596..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-N?ynEj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb-blue.gif deleted file mode 100644 index 4b1382c349918444e85ec948e50f47b57d0b2382..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHbWMt4{_|Cv!?Gyt>vDQwpHcoLi&hbEG>zrWgk_be0t{`OZmJCD=?kNuL zsUYN$=IE8~Z|JvDuNAPsr*9!vaP&UP+yh1rCW#EgS-J77PLo2N;-Gd1M?WI2>eR<6~lCum%7= CS1A4f diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/box/tb.gif deleted file mode 100644 index 435889bffe0a3a4f92b1cb5e781be0d1e9e355f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHbWMoiaXlGzJc<|tf6DMxpzWwCMlQ(bPynFZV{rmSHK79E2@#E*upTB(h z^7ZT2Z{NOs|Ni~Qj~_pO{`~dp*PlOs{{H>@@87@w|Nk?Lg3%Bd$|0cmlLhGf{|q`H xPk{0S1BVKOBoBu|W0NBntB_a%g98I2m#~UU!-oTo%xv5uDh>q)92y%KtN|VsNKya* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/arrow.gif deleted file mode 100644 index 087b450da86f4da7c5a83047fc9241d16e299e36..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 833 zcmZ?wbhEHbJ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/btn.gif deleted file mode 100644 index 3e705baf565760d71621706987ff675fa73decea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2871 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/group-lr.gif deleted file mode 100644 index 374ea7543201c8866153c0fa6080ca3839af4c45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 861 zcmZ?wbhEHbe8J4f@STAnpdcY3A)~aUf?*VlhQP=R0mYvzj38g@fCx~YVBoM~VCG0R;dkPcU$#GB9(Fo^FtQ zY6-`JWxlhGi(jc!3O_$L-@)=5kJpwJuJhd{Yvpnzth~HDV6oR+udS=D_AoLsSOWkZ Cus8$& diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-b.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-b.gif deleted file mode 100644 index ba55d0a1275dbb503b02fd13bbe762f9e47fb7ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 943 zcmZ?wbhEHbJi)-n@ST|b^ zIb=LGEI8QAA*>a1V#C72?E=bPb5y*%rmG?r2V4bbh`=GncH_mK7Hldra1fJ+)=!<>dj3y?C`2tO{Kn yygBQx)<>!3Wrz%h@3 zkweB~!vaSJW+APZ6B`yDZWmDYn&Yu?(a~-RV=J2z9}^n-6`Z?dJU1;lIawokRm{mv zOHWT%u|74&bMvyZvn`5W-8s2=`S~WPW-eK;Eh{cAvg_B1J+)=!l>RzjxI`#Dq9=fk#%3rRC{~gp&ezNTqkCW>)+qsp#O{4 QXGg)|gKfgXd>jnc0AI>kXaE2J diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-noline.gif deleted file mode 100644 index f3cd351ebebf246f5d93cfdccae210cba8c27a6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHb6k_mT_|Cxa|Nno6Q7{?;BQ*pRf3h$#FfcOcfC2!NCm1+97??R^JT@#i z*vuiU6?0<4!o%$X%3gCkHZD5aEn%E>=fuXv$NLqWyN+-ySmHUE%YRYKic1f@rYk3( Xn&Y{7+1c3^#joz1-2D7V1A{dHmj^4b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow-o.gif deleted file mode 100644 index 4bdafd046de7199092f9536508b70a74a0a2e8ed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 155 zcmZ?wbhEHb6k_mTn8?iVdQr^6DAE65p!k!8k%57kL5BedK=KSsIWk5oPq*=2?kv2N z_Wo4VzITmW*C)=ZTsS4FR)PEAjOa_t=RR6}uWO-xGK=}1h{9*ZD(#CGU+|1^n$6w# zwQ6bD#%mhQzgtocCoTTMGv}YnnXle!eHP#RP&UV|{(1KAX#4Nmg>NW_cciaqUlGW_ GU=0BK-A91{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/button/s-arrow.gif deleted file mode 100644 index a77be7fd660f13b6277a34ed4fa52e12eb5cbe04..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 956 zcmZ?wbhEHb6k_mT_|D7_8=EIBt@;1|e}+*o8UiCP1QdU=FfuSOGw6W44$2b@95Wf% z88{3UEI8QA!7Ai)V#9+2ZM^bMJ{pCO4t9yj>YZ6Jaj|2Mq+^tb6zzjP1~|7FNG4%cUwfW)vgRqyf|OJ{Z|Or7mdqH*jPR0T5Zh?Srs&0 z>4;ZJ_O*4<#h+?+T~@xdN&BRf?CUMMx3{NVofj*8JvVko=G$jSrGxY1_Zk0XV~Ytk JIMTpi4FI$4P5b}= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/editor/tb-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/editor/tb-sprite.gif deleted file mode 100644 index bd4011d548cc62fcb4ecf3a92a96414fa804cac6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1994 zcmV;*2Q~OdNk%w1Vc-A|0QUd@5EBp}AP_J#5HKhpEq*9BeKasgU|mHVP*5;IZa+{+ zKtfk?OJ_?}c1Lh%P+(wSVPRosXJ=_?X=-X}d3kw!e0(%_syTF~KwyAQeU?XNqhN55 zGJ!5XmNz`MMl;Y;D9vX=jXY6_NmPPTTaQ>*n@CQmLt3L!SGP+=p>A5aaB7=WW~5(W zy;5qjUU9N&bGu=Gyk&N`aDKmZM$1=K$bM4NU|iH}K>t8$!Cr05YJ10SJ&eFqn7B-! zrdYeFQ?s*rlAdgZwsnQ1aE-NgjJa>Wrfa&fd9%Dno4`k;%T=ntewWB#zQJ|9%6Y!d zNYIyC%!qW|hGfQ|bIz-mZ8eZ_H@kN+f^1d)004-YcaVT!lDu=fno^>QaiExRw3lk2 zs8F!5P=?5ShRuGB%5#v&f5?$3-Ksd`pC`wbThW$Iz@Kc-rBm3ZS=g~i+O|^JyKmpR zdg-%6=($Mavr^~0YVNmr|Nj8Mz)--zaNfXS?aN8y!(I2uRO-TL^w?|v)Nb?Ab^q3R z_TgUO=5YAscJT0Ufq{XAg@uNOhK`Pof{v7%o11}?vy+~qj;XYop{bgrsi2^MrKP2= zuCAl3v8J!Ht+u(my|cQyx`3F#m8Zm)tI~_pgO|sUoZp><)2f=psglRKp2@M0-?fh5 znv>w3pwEe~%Z{SZfv3@pxz?Du)|{i%t+2?jv(~x1+P1&iyn)8ckIBcM%*3GAz{skJ z&$x-kwUN@Uh}pD~;HuH#t?kW??8lnz z(}&{KoB!H`_RpsD+PLuGfdAo<`skwn@UXzZz{14C%gn>h&&SEh$;`~m%GBD?(#zD< z&)M3`+1b?D+11(E+1=gQz|QW$(C5wA^3B@w;o;ungVk2>Fw?7?d|R8?eOaF@$K>R^7HWX^z!!i_5A$&00000000000000000000 z0000000000A^8LW001}uEC2ui0N?-+000R70C5N$NU)&6g9sBUT*$DY!-o(fI(($< z;Gv5b17JKPG2xgTEkcgzNU~%>I3`o7T*>fTx<>{#9@2$i653X1uvk!FBj@#2AV zWc#)_aYBp}pnw7PhC>U(fO3i}w#+ii5=$6C1}hy9#K=3^+=Ig-?UXa!Lg{dYkR;u7 zBMA;9nwXGQBBnG)9ClnK8axQiSfgkLWl|A`s1ameYhfUOj((i<=bsSbj3c0uO7=E} zDy^7O3M@`Ip#%_7++c$lT(Ce8hVBT2;W`UF@=bULl{k=^2$gmknhC+l-kc_BliFz& z4HSj|0tAr9R|pWp4md>;#Kb&EGPxuXy6oZx4mt4Ri4?ZL0$~$2eDDDcE~FAdbJS?~ zh&vuGq)na)b(77St0LqceEtkQa*vz?rGbWe3Q>h?LNkumt7JI*+8IF{eq*dU?$i^W zOoiz23O3+CVx&Na0{GvO+Z=<;InAhnpbj>KGD;FaPyq!9A9!#AD;#`D4LR++gCQdd zVWJHt3vt8En%y9zLiEtX&^_L9r{O_%3WVoE z?F>vS4ndUH5PG}b_?grWA7mpz@ex!_J?|WpaWu|M0>D8ZGl|W}h5+KmE;zWr$_`W< zk-;LAEOLPbbT6Vs{sA`+eb06N(j&~zK?8kIvBxI6^oHEXS`9*P>>xG`>J%$m+Tn zXaX-HBw|ek5>U`cA{0cRh%|`|bkF|)yvOhe(z62kOd*fx1^~N3tE>%VYh6P~I|LFc zTA=|Ab$A*ZqK3VPWZ{D#450|KfQJ&A@PsJD!);6#30(AIeSh!*Zw4X*7$9O1*66_l zG+_-*RN?`vE4W<;5pp>PYL0UU`G&G^Ffe*p&^$Q80UO?sjO+ocdsQ>Y)wGDC5qc4X zDGZ|t*TN()m}3oRXu~c3V;~%ypaF=O-vb^nfeFkJ0{o*>0QYD)@d;#N#yd}p&XWud z4v`^W{Gu4exE2jK(hAJD!xgaLNJkcg1QKXOB`R^hL}-$e6gVXIB4iedU|?(etsf6f+si5mrP-pS8AO_YNJeWr&4gHRCB0Sc&uG;qG5BSVs)lucBN-{ zr)YYrYkjM3f2vi6qg#TrcZREXlf8SEzf`8xUbgpty4+{EW4iZg!1r~=_j$(o ze8~BNf`W#IhKh=cjgF3yk&%^^m6@5Do}QkInY)acx{R8>ke$7up`oUxrl_c>uCA`G zv$?Ucv9-0evbVgnxxKl$xwyN(y}iAHo57Nw!Gfd7i>JzfyWN$c!=0zVo~g)}vCx~l z*?_*{qprxNvCXNp&#$=8rMA(ay4Rw-*{QqMyS~A`zre7$(YC(Txxdha#ps92?ux_X zfz0`e(D;ne_?E}xmeKH#)cKs$@txKDo!I)a$ltrd)vMF$qS^bZ+ViU2`?t;Gvf1yy z+wHgC^|9amt>FBz;rq1W`?ccyx8?l2;PboW`@q1#!o$SE#KgtL#m2|T#>mRW$<4^f z$jZyi%*@Qh%ihb*)XC4?%+S`+(b3h_)zQ@1)!5wH+S}RN-P+vV+}+;A+Uw8M;>+Lf z+~4BBY>io~@_|EM8-r?ij;px)l^493{)9m@t z?)}v4`PAck%;pOh<=jiC@ z>Few4>+J09?d|I9^6l>N zio1&#GrFT9WSYm1Ag2j&p{u0Hle%2EV#l(jOLnd-hM7q-Oc_2KJ3iUT^9d9}B1s|{ zN)!nbCMj3Gd>PYS7*$YJy@EvxRL*HnE@{2Ai4!NFBXuEJM0OD*NRpZ)UD~o;yQWW7 zv3ey7SG7@Bvuf??sTWwGWzkB)q*f(cw{GFirAqCZHdJ}J^6k|tQBbjF(PGM^$;n!m zh!Hm>18WvFZQQzbb9EJp*S^D&C4+RCiDpfGdl~x7E_CRoXK-EH*4r(u)_sFLlg3H6srOVndaq^Bq(PIE6uVpPZ!L!U z&MxCM^5;P#&N&1Ib6FFd^fC-I;fNECC-wQJQB$Y55=&#-aI=jzR~Z6HCZ3!}-7uFq zQ3xZFc*09C!SE7cXcJnbkwzSaWMfz;p`?<8F&5+_M+yZw(nCb5MA4Bk{aBEYK^95m zHBd$=Wt1{%B#%57)o9~7@tAX2j><#>OiI_V<f4Fm8jp3{iK`JFg0Earxg+)mYCQO1u3wt1= zNVcA`12DI}s#44gFvze2mgAjUOaw5CFb_G;k`zcSD5%iF4d?(9Nwy*b9B{9sc$0+; zGx&k!e>EE74G%D@0na%GhNXltMX=BU9^fEj3D6tz*Ak(p#8QkFT(r~8h8=2x%@07l z^UN|NhP4DDw-}MeIKJ%vk_*u6Y(w0cRl0K}jU9PpPCQ+LgrhFMIMd88Cvj>fs7eyV zq(V+UH09?|X0G|>3w7QQ=${vk(cxEZ+4$opg*m3>mlIl$7gBIw##L4H-n$r4U?57J zBz0iC@l}M70T_OkY0C4^hXRTz?AZRr^fEaKUKU0XJ51*)?MW`SK zGl&5d7??m8#=tu>fIQxXc$Y@BlAdKmu1l0~Q!KKT}XKhBEYm874ph3SgiWsMuYNz+eUi z7;*uvI7JD=LO}>XKmr#Cq!(OBMJhtCdKT$|C_vE1D*zG=SGj^HGGNFkB+?9*34s|r zAOQ(fVH9Wpg9|}%$4e5b3l#)G2v8vkQG6nlVmN>XG|&oKqTw=8xWX7d0D@7NVGIl8 r6!btbJzExzbr{joG#1ymk324NldBw{Y9~5_knSL+J00qz6c7MAhD0lK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.gif deleted file mode 100644 index 9bfd1843ba58552e8965bf60f55aefc435e9df19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2027 zcmeH`>08nX0)T&_72<_DnUclf0bZ#IMrwtK2*{YFX_+=)qs_MCESi;hg^(v~p=LUY zZeBA}9_d)An-!Xc_fb0DfXAp)i2T4Q+s9dU=YQCb`~Cs%hxd8jAUc(Jl$`=t1D`|y z3X7k~#NrMeUl91IMTfx(>LTB1ql9el?DL_(ZIEL_JkFF0{g#A2vRr~ztDV1z)l@LR zLT`d^km4prqtT$T1hDSxTsm4^PDNw!{eQE;`%pJZ{4q`hM^|6fKf-4-v9bcciODH> z1_~^rsBe30F22Ly2(m0(M?7LU5wR#dMrB59E({NkjLSt7d12u4T{?wvX5(G}C=OD~ zM$lMq#>wdU3_GxtOb`vhtKt zeDcY+Sk139U8#N=#i;6sSk3aJs-6utUQ&oC>Xqr4*?GBqQB_J&3O!K{hXWaB!AiPz zd4hTB0@x4_KKxoyM5EBdmy3hQv@mrML2-vHFQiUPPJ=aPz%^MA^BnEVDD7_w`E7sg z>g+~Eh<0U4vp7D-a|LT7)%Q<>4=-xh<~GD9HH%}~_eE{-HI%(jlgqAo z9Io^ZDj+r5V!Wn5-x{3|?c`DYs?-==CH@|2H&`N~yf>y7tX(ckigdr%iLz$nT&ON_+Fdv#Vis zoZj|F@|PKwO)0@;3DH@(7A_Zt&UzYIaqV<_qdQuF<`ggaq)TU;-9U-_0(HJ)Ye`z= zz&Blp;6_u+FWN1M5$emo{57W7I{|TZqo1GHwwJ|jRt~{YJ5`OOZS|5cMH??+b;>Ej zQ>N!6&)q)l3P70aj@+g(bF|k+FTul(bp9@x*`KgE@-b~29JjpGDY@yXGdhQ(E~KTi zrB;YL_8pQaBl~Tr)zV)`2T`W+q{!W-1LIXm>A#Ojax*igNoMK;>k8iA@nxu65L%fW z9YajAf;)aKEWt_~>TBNG(QR&aa;LP^*wkARsc*_V zh2aMu@2M;f`sYv6yJ9qJE5dveVq8gNeCMxGzG}sNew;#7fmuPvzS)1paXshYwQM-~ zE0g5U)x{B39scJNKYpfFURPa%?u#N0?EXTKkAhU^#D1^P&(D0S2dTrT{Siq%#2!bgrkVfR zC#jLLR{rqNGgXg^o1H9bFc7Jf=>@jSQYSWF8t(SvV1VTL);(Tbif@e$rgU*2xLR8S z3#R>guepDn7%+z!#U)XvLP@v_6-5wnxg`sD9LfhDWxbDl3 zVmq-3_bt=ci$|^R>^cxxkpVj0nJyAukfm4e_zI-FZkaghrUotivo4``nk-Zi{-CG1zmIrf=#+ zx%gT`2$#w@bXat6Xu!_yhSY3zytu$14wujCXBH(ES5h31XF3_x!lJuZ@%65j^uZ`+ k$O$bh-h+LkF&3eXeBS7giFm_|FV~cfQ5>&9Ab{_G06EYmxc~qF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/clear-trigger.psd deleted file mode 100644 index fcd794477c9f9b6bcbb4098afc7e4fea0f2c52f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41047 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

    K%E{e zT)5CefJ#1yYciG5ugChKCjYo&Ao?56QZ@Bpuf9f)O8^F}__2D-UuPidt@#anN{HKn z5VuJoDS`o;0Ms3fx^w$>{kd~`Yz4H`*BG#sUt5#HhCr$gOV!=I3sJ)sQr;*T8hE(3 zcR2K@L~rab!yR-NaCh(AFWlp7@Fdf zO~Fo#wj_~YW*b4)=Za+h6{e>LJL{*z_zraQA*{M}fLpzE>1r5; z-@zIUbJ09Qm42?F3a&Vi+NxYN+5~bNs;f7E+$LntEmlG5Uf$U4JLCf1oZ=`VTWOiIX-;A0337GFQwLBgx-GT zT|Go&L3b6_0fs0YWEUc>Ed;8m%`h@k*FMrixVANc{&YarVHhWm4-4qupV(MJFI{(0 zucfc7U#f?Qu6_=+`~s-Bv;tCKp{2kYx_Z-P5V*FvS`Q&#D}l!Tynx|n;Lb5Jz`(?X z8<+5wuD`C+-F$axBQZeFU48-NFRhrXhiGss0&95Hn{ViJw?3+FTw|=%&#@Bl=k*(M zNUJ@b+0VeleH$0?DywU?+RJZM>PbksaXN3t(knXM^<^{kB)Z(#Qf38j<$IU3+NlgXEjh2%UR=r;Qnn(rf(An%1eOe7Y0)BV z$x4VCf@cZGGg&)SbuHAv<+m6sPzDeH6=24I%L8VtBvw%GT>^=#?=vP^N*Mg97~Fbd zaBGh7Cw*}dwH%|M9op)aFIogKas6~^$$8LoaVfD=)|%7`>TN9bHkNvO#R>?Uw~*?K zGN4n$_U#)BJvF^AF;ld14Y4TBkg1O~WOCzTu~q|KVUVg98dBj(!t*Uz(xLt4>(dSSa5V+( zfvEu6PG)Q@+=RIKu{Z_~s&W9ADio%|;Gb;}Hu|G}h8VrSAqK9nN}yGtbR+?x{PgsE z5E5hkh8AK}Chiwt$yS$XGDW3g6d0m(sl*cQVln>y(4pb^h!|@rl}_bjDX>K8@=d0! z<@B-CKaRrab82iXF{Kw$qmIBBaB{RB3e+@eP`Vgwr3H67Rdfuv&lKxPNm}s7(6M8V z!YF$3AF(kp*lYSwTA1@2jAkcB3H7jw!Su*O9UG#D1q}L@{Hb)B^Yt8;<#7?v+|)alqVd0R;R1Y6E+g{w0{N+a#8AFp9{1o+jipfkXLWwk(!Okj7 z(wpp9iICdmogB?tp@zepgE~Hvu>tw_#!pf-7%`BtnA$_LL?R{n9VAW{VgoJt4Z^0T zYO6~nMKJ_YgK;|?j2raez(81eqVGkXkEq{M7%QzwB~m$93i=qO%P|mRRzl$@7kWWj zcsRTv;O2yrP8p1b11=#rI010Of`ef>iNTu+$C}`A$5scAJ+QXK(3)rxngF7?NlBoU zJ3c81mYuXN8evG&ha1wk5v)mpAweH(NZ<-g_ADQ;Oa`r_l7J~!pJd48CYwyPl)|fB xnpTs*<5%-j5!T64$pVz8Qrlhu^L*=7{u)=?Yg$@c=#6o$E%U~>SB%g9{V%0(*9ZUr diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.gif deleted file mode 100644 index 048506d71399300e424a84639ade8447daf723ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1620 zcmV-a2CMl;Nk%w1VR!%-0OooC^s8mxj6CtDVasqC@~?0tDmvVMC+n|v zb$EhXU~KWOZ}6sH@|#NWkv3ReY2be%;*?4#EI>+Apj{{R30000000000000000A^8LW004RbEC2ui z0C)fx000O7fOvv~goT58dIyS&jE#y|h;@>al$DYDn0lM5 zf{Bi=jF6|Zb(pNHdZN0aq_n4)cEQ5K#CAM`A<4?i%*kyBSPatB)Ya0L#o5Bgf*{`C z;NjkH2v^qU)R%PY?CtJ!UqXU%^!4`l^*TCt{Qds_{p#R&N041SL2(i)T*y%2jvW9a z{u5ZRU%Hfz2;7XS3T#__t5@pSa z1HITFK(we)qBeS%nAhb8g{M%XKK;=}js^`sCtjc<^r%+?Ntfb@!zIXsvuM+v4ZuTIt20{;Xt~yX(V|%q?kt`PZkugW6RExhr-}HEGp+^@j3Kp)4)-yMmQmlniI&A zD_4_e0%qL0@$#MvI{Mw=Fk4%%eY-&(C>z3y9}gu@gWlUyuO3@`yYshqyn`Q4zx;XX zp@)1eIwZ9n)_IsAl~iVM*Fp>NrFY*9)#EI~$$Gafj=0(lg%z>q{1SwtQS3{c1a z3?Yta;)yA)*y4l^tdPeF4rG~S8APl=L>X3M$>EPd7HQ@JM<%&slO#R~!(A!*_acuq z(zwK3ILi2dB4j2xz@Gy=A;khxJOQMdb+Gwl25;IGr;B)0d8L+F5^-0TlX}u8pnnQV zsG&$ISqB^tAcEKwr9@So}ZMIb0Ma8#OaM*AEx#I?$ zz`!#U>?|Bnz#Bsp@!~P>to3e@FA!Vk%P+DR7i-tCz$)AEx*vxO!N?^yjP1i|OiV=@ z6k7~)xiaTLbFu{E{IRpHu6J_1RG)mrRTr1*!?7gzFz^K)Kb>mSg82OK**;hCR@TFA zoj})LD_}q#Mi^lC-FO?Jo*)8PkjEGn1TOgCW8`504Oh(pKpp_h;rQc_FAl&6bIDCN z-k2MpH+BJFkOvqTgf9B%VB~>84R0yVIOMFWK6&Lir02wX0!)$K6o_k}dJ+Ki?)&da zFi!ae3dFwM?1BW)M0!o2Ucv6aM-M>ouM@vU4w+}3Ll4{tpv4q}hcEcC6k6myhYRVs zFuVfSXOH>z+yo#-6QkEJdJ|$ee}4MwE8zeC01RLW#3FzK8t{M!ETH+A-~#DM&jn2A zUjQfgzX2vM02s`m1~(W0{V~vi(SzXdw4n_P;vs=3JRl7Ypu5(&@Npv~VKGd|!5V5% ze=mGt3}rYB6Q=NoD{Ns7Tem|V27`t+v>^_M$hsmL(S&u1q7-QqL{3@pihpt<4^2p^ SE_yLb&cmV@vpAPP0029eiv#ii diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/date-trigger.psd deleted file mode 100644 index d9f9be1d3ad288436855762101f72a2bc85cb23a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 46095 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 J0;}VH{{s{CUTXjV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/error-tip-corners.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/error-tip-corners.gif deleted file mode 100644 index 6ea4c3838768c0ec3b5dab8e789333593295c15c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4183 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 BA5{PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/exclamation.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/exclamation.gif deleted file mode 100644 index daa88b8b0544866d49f77eee405d0d888c95f6c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 614 zcmZ?wbhEHb6krfwcvj5t|Ns9_8A0ER!arvPe@qMfT^{jg9?8PpXN;X)Z6?n!T)P+$SzmCuS=%AP7M9CdCuE- zzh9M+FC)C)MEm}(j{32<=iAa*?~?9Q8sU07Bk*He<-4@dFLmjk zYEnP;HvO!Q{W!JdWkdes^339x_!FVF*His=#`>&wH_r`=`n_THx5;%s*UbC3pyli2 z+NY(lKUU0n5$3fo*84_`=budrKF*%-rlylX? z`zjA4_5U08kT%C#HknJ!+w%Bx|aw_A+kH3y55sFtfr zqF=&sMxmdXqSA6<(Rq0`JB@r<^!NjyLc45 k=R6d0KBa0H)!`Fi$#S;SXgW)1WYNN9GnLgOSeY2C0c}MSivR!s diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/radio.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/radio.gif deleted file mode 100644 index 36bb91d0c5ba6b94f2fae4142e1b0daf16b11514..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1746 zcmd_p|3A|S0LSr}kuB5gMk+Ge+(wTck$ULrJXSQ@=Onf%)M^+amGe*+*J;@>(=rm< znzH#Wl@*DQugyk|h0s(J9u~z4MZR499ryhC^~?K*w-=e{wl~-nv>Egj1cL7gguBx% zT)Zq@NE=-Nt6g4JyGT~9fVo?Mjr%bh_W%^(#8yHO+#|w*$V3wYFrM_Cf1JV+84je7 z9ROpGU-)jyX(BU$6nbeLjSW4@*$~LtaEfn9=b%FPo5J`zLU_AExy0xc;4Ihg&$RuV zvJGs78Rz*%p2AAl3(x<8lzp}-|FX4l%|7EfIvgRBjB8tSQLP1VZWEF#ywdLj z>2hyD&Cz7(vFsX(us-NkLs+sfDkV2EMfeY2cqXqlT3nl0R8N;Z551!ZFX)PvHbvg; zPAF=Ql@G){8oW?FobYU%-aQi8(syOzQ{37bFFif|+O^~xchYiY*TsbylHyFUEVrOS zC@mHh+?B~>#g(;XRrU9uJgcg0tgWkKmA77d(0=`qGNYy=^WpQ%CrV+BN>bPLw6R6f z(sR2_!|q(n>iQ^DjS2e4MK5Qv`<8AFEsF-0Btwh&iZ>0-?TxLUQpLzh z&8rU$BjfVd`o|+*kbdR$!ncucOIodVe0*G|(@jlJ&&BTL3F4!sWQKrZSsrbm`jlswPRiNw~ox#)EssIi3K_U?mR$7V-IC9eE}g* z5#SHoR>a6~NhI<=Q;WTt%?}Qu9NUN;+@wtJJS0y=!z59V(h!KT_cmHu5NujLLCxE9 z_QU0%P-;FGb5tI6*gk|&C@tm`|9+v*B6nv=lO}$S+iOD$Mn~aW%lOvrmnW;VvcjwTy1x_M|Vx7g?UOR%A{vxR1=O9xx`_0#)mAz z#O%%n@__a?l=898*N7xDAiI1b<_~Z{nslUk?g_Dey!Eax#h5@k{{; z%`faJ5{8R)QaC;cQD8x5`VzNXi1Wqp3x`c^8P{6P{gaVWuFtYe7c(1?zIg}q~%W>VJ1sc%Av?5s&yuiMsG8Vvph~HOnJjUP7z}R9x z!{}s!KCBJ0F`$WM&Ver~;K&ocSHW(s6Mh)nO&1ErxjYUP9z|fJI2_q7U~QAux`?+R z3gs}A84lrf=7C(=X6VrsYzT(A2H$czA`b%`i`+&{!uU_X)(G<^EyNUO6=M{u;y53QM-q4Y5!fjNf2B$c3=RvJnhbNor$)h(^K&^hwf=q`1g%>cIxsnNp85qN`tNhU3jbmaN?09D@dd_WcK8kleih diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/search-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/search-trigger.gif deleted file mode 100644 index ab8b3b497d35c7989279ca2b6c501dfe0230de63..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1534 zcmd6khgZ@G0DylgIB}%csWb#qafN2&_8gg-na|eQIeJ!Rnz_1H^2F4@EqRIsB!)N= zJ@w3$qZ}xe<~YyHQ6geR0b*!?xbONe?)wA2_r3S|ob+~Zyo>=10A2tf5G;Mb8f|?S z@CCxzRHPZ|7k0i242c#O+OAN&xp;G93#ZLh{*F|%BN1{4F2f0i!o0(xhn`!j{JAtF zsf4~Q5o}ABR*LLaseX^BmEV|TF{@;mNm@ulz>&w`NVIIUS~gfpE}_roxvY=Z%7^Li zQ<0pzu%URv6^fU*z@{S-iZDAif6r_*5y~aFZc9aLV~lNyP&PzcA$!7+c9j3L1eBQd zsO={5MY4;0xC~}uyFOm?0cXW2@K{JUStcD{%C}xA^@W=q6BnTe;|$@Z=(!a5?^uF~ zrSrl)q);dX{+GblK?(p609gH~`|$)&*-iJu;WIMv0Rf=Ae8T-aryL(*@q>p%tDLNo z%p7G}8NHn5TtuoarUX#yaJdDIghED(52d~?prWh1s+B?UW%duSd=KLdhTaU147q`v z)F<9fzMCMwob7*&Go0rvaOd5Xou|G`l1~YjM9ZgK?Qq@_sccP(LiulP@9b_DyukPr zhPiln=~{#i2Eri*z@Z(zi%-K9;^emTZ;?%h^z!y{!n|gle(KLYXo7>x{*~@x0=)|5 zQgj#mNWxGeI$HPIXs!|`8gPG5lT~WO;~wSGqtEHd%mU?(dlZ@FClvOForTpBi6+pT zy&+e)c$M?p2bu(NQN``?yKT3mU6TrP?OODSVrUUQy*JIV=GuobQCMeKk_80YeiGlT z_O}eYACnLQB<8;QtnL}@T8*JDHoRUdAaRI-0^Zs%wY4MbW6Qn;)UZ4;qIIVxq>;vE zC)^p(fUWq)cjA*}{KpO}jY+qej3>{6)t6&ULqk_Hv#FkojwBs5V@cA1^lmlz8Fh^a z3Oo{+qjNR)o7R97jfqiYC6@<-1G&b_`mB8G4J1IY?ZJSups2p`Y(tzXHAf9(ScTD) z!>Y8sl-1z7gd>-HDvLelD3t|?(FUB9L!_MayC%1C(-Hp4XD(~m@B+*4`}jMSK2*J8 z{;9A-Z8luVBUzV6xkfYmyhlYcdmXHVKH?5m0W6}x2yc2#1>)j(1{mQr{piZ3<(8!>J4KaOBl4br>YJhc;M1WxI8fs℞CI#GmF2+Ny;`St@j6 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 KU~q_q!5RQ?RtjDK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger-tpl.gif deleted file mode 100644 index 2574eadcccc089007cc24b56af026313577b0ded..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 908 zcmV;719SXGNk%w1VR!%-0M#-8>xwPxi!UT9I`EJ(@ta2BgDEI3KHPsN-;6xVa2fKO zO7W34xMmt5Cp01`HQ#+8;C~|8ekb0FJjrhv-hn91aT>gOJhf~mAtyEAj6Ly~L?I_O z@s~pHj4mK0GVqQt-;P1sf-LQoLhhDBAtp54i#*wWC*Xi3ASW~-C^g)CA=`T&@tjET zku=C|8FPD#B`Z7NfhYg}{{R300000000000000000000000000000000000000000 z00000A^8LW001%oEC2ui0C)fx000L6z?X1HEDmKdlXA&yDlbTvbV{vC8AzkHh%9-( z;IP*cwVJ0`*>){VI^Rs_dG5lp*D|p_Os1c)B!Pm1gd`3_3yF%0jENy87X^}&l$DZK zg_(kfLJFRrprM{1B^H*alvgmTtgWsv9vea}w6(UkwG6$+VL&i>A>sktM26H=IHg) z!|<^(fMJ%rYzGefo0dS}z=ALM@k4-Mp)VH=9l{`J@Zhb47K3GU$T6bCauh@I!l-d$ zgN`0+fmF#-qk)$uPclnMbELrkn=oUxm>IGrNt`;H@hs{Sp8*mw*%S1wqyc*mk8z_+j8zkR#b9ZdIbUc6}C zDsHQUu;UX_4kL#80C>b;C|SX}wd>ccA8-y$yE9r5 zxO3~?jhllP*uY)Oc2T?bXw=9{cbFQyx$FtWY2W5eJvWE0&4WLW9{PB4KssXpKutZVBmoWCYVBh0W|2~gAg|O zK|(52XyJtzRtQ0X3U+9zV1FZoDB_4DhNuBW8K!vQh6#A+A%hXd=-`A0sAwaLE_MiF zi9CvUA_6w5h+~ckj`Mj)oQ2hK#};nD0f!uZSYgMXM&z-_qJ0!v i#i58E5vZU|Kp}&pRHP9p5nU{*2N{=QdIb_e002AxiJ9O4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.gif deleted file mode 100644 index bd255727c7b9e974677334090fcca280dd61252a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1451 zcmb`^{Xf$Q0KoCD=jT&I+1<$)o5@4-kQmPM(~+DIwie6NmE)+EXPd_vAv1+B^CC}$ zA}>@Pi^xd|dD>8R&Biv*(eBm%aGyWm{maMM)ye$)RUB{%_<{vApeBq|?YV^0v&m4H zf%QTzl1b3zknPw+{mlXdugqyQT5XAhoKJ!B3eEUsZn}m@W`Ui(tIvEYjFF!B7)!x#wmrW|4?oEpp)AcOCglZT+t4r)20-k_H5Bv5*Ge z%s1kdItc19{0dhd8Og5=>TL{YF%6~(Gu21fZIBG$Mpo`#C@|FQGuidL zjoarEcOJ!#S?I7@Xt$DwbaKD!{Cj|3tfEmJ3rlM6m14^p@j3aANd`?qL_MC~CK-$PsJr-&*`D2JJr)&4AX zZM^(!erk^)C?twms>E3W=PsnHmqe`tz>#S=C|67Am+~Vy&S&LHHB3!u<9i=uwS& z?8>V>J&-i+Y=CXzR~?UWzba?ExQ*O!?Dd&~fsTxJ%_ikV+~*3)Vti;lV=?@qLkv|` zCTX)TX`eHFI#!qj!OQ4Kw=!@YGBm1&48&+COQXTeF=t!iSgPV_Zp*+O>&}^>%wMae zmsK=1AEt`BvT$f68#k6FX=TKPF3dBZ1kwu{L~IALuN33NmAuetgU7Yu%gc&hh+RS+ zDw>5Y@%G-=Qg*^dh%4K~^RJaQ%zS>8;X=n+TKAk`Ewgib@;V zieGjzN&~bR_0US)0~r`uDh`B~N{T;bSBJz+vgn1L0TCzfpbu!ZcVsPKq8TrUtR~Z` z>4)@!P)9nxt=i)qS{@({M&niA!vFe9t?6rDZU<;Zy6dEJBZ#iMXxz zsLO4x@y1Kh1WwBk;`NQH5qLsx9T&x1fAa3Zx5%!Kvbi@}TROhZKVzU{hB`ZS+S&DM z=)TA8a+tE_z70v)`@)`4P~yfDAN{dEpDX%x0Vg4pu?z(Z7KShqWKJ0xH45XUD|;f3 z3r1lOl~?1)$_YZBRe7&q`~+qQF#>BGYm4g^6c+MWsgCsBYd W-d@>dWC@R?7iK9bN7HElVEG>=7N!~i diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/form/trigger.psd deleted file mode 100644 index c078133e4c958b925f21904b67596c9e6d15988b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 44793 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 PTxYL2V%$sgqksP&Mbs^J diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-left-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-left-white.gif deleted file mode 100644 index 63088f56e1c33fd23437ab00ef3e10570c4a57fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVC0bDXlQU?ViVMIiI|XhxRH&WjfKG)0LI-8@c;k- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-right-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/arrow-right-white.gif deleted file mode 100644 index e9e06789044eacb8a695cd1df46449bcb2b9aa07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVB}zNNKj~OV&PY_IbpESp@o^1jfKG)0Ls}94FCWD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-bottom.gif deleted file mode 100644 index cc1e473ecc1a48f6d33d935f226588c495da4e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb( zLO{cVgpLOZ6Fwx&_)sw8LBWC#1q=Q+toSft!~X>b{xgh%(GVD#A)xq^g_(hYn?VQU zd{CZX;BaIR=ZFzVT;Rwl#vu{Yu%W4$ky$xng~3BdrVc>?i4_ctPK=BUEM^-R4mL70 a^J-WG2rw*VW@C5a%Q0YR@NEQ2S_1&+BRBT| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/col-move-top.gif deleted file mode 100644 index 58ff32cc8fa2aa1be310b03bb2af77c1b77abe93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 zcmZ?wbhEHbG68wVGIhem=U(^LUb4h;c?We$u2%uEc{03e(}^8f$< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/columns.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/columns.gif deleted file mode 100644 index 2d3a82393e31768c22869778698613b2f5f2174a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 962 zcmZ?wbhEHb6krfwXlGyuEL<5_v@*CDh*pJ^t_~?(6IQl1ymDPc)rN@bjZrn5V(PZU z)NOSrd+hMvA+B+IeDltP)?JCMyOZ1ZrgZEJYkQj3eITRnaL%L?Ia5yNO*xf6?R5V1 zGX)b57R)?XH0ylvoQuVCFO|-_Qnuh~<)Ryvi*HsfxmC5~cGa>w)ywZpoH%jn)T#64 z&D*eH!>(Ps_U+r(Fz^e+YaA8aNxk9Lx+wXJ9gs4iBqReojG&n z?%lgL9)0`&|3AYh7!3i+LO}5+3nK#qAA=6a7*L*I;F!-K%OT^jVZp&>mh3YgjfYq| z1(lp?K5S5QW|J^Yxp3pe#^mFCnoeCZo|g`B%4>LkiP*V`#cPUi%)1K8vI{DjqJ-IZKJJ0|B|1&T!DE?$&WME)o&;hc6vRpv6XiL6g#jZDT V!XZr_>1WHYzYC1;2x4Wh1^|gq6TAQb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/done.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/done.gif deleted file mode 100644 index a937cb22c84a2ac6ecfc12ae9681ab72ed83ca78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 133 zcmZ?wbhEHb6krfwXl7towPL}p0*huu%~roJzC1V7qiQ)z(xVq;t8Q*e g@TwP&*%vbDj%DY0^FxMh_Sd^OqF)Bg*^}7&&A#5)LvkG7IyS zOnBJr%r7CL!Q$}XP&==XoWqO@51m;T- zPZpr7|1;=-+z!eU3>@+d`VlJv8V|8>3M$wXTxdAR#L6ikV-V2L(7?dJ#=^p24FK}3 BP__U7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-hd.gif deleted file mode 100644 index 862094e6803f522712e4d193c7becd8e9b857dd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJa`*r7`~Ocp_<#1%{|it4Uw-=k+VlT6U;e-I>i_*W{~x~l z|K$Du=O6#S`uzXxm;WEW{r~*q|F@t2fByde=kI?YU>F6XAuyCfK=CIF(E0xvbU>Z} m<=_zzU~q6?um%8<;zWG_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-blue-split.gif deleted file mode 100644 index 1b0bae3a87e55ac32df29cddf3efd18150ac2faa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 47 vcmZ?wbhEHbWMbfFXkcK7jm?vm)>Qn-!TM_wPS^_`om@~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-loading.gif deleted file mode 100644 index d112c54013e1e4c2f606e848352f08958134c46f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 701 zcmZ?wbhEHb6krfw_{6~Q|NsBg$>(oA`P8%SHjuGk&%@0ppYOTwO7TCppKD04vtxj( zk)8oFBLf42;y+oZ(#)I^h4Rdj3>8V47nBGRLn+Q9-(eXZMC@T`q-A zfguTok_rhvuF+B}YGk&S-hZ1Y!QP;7UE)!jv*adK6)hob2AOf}GE&w)<#=MknJHoV zY^}*Md|xE}K6*MO&RAU_^MUKk=Djk=g^pDJi6uprK3M%`#IdVL zUEAw4e{ zmg0{~p6|Ie&p`6H%mYO|r)_gjg|As;$iv1hQk=MZgX#CFjEx2xI6HUG&(-w8Y7Wpj zcm93g6udbnGzoX) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-vista-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid-vista-hd.gif deleted file mode 100644 index d0972638e8305d32d4a2419b3dd317f3c8fd3fe2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJe){5xGZ#;uy>#l_<(QpFT5;g3%Bd$|0cmlLhGf{|q`H nPk{0S1BVoYrq2Wc#zV~Pyb=r?3JDC2Ol*7#9t#p29T=ao?S~Ja zzDjEpDC}=y`^)Q5QK0DD%CG3=GGoFb$8Hu`yCXOHlMi<=*t`?gEL`l?rsAwHZ_SQR kNvC@hf=|`locQc`rxuSq1``gnsUUEc9+{+ZK!Q+j=Yx-zEu zBzAZwwE1RC_D$+ype0cJ$pSWB2SkGW#K5L`fMEf{3t}5rVDB1k z>l|w15a{S0V`=N_;1=QF7HMhg!$2HR{K*1Vr~@KFb~3OkE>Pe)oFLK1?0Wi;0n0^` Yt|A%FPacl)3=R$p8yr~r8w41v0Xvx=cmMzZ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-bg.gif deleted file mode 100644 index 8ec57f578d5744dd50b064cec2b527672b95cd0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmZ?wbhEHblwe?DIKseS<``ybA7X6dXX+SgV&h}x5M*K(U~J=UZ0l$05NhHOVr=bg zY9DN37i?-DXkr&+Z0m1g>tkZ;YXW50`7;m#ia%MvN_0RZ$W8`Uc?AU~W=oYuA(qx; b2M#3;mcky3on}5CC8nJ85wg^AVz34Pwig_- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-sel-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/grid3-special-col-sel-bg.gif deleted file mode 100644 index 93a9ca6ab68d47ce20867d3c153ccee3edf9658c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmZ?wbhEHblwe?DIKse??Jk+&E|ujX5$7bG;wlqoFCFbD8)Yk#cyE*a$@lk6fL?;yoM2q^w!0V~k~ksv!6SmhNIn3yy*4hpdx cX>o8h`0o(b_B3_s=d77u3+H|!r zfbs+bM-c-fhm6OD1qYj1`88rr6eKbU2cZFVdORzJ@!m~?8+%1KMTTg@3K$aq~=^PX>8{)(q7 acp2+dVHKAK1EYrP>l5}X$w&(@SOWm68Djnb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-collapse.gif deleted file mode 100644 index 9bd255e72f6947e0cac51d1078dda0ac17bc65d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 77 zcmZ?wbhEHbE+tf{`kP2(NR&Mk>%Z=yy&iDQg3<`(DqVb4KDwj-P l&GwP0qS9DM>OqyJSZ>#v{nDO+rumFctJmzd`)w=$06Sy=JS6}C diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/group-expand.gif deleted file mode 100644 index fd22e6bcbdd55f0a58964b35a690cc4f2bee31b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 82 zcmZ?wbhEHbfX-WQwGwc-rc04Yx$W&i*H diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hd-pop.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hd-pop.gif deleted file mode 100644 index eb8ba79679eabb7811c3d9d1c86c43bcf67552cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb_??HKjfkTCXkweD9 mfT4kbgI~?WW5NQ*7JhN9o*xBDE*)ahRw)@D7aeL~um%9t9ucMh diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-asc.gif deleted file mode 100644 index 8917e0eee0cdf7758e83c4cffa7a7239f72b8427..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 931 zcmeH`u}i~197Zo~Emb-ML>(No#i13!1{`|2)F4_jl^X=3LnUJzge<}>RZc~zP~kV; zB68w#pu>SnK&adpIt5*dn`7OIQ?33Dj(x+oeanNlwY^!!2PQI6AN?^vMGITlu?Sc$ zU>9uS*}igoaC}8PN`jCCnovooc75v7&|^Bl#h|GI2x(JLP!wWjlNOK|~-m_dM?T+-E!pI0dd^5l}(d@Glq_swQ5Q<6ypk{;!;VaqFyLusAH|W zI_^hNH}3WaBSr@P!$9skWgujrrQZ^Mn?RWcN@fn{AM5KVovc^P{B4D$=SroI5_&zI zNSF`DRwb35%9fAbth<-%@nxq_$~TO}IN9OvPh(dz1*g;6JvytHv(;6&xjkRcOr!mB r{VRFNa;Pe5osHT>5@ibIb~{3g+0C%lYO~3O6<&R=-|w9m23q?84YkzM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-desc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-desc.gif deleted file mode 100644 index f26b7c2fc5836850958f7f2b1fafd3988a988d7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 930 zcmeH`u}cC`9LIl>nH9kiSwcv;h)RPe4nCSX#PT4JtLbR)IJcwe#y6z#3aSf)9!+l$ z;%yxW@kSwnZWM)ZydeVHiWX}!?QdxG!)N_2ANcN;ig{#6Ai)s+7(q%#GE!y5mQ{jO zj5MrhrlNCIcT|&WCe|#b*{*J3-4-SmmeaOT%60^HIHrQgae`8gf*j^igs3uBp{hnT zopO)5V>`?=nQ1YLFxzIBGSTNY=9rB4oG{nnt~U^b3F->w3Rehk(B^L2>$m$u&+|JS zzvF-O{o!cJw7~xri2now00G#VJYn()2%o@AE8lw!UPJ@SiC{BRyCfUg+)-YByjskr zv+Ug{Ji~hAw(%`jAsUlHdvfpXd_GaEWO`qB`!@?~^gbD{hpr>BT&DZEGYhLy?xoZ; n!ca~nNw;=d4=v4s)H*Z{&Ndrqrwj#{39jU-m51Y}8o>51Tocwt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.gif deleted file mode 100644 index 1596126108fd99fc56226b412c6749c55ad5402b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHb6krfwXlG#X4~ou+bjZoeOV2FG$|=q-C@C(jDlf0eD{N@b6W`Inv#*zP ze=o<1{(yu1+=nJ`ADhB`dOG8|nG9#s|^2dGCVn`{Pc*@>k~$=Pg%ddVgCO)!~fR||KBnE z|HJVAKg0iLR{x*dJ-;0I|GC%y_pblnMF0Qq{Qtk(|NlOXjV)~*Jzd>>6DCZaK7IO( z88c?ioVjUP%kt&RSFKvLYv;-0XzkU1m_xG3of4~3u@#FvBAOHXT`19w_f1o=? z!B7qX#h)z93=CNeIv`Jg@&p6N42G*5G9DWiIGRQ-bEs^3`rv@RCy$K9p(kC=rd|^` zST-*?>B_{iQlwx7E2E<(Ghbe(62oy`Y27&t0f`^nn;9J1SUxr?H8M5pwCs2h(8SWt zC8Qv+=HXHgep#c0o(mriDDdjJR6ObU=;Xr2&gPqN_0-kZOwH=MQtsX=WoB-cUnB8y dW3n5EfMAf!nn#R>TRBB^*6i?z@O5CY1_0nG4B-F( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-lock.png deleted file mode 100644 index 8b81e7ff284100752e155dff383c18bd00107eee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 648 zcmV;30(bq1P)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*hb477vONgHQkf010qNS#tmY3h)2`3h)6!tTdPa000DMK}|sb0I`n?{9y$E00H1h zL_t(|+NDy@YZE~f{$`WrhuKPySQAA=4|-5UL@Ysj^nd8hiS;2Kdj#HUllo z8f~>&*KFH9Nwz?Ckui3oR;%3`NI(gPUDtho|G}f2_3e8bT8ASerBbE5)1bTYdcFQ| zZM?C8k+I47`6u~>51*b--wCz*ER>uRr zeV-UkHLH%}72i$a+1i|RAKlWyIlu9^60fuoN4rrzunmYfG3Rj9y^HEzZv5(CEO81y zUYkzkSk-KQ`3%0SF=Q~vI7Aru=z0O7P{Z@#ja`PhX$8v2D-^Gzc;YIGcnR19E(0MI z;kZD@0aiO(XrN-PsAlqHZzKK#l1tJ_)zheV5(%VKYS5UK?$7C;0+>qp-G76P-YrWc z5ZrIlD9FnLDKc3)8S0<dA!cTgY+CR4-a*;u;!NrNF3LWTlP5a1_; iES|Z7@j-3=)A|j?vD&^)Yn&Va00007>1uYXA>3Qh}beSb(Ur!W`$ZoRvwlh8h#GSA{v3P9MZmob1&N}#H|)3 ziyhJ(U{)KHf*@)Iy5?}L)|RKuO{O%cx#h;IvM2X1`q0Jo18y$3o31q0)ZQR~04YGX zfXCOw7l;j1uOz`;`%xPF|1H(H=TQ-Al80O7c-*kEIp@ZM``Ch}Whn7a@ zEo{qiRYg+i%R z4h#&aR4TPvt$O^~PNy46p*I)|Mx)VWGFdDZtJOL&G4XSL3{j3aZnxWK zXJ;3eLR8p^IE^@iXhU=a0)b#Kw7t0&jYea!SUet2Boc@bilUOqB;u|J|M|xX6jAAP z03n=6?Mi(Dm?nrZ^SKu7#oi7Bm%1nSA1H5qaf|0_D`c0ZeXQSbMRJ}Wp^ujFWEojX z(Y1{1lBcW8em3h3o6B)FgQ$TZv?6jQ8yMxx;o>^&qx~ghy5ef_6fHB&ac3`cuq8MD zSbdMbr>J*|b@#!#g0h@qxe*x=qGVcHY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-unlock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/hmenu-unlock.png deleted file mode 100644 index 9dd5df34b70b94b708e862053ef4a634246acc8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmV;q0!ICbP)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*g|-5GqRX(wr!towOa3bz1}%hRS$Ze*UVXl27U>F*+kf-M;&k-s!`fDVCrZezlf>dy^3`BTW$z=L>EIW zO>?T0B!*En2q>u<@}12dniz6|2?Qm9qx{jpBiX~P{FQ(#@rTzxF``)#1i>x@j&6Pg z`g9}R!YZ+#Bpq}r3e{~P5}$S=h*)1OVUmx@SN9wqKg;4@^1P3fXJWAV73+q9*IOoT f&)vjR{Ezq!d`RXXnklE900000NkvXXu0mjfw|6I- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/invalid_line.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/invalid_line.gif deleted file mode 100644 index 025cffc7f881385adfabdca9d0e81375bada8038..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 46 ycmZ?wbhEHbWMN=oXkcXc&%p5i|9{1wEQ|~cj0`#qKmd|qU}EjzPpAxJum%AAR|$y# diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/mso-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/mso-hd.gif deleted file mode 100644 index 669f3cf089a61580a9d1c7632a5b1309f8d0439a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHbWMYtKXlGzpd-4Cei~rYO`oH1Q|BaXbZ@T<{^OgTwuKwS8_5ZeO|94#b zzw`S4UDyBbzVUz0&HsCE{@-`&|NdM558VEL!C+hQ;zA>HJFm1! z#)%1x%x&D_IuR=Z8kt%-g@N({4h;>A%p3w50S6iynb`#tJSI3aHnDO`7-U>H(Adn* Pui(%j;MmmCz+epk$!Kdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/nowait.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/nowait.gif deleted file mode 100644 index 4c5862cd554d78f20683709d0b450b67f81bd24d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 884 zcmZ?wbhEHb6k-r!XlGz>`0sG^=;33>fanOrC>RZa5f%c9KUtVTUe*B-pgh6A5y-&E zA>*-O!NDdb7MYkC1`iK4@=0rzWCSQRbnt4Ywd@dF=+rMIANR*%(jvDmG5%#TnwOp& kU}SchrxH17*#QO%<_$5P0_ncfbgjEYUKG8!(7<2~0Pia+WB>pF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first-disabled.gif deleted file mode 100644 index e4df7a7e66c841cf35c42fc22c5a552304390662..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 340 zcmZ?wbhEHb6krfwxT?wE;NUQC-n_Q9ww|7z2@@uqIddjAH+RK~6;r29UAS=J%$YN* zs;U+(TGZ9m)zHu|XU?2``}P$S6l~bAp{%TI)~s0z7A#n|Ze43@>+033H*em&c=6)q z=H|nP5BK)=u3x{tzrTOYnl;m>Pd|VD{OQxDmn~a1apJ^1d-j|CDS?$+Qur8@6a;LWT&^TL1&T89sjr(J=ui^O zzi9}%(m9M$TQt-+jd6=YXHjHa@qg@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-first.gif deleted file mode 100644 index aa0a822a9d049c39bdf975a8251fe153a5bdb770..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 96 zcmZ?wbhEHb6krfwn8?KN|Nnn!X-y!>z`&sRlZBCifr&u}$Og&^0NI99`YR94+1J3M w!621>>{!;r*r_UQNo6zB-B)SfSS7P&W^u>E$L{yvzIa@k*E{o32T-du0L_;q0ssI2 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-last-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-last-disabled.gif deleted file mode 100644 index 67fee759aca71c329ac7b8331f2184383848f192..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 340 zcmZ?wbhEHb6krfwxT?nB;NTD&8(Udf+0f81fByXC%a?a`buC@GbmGK`d-m*UY-~Jw z^k{2q>*B?Wo12?+a&o3ko3?f9*6Guy&zw24wzl@jkt3^Cty;Z$_2kKu>+96%`fr^z`)g^|iFL%$YN1%9JUmPMu0jO#J`z`&sRlZBCifr&u}$Og&^0NI99`YQ!b_A_O0 wM`S%&V}46FBjH=FlGwD%FIVb(H!QrpH)Z-G^R(p|=L^n=Ol0r!0BW@c0I$~}lK=n! diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next-disabled.gif deleted file mode 100644 index e3e8e8736fda9a384002963d3f10d182374e924d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 195 zcmZ?wbhEHb6krfwI3mX2;NZ~S-kzSGzH{f!zP`RmlP2B1eS5`<72CIOU$}7L>C>k- zZrr$h`SOz|Pj+{APnj~MqM~Bes#P;*&g}2+zj*QD)~#Fr|NqZ`8z}x{VPs$sW6%L9 z0olpG>aakyFC~(xVPzDw&gEauWR7cMM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-next.gif deleted file mode 100644 index 69899c003278608303cb1f1928018dcf4fe99480..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 82 zcmZ?wbhEHb6krfwn8?KN|Nnn!X-y!>z`&sRlZBCifr&u}$Og&^0NKh@`ezEh5^|{4 i@Tz)qv}*r5&4dWXWtNt)tLEi+Z+mZ^{H<1m!5RST;2P!t diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev-disabled.gif deleted file mode 100644 index 0f94bf7be80e539ea17feacdbff72b60a3aade2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 197 zcmZ?wbhEHb6krfwI3ms9;NUQM^5naB@18z=dc}$rJ9q9}xpL)_B}>}c+Gft2Szlk@ z-QC^X++0*tR8djU+uPgM*Eet8yh)QLrKhJaUc7k6jvWgZE}TDq{_Wehb8>Q8TU-DC z|IdH~6o0ZXGB8Lp=zzpPb~3O!Jy7dQ$(+PcFzdj=b;=Gd`aBX&LG#xJuYSR+Q@WW)l82^xzGeHk7dI405EX5Mz9CwX$Q4{!EtCkAT(4dhVQ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/page-prev.gif deleted file mode 100644 index 289b12612312a511d1c490b2803686dfb9514c7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 82 zcmZ?wbhEHb6krfwn8?KN|Nnn!X-y!>z`&sRlZBCifr&u}$Og&^0NKh@`d3P9lxnC} i_sV*+v}*l3)dUTuWtO(FtLEi+Z__tVHVb25um%9z+8E&g diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/pick-button.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/pick-button.gif deleted file mode 100644 index 6957924a8bf01f24f6930aa0213d794a3f56924d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1036 zcmZ?wbhEHbA}e@6f*BUeEG-{mbu9UVeYtn)@A#A9pQ#+`IB&@5(0= zRzH}y`r(9CPbRH>G-dUZ>1!TLU-xM0+NU$tJ)FJ%!HkVh=4^U8ck{CaTb?f6`F!=h zms^g%-go-h&Rf5C-u=Dz!SB6~|L%M6=kVF*ht9t`fBVhRyMGQn`g7pPpQDfe9DDTl z(5wGPUi>@u`u~ZCzfU~=ed^KQvyc9qee&n@+yCcY{k`z?&xIF%F1`GB>D9kWZ~k3* z`RB^(KUZJ||Ns8~&oBx`LjW}d6o0ZXGcYhR=zxSld4hrCB?B{ujK>Cr zPF^XagaZi+ome=9Dmm#SD}7El7CSA;=KXekY^RG>e-{ zuuVYm(pR@|5zQ!{2@Y3s!WlFkEt+xRKzr=&*z_|U*@qgNWbB##KVWn?)_GXn$>4`} z#Rk5^9iqw$CMLJ{owi8Xkg$-crJaR6?!tz^#b0>Dw8Q57c+l9;Af%gcqV6G6E2r=p gYaW5X0}L(q1$Yc3_9+}>;A5Sv9e-|5r2~UC0H_cnr~m)} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/refresh.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/refresh.gif deleted file mode 100644 index 8435d1e47ecad7d067fd693685a351a4faaea985..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 91 zcmZ?wbhEHb6krfwn8?H+Ev@+<3>X*~6o0ZXGB7YP=m6P3SpgthXG;G{_6^)k)yrHx p^KV3C-cy{u)wlDhi`tZRa&1nj!TS<&o7Y*qPxn~)gNK#D8UXWD9_9c5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-check-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-check-sprite.gif deleted file mode 100644 index 610116465e7e34fe6ec137d674a5a65eb44f3313..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1083 zcmZ?wbhEHbG-BXmXlGz>j-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9;Pl_AtZj8)e}DJP-90mRO_;lP-R7O^x9r-qeb1Jidw1;K zKX>_o#p_P2-*JBTzJq)AAKI|<;`aSlckaKi>)_Qrhp!zxeDu(fW5aL2&AYd5-M(@A-tF6WZr{0c>(2e#ckkc1d++>}M|bZ(ymSA_y$28PKYDua;miAv zUOssE@WI2!4<9{x_~`M2N6#KTe)9Oq(zkK@q?aP-hU%!6+_U+q`A3uKn{Q2YOFNRSt)Ivb< zCkrzJgCK(r$l;(o!NBpKL779wW5a@j%^bpFa}I1+c({#=)o#uSgQOPDOrxwjGt!z| zdt@$e$lSc_@o^LJpjAf}JZwJMArZPP=b&Sgps8HqqLPD`kM_zs`Roai*qqK|#L3VT zF?sR}KXId?9~w-oM=!LvF0}h7u%L13YL4V{2NpVaOx6sKXt0%-%sxprU4%n}F=ee| zk7OB3V$o4<2?NtNdOnMp+}aIPI1Cb!oedm&q`N#WDjn;2s@TV#Wb?^^L6Du@WzE4m zBH2;`fg2hOC%gI1Qk$u|ta4(CLnAZyojrZEhG#jire0bj>DOw0Oe9%D!a<-Z<>RHq z%WD>VO!l0r8@nULP;YPhBrdTFH4+!k**uiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$^aLtQ^>)SRb9SKCQ``Jr`=eVAz{OT z183VTy}$iASS#R nB^X?DXxtttx-R#(S?*zGzsXrO9p?HCdj*-f<$NLv92l$th`d^G diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-over.gif deleted file mode 100644 index b288e38739ad9914b73eb32837303a11a37f354a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmV-71IYYGNk%w1VF3Ug0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096U000OS0Po$iSC8I2dGX-ATgb4XLx%wY06VC` Bj$r@* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-sel.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/row-sel.gif deleted file mode 100644 index 98209e6e7f1ea8cf1ae6c1d61c49e775a37a246c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmZ?wbhEHbWMq(KXlG!!`QrEOm%s16{{7(1pGR;1JbC};*@r(bKmL9F`S1V#{~1QX wXb24J5K#Qd0`%X11|5(uL3x6KLxe$C!6IP+Ln9*-6GOy_4GW#y85tR@0bQ{sTL1t6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort-hd.gif deleted file mode 100644 index 681628f35cba49d3ab1986553646ad0ea3de86ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2075 zcmZ{kSx^%O0)|s{fkj}c2e4Udv34K=Qbt{1soP;%3n7<`I>4eutSq<4S_d%8ItWS- z5(J?nB0@M5l8}T$62cYE+#G@gIm4Nd5ON=cBiru#{ty4l_wc`b^M{6o1pe(F{g^Lc z7yy9AT|2emN?0?Yb_x^no@CU2pd~sY-bs~wHs_0Ai8Grm> zIg6^wR$1A2dfcCZuec45c&R}(6U1Bo&C#@3N`^p*?3d89V7_n1WgSRSTKBS=nT?>` zy?DClKjW%BYtFOWyyq|SQE?{$?H%ts8O$zLcMtCKe)hoN(D2A8hs)y&grc$WiOCOB(;sKVv!CYX7Z#V6 z`&+0_BpaJj*_K?ft=v(mHNsPRgVAK(we0O599jWK?azSe_<=mTlU{eY^x7em^La=W zxHOmfuP0u~3*6Rv&MWsH3eSYKHH76j->{PI@Y)&$Sik%Hs<8GZ(c8dZqvMf4|iV zumMSOj=3aCp4oX2CDvRAf0-oDIRv!w{8U8Z$_ux6;!6IR4A~0GJs-4MaNH(#^(Cl@ zxLWAbDO)Y_8wIVQugoN_VFEXaYsFWMvb9&iHW$`QuDK+wmx4W-*I&c@x7N$TLoRHT z--<}u_%$lNd86V^#?}TlHvhsVF0LYJ^G#y%6Lw{4=ho)i^wA5_s>d@)(sx;#&C=>@ zXQtY~3wk`&Y)qg+8_+jwu&hh0*(Te%)&3dP}yV!M4J#9P@h z9g(86zMqXJD?1l56iS99-+PC-UXilXC2Jz@u(mrDJKgG0Z&iRni01Iie~go=C+38j`GoRzs9C&c_0Es z%lEn2!xs2)e00Jq;#8d|P)gB_T{Ug%#)EAy>L;$bKG08sJzMl2U;#?~RCwq`!}P7l z2ZoPP2`z@1JDERq0Af)Wjk9ss2gXl{gcjpmDnn_UPv=}TEj$)KFfC?DTTDyYCZ%aP z$JW;@dG4BKUMcXTnpe>QJIuwS*L-)^%OlfvH*g8m-OZ}Zon0v&Hc@y9&D1NPDCTsI-!CV)HOgjDCbJJi~Rf(K7js-J^k zwf2$RK^K<#g&(@sAptxDtoHjXP+04f$sIatQKNz#>YP#F;je(20x+!Z1eQDO5u|w; zj;=dJ0FQV@YYL-;buJ913kl|KZ-zwjKUA>vjeeMBSOR3Ka!%hQ zIai9v z(=jcn3DEhuIb$bN)RLAdm|sd3rm!8U=_u&JD$vB_!l{q2f`!c>Q`ZEB`WS0u%A-vz z+^mS2!4NF&AWhv8M_LvKx}>c%^<*EdMv4VXMwY2pjiF^rq05#zQ=eHxdukFa&y4)` z0Z#NBTbSg?U(9Sf1U=VPD6#q0Jm6eRH>HAC>~EU~-Nxwo0m2ohf18KgomvY*VXG(J xnukG%*1|~Ps!O-qNCLVQod8<{&YMRA$6AXsg==T`%$#7Swh|O<#2Eni_P@~#s@ebm diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_asc.gif deleted file mode 100644 index 371f5e4ceacfe79593d125baf96513c6e8ad34eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 74 zcmZ?wbhEHb-TSCOY8st|1&T!DE?$&WME)o&;ha;K=KSs(o^&syBSYO c%`n*IseAA0o!(G+3AHDZOJ1E~V`Z=g02{g%e*gdg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_desc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/sort_desc.gif deleted file mode 100644 index 000e363a78b78a40dca35ff13e7299f2c7f11662..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmZ?wbhEHb-TSCOY8st|1&T!DE?$&WME)o&;ha;K=KSsQa$~W2j0pa bsnX~2e0X>ByZeUMj%TXu>`~t##$XKqCl(kr diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/wait.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/grid/wait.gif deleted file mode 100644 index 471c1a4f93f2cabf0b3a85c3ff8e0a8aadefc548..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1100 zcmZwFZA@EL90u^)S14;kcS~P51JcqXyBK7YjR|$m*3qt)1nqFnf*+(nyIT_zZIrbc zP70+hE$ePOAcE2K4FU;V;KM+=xUiQtnG(k(Qx;;(oQVNl47kM11c$9(j7iV=cuw*= z&;L26aeaM*8AVX!4nUmF3luezO5JukyN8Fbj*JY)E9#Hd|0*@ZIv{eO*Nb# z12yCIrOhLLJlbn33DTB}t(F_b2bV4~y*j=}%v9m90(t13QX1^b_==P$D+H{5*5Mu? z8gKY>BXXf^7@!+sCzFj+>XgJsqfc(1Ya(r=#J=3 zlZtj9{~(p*xA$9X2mMtN6e0bM#^36uHAhJ9Q&;+@HQ_ThCJ=yPPcaaStzMs1DHP_0 zvw_E92pgO+s83$0SnZp{u*pvQ$A3#Rftg(VD(=52XCTzUftd4T-22$PQrgIR*gHx4 z{43C_yk?5j?(i$Mual4dFf?{<9Wn}qfaB%>iNwkdu&q!m&h2IcZ$2Th!C8}<*_&Pr zyKl`OZw8N)3D^4?RK}UoD=o00gbKYHy=yv32mZ9Dl8aIS8x^Z$2?NwcBLzFmZOtoW zzN62&u*QDIz{Fy}^YAXY&Txmg7ATSAhAr8K5fZbFZ*SFa$_qE2L|VVFHOI{wKE8B_ zGXV2p-56OO`rc4Z7g3zbj)2_3YjK$((`OUqD%*mgvS`YELYsVW1or1)YW%;)D$oE>#r zQ3z|D(W$Eg`c?NY^+fD&+nctrc25@u47U__J8-QW7NqK!$T9C@*SpuaHyFRRpIGae rj_Lao#za}+eaj_<`F9!mRdtBiaY8;Hj-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9P}a7(ufM;0=I)-EyC%%tyKeK&xyuhMUUy>sj`JIKUfjO_ z>dyTab{)LB=kT>-Cr%wbdG^%lGbhhnIDP)=+4C1qp1*tM!nLy(uU)-*?dpv?S8v|E zb?f%+J9qBfy?6e~qdWJX+*RNl{ef##~$B&;sfByLSi(wRuh5*qap!k!8nE{v; zbU->ld4hps4uc|xjK_ur2b)<{HDXQ_Japi6Q1W6iYUvPA5Rzlscwpk<4sO9XmXjI+ zi&_OWe7|@wG&BoL67X4M6R7Omz-DfcwPk^l8<#v6OGU!M%_;%{ss?XfI5Zp-5OGar zYW(QXz|GEX#*rx~s>CVD%q0^Mz{1hH&cW`(j0A>8wr;ZvZ4rjePOb7*MGqXL4LK$% TI;tJY@rY17bXb6iiNP8GS6tA5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/group-checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/group-checked.gif deleted file mode 100644 index d8b08f536c5e366e053640352d61b4cfed683b96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmZ?wbhEHb6krfw_|D1j|NsB=tm1FqzJK}hwYPtIXZPfm_P+i}Gbc`&%`gf^Ltwav zfZ|UUMg|5>1|5(`L3x6K!<0doL&jsnf`iQ*!dfvN0YC{RF}pb&3J)2&_?6|3SO_W} ZZ|BfYy0Sy?vC~8q$yG5YgHjzBtN}PcC$9hi diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/item-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/item-over.gif deleted file mode 100644 index 01678393246989162922ff0051d855ea02b4c464..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 820 zcmZ?wbhEHbWMU9yXlGzpb>`d67r$SB{>v~5Mnhoag@EEu7NDp9Gw6W44$2b@9D)q2 W95Nmo7Bnz$2y4ZhC`fc*um%9+ToJhd diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu-parent.gif deleted file mode 100644 index 49286cdf848fa1db016968b8bca6d29a184f5f03..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmZ?wbhEHbz`&sRlZBCifr&u}$Yub^GcZZ{w5*gU*gdP+ Y%TMb~YgITymHdx@pv*3rE>Q++0Q77XDF6Tf diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/menu.gif deleted file mode 100644 index 9bb3960fccd6740a00d6a0009784ec6dad35b9d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 826 zcmZ?wbhEHb{Kde?@STCd*3rk&HPF>7jA0avhQP=R0UeN+L3x3JL!N<|L&jsnf`g3= cEHW`CHY_~cE}-l+$7AE7qumn9Y%C1c0DhVh(*OVf diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/unchecked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/menu/unchecked.gif deleted file mode 100644 index 43823e52db80e04017b2bc1e031bef2d82c67e6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 941 zcmZ?wbhEHb6krfwXlGz>`0voy-@k72&h=Y%ZQ8zP%g((!cJJT4@8F*OhYlV-dg#cp zW5-XNI(_EM*|Vq5Up;&A+S!ZOuUxr$qNpFDl?^y$-QVDS9;ix)3mg1{>fcnt(^ zUcUi>w{PFRfB*i&hYz1Vefsj{%h#`8zkU10FbYOPfHonZ_>+YhWU>y30Obh=jxGj9 z4jGRP3l283GHb+~D0p~)!9>Yxj)(FAXDKG5ESZ1@4oAD0WI9R=9v*6Ak!N+{dHKMR zl}FY^$AdFLm4!>ptVN@75u5?#BR20ya;KC(goN;9V qqtnW!)kYaNB(j|}n>i$H<|I5^)XKF~L^CSn=7x7MEgZ~D4AuZjXTU80 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/corners-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/corners-sprite.gif deleted file mode 100644 index 43e2862672c761e4d2cb33fa3b42ca0f33aa9baa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 577 zcmZ?wbhEHbmzM->(#~nHPpLswzRgmaCLTd1_cIK_1jG}>YWhcJ3ZL7Z|0oY z)8sN2wzIAuqmHRgz-g$g)=h>$(pFep0=+9{?{8)kW>fLVSF~^a&1E%3V&g+z1_|RNl|_Nd$NQx9n^-;wrkw0k zx82uevQsG4d#Z!mq?(zAslKxmll!*JEN<|bXI#2TY_3*QG6R>p*K4tQ zm97e1Y`*c^lvSmg;VU8!=K0>*nssw^(%wnF+0%4ytuMHKEZ6FL=G_%VpD$g_p00my zZ^Li4f7&|?9v)77ul8+sMM3i6e!>1y8_A;7lUbVS+xAEnM<1Q8+|B2^>vP8CrS`^t zf6Gi?U0-E-{F%+|;_RE-GoNp(-L^gY{({8!c7K_he54K7G~)YWS~!K3oER9a0k)%=lGBD_X2#`Dj6KhCAry?tZH2~ID B2P^;p diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/light-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/light-hd.gif deleted file mode 100644 index 660bedb84796eaa83297c2db1a6664b791bf606a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 161 zcmZ?wbhEHbWMt4|IKsdXlid`X-4v76lvX}5rKB$|rzIh;J-Mhmsh~41w=FKGIkmJu zHm5ljsGw{@N=a`_c5_luS8R53LP0wN5kT=L3s{v7hy>Zmz$*7Z!HWB%jG&RE=RyMq Yh9i!~+?x!%9T%K7Zr~H*W@NAi0O~3zIsgCw diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tool-sprite-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tool-sprite-tpl.gif deleted file mode 100644 index e6478670e37ea49286d7f29df999169959338750..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 971 zcmZ?wbhEHblw;s$XlGz>`0r4-;O@-bFU~*teev0!D=+?Cd-eb3oBt0#|9|%F|Er(> z-~as&1Pr5KGz5lY2q^w!0eb5{gAT}Zpgh6Av4Vk-LBL_d0!KzBR^X4(Gz> z>BoHze;t7hgA)x-a)*Q>SYJkNfKi528;Or}U{zyIL^Yakmr6J}bc#+^rKXywRhT=F zZ;}opf|iJ`sD34TSF3D2x;Dd3FvW0%vVY2zhaSilv#u$>z&X>X)zQ2^dzfwM33g<&PA$4f3KLQB*)1nOFejq5Bo?49lG=owd7U zt!K6qpY~-zBB`1wiLl?3BaIFp8dP?*WuLBC6Itz=G8{&9`W6LL6_nRdF4yv8 zdv$XaiMdJ!cb#ZXu$01VTJ{zV!6L>oF6?;lY}(Hn=f&1rVA)g$r4H)Bw@BAqeJ-Kprs6sOK4N%h{MPGfe6>{5s_N^#eZ?^DZ1b;&GxfJG>45D#ps`Fz3rzZj4cKNnQw|1IHr-IFzJXHZQ^sGb~wGZ;G3D) zDPkOX-gu{PbaJ$e34ekXo=!#5V~m0=)~M!GA8z?*qhJ0w)oA z8!fluc0w+S*yggYTK(?Sg0n9wn=G=MHmk6unIrF%tp%D=)y)PNi|3`HJXpc@f7f@yQhD+pc@>MqJClEN+ExnZ)j7K{jIef*ZcCJ8BfQub$cer z549%}e521q&vQEz_lH?ys9@&zEO*4eGD?3`bn(Z5v7uHKP;1J(5>)WH*nzDm7@Ql}>~^m&1~( ze!>9^Aiw}lMnFIS1Z)-m{Pja{fBw#sAN_;{fd3K22?9*h1`L>s0XWcs^LyX`{YQWb z{?CE{)C=)2;{yyxP=FHT3kEM}!N15LfyP)M{`8kX0y2<5`x~HvUf8e}&Txg!Th#m3 zcRRe%Zg1?HT@Z)$m16ynKa(*`{66?W5sq+#OS8;NkWmdLHW3C-gd(i}xN)YR`K^cr zJ0cK!$U_1G&3z2RgZx%70M0z*elh^yhpguU&g86vB9NaV_&0(3(I9_yLj?$^*NZ^z zkrR+IfgwGCNIQVT6ZBJ>5dfK%>q!C)$>;(OWLS_I$dM8{nitEc zCLe+kM@f8^6sK4Wr}RoYd?A#bY$-lgO%ZIpAOvOO zqO-zp;Nd&v#S3NyK@cfV;=I8*NPj}g84ME&F&L`ToO5L8;tFd2K7}^yp=snDMnB~} zd;;lBiaOHW;9|Y1MNE0O3=j42Gz66%K{UNw)ku>TDB9`lQf^P_3Q8rW)99=uoQ6KwVTI)d9tV z42f9!0{JN5SjjS$vOB2M<0_LbXHkx`mQ>(LA!WEzA&z_OVS#9Uz@x~OQga6^E8qkx zM#3W2mFO&!E>_}%0z|4bTCqt<-0GkiXf+roF)q50s|DkNN}&s1!-aGAStEPw6sdK< zW+tS;+Sam(WZ;XU`7{t-@#?5KiR~zOJw#bo2%;w8)eUXub6XSr?RKR7XaD3hr?xbA zLW-K6B!MEi0-vHwPdJ|VCI{P-&eEn#RWNvt(O^7U&cLaBRe}$)D)r^pB_u-cLVa{l P`?8Kvcss8`5&!@@N3pJ% diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tools-sprites-trans.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/tools-sprites-trans.gif deleted file mode 100644 index ead931ef617ac8520a24a263abb456ebc1bcd54e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2843 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 IvM^W!0LCzFhyVZp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-left-right.gif deleted file mode 100644 index 51850b795fdd9d6184cc0fcb2c42ab9fab4c05c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 52 zcmZ?wbhEHb%=lGBD_X2#`Dj6KhCAry?tZH2~ID B2P^;p diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-top-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/panel/white-top-bottom.gif deleted file mode 100644 index 08f8fae1505b0e4f4321c49d734d89feee32d324..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 115 zcmZ?wbhEHbWMt4`+|0mW?;dXD5Go-dWnmv|WbUS8Xm4!cZEhQ2Y~ikF;$UeXVr=1M zV(DvP8)RnfZ(`-E_>+YJ1av?I$P5M+g@7pzt5q{3zun1f4q{BnoR_g`UC!%$1v=+T Na_?8nhJDhEG!%Znrbs>ty&ig@GiX15ypLi-A=}L7^`tbKZ*;47@2kM~hf`9Bew9S)2@( L99W>q!e9*mWn3o8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/close.gif deleted file mode 100644 index 69ab915e4dd194ad3680a039fd665da11201c74f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmZ?wbhEHbg)|NZ;-|Nno6Q7{?;gDC_Qf3h$$FfcOc zfE)$N6ATu z!(r;m%j_$9KP-wo!oMF4bR^Z#pCLVEt6JIYJY>r`(GBHu8TKMAH hV%craN*NY1aV$`Fvrs8ibZTIkpzPfzqoBZG4FEi-n5_T+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-anchor-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-anchor-sprite.gif deleted file mode 100644 index f46d31d0b68c65a664bb20a14fadb54dae64b93b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 951 zcmZ?wbhEHbRAb;`_|Cv!?3wQtT9}eqnqE?wRZv|H1`MNMGz3OQ2q^w!VPs%nW6%M4 z7nCO$IHoZ0a+okAENEn8=FkY~C}3!4VpEo?u}Dy8U=ZNsidYfA(7?!KkT%8R!=i>R zCdP^_5)I0XJ>1TAQ+^m6aBJ0!PTEp2`GD7SBgJcPI)fLV?-3V&S8_9OiSIHNj%^`3 zjGrEx%GS{3lX+?B#XgTxr=Fdrk1n)&T83SnA(#?5Nj29>rD{s*?U@B<>s($4Jv_3f KL79z(!5RRppGf)u diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/qtip/tip-sprite.gif deleted file mode 100644 index 9f6a629dc4721ed3a5791151b63f4e4861b6abed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3376 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 G002AI?BLx1 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/glass-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/glass-bg.gif deleted file mode 100644 index ed3c88633c0dfec1e8ed3e55cd21e4f140c352fb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 103 zcmZ?wbhEHbWMpt**v!CS=Mm}V8)a_mVQKGeVdrV(k(n=9&TyxW8)fP v>lS9?62t%oia%Mvv<`>_nZdv!VsOH9wLpqSuwS%K6GKYoyo^<|1R1OWvFI0N diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/hd-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/shared/hd-sprite.gif deleted file mode 100644 index 446be9257c229158b7dfb7a63a4c6d0a5ee42545..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 673 zcmZ?wbhEHbWM-&lc;>(mliA=Co)w)@?;DXFo?Pi4ofnc&8k$sI*)%02u`DXB#xF7_ zD6S|Zz9cZVFgm?1BDE?Yy1+L)DQD!nc+wkR^SIy|K+CZpazD%US6H!`gzD83{t zx!flr%O^ZDD!n!$wc0-_FD$7dD7G*(q0BEbH!!BaKRQ1suGlvs$2&YTFs3j#z9c5I zJ~Fi?Dy=p;qs}KHJ1DL&GOgAxD$h4ECp@{zH!?dqvmqcRKRB*9BDE$swkRyQG9snw z|Ns9CLm4RkWMO1raA42@c>)wC4DA0JfC3yGP3;|>T}=`a3`|V@6Z!cWL_`?4xEQ3R z8N|dG1Oynw#Ti&w7-VG`*x4C4IT_g47+8akLHvpOy$ e9Gb-|db5CM!b8U+WCEbeEA7(xU7iaog61kuiXaqZj{Zl73^l9{3!wYse{!r)1(vG>Y0zw5b~ zFW3XtenKPeNJJKs(5KW%ZCaVwrIwZDZg1W&cs%TqmE!VOokpLdRWtiNy{_H!Jbn+i zxBGH@b%B6)g@1#FiHLEEjf{SDkCKskhm?ein2wc#la`vGpPrqUqNSmvnWLtvoU5p; zsjalLwz9afy0E;jzL34Zznj9v#K)(>$gal8!_Ljj%eA@6(9^fO&(hc3+~3sN(c#wM z+2!Qh>Eq|>?d;X=@$ll<^Y-=L>-gyJ{POwC-P7lf;6Q-^_ZduB5MjTA3LOG`$Pi+~ zh!`(ww8*jlqDP7#CyJyOlH|yLCR3tZxv(Tli7H#3lo=D|%Zwde(!9Cx<4l`7g906j z(`U`1I*Im7iu7mGqf4Deg_=`pRjNjLUe%ga=u@str-HTGRq0l*V$q&8TlTBkwrSah zUF%jZ*|~7(#;wbDuV1}@^9sgG_^x5Bg%KYftGF@a$8Qruw(B_ZV#}2&PwpF7GUm;H z2Vd6wxisn1oJD6&?HP6G)~rXzUj15j?V|+>1j%inhJoIOa_=qxoWySs9Uuq?!P|Fn z2+3tE7t!3raoe4-s|KB&c6aXEP0t1o`!;#)<-dzJzh1p-_v71#e?LDy{q*(O-$&2i zdw%$~`q?L7fCK_);C~3>r(l2Q`M02h49fRlgA_^_;eHTiSRsZR4tU^%7HSw`hXp2h zp@$}l$l-`AuIM6)Aih{)j4+-!qm3Wpm?DWes#v3sHv-usk2|*bBat))iKLE64r!#4 zPdX{1lt)HcnLb)ZAU<%nKm0oITW|?S`spgn$a_MH6ON#lXoN!t>XPkK2 jS?8B@_L(Q2f1bJKoqGCNXrO7fxu>9t8Vaas2><{)CkK&2 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/ne-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/ne-handle-dark.gif deleted file mode 100644 index 3a30ca224d1fb27f5a4f966fb923c52fb84e7e5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 66 zcmZ?wbhEHbJC=eF_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/nw-handle.gif deleted file mode 100644 index 65d5cc201cf30c6e1ae95e13617ea0056b4f9707..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmZ?wbhEHb+WCEbeE}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{ za7Zi~Z-S(9$!t2G(5Q4uty-_xtai)odcWYXcuX#v&*-#z&2GEj@VI=gEEJM<{9TZz z`~QG}f`f#GhKGoWii?bmj${Opl9QB`mY0~Bnwy-Ro}ZwhqNAjxrl+W>s;jK6uCK7M zva__cwzs&sy1SBg1_Zvq1;4?(#>dFX%FE2n&d<=%($mz{)~f^A+S}aS-rwNi;^XAy z=I7|?>g(+7?(gvN^7Hid_V@Vt`uqI-{{H|23LLo2fPriV5gr_nkf6hd5F<*QNU@^D zix@L%+{m%BqsMswLW&$ovZTqAC{wCj$+D%(moQ_>oJq5$&6_xL>fFh*r_Y~2g9;r= zw5ZXeNRujE%CxD|r%fOt?uiw9b0}CEZxUk{Fh!ZPb%($`R$B-jSo=my2<;$2eYu?Pcv**vC kLyI0wy0q!js8g$6&APSg*RW&Do=v;9?c2C>gG~ScJCev8jQ{`u diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/se-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/se-handle-dark.gif deleted file mode 100644 index 881a5c42d66b22ba04074e5ee00712285ffe2118..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 65 zcmZ?wbhEHb^) G4AuY;v?Y50 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle-dark.gif deleted file mode 100644 index 030d8f8d8bde964ad5bffdf1c51120269ff2990c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 66 zcmZ?wbhEHbMoDg*Y diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/sizer/sw-handle.gif deleted file mode 100644 index 79bcb8487129724b7b4b70fa000846a969dcf50d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 116 zcmZ?wbhEHbhPxH(-aD``SOWkj ClOetU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-bg.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/slider/slider-bg.png deleted file mode 100644 index d213754748bcd28ac1358e39077aa40b339035d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3636 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 PP~&28XqwQ&z+epk_J1Q_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-inactive-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-inactive-right-bg.gif deleted file mode 100644 index 3c1b3ebf55a464635a97e605be577eb16749eaf5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 513 zcmV+c0{;C+Nk%w1VJrbM0J8u9VQ-9IZHQoQiD7VwFE>VEZi`}YkzsO;G&nM)j$~<` zra+)<>%MR-&vd8Oc&_h!&)>eFa7ZlXfX1Y9$z&p%(5Q6EdQz|0Y}TsndcQ(0cuX$0 z#OAbmok6qT@UlBjuV3f(ygrHF`~N$AfP;iDf`y2QB8Q5Nju?!Ol8=#-mWY*?ntz#_ zo_3v|qHm$2re>w5s$Z$Au2`+FvQe?Kwo0|Px^t$ID9v%FNJ3 z&(YL93e(luI0x9;-Z9+Y;xyso<}c;v>L=;z?jZ#U1O@c<_V@Vt`uqI-{{H|23LHqV zpuvL(6C#v1prONu5F<*QNU@^Dix@L%+{m$`$B!VcLy8Q^ZKTPQC{wCj$+D$OjNAms zoJq5$&6_xL>fFh*r_Y~2g9;r=w5ZXeMq?sf%CxD|r%?vy0q!js8g$6&APSg*RW&Do=v;9?b-+sL;wIg De|!Wb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-btm-left-bg.gif deleted file mode 100644 index e5f827a36088c3697a48a05024d78fa4220e843b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 512 zcmV+b0{{I-Nk%w1VJrbM0J8u9;e#dZkRj}ZAmV%`bU+T~eM)j$~<` zXo^Z|>%MR-&vgB$!s!{&Zu-sRY9xRtTubydcR;{H%u;@ zTjR5O&DNyb@Ob$xuiLBiyMBMn^Z$T5eu0FAFN21OiX(`Nj*l6Qkdu#+l$VBel)YpR6*xNM9+}{=6;NKDj=I7|?>g(+7?(gvN^7Hid_V@Vt`uqA41OEU63LHqV zpuvL(6DnNDu%W|;5F<*QNO7XSiWoC$+{m$`$B!Vb6G|{ZvZTqAC{wCj$+D%(moQ_> zoJq5$&6_xL;*=nur_Y~2g9;r=w5ZXeNRujE%CxD|r%T41S`=>8sy(h%e^#%=fDI`AWC087 wfJl%T3@l0k4GJ&U{Kz_8d_Rt(FJ5!jl6D^!YuR8ye}-K4hDLT~dlv?40PG$eN&o-= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-close.gif deleted file mode 100644 index ef9a7c262aae098a8ea9458649bda67ca495a65b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 76 zcmZ?wbhEHbukxD;$|wy8;ozC>RZaAs7NW vAUA{Z0t1HvgMP#chs3594gm$5f(s1?nOHdmWGoUEFf=kUF)?s(FjxZsdvY7B diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-strip-btm-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tab-strip-btm-bg.gif deleted file mode 100644 index a151553e964bc33288767da19fc688e7d6dc3c0d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 70 zcmZ?wbhEHbWMq(HSj50!Z0=-Y>0)BxY-;6dX6_sbyg1j$pl` O8_;6eF59BQU=0AS1q<{5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tabs-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tabs/tabs-sprite.gif deleted file mode 100644 index 8194001e3745dc1879bfe03ee0a9aa0d00c37d65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1221 zcmV;$1UmaiNk%w1VHg0y0mKskVQ-9Ka*g4GCGC(QFE>VEZi`@UiC=AqbU+SaagJhe zkzsI&?1UiVd?w?4C+2@5VRDdSbB@}5CjbBc000000000000000000000000000000 z000000000000000A^8LW000vJEC2ui02lzm0RRR6;4~p*X`U!D4s7eb@PJ5h9V2$` z;=0cFHXLI}EEql~43 zsfnwNt%t9ur<$>kw~@J%yOq6{wTQK|w!tC<$jQpf%mfnz3enQj)YS^m2ie-&+}#HR z0N&!>1PSBk+5`ax?CtLF@CNGf^zrHo`1$(#{0sN}0QnJ!P@tf}g9sBA7+3&+!-o(f zN>nGYqD24{FKTp{apT2~9xH+j8L=Emi{MWGifpK|})?dR41Ou3Nos1p8I2MzUkgepHK+ ztw^^Lk2Rai?3uN@)(9L>$X6k_zJLvy92&sq$fbn|Cs@q5vE#=H211?;d0>Fcm@{kM z96%lC&zwDj9(`FfY0#!mhgLnh9P7{EUWYCqdozIrwKdnwoq0F!(guD57v4FzaNoa? z^H!dld2Q#ip}&^Sn!0N1r?HdP-r9I_@5{kA7yq1mbo0~ES66?XeRlWT;ddv_9kqPW zDe~(F!oR=&{{RM90}})mXy6f4B&Z<&7z{S(;1*~^C}A)ZR%qdc7-p#9h8%Y2;fElG zDB_4DmT2OMD5j|5iYyXB*Ne;GB_lQH)M(?4IC@jhjy(1VPe4EhDI`CE70HrMNG7S| zl1w(~0+o_zM{=bwNED(Iku7Ha6Bh$gD&qKr2BntqU$AcBAcNT33xmHr^0rU7ya zAOZ(6Aw#H3$e`eOwQXR_hPG>PD}cA)B2cTix00Kyxx1pQ~<|5bry2RGl|TT$v2@qQ)Ebz4AVkB`Qwv3GrQap%{<|Jlg=~o43p0{+pH4M zLkoQp(MKCi64Fa69TL+|JM9tFQ%k)O)mK}s5!PF4eG%7RduK`O%pGEWew9Z}yt^(`l5f)5VaHNqu;xNv(g zosr8H8F3g9w~*(VzxKI8aHIcLI&Y`vmU?Zg%htN+p|ke7?6IphyY01~cDwGmleW9> jy^r?0@WF#Nyz#|u2Q%=lGBD_X2#{I^ gX7Pwrw|{;oJlpr0y*T@uEkUC%C3D`3nG6ip0Oj`;R{#J2 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-arrow-light.gif deleted file mode 100644 index b0e24b55e7ee53b419bdd5d769bb036b19fe9592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} zernn7GpqKUUw`Q0mSb0ToV>R8?9Kh>?)?A%A85cR7!84;8v=?yS(q6Z7#Vax zUI66@296R2W)2yT4GRu7a|mm>STHs?w+nNawPX}9G%#|o>fAZ8aq;nf1?Mgq&rM5C zPSyxs6?1aa(*sN*0#Y579~gX_Ir7AO7EE5yG(%Y4FT%k%!-dUUH;Lzh!*aJqzAC;N dg;0f-Rg6jrr6;$pzP>);aF?w2wgd+TYXG#xTAcs@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/btn-over-bg.gif deleted file mode 100644 index ee2dd9860c799be6dc194b387c36a953c55aac59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHbWMoKTXlGzJeCy}&J3mj~|8@T1uggzJpf;!hT!Z~imrfcyl?6AT{b$et`3#gN7&v4Zqzw`_ELgzA$|)pg(Xe14 SBQvX#kb;4O15gDcgEauAx-gUg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/more.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/more.gif deleted file mode 100644 index 4f010201be6842a2f603ae0afb1d071b123da07e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 67 zcmZ?wbhEHb^`e-CQKHh)n*YIo0R|L*vM@3*urTO=1VCyTnCm%q-QiO? z<+*yV#p|=X|0iVFJ`tXiv1(n;>wN_}=Sy<$=d65R^Zx&V1qB{DQqqf-6rIemntg0} ziPzdF_oJ)78NI05dwYY4mKgWBjFQT=Dx23gn^b*RSAC}}%f|QoZ^Mdu|7xb%rgovm e4xhrd?)I*Juf9q36Q|CYDLsAG+`0r3Od0)xY0~Iq4Rm?bCJ?B`>oTK&gPd3dz*}CLR%aU_l zD=ze`x;$asm5J-FP1|y7=C<4Oc0KGp@OARxuQQK*oqzJ{(lcLIpZm7u8ukxPurZ-YfblWU`p4o5&%%PX!%{-|5oZ<}b{tn!>Yw4W=u^Uq zQpF50j}MM*?7gx+W?f1zJDKabS=0$Rg*yZqflo?c5Ixr^dQ@Bde4NjsFf-c#W=%hte#Xx8144{oy_EOnT}e!Oo~L)&NLV<%|FT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/tb-xl-btn-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/toolbar/tb-xl-btn-sprite.gif deleted file mode 100644 index 1bc0420f0f0e30675a9eef74adbcb55e3efe9d00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1663 zcmd_p`BPE}00(e9$fKOV%p>iPJj&c%bKS|xcC^ftT+_6&bQ^Q1v0|HYZH>xJ<)Pwz zJ{2=BT=7g3OVbPx;Rzm~c$*61k!dRMUNt+7`}{lhJD>Uf{{7*5&d1C3_zfM5t5zZg z*DM_almg(yCS!GDY@;y)?seu{c7h(Q&j zgny%6K+jMmP;5z0Y-vv%s!SALDvB=?$Crz#U$z654p0@{`RiKu^2 z14&f_^ePFRB}v{QO|F)tR7+E8P=l$c+QGEiq4e6Jw7Q}6I#~v)9yOfNFq~OGocVGj zt6?PT&fvmXJUF)t2KjJ7H_Q;g#SmQ5 z1DA>53Nc*S3$yy*ntr%$0BMjQ>>fpnXzn#itbEfu-`cm(hU#B@JFwI)`Pd=(_)fa~ zZtzp*(8~Lvl_n|DJczUmA#Y?z+c45Gigb=49N8*o_%nB8jW@E^HM-6jM|cwme{6$4 zuIe6F2`1FtlZbFqBbs8TgLuNs?IjW4Js7St1q>d8g*)ROwcN6j>9 zSu?Y&nf(OIS6~Hd6`or~l%J7#)Ecs|_GNMX3+8_r>uji{Y{M4quYv` zK1ZlvHoGPY*j-7ev-=+W3ti~ob1cXsIm=-%B`70^8A;N(lJ71^2VXz?dPh4Tu$GN$JgLf z{3za}WGW%h4420UW0~llVVYVIXr;Kr+JF~!z5KiQkXD$d#isr)hd6Wp9fH_M_ied= zbBRO2H$dKNZxrE1@t!jP7=AW&Qn~^8e!TYHBDTNK?x(Rb1Ec7OaGiY&W#c)!Q|oa) zxR@|!V1K^37G&$K8%{T-20M=%Uw4vYF~9N0M5&-GxF;=F>DrU-MpPWMarYu94|<*m zCmr;5E>{wK?G#LcKY>tb9dwxj<f_U;r4roZGa6lchMQo#=t2JlW z1rrR`MBfun)4u2}<(LGzxnp$QfVUwDi0IAGB@ z(YR^83IK=@3&2sHp2BJ>i_4GC(}I&g&Z3hSEU z&NlR)}*y*TU5yZ;YCfSF-vL@`3_YOc%h_ z!!W>Ih&hJ=&`XAZLD-<^98Rl?CDRwFL50dGbwa#Kv|NbyD;=N31FT}1enQzScUvq! l#QJM@U=0RFXC{a{EPV$ej*o*3iX@bkmY0~BnwuC206Q}DOo#vg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-add.gif deleted file mode 100644 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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~c~334oIij5|Ns9CqhK@yhFS=VTXXjp>_!!i-ZjhjBP9&d=d&P1P-@w z2*?REbZj`-z{teJvFE@96*ex`7^N1;;s=LXIk{il(fr(WZkkH%E}e=3)qp;}RJS=1 ZACr#t%8J+VSOzWgoT4>ViN zU%dGJ;lrOVU;h61@&EsShEXsY0)sdN6o0Y+UH6|s2joUjo?zgZ#9+@MbEA=|m5*7N zuP1?_;V=Wcmd2kAjEoFSyb3l63JeWQEzG)l4<-aOJF{^!n#_11;LyO$#4EyJxnXG= zBd1*n!vlvz??xWBngt9APKV|*$upc#SeW74&N(&d!GU0fOO1}n=k{oQNISc~334!T+I5ReJa7x*DTyS#YWmWQ8@*yChwS&o6 zrsT(mM-FYgx*h@@4;QobG08Hm@c7Wg%*HKZQ}Uv~iG_ooBg3QNK|^B;FB^}5K!V!o j#pc~334eSRT}sa)VS__s8w&@Y zgu;q|!z~;Fasmw<8xA%wGBG*Ccx+O2Y*vXZDtTe_=t!5iao(F9ACgZ@)bm{w(wUgh k*e9SZBf7&RvvH|ppWc*{Usi^4=^EOswG7BU)WBd303hyMjsO4v diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-yes.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/drop-yes.gif deleted file mode 100644 index 8aacb307e89d690f46853e01f5c4726bd5d94e31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1016 zcmZ?wbhEHb6krfwXlGzhFH%vfSJo_7)vQuAsWC9EH&km;*6LR^?KiYxFJMjooS=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|GpcOElFR6JO6_-+8jw)b-anYgPtp0F$;IFaQ7m diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-minus.gif deleted file mode 100644 index 514cf3e0b0ba4970461ccda47173944deddf9739..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 104 zcmZ?wbhEHb6krfySj58c?b|m)uVhJ8qhrU8{r~@;0R|L*vM@3*urTO=1VCyTm~}mN z-P!l}1R6nMy}F)&yI0HsSJ AS^xk5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus-nl.gif deleted file mode 100644 index 6af2e291499ad14453356a829daa8ac59e5b3ed1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 89 zcmZ?wbhEHb6krfyn8?iV?b|m)uVhJ8qyPW^EB<6*WME)s&|v@qkURsE)|~#8r{D62 s&oJ4*u!$|~p-x8ZC&olGr5Oh{%~>*cy?FPBwz#VzU;n+=U|_HY00cQ8TmS$7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-end-plus.gif deleted file mode 100644 index 96df6795dba0b1c96b5abcb17b5ae9b9a21550a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmZ?wbhEHb6krfySj58c?b|m)uVhJ8qhrU8{r~@;0R|L*vM@3*urTO=1VCyTm<>I4 z-P!l}A01UeuBlqVQCG#MBA01UeuBlqVQCv>6yVWIQ%3 sIM~R@rxjCSpm?~QTh?igM}U%RmzciOnH3WikN0ueH<|n}RA8_M07ViGB>(^b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus-nl.gif deleted file mode 100644 index b4ae5959c70d182e21ca3f4093fc1b00a6830c85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 86 zcmZ?wbhEHb6krfyn8?iV?b|m)uVhJ8qyPW^EB<6*WME)s&|v@qkURsE`kelir{D62 o&oJ4*u!$|~;oQ=b>|GpcOElFR6JO6_-+8jw)b-anYgPtp0F$;IFaQ7m diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-minus.gif deleted file mode 100644 index 68ba298f4b1f5483167fc72fabee114dd186745f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 106 zcmZ?wbhEHb6krfySj58c?b|m)uVhJ8qhrU8{r~@;0R|L*vM@3*urTO=1VCyTnDsq& z-P!l}1R2pH*TrS-5dSOWm+ CpCa%8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus-nl.gif deleted file mode 100644 index 6af2e291499ad14453356a829daa8ac59e5b3ed1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 89 zcmZ?wbhEHb6krfyn8?iV?b|m)uVhJ8qyPW^EB<6*WME)s&|v@qkURsE)|~#8r{D62 s&oJ4*u!$|~p-x8ZC&olGr5Oh{%~>*cy?FPBwz#VzU;n+=U|_HY00cQ8TmS$7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow-plus.gif deleted file mode 100644 index 58ba9e47024ed706c212ce0c9115614bec1a45ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 111 zcmZ?wbhEHb6krfySj58c?b|m)uVhJ8qhrU8{r~@;0R|L*vM@3*urTO=1VCyTm`yx( z-P!l}k HV6X-Nk`E-t diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/elbow.gif deleted file mode 100644 index b8f42083895bb98276f01a5d0e33debddb3ccf1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQC^cfgAWIQ%3 wIM~R@rxjCSpm?~QTh?igM}U%R7pF1PhKh>{$NPBfn?f{-mK<+pWMr@g0DWQ)HUIzs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder-open.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder-open.gif deleted file mode 100644 index 7c52965a66627d634c94d4a2314dd206e160c799..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342 zcmZ?wbhEHb6krfwxT?eO|Noq0vn2ojnEW3IZkPUl-}(PZ{r~?nmlpG$nQ3x*hVi@{ zwgq_{|Nk$YmBIAu_n(u~4CiFAoS15GYk$t(F4aT*TK})N9GfMzt6k~QX6NlK@{0?( z|G#cIzew%x)q*uuBFjtp9~}(X+$g=FPGV*{I--{G*RfNN`$?1v{+ONw}a zHZzb56o0ZXGBD@>ArOH4#K2bUFs;BtN2>q0ixcBSh1Sl-FCSMZEN;jtb2yk0v}j_0 z;e}aCFZBx;3GBFEz|bMO;`aNm0_o27GtROLGm7!lG8E)9s4>cMJ2A4ePMSQ4S5;E5 pzm9FrTsB^HSw80pEX$TJ(-K!%!m)0hwgwNk;9~#nJDeREtN~4Je#QU* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/folder.gif deleted file mode 100644 index 501e75c01938b9e355a695e707911606c044121b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 340 zcmZ?wbhEHb6krfwxT?zV|NqSYK=8iv|C9RvKPLbGKj;7L(*IZTZ*LDeGt=bu_QGB5 zN(=Hhwl>Mm$zs{trTYK>u9@kKn;WH1PBWaB!*-}&>+}rc#f97(>LiX&(LXWOV0(-F z(qi5fWdiGJ#EwqVJ9&n2Gg1#cQK&u$23KV~`FfuTxGU$Lz1^J1At?6S5Z*7;`>3z#%^+%I78oWXeGeZ_Cr zAB+P38X6gRoJ1LzIy$=;M4S{Dm?ut}%)sZw&%ico_8bN!CvFDz#Y>hl2s$T9$SKOo Ri1Uc>t?=Kv&DoK`8UR7|YR~`x diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/leaf.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/leaf.gif deleted file mode 100644 index 445769d3f863fff85bf8dae9e50ca2fbdd2d580f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 945 zcmZ?wbhEHb6krfwXlDQcQ_o~GuN3{H6Nag0EsGx6l|6PSd+b*I#H;qP!+!_A#wTHI zPb1o&CiOkbneseu`t#JOpR;CuEt~zKYW~Z@xnJuSzARt#t#2GZdv-WZP}~tRj*oB|LorIYr@vw({}!uwfFDhO(&LbJ2U^lzeR`sUwH800T8|T z00#d*{P_PLi2nZvyK9sf4FQ^mfZ|UUW(Ec>1|5)1pgh6A(Z?XlA>*-O!NF!$M-7&b z2M@Kd^GWGABrIrf5YP;mqG0Ic!oef1<ENsed*j@4Yk?RR_1qN#Xfm)wA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/tree/s.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-error.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-error.gif deleted file mode 100644 index 05c713c76e7b5acc5c4d3fa4d2865af07f940ca2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 256 zcmV+b0ssC-Nk%w1VITk?0J9GO&d|Gm7V|p_W%F?A^8LW000jFEC2ui03ZM$000E7@X1N5y*TU5yZ;>ljO2nb zy2QYi=_d_r41W`RY-4qIPk#qMat>5!YmW|JX^JmaHbNg= zn`%Z4ADS%#KdcI zf6ma(go=}?t+4<9_W%F?A^8LW000jFEC2ui03ZM$000Dr@X1N5y*TU5yRSe92;X%K zN#U$4fgGizuypM-F<|cwQtCY0-~%im2B84KwjdS)B#OXb`v_ncMm2T;vI^YGpq2<% z1WVe`ESc5}Y{?+aGDNuwgsQf*DGysGWhAfGSHI0RjjRztjke3w!nwyA; THUW*Fp*5hMq?o9waS;GJ)jMA@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/icon-warning.gif deleted file mode 100644 index 0d89077c93ddd985e31cf3eb86f2fe5c3db87a76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 173 zcmZ?wbhEHblxI+2*v!E&XW{a57tWQ}bxxQ%_t}d_E7xwwE~@|k|J(on{~53W#h)yU z3=A9$Iv`1q84N5@0w+CJ@3nY+cK81W0zE1njP9#uiLY9=#&i$6U^tWPosfU;Y&!i} zdH8}|?|q!GM|ZZll!C>?Ak}Nx({}NeRkmDz(4{efiEUF=uOP#{5366RE|+~}Vl(&b J``Jni)&OA-LGJ(n diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/left-corners.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/left-corners.png deleted file mode 100644 index ee27176901c72d603ba15fdafd2e760412212b08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3612 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 O0>Dt$Os4|v9Qi*h7Q^@e diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/right-corners.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/right-corners.png deleted file mode 100644 index 87a30d08bf10cf9c98bc33f2753d9da068bb6e96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3612 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 Dkg?aj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/access/window/top-bottom.png deleted file mode 100644 index 72b4050fbdb107ca967a557b09e0c90df20dfb19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3600 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 Ru}w*2KC@pnhK+^68UTSX)nNbt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l-blue.gif deleted file mode 100644 index 5ed7f0043b6b0f956076e02583ca7d18a150e8f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-NGaC=| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/l.gif deleted file mode 100644 index 0160f97fe75409f17ab6c3c91f7cbdc58afa8f8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-N<)RPU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r-blue.gif deleted file mode 100644 index 3ea5cae3b7b571ec41ac2b5d38c8a675a1f66efc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-NJSY$C diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/r.gif deleted file mode 100644 index 34237f6292a7da6ac5d1b95d13ce76a7194dd596..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-N?ynEj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/tb-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/box/tb-blue.gif deleted file mode 100644 index 562fecca87176274af7bf13c419daaf93f169249..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 851 zcmZ?wbhEHbWMt4{XlGzpbnMHL<6oAa{JQeg*VSjft~>i}!})KUE_~a1@%#46-*;X4 zvFF;4eb;~7zJ2@P&7Vha|2%Q`=a~n;&OiEf>B+Ba&wkx{`TPEx-%p-AdGqGY@@87@w|Nk?Lg3%Bd$|0cmlLhGf{|q`H xPk{0S1BVKOBoBu|W0NBntB_a%g98I2m#~UU!-oTo%xv5uDh>q)92y%KtN|VsNKya* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/arrow.gif deleted file mode 100644 index 3ab4f71ac115188898fa2701b6b11561d0461e4d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 828 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-cs.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-cs.gif deleted file mode 100644 index 3d1dca8f05ca550917346830a5a0ae4e16665181..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2459 zcmeH`i9ZvH1HdQ!yk5P2p?H)dxpp{mJU@!;=?=U!!Pkq*zsjUC!6Bk-dSFVOt_!mB{_I3VoryMO9y{@Ma z=-n9DL$B{GJqcGoa`AW@KtUEXYxS9y%>dB{M#Mz_E@4eP*_kWX z^$4C>m(33o-~&JGx7SyMz30WrFL$>$RxxA>k0+M{zIVY>_Ns?Yre=MWTI_qhMP6lu~OPcC3oegZjRc3=(^V7L)w0*({)+2G{4{T;} z!o0jGzAzuE1S`!ys~+~X;Ic~gSFD>2s0i!s44Nr2{v9?`?2ia5C=Ng`%#;QugJvIl zX2534LY2Z0<&i8qVL7rJG?#U&KWwg2Z6tfHDp4JGvpPj7exmxGdU$C3eVxYnn$L!U z`PxTjbD?!bexlEHC5Xm_h{s6L!t<)w{UTi5CucPzxwui(_yinUcAMBO2QMa*XVGKC z=GlNC5?&-)q})%Ygw02%fDp? zVNB8KSM#G-X(81lbZQu7nT3hsnXV^A4@CVZF?NFV-}t){`7%2$Np8AIR-7-nvHOnQ^Yr z29ODG<^*{=utg%~TyB+{CHl7?LfQY-rAyiI?J<{dz1}#QCwUHfpd2o~hf|W=KB6QJ zu45SUAF!!>)JvC{YD)6?1&ZX1^D@s|{)cn`#dBJlpkU5!N_ZIg4~{NC(Uzy6x{{=1 zKe?rfYg@ITrV0~|@8ub{|BR&EQ|Ia^S=qK8j9Iy>vok3>3+xaUQ15r1*4vMH-k~NY zr<-xLf4OeU(HvTdwc$>QVsM?qQfg-Hww|)w(fE}flAPtt)lx0AZ85ZzM!P3YPuBpu zIz4GQX`B=4@`f%`F)25gdrYI#mTiHRMj`BlpN4SV3>xj>^#pw_p3!SNBqur_%-}Fb({3Vq!raSJOb>jsf$Mg_Ll=3M}zGh0*jv{cQuF zqmjT9Ni1sMYJk1%XufpWRdV7?$2CxI+916|kz;5kukQ^K6G~rle?6IYiE>rdD!AJo z!NKDDVl5bDbMZ#j3K=C~N*BvVzNyC%m1wm(h9_K{;$IbDeX@-l!VY^kdI9N8_1=jfHxh8T3_)wKnK|Kp zd#kHb=JVjpZkT2o*vDFxiHooYdyV1V)pyhI?)CaUwehdL_6Z^()SB zh=d#_`1@P3XpBUY8&RN-J+pLr$&4YwYPAf?9 zNv=0?zgF??W86>)p4GbSeVcF@FJrNNcTI26z+a}2%;xSja7^K`kr~TUVtBW8#)oO;GY8+ecXL81wkhso@Q7N{RGV36L4-Fn0@B=bZS$i$`@>*e=Y6L&Ng dUQu}td}@Irs8Us{==-D1xS|KJM_Czg`hV^ynJEAO diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-lr.gif deleted file mode 100644 index 7c549f96d6064d4b0cc022671fd823c13df36d8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 861 zcmZ?wbhEHbe8J4f(9Xcn@V{aEiR+JFe`Od2qaiTzLO}5+3p2>qIv@g+Cm1-a7??R2 z95yUC*vuiU6?0<4!o%$X%3gCkHZD5aEn%E>=fuXv$NLqWyJS2!Ejc+^BY0KJ$xTbW LTbP(wSQxAUYf&Xs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-tb.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/group-tb.gif deleted file mode 100644 index adeb0a4cf54bdfb626ab6f3c070f6e2919f374c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 846 zcmZ?wbhEHbWMt4`Y-eC-_}{So#PvfrK0JQ?m0=W&hQJ650mYvz%pfo8fCx~YVBpYZ yVCE5U*s$PWGl#HNOoc$h;dTLKuQ?tY7ai@EFwVMjV&mfD{R+-`G6D(;4Aua=h#nIF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b-noline.gif deleted file mode 100644 index a4220ee9066357ea2270a842ed244bbaadb23de4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHbJi)-n(9Qq?M~)mhbnDyy|Np_fQDQU%Mo=fuXv$NLqWyJS2!Ejc+^BY0KJ z$xTa7Pd7+DHOF)FGT%0aqGx+fZdP}nYuC)RmLp-s#l;?zwPH_gS$TPRz~V9<4hCxg D_B%R6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-b.gif deleted file mode 100644 index 84b64703006ca6d86d335b89f8d40b9fa3883c48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbJi)-n(9Qq?M~)mhbnDyy|Np_fQDQU%Mo)`~r~W##4N0gJundTm{G tbu}Af#?`K^tFNzT+TJAVU8dErDdY00*wfqA-ripD_|#nQ={XJz)&S^DQ3wD4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-bo.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-bo.gif deleted file mode 100644 index 548700bf45a4766e4633a2ad21cdd03a907e191c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZ?wbhEHbJi)-nu#f=+R-O3x{>OhHL-8jIBNqcRgAPa(B=5i!GpB#$>9_og=WMyv zz4@M01z+1Ek7>_3m%Tc*Z6(9;Pd?Yb^*;Y~?)yJ}o<}i97JcmS(V9N7;WKBi*YYc? qzIL6>+J0x<_w3ZJ<4-pI?D3myle6{rUd98@zwG+kS1-=MU=08a%|q${ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-noline.gif deleted file mode 100644 index 0953eab5c875fcb0f3b40babd89052b064bf9fec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 863 zcmZ?wbhEHb*_y R+_d!cbc5tmb0h^AtO41(Cb0kj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow-o.gif deleted file mode 100644 index 89c70f36fa653684087485ab673043ecbf615cdd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbO`C@~rWBPawEf3h$$FfcLbfcy-~6AT<} z46G~?3JVq-Y-VLwiqV*$aJZREUaCi9W8%>kKJB0>J3c15x5sMVlHA(yGnuN7&N42);+}s>}e3|KPvE1;j`8SW1{tiuYV6X-NOpiu@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/button/s-arrow.gif deleted file mode 100644 index 8940774785c25d4467b239aa608a9eee40e273d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbkKJB0>J3c15x5sMVlHA(yGnuN7&N42);+}s>}e3|KPvE1;j`8SW1{tiuYV6X-Nh3iI; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/dd/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/dd/drop-add.gif deleted file mode 100644 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1001 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.gif deleted file mode 100644 index da78d45b3214480842c62514af524f4aebb66124..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1988 zcmdth=~t5n8U^q-VGC;mBm0hsV8ubLEt_Ll8<8_(J7+8+GN29vjM%!ALxG`*vV;KaE8sA!@Y z4L3~1jhLAW4>!Ua947Tqg?%((Kh;b$Ko$&=1w*rGb*ec?N^AxVXqe@UN>0 z891^{u56v7+E|jCmSrZke1FwUW#X##SBxOn2(GSyLZMKlQmNHyjYgx@YWd;~fq0Ft z+7v0*1j;R;!o*jZMDlHsa!;f+iM1w)YEP=(muf+oW=p08<(hqkW|zMX3O7KpZcnTO zrMf+lxo?0HvrSO0Hz^EedrHHu(zqvI1C{Hb+PJIP0JWQ-Y#UT;feI6-)9Lhjy}@8G z8jZTOUH$s*&hGy1-ahdEdx6`Q=5Zi!^uxptKLNl%;1tXUNoYe@!v1h1gG9hjRlyIY zT+i)opRVyJ$m^OWcFfcd!goE+KKq624@2~*{(Gx41$X#rT_Vu?_+4{kc3!~LZ@o|e@KE%NaSqqM2CdnRrfg1wYE_n>MZsu=aYxhs@ zZYg1(SHAI5{)vrY3S>+Sr2G5!}cb)=Lak{l#IcWFsP=h z54sOE<$IwK0i|U>!mQGuh`69u9r$a%T`NxXx|!$| z=ac7y%X=&#XG<+_jk=4wnhTGFb+y-lKaBeiK%tbtM}APdfB|~CqPsh#af)y^(trRQ zEp@1acO7D$So@a(lTLRcQP%+{D$xQ)D?;t7^o`EZs~jG0R~!KcEY9V= zMfruL`9PuG*Qsdx+dj=Ii`&E0II=PwOPulj+Tj@q29JB~T2{m(hfi&|!E zBM$OTv98=N_;e}11gu55UTB%9W)-L))9jWO$gpd{tFfCL@43sLIsT;NS-D3u+AQ2N zWr!%TS6ADl-D$@0q>qlSMI`y2eiHE9u3$58=)j+XZx;IBIT;=;f85a*t?a9*L%6-} zN85P+E0<{PUGyX_R!^ME+)_z>Mape4XM92w`b7;YV!insg9^+qDfzUevNmaJNM0}502MlVmsU>iV}`Lr`6`Bb{t@C#l~>;SXe`ck9;fs%svkL zUAe$-+haTd`enn-;A=LHa#CU?4rl5R1@d8MkEOU&)s-HE(zl)`8NRsxz3AFuDKdp$ U;ezY9-WkTkP-6N%4gg~Q2Qp;nKmY&$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/clear-trigger.psd deleted file mode 100644 index f637fa5d1e12460beabc8b49968ebc0ac883e754..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11804 zcmds6349aP)}JgbA;Ocbf>0GuzzQfJ2%?B00)>YNvUCxIvIz*tj;%n8sK7&Q0D1CQ zltrLGX$urmTA(P<7APcb>E5(W(lkk%eQ6sqbH8&Z({?6l6~E8l?|bhhzmt2G|2b#w z%)MuF?;SDbgAWNF;rR%l=?1ij5D}P%Pn#Gda2|Dsn39*gv69|L?fuB$)^z-xcZ_{4X20k60XxFxV=MG&uck0loQ$W{epAL8` z@TpFnxc9s0xL3xsevqPF5EIuLxGK)@FY{NO49xe089u%ln6UW4E9?>u#0o8GIs42h8( z5j{U9=|;dbx%q`xBUW#1D}JhLx2L=J>D%wcpqGXYdu{lL*GIlP_PufACj?LYaQcjy zvqD0{<}X;dXz?dYmabX5ZvBRhpGSVV?W?c9*}h}v?mc^d*!RyL_y6nYvE#p-IC(1W z^!W=HlP_JCrd;{;x0|R9vZ4sjD>ATAkivwb>ocy7~qej}Ume z1HV4~f!ojH3xxt<8{8ire*=)9qtLI{VE<0

      o7Rp;JAVnkiWNRA}kX#4!D)64-8 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/date-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/date-trigger.psd deleted file mode 100644 index 74883b21c54ba3552492162863caf022d51e43c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12377 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 BA5{PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/exclamation.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/exclamation.gif deleted file mode 100644 index ea31a3060a36a625cb5cfdf4fdc5cb4fa5c3b239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 996 zcmZ?wbhEHb6krfwXlGz>`0sGY+vu>b$x(l^!y&e3LT!$PJ06d9I~VJ7A=2?olFzvm zzpDxE7n6N1CI(zd3A#}bd9NVyZb9tbn*6)9`43}*9>oVgP7HaP6#6VR?0I_l!meOY(6|dTBUw78N>aBj$UH@iM{ilZ1FAYgw8_pbc0Z{x51oBkf&`s?Q9|Ns9pjDkTQ0*XIbm_d%z0TG})!N75lfssSTW5a@j z7VZsy6h0k$;Gk@@Yl-LKR#u*NrzJaX3aNBVGqZFP(Gfc8+b>uAY)8hyXKfvg1xYiW zY*bF=5>dbAA)s8qF(=rm< znzH#Wl@*DQugyk|h0s(J9u~z4MZR499ryhC^~?K*w-=e{wl~-nv>Egj1cL7gguBx% zT)Zq@NE=-Nt6g4JyGT~9fVo?Mjr%bh_W%^(#8yHO+#|w*$V3wYFrM_Cf1JV+84je7 z9ROpGU-)jyX(BU$6nbeLjSW4@*$~LtaEfn9=b%FPo5J`zLU_AExy0xc;4Ihg&$RuV zvJGs78Rz*%p2AAl3(x<8lzp}-|FX4l%|7EfIvgRBjB8tSQLP1VZWEF#ywdLj z>2hyD&Cz7(vFsX(us-NkLs+sfDkV2EMfeY2cqXqlT3nl0R8N;Z551!ZFX)PvHbvg; zPAF=Ql@G){8oW?FobYU%-aQi8(syOzQ{37bFFif|+O^~xchYiY*TsbylHyFUEVrOS zC@mHh+?B~>#g(;XRrU9uJgcg0tgWkKmA77d(0=`qGNYy=^WpQ%CrV+BN>bPLw6R6f z(sR2_!|q(n>iQ^DjS2e4MK5Qv`<8AFEsF-0Btwh&iZ>0-?TxLUQpLzh z&8rU$BjfVd`o|+*kbdR$!ncucOIodVe0*G|(@jlJ&&BTL3F4!sWQKrZSsrbm`jlswPRiNw~ox#)EssIi3K_U?mR$7V-IC9eE}g* z5#SHoR>a6~NhI<=Q;WTt%?}Qu9NUN;+@wtJJS0y=!z59V(h!KT_cmHu5NujLLCxE9 z_QU0%P-;FGb5tI6*gk|&C@tm`|9+v*B6nv=lO}$S+iOD$Mn~aW%lOvrmnW;VvcjwTy1x_M|Vx7g?UOR%A{vxR1=O9xx`_0#)mAz z#O%%n@__a?l=898*N7xDAiI1b<_~Z{nslUk?g_Dey!Eax#h5@k{{; z%`faJ5{8R)QaC;cQD8x5`VzNXi1Wqp3x`c^8P{6P{gaVWuFtYe7c(1?zIg}q~%W>VJ1sc%Av?5s&yuiMsG8Vvph~HOnJjUP7z}R9x z!{}s!KCBJ0F`$WM&Ver~;K&ocSHW(s6Mh)nO&1ErxjYUP9z|fJI2_q7U~QAux`?+R z3gs}A84lrf=7C(=X6VrsYzT(A2H$czA`b%`i`+&{!uU_X)(G<^EyNUO6=M{u;y53QM-q4Y5!fjNf2B$c3=RvJnhbNor$)h(^K&^hwf=q`1g%>cIxsnNp85qN`tNhU3jbmaN?09D@dd_WcK8kleih diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/search-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/search-trigger.gif deleted file mode 100644 index db8802beb370d7554d5319c0e0d5c4ecb8da2c5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2182 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 BV7LGP diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/text-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/text-bg.gif deleted file mode 100644 index 4179607cc1e9486dd6fcc8467c79b5b41dbf4f76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 819 zcmZ?wbhEHbWMmLxXlG!!_xRa|&!0bk{rdI$_wPS{{`~#>&!4}4|NZ;_|3AYh7!85p p9s-I#S%6;r&!7YHC@4=ba0oCkvIrP7I50A^3uwfgFi>Ey1^^@>A+7)b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.gif deleted file mode 100644 index 3004ec589026c038e7d056e2b99e3a877d1ecd50..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1810 zcmeH`=~I#k0Eb@@(r`m7uUt*s$}CGwv#`U(3p3rqV|JbGJ~p>wuw%A$t1UBIwalz( z+{&#$%ZT+L@5&Oi)(njo!2=aJUO-TkLqNb6-<{omV!!O~!}Il-d1iizNhCtlp<{qI zFbe>0K=r2)<>eaTOHke`M`}Tc$K&-w`Z;)h1NmlC>qos_ACXo(VMBP*8NSR=2g;eC zTse!>fe=?>)ai87)6-h5_EoP^AP~Uz`M$nBKA*3fwW+K~cv^AWkZNFHpqV2d92_)R z?LwiDBeg?jq*rY07MUBnWnJRA;o;%P^jikAjW3;mVK^eS*lI_(V=4h;GFfaNL{^bV zWP|59VCLdoYHQ)h*?r>{i-ixF%vSq=!rTU`t#k0} zUggI0TWvzs=P^~+(A0Wn8IQWMaOQ0fTZF_<#RVfdDJ| zU-P$Wo*?VVKr zv>QMX8JhcNpY6P}`bdd8lUmhVPVfpMuo|9opEw=-v~3MQ=RHRG1nv9Oc-)Z|m)zHr z)TI1eNurS+6-EBZuS;&Cc#vt;!iFD%gK}8SH6tyq?@1m&3uTYPa>Im(Gk9&3h6-_B zp3}k4Vn(P0zi~{h{VkGnsuu#lr^Ct719}PhhL} zwJTGMKb;z>Igsvlx}rs~`R#5PcR8;)iRvvM|Jk(+(lJoch!ov6ixFnDlj011>WQkv_op8RKJdoL^uEJJCSo!-%b_pjdzFFrJmJ5u%l|L{a0h$@c| zQG*K7nT$MuxPuq(trliLXcs$F;zO;`Hcjg#WrSFHN-C$kgd zQHVYJk}Y{TLeFA3E+FTQu8@r5a-tocYEMo=ei(-!z!|5@yEuY}*X6J=)3sNTi&Up} Wr&xDc=v65PKOA33bU>qlt$zauvnrPW diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-square.psd deleted file mode 100644 index e922ee65de361157b2c9bada8704be67a50510ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36542 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 Vn+0%uFaj>+OMzhhbM}qFe*^Pn6NCT& diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger-tpl.gif deleted file mode 100644 index e3701a383107e090fe25d3fb8d63aaa9290435e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1487 zcmeH`{ZrC+0DwPCBIojs3o|_0?P^-#Ox&%!R?e}@xx}{YYR;I~>N*jn-Qn&=-p-KA zeA(%=S((N$6_|l9fQC+Hxi9#N2luQwPBW3%=l!}^GELum-8=KbTwwF%Rj%DgphgD1_aTFbxxSbc_7 z*tiC}T&|Us6}Q{%@p#OB*cyNreCzg?@X|W$2*O^k*XQ%C`Tc=FAQ%j8?6A4LxwQ?$ zFnGh80{=sSgX_p0D-7aZyI(&6LSe8g^uSq3699<4vDu>uKv9OqBv(z-4-J(@5=c^c zCvT(%gPg*qb@7!*M7$td*%d>&myq6H6@|%BvEwc%rj<`}&sV>d68bLbzTg)ez92R{ zL%OWyA+pbMNDmz0eA2_8Du?G1p`W#a zi*2IW=5FT;Nm@-f=nK&Ju|GKH$G>G{YFkTqB2{y*&pLXG@cG}HCp8gjUV5YGKrX;c zKcN|~+$?$NF%5hJAHnq}74oAsZQo5Wi&P-SqG~)}Tn55ltvZdK`IT)rc<_XRg^Z+L zEoNSBGTq*jc(eqdQjVJMM2OG;fu#t{Wg$qSxg0~TkXJ<4QMskK7QwahebOaMWkPZx zRCQcO<&}om1lH;#2Gv?~f?O}Zn-ZB9UH!@7hU*~W__FO@Msfvo|59dNOf4yZWj)Bw z%xm6#wG3~s&!Wh#gS~vA{n3r&QHV_+#^*Lr;_-`|0`e>QZ$*LSBb*;mXnE6}$b132 z(DJsR0TJCw1C%R+wAP Mbv*YluxN1lKj3usvH$=8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.gif deleted file mode 100644 index f6cba375ae3a96c87639a5b3034d204953d1db14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1816 zcmeH`_ft~`0DvC>l)V*M8qq2uh!jyON)b6kq!482iD+?8gcdhyFlbZ|=|RDBw1|nK zYy=g-LKp%@NJ7F0kj2X&VI?8&k(c$_{t^AH-#_r(eRtok-4Q`Qq@Dnl0SotmX1et2 znD}NDyN)jG6Qb30kilRKf(n0Ju2yFdDUimGJpp_36beNxUC5kJ*3g9v!Msd^{)2b{ zt)YWDy+JOQ)A*{nxjFfQrm0UnJ3HGlGWq@9yh#Kd7#LtOnJgA-XlMwAVF=L=4-dbm z3fXKnRiF=ye+a^8A5VqoQJqfL&C@akG8PEYxRXj))60QJM@IwV@*uUQp?9K-gJ^UH z4u_-FYMW@18U{!cz;a0asZU(Z0H>#?IrHd{2&N23`ni(|NYg@>b`8qZYBi$ODPSFh z7`jJhAVkyHJFzMLVGDbb%7s2qg)pKQKO~dc9tw(M&*S2TMv}O{ul| zX(hr_p*$X+#+A0Sq=O=OW@d&4Y7hhgA#_j(ixyB=hq5JVKA%tHNdpt|spDd)a$!U? z)5sF_^Hs10Wr_7%E*AvBz=Vf`lc;0?RY8zKjRwZ&(}g;vQppgb43Ta~iVm}RDwPWO zpZ~tVO2otn0PX`m|Em6d0x&}XXEXQ6TK?^DjDz>V9vskq*Um8{ZzSEb>&{ZYsD`$> zm)(zuOII)3T~F#=j=_{4?5+PUs&M0;zw%rhk5ixe#BCnweRnc8-_pj+BdVzUj`_L_ z?#D?-(@DGs1nWi=zJ{hbxhrf&%I9P;z^0j13zsoCgUyB!LQG$M=6Bn zEAz4?W0%OlXZ*aUKJ;U)pd(AW$gbc;9oStk74bN_sb181!*oCQpv$^Dw9=iqU&fOF zA~XHNGjV!qu8eunzbD^*Rqi>fhV#@l+mqU6##_(wB0iO=C7ZkUxySYgSDd!7KA4`t z06t~PYMpC;jw9vdJDi-&MA7~e!G~Qkj#U=LMSSMXfRx;YLuK16N&BjCr(TdvP5rdc zt{pce*VU*awki_c3{bJ8r)Ojoe=08|_7OJCv7kK{Qgd2!MVLiRi_8Mw-eFrw8P7v;1u9x z-}%LDSypYcB`tYg>w`BBcdlCOdCe)M zfedWoWIDv&Q{*sXo@UiMg$8V^0TPUXMplY3&fDl%31>0(Zc)nn!H}aK4fIu=z6)kv z-+Z?)QwhI?k0h;tqPxe!h}L*+mSyQBc8+_@CEm253L5eZ-+%~}u_Mh*3<*qT_XkyU<3LnMio0A;#iIPH2>?PU+mB(da-cCK;QqFvtUd_gzW zR3d9re%ms)ZMLbqzj@+o@P+O3jjpA7c>MCCZPR2MtU)a-vAv->;ui9GR8TT!P_r-l zp)l_j*PxyKbA^6(s&E5fn9Jqqg!@{l99z5`bkz(Dw>Ii+vxSa)plM$yeY@T53FcuX yYq-rg40qd+b;#6`NHN(^kZr9xY#!i+x4U-1Xsrs12{a3_fn)Cim5HGM5d1gxR!0f| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/form/trigger.psd deleted file mode 100644 index 344c7682409411be63023e77ab2e2140403a4fcd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37599 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 HPl*2qO$roZ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/gradient-bg.gif deleted file mode 100644 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-left-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-left-white.gif deleted file mode 100644 index 63088f56e1c33fd23437ab00ef3e10570c4a57fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVC0bDXlQU?ViVMIiI|XhxRH&WjfKG)0LI-8@c;k- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-right-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/arrow-right-white.gif deleted file mode 100644 index e9e06789044eacb8a695cd1df46449bcb2b9aa07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVB}zNNKj~OV&PY_IbpESp@o^1jfKG)0Ls}94FCWD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-bottom.gif deleted file mode 100644 index cc1e473ecc1a48f6d33d935f226588c495da4e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb( zLO{cVgpLOZ6Fwx&_)sw8LBWC#1q=Q+toSft!~X>b{xgh%(GVD#A)xq^g_(hYn?VQU zd{CZX;BaIR=ZFzVT;Rwl#vu{Yu%W4$ky$xng~3BdrVc>?i4_ctPK=BUEM^-R4mL70 a^J-WG2rw*VW@C5a%Q0YR@NEQ2S_1&+BRBT| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/col-move-top.gif deleted file mode 100644 index 58ff32cc8fa2aa1be310b03bb2af77c1b77abe93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 zcmZ?wbhEHbG68wVGIhem=U(^LUb4h;c?We$u2%uEc{03e(}^8f$< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/columns.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/columns.gif deleted file mode 100644 index 2d3a82393e31768c22869778698613b2f5f2174a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 962 zcmZ?wbhEHb6krfwXlGyuEL<5_v@*CDh*pJ^t_~?(6IQl1ymDPc)rN@bjZrn5V(PZU z)NOSrd+hMvA+B+IeDltP)?JCMyOZ1ZrgZEJYkQj3eITRnaL%L?Ia5yNO*xf6?R5V1 zGX)b57R)?XH0ylvoQuVCFO|-_Qnuh~<)Ryvi*HsfxmC5~cGa>w)ywZpoH%jn)T#64 z&D*eH!>(Ps_U+r(Fz^e+YaA8aNxk9Lx+wXJ9gs4iBqReojG&n z?%lgL9)0`&|3AYh7!3i+LO}5+3nK#qAA=6a7*L*I;F!-K%OT^jVZp&>mh3YgjfYq| z1(lp?K5S5QW|J^Yxp3pe#^mFCnoeCZo|g`B%4>LkiP*V`#cPUi%)1K8vI{DjqJ>lyj2t2o f3la`CGVn;rtSCr4)W)vpHOFJ)qNAORj11NQ63h`c diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/done.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/done.gif deleted file mode 100644 index a937cb22c84a2ac6ecfc12ae9681ab72ed83ca78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 133 zcmZ?wbhEHb6krfwXl7towPL}p0*huu%~roJzC1V7qiQ)z(xVq;t8Q*e g@TwP&*%vbDj%DY0^FxMh_Sd^OqF)Bg*^}7&&A#5)LvkG7IyS zOnBJr%r7CL!Q$}XP&==XoWqO@51m;T- zPZpr7|1;=-+z!eU3>@+d`VlJv8V|8>3M$wXTxdAR#L6ikV-V2L(7?dJ#=^p24FK}3 BP__U7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-hd.gif deleted file mode 100644 index 862094e6803f522712e4d193c7becd8e9b857dd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJa`*r7`~Ocp_<#1%{|it4Uw-=k+VlT6U;e-I>i_*W{~x~l z|K$Du=O6#S`uzXxm;WEW{r~*q|F@t2fByde=kI?YU>F6XAuyCfK=CIF(E0xvbU>Z} m<=_zzU~q6?um%8<;zWG_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-blue-split.gif deleted file mode 100644 index 5286f58f6f798184c3eeacba1352cfd39b9ae03e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 817 zcmZ?wbhEHbWMbfDXlG!Ub?iS7FpPrH5Ezjmp!kyo=M_wPS^_`om@~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-loading.gif deleted file mode 100644 index d112c54013e1e4c2f606e848352f08958134c46f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 701 zcmZ?wbhEHb6krfw_{6~Q|NsBg$>(oA`P8%SHjuGk&%@0ppYOTwO7TCppKD04vtxj( zk)8oFBLf42;y+oZ(#)I^h4Rdj3>8V47nBGRLn+Q9-(eXZMC@T`q-A zfguTok_rhvuF+B}YGk&S-hZ1Y!QP;7UE)!jv*adK6)hob2AOf}GE&w)<#=MknJHoV zY^}*Md|xE}K6*MO&RAU_^MUKk=Djk=g^pDJi6uprK3M%`#IdVL zUEAw4e{ zmg0{~p6|Ie&p`6H%mYO|r)_gjg|As;$iv1hQk=MZgX#CFjEx2xI6HUG&(-w8Y7Wpj zcm93g6udbnGzoX) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-vista-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid-vista-hd.gif deleted file mode 100644 index d0972638e8305d32d4a2419b3dd317f3c8fd3fe2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJe){5xGZ#;uy>#l_<(QpFT5;g3%Bd$|0cmlLhGf{|q`H nPk{0S1BVoYrq2Wc#zV~Pyb=r?3JDC2Ol*7#9t#p29T=29Ey>tSt{5 zHY{*#Vsg}oIT5h%K(m0QN{+|JM3-h^O`|Opf{7fxyq0BWID}eGbgMYd>zNVs*sDWV zoA1qwjZY3uXHRaM;~D(iZJx6IEfY?Wr2(@o4CQoZZdq`CwriwbsHEt#km;etaZ`6L zTz!3gENh*F_qI0?jS`nu#m){}(7wIk@jlUvh3oF_E@dsdaeDjvxJFSXZaJBV1#O2r zgyqE~6rDPbPjEKrQ!sFDJ262wU4TQ;rQ!Sn=9UHq#|Nzf3_+{e1Rfn?ZRD4$;FDGQ z#@r~Pu^>)X$(*&3x9Pl?tj&%CoF~dRyY`d67r$SB{>v~5Mnhoag@EEu7NDp9Gw6W44$2b@93l*? Z95Nmo7Bnz$2y4ZhC{SczU}R*l1^^j55kLR{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-hrow.gif deleted file mode 100644 index 8d459a304e0b224f8c28d6b7b585da7019d28cce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 836 zcmZ?wbhEHbWMYtDXlG!!aN)x1H}BrOegF2|hj;HkzW?y)!^h7bKYjW6^C!b77!85p z9s-I#S%6;r&!7YHC@4=ba40eea>#gWNI1yM!7mYUVnf4WCKe8!85Rx=4Ga>@3=9GS G4Auam1ttan diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-rowheader.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-rowheader.gif deleted file mode 100644 index 2799b45c6591f1db05c8c00bd1fd0c5c01f57614..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uXkcLY|NlP&1B2pE79h#MpaUX6G7L;iE{qJ;0LYaF_y7O^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-bg.gif deleted file mode 100644 index 0b4d6ca3bf28ba44b4ee215fddf936aab7cdd5a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHblwe?DXlG!!aN)x1H}BrOegF2|hj;HkzW?y)!^h7bKYjW6^C!b77!85p z9s-I#S%6;r&!7YHC@4=ba40bda>#gmIKarv!7ZX-kkHV;z{nslr{jQv6El~jRSSoL H0)sUGu7M?* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif deleted file mode 100644 index 1dfe9a69eae133929f3835ffcfd108959539b9e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHblwe?DXlGzpb>`cJ$GN zbN|hshj0HpdiUqa`#(?L|9SS|&x?`0o(b_B3_s=d77u3+H|!r zfbs+bM-c-fhm6OD1qYj1`88rr6eKbU2cZFVdORzJ@!m~?8+%1KMTTg@3K$aq~=^PX>8{)(q7 acp2+dVHKAK1EYrP>l5}X$w&(@SOWm68Djnb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-collapse.gif deleted file mode 100644 index 495bb051dcee00b837a948af56f7a59e77b69aa5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 881 zcmZ?wbhEHb}Lc00Z?nwEzGB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand-sprite.gif deleted file mode 100644 index 9c1653b48dbd2d4bb00886c379ba3a66813737c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHbuiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$?_tHlbAgvKT&29}T*1_wr_8B7v4Oad0D zH!!O=%UO7AS#fc($7HS8Q(IPEULLU6Yp&PURaaMg26lV0F?{M|skyG2(-{0TB%q{1$Bh!Jw8USBOURwYF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/group-expand.gif deleted file mode 100644 index a33ac30bd2b3758ab2e003f70ce638ab77eaf101..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 884 zcmZ?wbhEHbbN~|U;Bpe)@m>5|?LIe~TnPxDF-7pDQklw(o P-YjR~vE{{q1_o;Y#^^iR diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hd-pop.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hd-pop.gif deleted file mode 100644 index eb8ba79679eabb7811c3d9d1c86c43bcf67552cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb_??HKjfkTCXkweD9 mfT4kbgI~?WW5NQ*7JhN9o*xBDE*)ahRw)@D7aeL~um%9t9ucMh diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-asc.gif deleted file mode 100644 index 8917e0eee0cdf7758e83c4cffa7a7239f72b8427..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 931 zcmeH`u}i~197Zo~Emb-ML>(No#i13!1{`|2)F4_jl^X=3LnUJzge<}>RZc~zP~kV; zB68w#pu>SnK&adpIt5*dn`7OIQ?33Dj(x+oeanNlwY^!!2PQI6AN?^vMGITlu?Sc$ zU>9uS*}igoaC}8PN`jCCnovooc75v7&|^Bl#h|GI2x(JLP!wWjlNOK|~-m_dM?T+-E!pI0dd^5l}(d@Glq_swQ5Q<6ypk{;!;VaqFyLusAH|W zI_^hNH}3WaBSr@P!$9skWgujrrQZ^Mn?RWcN@fn{AM5KVovc^P{B4D$=SroI5_&zI zNSF`DRwb35%9fAbth<-%@nxq_$~TO}IN9OvPh(dz1*g;6JvytHv(;6&xjkRcOr!mB r{VRFNa;Pe5osHT>5@ibIb~{3g+0C%lYO~3O6<&R=-|w9m23q?84YkzM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-desc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-desc.gif deleted file mode 100644 index f26b7c2fc5836850958f7f2b1fafd3988a988d7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 930 zcmeH`u}cC`9LIl>nH9kiSwcv;h)RPe4nCSX#PT4JtLbR)IJcwe#y6z#3aSf)9!+l$ z;%yxW@kSwnZWM)ZydeVHiWX}!?QdxG!)N_2ANcN;ig{#6Ai)s+7(q%#GE!y5mQ{jO zj5MrhrlNCIcT|&WCe|#b*{*J3-4-SmmeaOT%60^HIHrQgae`8gf*j^igs3uBp{hnT zopO)5V>`?=nQ1YLFxzIBGSTNY=9rB4oG{nnt~U^b3F->w3Rehk(B^L2>$m$u&+|JS zzvF-O{o!cJw7~xri2now00G#VJYn()2%o@AE8lw!UPJ@SiC{BRyCfUg+)-YByjskr zv+Ug{Ji~hAw(%`jAsUlHdvfpXd_GaEWO`qB`!@?~^gbD{hpr>BT&DZEGYhLy?xoZ; n!ca~nNw;=d4=v4s)H*Z{&Ndrqrwj#{39jU-m51Y}8o>51Tocwt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.gif deleted file mode 100644 index 1596126108fd99fc56226b412c6749c55ad5402b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHb6krfwXlG#X4~ou+bjZoeOV2FG$|=q-C@C(jDlf0eD{N@b6W`Inv#*zP ze=o<1{(yu1+=nJ`ADhB`dOG8|nG9#s|^2dGCVn`{Pc*@>k~$=Pg%ddVgCO)!~fR||KBnE z|HJVAKg0iLR{x*dJ-;0I|GC%y_pblnMF0Qq{Qtk(|NlOXjV)~*Jzd>>6DCZaK7IO( z88c?ioVjUP%kt&RSFKvLYv;-0XzkU1m_xG3of4~3u@#FvBAOHXT`19w_f1o=? z!B7qX#h)z93=CNeIv`Jg@&p6N42G*5G9DWiIGRQ-bEs^3`rv@RCy$K9p(kC=rd|^` zST-*?>B_{iQlwx7E2E<(Ghbe(62oy`Y27&t0f`^nn;9J1SUxr?H8M5pwCs2h(8SWt zC8Qv+=HXHgep#c0o(mriDDdjJR6ObU=;Xr2&gPqN_0-kZOwH=MQtsX=WoB-cUnB8y dW3n5EfMAf!nn#R>TRBB^*6i?z@O5CY1_0nG4B-F( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-lock.png deleted file mode 100644 index 8b81e7ff284100752e155dff383c18bd00107eee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 648 zcmV;30(bq1P)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*hb477vONgHQkf010qNS#tmY3h)2`3h)6!tTdPa000DMK}|sb0I`n?{9y$E00H1h zL_t(|+NDy@YZE~f{$`WrhuKPySQAA=4|-5UL@Ysj^nd8hiS;2Kdj#HUllo z8f~>&*KFH9Nwz?Ckui3oR;%3`NI(gPUDtho|G}f2_3e8bT8ASerBbE5)1bTYdcFQ| zZM?C8k+I47`6u~>51*b--wCz*ER>uRr zeV-UkHLH%}72i$a+1i|RAKlWyIlu9^60fuoN4rrzunmYfG3Rj9y^HEzZv5(CEO81y zUYkzkSk-KQ`3%0SF=Q~vI7Aru=z0O7P{Z@#ja`PhX$8v2D-^Gzc;YIGcnR19E(0MI z;kZD@0aiO(XrN-PsAlqHZzKK#l1tJ_)zheV5(%VKYS5UK?$7C;0+>qp-G76P-YrWc z5ZrIlD9FnLDKc3)8S0<dA!cTgY+CR4-a*;u;!NrNF3LWTlP5a1_; iES|Z7@j-3=)A|j?vD&^)Yn&Va00007>1uYXA>3Qh}beSb(Ur!W`$ZoRvwlh8h#GSA{v3P9MZmob1&N}#H|)3 ziyhJ(U{)KHf*@)Iy5?}L)|RKuO{O%cx#h;IvM2X1`q0Jo18y$3o31q0)ZQR~04YGX zfXCOw7l;j1uOz`;`%xPF|1H(H=TQ-Al80O7c-*kEIp@ZM``Ch}Whn7a@ zEo{qiRYg+i%R z4h#&aR4TPvt$O^~PNy46p*I)|Mx)VWGFdDZtJOL&G4XSL3{j3aZnxWK zXJ;3eLR8p^IE^@iXhU=a0)b#Kw7t0&jYea!SUet2Boc@bilUOqB;u|J|M|xX6jAAP z03n=6?Mi(Dm?nrZ^SKu7#oi7Bm%1nSA1H5qaf|0_D`c0ZeXQSbMRJ}Wp^ujFWEojX z(Y1{1lBcW8em3h3o6B)FgQ$TZv?6jQ8yMxx;o>^&qx~ghy5ef_6fHB&ac3`cuq8MD zSbdMbr>J*|b@#!#g0h@qxe*x=qGVcHY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-unlock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/hmenu-unlock.png deleted file mode 100644 index 9dd5df34b70b94b708e862053ef4a634246acc8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmV;q0!ICbP)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*g|-5GqRX(wr!towOa3bz1}%hRS$Ze*UVXl27U>F*+kf-M;&k-s!`fDVCrZezlf>dy^3`BTW$z=L>EIW zO>?T0B!*En2q>u<@}12dniz6|2?Qm9qx{jpBiX~P{FQ(#@rTzxF``)#1i>x@j&6Pg z`g9}R!YZ+#Bpq}r3e{~P5}$S=h*)1OVUmx@SN9wqKg;4@^1P3fXJWAV73+q9*IOoT f&)vjR{Ezq!d`RXXnklE900000NkvXXu0mjfw|6I- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/invalid_line.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/invalid_line.gif deleted file mode 100644 index fb7e0f34d6231868ed2f80b6067be837e70cac44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHbWMN=tXlGzx_z#4mU^E0qXb33&WMKq(T?a&f@&p4150I4La9D7liGhiU G!5RR1hX@}4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/mso-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/mso-hd.gif deleted file mode 100644 index 669f3cf089a61580a9d1c7632a5b1309f8d0439a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHbWMYtKXlGzpd-4Cei~rYO`oH1Q|BaXbZ@T<{^OgTwuKwS8_5ZeO|94#b zzw`S4UDyBbzVUz0&HsCE{@-`&|NdM558VEL!C+hQ;zA>HJFm1! z#)%1x%x&D_IuR=Z8kt%-g@N({4h;>A%p3w50S6iynb`#tJSI3aHnDO`7-U>H(Adn* Pui(%j;MmmCz+epk$!Kdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/nowait.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/nowait.gif deleted file mode 100644 index 4c5862cd554d78f20683709d0b450b67f81bd24d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 884 zcmZ?wbhEHb6k-r!XlGz>`0sG^=;33>fanOrC>RZa5f%c9KUtVTUe*B-pgh6A5y-&E zA>*-O!NDdb7MYkC1`iK4@=0rzWCSQRbnt4Ywd@dF=+rMIANR*%(jvDmG5%#TnwOp& kU}SchrxH17*#QO%<_$5P0_ncfbgjEYUKG8!(7<2~0Pia+WB>pF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first-disabled.gif deleted file mode 100644 index 1e02c419f5e73fc1ba5770df0448d44adf856288..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlGzZPfyRu$tfx-s;H=_udjFb@6g=b+}hgO*4EbE-rn8a-P_yS z*VotI-#=;6q{)*fPnj}h=FFM1XV0EDZ{Ga*^A|2$xOnm6B}gPhY%v@z$+dw{PFR zd-v{x2M-uV!Dt8!L;Mq+#E6<8x|aFW_O4e+3))3Q*|Q=94?bWMk!6jGP<+(r$fM>Xwqe7gmNr&4?FkK$jz>EMMFb>zJ~*Z~ zvMU=|C?p6pu`gocw@ENKkig96%Ptk5a9{xwcPOV4M}k2k%Q{v@i4+D0okN>5F7xql HFjxZs_zi%( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-first.gif deleted file mode 100644 index d84f41a91fca3a0ccc1107a78ffbf7b62c527afb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!N5_)V9X)ov0=f%X7nX_llo;Ppa!i5VLFJ8Q4$&%&Em#6pV(z;0OW5pDfG_ z46F<~Am@Pc1OrC}12>0^$A$$5o7t@;-Y_UNJMxKf6&W}lT+k*Y$eyJjc<@21kdg?` z9)m}X2f37ODg+`IICZeGskVGL@ZdlLlaQT?!H)&bz6?zAIR*(A8e5nhSgkHN9C*OQ m>dC5ipkT8?(+Va*AAy7q4&fY(0%9#)p=)k#W@Tbxum%8@3U^Ha diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-last.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-last.gif deleted file mode 100644 index 3df5c2ba50b143fca7d168d5acbcc4404b903ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 923 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!N5_$V9X)ov0=f%X7)sh7DeV(M==$yO&0_YC2+|IvM<}Q z@ZbVY8B+}&lf=VK2L;XIwg}8jWa;H%bG(qjsCck}M+|z`(?y z1M&eVPcU$JFtBpScx+g3u$hC^!6V}XBXb*zY)A!1phGj4Fjq*7gQ62lFOR54M?r!E kLmQ{U6cz@-#wJD`MJWvdVWq}d0_-7oPHt8|*uY>70KTb0MF0Q* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-next.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-next.gif deleted file mode 100644 index 960163530132545abe690cb8e49c5fef0f923344..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!NB3cV9X)ov0=f%W)9;69vKr@Ionu*A5?G{Hgn3DYJ|un wK6d5q<#D`_!KiqUp-ntt3Jb$U#ts%8MWY1*!jGC}2?&SWIk{Q=U;~3S0KQg&YXATM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev-disabled.gif deleted file mode 100644 index 37154d62406ddc064dba311b95f554e49ad38003..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlGzZPfyRu$tfx-s;H=_udjFb@6g=b+}hgO*4EbD-QC;U+t=4O zY0{+0lPAxdIdk5;dGqJbU$}7L;>C-XELpN*#fp_HSMJ!cW9QDDr%#{0ef##^yLTBz z!Dt8!oe)s`$->OQz{;Qlaxy4SFmU)VaC69bY*=uxnSOV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/page-prev.gif deleted file mode 100644 index eb70cf8f6a3b7f524bbeb3656d875a823b27fd7c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!NB3eV9X)ov0=f%W)AK)kBA8^Y;DZmPc|?ZI=9Q{X*oQZ zkbJD2lgIqQijPiCj2*mD6%7sx9yN0CvxS^laG;@KrlbJNftid9=jS`{vav8&0{~Hw Bh1385 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/pick-button.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/pick-button.gif deleted file mode 100644 index 6957924a8bf01f24f6930aa0213d794a3f56924d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1036 zcmZ?wbhEHbA}e@6f*BUeEG-{mbu9UVeYtn)@A#A9pQ#+`IB&@5(0= zRzH}y`r(9CPbRH>G-dUZ>1!TLU-xM0+NU$tJ)FJ%!HkVh=4^U8ck{CaTb?f6`F!=h zms^g%-go-h&Rf5C-u=Dz!SB6~|L%M6=kVF*ht9t`fBVhRyMGQn`g7pPpQDfe9DDTl z(5wGPUi>@u`u~ZCzfU~=ed^KQvyc9qee&n@+yCcY{k`z?&xIF%F1`GB>D9kWZ~k3* z`RB^(KUZJ||Ns8~&oBx`LjW}d6o0ZXGcYhR=zxSld4hrCB?B{ujK>Cr zPF^XagaZi+ome=9Dmm#SD}7El7CSA;=KXekY^RG>e-{ zuuVYm(pR@|5zQ!{2@Y3s!WlFkEt+xRKzr=&*z_|U*@qgNWbB##KVWn?)_GXn$>4`} z#Rk5^9iqw$CMLJ{owi8Xkg$-crJaR6?!tz^#b0>Dw8Q57c+l9;Af%gcqV6G6E2r=p gYaW5X0}L(q1$Yc3_9+}>;A5Sv9e-|5r2~UC0H_cnr~m)} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh-disabled.gif deleted file mode 100644 index 607800b85e4dee8c3922d56b8666dff796603d6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 577 zcmZ?wbhEHb6krfwcvj4C^whZzA3s&pwcWgXfA68=hmN0FxncYD+xH?8vYI<5Oq@1n z`rJi%CDj|Z?>Tku;-OBz~m8F^(Xxn=WLtiN>a=Bx$F zE?m8F;nLL!Q)l&0o9h!C(=%n(wOe=Z-ha4p+phfwkEZ5Vc1)PQY|Z9dx9>(KWnH~~ z>(S$RNmD?mv9-+Rg2I4_CJIHMaG% zPnb4+&ceq}p0)H%FR85Wo;q*Ux=pFMWe1L)nlNk8yoJkV&R?=-^RCpKQa9hQwEXgn z!pip_KJM6ec>m#J*KXY2f8^w`6Q^e`TG`P(@#U-6IYpHfO+D3(9i5ZsY}~%Lv1{Uq zvlkaGS=HV7gkm^w5Q~jme)4VU$mmSscZUz74w#^?wB~^=g*%RMb(8> z&7BjcKYH@~{)0!8XDuwKZoPH){;G{T7>EOkKUo+V7>XHmK*~XJ!oWVSp}48JrL|2t z%F8=3u&p`0Ak5C8$Vs=)FN>E?AUn<7Baf4*MT)W6--OM=GeE4bSy-LLSvqt>F{7&i zgQ&TE6Th`WhFXr2Y&0`7J9}^ww@;xYgOHm>TsTuQk6BY}E(5EeV_RmksUj;&zVVJ? zqex9(HbbrEkeHTKIc+_OAiWO?j?WH@yUQHepwOi1&dIu?>P1B(15azY1T!OpH2`<~ B4eI~^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/refresh.gif deleted file mode 100644 index 110f6844b63f04ee495cb6260aadccc5c91f3245..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 977 zcmZ?wbhEHb6krfwXlGy$h}b9*vsWVToJh$rg~Ib{73bBfFRNEyRjIzARe8a@{G?U= zS=*`;&XtFqYK{lh9g^y}Bh~OmX2K7phHF|4mvmY#YBk-m>AI%V{Zwn}AFb*CO}Zah zE&Ol0{J&TG39p`WUhP-C+HU)IUUQmo-)qvfh`zI76Yqx1zV0&XfzSMxLGvGbFMQ~+ z=(Y3m{~l}q`>*>SwD@7vl2_py{zq>5pE~<)_MEHvb8Z#%9?x5TCvVmLlErrtmc7Ye z^(1@q`{eEa%QikQ+y0|u-~Un|+W)`u;QzYA|67+{YhHeP%Er5`D<5=iecZe0VgIfd z6ZSoyyYE@Yq4%wa{&t-D-*@u=lr#UQo%uiG{Quc!{>?l8fByOZOAkC-cNm zdAaJ$n+2EuFS_`D;g$bOF8yC{^Z%AJuQpuyyy5=;?RWm~z4m$Iga5mp{NMZF|DH$x z_dNZ7J^Oa?<^NmHzCC{Z^XcdR&%XSB{pru! zuYbP%{{Q3WpTGb9|NHkJ2pC4ez=eR~PZnkdh6V;5kP|?8f`MZl10$!5$A$$5)il%s zei$5ka6nGTs361eNrP~El!A@oXXa)eCC+CvI2;iHZM67s#E^NJN1wTgOT&i;3Ec;TOAjTi zTyP{|exu5jn1!2~IsF{O7w}9FI^s0Dv3!z%j9{}Lqr9=eiw8w24r1-;JbMZ*Iy$pR TTfCj3pwPfLY5NRjCI)K&rUX|l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-check-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-check-sprite.gif deleted file mode 100644 index 610116465e7e34fe6ec137d674a5a65eb44f3313..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1083 zcmZ?wbhEHbG-BXmXlGz>j-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9;Pl_AtZj8)e}DJP-90mRO_;lP-R7O^x9r-qeb1Jidw1;K zKX>_o#p_P2-*JBTzJq)AAKI|<;`aSlckaKi>)_Qrhp!zxeDu(fW5aL2&AYd5-M(@A-tF6WZr{0c>(2e#ckkc1d++>}M|bZ(ymSA_y$28PKYDua;miAv zUOssE@WI2!4<9{x_~`M2N6#KTe)9Oq(zkK@q?aP-hU%!6+_U+q`A3uKn{Q2YOFNRSt)Ivb< zCkrzJgCK(r$l;(o!NBpKL779wW5a@j%^bpFa}I1+c({#=)o#uSgQOPDOrxwjGt!z| zdt@$e$lSc_@o^LJpjAf}JZwJMArZPP=b&Sgps8HqqLPD`kM_zs`Roai*qqK|#L3VT zF?sR}KXId?9~w-oM=!LvF0}h7u%L13YL4V{2NpVaOx6sKXt0%-%sxprU4%n}F=ee| zk7OB3V$o4<2?NtNdOnMp+}aIPI1Cb!oedm&q`N#WDjn;2s@TV#Wb?^^L6Du@WzE4m zBH2;`fg2hOC%gI1Qk$u|ta4(CLnAZyojrZEhG#jire0bj>DOw0Oe9%D!a<-Z<>RHq z%WD>VO!l0r8@nULP;YPhBrdTFH4+!k**uiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$^aLtQ^>)SRb9SKCQ``Jr`=eVAz{OT z183VTy}$iASS#R nB^X?DXxtttx-R#(S?*zGzsXrO9p?HCdj*-f<$NLv92l$th`d^G diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-over.gif deleted file mode 100644 index b288e38739ad9914b73eb32837303a11a37f354a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmV-71IYYGNk%w1VF3Ug0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096U000OS0Po$iSC8I2dGX-ATgb4XLx%wY06VC` Bj$r@* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-sel.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/row-sel.gif deleted file mode 100644 index 98209e6e7f1ea8cf1ae6c1d61c49e775a37a246c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmZ?wbhEHbWMq(KXlG!!`QrEOm%s16{{7(1pGR;1JbC};*@r(bKmL9F`S1V#{~1QX wXb24J5K#Qd0`%X11|5(uL3x6KLxe$C!6IP+Ln9*-6GOy_4GW#y85tR@0bQ{sTL1t6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/sort-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/grid/sort-hd.gif deleted file mode 100644 index 45e545f74423d274d5ba7fd942349e9b6e377787..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1473 zcmeH`Yfn-E06_1O8OuKCZ05?;9y0{yY?;~WgRMsR$~K$2`D~d1@}bQ#*KE^FOzmNr zk4h0m5xA%*2nq5&mj9jr&@R9m?MLJ@ z28+?&*i;q2X{glmbaXwjt9hit_dI1))x{ir6L_uMFRHs`tO}FBO&#lQRo8}|J5?7Y zU`>9C$Th8w3EHL`Ba086h!(PEnZzn=+PIK2*LI5;-9YgM=D}nEMKj(5E_P-Pm7jo~EXPhgm4T&wVplL(D->;y1`B0^KR=R4S}*a1vj)fV>NEY1mB8Uq&zYI6Q%t`{**z!J+Vr;E@5~g9*=aqW{3>u}nt)+%y z;;>ng6u?b5{(;L^(y<6nxNxiv6hU01L$+fA6FPrm&HQ1X9CMc{2sC$3gd=9b3;|~m zeo4%+^eknA7SU=RVi9X;xUJr+UX-mqm<4W0%pznE9#Hd|0*@ZIv{eO*Nb# z12yCIrOhLLJlbn33DTB}t(F_b2bV4~y*j=}%v9m90(t13QX1^b_==P$D+H{5*5Mu? z8gKY>BXXf^7@!+sCzFj+>XgJsqfc(1Ya(r=#J=3 zlZtj9{~(p*xA$9X2mMtN6e0bM#^36uHAhJ9Q&;+@HQ_ThCJ=yPPcaaStzMs1DHP_0 zvw_E92pgO+s83$0SnZp{u*pvQ$A3#Rftg(VD(=52XCTzUftd4T-22$PQrgIR*gHx4 z{43C_yk?5j?(i$Mual4dFf?{<9Wn}qfaB%>iNwkdu&q!m&h2IcZ$2Th!C8}<*_&Pr zyKl`OZw8N)3D^4?RK}UoD=o00gbKYHy=yv32mZ9Dl8aIS8x^Z$2?NwcBLzFmZOtoW zzN62&u*QDIz{Fy}^YAXY&Txmg7ATSAhAr8K5fZbFZ*SFa$_qE2L|VVFHOI{wKE8B_ zGXV2p-56OO`rc4Z7g3zbj)2_3YjK$((`OUqD%*mgvS`YELYsVW1or1)YW%;)D$oE>#r zQ3z|D(W$Eg`c?NY^+fD&+nctrc25@u47U__J8-QW7NqK!$T9C@*SpuaHyFRRpIGae rj_Lao#za}+eaj_<`F9!mRdtBiaY8;H`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5a@j%?wOD iArS@)&h5PNMll*66^^tBbH?qtQJ{FJU!IwX!5RR^E;%az diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/expand.gif deleted file mode 100644 index 7b6e1c1ef82bc36104018936848c3ebfa6e05e6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5a@jO^j@6 iCK3sWhnx8sU0hxiEIiaD!s-`t;^Ttj{VdE(4AubXYdZG; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/gradient-bg.gif deleted file mode 100644 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-bottom.gif deleted file mode 100644 index c18f9e34ac1f4d06525592c5ec25783921e7ab1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmZ?wbhEHbRAyjhXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zFlAunknz~C;9xU5Gl#^14GRyqF(|p!cuZW_z#t(WR-;k)_;9y`aa9RNLW=VQMPsFy Kokpn+4AubBJRUOu diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-left.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-left.gif deleted file mode 100644 index 99f7993f260b374440c5c8baa41a600eca99d74d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 871 zcmZ?wbhEHbWMxohXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zaA9EP;893e(9p!fE+S&!pm?~AUD|4jgy5sYono4CYdSV2yD|teHi#$`Jzc6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zaAja+k&tj`IMB$%CgZbW!-Ix)HhHZSi@+q84iWvZBN>K^-5Dep8%#8W7*0-Pa>$EW bxpC?7J_E~BDJKIG4z;p#3-JgDFjxZsq+}v; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/mini-top.gif deleted file mode 100644 index a4ca2bb20aad89264b9022fee88ee29154dfb192..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmZ?wbhEHbRAyjhXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zFlAuo;89qx;9xU{u$s(?fCCNf0?JM-3L76eGxBgot>IYk*sW87)#{JM#>MWF#5uKM LPHswdV6X-Nu*4oA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-collapse.gif deleted file mode 100644 index df2a77e9cc50cdb15e8be856710f506d462a9677..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5WW+W=1|P io&z5e4!5x=GEI;OeCX1}EU(tHE{jAJP4AubO%sO%a diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/ns-expand.gif deleted file mode 100644 index 77ab9dad2948270706c9b982c5fcdce78940b4c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPWfssSTW5a@jjf_kR jAsz;b4DD>fMm823AG&mK%ZJ76*!b{ZzXCfO3xhQP{>?dp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-close.gif deleted file mode 100644 index 2bdd6239987b95025826fa39f37a036d73ae1c9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWM^P!XlG!MGRSrK@6dAaKf@>(4S|st0*XIbm>C!t8FWBi2jvL{4k-pk f4i1Na28TvQ9=?!{4GD)^*u|AnEG{HEFjxZs3+oT= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-bg.gif deleted file mode 100644 index d1daef54c578cced19b7f0c3074dd7a23d071cb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHbWMoKTXlGzB%sOhAecUMblu_OpknmbK5V>R(wmyk!^#qaiSiLO}5+3(z&}UbNe&Fw0C0UOPyhe` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-light-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/panel-title-light-bg.gif deleted file mode 100644 index 8c2c83d82536f2e1e8c1fa15ccdf6683047b1d34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHbWMoKUXlGzJdGFVm`@haV{B`m1uPaY~Uw`)d){EbFU;TOT=Fj7|f1bYo z^Wx***Ps8s`}&t*6pV(zunPgjpDaK>{b$et`3#gN7&sIdqzxh#C@?lLvvCPXC@3&A WvZm{QhJfNv7G{tF#eZVXMX8A; zsVNHOnI#ztAsML(?w-B@3=BFTX;5xq;Lv4YLV0FMhC)b2s)D9)qBYY9s=7v2nHV6X-NX@DCv diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close-on.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close-on.gif deleted file mode 100644 index eacea39b623348f656de9a8f0df4ac4b74ceccbd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 880 zcmZ?wbhEHb)z|%kKX-x z_TkUV&wm+4!Dt8!#}H8b$pZA&e+C_p=RkRafy0-9okPYWK%u#rLy#**AmKn$J2Q)p zz={Nh21Zf+FqsJojYs=sS(PMy7OF5cvh&sKnGv+0v0q<*pG<%Q!&xR)rDrk@3zqxO MXKm)=;9#%@0E9$42LJ#7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/layout/tab-close.gif deleted file mode 100644 index 45db61e6000bedd9a4eacdd171d99a9af159389b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 859 zcmZ?wbhEHb+a1fq{uZ2jn48o?zgxVBqGE@d#MZ z(99ty#S`H0kb#knn;}DEVv=)*u)3Vdj=;yqxu0#kX9cC0)w0klmAo1XIMn(o} E0NP7EbN~PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/checked.gif deleted file mode 100644 index fad5893727ee8a13f428aa777380ae97152adec8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 959 zcmZ?wbhEHb6krfwXlGz>j-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9P}a7(ufM;0=I)-EyC%%tyKeK&xyuhMUUy>sj`JIKUfjO_ z>dyTab{)LB=kT>-Cr%wbdG^%lGbhhnIDP)=+4C1qp1*tM!nLy(uU)-*?dpv?S8v|E zb?f%+J9qBfy?6e~qdWJX+*RNl{ef##~$B&;sfByLSi(wRuh5*qap!k!8nE{v; zbU->ld4hps4uc|xjK_ur2b)<{HDXQ_Japi6Q1W6iYUvPA5Rzlscwpk<4sO9XmXjI+ zi&_OWe7|@wG&BoL67X4M6R7Omz-DfcwPk^l8<#v6OGU!M%_;%{ss?XfI5Zp-5OGar zYW(QXz|GEX#*rx~s>CVD%q0^Mz{1hH&cW`(j0A>8wr;ZvZ4rjePOb7*MGqXL4LK$% TI;tJY@rY17bXb6iiNP8GS6tA5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/group-checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/group-checked.gif deleted file mode 100644 index d30b3e5a8f138bfbbfea3d1d6d5631a81268fe26..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 891 zcmZ?wbhEHb6krfwXlGzxGAUp-FJv++Vzw-1u&!ctt7CJoDF4C-YI>17M;4q>erj}J#1 znRLYtaeQ=iW)bC#?NNBB=*-HhDWD|4xae>zCoh|V$$>=XHZB1n7Kal~O{`q}VgeQu b3s{-ixj1G-bT~0I2=PqTialkbz+epkbq-F$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/item-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/item-over.gif deleted file mode 100644 index 01678393246989162922ff0051d855ea02b4c464..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 820 zcmZ?wbhEHbWMU9yXlGzpb>`d67r$SB{>v~5Mnhoag@EEu7NDp9Gw6W44$2b@9D)q2 W95Nmo7Bnz$2y4ZhC`fc*um%9+ToJhd diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu-parent.gif deleted file mode 100644 index 1e375622ff951a3a3f1ccc668061e81b9c93b411..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbOQz{a2h@&qVP zFmM<%@JmQ|Y*@g^%E=?8;=tJG)Wo9VlknjJLnFJO0!M|%0mo(rQBEC(fQyeBCb4lX KFcA=7um%9T95sFb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/menu/menu.gif deleted file mode 100644 index 30a2c4b6c0458751f85126e8bbca6ef2ccc2ff00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 834 zcmZ?wbhEHb{Kde?(9Xc{=<(wZA3ps5|DRzLjE2C-3jxKSEI?2HXV3w89h4^+IOG|a lIb=LGEI8Q6z#`0voy-@k72&h=Y%ZQ8zP%g((!cJJT4@8F*OhYlV-dg#cp zW5-XNI(_EM*|Vq5Up;&A+S!ZOuUxr$qNpFDl?^y$-QVDS9;ix)3mg1{>fcnt(^ zUcUi>w{PFRfB*i&hYz1Vefsj{%h#`8zkU10FbYOPfHonZ_>+YhWU>y30Obh=jxGj9 z4jGRP3l283GHb+~D0p~)!9>Yxj)(FAXDKG5ESZ1@4oAD0WI9R=9v*6Ak!N+{dHKMR zl}FY^$AdFLm4!>ptVN@75u5?#BR20ya;KC(goN;9V qqtnW!)kYaNB(j|}n>i$H<|I5^)XKF~L^CSn=7x7MEgZ~D4AuZjXTU80 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/corners-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/corners-sprite.gif deleted file mode 100644 index aa0d0ed8fb4a7af14a00f77c9fb0f456144363d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1418 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 aAvIb&vGk?1#~7_f{bJ2zyB-JxsQnl3W4iMI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/tools-sprites-trans.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/tools-sprites-trans.gif deleted file mode 100644 index ead931ef617ac8520a24a263abb456ebc1bcd54e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2843 zcmeH{`9IT-1IOPR(~OuQ8WCoWkfR)xkD2>OSRc%h`x+`u--v4D8j|Bfn;auF_feGP z9yuBcEfTpJIa2zNO53N;fARg{^Zfnwc)T9Z$K&;~vavKY@|6QLKq&x#Hp|levl+v~ zIFcHJNNpkUZ6OJa@Fd2?WX9!GMr3+dbXHF!ZMLL&iTZ5yVdp|!@A9L;}}?o?cuq-(Z#*7<)7nA+iy7AuQ>aYt6cUPZ)SaOdV{yLy|?g{$Jynredlfc;{68r zkN*t(-xyH%&d&z`U_j&FM*nUCfbswcRMxtYh7o{@s|WZr`kD$zE7}&O#+Nda;dUYK z2Aj++5)Q(WWue*pWC1j;4E4pyhYwJKv}aHwIjQ&cJs62z9-BB?q$lqO z6)Wqrrzlh8EC}#2^M{Tq?y`F)IHtlf`aa6Y-H`Ee6Qc~T7p5w2i%-NOHXGTs)(LPE zL(MOxTXUkg<1p2#Ck?)x8c$$co9wd1ew36}Vun*QcGy-Xtbf1d!AiH3U8QUh;;~t( z0j{Pq6saU2*69C2|A(8ldF4~0UEPr%Yb&W~GEn(Xl4Wj-OuKMH7_E&6MC;IRd}=qJ znIBB|r`_)`C5zP6`0@5=Y`p{B?dSZD`aZq!zOV2=*qrRG#t(@*qH|W1_iOu~7h~9B zq*vKNGzSohPD?P!!^{%pB3kAX5B}kHB!QtLiAe&3;R_fUq(oVq$n_IWWT^fLKTEmf z4~l7s>cP@rIYmQ-+eP@PcPW%W)Vw7>x34%hxo3cS>uW{u%uQRZHt$-GwuB8sj{{z{qO#c?8Qt>}9a1%l|S(k!DOs-O#cwT>1M@ahfl=46Q?6Owfgh)1DK{kpb06wZOKzNFr<4cLbloc` z>As;fo1!varMqBFy#A_dbDpY)kD+DCOp(*33q0wS#re=X&f{%9QGR&3XYF|2o9xn; zSi)vY7S^sj_N7SMX1=TCbZ9_DfqHe-Vx{fJ>e){B0)}@T`uO8ULFkN=L2JxR)9GYw z$)*gDMG?7uw`wx|bz4YHShAdZ2=ldHdR^-bk{!`6PZFB0y3>>Xrj3&y8^FMU`|JIX zP;C$(4$W%LLWKam!{Q_wsMaG8z<>oe-Vp^Ztg#-A0Rh^*PEf}bOq61D*55>EG-d`P zCJS_f6*PcukXSo@=QaM)k@zkTBb97o2K7kxTMuIl0Kmd&0Kk9d^Mt@frl!HHs0Qz$ z8)#Aze&oO*fa?i5kO?7nsTCgwLmWM~VUZ^Rn=q zb=}YfQWCviM!*_#W(rK=uZJK{rwtfiPxL*qMVI&i$-%Wg@I4$E&6N9a*`F)qDr&{4 zS3m>+9j0aNnY$EF^mZ<#PcmHNM2p=T`mgPtJBNr5`twQKdGy58%)u#y;1nXisgIGPvG;wtM%Q{UsIQaRkk;# z$5fkfMHS&yfJnix<|r|bovU{CgWmHNa%8r^ugW-n+sWq7#7b^PzP6OD)$PKlD+3wT zy3Bt2zYTH83jG|*;9#@*eEXWl`vJVC(`PTCchDoIWrjvW&IMSM{#s(Fy%1w!hMrUG z6`ty7oHv%~HD1f|Tf#uXCR<^WiU)CY?0v#m2X@(gw3L3qi_iMv$QJc5B+Sa_t@>R{ z@$$BbN}QJ&5`Z`Amq^?tw z+a6E^xoO?KHyIkNLzOvKIJc{Mtq+A39C8(0{@BGm>k>J3*sT}*xG@T%e9KCewPHq>?c7IX67Agv)ntOf209MxRWw8^PkjP>9)}ZM%ul?zOaKX!}x}EteMMr~V zVyhuK!WS|-UVM#uYAin&@t|f1uR_MB%y7Ia6a?4pFClY_9lq7+L{Obmu6R7jY>7Mj zix4x0oc-9k+Q|j42xu7BaPR3Mn~MJWyz8U}WKvuxLVPkM-ButH#9I< F0{~gSY2E+; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/top-bottom.png deleted file mode 100644 index 578ffb6092a47d9af33fd86615855ac328958537..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 218 zcmeAS@N?(olHy`uVBq!ia0vp^j6kHr!3Jb81>C#}q}WS5eO=kFvq*AsijL3o~JcpmZ-+$h~ z_Wy_3jh&1fGyeT$7yAGIfBVLN2O~0szQ_GbNqF=$At@m#iKWOT4w?3V`{ps}G&u8y_K7ar7g$G|QJ^XUz(U+@FzFvR&^~SSrx1N9d{QdWj z-+%u9|IaWAMnhnTgn;5t7G{uBbwC6tPcU%&XJBNJ@Yt}xfl*RO%SR(2fsIE%+3C!K zfJH7{j7BjxP82F1;}LV};`zC;>EvWJ`=E%EMNf}&8YCb3qp@(=*;(?+FYc`TtlTo+ zp}tPWVT;DaewImEzP~m$Twd;HFEzuf^wn|Zh|NiVI~J_IzD{1aLst9S;-<|R=j&n) zY}38n&-3V1@9&L`cXyZBTirNa{{A?712gkCNfC{QhXnY zwzDg8A8&6~zAsyC`Qh2A#m@8R-Tqnd^6EzM>veOgi(cJ6SpHx9zpZuUvuBsv!|mtQ z{`~sk_VIfC{dRwUzj*$9`+oWV#ozz3{+M6K{3(1v{q?!!3mQ0?c06e26_QxkD6Dkj zcI%WyT+_vK2mMcNg7q+sp IvM^W!0LCzFhyVZp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/panel/white-left-right.gif deleted file mode 100644 index d82c33784d106a699921e8186376adfe08ed7159..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHbC) zJaOyO$=jb!-~D{{-ski8KVNw8<p u#Ky(P`xTtKWIQ)5IXPLwHYwudrlqH+8zi5aADi9QnH9n_(1;hQKfi0UeNEKzV_IL!CjML&jsnf`iQ*+*TO}5*nMB cm>F0E91a{{WZ^W*x^rUV;^X}?%uEc{048uWPyhe` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/bg.gif deleted file mode 100644 index 43488afdbd4924057e45df94ed68690068fbabac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1091 zcmZ?wbhEHbvJG_ z_wB{IZ!h0}dj&)vzP|>dkKf;X{QmaSk9R=y`N#XuKRjL%gg;OJ?2_%ZN9oX+&1IxF3}_H>l603F*t71i4@GZyiE4sw%lkTl{?!^ z6Bo7I-L2~P;_hzq*8BVGLsu~TDQ|svxII!MZqJR@$6^zdt>?XQDtdZif@HSanM&4& z=Nke$o_R~@-`i0Xygcmmtu?PVY}k3~nAhx8xhrg)|NZ;-|Nno6Q7{?;gDC_Qf3h$$FfcOc zfE)$N6ATu z!(r;m%j_$9KP-wo!oMF4bR^Z#pCLVEt6JIYJY>r`(GBHu8TKMAH hV%craN*NY1aV$`Fvrs8ibZTIkpzPfzqoBZG4FEi-n5_T+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-anchor-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-anchor-sprite.gif deleted file mode 100644 index 9cf485060802498647ba462c826869140085778c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 951 zcmZ?wbhEHbRAb;`_|Cx4x9Z%wLw6p$`1JJa&v#${Ljc1l7!84u5dw-oSr{1@*cfy` z-Ua0e297BVyc{MB2@4t-nK?8-AM7;o6g|H=X=D(-<8}9T;jWog=1UD z4&$fCrm{73`D9*Nda=)=)Tw8u>7xs+o|a)(X9%W5PEyUaQmLAfdV6NU**cdOLJyDZ LX;5ZkVXy`O9&A$y diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/qtip/tip-sprite.gif deleted file mode 100644 index 9810acac5b323d99a641627276e8dbb9a3607d2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4271 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow-lr.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow-lr.png deleted file mode 100644 index bb88b6f2be887650f28b16726e470c09459b9c86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CG!3HG1zpHNqQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiZnf4978H@C8Z=JJZMPDQ+U>TNx_ce55uGN4u2%Q{wE|U g2=cJ=GBC0+@aVFNEX<$33#f^~)78&qol`;+0F-4Xf&c&j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shadow.png deleted file mode 100644 index 75c0eba3e101e3f32cef8bde7bae7383d849e935..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 311 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Q+l0V0jwbN>KRk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5XZhE>nhE&`-GTD~D$v~hjI>0gT@Uw(Rj}ARr(#+ZY|Nr|R ztz576{))TQsGN9FjsN;R=N;cX_7>}LNxZmoT3OARN%FUXp-|AVh0k3k3m;=qQcOOgc@EIAyfV(r;i((zEeg z`}y44S?ng!NoE&wcK=*_2F$s1%jHel(|yj_4>tF9g$FFYCZ&0@DQ;=K_|9xe0dH@S zX*Z%4Z8@@VyGFIRewDnzd#yOua)FIqa}4Vg?=kT(Xhpeh(=cjy2J|F@r>mdKI;Vst E09T24*8l(j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/blue-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/blue-loading.gif deleted file mode 100644 index 3bbf639efae54ae59e83067121a5283ca34fc319..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3236 zcmc(iX;4#H9>pJdFE7h`I{IF)1A#Fh5ut4e3N)(<0RjYM5fB7KViXV+Wf2GhVF?My z8p38kNgy#qTSQzyTbo4$v2makQG0ZNwnY%Pw(PNcy2b&grfRB&4^uT&J@@0STet4{ z{m(g7m+Rx@;26sUn7}&#`1tXo#kRUXJ(#IG{cZ2ar0&XiSo)d6rQJ`SzIs0Y?&jDJ z?r|;aL+gQmEt8MPR?m=a9JfHv4OVPWZ(-l$@5b(F3Hwu-=?SUvOsQodXuTcr`jbg zmue$Vu8N09Dh_e9xvlQE}RY< zP_^gH0x!E?M8)GXk?rNLfx%X3$@{f6pI0?+Kk?;dhe?AW6T(vRUoFVDuvw5lW5cx* zM2pweD1!&j%R@Gl%J=ydX7%57Vd9aac9Z_J>yuRWsDXvpfXejiTGi@9D0*{1JmRSx z+(o+p5f5SNP%4rK?c7Uak@I(U5Qm-`6W}z|87ByZglu+UIDOG|MzrAi}g)n&=PI-@(_qGEL$9luJu=GC51YSSlYON&Jk&F!xvE-3Kh z{SG%WO1_bmQiLaOZ7IfzCtMz%2Bv}IgS}6Fcn-8*XUsdior!R1FP+0~smTuSB&VVz zf%;|_uc}RCy~|cE>3~J|x6xH|BXI_vp(~ndnd8mDl300&`-+FH%kin}hc=mCs%hOr zes3miFqML|D9IX68;;&V(T#Fi!L6K$alqGL{i;8&cZ;nd>kOMh(|6kH`LF^XKOrwq zLxNUq+(^h`=fMd!A!05uF5M_In*~Z)=E03kINGd4h?H`1sjE_lYECtsMqAXUHlDb| ztz~t~4_&#&)=(SpPT$}pu^m2C#P+$NIgptsh59o_aB_$=CVOaI1t6Z-IX#`pYbsB< zh|M?7Zc2#JvdYI_9sJexAvXPJ`0xYUJtJTE_q8tV{!in#)Xt5VTX?Dk(KVGgUDF>J zOmQR2olL&^n=o0HU){)0uU^Ko7nyQf*9pubO(n7qz8!z;@rwVd5(Z;2Mi3NOw(Ahf zsISP{-77F^cj&U|Wt&4rQwiIx55Xkv+JICKVr-023Y2NQ-^1L$z5z!Xn+{V-Qg_!k zsS%~BL4)v{RU3|Xc!1TF{ve7v8CP92?CwS?1WGB30QaD9uF95`VuAErtx79^3OqN` zy3iINB2;8>3`l)c`|MfOO^*_@XTAykFI^@hCY?(joWn)+0+(uL03km${3n;g=AW;0 zU%vGC-z^qEaN9xwnEJAqO|_LYrN%R8hpzH0_8s=xParG#>lYDcHPrX<`L&79gOo=_ zg_zw`8g?DEjrib0E6~$F-AsVCF5_=UBxRzsDv6zf`l>fM|7Xe>RwkeE*`}Q=LXvgz z5##-i=6o96LMVCQQrZkV)ML z$+XDb7)0G6xcj0<3SL1Yp(soP@9YeR_GX&}QYO$WzbBgmfngMpD*|i*WMZ_(^X@z7 zN0}n*g&Do;+3-p|0YLB_U1NcX|8OX5WnYikl1=d9-#CaDtiaS)2KVjQT5K6;sdswH zdE6{8%Tm5IzvpF?=V;|mCgfb3(0~n(Jtz$^$@V@!^Qp?#AMf4pt~>5Paj$cxoIhh~ zPS!Q<`2JDqH5uPX#9PBL=Shoku(XVrp1oOGCI_ozyc)0~L1;z`y^B@=|=DKmT zTGGk2*^arSvoI-D7-dXEqM%D!orfLWIRiwHZk(v?2+9+zL+=BW+eim*J9Zz%h7q{L z-+dB?Z-Y{w3$qyXNb2wU79-tmWu)LArn{~=c*N=z5S6~PU0eLP&{9qK`uEV!719?3 zODi0*g~hTmc}|If6<)|AfS{vsfs;y`$IfnLQHWZQxTqY0-N_xT`{}z;&=7=SlAnqn zln0~eATkC}2H;95@eXP*hG4{j!D8f2AMh9_4RrFrJ5R9ZSl58`DLOy%-RwYy(H(f* zkRovM`0{XlbUk@!_J00RYttpG@Xh~;f!K*mDs;16$Uex)rZXT!qbW*@!r^ul?qm?a z_-wvfgAhIX3?UHgk6!Ic)M#-Mf@t9d4-A2MVHS50gZnT>eN+P99i7IBLyjEq?hn`t zk7vB+NG0$dd-*j_BUYuAQ7&VHmPTxL<+eY9!>LPm;_niK1tSm`(58d!0rG%hB#pe<71F7@U|0=K0NXRx zTHJ#TCcg7=l#=e90j9PjaftUw_*}?l-jkcN4{*WvjMucEqCfPyf2r&N@|*3+^wHBE zO9tWj|6~F(dQ+tTsR&lE$s1P@b)E9~@h-eT5!+L@j~R*)kt~i+qR|09Z;fO(uS$lA z94LiZv9cP6hJ%V4dVNE+T9O}D=_Iu#!th}y|2zhj)ZWfX6XgJxyGX@`p7EWDXWL2k z00q1TEK-PR?iCC!G*Vg`DcRbd8Eyv`_&CQD8Kok` zfHj_!tN?{V>KI0XRV|Gt99y)uO(*D(vaPX0QRf_1%dw_{ps3rP&LCgyug|f(hMD&h zOAP&!R(D}nt`bED?+o%+hxdU_SWfikVU{BY^nZj5crlX!W63<=ZRgf4R=}KMOz;bk gbLa4==ILrY&j|BSk=*YeL&$au32X~HXm1O3TVD6D*;+bL!L|&=p9%&Yy z$rhfe21!Q^Q_foy-7_zKYFYTes_3C(>0^ho$8NPxd}^OC{AUPgcoyFJG`!<^QvZ{z zDbMnzKTnzZDQo7}(m5|{=DsSP^R0H#i}HnEYgc@4VPKfFcR$P>d-aR%Rj;~Nz3y50x_9NPmes$yHvFEn<75zjyE6rRxuF+*-OfrGSB)`bNRn_N2hWXw`F z1SB%CNxF5h++3*4-Y2c*)x+@dA!D0_Ny3>5#Y4>Oyy6-T9SR2-+2lNnp5aC62aVf7*|&4xzT^Yd-|U2>IL4xC*cvD9p$mdk;F#a0uwaxaLi_TL;LoDk6{ z_LiSPBA|iw_G1P%(cIo|3A36`3aNVZ2}m*>X-_;{7Al|+pwP(3%EG4-A<%HJk&(@q JpNE6N8UT=&&-wrW diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/glass-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/glass-bg.gif deleted file mode 100644 index 26fbbae3bc6d2510832a5ed709f0cb029c2c1170..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 873 zcmZ?wbhEHbWMpt*XlGzJe&g*4AiDYX)q+w@6G_xop)#NygPUI-MM=} z^!_{$-T!dm{)dbAKU@Mb9(=g)@WaK2A1*!oaQVT<%a1-@ehfsPt~~sB_0h*Gk3U^| z^yxZ~`{dJA5c+)e>E~-e^z6&^=U;C;`E>K?=UY!d-+uP_&hsxfUVOdx;_KT_KNv>A zXb8|f1QdU=0PXzGpaZfQlqVQC+!&%a1WaT)$|)>om2)9Mk%@&tK#^^Rgu{V`ZWgW# wlLCgu<17lIIuQpJG%~aEtN6@tSlD!$TihV!!H0*;9Rf;j6Erp|DKJJSK2bm`zya0vPFVPO+Hzo=EoiUW<# zt-R7&85aT+o!hu13_^AkENo)sW?~Im5RiDNg-b{!q(fjK6AOo^oXv^{2OL}3c(n`? z0um24adC-+cuZKp#Ka=XC$l2qfI}-2tCoO5K;nT0E+&=`4uJ(sK-Uz9X;c_IJk-Xo z?6;=E@bR%edFMWzN~5Qzrs*f2TT>bQ{@gtKWw+(i!R!IjKB)<%j$y1Z!Zof6-y9;DGq~5NJ}7gDVJu-S5NBXy HWUvMRItY+| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/large-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/large-loading.gif deleted file mode 100644 index b36b555b4ff04f841bb2101514d8f95bcf7358f4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3236 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/left-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/left-btn.gif deleted file mode 100644 index a0ddd9ee8203b9fc45eb5ee78ae6bcb7e57aed7b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 870 zcmZ?wbhEHbSKV^zd-BO3vC604f{{R1d4Yk$n}L-sZYVSj)zmI o(Q}fL|Dq=uMNdw3X~iE>$=vYlK$lteqcf2P3=A_Zn3))?0bn93t^fc4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/loading-balls.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/loading-balls.gif deleted file mode 100644 index 9ce214beb5cd4db00666778d371223c605874519..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2118 zcmbW22~ZPf7=}Y29Kir0FmlXvp;AJNF@T|n3=l~OQNReX(lJsJSV$lTCK1p9Cy_(M zQm|OSsz3m3sz4Eyf*^8<#%d)Dpydoi0>~kDK!ll=ZaA%FI-`5dzq{YQ`#%5s?JSAx z1lbx&?h&&9gFi*>!1pzUs7{@wn9`hLm1fx>(Jl7@kz#sNtqbnGu~ zQe16TTxnMP)H3+<{h@2EL)RY+mC2N450&LIW#wqY$lA~nbxPa!&C zu$mg`OY>TK<}eSK12l%IF?DpG!V-0@d@BkYlXMMpg0lep88I%nH28pK5h2~o?kkh6 z2b2xQChiFj0eW(#g;VTwwMJ5_?EDvp>#4GK+r2+JC89@-_OzrTH4{qP8k0!hnWK}9 zap_c+yqJ92gY!};(l)Zfx*I7zMHm#j&@PQG;7HGJgfynxUXLv`)H1{Pg;t0}hNdo2 zEzCw6`;fZ{f2sO<=B5-4@O@rsqC&BzvE4Uy6nRmKzwG>WQa)|oDe}n~loonAD-5{> z?UL_)*}^8e6BlB4$-lNLQ?wCd`#X$Xp*I-B46&`*HeU)u(UfY42oW;RS(7rB(NZ(l zVXa9y3Fg@)|wdEu-^Mr$bM<2lcshb1_0+qU%7*YY5d4R}04b5q{6gDK#lN_Yz+3 zA)Yn+Y!&vbrDwhDx#Nq+`TkLUbU3j!TN`d7b-gn)W>MmQ_}fG`$z)HJCVV5zccWav z)VK6731;9=Y1sl!Lg@h;g8AmhLs23E}Fg8bsA}jW84be zJj3a&!EX+(#)=!^aPHuvE0%9D^z0oWQl`8qV(5Oxp*_o)rkOg&mhP%-u(0XS@f3?_`nfh@f|7!XJ# zk%OqjKq3JM^2G-d4?(;7)p&sbDCoC_x zFgMyk0aQ)fOAm{tLDLuoh6x2UK0R(bi$jkD1vEB~9?s%M(#YylM@%FuVp#;fssZ~@ e5vO$#&5sswUKi2&Xpx=kB8ZO`!7YivcK-uGv{KRl diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/right-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/right-btn.gif deleted file mode 100644 index dee63e2113fcca680699455e8a56ee3eecc81c40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 871 zcmZ?wbhEHbSKV^zd-BO3vC604f{{R1d4Yk$hk=zr!efJiBO@aVPsE804;fk*WxQe}6c#pgOBlzkIk8cxsZYUC>4${T q6OT!%mh)U@eo8sjryPH%CUe8H16^j>kIqCIFfh!NVPs)pum%9ETq}wI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/shared/warning.gif deleted file mode 100644 index 806d4bc09385a98ef1ac19d25e30a21310964e7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 960 zcmZ?wbhEHb6krfwXlDR{f&hVn2muENhm@owhyM-@5dsqm1SVuCOej#8P@%A(LSO-q zY!KMcp>SY^z=a6{7Zxa7SYhyB1;c|43=ehyk-&!?1`l=wJUAfm;Do@30|Fm_AFI_r#;p+LTS5IEMaRKbDQDQU%2#0{;PZnkd237_gkWx^dVBna` zz|A4!v0=eMCPx*A6NM8NOc1gSve|KQ1H(iiYYu@O7ZQ#gR8*}I_~Dqq(8*@R^@`(W z@)HIIWfz?e!wVeVa#HbKFBUvx;Axbo`SPIg5jz8ey-mRe1I2~|N`gTPEE1a-8hE@l zIU)=NI+%skoc{dSsL0&PpvCnl!Qs*I)AH$&GFuihv|L@Lt98xe!$KzpaZ%Pw4hauj N9~|!BW@BNn1^{&szCZu~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/e-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/e-handle-dark.gif deleted file mode 100644 index b5486c1a95bcc0f39a88c15c10c04ef7c3c561dd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmZ?wbhEHb#gW zSa7hJLs%>3#D;~3+Xa-p=6GyebhKN-IP1=djf;=>D>!$_cy3y9a}Xwye0g*kiI*?5Qm)FE0;R>^0YG>#D1(BQ|H< zJ+*c9_4NsdyJWq$t+}~5+bHZ`26bb>Fw+9?{8q{mh;)M z;o;#9VePmxJJK5%IOMqVHRPj^sIT3W`5a^n+Y$P=Sr`RJG*P^>+2hm zPtWt+z3uJo9mTKjo!!0t{rv;Y-12^Vc6@w%VzPGpxjj2SKfkcpd%oY^U0+|{*qnX; T+}_>a-#<9q&HP*pKCAv-hK1$|Ns9CqhK@yMn(uI{$v4q z^gn|R$h)9C!NBpKfm=XAL80MbGZUwri^YZqhZs0z^?H5?BpvP&kx!db5t!`W$7S2b zqB-%Q$7EIBJeSUo%H9(-b?1e=ob=3RreXN4Gm*mSr)OK$9{O`qIOF^RkA5xFQ(IO9 zFA8Y)Qk9(g>dN%6%}IB6ZPp537_~c2R9fuK^(DT0C)w`)@-kv`_TxiyyRYTm+?Dlm z+u82#x%YQh|7ByF6IPITsO+X(*qn%W@yBY|oz3n@jiJwDpWpD!D2@#*RM zbouaqd#t{`KC@K){5zTIFYoRwZ~uS)Uu;d~r?Y35yRVo1RrUSt+WvO_e>SyWKknT> zJ%9fHy1zfqK96ts%NTLLo=K|Xej|%gL_(8*oyNju5wi@%W(mC&iq(=uJ08}`wQ)S^ zU@r4m)TA`+$HFenMHNXcqO(ps>K2aMv8dblS;yl(gIhO}`i(wCBu{X-7xARuS!$-r zBtxy6DwFLl{a7+3@KuG%R2RL@rISOsESFA=YWlf!dTg9#+RVgBGoQ{#TXpj3tc*=F z(`J{P%UnLE;@C>{IW_xUs!yq9`t^KTlbF|wh3RZvD`vN;S*=*yYqTq4ZlxC2%O&OS zey&(Dz3kM>?LPQFywyoHAYVDT0ajVyEf83S5 zYUk}~v)}G~z3g<}j<=J3>+SdwC9S{f)2`L|`~Ez7{eCaQVeNvw_itHmILNZPy5Jy> z_M8uUINa|T91(v1`~4w4?>U7>|FZqra8xea=i@Pz{v4wd67%mAp3VHu<2 zhTV5Ioz;IFV|>wdeI5}aFh%{jYv+pP@iy=AuwcHjMWHRrml`Q7q*+i$mvZu8$Qzn3`O RcKf}i-@V(HGcqz*0{{svxFG-l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle-dark.gif deleted file mode 100644 index 04e5ecf7d3837aec9510f5467282c10f158a5563..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq95Nmo l794Em;N}uwNKib;z{ui|Vj-Z!(9Iz$HK#)0@qq>gYXJ2^5-b1! diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/ne-handle.gif deleted file mode 100644 index 09405c7ac7b321b3eb9170b1584167448819a071..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbc63}qqP#3eHjE2L+1SS?XB|ZfS0S0RTeD^Ni diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle-dark.gif deleted file mode 100644 index 6e49d6967c08db2c02a3aeb9c1f3cacb9c8665f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq95Nmo l794Em5abeINJw;KWMp#S2{2G%=w_Cco6{kn+|a;a4FKuB5a0j+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/nw-handle.gif deleted file mode 100644 index 2fcea8a9285dc74626ba9374055b25ab77e53a08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHb#gW zSa7hJLs%>3#D;~3+Xa-p=6GyebhKN-IP1=djf;=>D>!$_cy3y9a}Xwye0g*kiI*?5UEB1_q}2ZmnDnS(jHwY|grS zYU}Fj>k|%l$$D>Fb8~aX+fl6@9wVn{Oa!M?d$LFZ(!z@^VzW> zaVFC%HL)EM4v!B{Q1+hZvvbqa(=&{-@15DX`T6+;&fRjpySBW%ydrpY+}T}QUtiyl ze0rYm?rm>x?*pKCAv-hK1$|Ns9CqhK@yMn(uI{$v4q z^gn|R$h)9C!NBpKfty3dW5a@j%^bp7F()=GJlrmz>@~+@*_y+_d!cbc5tmb38XMJ3HH=_|=`0o0p%T&eFss>$PRY#l;?zwPH_g zS$TPRz+$htURzgPT^+GG>+Y$otFNz5INT-cy=~3S%^8FMbi#@YAI?A-kP`~v50 zIp1AdUS3`iygKgeuC1@HZ%95pZ|#k>jf~q0nRm>cz3u(|1I^s>etUL&e0*ZEcKo?L zJ3n7!TI4<7Z||eAWv;!(H3F^$JPCf70^_gXw#@wm_C+l$Bj4s4oFCb)=Y zKAGsDw(`j&AG4QFCI`4_KAjR0micsQMB2)y(_+eAKAoP>rul3}%CyX9Gc%U0d^Rg* z+skLO3yx_%pHp%z^ZDG0XDgr2tNHfw`TPbptrrVg#Ijy2>`+_vVo{ITs~3wWxM{sy zG9@hQ<LuU0IXmi21oie;-_ty;6~)vMJTjxl$oIxtuR03tF% AKmY&$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle-dark.gif deleted file mode 100644 index c4c1087868afab5b5bfd329f52d9907eb1c0061a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHb+YZ5$9Lfxg96SOJ k3mltSSY>Q9925^Vv52er?AV~l(9La}b>~E3vIB!P0N;ZWjQ{`u diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/se-handle.gif deleted file mode 100644 index 972055e7b297a702ab9aa2d799d133b94ac92315..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHb{~M&wt%~@%zrJ-wdN* zGz5lq2q^w!0s8MhgAT}-pgh6AVaveCA>$E{(A3N!$mMciL!xsdyOP%wjSCG&yTw_> nZk(97*nvsGxlP1k!4l8OOsp$nb_OLhOgBgro5QJ~z+epkjJq?f diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle-dark.gif deleted file mode 100644 index 77224b0c06f1666685286c5322fb02b4cd2204bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq93m15 l2M#ndammSOI2<_C%q421Gvk7Sb33nm)}0d@l^YrutN|0L6o3E# diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/sizer/sw-handle.gif deleted file mode 100644 index 3ca0ed96df2059fe283c1d65fa1032a777e1ff97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmZ?wbhEHb_F_q!3-qVNZQx|DV-A6h!W?b)Wnj^{5*w_%-mFl zkc?6VBXb4c#3BVF0|N^M17j-_11m#w1ziJE1B0DgB7cDlD)IDnWxv59C8liseo9Il zP>8d@BeIx*f$tCqGm2_>H2?)!(j9#r85lP9bN@+X1@ct_d_r9R|Np;d_l_fHFK%AH z^6>thcW+(4aQ66_;|EtQS$O!!!80cg?%BPQLC5($P(5QwkY6x^!?PP{K#rTIi(^Q| zt+Nw$@*Xe{IQ-;9=l;Lnc?BNrIk1yMnla18!|Rfx_=~o=7sXGUdm8y8?D5mi^pr2Z pI^U;TAL(EB=a!G%y}ycg#aS#EpKsu3JPkCF!PC{xWt~$(69A`aaP9yA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-thumb.png deleted file mode 100644 index cd654a4c1680183026145066b4aa1a7802605456..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 933 zcmWktYfO^|6#dFz0*jkYAxr02nPDo(Y#3G2We5n&sxU;xD0?`TAk?4`t&?nHc7tSd z3BhbUwh=-{CW2C=R96rO(&5-gscoUWiha@ACv=ooX>pu=`*F^>IX5>s$;rK%mHE!r zP$h3lZ zsu&tSJM$EgWSu@k&1X2N$vNfP1r2#P<>bx>9-HY>X?dzQ`iE=Wlw;RNCAE=}lB(Zo z<6gMZclprm#8~&$>T1JWM}M<~-Ml+E|D-6_*cxWgU-Z?i6ust)nk;MoNq#u7uv;l^ zc%Sp4FTSFge0_U;M2mWF(hez^x65SwD7r47cs}l{u%vZ=dWdj%&y6Bm@aZmsp732n z`nJSRY5d(iFV7q)Zw^u^L<>z!SwVOYYiDTWE^70(u!`A86P*2iZai9?pV48-{yUCV9Ec?o@;sUjk=1>cAm88uY+&dR!6>c{!;b@zv}ZnqTHCISIq3j zrmRZR!4J?JEO}MEgUxOYRO$OSzfMm1HjkLN%MA;yI5!rveWW!)Se@qKRd$^E(bb#N7V}{^w%jXPw*+ z6yhxKh%9Dc;5!7ujG`J|4M0JbbVpxD28NCO+UBR8*c(lVeoYIb6Mw<&;$UDTwkjI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-v-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/slider/slider-v-thumb.png deleted file mode 100644 index 7b3d7258ada4c81c6fc060bd5eea69524f0ddd65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 883 zcmWkrX-ty`0R50E#}rYbBu=wW5C%9+p|mz^KUyf-HiDg2qsADUdFzy5J(6V!F6ux{ zaM+2OO$`xO3Uq)R3W!vwP+G1+0l{9h^wh2t1P1Ecw;%7wOWvRN3Pjo4mW8hgCkSGh zfX~}W=_U$Ep}`bKs$wE3`9_+#SDKM~L?S(L_6#XL@#7IfeEd9_vW3i&r8Rg-rR1}uO-*=86B3}KEpj8RNJSwCe z<7ROQqPp;lkCMd%5%jZYyEu~r&Z91X zf9j@W8dR9k4|L3<$&YFmJnu7Kt{FYwd>r5Rl|w2Y#50Oj3~YoXAgst?bG&}PJ#5B*LU z{dhi%PAi5yumtc_57k?YzK3lZCO;fAuuj1>3uQ0r2GKeOg9r8x@cfIq0W`lshXs93 zIA`IVN8>P>-au=Idk*gx@Nx_tR`fbB@($(zCT8GUfYt`J8SN(MT~J+7{6rlSB;A?4 zi{Lm$j#55Vz~hQ9js9@RB1tFCELoIyqu@p3lls?9n^{Tg3m@givo8E|x9G0ECUCv$ zW>S2Nc)=b`i+*yoGx z#+_e9u4`NQ<+fT+t3SUpVSIPU;$N@*R&qb?%B_=I<2M+#S1hId9!oIRt6i-(mIr+o zmUzJ$m2>{w#i(h~Zhb8&|6|8ij!3;n-D6VqYdY^0h8ofXcZ&8bNx3$};+3(67|G0C z237+ptgBK!Xd(M@Vq?UoRC)CgD-;F^C*wA|I6wb-VmZG|v7&PSfrH%d3oaQ}7UiZq zmftCgdwjomxq$gFHJCdQ+PZ_EoJLm54s(eZpwB$-?_*CEA{yP4?kaf^!fVZ&ljHjyZH3qg@$%oTSO4z3`gia3-v=)~KYIE3!JEGi-~N64?(ft0f1iK&`{Lu@ zSD*gA`TY0Im%nen{QdCl-?v}?7)HTp2+%PE6o0ZXGcYhQ=z#15;&S4a5oxH0SN zs>{3yhr48VA6(hFIb*xfjjnHNf_V!bACgrtUw2uk;$t4KK*H+yJ${-Taz2a<42PQM zPKxkJ(vROCEp9#6VdthqhN;HZya#U@-alV!X+70p)|aQ38N94n84nr1IKF1C+YDL8 zubH>}>|d1e-fGQTF3`ljJvU-UF#ieLincdQJ1?_cSRCKycQ>=`^>ta}{qLqUet*xy z)BNWDJCWv}pR=~lGk;&w`1|`i_5=0rzcl^*E&k`x_V*!;|Nk?vt!M}q6Ulhc$Px7* zgo(%O#e-%}i_n8DB4HVctbU3M9=6GpbuB|t=_ytT&nMMP z`uTi9#V?DDDUEfNEBackRz9EIx$NhQITN>8zMMPtSf%EI+Fv_07qYUjFjxZs<-Km4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroll-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroll-right.gif deleted file mode 100644 index 4c5e7e3958dd31d9591fb86b76bcea760d402589..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1300 zcmZ?wbhEHbRAJC&XlG#XDOwU%v(DkaLssvulIcf!H$6UdwB$-?_*CEA{yP4?kaf^!fVZ&ljHjyZH3qg@$%oTSO4z3`gia3-v=)~KYIE3!JEGi-~N64?(ft0f1iK&`{Lu@ zSD*gA`TY0Im%nen{QdCl-?v}?7)HTp2+%PE6o0ZXGB7YP=z#15bKis=idlbh4oJ2jiQWW7vW8%1R%X~mwJayU>VV6oTSu17E0R!3~kx?Aw2 z<@$QPLv^y%A^2nhXpR#NS^OQa!}QC!nD7;IO;8 zMx0HeKEtuD{z(do7CH|P>8bhKX)WCR_&kGEx1E$yOZVv&hST{9O`5VV%#Yn|$HjEy z<(27&ui0@eG=H;qZ?pX04-d`WZ8%~tlY3xKCG+ufGv&WNSh(rqhAS)OQxEL5Zr*!u zxBSPm6AoHE-0~gh?W8#ltoZnb3pn3T+xmtnRW2k2*D$RU8Q9-}2&7w}D*% z12@~1jK{qeQU;5eZN9yD+|MU+!Ku&XmWIj%k8c_&6J6zIs!Z}Wnz?wg|38VPQ_O=R zmrim{nwiQS9d&c*bki)!XH!#V?Npr=w<=O~cEqlqDszHP%~YA|bBpuojLarUwdpBR zFQ3nM{B-l#g8D}{RTia7NvSW+wu(|;lJ7N3eQ9yjE{%mYT3$=$IaFDxF7sq#VXy`O DM15!0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroller-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/scroller-bg.gif deleted file mode 100644 index 099b90d8aca10ad0e0a87552e5eca975a72f985a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1100 zcmZ?wbhEHbRAvxkXlGzB3f<)J-=TNYo33`GCmeE$39%ip(O{=Nqa{`~*` z?|&d*7zLvtFcd;S@h1x-0|O(24#=^fJi);6pMjM_#$&^RgUzhWECL4>ELn-DC~RnIVicC$7cz76!_!<$ z>JQ$${Hzu@UzjE8z|Ms$FE5w2*ptE~x+;X5$?(CI16#El)=4dqV*M?ebAwTWCGCLb z!rW*EhC5yYr?2V8>?~$a3FsDXisvX`{L|_%{qTbW%}d{jE|}`vc)XF(rY@$UsPV+) zrOQ%#E;pnzH`+^U=vaM8Kg*>5z~#U!(>vEVxDMCxM!#ZRY9ajM9&bW<)1iIUzyH}X ztY+Y{kkp7jH^=eevkOau1SA?YzdQ|GUUZ`%w(=VXldOd1+nvQV=ceVVf8Tof`}V7UcV7Lu_vY_|cfTII{rlwo-)A5GzWVg{)n_33 z|K{`GH(&m~{qpzyxBo!EFbYOPU=W9Z;!hT!>;5z7fZPbm6AT=|49qGs6ec`4(8R&7 zWpctG@o+1jveTR&8bSd<0UIDB9_$ireT@Wf$*vuBf>3d;uuMTd5FMl%bJhJ}p` byxeRN0S*aFO-%B91_mD*nV1VVf8Tof`}V7UcV7Lu_vY_|cfTII{rlwo-)A5GzWVg{)n_33 z|K{`GH(&m~{qpzyxBo!EFbYOPU=W9Z;!hT!>;5z7fZPbm6AT>x8PqvsJT@#i*vuiU z6?0<4!o%$X%3gCkHZD5aEoRSf;Kato$NLqWyJS2!B{ngr2Cs@axoPR?Y3lK(=6G&i zc6O>^{;NADH!nXw$F7-6)@zIMg+(5dwPLGER$g8nkZIQIwRKf!fAIROyQe}EudPcs z9QRji+nSq8QqHf6-EFLUdwW6Rq8{(<>tc3SeC{e)y?y=t)|&rZayE(v4-Z%JD#yu$ z8$LdsCF?v-Cd}yR=_uXgdorQM&(C|=Hp|(Dn7q7fhzYodz&w>VTjrBahiCSe0-cybJ4R4j(HVwd#&8~uB^?Te?#&2xA%OzoBzw} z2R5}c2wYkne}3QI-`_txK0V)m|GvM!e|&y@|NQ>_|NlL=Rd~?AB9`%>kwb08gC-uc z7Y~{R+%z7xh=gT4Y!xeeexOaJ?8U=&g*J^x9V*i@9(8IgTk)t%XWNTM-3I$CVwp{@ zWjyY+c(&qkpUt-ykNX|iG@ndx5zBls(L=3Mg^f|?!IQ}WZkkW0goI^2of?t0^69jg zvX@V%C$wokn~{{I(7=?jY~{0AIon=7n_X~B^ZA^TYnjjIRyp5UhSa>TCY|tnU?ix<%(si zUaeZQ?bWN*8;-eiy=G^vNqD_>$Fo(h*X{ZC>h<~qY}#)&91+WYv+;!5>NlHCNgZHd qxZtM!cFUEp?6+HQq^*9t?M~V2x7#1IX}{a?WSX}gvj__dgEat$YLPww diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-left-bg.gif deleted file mode 100644 index dde796870137f9f9e091100ec800072498b64f80..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1402 zcmZ?wbhEHb)L}GYXlG#P-SqhEz0a4Q{k!+(?}K;0UVi%X`tzT6U;lpi_V@FTzh8g; z`|4|fnTJWlvlbe=$Pt%A$HOF)Fva?eR z^IzRLxmo@E9J^*NS+5Y~3yVA^Yx!1{th~HDAl0nbYwN13eZlLq?w$%wytXdkaM)k1 zZEJ2WN;$tOw%SQ_jCSclKT^G@bGXMuX5aD#!Z;nSXxHI@h^gZ$rb^*Ecq2-#@o^_xJY?4tM{T_useY z=jRufSI4i9ThRFZ!{gKQ{rB(t`}@b|*Z0rw-w!MY*fbtAu<&VIVB}C+@t}#v?8Sp- z0XL0@Eh1qV4_hVDRy=HzDLb*yfulv^QHRR3j7Oas%T_$<(%JUnQMbV{jmJGE*D{iO znN$}%?z8#!;&HzNo92@VE@GKaCVHr?d@{+$?B$cmeq2iqObH3gd^$BEZROKxF=a2G zPETmld^RIxTIREv8S^wRFy(A}`D}K&3zjwN)<`^_abSv3P=;*2^VR!m?g2osqUGa~YHAgO|$}v}wIsv1D4-tCcI3t$MX; z&9+ysR&O{KuJwA&CMJOf<{i&gy53p&!*>FTG`_0A^YOCLDI%9Tv4Z}7o z?YCR5gk`_odLwQ1+6^oY+y}NlXw!bT^!xwa?EmKT z|J&;S;_(08@Bg5}?dtXa?f3tl!0hz=|JmyP;P3zB^8e-Y|EI_Co4xAq`2W}F{hGY$ zjk4q5?)u;D|MU9)A^8LV00000EC2ui00RIq000F%ARq)HIhN?DnrzyxZVbjHt3>W|e1@Q4~3<(Tm;RsAF1q~rm=nyy|06T&;ZRY?0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif deleted file mode 100644 index 45346ab145a9f4796dfbebe62d84c2a785e16b21..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 638 zcmV-^0)hQUNk%w1VJrbM0K@goS5=hKY(MPoOO23|ls}S{n3*z{nw_2~oS&kfp`)glrKhTo zsjIGrt*^3wv9q>zwYR!&xx2n-y}!a?!NbN{#mCB1$;-}9JI~T<(bLvq4b|7%TNc{f z;8YRc;pI&e(BTJr4xw7TUm@{kM ztU1F10-!^S9!C>oFt6t5zwd>cgW6PdRyEg3#3kK-k&AYen-@tJ?|=UP{`(&Y7)HTp2n_uYQ2fcl%)r3Npab#>C{HkO#4<3m zSU7BWz}U#Fsu82{@Bt$ykATIDjt0lW%z^?U8V?ebn>bh$O%xm^r7&}_$QvXWEO>f~ vokdbbz+rM46PqC~1H*!Z<&1OKC3FlnEYJv?!yK*^TN$w6U=tHF6N5DXg62z6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.gif deleted file mode 100644 index 34f13334511d9d8efe3dee18e6f69f3d1277f8e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHbWMq(HXlGzJee3<1+wafb{&4orhjVv6oWJ|w!rhM-?|r;<|I_6MpRPRk zboC(+eZKbS^YurcZ#@2d^U0T6PruxL`t{DUuXlmy`PX~TzukZFjbRjwhQJUE0mYvz zKv(}~&;hv}lqVQC6d3d)RyZU!wQvY1*c4o7ILO4xDIjB!uz;bFk%@_cgM+~u0EV(m Avj6}9 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tab-strip-bg.png deleted file mode 100644 index fa8ab3f462f07ad14c7dbbf76117118a302e35a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 259 zcmeAS@N?(olHy`uVBq!ia0y~yU~>SnxjEQ?q`I@C5s=a;ag8W(E=o--$;{7F2+7P% zWe87AQ7|%Ba7j&8FfuSOQ!q5JGBmO>HB!(uFf}kZ+p+j0P#=4Vr>`sfH6CexDft?u z8*)G)&H|6fVg?4eLmeKJnpZ&P`;>Yb*KkvN$ zdGGD72k(9{jDpb+7>*&J_>%?bt^W) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tabs-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tabs/tabs-sprite.gif deleted file mode 100644 index e969fb0b7338c81f8e22e3f69f82fe49fb9b3d2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2120 zcmeH`|3A}t0LMR@Sv#(pzRU-6RFY!pi@u#ZcG;OPS3Isuz7>Quj<9+o%+>iHqydKXVUq3t_j~CU~d;1O=3^k%I zK@b^`uT%}+t{?xq&)D9te$_uGl4xEH&A%Shb`ERb%I3SIy7w}@coY$jfq&$NZiV54 za=zztL9f!-HxBy8kpUIxp8ygSBAEcv31nyzNTM!e8%TbKsW$>0{H=_AsuJ(WpBfSg6Eg;XE65o%BUvD{bXEk zOXWSPEqo%A=v#Hal?Wf>hPPG~`V-;UmYcp0i`uPV+Gua_+QM z+jV}9XjM%UXVRS6?YV-3@6U&nCSD1PY#jK)GL$I7A7l=yuRmuXLlc& zu@F~vWI*)H{TFEUl1yM1Q1?`aK~Y?SJL;YpH0EedBw1L87_?THz$uRK(*dzsGDIRr zN|-oDu000xBPZXiMrBDev$%^N#95@_X;=$Cd;!|xEBsJq?XSTrf4yxQ8O3r=d><9( z$|fA7Z?+Cv6}4?0d(}aA(YxVj&me;IkXQF!hcK$_x&zIB`dxH%z}@AAET`IkY#?-W z$p}0A^jgNzrjTXz(8BD)vKw(l9~dVr_zGG6(PpcLQ%k!J%WoygcA%1$&nV<~7}(J7 zQY@FzM+-6?Q<$mNZpzVnSG{=+X~duCio)EOmnf#~Nu{EgbFmx6bj+qJOSnb!#x$OQ zx309J8HCcIwJqyPQw7b|^|;5i*7XaX39QN3hPrj%RhD2mP!*TgGF~F`a34c;?haG& zx`J%V`8^&zq=y45Z4xVov0;gS$z^#J7eHm)^lR+#H!Oo9khi&`&-UgmsGutKK zo3JG{IQG`S`*8EoS+V&=lHg5rPQu)WxZ?7;?)XQlxt^mhNSa=H@?lM%-@f~@{?s<0 z&`1vYIN) zra0~MyiReB6<(**9P7x_+-5Gmp-umDajq_{K$xRXs*K1n9B%+@W8xbj8=()LXV1q> zMX*6MN)n85BA`R-8Mu=o%`(^n`+Em-BweC&$n`L*==eqTTw-v8Jr{{O(q~Nu5lXI5 zOmaCba9#xEHSd)AVCWluTNGO4?WKyhhl1J$ll<_EGTqg0SK=TsxEO4=3?n(>GxLWT z+Fs!J71z|k&D@lenZG({BP+%iMQDqn^!^rkIa&w7FRn2+vc5;h@EPdNBxq}`#kPbC z!!{vHsb7oUY(CXAY`Y?h>hbZ|hI1IH9cro1&PAQB85HRX%{3qI^-El@T)1yD;q6N* z*pLx1l<(NiH$fRyS&5sN5QggKUQUKG{0r|y+e1x{I|Dc3>xW_#PS&{kV>SHjg&6$f z11U-@noGbjlFRoKHs`+Mp*9sBYCBRn9lAbP_HeiTu9##_UP~ji_3{WK0b80cM#ok+ zttB1zXuJ7p=bEan)?Gi(v2G2VjIEI9b|-hUZmaplWs}LP1I{(G?igl@OCfy#Q^4Yw aY~k|oDS;V9tOD~>PCR>kAPR$l-2Vk@&nw{o diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/bg.gif deleted file mode 100644 index 0b085bf24e173f7a2568c347f3245bdaade1579b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 904 zcmZ?wbhEHbWMZ&jXlGzJdGqb5TR`;g^zCwCTzUXRA1^)paQWfKD-So0~;Fd71bH3SrYvH+d-pFs!YKv14w;7Da~Z1~~up_!du)~evahJ_E= zc%_Uy&NM7kYU38y$=KqsP`Q;;Sgxby!h)1$R&Ie6E(r^kHZrktoKP`HXkcJuWMa6% p$*}A^6FZ-Z#4LwKrYSs=j0zqwFtu<5D0@r@Sh(uyYDPu|YXAnXewY9N diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-arrow-light.gif deleted file mode 100644 index b0e24b55e7ee53b419bdd5d769bb036b19fe9592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} zernn7GpqKUUw`Q0mSb0ToV>R8?9Kh>?)?A%A85cR7!84;8v=?yS(q6Z7#Vax zUI66@296R2W)2yT4GRu7a|mm>STHs?w+nNawPX}9G%#|o>fAZ8aq;nf1?Mgq&rM5C zPSyxs6?1aa(*sN*0#Y579~gX_Ir7AO7EE5yG(%Y4FT%k%!-dUUH;Lzh!*aJqzAC;N dg;0f-Rg6jrr6;$pzP>);aF?w2wgd+TYXG#xTAcs@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/btn-over-bg.gif deleted file mode 100644 index ee2dd9860c799be6dc194b387c36a953c55aac59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHbWMoKTXlGzJeCy}&J3mj~|8@T1uggzJpf;!hT!Z~imrfcyl?6AT{b$et`3#gN7&v4Zqzw`_ELgzA$|)pg(Xe14 SBQvX#kb;4O15gDcgEauAx-gUg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/more.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/more.gif deleted file mode 100644 index 02c2509fee0fb4555df61072d8e8daac8dc7430e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 845 zcmZ?wbhEHb_??HKjfkTUdnM1~7 r!-9j&9Ku>L9YCQ*K7KbIgN+Z4bP31@U9tF}++`ynz+epkzXub1 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-bg.gif deleted file mode 100644 index 4969e4efeb37821bba1319dce59cd339cec06f86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmZ?wbhEHbWML3xXlG!!aPPx~`#|*Z;=Kx_O l3y+3|gN`0r3Od0)xY0~Iq4Rm?bCJ?B`>oTK&gPd3dz*}CLR%aU_l zD=ze`x;$asm5J-FP1|y7=C<4Oc0KGp@OARxuQQK*oqzJ{(lcLIpZm7u8ukxPurZ-YfblWU`p4o5&%%PX!%{-|5oZ<}b{tn!>Yw4W=u^Uq zQpF50j}MM*?7gx+W?f1zJDKabS=0$Rg*yZqflo?c5Ixr^dQ@Bde4NjsFf-c#W=%hte#Xx8144{oy_EOnT}e!Oo~L)&NLV<%|FT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif deleted file mode 100644 index 1bc0420f0f0e30675a9eef74adbcb55e3efe9d00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1663 zcmd_p`BPE}00(e9$fKOV%p>iPJj&c%bKS|xcC^ftT+_6&bQ^Q1v0|HYZH>xJ<)Pwz zJ{2=BT=7g3OVbPx;Rzm~c$*61k!dRMUNt+7`}{lhJD>Uf{{7*5&d1C3_zfM5t5zZg z*DM_almg(yCS!GDY@;y)?seu{c7h(Q&j zgny%6K+jMmP;5z0Y-vv%s!SALDvB=?$Crz#U$z654p0@{`RiKu^2 z14&f_^ePFRB}v{QO|F)tR7+E8P=l$c+QGEiq4e6Jw7Q}6I#~v)9yOfNFq~OGocVGj zt6?PT&fvmXJUF)t2KjJ7H_Q;g#SmQ5 z1DA>53Nc*S3$yy*ntr%$0BMjQ>>fpnXzn#itbEfu-`cm(hU#B@JFwI)`Pd=(_)fa~ zZtzp*(8~Lvl_n|DJczUmA#Y?z+c45Gigb=49N8*o_%nB8jW@E^HM-6jM|cwme{6$4 zuIe6F2`1FtlZbFqBbs8TgLuNs?IjW4Js7St1q>d8g*)ROwcN6j>9 zSu?Y&nf(OIS6~Hd6`or~l%J7#)Ecs|_GNMX3+8_r>uji{Y{M4quYv` zK1ZlvHoGPY*j-7ev-=+W3ti~ob1cXsIm=-%B`70^8A;N(lJ71^2VXz?dPh4Tu$GN$JgLf z{3za}WGW%h4420UW0~llVVYVIXr;Kr+JF~!z5KiQkXD$d#isr)hd6Wp9fH_M_ied= zbBRO2H$dKNZxrE1@t!jP7=AW&Qn~^8e!TYHBDTNK?x(Rb1Ec7OaGiY&W#c)!Q|oa) zxR@|!V1K^37G&$K8%{T-20M=%Uw4vYF~9N0M5&-GxF;=F>DrU-MpPWMarYu94|<*m zCmr;5E>{wK?G#LcKY>tb9dwxj<f_U;r4roZGa6lchMQo#=t2JlW z1rrR`MBfun)4u2}<(LGzxnp$QfVUwDi0IAGB@ z(YR^83IK=@3&2sHp2BJ>i_4GC(}I&g&Z3hSEU z&NlR)MYGw$S*eL3K?x;6chQB>jr0!$UUa!Ir<-f7mDQk# zBwX&silB=a;YFDn76zFmv)QzrZEk1V*~{;o^E|)bI{pWJ`S9@Y+&;Y*FLa&mKg-o{ zGXtE#VCd`XtN%z$v&7^lt+S-nPx^l-H-oChVzFASZnt}UeB9&lc)ebq&o>x?i8W;+ z0x#DTPXs0f@Cq;`sILTdDyqJY!dp!Y{CJS@QVn6G|s1BUZM+WbuojB z68@5KNy4B6%MygL5X|E591VxVu~;mTNF6 zT4fpSr~#G*mQx_FYA^?^pdwK*kF0=+VKowA?Or}MJ76DP!CM%*AD^gZu#s95A z(UowVnQP&+Hh#jD&D=5%-X5|Hk63M^_B)Qd&U>!=55^uodhEK?;~v?6`RUM^EeD?u zRaBmERc*B$=XEu%J!RdtiuUaXoK+lWJI3$cRO{Tq^PTU^ZQD8=zLF2tqkLnX?vSIJ z*Yl=;`DA&!eg2!Rd7-JEKVqNJFP{p`eI1PmRwLiEcXNZi?S{R1W!QA>{Vrp4!M?Mx zj_=e@PDiKTTrV5^*>fdcRasKn(y`S4;=E(uxo1t%_l&bzclc_ccC0io_oQne9xONN Gx$b`#5UBhB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-add.gif deleted file mode 100644 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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~c~334oIij5|Ns9CqhK@yhFS=VTXXjp>_!!i-ZjhjBP9&d=d&P1P-@w z2*?REbZj`-z{teJvFE@96*ex`7^N1;;s=LXIk{il(fr(WZkkH%E}e=3)qp;}RJS=1 ZACr#t%8J+VSOzWgoT4>ViN zU%dGJ;lrOVU;h61@&EsShEXsY0)sdN6o0Y+UH6|s2joUjo?zgZ#9+@MbEA=|m5*7N zuP1?_;V=Wcmd2kAjEoFSyb3l63JeWQEzG)l4<-aOJF{^!n#_11;LyO$#4EyJxnXG= zBd1*n!vlvz??xWBngt9APKV|*$upc#SeW74&N(&d!GU0fOO1}n=k{oQNISc~334!T+I5ReJa7x*DTyS#YWmWQ8@*yChwS&o6 zrsT(mM-FYgx*h@@4;QobG08Hm@c7Wg%*HKZQ}Uv~iG_ooBg3QNK|^B;FB^}5K!V!o j#pc~334eSRT}sa)VS__s8w&@Y zgu;q|!z~;Fasmw<8xA%wGBG*Ccx+O2Y*vXZDtTe_=t!5iao(F9ACgZ@)bm{w(wUgh k*e9SZBf7&RvvH|ppWc*{Usi^4=^EOswG7BU)WBd303hyMjsO4v diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-yes.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/drop-yes.gif deleted file mode 100644 index 8aacb307e89d690f46853e01f5c4726bd5d94e31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1016 zcmZ?wbhEHb6krfwXlGzhFH%vfSJo_7)vQuAsWC9EH&km;*6LR^?KiYxFJMjooS=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$9FpHZ#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$lae%R5x_+pfh=9;jCRWxkA&~=x h2Yp#A(~SZe4mdO}wqloSIC&-M@bZAgN<174)&TX)MQs28 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-minus.gif deleted file mode 100644 index 9a8d727d70ff5161ec18c0cd0156ae8d50a23b75..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 905 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$``4~=2xoOmJxRJ?YUCe?7 p4c<*mc6tvw4?K5dl1^^H;N?iZ| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end-plus-nl.gif deleted file mode 100644 index 9f7f69880f48db8d86785639055fcc198764617b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 900 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$y4*XmR1y>vzmpih{E$}o|KC(Juvl9;ogEauy5=OfK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-end.gif deleted file mode 100644 index f24ddee799ccebea4dfe60fd65a5703a6a59d44f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 844 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQCG#MBA01UeuBlqVQCv>6yVWIQ%3 sIM~R@rxjCSpm?~QTh?igM}U%RmzciOnH3WikN0ueH<|n}RA8_M07ViGB>(^b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus-nl.gif deleted file mode 100644 index 928779e92361aaebfe9446b236d95cb64256e443..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$lae%R5x_+pfh=9;jCRWxkA&~=x h2Yp#A(~SZe4mdO}wqloSIC&-M@bZAgN<174)&TX)MQs28 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow-minus.gif deleted file mode 100644 index 97dcc7110f13c3cfb72a66a9891e8ab3ccef4a98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 908 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$``4~=2xoOmJxRJ?YUCe?7 s4c<*mc6tvw4?K5duiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$y4*XmR1y>vzmpih{E$}o|KC;?;W0q*gYXG$^NPhqT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/elbow.gif deleted file mode 100644 index b8f42083895bb98276f01a5d0e33debddb3ccf1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQC^cfgAWIQ%3 wIM~R@rxjCSpm?~QTh?igM}U%R7pF1PhKh>{$NPBfn?f{-mK<+pWMr@g0DWQ)HUIzs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder-open.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder-open.gif deleted file mode 100644 index 56ba737bcc7734693d7ddb2f50c8f3235fceacee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 956 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2ILfEiU9P24$!>3v-_@?Pw@dZdEXiZDqz?6KotSEHa+=}k8OCR3nw(sqcz%)E z^&Jkk_UAm>?EL6pz~8F{|8JLmcvAKMN&S?id*>|OyM6oiIctwC-Fj{1-dlT*9ou>8 z$^Yvu|6jNKf8Y82L+Ae=lmGvp`Tzf%|NoaBIdbIa(W7V2p1pYS;<0P5Z#?|?{QdXW zpa1{*{pbJx{|uvGGz2IP0mYvz%nS^S3_2i_KzV|JV1OfBquQXEGvI4}0>6q3BdQLvD`XSzZ1sfd8&rn9pxa_cf0 z8;-R|sQDgyVbIvhINu@p(3Fo!OdU)nOn*uow`yILl(G@%_!WGtV|{}AnFkvZ9YR(b rI<1IZ9mc}SXv*Rj;4nR}iJ6T{KqBGLF$ZZACT_Vm-ya@qV6X-NkKMK> diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/folder.gif deleted file mode 100644 index 20412f7c1ba83b82dc3421b211db2f2e93f08bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 952 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2IRjFD>R>Udq3sOkj1T z@R}--bv0re>LfNdN^fnF-QFU)=hNov3pP6ZL zdwbCB?S=oZs*|No!)|Nor- z|92fYaNzXm(`U|{xqSKZwQJXoU3-1w;m7CizrX(c9|#ym!DtB3CIl3JvM@6+Ff!^t&H2GZdv-WZP}~tRj*oB|LorIYr@vw({}!uwfFDhO(&LbJ2U^lzeR`sUwH800T8|T z00#d*{P_PLi2nZvyK9sf4FQ^mfZ|UUW(Ec>1|5)1pgh6A(Z?XlA>*-O!NF!$M-7&b z2M@Kd^GWGABrIrf5YP;mqG0Ic!oef1<ENsed*j@4Yk?RR_1qN#Xfm)wA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/tree/s.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-error.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-error.gif deleted file mode 100644 index 397b655ab83e5362fdc7eb0d18cf361c6f86bd9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1669 zcmV;02738NNk%w1VITk?0QUd@0|NsJ0|X2J00{{R5ds1i7Z(~66B`>G9v&Vb001Kp z5h)oOFaQ8I0021w0Y3o&E-fxEFEBACCN(uSJUcx_0Rc|{08I)CQ~&^5003P90ZlnN zZ2HgaR#tRYR&iNbdS75? zU|?otXJ=+;Yin(FU|@V`YIb#ZeSCg?et>}h0EGYmiU0tO0055<5Rm`?kOl^o005Z) z0GmN+?~005%|1f>7~rUeD5005~41+4%8tpx?M0RglK2)Y6SybBAy92~17B(5YS zt0^g|FE6h$GP@!ovpPDDN=%4PP>)+%g=J@gYio~fZHaSpjd*yLX=#~kY?O0znsITT ze0->1U$sL+wn#|6N=l(?ZKHd8zjAWJ0s_Pf3(Ero%L)p|939OP64C(y(FzLN0RhLMcRH8%DjAoeXS{Ujv)EG+gtJ^wQ^{W?3v zNJh*-LCQ@{#8XqnUth>oR?f~+Utj)HQ~z6A@Lyo#VPouQYVB}x>v?Q{t%gd(L*0R{xyxG~vlatYag2Jb&>V$^kk(2*{ zf&Yw*|C5vdnwsaLq~@lni75b z|Ns8}{@~x^A^8LW00930EC2ui03ZM$000R70RIUbNDv$>R;N^%GKK1uH+KXhN+gI) zQmI(8v}vO?E0!usk6NLdNb;LSjN7_}3)gKMEm^BfQ9=}oWJFkzOv$3fZRN_A+GfF& z32BcxoBv$pj74i3x2G;S3XK)B)FeoEmXWL#snn`jv}gsDrLa^fQ>tQ`viiu;6mb&4 zIih50RjgR4R9RKTR}rL1lO$0B9ElMiAmt)9>blUBj4Y5687efWvLQo=T3ms|nUS42 zGT05w#%K~HN|L}(qt>OeA3m=K#Zlp_nV3Y10NJUdgV?}Dj3P~n6lR(~fAPA&<^wy< z3SY;ip*i$tjvF;7)cwO(hY@E;pU(dEJAMvK96x^EuyA(#I4D2W)wt>4TNE8YjvOf} zG)mrhfAgFX#~WKj)1E)1@X?1HY^b3I4=}g`${ckFf(Rmn_^}B+|J5T5Fy|aN${TUW z0S6mQFhRr!;UgPsq@e^7N-V$&6Kb%bq#Sa*Vdfi^>~mm0dsJzqm1!)YL=j6Upi2{A zuE7S7XQmMhKT=kc#-N0zk;D-~AfZ4mcqp-i8dkz#<`P*@Bc(t0{IW!$Ngy$V5I-1@ zizZxdisc(i!~o5u$IbJ_rv6JTkwg(c{D4CNyI4a65=m^j#u6#8*Ipi;`17AUTJ(BE z5kdIy0|yB7l8z8W9HFeL2U?Ou5|`ZbpQ}X_F@z60{NTU@$Nckz5JFhX#WM$9V(qqN zczc{Zzy$F_4?N^RzzK;Blf(}}6cGhE|5-BcwnvOnPkU1IumcV|U{F8}13B@74?zS0 z#dwzlam2`nic7|EPvkH$4mJotfiVMJGlaxG_)rEWKMWD>&Oe?)03;wIQ58SrAhy#rm+eCjRSRuH))@dW!7dZ& zW5o_u2R%03bq^haWeql1000EIv_ld+Sb#9`4TvW`^x8Ju-~j^zOmNFONd2>m2p`;_ zHs5>m&A|f!9AH8(f>-{JI5cc`2#jD0Go}*+k21NqFv0{8KoG$M PBfNl1GVhQS5C8x>^BLCH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-info.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-info.gif deleted file mode 100644 index 58281c3067b309779f5cf949a7196170c8ca97b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VITk?0QUd@002Ay07w84PX`%A3LHrS9ajJYWB>?a019mY3w!_= zeheW`4kS_$BTNt{R2C>w87x&AE?6EhTN5*F88u@cHent&Zy_^VB{*RwJ!T<2Ybrfu zEanAeNJ0@02_k<8;bxSjRY)#049Cl8e5Y1_tY3bkWN(XQaEfVlk7;?7 zZF!SzdY5*8mt2auc!8LDgq&lBt7(C!V~et7k-lw{yKsuMageiql(2i8y-tSTQHA4U zhskM;!F86%bDF?tGlSHx~QzWsjj`Ou)c+z$A_QDf}_NMrOt$@%8RPR zi>%9lsM?CJ)Qqyzkfy4!pytE%CW@Nu*TlB$=|re)xF5pzRlaC#O0*M=&Huzs>kT8$>*ZV^`Xr3 zq{{ZD&GV%F^A_)Y{V6-P_#W#@Xx7+U3jK?!?;j!ruDO*W%II z<s1(&F;b=Ka&^{@UjA-Rbn(?f%pA|J?Ea z-}(RG-{a%sWQF}}=T6!l(LfBVqwLzTzdz--gr zA>~JRUspdjz=SD#uW#3T=*1z15PotP*O<}1TXI=rW8fk~GqY79KP}1YrcVGlvzs zDl$nW+ZJ<7GW-rh3M7OOB8UkZSwRrC?KL;(Q+JJH=Ywg3PC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-question.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-question.gif deleted file mode 100644 index 08abd82ae86c9457172c7a4fdbc527641cf28e48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1607 zcmV-N2Dtf0Nk%w1VITk?0QUd@02fyP7F_@vT>uhh032%o9CQF5e-A8e03mY#BzglW zcL_0l6g7B5MoUafO-xQwNKjc)QdCG)VMGais%VD1YKp&Yk+f=&xOI)E zaEiQim9}=7y?K_jd6&3+oV;3t&|-(kYnQ@tj>UPC!+4gSZh?S#&mcD?Rw3D8!n4hVIpuCNxypy7?lBc|sslAz{ zv!1E8nykH`pQ59qrl_Z?tE#T5tFf-Ly0EXZv$D0gx4OH!y?~j^f}_NSpv#4+%#5bO zjit(rsl|+~%!H%Tg{shuuF;CD-i))_m#xK;uF0IQ!Je+okgwa9u*sgY$DOs#l(p29 zwb+%o+nKY|oV(kBuJ?(u=#RDcm$&DYyyKX=;G(m`qqxkgwZo{l%AmW~pu5Wy1~n_!_~3H*|^2hyUEtQ&D)~F!=r_S`L&GoF&_N~(Sv&!PL&+@j??Yq$Bv(odm+WouL^Ss^uzv2JK z#>vRX%gf5m#L3db&e_e*)63J`)6&(_)!NwC+uGXR!PV)++V9BJ>B`#d#N777-1y4d z^3d1g(%a?H-|XGp;>6+p%jEve=>OE=@803%+~e!f;quVt`_t+E+2!%y==0m`{@(Hb z;NRop*MI`>g(&|>+<34{Oa!Wf0xe!3Pge_@yBbqQDAy z^yqLDY^(Y`Bgb#Yy&t*SHt<)MmubQE= zM_%4K|K!o54GAF7UTBq*Ob!?g0o7_ijR4L$#5Cl7WQu5*Y1Gi(Bmg6D)2&N<*T z_(l=0(9+Fy7{;fLf+vi?iGtvWSYtTY0MiN@9f&f^H7LmFMINyXBrZBDyqCps^d=g7F3EF65lHnZVrI>UYlglJe zU~oq>afkv8HsRE$YQu zh#-bkqRKD4cwz`3RWxA(1Qnd&3}YuvgUT2`;GhH*Q&3SwBCD*Dh!i~7&_D!W@DWW; z1F;hgDs>bA#0Ei30Z1pS2x5T)7=Y0SG)EyV5IfR9lMEkstO3X(t9(I08OcCnvDYWD z6Ol7qAd-p~6!7sjC){4MV~P`tbU^{7d>1~=99ZDpN7scTEv^xRGv0Vk((EBd#a;&l F06QAMRrde@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/icon-warning.gif deleted file mode 100644 index 27ff98b4f787f776e24227da0227bc781e3b11e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1483 zcmXAoYc$k(9LB%H%(yfgGuR9b<4z3ocd29*O43CNd(`UWmQ=H)a>`a4DYpzOx}c(x zSlvdcWJ?+unZaR-H7>b~v1S^TyJ_?Ptx;{_9t|N0Ki69nENoJ2v3`>&g|W8&busa_So7*+dD)$ zvLc<>kt@t%F{f~h9qzG`vt^ZG;7|7JumJBhJ9Y+8Lf4suZE^fH#5_9C`L|tWUS6U8 z{=uOE0fBzowgqiH9`W<?y6`^?T9Sbi>kIro^$r3_Y4hFwk)R(#Q}G+VFY!jG?tX{A@K zA7Ak-yF;xiAyhqNys9yLRL-ovzEyCSA}UpDxeZO_LcSl+NfU}@28A3*bVbNWrHA>fZ4D_larvD z0o4={9|wFI(DV=ZJRp1#nxdfzI{Lyuvvho356v%?4p|^%j&Mta>}F3~{K0|F!GZpTzVLoC6_EgdgTr?dzB>V$ILvD;-4MrIlR(m27G@h~>JlYZ zVAt|_ro3YUVh;qD&xzwC(+MYO@wD@Y_NS8}VxR3300jn*@X<;}{z{$rL zTQ1Ygt3r~JNZK6NqxROCFAF5#=}AsXB5Gp!SiKu3HLoB=^T~;XI#AbK!S$~9M1UFk{5%nyiu}%*CZiIbNf<7_U*)eK2jmJEb7FxOYX=;RObGwm=_w(}-X91Z& zqYL6B`%{}cDrkMSM*JWx2`jXogS!VNpUr25HWVJ_hwMpzlk(}y+|3YZ)%_6gfm?u*PI1fu~NtNN%<%o?1bnQ|HcP z+A{@eE%wEmbNMT^8Mo3bU$&{4r}IL6UfVqFo%2t*Tz4deYD9aVZE~6`7TH{nSG#4; z<6vfan`>!V4h5%@)!a#Ahc&Ef--@I2iU;@wEYEC-zjIsI(0PM(`f?qQqf=C&8Tb?#p4A}3P=ZzHb8 zU%2?008r{GmdfTSw5X-f*JnevxfSlSM{Cc=no(Hy6^Zi{dugQHUH~t06Bw zQt4307HjGF&8-z0AF;fZZq8-%?^|4nr#0y83LDz+toN8`gZZg2p9Yd5@bP-%L)8(V zUmmP8OS8yf(llyk`BV+l3sY@pR^S)K>*+DB$}jc0e)m$1w?{Mi5Ahq5K8vj4mE(=f iL}jwpve+-)v>A%!R(IJo>4b>g=e!-tLq`xb9G_3G{0 zGdEv6d-+ygtj!51%UBZR7tG-B>_!@pqvPq~7*cWT?X^Hr1_hqO2g;KF>0Y)?neb;$ rtH-@3vsBJ|GJLS*We`|3`JPV9O%{pDFOA1RPGj(N^>bP0l+XkKCecH0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-corners.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-corners.psd deleted file mode 100644 index 3d7f0623e03727a632cf003e22e11593d547de53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15576 zcmeI1e^3-<7{}lDcK7c172LsrFbH>wVhuI%BO?1j;4ffmCc%<)CPO77wGtJH8DkKN zvKdW7$)+hFN{x{NQZx(GprDKf4pB~$KoLdMl;0e;Z11zs-VFT_IWTkFyze{vx#xZN zeRucy?sLz+w-*-qTpYqkDmZ|ca;b^9+hLK>&$6u8qwtm?BqLSqbA&!FhXCf2IpSP5 zggo9P{i$dM!a|eKidi4x zfe~`or3s2zo7{pj_T(#PN0y$^#Ma;O3tpYP!_MB_V}_^KoVotJaqW$vTu$aD?fhX+mk<5R{ivIbz5BziP4hj!ePN0LL5Kf*=i$Y2sSj0%M#)4G_3kj^dN zMIS6V_F2-)(QEg{@4IBo306n>?Ts$(j9H%a)WLvd8;Y}&k~bPQDERq{1XOVT@R3zT z{sq0-5&?afxSLN~0G&leed!0DtdLcXMC=dm>vSIZV8!-TMdr%mdGYBrLDeG_Isw(M zU$Xp$fF8be-QBm_u~b0%sPx_y^^K+dp4`sqHzT-G@?&Q%XEf&n${+=-9b$U~b&il=5o92>F@0C4S*uP!0LSq>g=xxqCDh z$PgA=B&(A$n&XiVc>?&%BT0UIkqLsO3+BE4M)Jn7t|!L!%p>`obp7|Hj7`|QB{5kW zXgMUY#-2Xnnb>mJr40G!OvcfX_k5-xn2(8<@BpKgDlnM}knfIJ7^amfFv$u)T!~qW zL$p!_CRYI#J#EgyS%rKL&g$XYCHx7N1s9=KCjzJ{TvW z7p!sUfj$bVffdGq83L1nYGA{0VBpP=)#;jnt{J980hatzKONUP^qQ?(0UB4<0%69y3#E2IL6&q!Uq=Rpjs4tz5?Mit0(?ST`<5Jh{POMDn=j@c;kE$^ r3VFIXhE&{2PDn^;Vsc|+GqPadUdIqEbJpV=P?o{d)z4*}Q$iB}hcqa_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-right.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/left-right.psd deleted file mode 100644 index 59a3960a2353ebe4c9a22bde84cb79979f3150ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24046 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/right-corners.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/right-corners.psd deleted file mode 100644 index 86d5095386123b82d2cf11b8308dd1e40459fd9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15530 zcmeI12}~SS7{}k6nLRj~?k>Af5XvrxAQ6Ry3L4|4Xi*vsE)@@~F;uIT!~;q#R!!xo z)uypht+Z-PFI~})hN>+#^`KBdlxS&@1r)i;QLJ(;u!-ndFU z?hVIfH3V=ia=v&SEkb_JknvKq0%5@_bRgB*wE)!HJX6XfWTnAA;h5d z5041bN31j$^q8EckSmremCN-yjZUZkw@s+Vhe;4JEH)C7*f7I#V|~G8*jSxwl&GO-;uI*-972|-go~48IL@=@v+CB*p#(7cgwR|^PbyQShVBi zov*yQYwsIx?t80b|ADs;A36H|2bK>@KRW)&r=OiTS@HR)GgZ}RYijGhsc$@gq3OqF zYfEcqS9j0F-oE~UOT#0hW47^$N&6H=>`XX>e~O3Lj~R|*IR(UnnXTlCw8p{jjh16eys&)26}8rZI&jwcEb^b;}T6Rcji#e)*Im)rtEp z!~9ou5p?YDJh-kerY>3sXDoJ73%0vp(2n51!5s*G`*C?A&zl{=B~FHI)K- zxR_4;9~{^{#P@Xt4Gv`NiY_~CerM0v`hxG2=DlqdRS9=)DgAhx*MTg)-r{Jk|6XW8 zP|?}TVu?_pImfNazC93Fwf}4(ewL z>Va$KfdjIWf_mV#dEg+$9I859Gc3v*b78;Pm*UkpzM8BV9JsOCIgTCkf(_=07z1?$ zMq!MCdf=jYz{8WFpdPqw9`K}?Lsh412D)Zg6bCr+PyJF{>(G04Z3k#xx%Tr}s&~in zB}gD&EXPZn1K2i;9#C`WfUbykP(Mj%1JwesN@xOgo`QPdnt3n<*-1e?aN9hXBE=l4 zI)98*b~~;*=KKxYXYnhjISfKq#3fJz68b>(0xnAE21P+VaM3*A;mJ@?58O5ncv8%v ws`Cw`vh%p5!8wWfd0_(Pi5LfU1#B=zK|OHMJaEF3p`aePZ5}vDF^8)D2iAzm(f|Me diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/default/window/top-bottom.png deleted file mode 100644 index 33779e76b8d7407100e44ea79974d9c8300a9573..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 180 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 e7??TCIy4q6Xzpf_KfuF~nAS2=D2zh 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 Ku&A#Ku>T(wJsgPu diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-cs.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-cs.gif deleted file mode 100644 index 7059e2b0ce43b8cdcc4fd0ca4491c1f2d2c55e0b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2459 zcmeH`{XY|k1Ayn0bGp8vI4&>A+g`lnp;rRoe&*!-Sb+NU(x*%^Nw+R5?aJbIS&f($V z(b3Vdv9aalWu<@lx4{2R0llpQa)AF~@{j&`0-z`Z$SEs2odTq!DINs}bSomSl%9gAfA0inO#vK?R?q5YKJTw` zN>kGQtr0&^<5~y~796YZ`$i5mcg%@J7$ycV!^Z_I;(O|q_8c{+pOeSEg90Uu9ya+S z=ax`_bK_9PGsB|!1n7uHQ+e%jyKCm8%Eq`D$hZpAMO?L_NofM#@`RCLTp9?OlWPirG+klF& z9xkBSBI946v&8{$L_u*NW^uMOCi}fKc3~@*+gd2F1Ce7c1elDDGP4p#iRRB*Gl< z*96g=yCqr{H|_01PI2UpM6NX+)Fsgv-nXiC&@CYbTpT z*Xrd*GO7)$NYPJ0)D_E0Q@+XVCl>vYR^>lUlGaP@#4A=M4l$1u>m;EZ~ zNAsOGCaKBiw#58o**;enAaBc;Q(a3`u%Fsi#ka0o&{Bo*Cl2t9+rC3l@2T^26s&Ap z4o9!u)!Chro&&xT7SQgupV3oFe*Q{LL`gT}X@7s+ma93q7GuMkUW&%I4@qd5H9LCB zGDqXrdMHYk3r|b6(6-soQWE8nFf&sP>}dC*=cI8@s>|v-Ohx3}5Z-Z(c3X}GR)U1v z3&#fWolH9Y;q`cZExyqkI}|w&!~0QZ-InDbl^~LKg@fOKx@uGykDSjKoJ_9oIxiv> zPZ`5 zl*n@p&17{w!6IVmOWqHs(k@Z2s#=9~+QYe6LT`)(vur-j$XYI=1flSI`N&`DHcTij zJlZE^Vizvg4)QpFWj;A%Z+u!C-xuRT!-;B7*bDEr-5vBv`@*~V?K(l`sVrqy>F*jl zT?GD_T2Fhb5UO|X==Q60OW%zDB!(T<2YYFGH&&nF0bLUD0}mDGH9CeTU7h1z7hrv} zjT{h1eHy%hjK(^j1dux!I8+9w*W1jV^tipDn(-?t|24Z+(l-@heXm)YRw6wM;0?ScaigGT5^3=%xlAaH2Ai^cH6q7owvh2THj z2U(N~9wfwp@V+I3K}|9=ydobjXjAns&Txo?93=(>ShDHN1d|&`(1-3h2BT!w5N@^8 z^ETT5aphj5g)=1Z2A18}V{aOcBa98ZFj@v1mJrx2t3J1hmkClf$8XQ{ z79IR)8pUer+yF-x9v_*tEG6|NiZ0baf?3|27swVf%yh%}Y9EU`!GgrLSG<>COQ~}X zV%QKdq>aI8Nl!FSP=QQtnXzAfi81lOU||)w^Wf8qR6(VxT1D@#t;QAI0D!VG;LP8z CJe}bH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/group-lr.gif deleted file mode 100644 index 3f41fbd841a22ed3f7522bb853ec09b688021e0e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 861 zcmZ?wbhEHbe8J4f@STBS?%cV@jvagX@+H?O7!84u7XpeuSr{3BKnFyC@&p5i6$3K| zgTsae2b(#BwPH?eSa`TyK-p`K$HqlRyCsaX?wr`T_;|m9bC-BiH(bo_bWK($p|PYFjxZsYh*if diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-bo.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-bo.gif deleted file mode 100644 index fa5b2f4e95781276d027b5d24d8e07607d8ab591..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 123 zcmV->0EGWXNk%w1VaNap0FeU#_V)I~#KZsq0RR90A^8LW00093EC2ui0LTCd0006^ zjE||y?GK}zwA$-{-n{z{hT=$;=82~2Dh}=o$MQ_q_KoNI&iDQg3<`(DqVb4KDwoWr d^9hYgr_?G`fW=z3+^#U|4U5M#0hwF?06Xm!IU4`~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/button/s-arrow-o.gif deleted file mode 100644 index 52a514132fefe43e5ce98ab2c9198fd32eef2323..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZ?wbhEHbeZ_wM~*Onf#OdVMg|6E1|1L&B+tMU6JxM)_VIjyn7mb4 z$$3V}zkL-=>{N?`WOsDw{+wlKwR-lprQv(;TRnfwSnM=s`48hwO=nsj{M@3sz@*LL onoZjDBWq7{Gbis($(@<)xA^+~;^@C=?RSeSV(qqxFfdpH0P?Ul>i_@% diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/clear-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/clear-trigger.gif deleted file mode 100644 index be3ff587cdb41bc01c38b02f378b7097c49e41fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1425 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/search-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/form/search-trigger.gif deleted file mode 100644 index 0cc4f596b4afa65392eaa6f63fad54238705eb43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2220 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 a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-bottom.gif deleted file mode 100644 index c525f7ebd730582b18ee02869d9aedc9fbbf527d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 177 zcmZ?wbhEHb(@`2GG*e#iL++S^78UZPEMXP zXHHpJSx-;Tk|j&3s;UYL3qwLe+}zy4!osq$vT|~A{{R2afEy_OWMO1r5M$5*DFNBZ zz^b=EHR@P~l5oms E0PIgRd;kCd diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/col-move-top.gif deleted file mode 100644 index ccc92b6bc2f7a55aff742a88abc09822e90237ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 178 zcmZ?wbhEHb({T(&(CjcY%DJ?-?C*(Sy|bfIdfL6TGia#TvAff*Vh*k5;AStwEzGAGoS*+ zpDc_F3{ng_AYqW546OPKmPs-g@+{)e34FXnYNNs#M*b_Is!E<0x||NBo%E5L$LPGHH z@agI4>gwv{<>lPm-1zwT-rnBd-{0-+?f3Wh^YioX@9+Ej`{d;0?Ck94=jZbB^6u{L z000000000000000A^8LV00000EC2ui02}}^000I5U_k_AX_DfguBnsze#Gq|1{lW43fj5@t-5GijP6aC2o& zoi=+4_(?NpPogh*3S~(^XHBI`k(M-iQ|i;DOr4ITDzm9p09<`~)fyJ(Sf^!ETHOj& Y=-QoFhn@x6_UPQAb*tV@8aD(0JM!HA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow-over2.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow-over2.gif deleted file mode 100644 index 353d90626ea426cc2fff395d3d89c7bfff4b216b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 107 zcmZ?wbhEHbWMU9w*v!Ci>(;Gj&z?Pf`t;GGM|bbuy?y)ky?giW-@m_S&z^@5A3k~V zOG8X^< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow.gif deleted file mode 100644 index 8d459a304e0b224f8c28d6b7b585da7019d28cce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 836 zcmZ?wbhEHbWMYtDXlG!!aN)x1H}BrOegF2|hj;HkzW?y)!^h7bKYjW6^C!b77!85p z9s-I#S%6;r&!7YHC@4=ba40eea>#gWNI1yM!7mYUVnf4WCKe8!85Rx=4Ga>@3=9GS G4Auam1ttan diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow2.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-hrow2.gif deleted file mode 100644 index 423b507bbca6e8ff21a5c1c92c052f91497ab97b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 107 zcmZ?wbhEHbWMU9w*v!E2?AfzVpFVy3`0?GlcQ0SQeD&(p^XJcBzkdDZ&71e{-+%b< z;qBYE$BrF)@!|yo7%2W^0n<7l5@ZGgi-f@m%~b(fOAj88;wb8I^_=69yvE_Rkq--l FH2~F!G;aU^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-bg.gif deleted file mode 100644 index 12d64d7cd45677be881f27077bb4a41a944751e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 158 zcmZ?wbhEHblwe?DIKsg2>C>ktPoBJe`}WzhXOAC0{`m3ZhYug#ym|BP-Ma@59vnM% z?8S>0uU@@+`SRt%hYue;di47BYX(w);!hT^avcx}vXg;TT0x; TxTf?h>0Gsj`?N_k2ZJ>LIA}d7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif deleted file mode 100644 index 4fa6e10714e6b2b234ba96add832107d50803cb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 158 zcmZ?wbhEHblwe?DIKsei>(;Gv=gwWbcJ2K6^H;B4y?OKI_3PJf+_dculSFT*Sbm`LBvu7_~zI^)hX$De&;!hT^avcx}vXg;TT0x=fXd(yGK^tEq9>)hd T6PkLKbgo*%ecB|NgTWdA;B7b} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-collapse.gif deleted file mode 100644 index c9ad30dd91e6a867e8646c431a90025edf9d0977..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 136 zcmZ?wbhEHbgxLc|NqsiSKqyR_wC!aix)56vSrJsPoH+}+I8{b#idJ^ z9zJ~d=+UD&_>+Z^fq|Dn2gC!J!N6j=;iTv4tgxLc|NqsiSHFGxcFUG6ix)4xd-v|APoFMcyts7f(p|fD z9X@>c=+UD&_>+Z^fq|Dn2gC!J!N5|u;iTv4t!^)-cttuXbRB1CQ3_Cc&cV~h zq{5hRyGU?KL!&^0(@6#ggND||K*tOwvF$G&IjxOae`8JA>9Jef<+APMSO=R*=CO07Ly*b^rhX diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/group-expand.gif deleted file mode 100644 index 663b5c8413e2b56915358f4428ff10eb11dac023..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmZ?wbhEHbgxLc|NqsiSHFGxcJboHTefVuc=6)hyLUf*`m}4;uBA(t z9zJ~d=+UD&_>+Z^fq|Dn2gC!J!N6j^;iTv4t?n61IU=1Dx=t{(CegNBwy!@vwCvF$G&Ij!|mVz34PFx@!Q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-first.gif deleted file mode 100644 index 60be4bcd3b851cf6f0d853b503467851014b5d2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 327 zcmZ?wbhEHb6krfwxN5+Vot>SMlCp2#K37-QY15`npFTYyA)%$ErKzc@qoX4%EUd7w zFg7+eD=TZtlqmrL0p;c8US3``H8qKei3blJY;JDevuDrh)vGsd+*nsvw`$d@va+(> zyLY#?woaHZVcxuXeSLim4GpQOsW~}0m6eroadGqK&u?sO?CtF>C@5I7W=(s0dwqR< zet!PMi4!X-D*pff&p--L{K>+|z+k|j1JVTY69Zd{!;AtC9jSizCe9QW30V>KLRG^m zi>rxF42Eh3v5Bq@5fau?#yToHWEhT}VL!KN1=sq9!p9d5N3pW=^0;a0wK%aUGjh4{ kYVgt-9n3$cNot2d}efsn%Q>ILtHm$C%ZqJ@Q6DCY(ZEfAS zapS60tJ>S!!@|N+Q&T%SItmI3%F4W{`~nVDJi|Zy#WCM^XAR_|NlP&Re|D97DfgJRR$f9sUSZwuq7Rs zRN$c_)$iVXk>QdAcW+W+lA)Tw#l%IA4V?t!4+?C0AR)@lgt-9m^gj<^z7{HtgNiMy1MrE_C0&{Oq(_>EG%r}#*M31 zt(q`lLPtkOYinykLBW(MQ`W3mQ&v`%nwt9m|9=KTK=CIFBLjm7gAPa`$W8`U69v`2 zl+1Y=txMEWHmDTuF}NyoF~GV@;l-LmP7WL@5kfA44Amk`J`#xnt-h-^IOLvwJIRT` F8UTl6Iw$}D diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/page-prev.gif deleted file mode 100644 index d07e61c36a89c5c40e752663e60a9500e383dc53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 186 zcmV;r07d^tNk%w1VGsZi0K^^uzP`R>WMqVdgqN3>U|?XZtgL^3e_>%^N=iyzUS52B zd~9rNcXxMIR#u3JhP5f*_)&66N(rk(==>!EPJ;8F+xJ7^b4JOBUy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/refresh.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/refresh.gif deleted file mode 100644 index 868b2dc594ed057242f5b642e0c28a764edb9412..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 570 zcmZ?wbhEHbVk&zkko3Jv}`=wY9ay#l;mB6<4ob?da$@cI?=#Tem)b z{CMKTiA|d}ZQZ&xKR>^vrDfv8i8pTCsIRY|JbCi6Wy|*N-TV0QV64I4HT6%}2& zbm{*6`w0mN3l=Q6dGlstV`FP;Yfetip+kqxo;`c!%$e)guh-Pn%$zy1s;cV4hYvnJ zKCfQAnloq4jvYIinwoz8{CW8B;Wca4ELyZ^;lhQpX3aW!^k{s1{L-aMr%aiWnVEUy z$dTEzXYb#?zp}Ejy1M%I?b|bE%y{tN!Rpnk=g*&?oSb~+%9Ws?p#T5>GYkY!{K>+| zz!1Tp1F{?xCk*V<8zPz_mX9^mC-VXy`OS3=Nw diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/row-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/row-expand-sprite.gif deleted file mode 100644 index 09c00a66baeddeeed16bc06a428b8a93bf4d944c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 196 zcmZ?wbhEHbG-BXm*v!k|>gxLc|NqsiSHFGxcFUG6ix)4xd-v|APoFMcyts7f(p|fD z9X@>c=+UD&_>+Z^fq|Dn2gC!J!N5|u;iTv4y%w*}?*6|Zog-zE$Wf-gr!$+J z6iy#!IAEOn*eF1GyMIntGK=kDhJ=Iw8S9f#pHF&fFh(>8r<_gNKHq5pn}GtymEMRf vw`Q&&hNg#no1d5ZCmMtc{L7T8uC1?><&KNglJDqb=vJIKY4Vgwf(+IG0D4r1 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort-hd.gif deleted file mode 100644 index 4cf483d25c557e7a812f364083ba0c5c1145a491..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2731 zcmbVMX;_n27LH1RDz%JSa2RT1bP!px0U@MdSt2F~N|h0Zv1$x~1hO?mNEzCqAd5!8 z4G>Xw5_S+|7f=uq_7(+Y4FpIaKoY{fm?pM#=0~5-^UVG6efQk^zUMvX-gE8=tTWOE zSF8aBlmY<#{r!`ZlS4y8V`F0z6B8pNBLf2i!^6X?tE&QmV03g;C=}M#){c*l4-O7S zM@Ju2?mF-04n*UaIMv_wD;6Dx_a`ucR|vi&svSsLQx5`?yzM}qR&G!?x)Xs&!UQu2 zXM<09;Di0~Hr}AGjsb01C>DiIAuw@37KKa=K(XvVIB(h&0!lSkFGE1U4-lrm9mqkw z0aR-`(HI1v6&Pxcha#Xr1Plzbu(Y`#zyS}4mVdJ%mcooGI1<(YQUi_4`@OF zoNA1oFN3zt}^fh75vZ^S#@@QE~EykqCuTzkW`m~Bco~fs}us2iACFi zR6AgAk~hi$imKmXL-)!EVB*2?F#G{0(UeEFiGzV3N#O?6de zMftO`(x)ZGMTG_VdAT`UPIgviMtWLm%9F>*kCGlHCd5CufA8*{xY(H6>{~aZqaq`2 zgojrzH~gEyU-#?leYS7!p1sXyvB3ZS9X zQi%r6E$Ky~kyYnL#WslffsWQo6ZJmjbV% zxA}o>v%&R(Viq|hu1j1N+(E4wkyVDADjJZk)c(*VT`&3c+K*x3HzFdVqHo?}-;Rlm zyK~q7+Jk!ui4T(=B@;DLQq$5iGPANd+??FJ{DQ)w;*zJOWzWhhDyyn%YMi+5Hp4V@B``*6m9~c}O9ubU=3CBA=5s9a!B{Q>gQki^Sv9P$b zyt2BszOngU3D~jI5L2A`B20U)$pv0*JFZg+nzg#q>~HMbSuo z=#E_nTq}!58>9A`UL5qiCTxj2bn=O7)zgW#L<|4n_Nr1*SE|#k18&u2Q$5_Xc^5mX zpGo?P@oi7sYRYE^Dgz|L9gmpTM;gL*eQ~O`QZD4(GriPVTcr?nXPitq^}Kpf^0w4} zr1N>rvQ*G`>xpBRrAWYZUcr<+9IpXMz{XX2$2*W_}Xe2Pgcr5C0JaH`AI9n{(W>zj9y9I4F z7P2jSiNf2+Nv<%)c1bLZwbwj49*5Q=jo-l-<&58TMNEy~b9X*Eao^({Y2v|opPY&K z3xQJ;36~>|P9}QClQIFs?3~FYa{1KcBYN{uQ8KfaBznx6%n>~aS(*~1gld|IQ^WQA z#A#7Rx#Dy-Vp^OL=WH^SdHR92!-?o@Vi;PezHHNs??n;Gvnox{z}HR0?oo1V@q zZZ?tRm-YHd3MwaaC55$1(~_bFP1Bj;CO!X|5}r}s%+q#+X`XUhx3lSN+3R!uv(Mi8 z-nctl3mryU^<|eZDf8C#~C9l1S?TT4u5a z4Sllgh4ztrFhIw8M%Ji%!c5+@&yy^Fwcj^i-fS2&BX0pln$7bLCy?j)#+>~5RJMyW#K2xk%EPvU9D#qdfZQ#FTVEhq%6KU z?_03gdm(7ns#Pc4eCe%s0%hqPkyEhLPp+6<8lbnBFAp;ND9b}EQNi+X$nxy+NT?Qg zMG&q}T^Wr!Qn)h4ww_xN25B8!9l!5MU7bkuEnHPjCI`)}ic%xNYvRnBZvGUPQ@A#r zppE}nQrrSwpDF93uFqDA3Tq4trE}}j1}(^jtVy4?A@`__*_dy)mezhYfre}@y!NDR zE|%DaZY~W5NjH}Tk&yQ*;|a9)t71;k`?Z;hOEJe~EfD3#LLW`Jxgsi3zTa4us!C8N z6`;kqzuiCveR^YF;4nRlM%@FwB13x#sh1zNPC@h-AGIm$Uq*2aZUFdY-}<@ z$)nxb>H9dCS0-Nao9Elp^(uI;z$?Muerd8ZV}A>#8J;9(6J0Y5`gqNVYWZzCJHt?f zX+ibNV_4y_50`i?$JXSrp*opBEiBK`U_LI&H4~)I=Q*S1@5HeWAND-Xck!CPo7kRd zWXf?6?Rx2LM*c@9Cwkx<_@nof)bL@p?)emcm6u>83do7pl>jn#{+HPD&{nqXX N)IwUwEdb!lUjRh?N@f56 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort_asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/grid/sort_asc.gif deleted file mode 100644 index 7e562e202dbba8990cc767b17ee85c6f73e18bfb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 59 zcmZ?wbhEHbAFQW2399tFN!`=jWG^k>Tm-nVOoKkdTm=m>3@)ucM=5VPTP! zl;q;#QdCsr>gt-AnaMyip!k!8k%2*pK?h_5$WIJxE)Ek5JanY`Pb?|&)L~&*_%wZi zgMrY=Lk}DsSy*l?ZqBmQ;Sg3~cw%Y8Dv**Y*ufyx=JUzv0SAwix2%w~gim`%XO|;` FH2_I2IVAu9 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over-disabled.gif deleted file mode 100644 index 97d5ffacb769047b4e0a889446a9df4d1ea5aac4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49 ycmZ?wbhEHbWMU9yXkcJ?_UzfGPoETjvM_*v4u}BBFfeiS^h+Li%OB6kU=09UoeaJJ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/item-over.gif deleted file mode 100644 index e0dc5f7c06c1be1b3fd4e7104be5b3dd0b63c9d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmZ?wbhEHbWMU9y_|Cv^{rdGAH*Vazb?f%++js8Vxp(j0g9i^DJ$m%`@#CjYpFV&7 z{KbnGFJHcV{rdHrH*em)ef#d+yAK~e{Qv)-VHAvpz|ao?#h)x-Pw0S1P@Z7m&}UF~ zX<&GGkeQuN$|T`H!a*ihE+G{M2f>4l%xpX&HzFDs8X1{cI5-3t8ax>o85yhruMk2c diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/menu/menu-parent.gif deleted file mode 100644 index 5461a8bfc3ffb5ab25cc99893e322d0ca5c58df4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 165 zcmZ?wbhEHb47cl-k`l?M?apNK gSu&}?Nn$+-O#2ckbM|ckkYV2M-=TeE8_mqsNaQ zKY8-x>C>mro;`d1{P~L)FJ8WU`RdiH*RNl{dGqG&+qduDy?g)u{f7@9K7Rc8>C>mr zpFe;7`t{qlZ{NRv|MBC;uV24@|Ni~||9^&2Fd71bG6WQVvM_=irUN2Cd4hrCKLaC= zgvW*j2N)HFw0t~19ByqFkgt~|J zDlwsjIpJ_qufd1L#?2Y$?KEbay}iZA%XMO|_V$AgY%HH%ojslKps9)VKc9!ff(;K3 zak43K9N1x)%+e)m-DZ=p@yYRt`s@pGej25poo!q#ru%bq+U3RC&2F)?zNB35jocqr zD`l2;Yo+z}V|$~&=iJ|z+y3lt_11!$2Rqf->t_Efcz$BGbhzGLv#-xDFO>uP-(Nl4JpH}hzP~@ezkYmw{r>--zWu)_o>0g9DSScw zRlykx8o8Bz%x&T~l33V$FVsS=fmd!tVw;TLj)m>AQ5yF;o^nb&YE^4mv8Y4U>4Z|- z;l_r8JtpTk4mlWI^LX6L{A7hPo6WBk$rJ2vbtF%8kc(8A=&kird9uHi<&r6;PL`?t z9#N61Q>}|KRi^niNiLlc&b3o@X8Np~srFmmru*Rq`7=<)xAjd zdBtrnpU-Rfq?s|lLvGcJ8O>(1G#2+ylgyko`Pt4DOQr|STDf#Wo>a#21xZq?mMt#Q zdbM)NqO7b{Yu3GbwS3i~@LQ|ate1+?TD#+x)arGcKSgCPJn&CbXW?P1S1Z@=Wb=Nr z>DaxlH=9qH?atmZRV_Ma>xH;#ovpXCUh8bXUuCV^Cp{%QZ>QtD>bzaA7I|NA;^r+8 MNMK6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096l000OW0QKq1ch4TZdGX%0V^^-B!-o(fN|YE7 F06QjbkQ4v_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprite-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprite-tpl.gif deleted file mode 100644 index 18277a3d4873a92ed7b481533026dd6e6f91f831..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 971 zcmZ?wbhEHblw;s$_|CxK@ZVw1oH;vo?0ER_;p4}TpFMl_;>C+suU>ul@ZrmsFWI% z7A6UgIUW-k53w<_W!yPYc;Ik{sB_dAjY*4+cW?)-irJa)gkhS2zfpk0=4HODdik%W z%v`Yi{Cv(BCRr`v#*2$R1b6tH3Q0S@TyMS|ufW8HtE(e8cbqvDn%1~J;jmbN=C(CH z%o&$gnLa358$FZ#(W$xB2UPFwHWI%x^>&bh+umw^oevfpo*e0xT$)#-@nON^771A^ J5eWeXYXBZ@aLoV! diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprites.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tool-sprites.gif deleted file mode 100644 index 36b6b6755e3635ff92992745d87c7f71e7120766..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5835 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 Z&WpDllQVtJs~yuB{r5_TA#o&N{vY9zBd!1d diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tools-sprites-trans.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/tools-sprites-trans.gif deleted file mode 100644 index b6d7ba369a70e2f3ebddab526904cc3c70a489d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1981 zcmcJ~i#yW`1Hkd$E*LWAeo1B`D5f57K?zGvLsY;4010C3P76i`u7F+V@=?CdO+ zNSLkwKwQ`uqF8e*HQL?%2_(D}kDazKCuzHEmFNbB2wS&Qsu)Pr(%dpnyhfy=sm}$*~^3H?U{27QvSeM^)W1gc z8_yk8v?a!V;mUX;-lm_pEirKO-uk!r?3?3P>7dK`=2ee>{oEZxdu;M&CuyTyGdtU# zoR&8QMK;`KChPt3kXK`sno9fOD-tYgFF)StGKu)td_{m}_r4Av%`1Mvgxv?ZbE4P3hCL6Whdsi#10F+iK zG9f|1t7r$HdS#%o284{o$*JE`83#j=yLdV17=|pT2g8%V8n8B!+(VyV(CoW}`6Uy$ z`+^Fl!HxCVL^l=*$iVSPKu&jW!J*}$;AD%eB3cdPig1|(U_GbRK`=5Ik;Jaa! z
      zk>A&6NIlkj-sVT_OPx%!x9L{cr){prc@2dW^tpj}Pm3ps#$2QLm7(E?1MGy{ z6ZtFOFca$0vaS}V9|7Ko1|uFA-hhz@vcEl$EWoitPr&3JK`x+Ra~%88-zIderr88X zg_LA2mI81a5tcUf;5E@-eG|fipu$b1Jcw2nhKngp4Gzi$Oi@%iEp_$Tv83!QG?#^qi2aEZzy5bNg$xOqmj@Wc)X8?+e#} zx2GKV<{Dy)`=4Fkf%;H;vx5LS{Mwa3j{r%VOGk$2Xv#)?FjOevEmxrluOU7=gUdQl z*gS#mE7&Gm^2u0eS`L@B{XD>_DFmLbgiw(NUhP4@u&~a&>mna)S~O8-e#`#U3%IQ| zN2=3k7_G;by;ep9JH4bG(enlSv^#X^jHU>E=c3D(e^WT2Ot2G%aZBIz+NF&#WGfBj zZDEw;dn$2gb(E6E2LI%s6c2S)mxue8^tJljWbOk;nCiBlGzM>~c{$Z1Af^tgZXzdq zBC4cK!cp#5$_t)cEbR*HsJVn-7^>diuM}jXTs>YKvuAXG_RdY6?-TDfUyXaM)i;bK z<<30{FY|jUa8QjeaJ;l|Sc8QFnH93AFO1cZ?+a!&AZ1o7`Z*B-o+sg0ks7%ci%jrJ zC$+QqdN~03f^yJdCw-b?oo%GDx<_`U+M8*an`qVhj0A#9t-%q+66OxprOG+k z;k#<7J-tcg-Ulc}dv`TPSiHEw?iKz4iSL`JqTi^#zSoG9Lyy_twrF%s8-zqy_w5{e zM0?U#MacpUU)6O6$fPDu-KN4DoSY)&fOzEjuZ1_Cc@}RG0lVmWc&Da=es63GPPFir zjR1j@zf@{qGPdG+I|YZiAdh_9Guscg>=wx@J$tEAug5*j%jz}vRKQGUcQ!4*a?skkU! Z^yiU%(_7GxN+;&t=qS6-??+=?%lih?%jLv;K9R(4<9{x z^!V}Pr%#_gd-m-4^XD&KymC#}q}WS5eO=kFvq*AsijL3o~JcpmZ-+$h~ z_Wy_3jh&1fGyeT$7yAGIfBVLN2O~0szQ_GbNqF=$At@m#iKWO-O#2ckbM|ckkYV2M-=TeE8_mqsNaQ zKY8-x>C>mro;`d1{P~L)FJ8WU`RdiH*RNl{dGqG&+qduDy?g)u{f7@9K7Rc8>C>mr zpFe;7`t{qlZ{NRv|MBC;uV26Z|NqZ03PwXBf@$o)cwxSshn^Zjcn9V&RP8L0FYm`zr zF-J4_@BtqFqE}~TCMvM8J2W#LHMqdkyx5~ZO2Wgj@$zy%O@mgh&{qwdoSU-FS|uj5 zFee;t>NWV#*tj|4yq(5uv$wYxdAUx^)!u&4fsN(UtFxyQ9yB$v{^#>hSg_&YAx<_W zjsrUklUcfCt=nu8Ha#dLpePP@EVyV)&v)|Zs)y^;IFYNgE5 zZmqQ5er#{__niA1bK9T&t=?L2^I)esd)@4x1ujycUf-(#Ro2S3G+xPe9_t%f_uiyXw)3^T@#S`k7KZP%-zbZIm zK_j=)kGW0!MiL8~?}b{(HSo%PI)1&kOz~ zsj(p9ljVy!9nWUInBOh8>c!$7r&k$Erub!LE^JEj(wH%O(#;ji<`+q=T0W^MYSoJ6 zlcH9xT)pVls#Vi>8A)lcS#!?n+1jLMSs82hoVumGb{`w}n+-eOY2|F3DYrU%(-FPf Vnw!pBS!->%{EX|yRz^k!YXB4;a=8Ei diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-left-right.gif deleted file mode 100644 index 2c9e142be832aa2b1bfc7e5df32cc70f5c721c6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHb-j`MZjT$ M!a)WGCME`J0Q>YT`Tzg` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-top-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/panel/white-top-bottom.gif deleted file mode 100644 index 025fbd51ab056b068cd7cf2556652263d26bf578..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 860 zcmZ?wbhEHbWMt4`{La8|{rdGAH*Vazb?f%++js8Vxp(j0g9i^DJ$m%`@#CjYpFV&7 z{KbnGFJHcV{rdHrH*em)ef#d+yAK~e{Qv)-VHAvpz|ao?9gr75d4Yk$k%85tgW+Lg zGaHYXhDQU#K}Kd)E&&Mz1%`%h3FE9gCpIoV-ml=?CF6N%am!?l;8igvH!VFq-5~kY O9M8?md>9!S8LR<>K~9zc diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/progress/progress-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/progress/progress-bg.gif deleted file mode 100644 index 5585d802fb566804cffd9ca41775d2aa9fc39ed8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 107 zcmZ?wbhEHbWMoKS*v!DNYuBy|7cMMbymj=gw27P8~UN zWb@|DD^{%7zkmO%S+kZbS)%xpg#iR~Km^DP1{Mi}6P~O0?ohjWL8?EQ<4mA{!>V;T LulMD!FjxZsN)9o; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/bg.gif deleted file mode 100644 index a9055a5ebade2f4ba2f5fd1461d9f8a3478646ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 zcmZ?wbhEHb({T}zkmPv^XKp1zyJRI`~Uwx!zdUH zfuR-xia%L^PX5oJ19CVhPcU%YWiaHBu_$Ob*v!tU5p!b0!$V90%5EkO8qa=t4qF?&UHs9h zx!&8?-Q8V&|5fbiZTaz=8je=Uz7buWxT-_gJoe0&70HVom6`8){#=$i+tB!M%*mfi zo}cG*==yeIqlsJh3T>~Lw;M{GTQ(%ii#Y5qd&{t+`1QTH(hcwLA87v1$H8C?08ARV ACIA2c diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/close.gif deleted file mode 100644 index 69ab915e4dd194ad3680a039fd665da11201c74f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmZ?wbhEHbg)|NZ;-|Nno6Q7{?;gDC_Qf3h$$FfcOc zfE)$N6ATu z!(r;m%j_$9KP-wo!oMF4bR^Z#pCLVEt6JIYJY>r`(GBHu8TKMAH hV%craN*NY1aV$`Fvrs8ibZTIkpzPfzqoBZG4FEi-n5_T+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif deleted file mode 100644 index 0671586f3b1af76f979139cc3d9d702e7827da17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmZ?wbhEHbRAb;`Sj5Wk<;$04%a-lmzyJC3=N~_QWPkz1pDc_F46F<~AOVnC2IkC& zsEw{H9-N*Tdb_>D1SE`oE(r)QOJtofFY!vKV&ZHFuF9Nl;I&ce#AoI+IaWUFIYcC# z=byX~7W8ukgPX5WPj4FQ60K*OEWHC1)y&W7s0Rjxi#TnK)Sch@bIH~6iad1zGXd$w J4oOZ1YXEz3H%|Zn diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/qtip/tip-sprite.gif deleted file mode 100644 index 4ade664ef27fa2cac59f5f12aa28e5c3e18d3151..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3241 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/s.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/hd-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/hd-sprite.gif deleted file mode 100644 index d943833e1dcd0f1418ee3a9a014837d437f19b28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 305 zcmZ?wbhEHbWM-&lIKse?o}QkOkr5vspPHJQl$4a0mlqcomzI{6m6es8oSdDVos*N3 zkdTm{pP!hRn46oMl9G~{nORU!5E~midGcfj2L}ecK=CIFSY8K2g6w2qU8lehGDXAF z;qsE~KnA@(cKjQ3%+_ff;8W;`HxOcEVRCyCctk{&uR%S*U`E(V1`d`99tC?@m=tWp ztYsM3l=q5pFy#HXoxpH`aq`I(kyac388#Z5np@i1*f}^cxOnz?`}ze0MNAEiil3P> zJ1rwCr)Xhed3mLe$O?5Ktu?%Q>o=J2n{VN^-p=K)i^E0GegA=pf&NEAjvbE@h&|1j YcZn9MhD>7IE08Nu#L;wH) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/left-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/shared/left-btn.gif deleted file mode 100644 index 3301054ffa24c326b0f13facdb9382e53a04d9ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 106 zcmZ?wbhEHbcZPNXD=%e)X*S+`s_LuCFGq}OPQnJK>iNP8GgMlO{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/e-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/e-handle.gif deleted file mode 100644 index a8ed0edee93975d0d233cffe52d9f2e85e7d0d81..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 753 zcmVFMR=<=fla;Nak+qoe=-{{R30A^8LV00000 zEC2ui015!m2LJ>A7(xU7iaog61kuiXaqZj{Zl73^l9{3!wYse{!r)1(vG>Y0zw5b~ zFW3XtenKPeNJJKs(5KW%ZCaVwrIwZDZg1W&cs%TqmE!VOokpLdRWtiNy{_H!Jbn+i zxBGH@b%B6)g@1#FiHLEEjf{SDkCKskhm?ein2wc#la`vGpPrqUqNSmvnWLtvoU5p; zsjalLwz9afy0E;jzL34Zznj9v#K)(>$gal8!_Ljj%eA@6(9^fO&(hc3+~3sN(c#wM z+2!Qh>Eq|>?d;X=@$ll<^Y-=L>-gyJ{POwC-P7lf;6Q-^_ZduB5MjTA3LOG`$Pi+~ zh!`(ww8*jlqDP7#CyJyOlH|yLCR3tZxv(Tli7H#3lo=D|%Zwde(!9Cx<4l`7g906j z(`U`1I*Im7iu7mGqf4Deg_=`pRjNjLUe%ga=u@str-HTGRq0l*V$q&8TlTBkwrSah zUF%jZ*|~7(#;wbDuV1}@^9sgG_^x5Bg%KYftGF@a$8Qruw(B_ZV#}2&PwpF7GUm;H z2Vd6wxisn1oJD6&?HP6G)~rXzUj15j?V|+>1j%inhJoIOa_=qxoWySs9Uuq?!P|Fn z2+3tE7t!3raoe4-s|KB&c6aXEP0t1o`!;#)<-dzJzh1p-_v71#e?LDy{q*(O-$&2i zdw%$~`q?L7fCK_);C~3>r(l2Q`M02h49fRlgA_^_;eHTiSRsZR4tU^%7HSw`hXp2h zp@$}l$l-`AuIM6)Aih{)j4+-!qm3Wpm?DWes#v3sHv-usk2|*bBat))iKLE64r!#4 zPdX{1lt)HcnLb)ZAU<%nKm0oITW|?S`spgn$a_MH6ON#lXoN!t>XPkK2 jS?8B@_L(Q2f1bJKoqGCNXrO7fxu>9t8Vaas2><{)RT`I{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/ne-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/ne-handle.gif deleted file mode 100644 index 6f7b0c2958b20d3b23c5abda3b43dc1559f9a720..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 128 zcmZ?wbhEHba@|Np^*2QOc~eD>_wty{OAK7IQ9`SVAQ9s$MC zfZ{(v=c3falGGH1^30M91$R&100tcfAOIQ2z@i{I*Ph) Snkw8Vqv9&yY7rpFU=096AV2B= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/nw-handle.gif deleted file mode 100644 index 92ad82cf3642db5fa14321505b5e121c878e9758..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmZ?wbhEHba@|Np^*2QOc~eD>_wty{OAK7IQ9`SVAQ9x-45 z#h)x-F&z*IGJ}CdUf_i1>b(-&iQg7D3A8Y#b~JNvITwj6s8C>;%Es#G!e9*m=iw+~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/s-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/s-handle.gif deleted file mode 100644 index d7eeae278cf8013f3cab45c1b9a069579cd20bdd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 494 zcmVFMR=<=fla;Nak+qoe=-{{R30A^8LV00000 zEC2ui0MG{t000C37`oj4Fv>}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{ za7Zi~Z-S(9$!t2G(5Q4uty-_xtai)odcWYXcuX#v&*-#z&2GEj@VI=gEEJM<{9TZz z`~QG}f`f#GhKGoWii?bmj${Opl9QB`mY0~Bnwy-Ro}ZwhqNAjxrl+W>s;jK6uCK7M zva__cwzs&sy1SBg1_Zvq1;4?(#>dFX%FE2n&d<=%($mz{)~f^A+S}aS-rwNi;^XAy z=I7|?>g(+7?(gvN^7Hid_V@Vt`uqI-{{H|23LLo2fPriV5gr_nkf6hd5F<*QNU@^D zix@L%+{m%BqsMswLW&$ovZTqAC{wCj$+D%(moQ_>oJq5$&6_xL>fFh*r_Y~2g9;r= zw5ZXeNRujE%CxD|r%fOt?uiw9b0}CEZxUk{Fh!ZPb%($`R$B-jSo=my2<;$2eYu?Pcv**vC kLyI0wy0q!js8g$6&APSg*RW&Do=v;9?c2C>gG~ScJ5XvO>Hq)$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/se-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/se-handle.gif deleted file mode 100644 index f011a3bb2e9fe281dbfcf9adff0eb0d370456557..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmZ?wbhEHba@|Np^*2QOc~eD>_wty{OAK7IQ9`SVAQ9x-45 z#h)x-F&z*IGJ}Cde!>KyLktoEC96(26sk0TNWB^$x!`%@(u5fax%VsL+!?F^5i=~8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/square.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/sizer/square.gif deleted file mode 100644 index 7751d5e15a785f1a50b61bfc8c5c21a0f9421358..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 123 zcmZ?wbhEHbU|4d2;*qZ3YaW z_>%=JrUN2DW-zd52%PXt-63)MQ1x^Vjjla@|Np^*2QOc~eD>_wty{OAK7IQ9`SVAQ9x-45 z#h)x-F&z*IGJ}CdQNY8%Nu$L_;f>=h6%OYjk=co%2d}ZN*Oqv^;cmsc_YN!!)&M)r BE5rZ* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-thumb.png deleted file mode 100644 index 4bf01be8952e0c2fef407b15833da6017d6109f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 675 zcmeAS@N?(olHy`uVBq!ia0vp^T0pGJ!3-qdOK@HUQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JidF~sgt$I@_;B;)&HMN7|NZ;-+qZ9@J$p7`!i0|>KYsc0 z<=VAt_wV0-{rdH#OP3x!dNgz9%=72Z-@0|{>({Sm&YU@R?AVDDCypOKe);m{PoF;B zym|A-j~{Q|y!rO++q-w~K7amv@#4joFJFHD{{8mt+fSZ6dH??X)2C1G-o5+y@#AgV zw%xdKFMGaQgQ3em6JtH4gw7iXTCHLoX8mN z*7|^HhsrVC?)U#wX8NrPD0=a2n)kovDWUPEBHNVpY$MHg1a!`mIlt_#PNlDU{wDt* z%eUJ$9e=9wT}x5Lck&TO-bGuk8JYOrb>V&8*S+xP!PU2 zY!7Go_gY@NW47AM9{xTQ@Lp{e-&5zgF%!RhD!RKy zbZ_MTebJ%c{eoAQ?fxinebdyHf}U6Vf8VY2+xL98 kY*b&K&6+bQo{5KH?i&LMUjMf>z?fn1boFyt=akR{0H@W71ONa4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-v-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/slider/slider-v-thumb.png deleted file mode 100644 index 6b3eeb703f92943763428b44292197c8b4329fb4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 632 zcmeAS@N?(olHy`uVBq!ia0vp^xDSr z1<%~X^wgl##FWaylc_d9MXLjRLR=p{e7Je@=KcHk|Ni~^?c2A{o;{l|VZz6cAHRJ0 za_!o+`}gm^e*OB=rAv<C>lo@7{g<`0=)F z+iu*raplUDLx&DMfByXF(W5_q{`~Oa!}aUeU%Ys6=gysb_wGG-@Zi;}S68oIJ$35T zxpU`$?mZ#-&=*KqmIV0)|0feLSglEQU|?XB^K@|xskn9J%FVn(1_G=Bw^h%2H9L1~ zHj_?aJatR;|Nm6csZL@`&OMph}E`~=f=Tz2O zg+2eNDRO5q$6Bkct3CIvQPIeq^>t^*XN?0d^FLSYo}>IFd$x_!i|Js`Th!K;C{w!?k>cW)*e3s-yXErJ4)uG?^4ZHy zRE4D!>Qy|bHE5X^zb-poBVw<|`sIJ}MW%#ZcG@4?cOgI5!tK8HN#Q#x=XO6#OB7kK zwW^c#`0KO37WiCDWO=FkI`bRr)~wsvQ<=*OraYX+@@3v6y(>&6b0^x>E8WfYoU$+c q)6O_c*Xhmkw=WFi-Tq`f12e;f`vwwc-H(IP6@#a%pUXO@geCwlF?9R@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-left.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-left.gif deleted file mode 100644 index bbb3e3d9d35fd19b61bd8d0a0bd5f42dd3e82ccf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1260 zcmZ?wbhEHbRAJC&XlG!^&(E){taSMA(ACv7Wy+Lw>(*VncJ2E0>o;!PxOwyDty{Nl z-@bk4&Yin=@7}w2@BaP!4<0;t`0(MQM~@yqe*EOglc!IgK701;`Sa&5Uc7ku^5v^n zuU@}?{pQV^w{PFRd-v}B`}ZF{eE9hB(?)aQ7{?;gDC_Qf3h$#FfcLb zfE)$N6AT>x8CW@FJT@#i*v!GL5p!b0!o%$Xo*r{NHZD5CBxW3>qp)c4@qPu@2^td? zE;%__!?=g%;HIUgrz^U}&G6j3>@2sk-C{6l>y=^}2HC1i!~*t=M0VE{$9P zi@oMX9bDPII>NT+#;mWag1Hh7cgcDm%xvGBv0dm!*S9s7ISU>il2tHY7tB}jF^^Xu zVRif-KUEGn9iS@@HP6k9*psLqzdu^sy4PXnrbLFR#@1I4+%&v@zSh#Z)nV3`rXetA5}PyR$*!>=zn%O#4ov)L+b4`x5mc->6qPNwhq3GQb~ZY|jP`SiKP)~c^8 zDg&1DY|2hgsMuY$JmhNL$+@pe8h?I%#=gM*|I{_{oBTvi%=h2FuW5Vf=hLOL7VQ83 zpFvGPB8f%lnFtey+KLBF96r--HVasl9%vB>%XrARcCWshkjGny1}Ebdi2H{)@iP2CISUI#YICEc!{DxP$D-rBLG z)A!hqC4F*iCzbjvvm~B&1@DVkI#nfUrfO#NJ&Uy7gtkhxnekCKmrl!-(tI`}weN@8 atb}_f(`IF@i(KAOwMb(5Bvuv{25SK3cQ--+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroll-right.gif deleted file mode 100644 index feb6a76f0ae36a545fcc77242b53261680199c39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1269 zcmZ?wbhEHbRAJC&XlG!^&(E){taSMA(ACv7Wy+Lw>(*VncJ2E0>o;!PxOwyDty{Nl z-@bk4&Yin=@7}w2@BaP!4<0;t`0(MQM~@yqe*EOglc!IgK701;`Sa&5Uc7ku^5v^n zuU@}?{pQV^w{PFRd-v}B`}ZF{eE9hB(?)aQ7{?;gDC_Qf3h$#FfcLb zfE)$N6AT>x8CW@FJT@#i*v!GL5p!b0!o%$X+!JPaY+Q7-Q%FB+iH2eG@qPv8va$sA9+SCBOozMC+_uY(~X=Y~m lbWUzm=JUBFY&)M%sr~e0`Q%19%NG+`_f@RuXJlls1_1f>KmPy# diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroller-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/scroller-bg.gif deleted file mode 100644 index f089c0ad65ccfc9be9663e7e0d65f547e9160ac3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1090 zcmV-I1ikx5Nk%w1VIu$*0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui03!ev000R809^?jNU)&6g9W{LbM>#G!-o(fN_^;Q z;XiX2Giuz(v17)60@ZmONm8Raf$lKkTFJ5{u8l5ZVss}^o;h3-9llhVv*Am50^{NA z>GLL0pYa6F!?~}i)2I9Xy<`d%s?>Q(ao*d?H4E2!QjLD~`V}lLtghIqc)51wCmZ?pV`H@ENKz=Nggb+zuJgFS zp2rmq4cfD2#yB^=)mT{LYSw2rqnk}T3vG0TZ`;0&JGLu%IMoRsPF!8#;>e`}b@h%Z z^5IdZ{@eFlc=UGy*%|G*b9>I0>;$48QyH@*%6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui00RIq000P10C9m+Cy?O4f(Q>PG{`Vv!-WnbLY(-p zB0_Qm(Gg@v@Et*U1m}euiAyA|dg)G{D_O22Ib89?<&qapm%DGi)OjQJj~h8;|Jadp H6%YVBg5#z` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif deleted file mode 100644 index bf35493685825b861e5adcfe7e9c22d331a6e50f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1383 zcmV-t1(^CrNk%w1VJrbM0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui04xDA000R80M!W`NU)&6g9sBUT*$DY!-o(fN}Ncs zqQ#3A|GC1*v7^V2AVZ2ANwOh0TqRSgT*)2C2rHjPTPs#T9uuWH@ORbkeyV8dShDz>cIq-4*kUAr?a+qZCG zqKr$ou3Wo#^NMtzV1UR_f)>(?$_!=9Z|HtpLX$<4*hdndZxy@S(a2VA)EmhXxmUtUt4 za^}!M&U+rcI>zbNvwOs@y}L#3-or!xOji%rx%24Lt6$H)z5Dm@;D7`cXyAbeCaBFH-H8z=%9oaYUrVeCaUP7j5g}%qmV`_>7ZqiaYU-(|rmE_ythVavtFHb;L(D(4)@tjmxaO+suDtf@>#x8DE9|hu7HjOW$R>*{ pGUT}8?6c5DEA6z@R%`9G*k-Hkw%m5>?YH2DEAF`BlEY3w06PxN$anw% diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif deleted file mode 100644 index 96d2e5eb8a519e15bf48608df8d4c5b5a92ec7d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1402 zcmV-=1%>)YNk%w1VJrbM0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui04xDA000R80A2l4N3fv5g9sBUT*$DY!-o(fN}Ncs zqQ#3CGh!5|v7^V2AVZ2ANwVZajwVy8T*n4zqDYe}O?q^x)2C2nHjPTPs@0BDuWH@ORbkeyV8d4ZDz>cIqGZpiU3)Vv+qZC6 zx{XV>?#H=y^Xi?5cdy^S3Ht&b{8upH!*&fLUi?-uw(>hI~UOiJa>(?*`!k(?vHSOCWZR6f;R5tJ5ZG8hDE>$@3<8qB7Urtgt z^XCPfLw_zXp7rb4vuoeZy}S4C;KPgmA5Xr#`Sa-0t6#5PpuG3++*pMVAms6hM_YUrVeCaUP7j5g}%qmV`_>7ZqiaYU-(|rmE_ythVavtFXpbD(kGWy28yrxaO+suDtf@>#x8DE9|hu7HjOW$R?}o zvdlKiEIGD1EA6z@R%`9G*k-G(u=?z`~DEAPDY I${P>>J76Hy3jhEB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif deleted file mode 100644 index 164d1016945304e0f9bcc09126e78b21cf73dc6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 189 zcmZ?wbhEHbWM(jAIKsfNZQHg_pFTZ*{`}XkUq65T{P5w!A2g?YaiOz=0)+iXNk%w1VJrbM0K@+9|9?da&}>gww6@9+Qr|L5oDySuyP<>l<` z?5wP;-rnBx^Yi25goS5=hKY(MPoOO23|ls}S{n3*z{nw_2~oS&kfp`)glrKhTo zsjIGrt*^3wv9q>zwYR!&xx2n-y}!a?!NbN{#mCB1$;-}9JI~T<(bLvq4%OG&TLaqM z;8X$M;pI&cn_%!zU{Pp+!09QO%P@tf}g9sBUT*$DY!-o(f zN}NcsqQ#3CGiuB@P=LpeAVZ2ANwTELlPFX8s$9vkrOTHvW6GQ<)1HExICJXU$+M@= zpFo2O9ZIyQ(W6L{DqYHSDS!n5qDq}gwW`&tShH%~%C)Q4uVBN99ZR;X*|O~js9npp zt=qS7(BTJr4xw7TUm@f-h zaGC>oFt6t5zwd>cgW6O?BU_pZ0xO3~?&AYen-@tPV(96ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui00RIr000O)0M-3-C6M62f(Q>PG{`Vv!-WnbLY(-p pqC|@n9mX3dZy>#a_6Fh`m~Y^|f&2#g8~Bf#tAXTPkz*GS06TgxpfLad diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-close.gif deleted file mode 100644 index 98d5da9528411ee291e0548246d9c86a82455d32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 896 zcmZ?wbhEHbJo2h-f@WP;TO2Q8ZC-n3TfI!6I*vV6fon wDRve~6%L2VX-sT}ybKHr5|%U0VVBS`*swq&a1L|0R%~U!f`d&=%uEc{0N$%ghX4Qo diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-strip-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tab-strip-bg.gif deleted file mode 100644 index 040b677a52f9a5eff89870aa31d1874765ea5a39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHbWMq(HXlG!!ef##EJ9qBhy?gK8z5Dm?KX~xq;lqcI9zA;e`0SnxjEQ?q`I@C5s=a;ag8W(E=o--$;{7F2+7P% zWe87AQ7|%Ba7j&8FfuSOQ!q5JGBmO>HB!(uFf}kZ+p+j0P#=4Vr>`sfH6CexDft?u z8*)G)&H|6fVg?4eLm6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096R000OV0Gl<#*3BEZaO23CLziwHyN3`XLJSB1 EJ2X9wg#Z8m diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tabs-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tabs/tabs-sprite.gif deleted file mode 100644 index 1901b231b007616143c945403e60d961f41e3b32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2109 zcmeH`{Xf$Q0LQ;ZOddAN!(v@TbTf3+QC^++C1EKie%(+0&*Z1&L5(D3l^=;-L!*qA^d7#|-O3WXCB6C#mFEEY>75~)-=IXO8sH6@eDrl+T8 zW@ct*XXobTjiz=0BX=zEVRxd9vudJ-BuCA`Ft!XqG;QPKC z_@5cDQR`@byM+3NZ%qJT4e%Ad4{5w?u(lzB_ptP7E)=6<4XwvL18mXp!=3eI7!$ZZ z39*+|-UWsGRfl!4DzH$vS7*uIhROpFxTkcutD%Z-40i`_+Sgd!YXo=OcA~qn=B**z zWzXGxkLdjdaHsf@?njIu1Go)o6ZUa!2snyQ-+AXO^LV4}Xj_t_3N_LkGb`N0NOuY2 zBz^+fe@st_YR&y@PiZ+83pf%>brE{@*-m6 zqo_erlq2Oe_3_Dp%OQ;9>&GM8$Mh{i5j{{_;-^lsW5hvg;0owX8TS4`wl6_nmvw5a zhuuO1ETAOK=0k0*89G`hyI_7Bdqt%WiahMgY5TIWWY!tM<#4`+>7!o8jNcv5`FI84PYNgKdR?m`H9rRz+Tlal)cT}xsn%rrq-O0q{1 zGdJv*l9uHM?&cB9jwVc2P-8=R1bEuiWECyvDlzi`1&OSwtQ`80PQTrqz^Dq>01Srd ztI!0%hq`2VRz+IR5rdY=!u@?h& z$n0x3-=07>t$wD=*uifLY)*kqIz5Z~eCUXnI=T{3cxjFOIKI%=j=V+Fd-Pb#li z^vK3Z4s}byJolNUPx%;U^+aJ%vRXuqt5b_h(r45XTFPg)KS1p1!+!$QOXmUornZ}C z!x!EKXvkn&0U9RpCZo+%ZDcfD&!-S=Wx**#|KQ+Lgtl?#6rrE^@oy{d{R+9YkR1h~ zE?!FI6syh=BZ`+!-_%gl$)z01azg!O%1SIRg0dRj>qGg18;20rRz2O>ntpA;f)3RS zl*}iL_zP5~aBtlke4;2@pthrWudm~0OL>);idY>!i7Emf?**2a40ltL_G%oWr0F4Zah zDE0?F3)7&iM_qo0vv>~M<6;a0{be^{v*GW~fZeR5{AVyd&-YvZ4Jp`f3-ulOxy#-V z45ZM?-|FfR?m)nVlxihePiL;_m}Pfi*0qWjP5=M^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/bg.gif deleted file mode 100644 index 9ab78a2ec788d6dfbbcd6212a4d3b1d9917d55e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbWMZ&jXlGz}_Uzg7=g(ifc=7V(%U7>ny?*`r&6_uG-@bkK?%n(M?>~I_ z@c;jRhEXsY0>d-}6o0Y+efFP02jo9co?zfGW)Rn5a1d~4Xl7*5h_P7kkby}+S!_nc jfrg{q>_&192R0@*^>d1J$arpAa&odp@G2Wg0S0RTW*Ik7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-arrow-light.gif deleted file mode 100644 index b0e24b55e7ee53b419bdd5d769bb036b19fe9592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} zernn7GpqKUUw`Q0mSb0ToV>R8?9Kh>?)?A%A85cR7!84;8v=?yS(q6Z7#Vax zUI66@296R2W)2yT4GRu7a|mm>STHs?w+nNawPX}9G%#|o>fAZ8aq;nf1?Mgq&rM5C zPSyxs6?1aa(*sN*0#Y579~gX_Ir7AO7EE5yG(%Y4FT%k%!-dUUH;Lzh!*aJqzAC;N dg;0f-Rg6jrr6;$pzP>);aF?w2wgd+TYXG#xTAcs@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/btn-over-bg.gif deleted file mode 100644 index ee2dd9860c799be6dc194b387c36a953c55aac59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHbWMoKTXlGzJeCy}&J3mj~|8@T1uggzJpf;!hT!Z~imrfcyl?6AT$05BdEW&i*H diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/tb-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/toolbar/tb-bg.gif deleted file mode 100644 index 4969e4efeb37821bba1319dce59cd339cec06f86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmZ?wbhEHbWML3xXlG!!aPPx~`#|*Z;=Kx_O l3y+3|gNw^!V}P zr%#_gfByW%ix)3nzI^@q^_w?u-oAbN?%lf&@819W_xJz*zyJRI{}04K5{!XHj)Kt; z7%Cy4_>+Yh5$9Jd%486*rY9BSaXJ>!E&dA8fU=090ubNf> diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/arrows.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/arrows.gif deleted file mode 100644 index a51a8e477fb2be3d370ba4841944dc6572f1673a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 407 zcmZ?wbhEHbbYKu-xN5{uSXij0rnYR^vME!hL`FvL*|X=yjT_gmUoS5&zjyCmXJ=ZH{ZT}`{~oC88c=qT)6PSfdgyTu0473+-@JLVX3d&gw{ERmx$^w^^N$`q z+P{DQ;>C;Ky?b}$$dN^h7Tv#p|LWDN*REaLw{PFMbLVc~zJ2A&l|zRPUAlCswYBx- z%a?cV+&O#pY(+)Ik|j$nU%q_s;K2tE9xxCM6o0ZXGB6l1=zw&9{KUYv#bIWFhmKVL zi6uoRbFAiHSW)7&HfsGv7tZQA7CT(nT3OY&3}$5{PPAbVn7G3Ipa++fz=h2M94gKX z@&*3VKm*E*MEPZXYgp<$)ELB?RD6{gm>JkRjkGj*z56G4>Q52UW64iS7+TGP;u9agxLc|Npmd-#&QoVD;+Nix)5c^y$-Lk+%)6#tp3e=bwtN~-tK1cun diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-minus.gif deleted file mode 100644 index 585051376cf71dfb82cf109d88c2857168dbd913..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmZ?wbhEHb6krfy*v!Y^>gxLc|Npmd-#&QoVD;+NTefWZ^y$;$#fz6NU3&QN;a$6S z9XodH#EBDEu3TXN1I3>#j0_BX3_2hl$P5M+_X{UISI>R@s@C}bRfisqBAJt}EIQd7 z4Y%0zg`-z%^PGxRWNZkyQCy+Mek<>S#t)75>kTIh;`o}_oC9Cjsdp~4VAYy^egOxA FH2|ztLX`jj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif deleted file mode 100644 index 752b42a3c74c39538bfca4c94afa9bb09de0befe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmZ?wbhEHb6krfy*v!k|>gxLc|NqsiSHFGxcJboHTefVuc=6)hyLUf*`m}4;uBA(t z9zJ~d=+UDLFrfI8g^_`Qmq7<405XGt#bv`u&((V^UY~s}xL}dMks?mVSxU?Ws~EC( zh|OX;Jn_O*AqIyB@0>U`Ft9r}x+`wrV_;79l<^R5)hXV@QRO>#L&cm<1_o;YyTv@k diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/tree/elbow-end-plus.gif deleted file mode 100644 index ff126359d396ef5e5c9a9bcec2bdfba4dc084a52..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 156 zcmZ?wbhEHb6krfy*v!Y^>gxLc|NqsiSHFGxcFUG6ix)4xc=6)hyLUf*`gH8rv879w z?%K8M@ZrNpj~-#j0_BX3_2hl$P5M+&kH9#SI>R_+n`@+35kRg#?Ga*TYf<38@R-i3PC&`z~@ed-ye;dtsu% H#9$2o_3uG@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-error.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-error.gif deleted file mode 100644 index 397b655ab83e5362fdc7eb0d18cf361c6f86bd9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1669 zcmV;02738NNk%w1VITk?0QUd@0|NsJ0|X2J00{{R5ds1i7Z(~66B`>G9v&Vb001Kp z5h)oOFaQ8I0021w0Y3o&E-fxEFEBACCN(uSJUcx_0Rc|{08I)CQ~&^5003P90ZlnN zZ2HgaR#tRYR&iNbdS75? zU|?otXJ=+;Yin(FU|@V`YIb#ZeSCg?et>}h0EGYmiU0tO0055<5Rm`?kOl^o005Z) z0GmN+?~005%|1f>7~rUeD5005~41+4%8tpx?M0RglK2)Y6SybBAy92~17B(5YS zt0^g|FE6h$GP@!ovpPDDN=%4PP>)+%g=J@gYio~fZHaSpjd*yLX=#~kY?O0znsITT ze0->1U$sL+wn#|6N=l(?ZKHd8zjAWJ0s_Pf3(Ero%L)p|939OP64C(y(FzLN0RhLMcRH8%DjAoeXS{Ujv)EG+gtJ^wQ^{W?3v zNJh*-LCQ@{#8XqnUth>oR?f~+Utj)HQ~z6A@Lyo#VPouQYVB}x>v?Q{t%gd(L*0R{xyxG~vlatYag2Jb&>V$^kk(2*{ zf&Yw*|C5vdnwsaLq~@lni75b z|Ns8}{@~x^A^8LW00930EC2ui03ZM$000R70RIUbNDv$>R;N^%GKK1uH+KXhN+gI) zQmI(8v}vO?E0!usk6NLdNb;LSjN7_}3)gKMEm^BfQ9=}oWJFkzOv$3fZRN_A+GfF& z32BcxoBv$pj74i3x2G;S3XK)B)FeoEmXWL#snn`jv}gsDrLa^fQ>tQ`viiu;6mb&4 zIih50RjgR4R9RKTR}rL1lO$0B9ElMiAmt)9>blUBj4Y5687efWvLQo=T3ms|nUS42 zGT05w#%K~HN|L}(qt>OeA3m=K#Zlp_nV3Y10NJUdgV?}Dj3P~n6lR(~fAPA&<^wy< z3SY;ip*i$tjvF;7)cwO(hY@E;pU(dEJAMvK96x^EuyA(#I4D2W)wt>4TNE8YjvOf} zG)mrhfAgFX#~WKj)1E)1@X?1HY^b3I4=}g`${ckFf(Rmn_^}B+|J5T5Fy|aN${TUW z0S6mQFhRr!;UgPsq@e^7N-V$&6Kb%bq#Sa*Vdfi^>~mm0dsJzqm1!)YL=j6Upi2{A zuE7S7XQmMhKT=kc#-N0zk;D-~AfZ4mcqp-i8dkz#<`P*@Bc(t0{IW!$Ngy$V5I-1@ zizZxdisc(i!~o5u$IbJ_rv6JTkwg(c{D4CNyI4a65=m^j#u6#8*Ipi;`17AUTJ(BE z5kdIy0|yB7l8z8W9HFeL2U?Ou5|`ZbpQ}X_F@z60{NTU@$Nckz5JFhX#WM$9V(qqN zczc{Zzy$F_4?N^RzzK;Blf(}}6cGhE|5-BcwnvOnPkU1IumcV|U{F8}13B@74?zS0 z#dwzlam2`nic7|EPvkH$4mJotfiVMJGlaxG_)rEWKMWD>&Oe?)03;wIQ58SrAhy#rm+eCjRSRuH))@dW!7dZ& zW5o_u2R%03bq^haWeql1000EIv_ld+Sb#9`4TvW`^x8Ju-~j^zOmNFONd2>m2p`;_ zHs5>m&A|f!9AH8(f>-{JI5cc`2#jD0Go}*+k21NqFv0{8KoG$M PBfNl1GVhQS5C8x>^BLCH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-info.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-info.gif deleted file mode 100644 index 58281c3067b309779f5cf949a7196170c8ca97b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VITk?0QUd@002Ay07w84PX`%A3LHrS9ajJYWB>?a019mY3w!_= zeheW`4kS_$BTNt{R2C>w87x&AE?6EhTN5*F88u@cHent&Zy_^VB{*RwJ!T<2Ybrfu zEanAeNJ0@02_k<8;bxSjRY)#049Cl8e5Y1_tY3bkWN(XQaEfVlk7;?7 zZF!SzdY5*8mt2auc!8LDgq&lBt7(C!V~et7k-lw{yKsuMageiql(2i8y-tSTQHA4U zhskM;!F86%bDF?tGlSHx~QzWsjj`Ou)c+z$A_QDf}_NMrOt$@%8RPR zi>%9lsM?CJ)Qqyzkfy4!pytE%CW@Nu*TlB$=|re)xF5pzRlaC#O0*M=&Huzs>kT8$>*ZV^`Xr3 zq{{ZD&GV%F^A_)Y{V6-P_#W#@Xx7+U3jK?!?;j!ruDO*W%II z<s1(&F;b=Ka&^{@UjA-Rbn(?f%pA|J?Ea z-}(RG-{a%sWQF}}=T6!l(LfBVqwLzTzdz--gr zA>~JRUspdjz=SD#uW#3T=*1z15PotP*O<}1TXI=rW8fk~GqY79KP}1YrcVGlvzs zDl$nW+ZJ<7GW-rh3M7OOB8UkZSwRrC?KL;(Q+JJH=Ywg3PC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-question.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-question.gif deleted file mode 100644 index 08abd82ae86c9457172c7a4fdbc527641cf28e48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1607 zcmV-N2Dtf0Nk%w1VITk?0QUd@02fyP7F_@vT>uhh032%o9CQF5e-A8e03mY#BzglW zcL_0l6g7B5MoUafO-xQwNKjc)QdCG)VMGais%VD1YKp&Yk+f=&xOI)E zaEiQim9}=7y?K_jd6&3+oV;3t&|-(kYnQ@tj>UPC!+4gSZh?S#&mcD?Rw3D8!n4hVIpuCNxypy7?lBc|sslAz{ zv!1E8nykH`pQ59qrl_Z?tE#T5tFf-Ly0EXZv$D0gx4OH!y?~j^f}_NSpv#4+%#5bO zjit(rsl|+~%!H%Tg{shuuF;CD-i))_m#xK;uF0IQ!Je+okgwa9u*sgY$DOs#l(p29 zwb+%o+nKY|oV(kBuJ?(u=#RDcm$&DYyyKX=;G(m`qqxkgwZo{l%AmW~pu5Wy1~n_!_~3H*|^2hyUEtQ&D)~F!=r_S`L&GoF&_N~(Sv&!PL&+@j??Yq$Bv(odm+WouL^Ss^uzv2JK z#>vRX%gf5m#L3db&e_e*)63J`)6&(_)!NwC+uGXR!PV)++V9BJ>B`#d#N777-1y4d z^3d1g(%a?H-|XGp;>6+p%jEve=>OE=@803%+~e!f;quVt`_t+E+2!%y==0m`{@(Hb z;NRop*MI`>g(&|>+<34{Oa!Wf0xe!3Pge_@yBbqQDAy z^yqLDY^(Y`Bgb#Yy&t*SHt<)MmubQE= zM_%4K|K!o54GAF7UTBq*Ob!?g0o7_ijR4L$#5Cl7WQu5*Y1Gi(Bmg6D)2&N<*T z_(l=0(9+Fy7{;fLf+vi?iGtvWSYtTY0MiN@9f&f^H7LmFMINyXBrZBDyqCps^d=g7F3EF65lHnZVrI>UYlglJe zU~oq>afkv8HsRE$YQu zh#-bkqRKD4cwz`3RWxA(1Qnd&3}YuvgUT2`;GhH*Q&3SwBCD*Dh!i~7&_D!W@DWW; z1F;hgDs>bA#0Ei30Z1pS2x5T)7=Y0SG)EyV5IfR9lMEkstO3X(t9(I08OcCnvDYWD z6Ol7qAd-p~6!7sjC){4MV~P`tbU^{7d>1~=99ZDpN7scTEv^xRGv0Vk((EBd#a;&l F06QAMRrde@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/icon-warning.gif deleted file mode 100644 index 27ff98b4f787f776e24227da0227bc781e3b11e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1483 zcmXAoYc$k(9LB%H%(yfgGuR9b<4z3ocd29*O43CNd(`UWmQ=H)a>`a4DYpzOx}c(x zSlvdcWJ?+unZaR-H7>b~v1S^TyJ_?Ptx;{_9t|N0Ki69nENoJ2v3`>&g|W8&busa_So7*+dD)$ zvLc<>kt@t%F{f~h9qzG`vt^ZG;7|7JumJBhJ9Y+8Lf4suZE^fH#5_9C`L|tWUS6U8 z{=uOE0fBzowgqiH9`W<?y6`^?T9Sbi>kIro^$r3_Y4hFwk)R(#Q}G+VFY!jG?tX{A@K zA7Ak-yF;xiAyhqNys9yLRL-ovzEyCSA}UpDxeZO_LcSl+NfU}@28A3*bVbNWrHA>fZ4D_larvD z0o4={9|wFI(DV=ZJRp1#nxdfzI{Lyuvvho356v%?4p|^%j&Mta>}F3~{K0|F!GZpTzVLoC6_EgdgTr?dzB>V$ILvD;-4MrIlR(m27G@h~>JlYZ zVAt|_ro3YUVh;qD&xzwC(+MYO@wD@Y_NS8}VxR3300jn*@X<;}{z{$rL zTQ1Ygt3r~JNZK6NqxROCFAF5#=}AsXB5Gp!SiKu3HLoB=^T~;XI#AbK!S$~9M1UFk{5%nyiu}%*CZiIbNf<7_U*)eK2jmJEb7FxOYX=;RObGwm=_w(}-X91Z& zqYL6B`%{}cDrkMSM*JWx2`jXogS!VNpUr25HWVJ_hwMpzlk(}y+|3YZ)%_6gfm?u*PI1fu~NtNN%<%o?1bnQ|HcP z+A{@eE%wEmbNMT^8Mo3bU$&{4r}IL6UfVqFo%2t*Tz4deYD9aVZE~6`7TH{nSG#4; z<6vfan`>!V4h5%@)!a#Ahc&Ef--@I2iU;@wEYEC-zjIsI(0PM(`f?qQqf=C&8Tb?#p4A}3P=ZzHb8 zU%2?008r{GmdfTSw5X-f*JnevxfSlSM{Cc=no(Hy6^Zi{dugQHUH~t06Bw zQt4307HjGF&8-z0AF;fZZq8-%?^|4nr#0y83LDz+toN8`gZZg2p9Yd5@bP-%L)8(V zUmmP8OS8yf(llyk`BV+l3sY@pR^S)K>*+DB$}jc0e)m$1w?{Mi5Ahq5K8vj4mE(=f iL}jwpve+-)v>A%!R(IJo>4b>g={y!}8MU&)y{(R0&S~+{w z(?jJeZ+qx1J@J~!$Z22oiE4HuhcIT#trN~m7R`20JJB0A(L+V3)8*gf_51eCeC~Nb b`2fT2b!^tHHgTe~DWM4fVnvnL diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/left-right.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/left-right.png deleted file mode 100644 index 4c81137bbed83b71978c9092a4a228cd9731b745..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CK!3-qbmi(0kQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiZ}y&LR`Om`SSYp>)pF|3rnt$0SbzGx;TbZ+)7GFN@-wn gQ)4r-U|?ipU=d)Dj}(^U11ezfboFyt=akR{09fNB!~g&Q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/right-corners.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/right-corners.png deleted file mode 100644 index 807eb474476ae1d1e600cdf77ff0635daba5808f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmeAS@N?(olHy`uVBq!ia0vp^Yzz#HIvmVE*7YExc|c0C#5JNMI6tkVJh3R1!7(L2 zDOJHUH!(dmC^a#qvhZZ84N#F&fKQ0)moHy-@813T_3O89-+uh~@&Et-FJ8QO_Uzfq zmoJ|_efsIsr+4q(J$m%$;lqbNfBw9G|NhsnU*EiW^Zxz&o7b;@|Nb3l%!YNx9DtNq zNswPKP&+1IV7zqT2~b72r;B4q#jQ72PYN~|@Hhva?7ZoG<5K-<4QJ6aKVtV;37k+X zc+b4`*U7e^F74TGj_91y;5R(s=(A`>gU6)KP(3AYC9y!OZWpDA9x9(!&!{!87k+a~ b`vAkbDQwm!vlhPvTEXDy>gTe~DWM4fALy3? diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/gray/window/top-bottom.png deleted file mode 100644 index f479fcf3cc6ad008991bd7feffa52364014c917b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 210 zcmV;@04@KCP)+9>gySwS>>FDU_?d|Q~ z-{0}^@&Et-;^N}w=H~M9^5Nm(<>lq>?(T%8E?ocs06R%UK~#9!?A6H;fFJ+_!BO!7 zB>!-&(Ij|mC(*3p5{KyG7LTZ+h)pbF7ekz)iHL}Znf;4>1HJ+b02)vN9mKjC=>Px# M07*qoM6N<$g5V5Zw*UYD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/btn.gif deleted file mode 100755 index 9b4334eb8c3d7df3c7d0d37cb04e000e3555b434..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2976 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 KRs<@`f&K@O!AWHR diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-cs.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-cs.gif deleted file mode 100755 index 7dcbb34ceb45f4a1bb93f72af5f7a74110b9f124..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2114 zcmV-I2)*}5Nk%w1Vdw)a0o4Ei(AeM4*WS(6-OSb9%hTM+(%Z+;+Q!h?#n0Ho&DX-r z*TBoxzsl9V$ke>Y)4Rsfxy8}A#L>3G(6zzOw7|}?zs<3}%&)x5uDi>vy2`7$$*Q=> zsJ6$awZ^5i#iX;vqq4-Iu*0CQ!k(_dovpx}tiYP8znQ7Nm#DpxsK1t{ypgBAl%~6r zq`Hx#xsal{kD<7Yptp>lwu+s#ZGo9lVs$`Xc|TovK3#Y~U3mZh{{R300000000000 z00000A^8LW2LL(%EC2ui0O$iO0RRU7KppKyyy=d}q;kn@I-k&}bV{vSuh^`1%k6r< z;IMd1E}PHjw0g~MyWjA4@kSHgQutJS&+q&HfPsR8goTEOh>41eaCs?ocPRjqjFpy` zn3ID#_?m?cc!%(=5?DVZfWn?QQP=hLWDLoPkR8HLvrRLh=Cdo64V z&MN4xP`kJ9-$r*=aAu*n1>ne&D-UVhg0l2hMaL zVFwLXXyJupOxS@l9(3sc0fr!kDB=_zdf?0lD1I>FiY%^};s?%vAR`DZ)@WmcGlJku z2t0;xcSnlg%m`49u;i3fA{XTd&XAxb2~~FKrD|J};7kc* zmhk17XiipU3C@_{rU_}rDd%8sn&8X{c%Crlo_w;E=LycBASeob7HVi!g9=JS3Mw?J z!l95xT9l(IIK#rFEJ&*9rY>R1f-^0I+5)GfmgZ=E_>Vh*b)cOLf zxaN9~tuHtO!>=&tD(tZ501JaNF(exUvCKAmjj}N~Bg3>ZIBV^-#!xGRGc$BM1GeCX zTZ^|dI3w=4=+a{UZo2HY3(C6g#w)KS@Xl-Ry@b?@@4o!Tp>Mwc2YklA0vBv>7X%-y z@WN9h%<#hyC*g3!6fZn+#TW~GamF0)yK%=L%lmQ2B&R!a$tZ(+a>^_>yK>7g>-uuc zG`l);%{Xs*bIv>;x^vG!@A-4kM58%$(MVT$bka;GxpdP|+xT?URF61y)mUG6b=F)j zxOLZH|Mzv+WV1JR*=U1zcG_%Hw|3ibBlmXPbk{a_-FT;Vciwz=ws+rvNA`E%gcmk= z;fUvTc;bw=wRq!@hxK^mlvg!*<(MaRdFGt=w0Y;C8OKrdg`oGw0i5X zKlFO+v=21@d+oU2b9?T*%d>m$z?<`X@Wg8~eDTOvbA0m5BeQ(-&=2!`^wirjef8MK za((vPi?V(9;CJ$U_~c_Ue);Gxa(?>k8?t`;@CWjK{PgoNfBpEoaew~&r?G$k03^fz z0!Y9w46uL*)WQK1$iONruz?VS!UH2n!6i(vf*91n1v5y&4RR2I9{eB!LnuN7lCXpX zJRu4JsKOQUuZ1qe9}HtizZudHem1-z`*Ns5^zpEVv2Ah_V&42F!@?;} zg^{zI20JG@HMXdAeo&q6>=!)a>9Kawvx4)yr@iv2Pm$TPpAF@kdhQuCOxUmMyk^CrL?90 zqa&{iw0b-JX`g~BRH6B_sLdlPQsbo5r5f$1PAy(jqw1xp zQdMbCy=w2Qs?{ZNwX06cDp+gx)v^AltY(#(Sku}%w6c{&ZhfoO)+*Q1#kH;=x+`9_ zM%TS|POpA#5MTrAwZ0Oza)Ui=fD)@%u^G0pjbkii>m%98n(eWcEnHbR&AL5 zY~MU9TI-Ouv~CM6YU_5|)heg8u9cf=W7{^^($+V&y{+A5tJ|{WwzsnREpYY5+u?Ri zxW@eqa+B+~;xe~t%YE)-qAOj&Ik&n^qb_z2quuQq?z-MBT6e>{m+_KUao{~)Z_muD z-nX!~y^c#Sd~5dJ`HrQ&_LZD`^V>4~^7ktK{jcTrE8vm^xWH05FoHEl;01R~!45VG sgd^;^22;3V&d|e!VVMFP)F2Xg*l;fMaDy7?;KM}_anR;q;vfJ3JCL(o$p8QV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-lr.gif deleted file mode 100755 index 21493ecfa6628267cdf08ca5f7e5164724539804..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 80 zcmZ?wbhEHbe8J4fFp+^_(u)1|u@(RS|7T!eQ2fcl$j-pTpaWzxfaDpN6nR=!o_@=} jc+Qqv-J9?2`OV+<$Ya{G&SkGoZF|Rk+=!WlmBAVSO-~*` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-tb.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/group-tb.gif deleted file mode 100755 index 7d57445201eb77b0b250dc0c01e6ba84a5c897e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 284 zcmZ?wbhEHbWMt4`yvo3E;l};**YBOZcK6KHyQeSTIeF>!@r$>PUATGl{EfqBuOB*d z{lMvK`%hincjC&P%sF|4xHPx|Ln$nXV&jIy>9pEwYyHO z-g$D>juR`k9bdln*wQUWmux<|c+-)E8xAj6e`wyigLBp#n7j7CtX2DGuG}|$#okFP z_D@^BXUekOlb7t8xOnG;MLYW!?&w{xy=VTmuDM(7V=Mmu|Ia`ODE?$&WM?p8&;cm~ z`H6we@<1e)gA5OsM@!Mc5)0*tomZUBMp)iBuYN?g(*MELRjzFZQ?_iWI-9rq{)Zhk Te(P_)|FNg;{PyK(jttfSW1*KC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-bo.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-bo.gif deleted file mode 100755 index 88be0db67d427403c2988aa8681128641f08d8c6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmV;60CfLHNk%w1VaNau0FeLylBmBwU3dTh0RR90A^8LW2LJ;AEC2ui0LTCi00079 zoR6u??GK}zwA$-}-n{z{hT=$;=82~2Dgy2c$MQ_q_KoNI&iDRr!w84OqVb4KDwoWr t^9hYgr_`$Tip^@b3W3+l4U5NyFZqnV3exPh`wfrF=k&V$jz<>&06S`8L@EFP diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/button/s-arrow-o.gif deleted file mode 100755 index c5133314eaca0dbd1ad8b24534badf9770d1d633..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmV;60CfLHNk%w1VGaOD0FeLylBmBwU3dTh0RR90A^8LW2LJ;AEC2ui01g0100079 zTrjDd$8Qi^ZmMcyZZc#0O(8TsC38|8xQZ?LnlU=7o3^D_z27?L;{kI*oTvCRvVzQn t;Q6#EpfrX+);wmH#I4H<17o{nZJBFMqu1YaTm5E--E(+dKDHD906STpH}3!d diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/editor/tb-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/editor/tb-sprite.gif deleted file mode 100755 index bd4011d548cc62fcb4ecf3a92a96414fa804cac6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1994 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/date-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/date-trigger.gif deleted file mode 100755 index 5da5850f7963d274f9672aeb21aabec6693100e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1612 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 W=iMgExu4HI+q7o$X+ahi25SJY7|nnH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/form/trigger.gif deleted file mode 100755 index d2db1bd8289e77ca4efacf54bccfe1dbad7cde14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1657 zcmeH`={ws80LOnMsbgr`HKD7gi*{?(k=CpermA6UsdgT-@Wkz~l~{l56T`@H!)&-bj~=NR|sIKT#= z0>CjW&cP?-7#8p1A9L~|!96JP6fWK?a4ul?^EHwMDIGO~L)xe{?nQ&{V83j-H$&Xo`jHe$dPRhTGkHx2Ek5^_N93=em!*VvW zCS%w=sxD(@oCUvbzDTIbaoA$PPz4T)d8e;AIN;10*=#7*m(FH`62mR;roDq(6%g^0 z910vUcZ-APACa;-LOjZm*Iz_m;@iEFF7ZPVsAugkU+-t_U__X-Wr8#&6=^>SJR{b! z8OZ`&T&}Z7O^WU5(hoQu$3Y(@u1H>z3a?1^ES;BzSU{chQYdGBMYgp(xzY{twEAB7 zS=tz|FC=NTAB^C(_JhvaRXK{vRSkSV2;dKZt@P)^P9hotFzRz!Q+x!`BNQL&Y{^Qb z&9~A~ZxhRQqlCY>YYNW;d1(sI5$!(@1J4#$0Kp;2>tkR9PcR1BY1h?JRGvz8iEu%v z0+sZQi6qgf_3_X!AoI^?wdKZRVn}kvlyM_YvoW1`U-@DxJ2P3N$=Z!}o6ZXZUe4xQ zcZ+AJhrK%HXm0;vv}L0g#5!bfWadnj>+*{yNtsqJbQ~&rOH+BZe)B1d!`m9?&Mt5L P9eD%Y^%Mz(0-yc|5N9Wz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/gradient-bg.gif deleted file mode 100755 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-left-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-left-white.gif deleted file mode 100755 index 63088f56e1c33fd23437ab00ef3e10570c4a57fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVC0bDXlQU?ViVMIiI|XhxRH&WjfKG)0LI-8@c;k- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-right-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/arrow-right-white.gif deleted file mode 100755 index e9e06789044eacb8a695cd1df46449bcb2b9aa07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVB}zNNKj~OV&PY_IbpESp@o^1jfKG)0Ls}94FCWD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-bottom.gif deleted file mode 100755 index cc1e473ecc1a48f6d33d935f226588c495da4e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb( zLO{cVgpLOZ6Fwx&_)sw8LBWC#1q=Q+toSft!~X>b{xgh%(GVD#A)xq^g_(hYn?VQU zd{CZX;BaIR=ZFzVT;Rwl#vu{Yu%W4$ky$xng~3BdrVc>?i4_ctPK=BUEM^-R4mL70 a^J-WG2rw*VW@C5a%Q0YR@NEQ2S_1&+BRBT| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/col-move-top.gif deleted file mode 100755 index 58ff32cc8fa2aa1be310b03bb2af77c1b77abe93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 zcmZ?wbhEHbG68wVGIhem=U(^LUb4h;c?We$u2%uEc{03e(}^8f$< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/footer-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/footer-bg.gif deleted file mode 100755 index 126120f71eef89987818dcf64e6510ae83c8e18e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 834 zcmZ?wbhEHbWMq(JXlGz}`|9@lH+SE^x%d9- zPZpr7|1;=-+z!eU3>@+d`VlJv8V|8>3M$wXTxdAR#L6ikV-V2L(7?dJ#=^p24FK}3 BP__U7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-hd.gif deleted file mode 100755 index 862094e6803f522712e4d193c7becd8e9b857dd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJa`*r7`~Ocp_<#1%{|it4Uw-=k+VlT6U;e-I>i_*W{~x~l z|K$Du=O6#S`uzXxm;WEW{r~*q|F@t2fByde=kI?YU>F6XAuyCfK=CIF(E0xvbU>Z} m<=_zzU~q6?um%8<;zWG_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-blue-split.gif deleted file mode 100755 index ec3929e4dee9e36a3d37b8e38c04331ff75fc9d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 47 zcmZ?wbhEHbWMbfDXkcKNv|_(~Y=z=a76x{P{|q_|Kmd|qU}EFxS$>k6mBAVS1%nCy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-hrow.gif deleted file mode 100755 index 637410420736482e521957d51d44f9da47f519de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmZ?wbhEHbWMU9wXlG!^UvU5W_3L-<-o1D4-u?UcA3S*Q@ZrNpj~+dK{P@X}Cr_U~ zefI3x^XJcBym;~Q<;z#EUcG+(`pug+Z{NOs_wL>M_wPS^_`om@~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-split.gif deleted file mode 100755 index 2d270017b268a93c03f7ab1935c9b3b73116b819..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 817 zcmZ?wbhEHbWMbfDXlGz>3(HKYo+czFJ&Hy{U<8JM;!hR^28RC(IzW;ElqVQC_!t;j S1Uw2B9Bks?XXD^tum%9Ja7?)X diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-vista-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid-vista-hd.gif deleted file mode 100755 index d0972638e8305d32d4a2419b3dd317f3c8fd3fe2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJe){5xGZ#;uy>#l_<(QpFT5;g3%Bd$|0cmlLhGf{|q`H nPk{0S1BVoYrq2Wc#zV~Pyb=r?3JDC2Ol*7#9t#p29T=%+~y54ZY1+?@2`)})WOCx5&>_2cbnAMXIs z^iTH}e}25?%aiqAo^JT^WYd=?oBzMw^#9$qug`b>f4?1!cKm-2WCPKz|L^zw{{TdX z|9?LD|I^w3pU(aNeBuA+OaH%K6&(emAuz~7K=CIF0|Uc<1|1;D0Ll{#9RC?413DZw zEO2a+b?b;YvEiXpBfGMj$BPY%I68!QgSOldNOo)CvNZbgqj2$wZf5%?o1X?ty(TMp zrnQ_5T;?)MEZ6NwWZ-khd3?25Je5HijtgXCr>RH}7tl(FEt8CZ)J0cbG z`hq~h;VxEffu@_AGtR2XoHlDYz+Uk9RO@Vkmb<$v-g1>3*uFk~AE!NsoKM7uICfqk z?Ys--AK3XPC|679EI8Q2#$c4qmQdNq!Y^&ZBH?Sr@Pc=$sK$XkI~%iD=UWyC#NKMo z;hQS_BJFJC_IKx{nl78k+Ek>noDfXNn;`Quo#%pK$2S4ls;A61HkzN9_qVw1{e9bp zh3xS+8-9L%akhTnfqi?czfI*nG2cJ_-*c`XpI;x3pV{#LKf|x@Gg(>0G87u8@-BGL z#H01&CX0ZZhGGk+S;oU=;k1Z_tvpFH7Pd$iy;#65?t@r1!;R>qPEo=rQJ^!mEJcs#*kmBrHzhjl+x Vxk4E!829vdDoGIQ{XM4Z^5$jHR3#3!Jj&~Ox}hJ}T}8UU4@ Bjp+aY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-hrow.gif deleted file mode 100755 index b6abe1f0f7a0d7f5f97dbf8424acc8c73227908f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 836 zcmZ?wbhEHbWMYtDXlG!!bm#8RZa;T{5t zKUo+U82&Tp07(W=o?zfmWDw+#@z{`XkeP#DBI3k`hQmxO96U2D92y!JB$yc(1OynY E0qr*G9smFU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-bg.gif deleted file mode 100755 index a1481dca2628da571fd92aa0466683e0fa3b595f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHblwe?DXlGzJb>+sZcOPHB|M>R9r*|JezyI{*!{@IbzkL1i>o>zF7!85p z9s-I#S%6;r&!7YHC@4=ba40bda>#gmIKarv!7ZX-kkHV;z{nslr{jQv6El~jRSSoL H0)sUG8dxQ~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-sel-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/grid3-special-col-sel-bg.gif deleted file mode 100755 index 34b242d096a9333238e322da961781735f3f6b9c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 847 zcmZ?wbhEHblwe?DXlG#fc%kb1qqShP?)#(l-yd)I{&?e$CtH3z-TLF{_8-r7{CKwW z=kq;3U+n$)^1!cGhkw03^6Sm^ve01`ZAl3=Aw`8Wjc)54G_t N`>m-EbZ}s>1^{v}VP^mU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/group-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/group-expand-sprite.gif deleted file mode 100755 index 9c1653b48dbd2d4bb00886c379ba3a66813737c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHbuiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$?_tHlbAgvKT&29}T*1_wr_8B7v4Oad0D zH!!O=%UO7AS#fc($7HS8Q(IPEULLU6Yp&PURaaMg26lV0F?{M|skyG2(-{0TB%q{1$Bh!Jw8USBOURwYF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/mso-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/mso-hd.gif deleted file mode 100755 index 669f3cf089a61580a9d1c7632a5b1309f8d0439a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHbWMYtKXlGzpd-4Cei~rYO`oH1Q|BaXbZ@T<{^OgTwuKwS8_5ZeO|94#b zzw`S4UDyBbzVUz0&HsCE{@-`&|NdM558VEL!C+hQ;zA>HJFm1! z#)%1x%x&D_IuR=Z8kt%-g@N({4h;>A%p3w50S6iynb`#tJSI3aHnDO`7-U>H(Adn* Pui(%j;MmmCz+epk$!Kdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first-disabled.gif deleted file mode 100755 index 1eddc0b104db208364e7cbcdc758b68dc7877e6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlG!Ejg3uAOiWKt&&kOtDk`#kW?5ENR#8z=2?n*bwe|J&4Gj&A zjg8IC%`Gi0t*xzHU0pprJ$-$B{r&wDCr+F^dGeGgQ>IOuHhuc^88c?goH=vOoH_I6 z&6_`e{-Q;T7B61Bbm`J%%a$!)zI@fHRjXI8-nw<`_U+sE?AdeV$dRK*j~+jM{M4ya z45MH)1O_4m6o0ZXGBB_*=zuH-p~+D|M@Hz3!NCRX zBBJbB5rPLFu!+dB#ziPTYINjL^AX#y;ZaK)E1UL&hDgVwoq{3)5ZcsLlW0qh-k ADF6Tf diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-first.gif deleted file mode 100755 index 0cfc2f309879c86760fe37bb2fa61333b5d02f29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlG#X`W-p3LU($t;k*{JWj!|QCp&JN<$iXB<*_AJ7gt+eU2Aq@ zqxH=#?l-qM-QMc)ai8X^o#sz>+P&MW|Mi5&{)IlrR|cKm5PoT!_uXBASGGpq-VuFg zSM1$A3HSFz-9He1Z%_P#y@~hsr{6!2{_J@C=aUhS4re?(R`B>p{*$96Pft|*ycqHF zOzz8bMXxTDy}8!<<5K>&iv@pf6+XMv@$TmAcef`0ebDpwasRtJ>)zj5_V@Mjzi(Et zkAl$5$990aA95Nmo794D54?ba#_@UWR#9T&*XX3#JoHC;9 zT^AA$CUi>5vKCzsT-@X+VB*7cW5MD!E-p6f9StiL+j%8~c_fZpa8hSr)Aw-DNVver yy@-k5WrD+jgl17+cBKk~0}q-6Lpjw15&|08*Re87>=AI#IkY+BG9M2IgEauvaIk#< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-last-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-last-disabled.gif deleted file mode 100755 index 29881bea508cc5ca85359853f93a3e2e39a715f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 923 zcmZ?wbhEHb6krfwXlG!Ejg3uAOiWKt&&kOtDk`#kW?2aawY9bN_4N%64ULVB&CSg% zEiJ9BtzBJRJv}{reSH%rPMkb>@{}o4rcIkRefsp7GiT13GiTnsdGqJbU$kh^;>C-X zE?v5O`SMk(R;^yWdh6D$+qZAuvuDqdBS(%NJ$mZYDTYxn8UlkO1QdU=FfuT(GU$Mu z1IiN&92E@Q95Nmo794D5x0ZOrpw#ThC&pD|;COIBn~)%TmV)5H2dzR%B0PHx9yK21 zQnslOh+N>*!N#WA^5MXP0}V_{_9oujpZ@H4{G-De504c*K9c|B zXvxzP6)(@^zC2g->O$F@Ypp*n<$t?a@a$5@yPLD$-J1OOasRtJ>)zj5_V@L2_E9hz z0s|TXia%MH8Gt|sM1b-H14jh|BZrK~h6M+k*)1iW7$`L#+1CwHnK|(-d3$p{O s)`x%t2~F&ttZFX`HY+r(U=oaxNciAzos&sGtfeb-&CSgWOiT>c02lU-a{vGU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next-disabled.gif deleted file mode 100755 index 90a7756f6fd77f74fd2b5786dd3586b5c50c8d89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHb6krfwXlGzZPfxF?sBrl2(B9tO-QC^S*Vo_QKWWmWDO0A*oH=vh!iCG1 zFJG}@#i~`SHg4Rwb?esc+qduBx%1@7lc!IgzIgHC?c28*M!{$Z4A~G+{K>+|z`(?y z1M&eVPcU$JFtBpScx+g3u$hC^!6V}XBXb*zY)A!1phGj4Fjq*7gQ62lFOR54M?r!E kLmQ{U6cz@-#wJD`MJWvdVWq}d0_-7oPHt8|*uY>70KTb0MF0Q* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-next.gif deleted file mode 100755 index 39986b714b1539c5acf148267d586e5a097252f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHb6krfwXlG#X`W-p3LU&n@&DFJLH#S<|+~Rb5tH-OI=9jj4-`y2>e^1nd zy@~hsr$0KJ@%TvolcOb1PgMN4l>hBw!MmHY-`$%0_i_K<*UQ;Q!Dt8!%@9!h$->A0 z1UeuBlqVQCJQx@`WIQ%3IM~d==-`p@fswh5MK+>>L(qYlTT~z<#=y~urI$xEprat6 lfuW64VG0k!#fBzE9Yrw*0b!-aSpw`KcTR3rKiI%v4FDC-XELpN*#fp_HSMJ!cW9QDDr%#{0ef##^yLTBz z!Dt8!oe)s`$->OQz{;Qlaxy4SFmU)VaC69bY*=uxnSOV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/page-prev.gif deleted file mode 100755 index 02f24a84892b1cb5d3046570752366b0123579e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlG#X`W-p3LU($t;k*{JWj!|QCp&JN<$iXB<*_AJ7gt-}+~WRm zpXRHb=1+Ipz1yq*^@PX%g+9ku2A$s!er0R)?H$o~cE#S^lW=cO{Js6@_Yb6hJ{j@z zV#JS2`QI)U{JB;5_d(C!$Nhg_FaP^y75gX{4S~TI0*XIbm>GaT2SkAK1OtZ;10#ow z$A$$5n>o1SJR$@Rv$QcAcT8XqY+x0XQ*v0N@aQlb2aje8!^MYR diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/refresh.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/refresh.png deleted file mode 100644 index 3fd71d6e5929ba0c40db1960e36e9acba9d7e525..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 912 zcmV;B18@9^P)oWowDaEkzU!j%l38$)o7}}cCnx7z zVrKYAWwOsS=-Lqw-t?qu)r6QQ!notg696vQmg&~r9t3cLe1UW(yG7H)Ku^~yeO+g> z(bg0Jm{BNJFfw+(d}sQhCl&9uE%R)8S2n|p?*PPznUTt5*BiPR+1l3~ipPS`iO?Jk zARN#U4H*a;0yD)$9M29{3dM>Y4K?&WE>{g^G!Zl7)jelV^{i|AG#D_%trsJC8h7YDw+>Nu`!(E)&&KfE(t5U!_KF)uRXGsl%@ z#;0eK6ZhtiUhin`+P8I6C=m!d1ufk}o{_gOutKfI-_b^R{JP z`QzJ2^LHMWS&9G(o-t)@yh1Uq9cxfG6X$C)H~ghbOC7?WrZ-yyL0>0QOs`0x)U>uAAQg z>;&LGL0Gpf^PVr@oj>}%1`wDT7wv!4sq=s3q*Oh&WftpMhqGg=O68@F-$%x80Ep=T zKm-sG?*3PXAs8nI|0Dok)RR-0Y?z4d_HJBzCO6*s&6^5?o^0No>h2ra)My_p{u2^&LcltM%9%NL@3OcL;J5G-fbF(raxE|ez6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096U000OS0Po$iSC8I2dGX-ATgb4XLx%wY06VC` Bj$r@* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/row-sel.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/row-sel.gif deleted file mode 100755 index 98209e6e7f1ea8cf1ae6c1d61c49e775a37a246c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmZ?wbhEHbWMq(KXlG!!`QrEOm%s16{{7(1pGR;1JbC};*@r(bKmL9F`S1V#{~1QX wXb24J5K#Qd0`%X11|5(uL3x6KLxe$C!6IP+Ln9*-6GOy_4GW#y85tR@0bQ{sTL1t6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/sort_asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/grid/sort_asc.gif deleted file mode 100755 index c4c6adb5c57e81d5026f247d522513da880f78d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 830 zcmZ?wbhEHb` Bm@EJQ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/menu/menu-parent.gif deleted file mode 100755 index 2bdb679ddd9943ec80ff92f3acd7d2c783c9cad8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHb*-O!NEobHjaoB8x|gJ7f|+^GL|2jPEOWfkBT_C>FEJ3gXB{( z9t)S9oz1NN;?Bw91ugR(n)!Mhwye0=C@@JY*6Ks!<>dkFRx`Y|zB<4bu{lfj#Ddk= z*E5TE$atH;yz_uKvb{r>IqySmiiK^GLB|!^xQZkewF@+TbL3E3vLdNVv8Lcrm-eV`Z%iy`N-AtlDr!kCZcQm}Pb=+6E9*=v?Mkoc&aCLp zsO-(G?8~m|&#vjushN;lJ29_rQeOR}yoM?H4O0smrxrF&D{Pux+%lu6btc0o7!84; z69S4qS%8lH&!7WxGAK_laA-1^rW`0Z=)}q;tm4w};ecZ^8;_WVN5g}LMkW>x9svP{ OhU5JT&UHK-4AuZi?l@Zj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprite-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprite-tpl.gif deleted file mode 100755 index a19505559014bfccc34ea723c2d41b78efdc9760..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1197 zcmZ?wbhEHblw;s$_|Cu}Y3wa&>?3RHZxxVj5tw5clxr1~V;z!j7gk^&R_GXB;1E&l z5Lx0FS>hB`>Ks$<8dd5RTjm~D?iyF=5m)A(Q0$v}<8$_u_)?6&1ZpD*Bhz zPFh(%Wo7%cmF+WDcFkVZJ$HTo{Pq2FH})>vK6&BB$&0s6Te4x=vMm#r?wqxJ%j{J< z=d9T?Z~eYS>-Q|)uy^^U{qr{-UJOK=4zAd8Xyx|9tF|3lz2oTmok!R2KE8I(>5aRO zZ{B};%ia^)_Mh5(;Ow@8=e8d@zvJMU9f!{BIdX3Q@$);6Ufy-|(%xei_n)|Y@Z`nA zr!F5leeK|x>qpOCJ#y~ak#jeWoxgGH!nG3@Zk)V$`}C!or!L((b>-fft9Q-;(Y1T$ zZrr;8qC4=&w&aOL)+D|a4Tz4!R~-G|rjJ-&JG@$HAtZ$El|_u=!qkDlLo{NlmW zSC5~+Wf%q24gtlVEQ|~cMhrS2gF$(Mf#V-TDuaZ_1_eh+BQA}Y69o$$RJ-^@e;sD` zpKF$Ws-}~10fU%(ub8Tl3de`yoFLzJV_UkE8aq*Zi->&)@PpI=UZ_#PFw-#s$w{?qYx|Gbgps?`q zMVpdm8$6ZUP6^7JCv0G0PV1hg=~q?Z(9m$Oc^m7!4KuBmaZi@f4BFE0vFYg)&A?3x z3okZqXl57FDUmUL);&$d++)s!H%Z5Mruj}2(R5N~X<`+2N(9GEz-1Rif>mn&g$;Zm6}fr;l{WxF$<HD@V$ONel{CE==Y+DImbWU=0AkxuMqp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprites.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/tool-sprites.gif deleted file mode 100755 index e91fb9c7191e9d58019d850de5775dca3cbca2eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5787 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 bDyFN53Q42&fYHaI%7@rdh$EHH3% zV&UMIF-h3q;K;6BC0q0Q}WNCjbBd diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/top-bottom.png deleted file mode 100755 index 578ffb6092a47d9af33fd86615855ac328958537..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 218 zcmeAS@N?(olHy`uVBq!ia0vp^j6kHr!3Jb81>C#}q}WS5eO=kFvq*AsijL3o~JcpmZ-+$h~ z_Wy_3jh&1fGyeT$7yAGIfBVLN2O~0szQ_GbNqF=$At@m#iKWO-O#2ckbM|ckkYV2M-=TeE8_mqsNaQ zKY8-x>C>mro;`d1{P~L)FJ8WU`RdiH*RNl{dGqG&+qduDy?g)u{f7@9K7Rc8>C>mr zpFe;7`t{qlZ{NRv|MBC;uV26Z|NqZ03PwXBf@$o)cwxSshn^Zjcn9V&RP8L0FYm`zr zF-J4_@BtqFqE}~TCMvM8J2W#LHMqdkyx5~ZO2Wgj@$zy%O@mgh&{qwdoSU-FS|uj5 zFee;t>NWV#*tj|4yq(5uv$wYxdAUx^)!u&4fsN(UtFxyQ9yB$v{^#>hSg_&YAx<_W zjsrUklUcfCt=nu8Ha#dLpePP@EVyV)&v)|Zs)y^;IFYNgE5 zZmqQ5er#{__niA1bK9T&t=?L2^I)esd)@4x1ujycUf-(#Ro2S3G+xPe9_t%f_uiyXw)3^T@#S`k7KZP%-zbZIm zK_j=)kGW0!MiL8~?}b{(HSo%PI)1&kOz~ zsj(p9ljVy!9nWUInBOh8>c!$7r&k$Erub!LE^JEj(wH%O(#;ji<`+q=T0W^MYSoJ6 zlcH9xT)pVls#Vi>8A)lcS#!?n+1jLMSs82hoVumGb{`w}n+-eOY2|F3DYrU%(-FPf Vnw!pBS!->%{EX|yRz^k!YXB4;a=8Ei diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-left-right.gif deleted file mode 100755 index 5b07a06460800e7d7f94314d026d0bedf0ee0976..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 805 zcmZ?wbhEHbOg3%Bdks+W1@--+gFmP}&FtSK^Y*1)uU|_HY E04swEF8}}l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-top-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/panel/white-top-bottom.gif deleted file mode 100755 index 8f4ded426b3667928d0ff1771ef7fa36112c961d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 864 zcmZ?wbhEHbWMt4`Y-eEL5LGjGi?DEuwDO3y_KdOdinZ~Mv-OF$_f2&4OL7WGb_z&w z2}*SfPIC{*@CeQH2+Q&c&-RYY@rlg!jn4Cn$@h;f2#6~Tj4uvKC=O064M{2sODPXa ztzZ}hqaiTpLqPE-3($@K8FWA{1?33_4qFDsk_Q_co!NNAbwU;xI6AR#@XMGaY;bU7 rVqxbIQ7~|DXy{jP?vnA`wB+Pujo?)=CpRrUJ>4Mr)SRD23Jlf&W|}wl diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/progress/progress-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/progress/progress-bg.gif deleted file mode 100755 index 6da1d19c7ad9015e2f0270e1ec9ac6c773d24f1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 282 zcmZ?wbhEHbWMoKSxXQqA?Bd3&#m2a zdezR8%eEa`y!r5=O^4^NKR9RYzS(Q`%~-j6>av}am+qLjczfT1Ej{x$bFLaRMX>nvw&`=TU<9NF0WsTF4$*Ww~-+upNPu+bkCI)K&fuVE7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/bg.gif deleted file mode 100755 index 32ebaaab1f271e5b8dc128e082e3b6e17f9ca969..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1091 zcmZ?wbhEHbC;qjOEkH36)^5y-LuOFX&{rK$b zr{~{*=<|zjpI?6a{ObD`AbS1%^XuE`ThOR?;n1C|M=_Yr(Zul z{rdU&*N-p1e|`P^^Xu__wS#7 z|A6Q(82$VI|3AYh7!3hBhJfNv7NBka8FWB)g7O3d$A5-+4jGFN4F{Xqg*9SMYFN5KC+1jgZaO>LT=&JD zou8Y|&$l<^khL;tzPQ-kR3mm*N%Q69{+1qdt+qB_T^(+lad(&Kk@oco``Z{Cx9LO* zW?Wt-dvIHBw2;c3ZKjEfTJG*v^?Px5w|VRR{q>%;R6fgR7hrS$LZC<d;qG=6?@ hQ8?oKyuS_KKRo1~;Xl8w;rEY^%s0-@uXkXu1_1UvArt@r diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/close.gif deleted file mode 100755 index 69ab915e4dd194ad3680a039fd665da11201c74f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 972 zcmZ?wbhEHbg)|NZ;-|Nno6Q7{?;gDC_Qf3h$$FfcOc zfE)$N6ATu z!(r;m%j_$9KP-wo!oMF4bR^Z#pCLVEt6JIYJY>r`(GBHu8TKMAH hV%craN*NY1aV$`Fvrs8ibZTIkpzPfzqoBZG4FEi-n5_T+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/tip-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/qtip/tip-sprite.gif deleted file mode 100755 index fcd6ffec1253ae83e693d5818227f12ea31ec663..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4129 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/s.gif deleted file mode 100755 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/glass-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/glass-bg.gif deleted file mode 100755 index 0d523912f3100490279bf07b1af804e0ec7e6946..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 873 zcmZ?wbhEHbWMpt*XlG!!eD~3ndl2;a>b=L;?mq#d>klC4>5Yd_bo0@(TR`;q`E4M2 z@*K#3v+q8A0YfkEK7Dx)jP5^s_2Bs{5c}CnAREGc@ci||7q21YqnB?UzkKuL)mtFr z+3R;7zIB7B;BaGz-ViX6=_seLoK?<+1Vttm1_4F3 z84?Z$8oF7yGE52>8jrImi0VWfSkTDK&adJ#!(n05X>M_Ylm{OkGIt0lxlPd6sHDJP F4FC}FmJI*^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/hd-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/shared/hd-sprite.gif deleted file mode 100755 index 3b47087a1c4d832a0ab4bb806204e726f6b590d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1099 zcmZ?wbhEHbWM-&lXlG!M*720q^^(!`meuo-)At1;c>_OrLw^Os00pB!MdKhvlVBy& z5G9jPWz#SqQZWlxF%MTYk5IFSQnQRww~AJ`j?u7=)v$@xw2jlWi`TMC(6Ud|c1Y58 zOxAHs(Q!)EbxzZDNz-#p*LTY>aLY7s&x)#8^8LpThEXsY0s|caia%MH85lGebU+RP zNC8R@OArlLSsGQA;2L~Km*?6@K5&{wr zHgR!@gm_F?z{JEN$|tiT;ebOc6RVbhLO|ky1}-L+5DtL_OhDHZhiOz8JUrCKuk5#` z!tn92K6&Rpol2vpr>5yApIcKI{QlfL`({4fDwCI&miaICTU%xN`r5kq!+pBdW^Zq8 z%YS@sZMFIH&fDz18afvzupAK-c8%bfD9Cc0U*5LkO~54PQ@q-yJI)9QGoR%)FMM_9 zWwBELr;D@AJoD32k8x$Ow7+H8CPHcF{z{tpCF=vOtqK0k>-cToD32k8x$Ow7+H8CPHcF{z{tpCF=vOtqK0k>3|4Oo?zhk&%nqbg&s68etUL&e0*ZE xcKo?LJ3l|au-JRP-`-tcU*FiAegE9v-QV9oINZ%8@4s))&(AMTv#~H(0|0y;vETpz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/e-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/e-handle.gif deleted file mode 100755 index 7819f0f71937ea7c158fc67021a665e9e1186fc8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1599 zcmZ?wbhEHbBR+}?Rsacwq{@55PaIr_xG0EBU=ma&s($G{Qdp;#mwe!t$*Y_KHABjFB@&~ z>FN4(`S5>xtiHZJvsC^3JDKV)@9r#b|9}5qY)$2-vuBsPub2H*_5JPI{&xOS1vkb*%3B47H)sjU!9@fgW zaXji^F7sH_q%`fv!Y<846-h0kvratf7LMDosN48i$KyVOTQ`#WjXp&rPjI*w@uc5b zYNpC0L#>-ClkG13STZH>RfWn_7roAImrjjp`nhy^Y@BA=%*07EpUy~Ib@J(~ zj7>AsW|y4HTt27b*h=*|HTzzwPpM`4^?X{BnAeMi>1o+qyfKbw%gxdcW(o-tK3|y!H2dUZkDB_vgCR@Av+Gbo%`PCUKb$2N~4= zyg&5M?2qnYe(N=PM@0N{HtrROzmtDd!uyWlap`OygF}+_I-3r1Rm*HTsk8pgrxTjZ zJjEyV7yEoZqxD#4^I6N!dyG%oGXE_;qs|>`a#8nn&6l%w`m!dMOr__RTn_e@HND~$ z-fMa_+&H)NTCDxsuh-&>dB5FETORxER?2qUZ?}_<+nU@dKK-`jZpHnz+pm?pmys>I hS94p|;z9lIUbEY^{CPWW<#EUDcr?NOU#0_tH2}zdw(*-O!NFz@ZY}|V1Vu*%1{Q}D3xOntZVp+gITZqr4>T}X0|1$&6TAQb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle-dark.gif deleted file mode 100755 index fdfb7dc01158743e653753b75f43851c13fd29f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 841 zcmZ?wbhEHb z;!hT4kpFZ*1Sn51aHugba>#gWSa7hJLr_SA;Q>Qa6AKfIfx^awqg~AG0uCAsiyiwJ H85yhrhzKBv diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/nw-handle.gif deleted file mode 100755 index 7655a81f6662efd5cbbda8db7b8999773f38bf8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb*-O!NFz@K`sG-ghWS11_lR~0D~lkZf04zIUNGY4Gj#|0GYEBCIA2c diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle-dark.gif deleted file mode 100755 index aeafee2ac8cf7764bd8427f9343ed8cb1b2339c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1051 zcmZ?wbhEHbyui-I(9Qq?Ho+Ok&s_pDM~Tr87+E2p_>+Yh5$96uNsIb=LG zEI8QAA*>a1V#C72?E=bPb38UKI@&E^oOS2K#>L0`6`Z?dJU1;lIawokRm{mvOHWTX zNIo^kbMvyZvn`5W-8s2=`T6+{&0MlxTUK0L>@is@_Ebqm!}5T|Ub$XdS6y8lu{rDR zsjaK8uTMDKCF{Ly&CSgjm0S_0x2?UsrQq?Yx!&8?-Q8XB`PJRi+t=UU-;nAhD`UFh z;o%Np?YJ{LHaWAduMlVe}Df#Gq=3oo*f?_pO~y2e{Rpt&(AL`_MY#zch}d~H#X<< IaWGf|0N!PnrvLx| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/s-handle.gif deleted file mode 100755 index a1abc4acc11011a4f2d67da8807479ae03da2cb4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1311 zcmZ?wbhEHbyui-I(9XbM6P(evV)w+AyQZw(HDmRTIcs+uKX-{?6pV(z$Or+&pDaL+ z{%6nuc^8x?7&!hjaC69bY*=uxnL}7B=ER1DhuZ~|z2BiH(bo_bWJe z$#`yBa&odp@T!=To0guQZjgLxj_2lOXJ=a!zq)gB^YZi4S(>J!zV7bs ziqEg^p5DIx{{9ALZaJTb*A0g|gtg<&?AZAD_ylF|c|JQgJv}|cIQ!n2otvMZU*Oy= z=eujm%gZZ*SI3>*we|J&4axil4!gI#y}d2<^}VyZx4*xCpqX3VZ_kd8k55e2X4hS? z^Yilyi@oRj?cMeD^^MKh_s{L!{r&xe!`*-6{rBzp`T51=)$!-|?fw1z!{gKQ{rB(t z`tLfeQ_y7OTz^3t_fkiCiK_iFSiU&Y?@CdxQJyw zndqUm^2sD0vzJdM2e@fIoe~n3`E+VT+RCTXV#;1Vou1I9`D{kYw9IESGnTDn*3L1QZu8-qeX!ouVI3eIgj H91PX~$ao?p diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/se-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/se-handle.gif deleted file mode 100755 index c6684f9ee5bbf2f06ea18c54a16478576e5ddb71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHbL21X7M355d(npwHzWIPreIMmD~$|n+Vp~0n*iH$*{;K9P<{R+-Z92^YR E04QxBMF0Q* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/sizer/sw-handle.gif deleted file mode 100755 index 920621ef66c5dea2d203780ad3cdd301e65d7baf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb_F_q!3-qVNZQx|DV-A6h!W?b)Wnj^{5*w_%-mFl zkc?6VBXb4c#3BVF0|N^M17j-_11m#w1ziJE1B0DgB7cDlD)IDnWxv59C8liseo9Il zP>8d@BeIx*f$tCqGm2_>H2?)!(j9#r85lP9bN@+X1@ct_d_r9R|Np;d_l_fHFK%AH z^6>thcW+(4aQ66_;|EtQS$O!!!80cg?%BPQLC5($P(5QwkY6x^!?PP{K#rTIi(^Q| zt+Nw$@*Xe{IQ-;9=l;Lnc?BNrIk1yMnla18!|Rfx_=~o=7sXGUdm8y8?D5mi^pr2Z pI^U;TAL(EB=a!G%y}ycg#aS#EpKsu3JPkCF!PC{xWt~$(69A`aaP9yA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-thumb.png deleted file mode 100755 index 799ed1be20a6ca3f78d28586b8ee6293a9694a7c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1288 zcmV+j1^4=iP)F{vr?S7JvBRUVy`Qnep0B=~th}45xtgc6k)^qoq_C5t zwT+>-kDalOoUe_Ys*9bkh@Yv8ov4bNs)w7XhnT5_nW}`Br-7KLhnA^=l%s!^qJNaB zf0U+ulBs`_q<)d1c#o!hj-7jroOq3-eT|@cjGlLkpmmC&aEqvPiJN$cn{SDwbcdU5 zhof(YoN|PhZiJd`gqUiCpm2kiZ-SO+gP>}HmuG>UZhw$wewb)|lWKjDWPX}seVJ%| zk70Y4Wq6HYd6iyxlwo*`WOjvPc8y+jkX?3>Vs(RCbdOtdja_qzS8$72Z--iMfn05a zTW)+-ZG=>8h*@cTP-%otW`Iy+cT;0V3 zTz5rUbxm1hL0NP_S#&{Ha6eXYMpa`zR&YgAVmnlCI#O&oQf)v{Up-J_I8kgqPhUJv zT{=u(I7(YLNm?{US2IRfF+^4}L{&0FQ!hePEI&~#K2R(@Pb)o6Ej>;tJWeS)OeZ-? z9W_rGGfNpWOcW+J5hOGbB{b#w4vqi-010qNS#tmY4s-wj4s-!)B(v540010xMObuG zZ)S9NVRB^vL1b@YWgtdra%FdKa%*!SLsK*cveTdd001m>MObu0a%Ew3X>V>IRB3Hx z090soATl=~O<{5%GB7YWATTpJH846gI3O)BH83y=IQS_500I0-L_t(Ijg8V-PZMDj zhw%f&q@-!EWTGNV%#^6?E=3d~E}&opBqDJlE)bwlV(JJL9WgkrXc*TDR7D*rQY8bV zW303`gpcO?N=Paf^XFVVSHGNdbBK~DLza^~zQu0O%HEbE?k%}tZIe#B)0w?JM-+?8 zj{qtNI|~X5i_7>ul;I&jOG{aODoel*sE1eOl&%9>Q^Pts$|a&FE<7N* zBXijU=y`=*mwn{(^&l#%sxmD5{Y+j1G({r%UR9Jp;Gcbq{$4$yc!zAn*LZp}5jvSLa9|E$00jRb*4>l8Eq0000w%jXPw*+ z6yhxKh%9Dc;5!7ujG`J|4M0JbbVpxD28NCO+UBR8*c(lVeoYIb6Mw<&;$UDTwkjI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-v-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/slider/slider-v-thumb.png deleted file mode 100755 index 0e67a872d0bfd448203b701a5e0554e80fe8e75b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1437 zcmV;O1!DS%P)_{{8*^;^yq&fGb#+~Mcj;pf}p z=i1@t+~DTf-s9Na;@95e)ZXLO-s9HY&Z;7RNh?{hWn{9`qZ-<<3gqmxGp>l+mX@sF_grIDMpm2kiZiJX`f|h85plX7b zXMvq=e~@Q?m}GvMXnm7veUWB8h+1lWP-%ouXMs*; zfKX(2OJsjcWPVd)a7tr-PhxaTVSGqod`Dn=OkQnBUwBAfcSv4#M_zYBTz5rUbxm1h zKv{G_S#&^GazR&cKUZ-+R&YjDV?|S9J5+BvQ*Jp@Z8}nHKv7>mP+&b!VmMK3JWgFY zOkX%kTRBQwH%VGHM_4sSSu;jhGDKA|L{>9IR5C+TFG5r-KT$0{P%J)AD?LsvJx(b+ zPANM~Cpk(THBTBeOc^sw88b^7GfNaEHxec_5hOGbB{Y?91>^t#010qNS#tmY4s-wj z4s-!)B(v540010xMObuGZ)S9NVRB^vL1b@YWgtdra%FdKa%*!SLsK*cveTdd001m> zMObu0a%Ew3X>V>IRB3Hx090soATl=~O<{5%GB7YWATTpJH846gI3O)BH83y=IQS_5 z00J3FL_t(IjbmVXj07Gs5CD%KAKNymC_dQN#Y9yql#uer$BrF4FfEzE*V$A_fd4Te z)dvn7IJFPR@UYO9kRYsj_km+zmV<$`G(puncI<{SjTB@EtKPU{%ig^UYl2)YG&BgR z-nen&%1wI?EXnt@)zTuUdfm!(3`}6)WU5P0^~&WdSAtoQ?v|DWRWDx(QGTG<)7F-t z>ZJ?7%6IIZ>+R$~Q1t__@^$OBZ;$ZnAf%cVIaNJoBA^-#Fdan#M+m7tx^s4KdRTy` zy|J<|uNNWZM`zETJtaGk!QM^sJgwqy`dNA_7H15Sy_UrTU%Qh7#KmoP)UxU z>V~R@1~ALtOihiT>Z&S;@+sj~`kDk)mjeM%d4GSNouLjv)f*tn+q=4a9FqvCW zM@dbRFOa}9LaJZ9xOeT~+Qrj*>T*+K<`7c;;vNtjTE+lU9Uc9Gkm}pFZ{NQIWV94y zMG>X?HkehJlNd)(_4VsFpv=OQ1R_*lzkc)PiOrLn3o=s(s=j>r^7$(_Z=PP&R+g4V zQ1zwrm!PF&buMAm=Yassn%`8COHlRMGiT3U1Tt=~Z!0S!sQS!Fpz;e0*KZu}uC6Ai r8lwEtrEAv~_3a|0nhiNsy(*VncJ2E0>o;!PxOwyDty{Nl z-@bk4&Yin=@7}w2@BaP!4<0;t`0(MQM~@yqe*EOglc!IgK701;`Sa&5Uc7ku^5v^n zuU@}?{pQV^w{PFRd-v}B`}ZF{eE9hB(?)aQ7{?;gDC_Qf3h$#FfcLb zfE)$N6AT>x8CW@FJT@#i*v!GL5p!b0!o%$Xo*r{NHZD5CBxW3>qp)c4@qPu@2^td? zE;%__!?=g%;HIUgrz^U}&G6j3>@2sk-C{6l>y=^}2HC1i!~*t=M0VE{$9P zi@oMX9bDPII>NT+#;mWag1Hh7cgcDm%xvGBv0dm!*S9s7ISU>il2tHY7tB}jF^^Xu zVRif-KUEGn9iS@@HP6k9*psLqzdu^sy4PXnrbLFR#@1I4+%&v@zSh#Z)nV3`rXetA5}PyR$*!>=zn%O#4ov)L+b4`x5mc->6qPNwhq3GQb~ZY|jP`SiKP)~c^8 zDg&1DY|2hgsMuY$JmhNL$+@pe8h?I%#=gM*|I{_{oBTvi%=h2FuW5Vf=hLOL7VQ83 zpFvGPB8f%lnFtey+KLBF96r--HVasl9%vB>%XrARcCWshkjGny1}Ebdi2H{)@iP2CISUI#YICEc!{DxP$D-rBLG z)A!hqC4F*iCzbjvvm~B&1@DVkI#nfUrfO#NJ&Uy7gtkhxnekCKmrl!-(tI`}weN@8 atb}_f(`IF@i(KAOwMb(5Bvuv{25SK3cQ--+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroll-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroll-right.gif deleted file mode 100755 index feb6a76f0ae36a545fcc77242b53261680199c39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1269 zcmZ?wbhEHbRAJC&XlG!^&(E){taSMA(ACv7Wy+Lw>(*VncJ2E0>o;!PxOwyDty{Nl z-@bk4&Yin=@7}w2@BaP!4<0;t`0(MQM~@yqe*EOglc!IgK701;`Sa&5Uc7ku^5v^n zuU@}?{pQV^w{PFRd-v}B`}ZF{eE9hB(?)aQ7{?;gDC_Qf3h$#FfcLb zfE)$N6AT>x8CW@FJT@#i*v!GL5p!b0!o%$X+!JPaY+Q7-Q%FB+iH2eG@qPv8va$sA9+SCBOozMC+_uY(~X=Y~m lbWUzm=JUBFY&)M%sr~e0`Q%19%NG+`_f@RuXJlls1_1f>KmPy# diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroller-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/scroller-bg.gif deleted file mode 100755 index f089c0ad65ccfc9be9663e7e0d65f547e9160ac3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1090 zcmV-I1ikx5Nk%w1VIu$*0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui03!ev000R809^?jNU)&6g9W{LbM>#G!-o(fN_^;Q z;XiX2Giuz(v17)60@ZmONm8Raf$lKkTFJ5{u8l5ZVss}^o;h3-9llhVv*Am50^{NA z>GLL0pYa6F!?~}i)2I9Xy<`d%s?>Q(ao*d?H4E2!QjLD~`V}lLtghIqc)51wCmZ?pV`H@ENKz=Nggb+zuJgFS zp2rmq4cfD2#yB^=)mT{LYSw2rqnk}T3vG0TZ`;0&JGLu%IMoRsPF!8#;>e`}b@h%Z z^5IdZ{@eFlc=UGy*%|G*b9>I0>;$48QyH@*%R-E#2E)X*~nHYE^7z!RRFtBhisCY0qG%_)8 oi!me|U~p(=W00|6`0#*{fkS}7rGvqtiG_hx!H0oCL4m;<0E5>?Jpcdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-inactive-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-inactive-right-bg.gif deleted file mode 100755 index 7c378ab56fd1cabfd9f401fcca79f26c344494c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1553 zcmeH``A?H~0EfQ=qzxKFrh#R$*hNwceOW*ZvPiNnGC&SBV|K(ej!nX#t=SSc3# z=z}AG4#0gT`{i5Y+HQreM`i4TC;HXn1H&fq=#+G9My8!r=;sv1d3bzLZCV)V=I?+J)PRSm=m{CJc&Txj4S7n^bcO>8JQOh%#+y;ai%+qnv=>5{oL}_lJ?@Z;(-fhUPT}IZ2hnNh3>QRYoC-vIF{a;S!W(!Ed1*c zb;Z!Oll9pvdHvy~38UnvVdd|!sCY=4d48C-PxX~RnsrXobm+v`DDIOHc+x4YVB<*J8nmoq__53CghU93f!>!;3*~0SPVfa+wxiZC@UtVd^=zrX^b8`J*0ROcF%U9&ajj_+d-SL{j_T6-<{WC-^!#) z6^(*;9P27bskHuq#&WFJ_T;#&4T%M~)$99-HLEv1s^+ZH4#ZrA=@=Sr?Pe;YX6+V^ z%~`t*iQQ|BnHrq!&e0h(Atu+!u{GsI+_t-f_%!>y{G?j@{UR*a{-88xF%=}_r#T*e zL#%Z?s;K5V7^FInqotCT=6qbmsAabTh~<1j6?>e2{;WxJF@Kq_b+y$yxvrx)7mt5PAjC53yq+!=E#1p`&LDfa95&C( z6NtTDzDTqFF&^wSlYK&|ljnP>hKnU zA6=k^CvshauqkgF2~QGG8Jko2$rm@L3!{|KOzAQI=Ioimj4gA*0RYcc{3zU-Ctdb$ bEmYDoB9^L_i;=~eE@5PeDk=Mt0FM6$i{jqK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-left-bg.gif deleted file mode 100755 index 84e20cf5e7e58b96fdcec4200b6ab23822ca9b60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmeH`c~8>^0EU0qj-s2H*$9vYum%UElnn)0QCwI=+IzAXlMxp&XX0^x!CmO4&frh)`_l-2xU`9GFf&#s2Zl^8wyG$#Wqp0vVEma5xE2 z0O0(!o8doXpMS@Xzr>{E#-!$js6(*iW*nsjU)-8iO1o9g_?61Yp)v`TtlTPgZWSlL zrZfNEJNN~){NL-l|ETZz^L{U}p|7x^kJQvpY8oIl58iGbqO=W{(1wd?!jkrp(hgBM zU0lHsQ<>5`tg%Y&L={g4eAovA|F?l-Z@>-!;0PezA9>#d;A96N0mv|Zi?qn;b9llO zzjcgq#4EZnvb$}f%q=k0nb}R7yaPQ~>K@gjI!E=6V<$}abi~xcl4csCdg)JUPGsqq zr+a@`y%x&9y~V!!P}o!_@MNgl{a`c}|jCG_q#}xg+YY zh(&Mrb}fcgxmaws1CB5S5$u9d6gqh#C7{DWT1C;32-q6Q8I4)H?Uv45BfAr{YZNFM zmRbx72c#u1I`dU2LZE$B79fKu%Yzm%$_k{KsicOQkrMD{U|-eUaF+~KWu!MtRdq2~ zr>c&P@LjJ#p);=E1EIpCwFv~>dR;QvS6!c0o1y*-LuaY);{-Z&L$)YH@{!9zhUP(@ znx$zfu0?;Px$M8h8V0wxLsK)nmIr*>h6|_Y_B;+Y7<=a; z{7iidXsqesv&1t*2sFoF>Q|8c%mb=gta(sN=a`3#0)u&YQ|6Z?1d*VlBfDzOhG^ev z*boB{#HIx7irbVr`EWN!KlwUT;`C)WVr$$v9=A2&c7wYmbI&zyO+qP%*Hg#qaJQyG z1<9i`h<@YiM*))v%j2LWoaG5p!?nzY+Kd)?nB83h@o7ok{yWl#xBbt>Z%o_su^0Sz z7Etl{ou}X5;O#74a}5Iy9&bcgpQY8|tVX9;h6nWy2|RtjvN Vnry2?$XB}xlIzV~g@Xfd=0E13`e^_F diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tab-btm-right-bg.gif deleted file mode 100755 index 9f578f1faedaefa36e80bb7a6ef112b201c95f3e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 888 zcmZ?wbhEHbWM(j8XlG#XO|Q#to1fdUFu!YYQP1+?zU3u-E6OIWET6QheA4RbDeJ1I z0?~$=X&Y*1Y^@?@chD9!IOl*7-9uI&jIT%y|7!nwn8F*zFDi|0YSU4HffC3Ad f8hFGRaxO3&U}k5KH(+2;+``sN2yyng%k&AWGR-@kwN;RC}c7!83T8v;5YmxJ;G z14llCHiwMIgrSnxjEQ?q`I@C5s=a;ag8W(E=o--$;{7F2+7P% zWe87AQ7|%Ba7j&8FfuSOQ!q5JGBmO>HB!(uFf}kZ+p+j0P#=4Vr>`sfH6CexDft?u z8*)G)&H|6fVg?4eLm6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096R000OV0Gl<#*3BEZaO23CLziwHyN3`XLJSB1 EJ2X9wg#Z8m diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tabs-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/tabs/tabs-sprite.gif deleted file mode 100755 index d7f1f32829a16d69578e4ee4925c2120b195dabc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2625 zcmeH``BM^j1IE8-DhU}`ORTmr$biOjitw>&vs0GalH^cLa| zGukqk?Ic!5Cc7iQtg?VsMdpaIxRSe-UD;JqTAh$yFJkaJnF0yBLCR^Al{d-Cn`PB4 zGH#2U+oGs!QPs4{t6J67ZR(o#ZeE+BwnN41(C~yBo~Wl*)Kf3)=8H5BIyDc(8iAyz zzVjhp{E#o{7f5;^NCyS7!3Nn64>ib!8@nDhN&A~+{Y~=WCdF`ze4te^*s2_CRSmVN zhMJX+T2v!#-H+QePlW0bQTK>QGuqkvMBMj-r;?vMlRkVd?SC#C7?TfbmBSOtN0Z?H z`ByDq|9KGv00=<;Z2j{S0BQuL0Oil4ic-uDFv3K!Y74|1bg2rJWhS1qo(Nft3yCZXQJgu0x+!n-9@e{JFwLz{ziV&}&Y(D!;9g3gsq59lL_Fm;j^)dHWI9?C?@M@si zPfY$T!Tn8-Ahv!ev-ywM-lkX!_Mh7?Ul^91Sor?Nt0{V#T~?Iun&@@$RolG@!FSul zn7P(AQ=>)A(XW@^bSq$o_7-2C1*c2HI(-isGc}oUH8~PD<`ynJS+y@g>Az5qNW#msEne)(NrQ zf%}q1a)0GymF4R)!^j=iMKUS-6QWqfM-s5?`{ymAnKbg&sB)HXMl`pijyuDy4m37L zbL$I_yyi3{7oO$tq?R+)#U@4NJc@NtbWOX>0=I^{#)X#EQ0cKfa_R79m-x<6EiU2d0-Hpm@3PKvCZ*_8$*ntpEAGOPss zPQ7IqM=J<56_54H$to`Z~{pj&8lWd=ogh^_; z)%+`xxTJBG*uUrM>*~kfn_d@AtZJSsSeWzD(O^AZ`nGr9oAr#%v0mQ2em5V!UwS(H z+XrMSDhnjL@5Has6(&=vjH_%(JgcIWZ=>D7L4u10b7HlWj z@RHz+MWh~-cUm`REm@mU20x4y+YG%-^PIhF6(7l1^+gwefv?Foruj?Ue$^AB18LUN z5{aW>=2kE|cLn+?*L@y#m->dlY_aF~GE+9|~UtJWD;VKZF3z z+hRX00Hd-!oJat4w<8WZ0Q~2X184-mfBV>EL|Op5n}7*31;UQxkGmmYzSMh34ggSH z*&Qzc;QoCo1cnBcI45l3{zl#;qjx~o#bUX(+0Ud5{;sHVA+K!mtEEhC(o9r%v`ryd z%A$#)A}?9ml-!WAOCVf82n+$?1037k(SCVf_Oa3i%Gahw2QU-%1EP+*8VZ4KN8neU zBJOkv-DN3Du=Aj3P0_gZ1U15>=8XRm`>e8KI|*rs0bRATiw`tTK8(uL`fh`tBYTgD zJ1xs$_E6fX0)8q2p|1^5c2daxhh6`&UlgdWyeAouXxal7+v91G`dk76r{^ba^@di< zN3oDy4-ONm1mP<5sPT(ZP}^BmaY^O!jHPT~naptrFqiSm%En^v^Q_$4>!uDWn{t!q z7>xDnUim7UvpQX^_^PJ}$xutZS!_&K;!(rYP;1NX*x12^#|X8)Z3Pcw=7<28HKe~+ z3h}ExC2n-XB$-@?y9udbkOjwCOC*Ysyc%f+Lm5P<#AGw;0BzRq+HjIOPKnmZtyGmz zWEO)M@4g5YVvt}LL<4S$Q>+g{lOj^>AY)2lb8~|Q63Qg^T{eYf8DtkKlFWhwCR-I4 zITu@J$W?E1Y|$vnQtGA|YA=@vjWSE~Ts<@@lIg{93CVNQN{yP}^KNVa?dfiz mS=EhC*$kh=MZg?JG(pmfIUl};@9-PxIbeP%Zvz4Ww*3!}Vs487 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/bg.gif deleted file mode 100755 index f61468f281e47e003774d353b43bb1300bb203d3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHbWMr^lXlGyuOezgZDGy1l3`wgB%d82@s*A{Jh|X({$#0D<=!h%qOepS7 zF6&LHn2=i0pHe+3y>@bD{gkYRso4!P@|tGmH_s|)nOod8ue4(U!zdUHfuR-xia%L^ zPX5oJ19CVhPcU$(GZ@Bf2xvUS!YQa=Q*fc-AQLO6fQ&&v!vO|HMuv<#CpIoV-Y>(< H#9$2oP^~nQ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-arrow-light.gif deleted file mode 100755 index b0e24b55e7ee53b419bdd5d769bb036b19fe9592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} zknPra_q{Elh^+L|IaWAMnhoehk)Ww7DfgJW(FOQS3r4!fg_WF zokPZB!-9j&9Ku>I9t;i6?JOK-Eg1m}42&GiI(JTNTztG=!MRJubJLQOlQn`@#hl#q z)PX@z;LsGw&kuZNoAREU^J7Dz?>xbLz6~9P4Hp=tSmjiAd`Ugm!FjxZsEb>#s diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/btn-over-bg.gif deleted file mode 100755 index 62464c0400c5440bdd73909ca5322775872c6332..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMoKT_|Cv^_}0(kcYdC}|Lgq2UzeZ!zW(g@?U%przy9<1-Jj{b$et`3#gN7&v4Zqzw`_ELgzA$|)pg(Xe14 SBQvX#kb;4O15gDcgEauAx-gUg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/tb-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/toolbar/tb-bg.gif deleted file mode 100755 index 4969e4efeb37821bba1319dce59cd339cec06f86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmZ?wbhEHbWML3xXlG!!aPPx~`#|*Z;=Kx_O l3y+3|gNrd`R|}|8 z53JP)uGbDK)(mOXiE6YQ_XjYtsX`TuVPft(h&k*ytpy1TXBkMH9G9v&Vb001Kp z5h)oOFaQ8I0021w0Y3o&E-fxEFEBACCN(uSJUcx_0Rc|{08I)CQ~&^5003P90ZlnN zZ2HgaR#tRYR&iNbdS75? zU|?otXJ=+;Yin(FU|@V`YIb#ZeSCg?et>}h0EGYmiU0tO0055<5Rm`?kOl^o005Z) z0GmN+?~005%|1f>7~rUeD5005~41+4%8tpx?M0RglK2)Y6SybBAy92~17B(5YS zt0^g|FE6h$GP@!ovpPDDN=%4PP>)+%g=J@gYio~fZHaSpjd*yLX=#~kY?O0znsITT ze0->1U$sL+wn#|6N=l(?ZKHd8zjAWJ0s_Pf3(Ero%L)p|939OP64C(y(FzLN0RhLMcRH8%DjAoeXS{Ujv)EG+gtJ^wQ^{W?3v zNJh*-LCQ@{#8XqnUth>oR?f~+Utj)HQ~z6A@Lyo#VPouQYVB}x>v?Q{t%gd(L*0R{xyxG~vlatYag2Jb&>V$^kk(2*{ zf&Yw*|C5vdnwsaLq~@lni75b z|Ns8}{@~x^A^8LW00930EC2ui03ZM$000R70RIUbNDv$>R;N^%GKK1uH+KXhN+gI) zQmI(8v}vO?E0!usk6NLdNb;LSjN7_}3)gKMEm^BfQ9=}oWJFkzOv$3fZRN_A+GfF& z32BcxoBv$pj74i3x2G;S3XK)B)FeoEmXWL#snn`jv}gsDrLa^fQ>tQ`viiu;6mb&4 zIih50RjgR4R9RKTR}rL1lO$0B9ElMiAmt)9>blUBj4Y5687efWvLQo=T3ms|nUS42 zGT05w#%K~HN|L}(qt>OeA3m=K#Zlp_nV3Y10NJUdgV?}Dj3P~n6lR(~fAPA&<^wy< z3SY;ip*i$tjvF;7)cwO(hY@E;pU(dEJAMvK96x^EuyA(#I4D2W)wt>4TNE8YjvOf} zG)mrhfAgFX#~WKj)1E)1@X?1HY^b3I4=}g`${ckFf(Rmn_^}B+|J5T5Fy|aN${TUW z0S6mQFhRr!;UgPsq@e^7N-V$&6Kb%bq#Sa*Vdfi^>~mm0dsJzqm1!)YL=j6Upi2{A zuE7S7XQmMhKT=kc#-N0zk;D-~AfZ4mcqp-i8dkz#<`P*@Bc(t0{IW!$Ngy$V5I-1@ zizZxdisc(i!~o5u$IbJ_rv6JTkwg(c{D4CNyI4a65=m^j#u6#8*Ipi;`17AUTJ(BE z5kdIy0|yB7l8z8W9HFeL2U?Ou5|`ZbpQ}X_F@z60{NTU@$Nckz5JFhX#WM$9V(qqN zczc{Zzy$F_4?N^RzzK;Blf(}}6cGhE|5-BcwnvOnPkU1IumcV|U{F8}13B@74?zS0 z#dwzlam2`nic7|EPvkH$4mJotfiVMJGlaxG_)rEWKMWD>&Oe?)03;wIQ58SrAhy#rm+eCjRSRuH))@dW!7dZ& zW5o_u2R%03bq^haWeql1000EIv_ld+Sb#9`4TvW`^x8Ju-~j^zOmNFONd2>m2p`;_ zHs5>m&A|f!9AH8(f>-{JI5cc`2#jD0Go}*+k21NqFv0{8KoG$M PBfNl1GVhQS5C8x>^BLCH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-info.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-info.gif deleted file mode 100755 index 58281c3067b309779f5cf949a7196170c8ca97b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VITk?0QUd@002Ay07w84PX`%A3LHrS9ajJYWB>?a019mY3w!_= zeheW`4kS_$BTNt{R2C>w87x&AE?6EhTN5*F88u@cHent&Zy_^VB{*RwJ!T<2Ybrfu zEanAeNJ0@02_k<8;bxSjRY)#049Cl8e5Y1_tY3bkWN(XQaEfVlk7;?7 zZF!SzdY5*8mt2auc!8LDgq&lBt7(C!V~et7k-lw{yKsuMageiql(2i8y-tSTQHA4U zhskM;!F86%bDF?tGlSHx~QzWsjj`Ou)c+z$A_QDf}_NMrOt$@%8RPR zi>%9lsM?CJ)Qqyzkfy4!pytE%CW@Nu*TlB$=|re)xF5pzRlaC#O0*M=&Huzs>kT8$>*ZV^`Xr3 zq{{ZD&GV%F^A_)Y{V6-P_#W#@Xx7+U3jK?!?;j!ruDO*W%II z<s1(&F;b=Ka&^{@UjA-Rbn(?f%pA|J?Ea z-}(RG-{a%sWQF}}=T6!l(LfBVqwLzTzdz--gr zA>~JRUspdjz=SD#uW#3T=*1z15PotP*O<}1TXI=rW8fk~GqY79KP}1YrcVGlvzs zDl$nW+ZJ<7GW-rh3M7OOB8UkZSwRrC?KL;(Q+JJH=Ywg3PC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-question.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-question.gif deleted file mode 100755 index 08abd82ae86c9457172c7a4fdbc527641cf28e48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1607 zcmV-N2Dtf0Nk%w1VITk?0QUd@02fyP7F_@vT>uhh032%o9CQF5e-A8e03mY#BzglW zcL_0l6g7B5MoUafO-xQwNKjc)QdCG)VMGais%VD1YKp&Yk+f=&xOI)E zaEiQim9}=7y?K_jd6&3+oV;3t&|-(kYnQ@tj>UPC!+4gSZh?S#&mcD?Rw3D8!n4hVIpuCNxypy7?lBc|sslAz{ zv!1E8nykH`pQ59qrl_Z?tE#T5tFf-Ly0EXZv$D0gx4OH!y?~j^f}_NSpv#4+%#5bO zjit(rsl|+~%!H%Tg{shuuF;CD-i))_m#xK;uF0IQ!Je+okgwa9u*sgY$DOs#l(p29 zwb+%o+nKY|oV(kBuJ?(u=#RDcm$&DYyyKX=;G(m`qqxkgwZo{l%AmW~pu5Wy1~n_!_~3H*|^2hyUEtQ&D)~F!=r_S`L&GoF&_N~(Sv&!PL&+@j??Yq$Bv(odm+WouL^Ss^uzv2JK z#>vRX%gf5m#L3db&e_e*)63J`)6&(_)!NwC+uGXR!PV)++V9BJ>B`#d#N777-1y4d z^3d1g(%a?H-|XGp;>6+p%jEve=>OE=@803%+~e!f;quVt`_t+E+2!%y==0m`{@(Hb z;NRop*MI`>g(&|>+<34{Oa!Wf0xe!3Pge_@yBbqQDAy z^yqLDY^(Y`Bgb#Yy&t*SHt<)MmubQE= zM_%4K|K!o54GAF7UTBq*Ob!?g0o7_ijR4L$#5Cl7WQu5*Y1Gi(Bmg6D)2&N<*T z_(l=0(9+Fy7{;fLf+vi?iGtvWSYtTY0MiN@9f&f^H7LmFMINyXBrZBDyqCps^d=g7F3EF65lHnZVrI>UYlglJe zU~oq>afkv8HsRE$YQu zh#-bkqRKD4cwz`3RWxA(1Qnd&3}YuvgUT2`;GhH*Q&3SwBCD*Dh!i~7&_D!W@DWW; z1F;hgDs>bA#0Ei30Z1pS2x5T)7=Y0SG)EyV5IfR9lMEkstO3X(t9(I08OcCnvDYWD z6Ol7qAd-p~6!7sjC){4MV~P`tbU^{7d>1~=99ZDpN7scTEv^xRGv0Vk((EBd#a;&l F06QAMRrde@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/slate/window/icon-warning.gif deleted file mode 100755 index 27ff98b4f787f776e24227da0227bc781e3b11e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1483 zcmXAoYc$k(9LB%H%(yfgGuR9b<4z3ocd29*O43CNd(`UWmQ=H)a>`a4DYpzOx}c(x zSlvdcWJ?+unZaR-H7>b~v1S^TyJ_?Ptx;{_9t|N0Ki69nENoJ2v3`>&g|W8&busa_So7*+dD)$ zvLc<>kt@t%F{f~h9qzG`vt^ZG;7|7JumJBhJ9Y+8Lf4suZE^fH#5_9C`L|tWUS6U8 z{=uOE0fBzowgqiH9`W<?y6`^?T9Sbi>kIro^$r3_Y4hFwk)R(#Q}G+VFY!jG?tX{A@K zA7Ak-yF;xiAyhqNys9yLRL-ovzEyCSA}UpDxeZO_LcSl+NfU}@28A3*bVbNWrHA>fZ4D_larvD z0o4={9|wFI(DV=ZJRp1#nxdfzI{Lyuvvho356v%?4p|^%j&Mta>}F3~{K0|F!GZpTzVLoC6_EgdgTr?dzB>V$ILvD;-4MrIlR(m27G@h~>JlYZ zVAt|_ro3YUVh;qD&xzwC(+MYO@wD@Y_NS8}VxR3300jn*@X<;}{z{$rL zTQ1Ygt3r~JNZK6NqxROCFAF5#=}AsXB5Gp!SiKu3HLoB=^T~;XI#AbK!S$~9M1UFk{5%nyiu}%*CZiIbNf<7_U*)eK2jmJEb7FxOYX=;RObGwm=_w(}-X91Z& zqYL6B`%{}cDrkMSM*JWx2`jXogS!VNpUr25HWVJ_hwMpzlk(}y+|3YZ)%_6gfm?u*PI1fu~NtNN%<%o?1bnQ|HcP z+A{@eE%wEmbNMT^8Mo3bU$&{4r}IL6UfVqFo%2t*Tz4deYD9aVZE~6`7TH{nSG#4; z<6vfan`>!V4h5%@)!a#Ahc&Ef--@I2iU;@wEYEC-zjIsI(0PM(`f?qQqf=C&8Tb?#p4A}3P=ZzHb8 zU%2?008r{GmdfTSw5X-f*JnevxfSlSM{Cc=no(Hy6^Zi{dugQHUH~t06Bw zQt4307HjGF&8-z0AF;fZZq8-%?^|4nr#0y83LDz+toN8`gZZg2p9Yd5@bP-%L)8(V zUmmP8OS8yf(llyk`BV+l3sY@pR^S)K>*+DB$}jc0e)m$1w?{Mi5Ahq5K8vj4mE(=f iL}jwpve+-)v>A%!R(IJo>4b>g=*8o|0J>kEob+1aSW-r_4cNB-XQ}4 zwuJt|2|GA;>uH6qh;C^RR`}W{vq<~_gN~Nj+FcA`u_3yh#y!q+eBy%mKJasu{V_B? z7Cm`lM9%$ni9SNpC$M;1ME7^M7J9cX4my~#wDw^dpKi{|C{n!8N^9z6491HQ>{K_NgvsugH z75{dfSu4pA?tk;e&yJq7Lo;|bX-&ES5a}lK18&w z4Cpazpr`#f@#?vTx$zKc2gb+mfsdByJ_eV(pz4o^RQtTz3zOL-oxdj-wxcYYt&F7$lNvbLSS-GMeN-dhuJ@Mt zkG}Jx-#^dw8N2!Gt+(I8;vEqkrD`}^th%JaCQOHUt<#fvr(gZ^Ja@8rnn|%h?kmYB zd#CQ1R>M2<=Bk61^30~9Z*n3Qob=8y7frnxzlb|C^>82CPp&y$t{GF=(k~ylxAgi3 z`};4uzE4-5`EK{-8}hQI?m@cun%6C|>ih62%01yq*Mj|jKP(e{+4NuQkXd#7-qxO; zB@ycwB~D#V|N3p~V66I@HC&iK5ts`_wUogC+jWgIDW%?wbG17+w~-zLgpn#XrI6E`_^X@qcrJ+LjK^? zJsn<(-@PJ)WuuF@S1-C99Ofszc!<4dFq{9f>EnlhPj2$X29KBLtkvB+$M0xS zv8>})`=#lTTc7#y{`kK@Vs&;`htZ2CKH@d8^XfC2zSVA=lhssjpUc2VeNfN3MSSw_ zR?B^A-}KbV4b`5{v0YK2XI{SD_u%gh@tr3&{I0n5Eje_~)2BaI?$v*{{7cR1fIn=) XoI!;rP5;#a!<@m>)z4*}Q$iB}K*pHM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners-blue.gif deleted file mode 100755 index b6d50691c036ad56b297fdf52be1dcb611ae680e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1009 zcmeH`NlOB89EN|!6#ua(TP(8<83sWe42m|0u_WzOr_L5#B!aqkXe@>y2!t-tX)2J8 z(>ItQ2)dXiih|0x=e{q4Tl5{e)$;)!cwTt*JKHO(2MDI12JrY+W-G73e!o8u2=HD}5QJbb7z%~L;cz4piAJNbSS%ioClZNdGMP%H(&=<2 zlgVbYxm@n6*v#kig+ifNES5^8a=BcoRI1f#tyZho>!K(&8jWVN*=n`g?RKZrfq#B! z0ir|vlIgE#R3at;xQF?l;Ga+EkqwscNdwDR`+DKr$g!%|0T?~9>mD~rnA<-UEDHoF zRreg8YTyF!Aq*4(Y-tC_lo&AYn}C$dUC1t&X>ww90~xiqv=qUtjJGh9bV#Wgc>pj= zr$z>O5o0;xN2;Ld!Ug srmkmXz=U3i0manhor%4qD0Lr3vm}q?fD9hS6qg_cI{vitMgrEq0Y0a~5C8xG diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/corners.gif deleted file mode 100755 index ec2c016db036c1a64667aff8f2e83b926d377571..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1001 zcmZ?wbhEHb_|Cv^;J|^yhYue)a^&dIqsNXNJ9+Zt>C>mroH=vu+`04T&tJH3 z;o`-Mmo8npeEIU#t5>gGyLSEh^&2;C+`M`7&Ye4V@7}$4@7{w44<0^z_~_B2$B!RB zdGh4x)2Gj#J$wHA`OB9tU%h(u`t|EKZ{ECp`}Wdu|Ns9CBNaIOcNnQ&r?WuSH`8Qwu8x7hi3{1jolbtO7a>0fraU*x2OxR(?=$WMCEL;q3dc;UJT< zs0fS4hXscYvGFVO@VRUZN#Nq+=W~gOOlo49-EJY#kSMI()ugB-Q*lAD)nPWL+6;@7 z&#jDn?H(Bp9}-*-ACQ(}n6Qzl#X(rn$R!})KmupGj-0{;2c{!jk_=Kg3WX~gnm8n# O-q@NfYB|`zU=0AI=FwCD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/l-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/l-blue.gif deleted file mode 100755 index 29170b6a7db214b56bce50fba0cff7a888aabef2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 802 zcmZ?wbhEHbWMN=r_|Cwv=-8J#ckaA-^XA{be+;8wGz3Oi2*py H3Jlf&{C*CH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/r.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/r.gif deleted file mode 100755 index 4b32203f029535cdbd8074d8325c4f70411f5b96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 802 zcmZ?wbhEHbWMN=r_|Cv^@ZiBackaA-^XC8m{|uvGGz3Oi2*py H3Jlf&uiOr9 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb-blue.gif deleted file mode 100755 index 7d65b18d0b5247cbcd1f0e8a6310c5ebade7fb88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 844 zcmZ?wbhEHbWMt4{_|Cwv=-8Jf$G3;`i;Bzwf&8 zW6!l8`>y}Eef##on?H}<{(0i=&od8xoqzP}(vx4;p8dM@^7s8Wzn?sL^5)H($M65V z`1I%7w{L&{{$&^iqaiR9LO=)PNKjsI=P+b2x40nC$iU1it-;{H;LzO6CZ=X1kl=8T el}}2>ilIT#nUzaO!GgnJ!GT5=ZW$I925SH-#aR&m diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/box/tb.gif deleted file mode 100755 index c4276515ffa24675a3431cf9cca9a53156419f88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 831 zcmZ?wbhEHbWMoia_|Cv^@ZiA{Cr;eHef!CiCvV=odH3$!`}glZeE9J3r?fV5VRhoOT5gEau*Ob)>S diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/btn-arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/btn-arrow.gif deleted file mode 100755 index 31b79b644c22577d611e73bac3b7fd2a9f5e01b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/group-lr.gif deleted file mode 100755 index 094b70df2b922b0161a5c02290732bdb0020c51f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 861 zcmZ?wbhEHbe8J4f@STBS?%cV@jvagX@+H?O7!84u7XpeuSr{3BKnFyC@`O8w6$3K| zgTsae2b(#BwPH?eSa`TyK-p`K$HqlRyCsaX?wr`T_;|m9bC-8@9 D;c+|j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-b-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-b-noline.gif deleted file mode 100755 index dbc5af14aff6e37f52afdc29a09151b2b95e6f02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHbJi)-n@SOn!jvP61=+?LY|Nnz|qr_+kjGz!u{K>+|z`(?y1M)K{Pq=f$ zGq7^Vcx+g3u$eFo^FtQYL4gTWoKtw6u-K2a`W=@^BtPG?ylVU;=*DNRwj>ATUK6P9+|z`(?y1M)K{Pq=fm zF|cyTcx+g3u$er?#zRIR44!`nTTazs`OC$ItU9=E$Ot9X?vqCpLWM?DblH rW!2ZNvsv5ktoxpw+I9TNrk_22lWlUg{@%-Y;Q5zbfBWji85pbqe`-e) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-noline.gif deleted file mode 100755 index f816fae4df4e76ea30632b27fd12a42328e9984a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 863 zcmZ?wbhEHb=fuXv$NLqWyJS2!Ejc+^!#pfz Sr+~w$=?2NC=12-KSOWlDk0!zZ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/button/s-arrow-o.gif deleted file mode 100755 index 43098269f5d6d796bd3561ea4d72c59ff4434f17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZ?wbhEHbeZ_wM~*Onf#OdVMg|6E1|1L&B=5)+6JxM)_VIjyn7mb4 z$$3V}zkL-=>{N?`?ka3~p>=3U&ZYOua$lyd{&DW-*NQ`n@+54eY){A(b7nEk4a_)W ob@As7eA+=%c6>~9Z<7~qbFmOga${r&nq>2G zqN>MqrNni6GCn4q>@@Pdw5PK$-EWRv^Q}KOi&q5nx@0Tao-)+*U+Oz^+mv6EvV2w> r_h!ZJGR-A)jmQU~$dc{RCEH^Pc0?BK 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/clear-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/clear-trigger.gif deleted file mode 100755 index 5815ec8855a34cfd6192b104dedbc47c6c141190..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1756 zcmeH`jXTo`0LLe9b5|LWlH{eLT=i5JO4lTB^(g1Or0!halDwq3av1Vf%`ARo&k;z4vN292%2lo79?i8oNBYnZCc`!!dwL^z5ZTS`tWt&hi0 z6R@;I92JJ6$CcBQ@U+w#G6~a|TG5zX#)!kTgjO)42~9Vv7-^M^EF3efmX4`rreio4 zsq}{W#%5Y0mBh-UGl(=MhTNW2$3nC=(d*dRP0fusAeg~yqOg(lHUgd>QpdSX1VRYF zua7$JRP#d{xOo)rU6LTIrLCDLh^P^sZ{i~A1hLd^B#YfvD~@b`%pyyonBB!Rptz0G z*~M;WbK0AEWfV!u;|_K!aE}RK9?4>;l5B>sgx$#lIyfDj9J)M_qDX2JRdjZ9Sz=rl zud_*!%-LM~4vVJg!FB7iF=u=;WUNoPxchEObMSKg9|gu)&+ zUn1*LRI~eY#XX`nHC!m|RY=4VshIt&h&7PaBa?Kf3%LWg}7Ab?_-JKD0J2GTZPFNjwqeErKb5ea^v|zdSIX z>nVYI_Sjr_H)mUR=w#V!dh1+8xpN+6)$g(#P4>swMtIF#vaxkdnk7XQ7!BG4U0p&f zn<5QO%y$QXJ<^iGH~hTzGH-7=EtGm8LksIoOBkfXIx-DiDw4u^@w#N8H|Lv2rR&$q zLK%8Sir(({@O_{eL4iMfC5**^%_=b-w~Wq?w$7_@M=R}PC`bGcHxIMc?iwn}$L$ok zUC}GOP^mG5NxJK=|cH(d_zkzFaejVHRk4fSqE>UIS3x;`&! z)pY0qdCdXO_y)*PPz3uBwTa(3Zx-2|Kr;Q(yi6cPIft8 ze)@DNM{i@g=8lOiUb9uVWd8z@mFr!L&|zy{Ai1G+4%RMfj$)MmKs>?8|A~7H(#2I^ zw9T$XWl(&argcPHnw+jHIpP3|DLJ+lBf*9ST)k`-783Nx@~qkP9L}vFU4*-|HX|^$ zMUf~@VoNtKuzeOp2#w9mIAs-qy5LlGbMnEJDsOxd<)LG`Lq7PLaL+;}%5_moM*Hr4 zS%;;$jYQ%1?(W}-L4DX#ufHeSI^jCv7^I$f%xIBPMd2n~CfDlX7NPi%X!$N&h?jg9 zHYDGLQ6AYEPAe_j%W0Soi zh5lY>b|>%zb=#fCnlgoo1IK@#!ddQ3OyRz2tt{)*K~ll?n<5O%?Q$%<{Oxs`JgH4m z`VB|x1b37a8XWM}U=uWSpvB2A_PCG8RELN~Cxr(b5<@3tzLJeGjR&Q6**2*?x{;H9 zwl_I(gsmRSt4b^HTPmMorR7%%)Lp|YfH;qYo0&UnNTQ7%>mz<7x~0{yhP?ksCJg%= ze#3&C%?}|DhU-L<@sz~rqH-et>j$Xs7Be4<40uOttyAXT+a=IK26LVNWQLa(oNhen zM(j7_{W$}N_O;IzSmk_z+3h}m(ayrZ~$qY Nm5gs>yVDNj@einqJW&7u diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/date-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/date-trigger.gif deleted file mode 100755 index 342eea35e026a5bf62b408fb3285e1b9262b5a60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1491 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 BA5{PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/exclamation.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/exclamation.gif deleted file mode 100755 index ea31a3060a36a625cb5cfdf4fdc5cb4fa5c3b239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 996 zcmZ?wbhEHb6krfwXlGz>`0sGY+vu>b$x(l^!y&e3LT!$PJ06d9I~VJ7A=2?olFzvm zzpDxE7n6N1CI(zd3A#}bd9NVyZb9tbn*6)9`43}*9>oVgP7HaP6#6VR?0I_l!meOY(6|dTBUw78N>aBj$UH@iM{ilZ1FAYgw8_pbc0Z{x51oBkf&`s?Q9|Ns9pjDkTQ0*XIbm_d%z0TG})!N75lfssSTW5a@j z7VZsy6h0k$;Gk@@Yl-LKR#u*NrzJaX3aNBVGqZFP(Gfc8+b>uAY)8hyXKfvg1xYiW zY*bF=5>dbAA)s8qFlSG&M>wQ)Vh5osTBRj*cg5SRP8QkdEni)RP*v#T<{O< zYeTY9tdL=Lgl0)5s#OY4*Gh_q_SE0;yncTF^7-L|BLr^TbkGa11HJ-)h4(%Sp9mWd z++q*>5-%dc6Nm7`BfN-K8!7faq4qu$I5vDaHq65BkWFBW1D1mFk8s~{z&S8-B|d5m zG15CIZapbJFy<^iI>n5f0STd7?xR~C$Xy&khezew#^$bxVtGbq1|~6yM>2z`SzGBM z%MAHKdiN5R9Kr3kDEn+J_+(%6d3l=wd8ymsa=(k9-?ibBOP9ezWuVZnU>S9|?0RCh zcqh9lgmE>ru!+QN3H!S>mcdPAauS%_)Lic2%aSCX@_7PIc^&s^ zRY`fRKp?1Ukcb*v>YML1O4=lM?$ByFbFRzsZYnP|De`Z0=Qk_4O)CDKp1W-w{0{Y% zu91xUGX*{GxT;s|M`I-qKNJqk7HQ{7250%&nKJp)R;jG5Qz_C+TpxZ{F)~{>I^Xno zvUPM!{6v3y^t1Tc{N1Pew&x!jb#raH&n;tft>gcSr)N7mJLPhDyG$ul^eFE4_4f8E z`yTf7KT@mJ13wIE2el)^!^0y#Jk`lxzL&n5mX6OU-_AYI&-TBYe>Oh-aB6l?KR+}z zt<}#znf^BVZC0n#jg5^>OicXq_U(rcA76g?KJoRtUay~;n)=ZL|38j1#vlNw2i$&6 z|M>}=xdDiPEWP)JkP z&9X_dh!p-C8tLM^(>bfSV}bL~%bXRYia9=&xQ7n&F7Xgs6%>^Th(eU0#w)~u<6hl9 za%L*iO6?vVo`CKYBfl}1xNzX=g;Tx5HhqmCI1CI%}uoCHA2>jU0}O91Yy8ivzQnd zBhh^Pd0GY&%#ua@EO(wH~%hO_mk$asJZ3g^o&*ylsR>Z2;tIhwgAu0Ad z!QokGu_O+<8~m#o)2}!(g@~$)-#}cN28+sE>84pnT=>Q&UBGfn+>Uc}s2ChR?5&&% zJF!_zf-9@>r#{ig{D}*m3cm-E*ty!&ZBq~TAptP`P$WDbu=*bo6e7r9zDPGXc0I< zV#lnbny+$7*$Rd@bKI({G3PYCI0v-d4f%2=vS#f)*Y6n74%<6%ivontr}%b-v?5hk zam*Xl=_9ZXq>CWa8h>V8Tnkm6rl>AIyy$)x(N);fjlN*@$UiYAjPH8UQ9v8Ws%?OR z6uq0WHH3O$#5hldDMv1)#a#_{`2DEVnUew5GC2Fs?TcsaT69dPejIsm{uIr~XBRvj z>Vdz7f!%O)WSGp`4EfWkSri-V$URb{kg_(?WDFm%PHM8)J<|BluLf#{@e*CNdqny=Hztzm&`1nSU5!5t1=!I+~fQE;AHbk~tt?i~5nfMoel$wIaX-=uvD9N$t z8U16`g$1h%u)s<#tlg-XLJum1Zfr=0TDZ6?@XlH(9Sp>?K>+lXv;f1ZNM>DcJ;Wm( z^d)K-OE`^!YnYKqUsF4-*QTS^j26dkL~2a>ns4Djyvi`g;&j+A8_awcm!y00<0`Xu L9YNx;0I=mhMdah5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/search-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/search-trigger.gif deleted file mode 100755 index d2f910d5848245f5fbee8c8b30e51d9443bca0e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1754 zcmeIxiC5AG0KjpyLwbvt!y`I1ud-EEFJES*_B_k7G;NtjR;X!OlA22@@xnXg=UIx7 zW+(_KhX?_3{DeGHJTV2E&!cPBTJnaR(nKn*hm-~~5O zDKBV@Mp^@jjiu6wjZC1HgQ;WZv@}ucxDT2bv~qC(o!L~+&7-oaD%vmB@v?~Gi&f$) z&)c$V+5;(kY&{=Gk_0ug7(_`ZS$e67pHnBf(ICuYb6L;iS2?ZhS}=ks%x@Iuvv`7+ zTn?AVVTcIz;O*8nZi~2(DF&V^uQz}X=+YvtKqPMCwF!9CSF!b7w^*_=fsoIZm%kJV zn!4h+9hHopJ0gjYr+6Zjw8^A=kql(^rATCA{;Mi>??W*tXny^xR4(E4JyOb~(hhDr zsC?N~!+o75?~t)nsZvE}7bpi6a_&Gbdl1v11lv@Z{K2eOT}t5yPSMjR8qMkI?G%sY z3dbI|tMgR7J^j5Z@py4xe{cI6!oXmE_ZVL_G%z@<8Xg^*P;0d6v0+Weh*mK^q3)k) zR%_l)Xx?Zi-%e^LG*gprX4;46+NY+qv+vY%3#0n~{f7dU%WDlF5Iy8)$Upvl!V9X0 z=r?ThW|AZsP=tMmk~t;y$aS#5Pd7ZX^MN`nT$X><5KsJMgR&2>MR;zEKKW_66_t-z z8+_Yj8NpA$QhcRa%^bQx`>%0Az< z>4e%beu5hQL)7;1jmX28ZF}!^hQnni1|P+JNKOE_w{!*|7LSeXJ_ zMJO%cd0xcK4CpRz3w@P=0{Ll=0+$n27j2oXi;E7!?W9*kWFEK=-IZr^2=^?n=OC)s z&hN;`8yD+?M-XQn$!`8gJ=D_ug13c%$@+80d~P5;kD*iqU$YIWV!wp3Y2dhr6RPx- z?mGA+kTxG_oKzVB2DuO3oP}9W{1{cOPg%ekSuM`E!-^`6rAC&z>$BCNiR36UW`FQ3 ztng%vdCfyZ``zT^?N8>?N!j-AD0O8q?;0q!n=2z}E$T{Fz*nC>PRo`b!|#&7jEv}O zz|(u#F9a(?OvtV{n~D@OH46iw2FIp5ehI!MyGD)UeMQ9v z$FwDX|L9V9e!c3k-@$=+EB)eUud+iYI5^=W-ESV75A#QrW)UVKzYD`-=H;SCi?Ihp z-ut^5Vo2-UPRV)%+S}WODEG3=H2DJGkz(R8P!fYLP`Cv68aywt+ur}h#Hzd-@C#@m zqkBB2F#es^tPki)hp0?>w|>;kt9`Y<*lS0U?hnx1_sr2h2ld*tHFCcxl5CT+_gM}Y z6uvKcXeM;UWB7_)72|AJ#tPg#@vbGsG;4U}v9YInt8o?yW%BNxiN4_K5({b(!JA6` zwsJ4-T%sjUQ}}%!WjYxawlwwCMzjR=-$%|woGGEZ&-=*RN_U*pEv$hv#l0Eugvrl- zX2|HYIU^HSh-6(t3?6i$2{t*yTU23`k6>5P@eiHjDCbZ7ou}PkMd;|9^&2Fd72G jJp^<>9t7nDcMc&2Mg<24hDHWvW@a9Zf`kQ!8yKtsq2M8) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-square.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-square.gif deleted file mode 100755 index 16a2a3690248bea417adb0ea39bb400094d2bb28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1680 zcmeH`{Zo<$0D#{YP+m|v@q=`yi`6niN1kRM(_Q46Ir9UT=0{07t!$QIUEAc&?ZrOE zdDA>+eq~Bd^Q$IiDFhkl6lG|dUxb1fVk;3rMMS}N{So`E=MQ*(cC;J-rn`~^@W9n&CSi3nVF@f zC5=WSlgZ}h=75iUEbu=R@cH2U@WN5(J>UVkhjQ2y1mr|I)yKKl{hPy%unVr;h~EiV z2X}TBz|1B1`uxqBp>!c^iGCFgDP21tTf5IgiA0JJ;kY~0hm+<1Cbt3sl^tm;sykNZ zhe>7?BL3{fcpSRVf-ATGH(&!brc!fojzO*RxZJlR246NsF4av}m; zdZ+kjKjkD3RyeXKT+U24-aRN@%57Dn(UX*LPQp)qc)>r(slZ;Zag2WQN zg1nOCq8k$}0qit3xKH~$6X&aE!AvF>b>VcO^-((=fh*c|E(LKNLy+87li7DVE~#uE zWlRq$-~|3vjQxAps7`^Ir|LE(wZsX`rr9^1Wl_&Nt*9-sHna!Bk7mum10onjNGGB! zMzk|X*c%^zjSvLgLrUJprqG6WHY8KG+76}MT#4`nai0~$SKq{L?>Kb~` z7}~?7c459C(StE$fp02w5mzY6bQ2{f*&?BRsrmcoxT&`e6@(-L&Ogs?w*fhX*+PL^ zIUX5`ofDO%F*t|I&-_wf0(xEFRSM!Qo?DYLS{rGncW6y#D`EVQqFUZqu1wOq<|B8D2 zp48mbI!Kytu2Ix`=a{qP%A3U(C5z>bfQlCNP0peL=1&^FFdv*&To4n3poa} zrhc4%$QlppW!qrfg(47Bm_dH(lt=7>oZTrR2q*MjwAbZ1l!rS4JuO_FJn+&p!*_5C z|JpaeZF_V$TMya?hRZtr%qI=Gqz3qK3`7@Bg05)~a*-}E6pdJrl5p8(Z!9%943eI# zLlBFp%($J^m3T3!G$@lN=+|dG#kE^5hxqZ+{0F_~-LC-NrCK36=C~Lr*mde?z!*2S zH1*PDZ2Ob3_>5;ysFtofOZFB|W61=WW;&5;S3ES9_D2mT7~##miYd+9bK|RyM8(EjyooBRIM2EJ<5azLk?*?N*$*{)gh|)Wa>b`GQWJc~OWy6l7qo76|U$Jub1V=m%UJ HfWZF%HoYn5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger-tpl.gif deleted file mode 100755 index 3fc4fbbb6cb450f41b8b91bb4fd434ce83c56574..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1479 zcmeH`>rYd606>48JQ^1VQsf~rl*9_cfNajNEi+vNg_1>Nwc8BiF*8=7Zf-7)Y=(iX z48brH9$_V}mzGj!1zR2sg{8DSMxikJvU*!fDJ?C~+n2OuK=ls)h<)??0q4U>&iUMP zneUaBff%p_00AXb^})jpF=<0~uzg=I{!u2d>jDwSHT z)@U?Zt@iOAun~q~ola*k80PfWX~Xu6ad+0>moNDijNZj%uiW%}!GbDHo9dNkkIWv! zCTjGe2!c2q4yV)Ua=A=C)a*xBJ=@kTbZr~m*g@THx5wl0`h0%Be`jZBcaOk}!1EU< zih@_XD)2uPNPX#i`NDZD3WBjma`+Gcn23{wvJ5a$7mhn~_sR9dXJFrRv_$zH$xy0Gne8OuZj&3~a z;}6owAIA-oVn%M*wbv%=z(Gmv>(SqwbuIll*&Lewri8X>Q*;_LssgKb>`w+O!r;!a zE!T2y0vZOyfgf8=s(8hVMS&#{wIXL+VD!}N{<~=}CPL$T6B60R>g~5^(i$wj=jbos z^csV7Fe}OQYh;s_UVxzrVN&$vLj>y4vhLC=_i1G-Uq{`fXsE-=zv&GrRoFyos<53- zI$>>RHoU8=)HP;^PqWA$?j&9MHV5C^bpVIWpKQ)Qm;BXh$(J}0tp#PV$J;KK=dxQr z4dLtCN2lE#-_MC`WI*YL3xBwNhJ(L=fl6%mE3L5+*jxT}8{>x9XM?JkQxl!_crFD> z3x*6Vm^LNtY9W^=vu=IPy~<8vFRyc;x`yODOiRf|Z%_C8wczm3#s-hy^gxGuFeGkJ zVMnZ7d;b78k`OEjNkRBo@g;~rhEG|kZw$VN49e14r9&EWg=1izcw8!cdeiP`ivLoc z`rAiynO)S_GJR?gBD6clmWz^{^_FK8rzl~bR|?+n+Fj#dMz1T_A4zpfvHPy3i`Nnn zw=~mAVM^G+%jR-l-Onyjwk}361zkkw)6x1i!C!G<@OO;~wa6bbQeR=m#Nl`Dw$7)8 JgolF<{sT~#^cDaB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/form/trigger.gif deleted file mode 100755 index 3d7c46ae8cebfcce3932c9a4e0f8bb3730238f05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1820 zcmeIxjXTo`0KoB|mDglcRN7^9?wsB|-L*=MtD)0VdCAee7zrhY>*UC>nR&fz#=JHg z!Zu@=8D=lPZ8nLSw=yv+dF$>{>V&ep`w#99xX+*PeV(u9c@M;ikZ@oZumS+dIq0BWAzMe&&>Az7uNBr>s(LN1`j5UIEGXffpbN%`~}h1BG{>M&Au6sazf%(z*| zj4Ect6|=&NShq@;@$_mMxgnm?5M9t1PHw(J;e=MOf4<+CP~LdAn3GV&B3E(}$^5Gf zR()MV6SILq<6>EjR3?X9-FCNzo7KW*)$mf-O%25&zeWzbmY2h7ttb)u*YGo_BL51} zcMm!UmEtS)o!HvWOqwL1xwVNZ`GF38%kIpok%Te2bGW?LDjB-1om(vr;dJLRMY*l~ zE&;EN$8T#A7Szfy?H#-p(Qh0P`GN8pL!QzI-s5!%MIHQ(EE*ptyojdofyKBnz?Jgu0R z)Tn2hHQHyB+NaY~&!(m)wYsUNv*NLNv2JF1Zc#J8^hE!^|4_hwb+Z8g=z#;kKmL8f z(?k#GO<`Ufnk3z1yYu%-jt)d++ZePwV^pE`r`g>2&|bIC7H)G8;yxUw5*>7ESEAi$ zjt0hG_{6_8ajB^zIY#`s8oB&g@4e6c8gH+<%u-VQDds^BxeG&%{u^>#h}6Tv_Nz#A zzfX}-K0;3mB*H^Ld`pCiG76xaudo8!uKuw$8a>JiY9BJ(PiY9^UjNwgvE7uclV(9N znzxv34rht`ya{=cLr7GtOVpGg$mh9&eD>Q7*j4WJM-_e%f88SFl|Bxz@OMSOcvtpV z&p~&9r<7?qn{Z20DK9Fw?A)I);zg_qH8cD&03J*#e{Zc7X9U~-cz@-cmWqSw=b~X9 z@v{ST?_l>y`ufV!^S;VUB4NsE0qliJ?^U4JZ=85@37&4^;)OLf3!TQ{HosBrj&<7= z5+30e8IrNdp`MO2ah```jbiv{?A9{~UAFbbK;3TrlFq>n4Y%9|K?{@$>+0O{Pb`hEFlAdG7AiLY;{^W80iW=Q7`_0Avz@Ij~&Z^7W# zRssG;Yps2(bhG8hiEiLljBqvI*e>x1NZpbJ2O-G>OVHT$dnIi#a`dQCAUpmU1``I$+C3?@<+TC!NcuM(L!ebji*9=?^Yt#!THWv~9i zQTg@@^@C(H&v{qFzC+Rjt*B!YPhHf96|O(^ADSG()e>{-{z3Phk*Tkt7Kq>Bo6R8j9e^2Pew8D&2(M;;H9_TXJ+8r4o=%*= zC{Ev*yfYWAo=VYwgzhZ4)`&7aD!YucDZRFlZ{=~$%5VY35krh?%461$g)PPqz}f%+ z%?j@wNm{7eLt0y8cL}=|>RAIPUo|O&;O}i(>M37uC!K8D$bR>fZQkft=lql2FG-=U zc<34ERBoyQ85Bk{pxa#r3^wnyyooim4SRiQMVqOTzJKv5^~}ceiQxBZE9uJ*Fe&Nr zb{}Ruk?ZyuW*6hktg9S|2$_M=u17SZg9u9}H+u-&oNjU&VY%hz68^|E+VF4|XwE!x bz-|ZK{Ja;_R)5cCT8RTrEpx%l-grWGOYE z@{}5RDo38mm6JIi$=r`=K<&r$T2MuLt%AZ+PSm&NNYGG)!kUD6<=< zvl^6HjbKscG%0hMmAOsI+-7B7^GsgLOg_*Gs=D8*y3bb?@KrSaEUisNYnv?u+GmT} z=ZZS!icQodg1Hibx)kVCmkQMnI@J$^>N229U2dYO=+cynG!?)jO{HkQ67z;i9fB^?l~`f37oGsvG!RKd{sQNR}E0ml`Fy#z9>ZFr;f9(l-z5TZZ&4!}`_{ zz`!5T^GEevfS~?Ab7bfc(vR)wk#Y2H41^(#xCHEQS^F6 z^k(JJII!A1zS0f)=jvl%V)e3`t7o+xF;dmf10aRYx{GLX2nolfN0_iLLI(%6DIk#=&&1p)}OqEB&}P zm_9osHiC{s%;Xo`=7elb#M#@pVDfDTort1o%h-yz49S+*CU46v(G57Fn1ctIlMnvLH^zG8qLpgI4&G&K?qX3HNUhUF?kE-kt&A9919_woxF}!)8i-O z)K#RB@WY96xc3Otf{K-sRHc~+Y}SpN@;k{fY`I(6ndneAc;`>U+$BGo3$FKl47kAM zT_>5z*$x>)^_eQ(1@u1z*CAB;y07ERl)SHPVcSFoBr7#(0}i#d=mT0yw#N7jw%v3+ z_aTkwtx=>S7?g3xN-kMKv5hz*5mpgAf-@X%Xo4~cV!?p@wloKJ*6zrQL3ZIscTuyk z>~i+zFLD7U_lW2VCJ(2L?-#ec#QmDT*Roo7!e>E4#QW<-eH(w)DP{_Ml?V>p`5nHG z7HG3QeM7LmJnjrWcM3`IJjd? R8vpM4nvA4AnCJ^R@Gr4zz7_xg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-bottom.gif deleted file mode 100755 index dd99e2e2cdb7d1057dbb48a8e5bcdf9bd3995419..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb(@`2GG*e#iL++S^78UZPEMXP zXHHpJSx-;Tk|j&3s;UYL3qwLe+}zy4!osq$vT|~A{{R2aFbYOPU}%Pb;!hSv1_m(( z9gy=udBUB;kwKSZOG3hf0}Lz-8X_4Bnwpr{`FuPW92A-uSy==OBn~t(unF-*?T|RQ dfU$>L%Hf8F!GQ*5CZPh64-HPP+>DG2)&PM}ID!BG diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/col-move-top.gif deleted file mode 100755 index 1f961e856001af058cef7b87383a8182f7128ebb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb({T(&(CjcY%DJ?-?C*(Sy|bfIdfL6TGia#TvAff*Vh*k5;AStwEzGAGmL`K z5Ewckp!k!8k%2*qK?meyP@Zt-aAYveFkomn(7?zfoF%Yef&wE8kBEpzfrCOLtAMte q$N~nZ1|}{>osJ6!8V@mw=!JMpxZu>r$*)oqqM^Xh*22ihU=09su0d1) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/columns.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/columns.gif deleted file mode 100755 index 2d3a82393e31768c22869778698613b2f5f2174a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 962 zcmZ?wbhEHb6krfwXlGyuEL<5_v@*CDh*pJ^t_~?(6IQl1ymDPc)rN@bjZrn5V(PZU z)NOSrd+hMvA+B+IeDltP)?JCMyOZ1ZrgZEJYkQj3eITRnaL%L?Ia5yNO*xf6?R5V1 zGX)b57R)?XH0ylvoQuVCFO|-_Qnuh~<)Ryvi*HsfxmC5~cGa>w)ywZpoH%jn)T#64 z&D*eH!>(Ps_U+r(Fz^e+YaA8aNxk9Lx+wXJ9gs4iBqReojG&n z?%lgL9)0`&|3AYh7!3i+LO}5+3nK#qAA=6a7*L*I;F!-K%OT^jVZp&>mh3YgjfYq| z1(lp?K5S5QW|J^Yxp3pe#^mFCnoeCZo|g`B%4>LkiP*V`#cPUi%)1K8vI{DjqJr_kh0{ObHFiy zjhCrp+7ki8h0Q$jld29ZaCm%Rv8TOG?kdA4Cnl-0|6B4>Ac=7igP4JjhR6XIX6C%S kmK771ALtgk@$8F5z*F{VdWol=tO|5!W?`Je#=>9?00pygvj6}9 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/drop-yes.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/drop-yes.gif deleted file mode 100755 index 3aba1fca79dfe250cc2193794c7fd297103dc714..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 852 zcmZ?wbhEHb6krfw_|Cwfv_Sdr+r$6=|7RElqaiTzLO=)PWl&yl=dfg8$HYYUN&J>-Ix{yVpO`Md%*0>~ E05NVI=Kufz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid-hrow.gif deleted file mode 100755 index f45ba319efc6348eeba82fe06b64f9af976b2422..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 847 zcmZ?wbhEHbWMU9w_|CwPzu^A$>(}qzy?gK8z5Dm?KX~xq;lqcI9zA;e`0dV-qX4lu5-01*aBHVXY7b J1_cEMYXA(oA`P8%SHjuGk&%@0ppYOTwO7SNPBNqb$gW`W~ zXAf7ukYN8XLp=j#Mv%}y8+TVf*C59bR~H4RNQDp&S6^2Jr%+EH7uO&KH~%07*N70W zU_Hms5D)(#t6c2KKsII5hJ$5g8^^ub7&e4?$Em4G zu%0O^TeE#M$CETlpRTGOjPo;=jy%3XB030;iS&foG`&HympnU zjQa|%R>f#w_~+hl-Y#}p-SA+|{D{>KS|vr+vwU5+yr`1O&44*<^TNsKY#w| z)2Dau-Z6}V(GVCSA)o_tCnzttbNpxE7T|E$u)wj2iCrV+M8LuW%>v9SIUXMqU7Ce8 zjYMWBGB>g)I10U(;rO79mqlPji06YRY>f;_r{+ioFKC!;QGBn(bMtcFxek@z=KK`S z@aq;A6uNLjAoEg>4?D*ihpnqZS23w)+&vY#`T$45;VxF~4-GdrXPo7djhfsLI5+#I zSgrPfm#!;(-nt!G9jNcJPn2CPRH}5L16PNzwwum{rpL!8$a1F~XlQtPnnlA{V1*;| zv(s};IrcdGI^@o@)YJdk9HY(8&a%jynCBb4&4GDG@#|x<F&u4(Tfgu zvM>L6d&T|chS^+lGPRGtEcfR2-dks0{qVWOUiUey@f&s}zNzMHRF2Sl*;HIPfgnkw=*y>=m0STNZgT$$EP7-W!arM%_1Cu3=Gx) DsR|EJ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow-over2.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow-over2.gif deleted file mode 100755 index f443f0df3cd2b560908df027deda86081f68553f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102 zcmZ?wbhEHbWMU9w_{_j?>(;Gj&z?Pf`t;GGM|bbuy?y)ky?giW-@jj5Tl?_g!zWLk zJbwK6!Gi~P?%ZJj104_v((BA3ZO~#ECHP2!;Yk#av%s7dO|Gdb?P)!(2NgY77_0#` Caxe=3 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow.gif deleted file mode 100755 index 930688294ab49c4251801e2894448db89cb6aab4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 833 zcmZ?wbhEHbWMYtD_|CvEapJ_+Z{EFm`~K~_5AWW8eE;FohmW5>e){tB=TC-FFd72G zJp^<>9t7nDcMdfMK@OLI1q}|&Y%ClS9S;sLwt!d%HY6QxXX6r55GYh)U|?iqum%7n CFeL8) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow2.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-hrow2.gif deleted file mode 100755 index f4396b88332bdef515a18269d2e35d1ccf642a8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102 zcmZ?wbhEHbWMU9w_{_lY?AfzVpFVy3`0?GlcQ0SQeD&(p^XJcBzkdDZ&71e{-+%b< z;qBYE?d|O^Uc6uc104_v((BA3ZO~#kOYo5hLy8xNlfax7O|Gpv?O{D_2Mv8#7_0%t CwlWa_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-rowheader.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-rowheader.gif deleted file mode 100755 index ef3d6f864071fb8d9b19f68eb6310d72386e0117..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 ncmZ?wbhEHbWMp7u_`tyM|Nnmm1_m7<2J#sh9GI9~7#XYqk~Rj4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/grid3-special-col-bg.gif deleted file mode 100755 index 0a26794142564aad3d7c52cb309b97f9df6ad71e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHblwe?D_|Cxa>C>ktPoBJe`}WzhXOAC0{`m3ZhYug#ym|BP-Ma@59<;Z& zzj*QD)vH%8U%q_!@ZqCJk6yoi%`gf^LtwasfDXtbpuFJDp~1k&Arf(bfr*ic&mrML h!odbcMkaxZ2MUc%jV!!MAtx>(;Gv=gwWbcJ2K6^H;B4y?OKI_3PJf+_+IvQgZR)#Z#wF zojG&n%9SgZE?qi%_Uz@$mrtKQ%`gf^LtwasfDXtbpuFJDp~1k&ArkSRfsv7k!=U1V e!a)$rB7(t@v8j=TS1IJg1x1%m5nVPG25SJrwl-e? diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-by.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-by.gif deleted file mode 100755 index d6075bba2fd87519bce379df01d12cdbe67f255e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 917 zcmZ?wbhEHb6krfwXlGz>`0o(b_B3_s=d77u3+H|!r zfbs+bM-c-fhm6OD1qYj1`88rr6eKbU2cZFVdORzJ@!m~?8+%1KMTTg@3K$aq~=^PX>8{)(q7 acp2+dVHKAK1EYrP>l5}X$w&(@SOWm68Djnb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-collapse.gif deleted file mode 100755 index fac32c34a868a0308cee1a01075f3ffeed344215..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 895 zcmZ?wbhEHbkxD>-YQZ-yco<@p$sr>&0Jhlzu*! z{P{xqmy4MnkA}ZmVfA)f{QJGxKOXIUvpMEgwcOhS)84&%ck|}WGiS~K%>kP?N{oiU zkO=|BpDc_F43Z2wAQyx3ggZwJgE5DU#fQeGW-cL>8i9ojjqUv04kr>An~!#jb7a*t zEKqJ@mX)-MaG12DnNuow)f9n;jo#A*Rcr(tgby+>GRH`99GJYEaXOEbNrJ$XgUp-) Q8XBQi3!A(e85tR@0gEA9A^-pY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand-sprite.gif deleted file mode 100755 index 1bf6c033e8b8dd93e7b83286ab397d329d8f6ae5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 198 zcmZ?wbhEHbgxLc|NqsiSHFGxcFUG6ix)4xd-v|APoFMcyts7f(p|fD z9X@>c=+UD&_>+Z^fq|Dn2gC!J;mlIJ;iRRv1+#<;!`}prz6AnvW-P2odA;pf zXIg&l?xPI`Tn{&ISI`t=;0bBCv+ldF)%*bQ!fAVC%;&BsJN;LJ<$=qhfCvFb2^NJw ymK}_%owzo<*17k?wfy}1-~W~46O&VeC3v!P^9wbldCDsCs~VsL+y diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/group-expand.gif deleted file mode 100755 index 383996973f1e1b844bbeb11176d1d404ff1b3c66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 902 zcmZ?wbhEHbHDMR9!*MaS1X@y*1q1YYMNKwEZ??8p>B~Xi#D_$ zy14A&v+D%B3J;zryA8Nj$9-~1*15KHvOuIgFS>i=HAmt!d0VFII3>1SbvaN`eV}}4C@V$-$ zH44-Pp+Te|HTOL3`P`3q5O4-uWg=jLMc;oBaiO|07E-^-w5KAjKq@YkR4VNyLMA%X zx~sE(ns&2pfAG)0fxj?deHs`cj23@N_-Ue=3(;_Hzxc3QL8IF@M~ypU>I9qlxO3CQ zW9EXh)V913BcpKK>4en_T$(LRcTmGHxAJg(ds@lm(av)5>M5EjE%ERX&5s(^rc*b= r@TIvivU2&}ZavQpRSxebK8DB7Ep#r52d8IexL%lKx2;!%FaeVvR5;n-oAa9fVpDCQ{0p&mhqC_@#Z zYDCis^N2gNNezP+swiY+rvGxsp~M;>v5ZM;&SS8mvgUIVQ$51SK58g z>ol94X6K{b=?}(?3;bV!$d4!h2oN7VVf2ag)G7GN$=7%BA}Gv7#ZtL@miI4j#IJ;G z>O2t2NUc&AU?Tkd6t3Sk?3HLSn5&A7YyWCOYJKiZ!ct(($v_Hx;zHu2mD#P$E*|OM sQY{NbX)`=?sXQFsOY`b}se1QP5JP#`zB#KErt9ls?(6Xl1Oc{w0lGliC;$Ke diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.gif deleted file mode 100755 index 1596126108fd99fc56226b412c6749c55ad5402b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHb6krfwXlG#X4~ou+bjZoeOV2FG$|=q-C@C(jDlf0eD{N@b6W`Inv#*zP ze=o<1{(yu1+=nJ`ADhB`dOG8|nG9#s|^2dGCVn`{Pc*@>k~$=Pg%ddVgCO)!~fR||KBnE z|HJVAKg0iLR{x*dJ-;0I|GC%y_pblnMF0Qq{Qtk(|NlOXjV)~*Jzd>>6DCZaK7IO( z88c?ioVjUP%kt&RSFKvLYv;-0XzkU1m_xG3of4~3u@#FvBAOHXT`19w_f1o=? z!B7qX#h)z93=CNeIv`Jg@&p6N42G*5G9DWiIGRQ-bEs^3`rv@RCy$K9p(kC=rd|^` zST-*?>B_{iQlwx7E2E<(Ghbe(62oy`Y27&t0f`^nn;9J1SUxr?H8M5pwCs2h(8SWt zC8Qv+=HXHgep#c0o(mriDDdjJR6ObU=;Xr2&gPqN_0-kZOwH=MQtsX=WoB-cUnB8y dW3n5EfMAf!nn#R>TRBB^*6i?z@O5CY1_0nG4B-F( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-lock.png deleted file mode 100755 index c0f7ca6af40bfc33850f086da5e6d5fc03f7cbba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 529 zcmV+s0`C2ZP)A$02^REHqy5D^Jd)F^^d(rN|Xb}3p+RL~dRL2rlB3Y%#J zEwmt`x47pvG(+X=n}k}hx)>E`NH#o-xq$s{}^4@n^jc} zMVHl;}zWz$bg)3G^=jHs>Yu>V=C>5X2cdRC0+qNu8 zGFy+I3jNu6z1}8Cl5CI1lUxlDJJ)_``S1PU-9WIdz0;}*WZr6tGiST<{DE!MP{%aZ zmd8;ye19nAI^DKZwM=4f@X1j2qT5aLLo?0v9-5Q8Xr{I^_}~VQw4D4oDIx3(Ebdqs z892)GC-yOyX(0UlqWJH`wGWQQl9MML8#u z0ZS9$=P)=o3cl#A0_f3=OSORKJt#Q>T6B|1rW^tN5g6~miX-s;;kp@eOaO;}-@p?2 zD9RzwcnnV6L?!M+%n?v;V}q)oYj(K)&GbDKr|;lfTETKsLO#}w8Ih5H{&Rl;nLIy7 TyDY1#00000NkvXXu0mjfMQ-~Z diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.gif deleted file mode 100755 index af59cf92a4222e1cb044474c96507343dc07a3a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 971 zcmeH`YfF;>7>1uYXA>3Qh}beSb(Ur!W`$ZoRvwlh8h#GSA{v3P9MZmob1&N}#H|)3 ziyhJ(U{)KHf*@)Iy5?}L)|RKuO{O%cx#h;IvM2X1`q0Jo18y$3o31q0)ZQR~04YGX zfXCOw7l;j1uOz`;`%xPF|1H(H=TQ-Al80O7c-*kEIp@ZM``Ch}Whn7a@ zEo{qiRYg+i%R z4h#&aR4TPvt$O^~PNy46p*I)|Mx)VWGFdDZtJOL&G4XSL3{j3aZnxWK zXJ;3eLR8p^IE^@iXhU=a0)b#Kw7t0&jYea!SUet2Boc@bilUOqB;u|J|M|xX6jAAP z03n=6?Mi(Dm?nrZ^SKu7#oi7Bm%1nSA1H5qaf|0_D`c0ZeXQSbMRJ}Wp^ujFWEojX z(Y1{1lBcW8em3h3o6B)FgQ$TZv?6jQ8yMxx;o>^&qx~ghy5ef_6fHB&ac3`cuq8MD zSbdMbr>J*|b@#!#g0h@qxe*x=qGVcHY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/hmenu-unlock.png deleted file mode 100755 index 4912586b219d99e2867a655936156f17074996f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 585 zcmV-P0=E5$P)~9FVOVPxibs?mPQA|N==ddYyATwb` z##)77^y6YbWH`5Uf_bFc+Q1QZnp@`Ke0xi55x8};7oMA!=lgk|^S~k6?Zfl@;YcJh z#&O(tpU)>*EEd6RHuwBDkV>Uq27^Jk-R?D)%e5&80<2bR+2L>;+A$oD$B!qINreSU zMx(Lc>-8RF*p%PzhgPfQb_9lo`18@|1DH%Ev3(Z^1TIFSQRsBK{I+3$RA&3gU?|K0 zvn|uUcRHO1VzHQ_*XyOfo4WwjHK1=C7%1cGnK}x+P4UIa#%=#&+_YU5D|hMiuU?Pm z)}C-UEE^1l#ul)qE@dO#cy@!(SX2XFt^n0b*jP9Vo8>C*xd-uXlq#*qpbCXTO}3LQ zpqcMdP&^7`_5-2@KS~;G%=bf@JcfL1FJ^`b3qktW?oT8Vg57R^@(0+goKk>UKv6@k z5d&CF6V_i5s?P}@9{mPBbzIoD;t3g;V$+>t2%GXVt9e5G4Po^uK^!CGMz;Z^LT>|@ zWWWF*v+xqDTnkuXKqWz#8=<9+KrP=_2c}yS`~$2`v_2ur(Q-#%lvQjr#zG#zfPK6`&)kk XSX5MDiF_0F00000NkvXXu0mjfd9?}( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/invalid_line.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/invalid_line.gif deleted file mode 100755 index fb7e0f34d6231868ed2f80b6067be837e70cac44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHbWMN=tXlGzx_z#4mU^E0qXb33&WMKq(T?a&f@&p4150I4La9D7liGhiU G!5RR1hX@}4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/loading.gif deleted file mode 100755 index 1714f1632e73c425969bfba2d6430c8ee2217764..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=CIFBNqb?gW`W~XAf7ukYN8XLp=j#MxeanKO1*fKi43~5LXukr$~hm z4_9AT1*cF?9~ajk1vmd71=olWuV6jL&=3#*Agf^4Aa_?!1(+#%3_2h?K+bYz@tbh+ zWY5CSFPfMC>Qdoganya`Bzn}qfa8!#Nz+81gjfw$2H8{TUk_bqniRp~c`) zyJi~Lo@^6lX*KaV7I3I2Fw0EI$I@GQ`dkhMn5&Vj@Bv!EvT*Yh!w)eJlw_YcvbuRG z>KszxTzrO$jbUo(%E;%ni#Sgk|MpBUP_{Id1AgsYEWI_hf{S8Q?ZPXqWF!7$m^b&vR?yP zoYDgPhY%v@z$+dw{PFR zd-v{x2M-uV!Dt8!L;Mq+#E6<8x|aFW_O4e+3))3Q*|Q=94?bWMk!6jGP<+(r$fM>Xwqe7gmNr&4?FkK$jz>EMMFb>zJ~*Z~ zvMU=|C?p6pu`gocw@ENKkig96%Ptk5a9{xwcPOV4M}k2k%Q{v@i4+D0okN>5F7xql HFjxZs_zi%( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-first.gif deleted file mode 100755 index 60be4bcd3b851cf6f0d853b503467851014b5d2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 327 zcmZ?wbhEHb6krfwxN5+Vot>SMlCp2#K37-QY15`npFTYyA)%$ErKzc@qoX4%EUd7w zFg7+eD=TZtlqmrL0p;c8US3``H8qKei3blJY;JDevuDrh)vGsd+*nsvw`$d@va+(> zyLY#?woaHZVcxuXeSLim4GpQOsW~}0m6eroadGqK&u?sO?CtF>C@5I7W=(s0dwqR< zet!PMi4!X-D*pff&p--L{K>+|z+k|j1JVTY69Zd{!;AtC9jSizCe9QW30V>KLRG^m zi>rxF42Eh3v5Bq@5fau?#yToHWEhT}VL!KN1=sq9!p9d5N3pW=^0;a0wK%aUGjh4{ kYVnX_llo;Ppa!i5VLFJ8Q4$&%&Em#6pV(z;0OW5pDfG_ z46F<~Am@Pc1OrC}12>0^$A$$5o7t@;-Y_UNJMxKf6&W}lT+k*Y$eyJjc<@21kdg?` z9)m}X2f37ODg+`IICZeGskVGL@ZdlLlaQT?!H)&bz6?zAIR*(A8e5nhSgkHN9C*OQ m>dC5ipkT8?(+Va*AAy7q4&fY(0%9#)p=)k#W@Tbxum%8@3U^Ha diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-last.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-last.gif deleted file mode 100755 index beb4a8302a5363f25143e4934753aaae92c1029c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 325 zcmZ?wbhEHb6krfwxT?zF>gt-9n3$cNot2d}efsn%Q>ILtHm$C%ZqJ@Q6DCY(ZEfAS zapS60tJ>S!!@|N+Q&T%SItmI3%F4W{`~nVDJi|Zy#WCM^XAR_|NlP&Re|D97DfgJRR$f9sUSZwuq7Rs zRN$c_)$iVXk>QdAcW+W+lA)Tw#l%IA4V?t!4+?C0AR)@l+|z`(?y z1M&eVPcU$JFtBpScx+g3u$hC^!6V}XBXb*zY)A!1phGj4Fjq*7gQ62lFOR54M?r!E kLmQ{U6cz@-#wJD`MJWvdVWq}d0_-7oPHt8|*uY>70KTb0MF0Q* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-next.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-next.gif deleted file mode 100755 index 97db1c220739ebe7f1cd7f8d44b0aa87d9eb3c19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 183 zcmZ?wbhEHb6krfwI3mK}>gt-9m^gj<^z7{HtgNiMy1MrE_C0&{Oq(_>EG%r}#*M31 zt(q`lLPtkOYinykLBW(MQ`W3mQ&v`%nwt9m|9=KTK=CIFBLjm7gAPa`$W8`U69v`2 zl+1Y=txMEWHmDTuF}NyoF~GV@;l-LmP7WL@5kfA44Amk`J`#xnt-h-^IOLvwJIRT` F8UTl6Iw$}D diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev-disabled.gif deleted file mode 100755 index 37154d62406ddc064dba311b95f554e49ad38003..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlGzZPfyRu$tfx-s;H=_udjFb@6g=b+}hgO*4EbD-QC;U+t=4O zY0{+0lPAxdIdk5;dGqJbU$}7L;>C-XELpN*#fp_HSMJ!cW9QDDr%#{0ef##^yLTBz z!Dt8!oe)s`$->OQz{;Qlaxy4SFmU)VaC69bY*=uxnSOV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/page-prev.gif deleted file mode 100755 index d07e61c36a89c5c40e752663e60a9500e383dc53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 186 zcmV;r07d^tNk%w1VGsZi0K^^uzP`R>WMqVdgqN3>U|?XZtgL^3e_>%^N=iyzUS52B zd~9rNcXxMIR#u3JhP5f*_)&66N(rk(==>!EPJ;8F+xJ7^b4JOBUy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/refresh.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/refresh.gif deleted file mode 100755 index 868b2dc594ed057242f5b642e0c28a764edb9412..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 570 zcmZ?wbhEHbVk&zkko3Jv}`=wY9ay#l;mB6<4ob?da$@cI?=#Tem)b z{CMKTiA|d}ZQZ&xKR>^vrDfv8i8pTCsIRY|JbCi6Wy|*N-TV0QV64I4HT6%}2& zbm{*6`w0mN3l=Q6dGlstV`FP;Yfetip+kqxo;`c!%$e)guh-Pn%$zy1s;cV4hYvnJ zKCfQAnloq4jvYIinwoz8{CW8B;Wca4ELyZ^;lhQpX3aW!^k{s1{L-aMr%aiWnVEUy z$dTEzXYb#?zp}Ejy1M%I?b|bE%y{tN!Rpnk=g*&?oSb~+%9Ws?p#T5>GYkY!{K>+| zz!1Tp1F{?xCk*V<8zPz_mX9^mC-VXy`OS3=Nw diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-check-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-check-sprite.gif deleted file mode 100755 index c230773a4557e8b529b89cd1bd58ba6d88d7a119..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1088 zcmZ?wbhEHbG-BXm_|CxK968A)a*|v06!(~^91 zCCQ~rQ_7a6l`qe&TjlWI!RfzKS=;Kq{{HTnyL)EtnlN|oy3IS+Z`rkJ`<^X3_wLxe zf9~=Fi`Si4zvKMweFyjKKeS=z#qImA?%aQ2*TJiM4qrQX_~@Y{$BrF8aqPsYqbJXv zI(_EM*|R6lTsVFH>e=%bPoBSf=EAkJ7lG*dl`B`TT)lSn>a`1(Z(O)?^U~E@SFYc_ zdgIR3n|E*Bx_#sJz1z3%+`eKYslD`SZumUksyQsD*&y zPZmZ720;cLki$WF!kyzkgEEJV$A$$5n>mEV=1fR)7SxP7GGnHN%2}3HCP}$Ug@%r1 zW~FN(dpagQWEIzly>mnHNQ-NapwF@%M>WOL??isS diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-expand-sprite.gif deleted file mode 100755 index abea9be561866078c73ade591cdc8807357519c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 201 zcmZ?wbhEHbG-BXm_{_lI>gxLc|NqsiSHFGxcFUG6ix)4xd-v|APoFMcyts7f(p|fD z9X@>c=+UD&_>+Z^fq|Dn2gC!J;mlID;iTv4y%yJn&M~k#G0Zwz>1Hu)s=%K0 z?wclam&>nxU-SOINHl|ifkv8@;;R$dJOVtdiCs%97Y1n+oSrMe^1x+LK*WcA4-03i zvs4I#P7^rZFHLGHkvhu^Detynb}0<^7LTorjbthgJh)2t^6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= w{r&#_{{R2~EC2ui0096U07nQH0Pn$j_l_RHclP8RBzUjhym$*Ez6%HdJ6g?+kpKVy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-sel.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/row-sel.gif deleted file mode 100755 index 98239ea69ec07da63c74d604349e0b9e95de66a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 818 zcmZ?wbhEHbWMq(K_|Cv^^TqGmFMr>C{rkb2Kabx2dGh|xvk!k>e*F9T^WXpf|1*q& s(GVEcA)o{D9VjojbBHqtvoJ6$U~pt$XOmIsIKaTj$gRx8!NFh+0L$lqy-{0HY+uq*Z`T6aEC2ui0I&ou07C@-5Xniay*TU5yZ>M)j$~<`XsWJk>%MR- z&vb3yc&_h!@Bcv5U`Q+)kI1BQ$!t2G(5Q4uty-_xtai)odcWYXcuX#v&*-#z&2GEj z@OV~0uiNkVynfH``~QG}f`f#GhKGoWii?bmj*pO$l9QB`mY0~Bnwy-Ro}ZwhqKW~f zrl+W>s;jK6uCK7Mva__cwzs&sy1Tr+zQ4f1!o$SHr4Pu-55~;R&d<=%($mz{*4Nmw za@*Y9-rwNi;^XAy=I7|?>g(+7Uk>o`^7Hid_V@Vt`uqI-{{H|23LHqVpuvL(6DnND zu%W|;5bGJ3NU@^Dix@L%+{m$`$B!WYLy8oJo;@&6_xL z>fFh*r_Y~2g9;r=w5ZXeNRujE%CxD|r%fOt?uiw9b0}CEZxUk{Fh!ZPb%($`R$B-jSo=my2 z<;$1>1K7;Dv**vCLyI0wy0q!js8g$6&APSg*RW&Do=v;9?c2C>>)y?~x9{J;g9{%{ zytwh>$dkuL%e=Ys=g^}|pH98H_3PNPYv0bjyLYLX!;2qJzP$PK=+mo*d!W7h_weJ( zpHIKO{rmXy>)+46zyJRL1}NbFfCLt3;DHDxsNjMOHt3#m5Jo8BgcMe2;e{AxsNsej zcIe@UAciR7ZP}D);)y7xsN#w&w&)@%$-F4zj5OA07|%v zs_CYKI_T-ApoS{ysHB!^>Zz!vs_Lq&w(9Duu*NFuthCljAWgXDs_U-2_Uh}ezy>Sq zu*4Q??6JrutL(DOHtX#Fvnnwl?X=WZYwfkzW~=SC+;;2jx8Q~=?zrTZYwo$|rmOC{ z?6&LfyYR*<@4WQZYwx}I=Bw|%{PyebzW}4FyeIEVu0P%P_|*^UO5YZ1c@H=dAP2JooJL z&p-z)^w29OVD!;QC$03-OgHWH(@;k(_0&{XZS~byXRY*wdY`5+9+i=G%_uO=IJ<8p9=dJhNeE045-+%`$_~3*WZusGdCl1Moj5qH1a4f!dWl)RF8l1X*RJq)xaY3> z?!5Qz`|rR9FZ}St7jGTW$S1G-^2|5y{PWO9Fa7k?S8x6G*k`YO%I9FaP}X*Khy*_~)p$JD9xQLkWgeXj*3RlR&7P|0-FpQxL z2Li1c+VF-r%%Ki<$itIp?uS4Oq7a8j#3CB;h)7JL5|_xtCOYwnP>iA!r%1&rS}_P% z%%T>z$i*)Idhv^345JvwNX9an@r-CpqZ(acyEeM45cVX zNy<{1@|37d?Jdec@U45v89NzQVb^PK2Rr#jckPDu3d zo$!pOJm*QzdfM}z_{^t1_sLIaS@E9$4X8i|O3;ED^q`Rom_irI(1tqnp%9IzL?=qo Uidyswq8QDnMmNe)cSQgIJG67fIsgCw diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/sort_asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/grid/sort_asc.gif deleted file mode 100755 index f50ae62fcede1665ae4fb7623df83ba6439db5a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmZ?wbhEHbmw!k-^Ad4FE2k5kdd} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/collapse.gif deleted file mode 100755 index 55547981b9bb08af753fbbf738073d84d28ed647..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHb|N;*{yD)26P@S-5z?v^BYt z)}>9}7&>i3(&QacD_5^rzGnTZH7l2F>DaV(_1g7ortc44w_)w-&2wfP2${D(WX}HR z`3FK591PpIdHuYDu?r7{uie$LD={a3-%q{yYKMP4d*Kk9^Sv@ zT;2YoyEk5_JapvX*7Nlz4j(#nY}4V1vsZ6kzW8wCKk0yB6bxtxDE?$&WMHTVW(FVthsIMC2?q}`OFB00zldwEj@dL_Jxb8Lw}wum5>Cm0Mg>-)sNI zO2yXh%ENw_ZYwlQYUus)^8b?^6BqyMX57TSXT|-+|K^J`>|#*h67g|3#I48i!->0o zMI)2DKwgVe)XC6{hpkLI71`3~bbh=kFI}XuNTS|G@TjowhK2@4R*{4TCLNQ+B$0ZR zi7bM4It(mc)-ng0dp-XI9-d%&;lcq{zSs*4ye`*1xO1wm*}yb~$3uaUIlxQvsl0c^ ihlA`gEu3oXab2A)4w)Q*2WRDM(>zirp(ZZCU=08jq1ZA2 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/gradient-bg.gif deleted file mode 100755 index 8f29c1a6696a90ffed483d33166752c4423701b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1560 zcmeIx=~EJT7{GDRJlLYZ)HRO+M#Xl_sn%MnZSod7vC_$k&D?aeYuGX+%T*M-O}z35 z0TIMoR7A2Y^1!RIT(eq%5K&Mm0a4r8Y1$v}_K()5cCT8RTrEpx%l-grWGOYE z@{}5RDo38mm6JIi$=r`=K<&r$T2MuLt%AZ+PSm&NNYGG)!kUD6<=< zvl^6HjbKscG%0hMmAOsI+-7B7^GsgLOg_*Gs=D8*y3bb?@KrSaEUisNYnv?u+GmT} z=ZZS!icQodg1Hibx)kVCmkQMnI@J$^>N229U2dYO=+cynG!?)jO{HkQ67z;i9fB^?l~`f37oGsvG!RKd{sQNR}E0ml`Fy#z9>ZFr;f9(l-z5TZZ&4!}`_{ zz`!5T^GEevfS~?Ab7bfc(vR)wk#Y2H41^(#xCHEQS^F6 z^k(JJII!A1zS0f)=jvl%V)e3`t7o+xF;dmf10aRYx{GLX2nolfN0_iLLI(%6DIk#=&&1p)}OqEB&}P zm_9osHiC{s%;Xo`=7elb#M#@pVDfDTort1o%h-yz49S+*CU46v(G57Fn1ctIlMnvLH^zG8qLpgI4&G&K?qX3HNUhUF?kE-kt&A9919_woxF}!)8i-O z)K#RB@WY96xc3Otf{K-sRHc~+Y}SpN@;k{fY`I(6ndneAc;`>U+$BGo3$FKl47kAM zT_>5z*$x>)^_eQ(1@u1z*CAB;y07ERl)SHPVcSFoBr7#(0}i#d=mT0yw#N7jw%v3+ z_aTkwtx=>S7?g3xN-kMKv5hz*5mpgAf-@X%Xo4~cV!?p@wloKJ*6zrQL3ZIscTuyk z>~i+zFLD7U_lW2VCJ(2L?-#ec#QmDT*Roo7!e>E4#QW<-eH(w)DP{_Ml?V>p`5nHG z7HG3QeM7LmJnjrWcM3`IJjd? R8vpM4nvA4AnCJ^R@Gr4zz7_xg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-bottom.gif deleted file mode 100755 index 14b9d22f790e4040c2a95eb20dc1418bab0af89d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbRAyjh_|CxK?Ck3B-(k|ENpIe~VHgFYAuz&1K=CIFBLf2?gAT~wpgiHu zVa&kFA>*-O!NF#BW(}T(4GRyqa}v7Yu;551Z(v(Y b;-Q0{SDK9QPJ~2&{RZT@gfWaC7yU-(R diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/mini-top.gif deleted file mode 100755 index 24cd21d8975e6a2e44dcda4bc57c58af272fc9ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 857 zcmZ?wbhEHbRAyjh_|CxK?Ck3B-(k|ENpIe~VHgFYAuz&1K=CIFBLf2?gAT~wpgiHu zVaCAB!K1KX!NFz@VKo_#fQ5(K1z5Qx95yaG+QncLcgG`;!MRDsoQb3I;^PCIDu!uS MW^77sXkf4g0OSB4O#lD@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/ns-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/ns-collapse.gif deleted file mode 100755 index d24e13f935d88231a58e65dfb5dd5aa71629243b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHb$7N io(TdA9oqRN-F!SYCONkW@P@g}n7F{Do0XY~!5RQB8931Z diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-close.gif deleted file mode 100755 index 43324ebd383ff00571cc8bba95c20849089ab787..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWM^P!_|Cu}WsvLe-=XE;e}+*o8UiCP1QdU=FfuSOGU$N34$2em98wI7 e92^b-3=Iry!eSyC1`dZ?xkQy}Bmxs07_0$TS`IJ( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-title-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/panel-title-bg.gif deleted file mode 100755 index d3b59f8cf39b0c7338aa5c489584abdbbcf5fa5c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 833 zcmZ?wbhEHbWMoKT_|Cv!n03@J`?yi=DWkkI#s%k13NM)yUokDYZdP{7to)97<$a5) zN0v2DEo+}!)xWZCc*`&fMnhm2g@6voFQB~O&Y{L2ufX82VSyt9H;0VP4TVNVMs8)V Yk^>HmP0XxpEE7&_TRZaVHW~AARmG9f;)#2gR}^P!-fTp44h0dHai|1XlNBsHVSAs Rz`)2TXqn@GFSru#}f|E diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/tab-close-on.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/layout/tab-close-on.gif deleted file mode 100755 index 163420322edf10687cb6589ee95330d4709e2f99..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 872 zcmZ?wbhEHb({T} zy?giZj-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9P}a7(ufM;0=I)-EyC%%tyKeK&xyuhMUUy>sj`JIKUfjO_ z>dyTab{)LB=kT>-Cr%wbdG^%lGbhhnIDP)=+4C1qp1*tM!nLy(uU)-*?dpv?S8v|E zb?f%+J9qBfy?6e~qdWJX+*RNl{ef##~$B&;sfByLSi(wRuh5*qap!k!8nE{v; zbU->ld4hps4uc|xjK_ur2b)<{HDXQ_Japi6Q1W6iYUvPA5Rzlscwpk<4sO9XmXjI+ zi&_OWe7|@wG&BoL67X4M6R7Omz-DfcwPk^l8<#v6OGU!M%_;%{ss?XfI5Zp-5OGar zYW(QXz|GEX#*rx~s>CVD%q0^Mz{1hH&cW`(j0A>8wr;ZvZ4rjePOb7*MGqXL4LK$% TI;tJY@rY17bXb6iiNP8GS6tA5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/group-checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/group-checked.gif deleted file mode 100755 index eda4fb93f0acc263a02a394962907a59d9039c13..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 890 zcmZ?wbhEHb6krfw_|Cv!X=!O|Yinw18W0d*Zf;&sP+(wS;Nalk?ChM9lH%|0Z*6UD zWo2b%W@cw+7akt2r>AFQW2399tFN!`=jWG^k>Tm-nVOoKkdTm=m>3@)ucM=5VPTP! zl;q;#QdCsr>gt-AnaMB;MnhmwhJfNv7DfgJB?cXk>p*$Jogb8bI5sfyN(8TpiTrq&ft5p|WzCBROIw+_ eIeb<`Bsw;5Fi1(9DA?HC!YdJ>)hZ#tU=09BsXEF4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over-disabled.gif deleted file mode 100755 index 5e2fa306b0e7179fe1725e61ec9c7c8f465bedab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 vcmZ?wbhEHbWMU9y_`tyM?AfzVpFZg@00BtEfr-nfAz@|NojJ`SA`I35DyI!_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/item-over.gif deleted file mode 100755 index 2b6d5cc76bc16a8c48698f18fc5384e157d01b48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHbWMU9y_|Cv^{rdGAH*Vazb?f%++js8Vxp(j0g9i^DJ$m%`@#CjYpFV&7 z{KbnGFJHcV{rdHrH*em)ef#d+yAK~e{Qv)-VHAvpz|ao?9gr75dBL4SpF!EhV?x4# v1~y(E2?mA-2b)>B1r#&_6dV{h1Y|4{4mdP2b+YpXs5m$@Ftjl;GFSruyZAxz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/menu/menu-parent.gif deleted file mode 100755 index c956052cb64c55d03ee9c7ecd34aa53a307ba568..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 851 zcmZ?wbhEHb47cl-k+|z#zn+1M&(ePq=d!Fz|aw zcx+g}!p`0voy-@k72&h=Y%ZQ8zP%g((!cJJT4@8F*OhYlV-dg#cp zW5-XNI(_EM*|Vq5Up;&A+S!ZOuUxr$qNpFDl?^y$-QVDS9;ix)3mg1{>fcnt(^ zUcUi>w{PFRfB*i&hYz1Vefsj{%h#`8zkU10FbYOPfHonZ_>+YhWU>y30Obh=jxGj9 z4jGRP3l283GHb+~D0p~)!9>Yxj)(FAXDKG5ESZ1@4oAD0WI9R=9v*6Ak!N+{dHKMR zl}FY^$AdFLm4!>ptVN@75u5?#BR20ya;KC(goN;9V qqtnW!)kYaNB(j|}n>i$H<|I5^)XKF~L^CSn=7x7MEgZ~D4AuZjXTU80 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/clear.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/clear.gif deleted file mode 100755 index d997d6568c6decf5a92c1abaa4dfa1466f0e7ec9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1180 zcmZ?wbhEHb6lBn0_|Cwve9ijl`-5j32${D(Wd4EB1qZ|C9gJOgD16Jd&5MpCEIyjJ zdB^TO+qQ1ov31Li(jhmUSJUvcp8 z{zFF&ZoANM==iDAM~@smeq`IF&MjAJj-5EV^K#4algD;lX+3%R#NO-e`)+jXzuCF> zX8(a(U6;?Dy?E~O{@WAJUp#l<&ZJ9ME?&NR>B_as*KSvJJKFqP=y2|0;lslVT2G!nvG;oW@w4am-RRhV zvvcpw{sXtVE}uJl@!aM8wfom@gJbd!t*^8&oUp{;J`o*g^FJFAP@qb7GhEXt}A)xq^ zg^_`w9+(+`0F)=(IsP;J=aBK(@Zf-$LDY;Lf(JXC+XVx5WIS|I5D;QF%DUshbmD-L zMO=rBr;xi~qi9gvjt37GI+92eo-- zURe9_xih<U7AG7v}8ceuzfaS{R8LVw8CwD%XFQ90#A?M{K zN45)!|5Q90OkZcLT`SA+XCq_7+uJ+L|C~7UTT?(Gzj^oHzt7ux=ax-$cgXv5o=4L7 zgHw$}V%ygvYMW+D7+I|R_NLw-qT+zU469OJ34=d@r|g`Xd+V$xwcn|`$Ovv4RJU|{4BaOh*cA;G}7`>*-L@7mYzu7wtL_HojZ2!-m&^*_OjDCd-m;Kf3{%X;iDVQR~$UN zf8&M9Lq`s7yU?)ta`mC(r%oR|a`gC-ZI?Q?T&X#B;^@xHEyqtD+jXV&B_~+S1(<;cKO4V1vzM=5yn6HU#fKaJhX`O8 z1p^uaia%Kx85rt;nE?nudBUCJKLg_*NskQ+4%#!sov3I$bb>`iK+!LN@i8k;qmz%y zjT0Leb1HKDm$@joc*)7hR(%S44j3`Ba0n_oC7cX;aBwy=qrk(9huit(tZUvpcz9X8 zUy(saW9|VF&dcq>Q?#~repYA@(GJ>@!6?iWt|H)<5X-pW2qOyz&kEn{2XCSTB|87i z@ZPQ`IDsMW#o39>S@FxwzT9IFc*NY<#+YPf>chmsAi^hQQ{b?ZF_n$az}~@eYu3SY z^NJ_gcuJ`@2rAp8{E!kp#CAoQK_}wFC)J4CTjRNSE;%;5zkk4*g;VlZ@yGK{Emvaw z%q<&aEPi~Nt1x$0i3~&5g%uyela6qj9DdAn2Av%nu7<@G-e_vm z-N0~wQ@ub!(8p+E1rvkhmK%$5jdtEpVh{~+VC+elo1x6gpz$C%&*9e#Wd;Wc2L?t~ d9)|-AUSb7L7}!_}6GDR@U3oB-n~jCR8UVF)=v@E+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/close.gif deleted file mode 100755 index 2b2f7361777fcbd97982c6d4bcc6e8fe00b59845..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 173 zcmZ?wbhEHbX0_P8uGL4pZl+ghtHDl(z6&=sj)O-6*OOc`b|N;*{yD)26P@S-5z?v^BYt z)}>9}7&>i3(&QacD_5^rzGnTZH7l2F>DaV(_1g7ortc44w_)w-&2wfP2${D(WX}HR z`3FK591PpIdHuYDu?r7{uie$LD={a3-%q{yYKMP4d*Kk9^Sv@ zT;2YoyEk5_JapvX*7Nlz4j(#nY}4V1vsZ6kzW8wCKk0yB6bxtxDE?$&WMHTVW(FVthsIMC2?q}`OFB00zldwEj@dL_Jxb8Lw}wum5>Cm0Mg>-)sNI zO2yXh%ENw_ZYwlQYUus)^8b?^6BqyMX57TSXT|-+|K^J`>|#*h67g|3#I48i!->0o zMI)2DKwgVe)XC6{hpkLI71`3~bbh=kFI}XuNTS|G@TjowhK2@4R*{4TCLNQ+B$0ZR zi7bM4It(mc)-ng0dp-XI9-d%&;lcq{zSs*4ye`*1xO1wm*}yb~$3uaUIlxQvsl0c^ ihlA`gEu3oXab2A)4w)Q*2WRDM(>zirp(ZZCU=08jq1ZA2 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/expandfocus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/multiselect/expandfocus.gif deleted file mode 100755 index 94d9a9ce14b89c56c63ffebdb4dbbfbc231d6cea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1235 zcmZ?wbhEHb6lBn0_|Cx4JUzI5Mq|N;*{yD)26P@S-5z?v^BYt z)}>9}7&>i3(&QacD_5^rzGnTZH7l2F>DaV(_1g7ortc44w_)w-&2wfP2${D(WX}HR z`3FK591PpIdHuYDu?r7{uie$LD={a3-%q{yYKMP4d*Kk9^Sv@ zT;2YoyEk5_JapvX*7Nlz4j(#nY}4V1vsZ6kzW8wCKk0yB6bxtxDE?$&WMHTVW(FVtB;>r}%29Ovv3)(Xh5TX>U&>%7*S09oIt1t%u0@crjGsimWz)j@9G&B6xu z*DCd1QzAAxnKN?=NxXP=HabB{QFM}ayq=2h%jdyYSFH4&yY7p9;=Yvgd}=-4-{0H+ zXT!ryt=&_^H_7gsaA;|5s``gqfeF3`*lK>%7u`8=@c+>Uvs|7JO!c-Oz8~l2*wvuG zCF0|7h+9wNhZA@Gibf`PiM$r3xC^B(9=6x-Sm>IyGPCiLNN7NyYnOJ=!bja9J|EqM zOTAVdCS+d&9 zwKyM&xJD5xYK@+PZWa(2cm)x-0}ilEEMl#q2s9l#O<$O%$+CyE>;8nj+M9j;gm3aK zEB~o_D;}wn%K8U~WPOv3-z)0ns)k#tOOpy@NZmXz*C5kZ z59#V;rn9rEAAeA5@2F>$M)6M?l}4+U+bidE8kJ#e7^@n$SB=@vO<>gs{;A%e9mhYP zbbO{+5G(O|BWjp(3Fhw_6-2GUWLZS#QPcbkarv$po%WueCB8*1HoMtmwwP2)O*6hr z7VE;I&7$!&YnNMWxYgz)bStg6({A)%vlABm{i_ZaKEHC^>vTBWC`NeE`y!XyX$XGf z@Z9qeF2dtNS9^?WZEi1N4t9E$+zV@6OFpml;SJC7ifu#e^WU>?_E<# z_ATj3z>jSYtgZ!u4_4RKgX*Wp1f6AedVJKJ$=oy1~~ zqjB<=Uw7ksPj<=ujTiqC_}_n8fc-lK0^s_~8D9G5iL&Gu0Q!shkq*J%2XjL6u|znd zm>#3I(-VD}h490-n7Cfy$#0@Rzgm>vyCgg0S>y{9(>JqeT%Ie6be~|s>3ccJ$Vq0= zMgJiCtL};sgzwWqJVj%WNk3X6;yN3HVlNw}{&6qkd zalG`VcU`5|eqm_PUa@XN;$^7lT3gneWKcm(KvLyLD+OeC^7)VDf8L%T?WcKH+F5_> zQbn|4QjnWQF~yP~ZWh_m4zS!<>MJv+pu{|EAMWCs0G55Y^E@??8_w^k1lNRLx@HqDZ?MNDO8yu+^ zNdU*Zbf=s{K?H!)wtFEB^ds?6)_eO{Qqx=tFZ(qi0#TX5e*SpQ#t5JKrE>TdQeqVf Jdm#vv{0+D4)ky#V diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/corners-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/corners-sprite.gif deleted file mode 100755 index c447500de8f1ae322ada00ff4075ead660382987..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1401 zcmZ?wbhEHb6dlo$IE$Y8 z%+R-ecBCRW-FGH4tA>PE$%=*ruHABf6--tJF7Xr9$$eFl6|yp5b((LMX;%1JpY?T5 zcZFs~E=oSz_OD}7YAmWZzq%)nI%6QnBc;fdBB0gW5JV2UP=ZNm_%GOQ>So!5sgS_uKnP^7E^Ze zDKnp^ilD1}$c2M5Gv-AebP!i)yTSTXlViagrc0g==2Tpp`Fw8Gx0BE3v)__@F|YYo zq{aeHp;;>yb}MDgU(|0TwQ}*-P$~5#(;h8fS>I$<^n04?C^1?MTt>H=A};X|LP%a8kFK7IQ5@#BXN zAKt%z|L)zpw{PFRdGqG=>({Sdy?Xib<%<_Do6dlo$IE$Y8%+R-ecBCRW-FGH4tA>PE$%=*ruHABf6--tJF7Xr9$$eFl6|yp5 zb((LMX;%1JpY?T5cZFs~E=oSz_OD}7YAmWZzq%)nI%6QnBc;fdBB0gW5JV2UP=ZNm_%GOQ>So! z5sgS_uKnP^7E^ZeDKnp^ilD1}$c2M5Gv-AebP!i)yTSTXlViagrc0g==2Tpp`Fw8G zx0BE3v)__@F|YYoq{aeHp;;>yb}MDgU(|0TwQ}*-P$~5#(;h8fS>I$<^n04?C^1?MTt>H=A};X|LP%a8kF75~)-wlgZ?Axk8~(DwQggO08CFG#af|tJCT9 zdcDD5FdB^}lgVs0TPzl<)e6I~&1SRP?FfQ691f?`>2kT;Znwwd@p`>JpU?022Lgd$ zFc=Dj!r^cv5{X8mu~;k~k0%m|WHOmbrPAqiCX>l#v$IxJp`nAzsY_-h!(z8d8n$jR1q+sXPv`dGOZfTeDbrM*qE~lT z8b4;3=TN95;k8ABX{OucMYqJ0V diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.gif deleted file mode 100755 index 9efb4db41d2855d5c825abace48203e6545604b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5669 zcmeH~XIGO6w}zi|q&}3;A)$pp5JD9ZAqia<>`0DP2Iil!V@t&;=0*hy+mxAVnOV z(4>g-22cdWF*qtXs1pYS>u}~hf8u;O*Du&>-}k=O+73?k=0`(Sfhfp60DvWr-@V)1 z8&dTh`j5Wp$;z*|ViL1mCpr{^{z4 z3m3Y&x|U%=OeT}V;d}-}e!9EY*VmVpmSz?^nr3!3H8rI+^$(48jy_6ix)IoUCv2lZ zrK6+c=Rg1Kb5+{9N^^5_3u|3lTU%`!9xf~_2*upkyMd|e3@B#b7fv0c7e_~@T7Uok zjr~g`zTt&Q(I|t#7?_DmNl9rN4CAh(W@ctqUG=#&9yR;&{5=GsxVX4|DCE=LTNHzL z^7d!5_O~edZ^~8AMk-`w^5^m{Iv=Z@pPZb$+E43+BY#;+9vvN>nCWj|`+5)l<=V5^ z$PU1lOv+{d;?(x^zLKg-$;~cBm5koSy*8{#nnHfWiO`kUL@T&<@m>cs&# zx4Gk_0^t|umaAGj9IKE{0ZSBN>th~{FE+G`irTZ{Og`BZ*hq_;{4nWfZEmUx6HM6N zck`h>$3-XtI=NB53KTh!FuT!l_NB5C&ILb4DijtkmFxix!)*PnbA%oBNgL3jIYjy2 z3fxR?y@9WV1mDxBGx`zIqbE3?ZW19Zb0ULBBNvoNaZE8slZy}+U+VR~Ps@3>OR}1+ zCAbAA+hI_-tx*}TX2_ULSOMS;nUN?}!2aMKxI;9BCX0k6+mGM{-{Mg?q2QU1B@$Aa zf$~$B)eWn6h1+7+g6UAo+i`}{mr#m`tPAb(X-V6tVvH$~$B+$MC!I>d-`ZU&u_9k@ zK-jz{JrTEg?Bk_MqmwDHNRW?$h%tG!{x*k()JqLaBgq9yyPy7G5{5H?Ly^oxK;HRx zA^(duFTAFbz0`f-5&4nboivZXL#G;P#nEt#uRYE`j!;LX1U9KWZ9)geCE2yG;%8Y- zGyT`KlQ@~Q2^ndZ(0tS#l@TQo+!T*2isKMZMW@I3yh+yTe#dA#{3A2)P_s@OUApp5 zxdQ3de;nHA0CKezft?$kh?faIFy%r0=!L~%YO8c)k>Bh3KeJ#`tG~zPh;9^MtV9=Q z3SjS8lS0;PP*zO$2Qgo~%C5W%W4VWa6~OQHj;MIuupNOpPsKftZ-f+igGp-u1U{{Kug%*pPsHh1qOU=rw=C>t&45C_i8H#;0fo zMwV+ozI0M#eNrOV63mxTqyDs!P>%in5lSmj+4IQy+CRP)bv52|5d32J*YmTrslRuR z-w^f}hi?Q?xsS>ZNX(arGQlNK-iyhAN7I9+!+q;CayIYO3KHt zo2{|%Z(Eo5H+J83^<_-_d2=L}QW|`I^{{ij{w*e=#f&fw6FH8x^Z&Ko_XvlHj%3b0 z*XQ1)80lM%aK;Tx-p9#KouR~|DDn(>6~C7ZdC6y)n@P30a?7Pp+^ClWnsqj;q+g_S z3%{QLwY}nGwpQan!2<+5cu!p^!tr&9lzE%D;f_r?Ck%Fj1rblBPxj_wN3_X0_!?bI z@`-^?@fdp-C!tWO`?f7}d3)~WM8Engx+4NBA#|7zl> zJmdmYHI2~=R(vq~(Q3?ZU+J>zXMPnKi>+4NT?Ab?D9rnDxK5Tj=3g->$SjE$)Fqx@_!||pSLR&6f7G=!CkMDSi|kS$fg){vb9s}%nMTr92N{0D1Uj}<+btLZiG^RlmAQzjh>kIp*|1^ z)AF_8U-fD-B8e!+VtrNo2jh68d}=(_nk%cUtp&BVrOvu zIyP$a=0vFL_59cd>8tim<=NF9I${DZ-J==v(sFGuy}C-kL@3cOmt%BK0dDvGML8u( z0I1(wX!&%dFFWbA7qy|!Lwu(ewRG*eYo_p_AR<|g$=5-En-0==cj06r{Bw6ry$im1 zF@js@Zzkh6Gt{PSEI)7X+k>p(q+6#yN*9BkY>`lb1ZwbFA2;G%LCA@G(E)6MWR2j# z#KWWrAD$aZZwH#|M?NRVMOwGfL{sH$C~L$Z$v41(g&PM*Rc3lHF0>tb@zphh&t*ua zh-qmFH}iIxuK3j$!5!&z@=t7B!~+sbE^!it@}JpY+%Ux z&Bb{xo_t8&Fe3Z31vG9IV#VlXRiAK1)~{)k133@{HeSOTOBaQ5ZZ!xR3bgn40D%=r z;Rm%iLvDYqt7su&_-M>?YF0_l@*!vgNq}TS(i9z&eBKPU%S}6~ttAX4jiUc5_f<}N z+fvi<@Nt**Ns{O2yQPF)T0R`B3kf_hx9NH~b^rKvT9p#D8gqTuN;;b?VsAK4FuVKst0du(Peit`)2w^bs)O}2`oOhbt4G9R5A=EYqIF`x85@I_TPHr; z4E<@>^nP68JiClpbq-^Aa|4$9h3-;csilt?lla){RwqU?k(1}n2dCp#PvVuDJ}jLy zeGU~F=2LzHH%YRyWXKOHU3u62ZgweE_9L(_vA)4Hxu@Onm1v`Q!cyze66_#({?`tZ zGs3_`4@5Lc{ubg#M!b7YfTAcDVpjmpMX7jFp--w)W;S$O|Mf7C zE=tm!+S7RcI^H%}*%#%R%ZENHj$DGpFP#P-@13;dfR=p5@F4gd0o#Va2!jw22ha-C z9DEfbaxe~2=evJdp=UUN(o|5IcS?fAg-YYePFcJXOD>EAR!#}Q6ST^Sc(iAfOu!BdOr-LJAUC5t zM;*O8&RtNfhCCa+u+F|vW9nDF>|5z=e!<{xIZ*wU%NS&u-*`yzub1|87@f00W z^ch6+kurvp&B}&aCtGG=cd;B-BUcvd|IS9s-r54eE$w53L-lx zL8!3SEhmp>=U@R~Yd|7w1D2|}1nt(moH!e&&jnKaO7_dl*hfq{8x+Uhc|P`F4B>_)+c z7b=$s^Uv~lb=yc0%ytfdX>lNRGH|g%WN10knxF4CAeYV1vwGw5$Ox*AZPc2C=qBb~ z9KUpyC9{@p(A#yjuC%7_K@p)$LA#Cui$UleJkFTfAP!gSxGaZ;vjImstXURgE@(@w zOO(ZSf6LF**Fpwx?XjUq#j#@B{B&#pX5m3xfNyxvOqbE^_QTDQ1{PTt8;aaL*j^q| zzv)E3Z@0nOC|OyB=FZ^#Mu-pvvI7By8aB=TJ9O-blbU` zKIxzQF9l0Qs>|TYUdQ}A6q~QBXHhI0S8ctrDHVgYbEYLe+q;UhLwjUp0O?RGuLNg~ zg<&_&`JDG??Xh(uH<*a+5Q4>U1aoey8vu2}ys?(J%>abD zWQ|#YRzoE7MRlm$Dbx0ZH)HDVI`#X}o<`dP=00$m(r}p4FgrC*amFz+8K<1qQF26! z5P_(CmeJvkYf#6_C8mU#Yqbs_4pEbHDw1(NIA)1M)|3OmR7+AF8A3Z(@g2e6IY&uG z+kl$2+hIY_9v3b=0NWEZbMA|Y7Gb{Kj+z%9I7WM}I(4VVzq{!Ee2W!9DPIa-@b}s2 zc_rr&{Dr0HTSF#?6ZKSu6XMdlMPpE+V@RjB(O>f&bm$HdH(F27kcCs3IF6IRzxS;$ zZrADRwnfrcofg4~LGpob3!zMQv>(^VVz-jDQ#{&+katC($)XQY5%Ria6kRu82aGRp zj0)h0khMt<$u>k1%6a)N%ey}8Ok-MuQo9QudSw$jFm_MpL>B9OPx_^vFWqDOp85|l z?7s6lx%8CVT}s1Buw0_<1nX{y*YVDj6Op!qWTJ`MTB@H{gxCvH7=S zp4^qI4ODmCBYT*I8=Fz2eq_HmR`&9;e$+syQFzWp9RvwLr~`<1XAC}gK@I*eh)ROI zQzxp?Q8;-3OGnufT~yhS$u3BPhte*Yz#Gq2V-kpTMBJF($P))M$oZAfGu8qiKoo8b zs*3ZQVFwXPPwQQBx!9s6bQ~8smriv00;3Afcr=E1%!ZMn73$#OlguvvUoQO>bEN-V z&ZuMPmx30j4eN~RiY}PxVzkWh#D^YjruWhxMt`kGEathPU4>bOX-$n8bGPgv@cD(t zaMl9DsdvQtPG%SC!lFEDLH>#5h4)$Yj6d(OUD)QA^Gbx#wz((_4quiDB!6s2X;2teKS?dSUu+Jq9Wp2K={&Mui6}-*zpb*jk2+ z^E~L!CFpq)V+CbEBBH!_23|xIi97xHv(Z8dgtrKFupn5{@?+9YJI%tP=Ey(10P6#z zOb8Kj?g#A0E;9Wy68H>DU6UaI48#V^P3GU%0;%8!Dg(`_BXaXweH6P#wlrS{wCwLi z1!BiT8lqLZTr8Cq#&W@&s;?c-;g^rv%5M}tL4=wTjQf%OA-B81E`L2Z!wk;S8=Pp) z2rz=NpoATnA zSE5UVzaZ@i12$7} zE99A6t!>Qp)5tU$s>iH1qfyKJal)x&<<)H{Yy(Pn=u!F66LQjF>p;DaFJ<^rQ_d$t zPSp>hJK@SBFb2(MI{%Ufucd+*#7`=o!XWF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tool-sprites.png deleted file mode 100755 index 8f93903d0d290f4c3b08ebd279b95c3c6f8d7174..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14146 zcma)jbx<7L+vT7kc!JKLf#5#4Lx8~&BzSO`feG%x-I>8PNPr2!-3dUMYCe(pWzIp=hBoQ{?%2_c9O005Avt0}+49E|}0ECc~Q z=AXq2SUctb^inbQ(sQ-*dSmSY11LgWZD7pm&ery@moRInpZh3G1^^J-R99Bi_g&sM zf0#EnJ11|lA|*_WGi#moLWL5ht60(S(1z;K7)xe@siHexYsY!zyf$B(zGJnc=`7ix zVhML)^P(X%WspQX8h8#oUs}!Fl-_3dOY=LiNPQrzXThGe%9fVf8IT%sDBFHV_H zcjJ(S4NRXz9FD#p$2*K$(n~)H_QBJ?zhvMcm*AZxB`o|~9a@%g{0iT~+LUzj^2$!# zI%l|1Xf&^d%;{ZAs=uU@rPwW`|8IDHM=z6wFQZHFA5q`G=auW{F^m!MQwwVk3C;1{ ze6eIcy08TY$;5HQHQuG@#V_+F%-?kW}C{ zqm88|NGt3<|yaqhs(oQX1ts{;nRxfcUDLA7m` zj$~$E_z5b{4F(`eewMsUOZ+@4<8uYwq;08gW{K-~!%chAa>(;9ttCh6lMR>mv6JnB zl}2)%h@U)fX8GQ^`+v24KugE34H&PlTYlF6sCjRu+PxX@Cz>e^Bp6;)LeZv~B|{@` zfBW9C{tw}zhklJwu)9TBivc^9iPlJAS+x`dsgU}EL?LcSp`vDp`dMk2xdqxkzrP%| zuegrIo#s6kYKkp>+@S*qY-+8rxN72;d=;_wW1)ORqcbeoZw=0wZobErN$ z3(MHUF)fAZ4eg~B>%P#mm8~aGGoX5YwTo0(*Z)4^Xs(U+&m)!Cv66DVRJSl)(A?${ zo#QTxC*=-TB{SFUgAV`l_hP8J(CXCgu$$*(HCE?+9Hyf}<@kl(vJxaQp!s5LmYNwZ zK+zRt`KyocPR>U+;qM&jdi7-QZ~vH_I>L1k_V(<-07)7JhuoNRMJ z>dR+Oa3zZG)lwDv@7%6*=fnMc%pEjgCL!8Z?a#?V&mjCO;ia3_`Hu!q{bQQ-k2*P( z#}nZT147Jf2eSS5^D7jO!;(TYUwIbZ92u-f#6>Qh#no46B=dDg;zJ*rw21WzXp6JHw}US4(w z_ch?Vg@Ulc$AX#Cm_Zd`ZwF!)H6xMC1XdPZ79CYn-3z|<2qmfBVKW=3kQnV-d> zB9uRyUk5rMl4I`Msj^pXss~&ry#u_mU(h>W$6<4WPO%?M5H|O|28=K3JZCXaQ23O- zOf=7gyIMg)|NUda9Yc9dftzIIGdbQv9tHr zdw`$puDR>k%6FYt4Z1jnA1w~TP+-`C>H@tj!11TYLDzIUgXf<@r&=is8rZ)7X=<8- z!w&(R^VAtH8u<4Y6U|B$m+*(<;yysY*H`bbiJ0z0Bbzx?caB$AaawtOlSxdjX=)Ra zXwG&uo-?7>A4_`lzze#yJCSgTrR2easmHU_pkL#@lj>SR>;ceH< zRo#=RP5%_&z!}I93xA&Z>44#vQ{i%9lb7CtwFH-eve^+>YZ1ZZa5@4& zj0wS|34REG%9^}YaZQkCu?vudQ}D6=M%((Uwtqis&&T|(1J<&s9Tug(hV=h z{3-BF5V>!KK;gXl+3{N$xw6rPnz##VQ%c-}Fq=0Q1Zxw7p&V;C+S5eEnX-yZu_hLV zTYc5Z2i7^`$Jkj1c#N$~UOfP@rX84nm)C8OOw!bG-75OGUxmPU#96?PKeJU95#+O* zKSUo|Jo44GBFoxVu2QBvR_?U!GF)@4z^@P{g2Dgb;+lz=5p56B zZO*m7e^vp&I$tNbIoj%ab#6s%x+X^BD!4#aTwq#Z0{@BAT|y?-BvHL`MoQpX`KHT@ z@m-AfYm?gHnT8e@Z6YRLPyMCf1F2tcWrE4XunW%Qbji!3tnikW_Srb#C<646p&cuJ zx8b(ObB@ZfAL-MKZQJ+58{hZ!zsZYtQsDXSrqB49X%T%`E!T{D%Se&FTm-VuHu79v ze5q`8WknrZY{cM~9840sHbqp%kZrU|;q|?#WN%<7!n8S$W;UQ`!%H3~COXtF>w zPh$^`#pB(KfRl)dj?}rDsc{Et!GzRTS{2V`TTTf#e4W-M6_2iz#Ykx+1;Y1^BLrI6 z0(c^hRX&8h5Fk)|kZa^!-)-m4NFRP;8?!qJdDRjbW-K?YQ)AVR_<3A}JDS|K9GCDR z#*f4)=snAIqax{+0%>!w6j_uW(ZiO{HgCouM0up#^K1@#@a?5+RZz%J4@Bg zD+$P#@_ETbSiE&ixELN$g?AF(uK+dGpUW!@*9`Tvpt4%tmX)C1n)8<=|nu$WKBd ziC-4$Dy6NDm$hOI79&pywHudQoVjf$|20b_C;t*F|D(5&fpYJ56g7iZbRv$xwBfJ= z)CJtnXSn#AE4OSC;do8Ppo1+lN42VY+1Q}U-GWES6JFZ zzG+hLRbhvO->07vYq;|S#(VFBcd_unzEt=UzLfLe>}%@Tl*r|m>5(OhW%6oS?aM-J z*w2|CProNhr=7YtEEajK8#W{^x-VJLTe`X*{WtIw3qdE(fUos#++DBZURja_I4>Zo zJjYckMPZ|zXFqVYyzyMct@&4F09TfcgVE>NK8f7m-5g{J%$s0nO#kxh8eRK=`qj}% zDG_a({`n>hC;j{qEDa)5T2EoEsObNT+sXVAOJ=J4H_=PjX=~vM4%X<7WA2U^fx4;v z^!(GD_`-QUU9$IvHCyvoWSi^RU7o8cZpVBVf{JGByls1HFR%YxMa74bMGOaXf1&=^noOPz8H>5J}W zYi-UR7sS@Oo-w?yP`WEo+WoS~347uEscu0n?|lVnOCg`4D!uT@^mB^6Nso;;nRY~i zd@v1==9hha_1=AU;UvhBII*5jJ*6EMJ z)T@o{h`Wlz5mxUaDT<%tw0(_=5a9ak`gL%Aw1jQ&=(o0^$Edg9gO6l}{nt$Ay+1@MNXsI5TDF$We>LYfpvQ?Pmh^8F^n?Krt7i+p{5gYlY{R@ za%W_0?E8(X{^!FF_K%GFBKWfG9l|cIX#=nxd`TNDXQs~8b+; z<_YgBy$GKO7%L2a|0sd+6g!E}q@OncR|i|>(=CD!3-63uwXp@D#nS)SP4v_4r$wDa z`wgpV!V8`z)Bhdr=p)Rsh;otN+6h3i0 z`@9`SzU47H#nVNfZbMYF8MnArh+i8mBAmh|_h~Yz5Z|3RFRA0r(?pPm`|?4YRb`Fg znwznV5LSWDo~_`UEhxT+EnAS}Y4@9X&c7C|REg;fQN~S#5>EA}`2@f9;$&4=pHR_T zmk}Mt5BYC|=&G|(ac!)=E)k;z9J#R}S zm$gyWV$2%%fM$~{jb)hLj?9^!i8s5d{bR-FyhK7g;m@9Hrgsy4NUGH~3(XB*f)g5U zLe)pX@s3dHqLDqS? zT)3Fa2kwrlsmAq&4p4M{$*!oJ9dokM7ChqPJ($)A8x zfQTimmKWIKBtW<8BOZkt2gAAF5*CT;BP_NC%1TwLIu(Ti+_pj!nGt&OztG(wYN`+s z_Hs*=*XE(!CJD;2IYdX7ae7G~6L(`BGIioM3{`M4J)Yx8FaTk?uN3u2SpA%#J|d4t z%t9^w*I%1%Pvpr8oQ>)75{gQkEWdeA2*u9q5Y^%=W_;od3>bG*h#e({CSp}9xcCTq zVu=M`hkV|96f?d)Ui{M6`QQRz5!wG6i){^W>zj_@f-R7Xl{92IPrZIfOFB~XC7djaO*5dmh{B+<6r^5e51T?BTlah zl^u3pH)?2TwLdGPoiAHK?w%TSM|58W(Y6Kl3B_gc2qH#5;x^D`P^d!c3V7HdPT(vw?84G>x3~KElm#&Brn0 z+23t11BXi#A3a3$=^!izPbx-Jd4G(Pt1@CIO11I6(-8NQsfaI&d*;IoSn5+a!N1(p z3sCrI$Y({sgxwt^y~wb+F4$c)<|g8fJ3MgnT3?YBsXX_rQ7%Pct51`!Gm6Q-c{G}o zV_UH@o&dU@z)ut7pjsirap-^4WXj}tO7!(>y|{25*PT0sny59zw;?+Jpb}4b@U4)M zo^+%h_uMgf4y%Y9>Mav>u-)=|F%U?i@yX%a#k+is<}%Xp3fVB*3J%)p@;hlmhQD8V zV$30^dc8(Fkq>{@`Cxq*XFFcda9LU@483UmR&qlo#R|M5Y2_-p8DCm8 z`U}2#xjB*`5N;w|+fbE&=(KIXokJ5;U=;*8tFz-+hFoG%hSV>$Ad)Hd_~h8s?|$T; zj~+^~Lm7K<4^tQJ;r^t}+|mG^&)qMg)m}Uo1uZDByUnCLieoOsgo;R0tz0ESaj!{YKm&~?PctB5<@&JvsCnf%a^_27tc9{rs)(d5)0d-h)c@uIAc!2`IF z^>fSCtQurS{o>MOy_J8jqn8FA^)jMywoABdcRHMj&Hh{|^+M|M3Pwxp-+0u-7v?r= z%vKLTQHpwI%&JT>@B+s#sk&j_pNfSDHcm}g@)_e5C{4Y*pJwI&=uAu9Iqi5`l`aH_ zy+v}EzY^zJ`NF*s*>R}XV;I&qtz$t4`|*yHJ@IEyx!rT z@z3_;$Sc5;Vf4m*#C#HF^$JYt^9$c*ddl#3N!e~Vhemh65!?1L^w*n5KCiaFuuYk0 zHIBCFd`gK}-N2jF3{D^~bLw#hn$~vUrzhifS0wL}$K`RP@Y{dDHRg}cdEn-^q^P+; zDK)IcGOPtPNmsGM!2*XK3*%&?INsTDZTtdu^<^F4Xr(VsYo*||=ynQiP-D|WSCx-U2#mD=WB4Rde;#FpKTFub(ruoya;Z{iwZhe=HH917 z0TRq`Rq15LQ(q1Qj`$B& zDE;8;!%i|)%3uSgw2$gXWp=pn%z{~o{zP_`xjf>i;3{_gvM#*R;|M17whrQ+} zu2IJetIM6Hbs5{`8}(=_Eh*n3Kb*YJC+VaW=)7LzNuXVr{)Z5B0fE?@=9#!-XqsO^ zyu%0F&oIeSzql7})sw|cq10Qd<#^u)oG9k5%PcB-mU7+M{0riRn9?00+0VyNJrwlu z4Qp6s*tipB3gQe_Rp8vg(W(`Sd$ugCx84(-tr{8{!_CgQmPbEMwEuoP@7E3AE>G6B z5(DXiIhY%yD*vA9_^q z_rp|nV`Q)S^^j#)OOxwGD`ZOVM(B49L0`=-!9Jmi6^GWFH$R@*JZKsDL6#}xrVd%! zYOW*cTcL{YKin1E?^{hq;@=hQ7F|En73EeNYF)E@p3`*+H(62!8*>Q=*hljS+fU`j z{zMzm^au``Jy^JqVe`Iz*oY40eRnGkcod{ULivUXphJaU!;XC$ z2A=IXMIMz`S$ydOeh=q({`MLiev?pIaA{dqRfVu$F7=RdA$2pK(u2+E65Qa$GWVuX z2gh#V6`gF&5r2b%|0HxrPewUD*{8_)uQ`@ku+11KdwWluMkU>eF&6Y?m**v#B5jcc zrGb=s%8lr?S1_yvDY|9nC4e1xnJNg!EOD1DDp>oBpmSF;dHghse&v%Vrbk}9YTVcY zV4kJqml$Z#{|N`6gvK0~lNH8LVxNy=G4UZH&o4PZutM7kVBbb+aX*8r6}6$I)fy^Szfr`T`Fo zzDdHtQ+j4vhTkAce*zTG*%#r-dQUA#4El!pH?1=ol#gX^r&-pl&vd(Zv*+SSvHjjT zR9)}-7wiHUPEJB^)JYX`opfHM{!F2vl*g{RI@I-Am6anKkr+!>M{cqvGrYoHtzo;7 zom0ZxLI3YVBEg^_EglO=zE@(jBl=`>s%JKL!i)tn;U5EU;g>yRa*>NQNWraH=2Mpi z?2hfrwWsvJX`_s1scZ~lNcLPir)qlO=ccJBi_-hZfAl(ccUh=&Id$*#tavQG7)W}S1F-jAk2)xR0^ zXz4BBZkD`}`6ad4kdA;raH<+<%fDb0;IPSD3aute<`>MOw3soke4Vo0p>fP6dj#P6 zcbz$vX}!*2(g4l=ix`4}xg1vdM)as{1t-uxkaDSss0JeWWp4z@^+q`le5I;xe6oar zB*l^8eZ4$hC`e1#dHJ`u;08O9;LckO&K-F`>geK|-K8U?zfUG%BAi|Ao3+A$a;pjA zD}fxgK)B|OzDv8=!+8Y$0yiCDh!9YNzl|ILCOGZatks$F=0+8jhL>KAFYt06nCHX*{Uo&$C>02^ocM|{2{cVz)OZT8=d08h_Ze@-0!kzEiyvEjHOC+ zpt3L-S-dpk2qXc0P~Uv2?gK==2Yf_CV+!}`pTcSIqtMFC;?OBI!$U9#nQR6bfQe`! z(tpLx)okcsPK<194OjhL;px=>z2}V>N@(w`A038K``ZdX(k zOE2e-tRwygj!!IDzI%*I1hJi<6Bt-w>JEc~GvxxMh1un|8{*tNe&0{piV&DNm7k5# z@C9bSc+iv?ln?B+Lkz8VNz=BmgHKm*syp8GA;!{#K%Er&;U*my_b~;6(k@UD&KS0b z4wMh&Or2K$P9@fg)k%Q-86Xf=R;-~K;EVZ&#}xUEekU{^R(22wh=Didn2nG`e9kxS z<&5L+@_#3Pz^8wg7a;6K+~6kmfoIbLJu#w=^YuNY+8;se2&UXW-#(?sqjlbQus44I zADK0v-6&D@A%BAzdeet_nbIGkgqU9dDOFj4sFZSm=DM52p`y!fx;pP3S6@jMRE$^? zL3)V(0Z%q{x0SU6|1z@?DK29f=_;n6C9$6LZUsM3vCEk}_LtSv+w~B%7O9(C&Tuar z;Nk)z5xB;bg8>HxANQ*lYBWgP%pn5_9a;N)GTCoPdOme`NZrU#t43fL2`Ym+o@`iP z`c$-RfZ0de!0V@0r$4!wLxS%Gj_%05LSNu?LZv`L)*|Of5T0}QUFxx`I_%bXM1P>K zd;3|NCe0CJjR!R9CtD^qQG9E2`tpzd?+Xcq44WXGKDAyRX zD%Z+!cpD-*6NAz?1(%V6l&Wtq5s+=m4={)ym4Y5^M#DEZm*MYow!YV`MHK&FKy~;? z`VG#6T;7$;SH9l)3J+}c0Pe4x0=*8U$tUS0=f6NA-VnAeOmXi#%Ch^0J}UW2vi_91y`D*P5FKu)dy2d0YLI z*6DuDM+>88u`i^yC z83}3frWU4AV~@a0C*K9-PO$_vlfIyy51P@X*ja`@9V_&#auUfCjOXN_BWakJM(Xe5 ze!*4Mh z`U2NO=^O$5iJ<`6y*_@_I)+yB|BF@^)pi2nQDr(%67}ey<3>T|{~X=Z--l7ULrb*07w@ zOU60BH&J(+9E(Xqw&@kEc5d~>K#2fj%V$rAiiCb(iUBut7ok;)R`Ic6{4kL%{pfEV zv^v5W3>t;?j@4|x0)rB9vZ)8-e%4*2YC5B^_-=Qf`DY50BZBPDZ4vl$#X3C0^97$F zN?!5th0r4j(XaC!Y_l+tk)o7hVUS<8=~|QIuSyOSbd7m2_!!n(ILs9UhYjzg>q2&>pXi9VKPD&(2zyo~j#H~QwaYv7=S`+r)+E^h z7*s+-rq{p%!DMb}+kQREt@T zMs%=?xBi{%+(w%O=z1Y>=Pg-TPkkcFnmvM+WLOnno-y=b5uQED3>iR+fr#I$y`L1z zhYmvqp5qIF5}VP5Wovfg+QSpiWEbO6^*<>_#8ZyX0$df{OYbL}(1pKNr{o%wy-kBE zF-mP?OF+_*4te{#B{TEN5;w2Gb%daxz03;0 zWR0QjnMu3ZR8}Ac5xo;m&d)18+3edGx9g-d7?E249-df@5n9w-Y>x_(G!?;r6D(9AaX=qcH_RdCd-TdyCl6 z9$_W%K?WXKlybhVPq14o7cj5Yi>I!0y~)er{b*6j+v^P^QTnGxVz)mDfP8^zV_*|$ zAd!W3!?3j$21~3Q3y=Yb6xvw?!y(@x8x3d*2wOrey52VC=alTtC#v#b*BJD)vq&ts zxMy!vA^?ylbW3P241&t1@R~~=?xO8_Uc{gUQ?M8WI%Xvi(Oa(_io3O$RJGrlg=9WI zr!?fELh0V`5E6vkNiJrrmq~y+O3NkGipXg%kUzJi7M~{Khvy~|s}7>4WnR2kxOf+E zer#*H5;-ddqCCqbHs2ppqf*7RMzNYabi#o#{g)l3N__-my$oF!^h4PWbv$D!PQGohkBGmYyrf+hm*LeR^-vB zDrwgshuqm0Fe)q+BPMkJXQ3KA{;3m&UNAhrG>Rd8$#z7vx`q|_KJv!%3rwtv7Flb= zXS+@xJNnCSbkUa>sTDL8Bh26aWyzxSap#K(DZ}4-b{3@sX5YW23q=prOuXx(A!ym? z(gJq9U_1PJCI{Q{9y8|f%LO0)RyykGr#{3`ul(zoYm#CIFKwN4#Enmvb`FNN^St@9 zM~LDYY59F1GNX>NnQ zS{S#V0B%bcm^lxY9(;z*I(;V?@BThWOLF~>QigRRha%PWezVaL+kk%Ad7t;Sxt>+m zWgsEjwf7TFBA=oAd;ZbF8*qK2h36ar4|i)e?GjSmEl=b`2OQ`fsZ~+m#dCX~4|O+Q z53~@eN{T1qce#x)M|ENz&hea%ngZ`c0yHGW6%EP1QXTw-!BU5KTvo809aN6SV=)?cr8CJcra zrTENkc3_Q<1rG-gZVJO!e#+G94aKf?+(o*-TO_rS{fs4MFLIubCi@KCqzNL)Ct8q7 zL#rVOw4O&?f2sV=G5^o148fh4Zagvj>N(_Nu`B&JJd!Yzznfo(#aHT4|A8_-N3C9o z(u0LK0tuEYhdAv-HOF_6U8cS%p~{TweUf}c;0n5x}@Na+7ZEAPu=0qN7=%#6kmDfXXy z*e-$X=fzQ0jNVe<=3db){Tx_7{1(m3Ome1(YXIQupd0rmW!iWSiICAilYDvG`$hbI zjFx!$i(JNxd!-ZxwJmq};kx)?j_K&4DZutJT;^h*f~*yjMhFJ~&~NED+g&ZNH~rU~ zw-;JJ0?OEL(!#@-InvM_Q+{q=rpNQ?fPvQtN%1s3{JXmZON#-Qyq0uK8k5VHwaLp8 z;c8h=JSK{htqk;W5&^$@KvAh!M7>CSaD64{c`oDaYh-E%dh$(+9*IRz97SxLAJBop z7X`cMaZJU!w z+x!xS{+@CIPxaK;2ad%+=_Aw;#t2iIZv)Q+r(24gFfbyoqiV!Ew^r)q9H>D?v)Xxl zviV1K<+(&2d12%|5?^fU6&;Dwl8j%z1HZcnXaK@0lo;)ZO0f(2S4X{QWgAs1}&?7%_ z-s}&JbWLozB+@;NbihutRI9ri&5eD0=Y^iuS#l~FZ>ZbwBK#L`#H7>WnM_6^GFlgZ z3GQUl{24>3BajFuFak3sg&Bhl!UG$BIB&Ug=ODTW{$y3I`0%3?s|Ga%WXxk=(!m{cOX4r=o6Xhg4C}q#=8oKxO6SIyNHj?UV z4Ob7<8zLY{A+_NxbPI}L;6d;uwtryjP&)#Dx6g!#>BgCXUFm<_vB|s@9|6{gnFrJ9 zuN>Y8&`-dB35hJOeuC0wlNj3J)ls1o_oEmKpE9cAaFF}wxS-b6AgsWI6w*fP7&K?M zofM_HIL1}(o@$5vuzV4dKl33}hsxbqt3(I2++#1@VBeZW!PS(fDUS z&}br8YMRWhPXkt3Q&Z)o=8vpJ@vJ7s_^BoLdAZcC8`TxEB_K%tXhV+8h9PlbPoJ`M#30w8gEND8*gwBm z8G*O*)K(<6`$=Y48GXKUuM0?Yq3;}{&bc+%QEijz9g(rP7}8C^r+%^g!MX(s<}>9sM^R!;?go7}8M1@NC_>^$E` z%vOXFch)_nPn1k=;c<{sTsHnjJtn2t&c<&(inP`Ls^=(;zz6mM!nJ#M!SnY&2YsP#DJ&7vOOOa!#KW`?_*<(!zrA=q zw)q1}9|7~ILD^WJ*=TTLq!wJDM-+@!ubv9{u0NSEEMFR!s552a>(HwhhoAoQ($3Gh${B6Awu1MW14#R5MhG9O(g*eq(;~YWJnFlv{{?FF|9!pv z^BZyyE2SMi2Y-^rgT?*~XsRN8KkdHR`Ggkqf4jTv%6uX=2kr?viA5C&1JezwF5#CS zL;fl>;J8V-i+HgsrD3^-TyvdvL-Sx5fR+*10B18<*H^`CWkO{k5wC2D5uE+1KJ+r! z8p2Y;LLgACPz^OFm7aR4)l@-H)}yPPGye;poiFWc$5CXf$sVIKk?6&{q@Qlk6Dc)z z6m;A_GpHTItR~yfV&o$72H>}c>ro3$ufIEd>mO!BWbHUM)0j)d!ZdC!nBXBd`4^UP zAs=ut20>TvC9yfn&!eUxi|mn5JTe(Vv)1lOYmth|N+qz5_Fc4I%cNSQT)N@Qy|q~c z#Kjxv)xs4)3yUW%K%hs|LV37(l!`f*JN$rYOM;(A;77VxGQn69xDtdG$w{2&j4Zow zOzttKo6N>_0z`5!g=|i^Zz%7OR(Em#K=;U ztQqSw^!KChXU#q$qtHkX4{OT>;SG#Qv=$MmefhbOvTGXQ>f6~)liAa_3HrAu{TNLv z@;w*PIa<7G3^uT*tPlCe+>KHJR4c=zU*gGqPP7%-^?GAI_r-WtneQpK69zlQ#LB5E z_^uf1AB*ug5%;9H*dYg=KEMAq;<BR$=j&H!VlM@EsvD~pXiBD5r|y|~@MUfOn=m~?AzND{nLX_t6(f9xfQB+C| zF(xL6Av=f&I1KqV-yU;h*68kpxzHJ?Wg{YY|LZ$`&i5Q4kmc=f7CTIo7*0zf_QDp& z%qgqPv3*z2s?k*rF;tK3l#3?!3Wc4E$0&)5F}h%ST;jtukqvmA^4gy~XF8IFz4Sfr zF^swwZAU;T!oDTTvYNDGl;bmxf7x<>6N8=TkcJxTAUNWT^GjdDA*$unteKH`C&z5hwwMr&yi`dc8mvxR}; z8F#5EC)&(ZG<^MmR(u!(kiH@f1B9Upg1{WV*VGyvItxi1J&aw5#2G)k4dX@$kW6?6 z=f;eRwn8y6BbFA%+@Ux?9TSn?|6Bu1G10?InpH5*Yso>h8$Bw;fno6QI-UxZQpK<3 zsh?$hI6*3rfEHYa{kpOHsgBiRC2~#|p02|pP2zEEAZ25m|7RfRfr6m8G#ASKS?ve3 zjkd~_Ze0UfjRQ#Yef4VB^b&qWNGrPLMDXtY5*#6iQ`{aLizmx`g_|r&hwLExFb^4s z5Ej>l(aOX)u5BiTK*d1acc#{Z9Rh1V(5QctWlXyC`rkOv%K#IIgREs2VIpP_R#ciJ zCchv0XOG{HkCXOSP`T!`1oO}#FR1TGtDt6gy~XdXr28SZqmChw>PD7Ezm;BJGhats ztXPp@CApWImbD|J8Gv3+i=EPMlaSHhy$NJKK^ADoHUF_JK)=B|^LnL}kuL@^|UtY&Ff=*6TzK zBl7F>sZc_nJ|JN1?jm5&nvMkS)z#H!U95ei(eh19Kf3 zgl?9le^6lYgig>R=Mosh16;c3s-O~L;I^fw{f0y>)~NdH!Qs7S_z3ir1uKaaUmV<~ z5`@vI82knQcRu`hRXd@;cdG>X&Xv)>sj4c$VjiX1I;SmnKcX}KPr}5x+`vdEULD4I z<1?J(y(dlX4=-X&WmEOdFTMmGEVnWo=ROF2Q8+YiglTdkRgPO+`BL7#XJI#oZ&P<>HJN(A8aPUbb z#P5MS5gKOKv0 zIs?;@U|3XqMQ|JVP3KTHXeck>RjZ5WapG5fZ^aa>6<<%_k`uip^r$8OiI1NV`LG$@ zmzdwrN_BwW-2di#L!HualCu^V9rCukHM9k~Zd(n@z#JG!AK#_OEFo*NxM zk#RUTl}_npRC;ySw{noo0ut=dq%|DH}rW*2jB(AQHKm7E=Z_fITdG7 z+Q06GfaD>8su7>@AHzg)B|yLVLOho+fytER$Mch&rd3*Zk@F-F>F@m&635)v^hg}c zt36w@R&PuSN$Ez&<%E+sq@7j0i zm69e?oi1Y%4NSth;8T}ce-cw$Xj|Jo*@#}W?D*UARD-)C{z_Asf9(mJw~qIbo}Hja^@1}_^8yaL zC=5d`ZHh=;$a70`Uoo;xKIl+zI$nS3u8UAC}S%O$n!h!$^(cW?($>{cj zbSxj}r`xb}i_%MC=f05r=^Bze4~L8Q*C}HjC$AL5s&{_0+X3i+$ik`deLl|LOs9Hv zJR4TOJ+l|MFu7aWF=8lSd^OPO-uX>POTfk9_%I@0Ms`Wk#H7zCv-5s|?s-7?LzJ%n z&x|^UHOb^w7?D}#b6khy2pS7qSl47UoS7_K)iG}n&KtO2l+jicsMK+`1QX#t33%q$ zW1%CnNAr;EL-zt#78-z2ckTbXeMb($Z+ieZ02{)b6R!6x?wF6_0O~4Q$~Did!v6;d Ca0E{P diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tools-sprites-trans.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/tools-sprites-trans.gif deleted file mode 100755 index 5c4f9bcd9b74d902732adac064e915927db06755..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2856 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/top-bottom_bc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/top-bottom_bc.gif deleted file mode 100755 index 1954e3abac4cde05de6403348695f4d092e0fb65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 zcmZ?wbhEHbWMt4`{La8|?%cWS*RS8Wabx!E*|%@szH{f!-Me@1-MjbT!GnhnA3l2Y z=<(ynPoF-0_Uzg7=g(ifc=7V(%h#`8zj^cK?c2BS-o5+q;lsy|AHRP6`X3CqM!{$Z z45<*%VE_V9UU28|Vqmwi5LmF_U^54EM8t^=3!U4<)pP_VY*=)#T|zdj;{XFAW4D5{ r(ix9UDV{tM8XgS~5*nMBSv9)mcy3PfoorG3>Q3j!L#>RAj11NQZvKD< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-corners-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-corners-sprite.gif deleted file mode 100755 index aea5c3131fa0370e23d8f9f82e952e108be9454a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1365 zcmZ?wbhEHb;ylvoViqxG`pu-ugoU0FyVBsp*Nq+Htmq}LDt=F+_PS1tX+C=lHFU=(#Y%Sft&y7 zI5fV!y^WQ}8)_sWATxdSurExT#aQ*qo|d~e7(I+PhL;acRn|-a(CLB z`#bahzvBzBsd)e5bbI{#x`N+_-^;J=kDs~k+s~)z?Qv)0%l=>cHS^p3bjDTB?l&^< z?T~L`(b7<8=2qi)*en!w<3S5sl*GeUsh}T`SuDH<4s@vWSsZX+wOH_|OH0h)0;Av& zjpQD7o+$@dES_~FGZo!T6_1m%XgD~*h3{p9vyi9DM0Sya2TvyZ1sP0Wt^JyMu=2;w z>8dr+r#4X|CA%^+7IwUpWvlbDvQ{sQGkT@9YSXb*)0S@U<9fY%>!(?(SM9y@OMCUfcUn3*htFlb*>u!w W_L{XP+`3n9St6S9)`5|c!5RQa@N3Wj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-left-right.gif deleted file mode 100755 index b69bffee5f5d996dbb7212567133e3cc1367773d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 807 zcmZ?wbhEHb*8l(j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-top-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/panel/white-top-bottom.gif deleted file mode 100755 index 119bbbcd9b9187db0418e2ea6434feb622c4d915..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 864 zcmZ?wbhEHbWMt4`{LaAO>gwv|<~DowY)?;5FE1}2A0IzIzkq;%z`(%Z;NZ~E(6F$u z@bK`+$jGRusOaeEn3$NjxVYThT!v9F8UjN<1av@N0ObXD4p#(^b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/progress/progress-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/progress/progress-bg.gif deleted file mode 100755 index 77ad06ce05dca940b7ae0c92bb34334d7f758be7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102 zcmV-s0GapRBB`xw*N@%F4vV z#Iv)rsHmvFzrUKAnxv$pEC2ui0097C07C>DFv#hEwNs*VasJ965M2p;XeuSm@)%5E I&U6F-JFOKl<^TWy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/bg.gif deleted file mode 100755 index 2159a4f7cee6a927148f38836ecd1854379c42af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1032 zcmZ?wbhEHbhjl11G zv)wp7ef^33mA&_5eRiz7w6jC__|#Jq6Pu4uP~5+D)#cRawL&I#M>LJsM)ZiPcFE;# zD>-{{g=6p+o@twX&hqQ0uf0=LboImzY5f=((~a+0*m%`deQXLY?pI>fh~KwoeeuEz I%uEc{03WutivR!s diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/close.gif deleted file mode 100755 index fb3570d1f78ebf3fa7018809ea9b8915f513c487..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 976 zcmZ?wbhEHb8J3zjTdvS-hpy?giW z+qZB3{{06I95{IJ;Gsi@jvhUF{P^*U7cXAAbm{KhyDwh6c>n(W$B!RBfByXC%a^ZT zzkd7n?fdudKYsl9`Sa(mU%!6;{{83ApTB?q{`>du|Ns9CqhK@y22%(q{$ycfU|?j> z0XYhkC)_#KGBEo{cx+HO$iQQi^5Vin=f-vgyP6jp9x^fu$T4K_91K)u5KxfOIZ@!K z$j--OJ?F}TgO1G|3YMpya3~#VW|OyRkTGCj@E25au=40=Jlwcgu21g6fyCx!2F^uZ zbG1wxSh!R+W!?2^YHI1W%09P5a+0H;022#?0HZ=~fB>(XUXI6tyd#}{?qW|97UakC k`XB9sMn(o}0M#Iw6aWAK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/tip-anchor-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/qtip/tip-anchor-sprite.gif deleted file mode 100755 index b21b9558693a9281df51099d517c0f94e248a91f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 187 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 N1A@GD@7^uv{{y^3lAQnm diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/s.gif deleted file mode 100755 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-c.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-c.png deleted file mode 100755 index 4548f9a361bd342945208917fe43cf033f393cb2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 74 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$61|)m))t&+=K~ERQkcwN$2?+@kjyJ8;<6xL| Vj+x^$n>$D~gQu&X%Q~loCIBI?5sUx; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-lr.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow-lr.png deleted file mode 100755 index 1d629efed00085d36ab99d25340fa21f8f648b2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 88 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CG!3HG1zpHNqQu3ZIjv*Ddk`o*l)D)hvCuu5# lH6>}TkPv1TGe|OFVBpJRp4;OQ#|Ko(;OXk;vd$@?2>=#G6S@EZ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shadow.png deleted file mode 100755 index 2bc4231bbb4c12d5ec7ad857d7aa7dd601013090..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Q+l0V0jwbN>KREuJopAr-gIPTa_KK!L}_`Jk(Y z9$!#{sA)F;$J(L3NWGvXyR?y1eepXcj0EsA$@@ o=R<&*XwD|~Us2}&$IkT5a1Kq>m>FVdQ&MBb@0KT+LJpcdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/calendar.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/calendar.gif deleted file mode 100755 index e6ae370d684acb0ea4d7d3af36a99d602a3257ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 981 zcmZ?wbhEHb6krfw_|Cv!=$UBjnPB3PXyTD<>X~HXm1O3TVD6D*;+bL!L|&=p9%&Yy z$rhfe21!Q^Q_foy-7_zKYFYTes_3C(>0^ho$8NPxd}^OC{AUPgcoyFJG`!<^QvZ{z zDbMnzKTnzZDQo7}(m5|{=DsSP^R0H#i}HnEYgc@4VPKfFcR$P>d-aR%Rj;~Nz3y50x_9NPmes$yHvFEn<75zjyE6rRxuF+*-O!2vN(AuXSZM=nl^yapd4 zW-RfX+$BESz_G#6^;o}1wa5X5!yXeAtV^C8C_L=aDX3s)bKn5elB2@rvpEzS5?g&| z+cT7?I4p2rV&(#wr@+w6%xrLDLSQo+uegd+$%74w&8=L*21gb!CLiM#l(Wd#;lSv` z!pUc#u;j#rL?K1x%0EYLvMd*1G^tNoqoKmcCQ|b9n?-{n>tt202{MXCEFJx)r%OuT K(J@e9um%7t6VOip diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/glass-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/glass-bg.gif deleted file mode 100755 index beb72caeb8fa2191c0e91daf9a75fb18eff84b5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 872 zcmZ?wbhEHbWMpt*_|Cv^{Knf8Ky>r%$(wIa-F$oc*1OZU-<<)XJMYfkd3WyayL0z| z=>2&hy8q$A{SO!Kf4Br>Jos?o;fIS4KU{kF;qrrzmmht+{1}KnU3vKN>Z6ZW9)G&_ z=+ku|_sOTLAoTg_)6ds{=-HR+&%fSy^6BQ&&$pg_zWwa;o#$U}y!d+W#n-o=elU!J z(GZ|}25M zP;gk_HBB%6*c?rVrt_>0f@}>AQyK&3GiWd|a5+3V*rLKHz`8-O;bI?KT#!f9#FfD< z42$%ZocgGBcDk0dNX>T1r}&2sGfTyAYoI=Ga(fUEA*&kv0~L5d6!XD%)bWwY7nbj7>TDQbd3qh5x#(7~e| Y`K*&{1kB&XOjheP+EFc@>cC(P0J{QkaR2}S diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/large-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/large-loading.gif deleted file mode 100755 index 832720bb35071d3183fb5fcddf5631cabfa252b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3231 zcmaKuX;f2p8i!-<&7O833xz~65@d}S2w@WuL)bzHkOT;XeKYJ3BcMgVBm_cOLf8~g z*&>3nh=^q=MM_1q6+uB;cWtdw?4olzZO_a&;j}$7a}G22+r1zD_dd^i-}n9b2l~0W zCsH63$Xf{H-Me=T24iVyslB~@Zf0@D-qYn%p;{P!1^gq-dwYD{B=gt5_D&xo3;IRDgQ@$Z`pQ}9dmvM=cApAyTKs= zOZ_b6xcZ(taWv7)w|089~~AkwmdNyJAAIH?t(8@X;+u>u#Q9ktZxUjFBK!xyH*? zBoXt#u5h*(Z|_t?b`+&TPH0dq?eQ8Z90Ml;#SsR6LLtr?o1=maaDyNKZ&U;Nc@!de zy^*_;1*IY+TvE%Zk1REpiop&t>Si~g$+f#u9oP0C>K=3TTf4Y`s5)?IRgDL$inIhI z?dON7sjIL1pLX1pAuKVx~G!@vBy_$b^Al% zaag#C6FRkQNK5zzJG+{ec2V=La{Wf?%SX!Wp|z*2*4EI?`v1*F|MUAc3g75$lu&MD zR)$^g_#NN0sKkJ;qH3|)1XGMl4Gm_>L6*xY?(Y9M8{yYuFueBnF=(xLD zq%To1y>utT!!)9ZGr{@LBfadPG0%@+Bk1yQC)2%==V8i#t*QA!DD6`Axrq-Li!!zP z?!AfX6%s7Ill;(JhD0P_5QGSGZWM@U}Dyhf}^d)J{CW?QIOQ{S#KzgbAy z<0Gcs_$`}hSpP2#6#tYNrcO69EyiMHu}JlI)?$%yFmcOCyH^2S&PNW}L`#A=H3KbDM1$BvcVN z<<1@8Mb7mtcG=#@DwWIacE>FXmdIdqgX5RxxyX7kf-qB(`60ks!^5KQ_hq#(Sn%?( zX75a;^0$Tx)-(!O544~0e$a^AOu$e7OTZM>>d<-${qrrfna0EbZFl398J#hwXPGw8<0QbxiyP|)^Te99 zL0~`i0-mYPus+6IBgGsJgSUrLc&<>)@?Q0(tKk1xAYvJz^CRo3gbZ)mf{p#1Ea&_S zwYa%!NMD;e#e?_Jc}E7xiaI)qWCOEsYwmDZz#F&UZ{w?fm(bKZlF)bHy`Fg#zvI`*0~cU z{Z!6a#o?T-M+Zqwn|;lKuitx{EZ=8lsg6%_WBw7dpy!1 zGU2(GS!*o2Qw9{b*UyBs>|=XP8xvSheOxW!FY-6HurU(kBi2E)L)>`du_{pfOOz;55E*sQ%>DY<(w&?x-k_huv9O&O9KzxD)`d z!DL>$9_5kz$$H;W0x~%AFqmZ4c6n3^+lNT?v3yDTx{fu?es~KTT41^9Nc{E>e2yvE zFcK@9jm+|DdcOYn2P=T42~;K$3?TvhD&RAY0UwpQfv-D;0GlY)^YYrrYy0LsqUQz7ouy@P{6{}%gSI;(b7J%kdPv|omjTQ9qU;?WrWmrV$!Ot1@ zy+jQ|Y=Y)fx1DUDpkp9mw{Xm&5!3OL)(2BDZo+d22a#LKL4})pv5FAQ%-##Ys;V>X zl0dn0l02_Xg*t%?-KXJq6KfJsRCq2Mcep13pkjiDkjZ)&$ALEv#z!3yl)||XC^p9# zl|h@$g_n+rW;(z4T%U_@VyG&U!H19T_g`BLBYSGUV%~IHO4Pz;t*d6smxLB_~$C~>f{3t{vU{6lgzv)&GpgQl#>Rt1sSXXum&PU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/loading-balls.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/loading-balls.gif deleted file mode 100755 index c88bb179e8e8fbcf4f775098c5764b1cee0b5c61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5275 zcmZ?wbhEHb)MVgfXk`F_X*+ID-+6oXp1ZU6+?fMJd+*NMdvE@}dkgp9U$Fn)!UOjg z9lXErAdtMb_|Su8haW6G{9yT!hbxahT6OHv>f?{ro_xIa#N%}*A8$JSbn}^~ThBh* za`xHQbI-P)f41Yo^PLx-@45&?FAiUMdgRK}W7nSDx^?T$ojdpM-+%b<;iE^79zTBk z^y$-Q&z?Ph{`|#@7cXDFeEs_Mn>TOXzJ2@d-Mjbi-+%b<;memVU%!6+_U+sE@85s^ z{Q2wGumAu5H#9T=9k2M4g^`QFjzRH1x3h<WrckBe)Nf}4Mkf@?&GSFoOAXo!b@kX5j2kh`m=0?ZUW1|6Uo44_~- z4y1>4Ab~tG3PwYK+z{Y6&rr)DloSVJo?GHYzwa2{C7Hh}gKu?Z(E`^OH=q1K!+fXhhZ7detZ{p5{yw`qd-41DLv6JR8wwJcnps(DR%{4VcH1gc!dDRCA2)A0L$9PVVV8- z;SOQ#x+xwPm0c!@)?S&gvH3W!gh|bm1rHuNvvDeiY%1XlPCq@}F#O+}m7k7si|R%l z(P4ySb`jfICMyD$cr8!r)!e|=EvlWx1I_Gvn?!Ga&AzcE@8++Fh0X3qBsFR@UI;iH zY2#vkc5UzM>Fe&wRItkXy>V{sl`@RlaH9Lbp;k^FF@cOf7N1hiO;CMaD)X!Ox`IHHr7>;8oW&0ye>z)v6Wj`LPz0&^QPnzb0zDy?KW-Y6iEr532vOxe)hxE(x~hu>?7Y-(!f zmsIKTfaLNlU|nwVENF>WuhZ8+CMOmaUYQ9J5zR-tL``=9>+)~eH>M$ zm+u8v;dQmJwmS<_T`n_oWAX_*mH2J2w)=xwhgi6_ntIJw%az)iwN;geMdQOYcLxS* E0AI#*^#A|> diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/right-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/right-btn.gif deleted file mode 100755 index f904fd2e5829301a9be93f8253578b38466d926a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 124 zcmZ?wbhEHb2j(@HmUX^^{!T$sCtCMf<=~{PlZOTc5*@6t#04+==mjD0& diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/shared/warning.gif deleted file mode 100755 index 806d4bc09385a98ef1ac19d25e30a21310964e7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 960 zcmZ?wbhEHb6krfwXlDR{f&hVn2muENhm@owhyM-@5dsqm1SVuCOej#8P@%A(LSO-q zY!KMcp>SY^z=a6{7Zxa7SYhyB1;c|43=ehyk-&!?1`l=wJUAfm;Do@30|Fm_AFI_r#;p+LTS5IEMaRKbDQDQU%2#0{;PZnkd237_gkWx^dVBna` zz|A4!v0=eMCPx*A6NM8NOc1gSve|KQ1H(iiYYu@O7ZQ#gR8*}I_~Dqq(8*@R^@`(W z@)HIIWfz?e!wVeVa#HbKFBUvx;Axbo`SPIg5jz8ey-mRe1I2~|N`gTPEE1a-8hE@l zIU)=NI+%skoc{dSsL0&PpvCnl!Qs*I)AH$&GFuihv|L@Lt98xe!$KzpaZ%Pw4hauj N9~|!BW@BNn1^{&szCZu~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/e-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/e-handle-dark.gif deleted file mode 100755 index 2f865d3267e502d2b6a2cd573bc8c936ae8e2ff3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1060 zcmZ?wbhEHbNm zAo%)+G;_&%ZCP<~vBzYs*i&0pUS1xs*lVuW)>T(mM{Lfz zdur?I>+2H^cgcEhTXS=B#^qJ9r?;)Wy}jV^skz?U*WKM+@p%%jfWraDeRaG{|89q` ze|Wex$>js&(g&)|Jh@V4hrhF3H~qf-&h2}FfP;8`b%lC_eTj&Fjfablk&t3Q!uCcAKtgo`Rq_?!VwYk8*!oI}4#=OY8%B#z&&a=tP($Bin(9PG@ z)zrbo(cHtw*xT9Q-s9ck+Ueir?&R?7=;7`0^z-NI_xkzf>i+fQ@%#5qAV7Qs?e#0T z@8H0I4H+&}m=KsKi4`MKggDV4MvfW(J8JZ}5h2KvCR09C>9FNTmM>SzbXjs{OqwKf zj@&7-XULx@ZPvue6DZ7~H9j=7QM=JtJbJhy@mw~m1T>o}Bn{<-nas$32`n^XJm5`^Ih^x_0E;w@(-Uy?OWS*T;ibZ=QVm^5NIR zXCJ@4{P+01=SQ!z zYR1{7mSb*7CY@)>3Fn+);`yeZdIHMloqZNc=%IEdTIZs94ytIQdqyg#q=r6vR0IG! D$U~Gj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/ne-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/ne-handle-dark.gif deleted file mode 100755 index 03a196831c69d1f0a22ea3979eb5ff3398927fc8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHbgp;eD43g@>*wbe9v&VN65`?E5gZ&G8X6i95C9ZM13C;q s0MhHsA}?^llhaC(!>YwVPPOai1j*!8elsrw9i3Qm+eN_D)0M#*074BP+W-In diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/nw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/nw-handle-dark.gif deleted file mode 100755 index 252635a9614ff3d6fa8f2a854bed4792b276b3bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 841 zcmZ?wbhEHb!Ib=L0 nENEb0gp;eD43g@>*wbe9v&VN65`?E5gZ&G8X6i95Ws)|bU-2? qz0NH10w+9Iay(Q>Y85;b&^x)2S7PP5@C#+mMIs_nA}oT84AuaNm zAo%)+G;_&%ZCP<~vBzYs*i&0pUS1xs*lVuW)>T(mM{Lfz zdur?I>+2H^cgcEhTXS=B#^qJ9r?;)Wy}jV^skz?U*Ii>^WMMe4diwi&d&-!(<$QK* zczC!&SUc{_j*X9xPf+%r=d*Lu)6+AIv+teRx!GwCljDD0*#nzjUS1KrI_~VQt*@_d zFz3F&ov_W}_SVef_s;I#{{H@fW^Q@EJv%-=J~3H4{@k9OpPye?>^M)j$~<`XsWJk>%MR- z&vb3yc&_h!@BhG{a7Zi~kI1BQ$!t1*fT(mzty-_xtai)odcWYXcuX#v&*-#z&2GEj z@VIs;jK6uCK7Mva__cwzs&sy1Tr+zQ4f1!o$SH#>dFX%FE2n&d<=%($mzd1qB8K z*V)_J*wx_S;^XAy=I7|?>g(+7?(gu$sPpvo_V@Vt`uqI-{{H|23LHqVU>gAl6DnND zu%W|;5F<*QNU@^Dix@L%+{m$`$B!VmLy8On41pO#wG= z&fLkfr_Y~2g9;r=w5ZXeNRujEDsq6+r%>)y?~x9{J;gA0rR F06RvU7k2;v diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/se-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/se-handle-dark.gif deleted file mode 100755 index ce72a8a66da5882c9e6d281c96d693dfaf113d23..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHbgp;eD43g@>*wbe9v&VN65`?E5gZ&G8X6i95Ws)|bU-2? rz0NH16D9~9Vz9`Lb-jLcB2UwXxsr`C@nO7E7fx&nTvQ>)$Y2cs$Q>CG diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/square.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/square.gif deleted file mode 100755 index ff4df0ffce9f4369a0006e1566771f44b096d186..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 115 zcmZ?wbhEHbU|4d2;*qZ3YaW z0}=u0b!O2JIN_PPOTznb^>kN_u1N{=(wBNUzTPFIbbhnT9Sc3)n)}}E3j#Pg7#OSp DZhkHq diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle-dark.gif deleted file mode 100755 index e8e13b17e1f57c3a07f0d016ca296df9774c4732..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHbap8djBa@I(Jp>vr#UA+CO9xy0|0)h6)XS% diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/sizer/sw-handle.gif deleted file mode 100755 index 7a90d1b6cb6e6018a10fa588c5c6dc44acc21980..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmZ?wbhEHbgp;eD43g@>*wbe9v&VN65`?E5gZ&G8X6i95Ws)|bU-2? tz0NF(0v-lV8ZBqeF5M8nf%DJ=8Q0}Z4;wQkCx$+9k$SS>T`&uSH2?`28;bw{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-bg.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-bg.png deleted file mode 100755 index c525c7cd808ab814669822a794951eae9328eae3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 928 zcmeAS@N?(olHy`uVBq!ia0vp^>_F_q!3-qVNZQyjFfcO&_=LFr|Nno_?j1+YUfjHX z<>CE1@7}t8;q37<#}BSrvheVcgJ(`0+_QTpP|GM74S``90=!9oLV+G*ED7=pW^j0R zBMr#$^K@|xskn7^!bYwG3IfiPg9Bdtug`AZHm7JO-#I-s=Lf$14AqI}O>=dl4xi#a z$5B|j@v3djUfb^cqH}T&rT>4r*1zQ6*6@9O^Cxqf88fhXa=Sg)zHT8X{5)O#T-G@y GGywn;#8Z0! diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-thumb.png deleted file mode 100755 index 883821b45fcb3ac1151dffeac1a66e01614343ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 799 zcmV+)1K|9LP)-s>o)uNT<_KloU6tr2jF&5@>e>S|`vF)S?MZrBXVQV!1*)BhXUG zOf*BG%A7zI!4hTnbSS${i;}2jS)-GobCRec0#wrowB4SEL^T5aM@laav~9Mh%W4(n zQt6k;#2>1S_R(5@GFhQK6J@hr8%p#F^?J={_{E_S%5&Dw$Jf)J{?NU9M^f9*ZRCt; z4u5Vze|Gjzh9qa?f4Fhl+(7!<8j@EoM5|6j&X@77d>gx;Z3wE16uX_hVdIe~MGm0f ztqvfe;lMIN<>HdjM{n|h4$XQa(PK73FP(IRhDvtGdZMI{@|^Y8`g#iR`g;1C z7fe@znDzy|5r=-BJ@n+_H3cYTKN4qK_*mRTH0Q?t$y0=m*YPI#7_Z_F5jb4MivuTp z))QU^k3^v-s(jfYP#@x|2hqG65ei)+P#1wdfd6oXLVf#pDV8&I3-O|dCaOdCD3m06 zL=uhl6ZJ)SLeGO{=~V{Zprw}+2GmH@%QMjoh3?>!0cCA&k3iXVAhv>S3UzRVR!nGI z-5d*LYt$=B>Eja;^~cy|a&X>EgG5beXl$aKp((cOEu|lZuF^H?i*R0}DYlu46B1>m z=ekBKF9&_pY)}1$FB^T7LA@fZQMQ@r2tBnx;{xFXd_r9R|Np;g$-*ONFW$X% zeb4S4hxhN?ynf}L-8;{mIC%KT!86AXUO0OksAUw4hQP24fu$^kFMu9nED7=pW^j0R zBMr#$^>lFzskoJ#(!k{A=GOM#r(Pm}u`G}+Y{83siT2J$o&zUO96EJ^>G8%1$w&B) z?RVH7_=GFOfmNBKqJ{Uxz54$eMMuy7|Nrmr|K@mJh8}hy;qzNVw}XPu)78&qol`;+ E0P%@Zr~m)} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-v-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/slider/slider-v-thumb.png deleted file mode 100755 index bfadcdc6b48abeba2e260fbc4b961909dd840951..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1219 zcmeAS@N?(olHy`uVBq!ia0vp^xC?M+?>>I~c-yvZH*Vaxa^=dQLx-L}e}44n(Vstme)#a=`t|ECUc9(- z=gz%*_Z~cW@aom8t5>g{I(6#YxpP3Lj)Kt;pl%4HYOQSrn#foZbYc^8NqHKQfZ8u=`H%F?hg~9CTwDOQX?} zrJYriQopP1pS$(-O;(MEOSu%pGi`!DYiRbbid5fx{U-lXlS3>UlZ&TR+SE!HpYDEo zk3;#>xwq%q)4!`(+6PvvvxTflaH+gAsrvEFw~Iv0qZ6xF+<1CL`s{42{8M{hUKc$( z+aRdIKhxMSqAB~ItoF96UwrugyzzY6+q$b>DEmS|eBj0Bk8bCOI5zH@uu3W8)g+zJ zxYM4i?thI~d22QMik{fjwH6+8Q-5VDFVvgsQgYz!jtXhdeJ8hD`ORzn5Pa#f_CXed zPm1}?qHn%5r(BNg`qWVAm$5#*p!V*wMcd+(mzEpoZ+iADL^mZdDI)gxvkaZHof`J; zKMJy?ex2dnzMOFvyVkCAtjsL|4WFIL5BedK;n)}98>yNa=+zYtixap0Cb2B AwEzGB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/spinner/spinner.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/spinner/spinner.gif deleted file mode 100755 index f28196fd7e8484cdf79d826b6af73e0f2f39833e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3422 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroll-left.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroll-left.gif deleted file mode 100755 index 830378ec8381bc8f7ea179d0b40008048baa6a7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1261 zcmZ?wbhEHbRAJC&_|CwPpPye@S?TcKp{uKF%9JTU?zL;zu3x`?i^xj9|GFSKI8+S}U;_%(VQwy(RpTd+f{w^BsY zZ*O&d*N53tS{@$m5S9*Gwd3Q%Njl2jVLujbdU|?>{h6b;Mb{tVmDcO>vt}~MXypxB zop+(MG^^FeHD2XyNMh6N9mTKx78opg-_gMQU3E{eOTx^JwLaqxU7gjzi%(cQn5#;=lkDp3KID7`SpE%C&kwP z3~U+-tX!1|4;mNAu2|qCWb$GGON{M{1x_*r3ek~_F(D7z+$*1k`f+70U~J2nSvs*p zO5@3aF1fO;kGi=M8yGuP<5ZN{xC|FO?&B#q`nZqlX!*iU2qMy&>8|BPb%xL8*S5IVQWUvMRJ0m>L diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroller-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/scroller-bg.gif deleted file mode 100755 index 9e31ddce8bcd475ebac73da92bd0fea2731969c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1081 zcmV-91jhSENk%w1VIu$*0QUd@000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~EC2ui03!ev07nS_09^?jNU)&6g9W{Lb2Sgwzk3iPW{G(3A1-qaDNdwV z5!XC{?;P$^N3vweeHJnP8)?!cN?h**x-*9nm(80vY3jtu(W1A-ucr zoZ^MI^xs~+crDfo>JXjb!&wfa>#I1i;>8{XqNCZ9r`F0j&7u1Wx3lNZWfx{0OFFDN zf$~&>zDOB#N_m7=?wd`!cHi2#XGf*$ke+YfM}O1nD?GSx!Lh?BcbY}H^1jZ)F?YV3 zp+l`ltM;v$U3+9#@*K7v9N%|*ON+2wu~Yq-HG9t&*$E_9y8c#j2=nXD9}oaL`ZN{z diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-left-bg.gif deleted file mode 100755 index e61a9e4f2b2ae2f5e81b0b03fac77395fe313dce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 874 zcmV-w1C{(oNk%w1VFLg$0QUd@000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*viwZ?CVfu&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zd3kwydU|_%d%L^4yu7@Aetv&{f4{%Kz`(%4!NJ19!o$PEg@uL1#l^dCUiHV8H z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~EC2ui00RIq07nQ<0C9m+Cy?O4g1FuhoL7z=Iade|N?fQ;m%DEf4QkAY z5FJHa_0r*rCyv-ZZX743+^DkUMsft%5tR3F9>IF&aLpr^OI|o%>b#Ld_Aej+J7}Y! A4FCWD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-inactive-right-bg.gif deleted file mode 100755 index b264934264f39a21fa0b4bfc4522725015b0ab77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1377 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 A{{R30 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-over-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-btm-over-left-bg.gif deleted file mode 100755 index de8a68eb33a4f237b19c92208b49d7ab89e50116..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 874 zcmZ?wbhEHbWM(jA_|CvkUS9s`)2HXppa1&x>*vp(A3l6|{P^+z|Nq~-dGq@9>)*eB zfByWruCA`4qT<`PZ?9gxs;sQ6sj11$&3*g!ZF6(;*RNlnK7IP*$B*~#-@kbAf?*Vl zhQN>t0UeNQL3zQQ!=HhXgF|7$g9A+rG6FINij9n%9QC>mzuV24?`}W0)7q4EudjJ0Y|NsA=KYw0RQ}guc(>HJ4 z&K5D-@SWx^X5&4Q7{?;Lq7y`Kwbdl1$U1B42&Ey9vc=M zY~~QwiaD`i;o)`xWv@9N8y6kz7L(LDaAM=) z`uh5W!(Fo8+t%FNoN;+o?CEW5Z*MQSuUBwk^SZmcE9@VgIlX=T{r%Pdx#WB*(jFY@ z5Z3-yQL*vy@d=`45e^GBJv}|cIQ!n2otvMZU*Oy==eujm%gZZ*SNriMBtN;nA@b$~<8{AGC=I#Cc zg`}h6*wU+qrR`Z!lBxl02nHkGgKAV-Z?d7xC1;;d>&ndZ<`Fw80vz5>1Rr!e> znBTyr^OovUVng1`^|6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*viwZ?CVfu&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zd3kwydU|_%d%L^4yu7@Aetv&{f4{%Kz`(%4!NJ19!o$PEg@uL1#l^dCUiHV8H z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~EC2ui00RIr07nQs0M-3-C6M62f(7Xf97qn~!G{K2?StqrV#SLC;|;_& h&>zK*7C~YRNpfUCc?0bY%r}tVLT;{Hkz*GS06Xz!mjwU- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-close.gif deleted file mode 100755 index 663022bab44e5e6a00d20344a6b87c7c252ac356..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 893 zcmZ?wbhEHb(vVS%DE8;hceg2TilW)2or1BV9-l$qFsIE*|57NneH5fGG8(I{BZ sGTp$Lucu*w10%bcpo_wf2F7Mahgv&ZoEr;UTn@h)xcm40M(R9qW}N^ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.gif deleted file mode 100755 index 926703a7ea56f7bdb17d4085e95345f03b653762..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 827 zcmZ?wbhEHbWMq(H_|Cv^`}XZSckbN1d-vYGd-w0(fAHYJ!-o$aJ$m%`@#7~?o;-c} z^x3m#&!0bk@#4kHmoHzvdiDDC>o;%SynXxj-Me@1-@pIx;RC}c7!83T8v;5YmxJ;wuOU$!yzUnVFeS9gaigwPC+@7gar%-8=06{7&tf>tO4A+M9TmG diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-bg.png deleted file mode 100755 index b9cbd37ce4c2e06a87a99dbee25213ff37e3832f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 147 zcmeAS@N?(olHy`uVBq!ia0y~yU~>SnxjEQ?q`I@C5s-@Vba4!+xb^lRBO{R4r0{=z fo`(a7Nh!D^AuPqf_(LJB4P=t1tDnm{r-UW|c^wh= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-btm-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tabs/tab-strip-btm-bg.gif deleted file mode 100755 index 64e83a738fcf3107a14782c4ecec4d0e80335291..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 820 zcmV-41IzqJNk%w1VF3Ud0QUd@000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= y{r&#_{{R2~EC2ui0096R07nQJ0Gp9x$Ijb2cG$w9Bgn2pRm60LOo`(Oi-kEk{}9xa5-7WvRnia+#(BFfp0B5u$3CaCaG)JD4*+O28jHmy zCnvL5tl{C|(b3Vdu`xEA&EaskTrQu_7YGDGp>TYBTqF`rOiWBpPEJoxi^XDzL^3lo zBb7>JGMQX1S11&-v$IO2a&B&Jetv#oVL_!*EiNuDEiElCFR!kys?}=X$9@#}pB31m zf`Gm&*?q_NPk2Jr00@Ah>&x0wq1w4at@V_S3qT?-51hHY(lpG(2s zir!ukJ0->4nnN%)4&|i5BdDA-*bNcq!bIAMwoHqnNN$#eLp3+sjyBYG*YTY-kGLt* zq%g;Y(^Qa)l41J89W}N4HJdc|e7WqtNH2-;l3XkC^WC0?kITlR&xaWXXOXXE#}=Q6 z0~r`>O*Fb0DlCqydR(=}=rmhca^;inJwtPBGs4BPOH#oeqiiz$$9xZMhIt&-k zFv{`TEB5KOk|uspwB*&XJ-19iRA-SSwV?UunIM<)0Ib)1b|DtClsJI(R7b(Cc!19Z zNZkwUpEza&I8RDXdoqom2fKZ)L>Hj!i+_5z`=VK4*Ws%~!|tO;AJv`I0MMk^8k$cS z^wj1E!PSlQOJq_ID;UnqkR>%R397eo49n7*QD}?h$dKF2-e$I2yT@9do8ox$SGUfH zm~WJ=v77P-E!Rd-hcfd=8o!;X*hEW;;tkAsVihoyN9ddPb0asn_9V2nQav&cg+Lq@ z*n|yC2}H}HZh=cgT?Wo;yE&-%g@F%oKDyy`D&hV3e_9jQeMA+AajR=xv$8)q|)|gw>L+dpV1mH z3WXr(VMnoG4eN5`%W)70AuHyU6o=UX4FZh+PR2p~H8>L!-7EdJuDUGLOG9RTq0xQb l0K=)LnEABE|AF{##(|NI#~%0jKU5MK&SD!d4hH}S{sWZ>;iCWm diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/bg.gif deleted file mode 100755 index 4fa4aa12e7010a0135e76f145eb64b05d026829e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHbWMZ&j_|Cxa?Af#D&!4||@#5vnm#<#Edj0zKn>TOXzJ2@d-Mjbi-+%b< z;s5{t45MH)1cqq{=z#nM$_wrsRt(}g5(Wnv8d*3+G-4za7#Nv21a#)C04iW)k`vP? hc;MjDrJxy=(;=wr*vrZz^+rN4@x*k4cs3RWYXBTvGVcHY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-arrow-light.gif deleted file mode 100755 index e048a18ab6d3c25b0d6cb033280fb7875e9d808b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 914 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} z(dSa`UVOM}INV}a74b_wIGJ0~_OyD%-TD9jKhS_tFd70wHv|-avM@3*Ff!{@1(KVWpP#Q6x+zA3Va3J89+S21Ml?J>!0gAW e)*+S9=&?{j`ht$u2ga)$A=A5Ly~8pc7_0&K%v_)V diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/btn-over-bg.gif deleted file mode 100755 index b7b12447166e711318e3a07a604e8fedc6ea3642..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 831 zcmZ?wbhEHbWMoKT_|Cv^_}0(kcYdC}|Lgq2UzeZ!zW(g@?U%przy9<1-JjZT)3A+8_h|Pj Q-Y&B}$T4ePI0J(<029j+3jhEB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/toolbar/tb-bg.gif deleted file mode 100755 index 756a4bf1f28835ef14397ea2575cd4b4cee35ee9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 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 Qm33ob@#}kY%@i1{0lnY42mk;8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-add.gif deleted file mode 100755 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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~c~334oIij5|Ns9CqhK@yhFS=VTXXjp>_!!i-ZjhjBP9&d=d&P1P-@w z2*?REbZj`-z{teJvFE@96*ex`7^N1;;s=LXIk{il(fr(WZkkH%E}e=3)qp;}RJS=1 ZACr#t%8J+VSOzWgoT4>ViN zU%dGJ;lrOVU;h61@&EsShEXsY0)sdN6o0Y+UH6|s2joUjo?zgZ#9+@MbEA=|m5*7N zuP1?_;V=Wcmd2kAjEoFSyb3l63JeWQEzG)l4<-aOJF{^!n#_11;LyO$#4EyJxnXG= zBd1*n!vlvz??xWBngt9APKV|*$upc#SeW74&N(&d!GU0fOO1}n=k{oQNISc~334!T+I5ReJa7x*DTyS#YWmWQ8@*yChwS&o6 zrsT(mM-FYgx*h@@4;QobG08Hm@c7Wg%*HKZQ}Uv~iG_ooBg3QNK|^B;FB^}5K!V!o j#pc~334eSRT}sa)VS__s8w&@Y zgu;q|!z~;Fasmw<8xA%wGBG*Ccx+O2Y*vXZDtTe_=t!5iao(F9ACgZ@)bm{w(wUgh k*e9SZBf7&RvvH|ppWc*{Usi^4=^EOswG7BU)WBd303hyMjsO4v diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-yes.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/drop-yes.gif deleted file mode 100755 index 8aacb307e89d690f46853e01f5c4726bd5d94e31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1016 zcmZ?wbhEHb6krfwXlGzhFH%vfSJo_7)vQuAsWC9EH&km;*6LR^?KiYxFJMjooS=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$9FpHgxLc|Npmd-#&QoVD;+Nix)5c^y$-Lk+%)6#tp3e=bwtN~-tK1cun diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-minus.gif deleted file mode 100755 index 585051376cf71dfb82cf109d88c2857168dbd913..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmZ?wbhEHb6krfy*v!Y^>gxLc|Npmd-#&QoVD;+NTefWZ^y$;$#fz6NU3&QN;a$6S z9XodH#EBDEu3TXN1I3>#j0_BX3_2hl$P5M+_X{UISI>R@s@C}bRfisqBAJt}EIQd7 z4Y%0zg`-z%^PGxRWNZkyQCy+Mek<>S#t)75>kTIh;`o}_oC9Cjsdp~4VAYy^egOxA FH2|ztLX`jj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus-nl.gif deleted file mode 100755 index 752b42a3c74c39538bfca4c94afa9bb09de0befe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmZ?wbhEHb6krfy*v!k|>gxLc|NqsiSHFGxcJboHTefVuc=6)hyLUf*`m}4;uBA(t z9zJ~d=+UDLFrfI8g^_`Qmq7<405XGt#bv`u&((V^UY~s}xL}dMks?mVSxU?Ws~EC( zh|OX;Jn_O*AqIyB@0>U`Ft9r}x+`wrV_;79l<^R5)hXV@QRO>#L&cm<1_o;YyTv@k diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end-plus.gif deleted file mode 100755 index ff126359d396ef5e5c9a9bcec2bdfba4dc084a52..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 156 zcmZ?wbhEHb6krfy*v!Y^>gxLc|NqsiSHFGxcFUG6ix)4xc=6)hyLUf*`gH8rv879w z?%K8M@ZrNpj~-#j0_BX3_2hl$P5M+&kH9#SI>R_+n`@+35kRg#?Ga*TYf<38@R-i3PC&`z~@ed-ye;dtsu% H#9$2o_3uG@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-end.gif deleted file mode 100755 index f24ddee799ccebea4dfe60fd65a5703a6a59d44f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 844 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQCG#MBA01UeuBlqVQCv>6yVWIQ%3 sIM~R@rxjCSpm?~QTh?igM}U%RmzciOnH3WikN0ueH<|n}RA8_M07ViGB>(^b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus-nl.gif deleted file mode 100755 index 928779e92361aaebfe9446b236d95cb64256e443..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$lae%R5x_+pfh=9;jCRWxkA&~=x h2Yp#A(~SZe4mdO}wqloSIC&-M@bZAgN<174)&TX)MQs28 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow-minus.gif deleted file mode 100755 index 97dcc7110f13c3cfb72a66a9891e8ab3ccef4a98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 908 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$``4~=2xoOmJxRJ?YUCe?7 s4c<*mc6tvw4?K5duiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$y4*XmR1y>vzmpih{E$}o|KC;?;W0q*gYXG$^NPhqT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/elbow.gif deleted file mode 100755 index b8f42083895bb98276f01a5d0e33debddb3ccf1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQC^cfgAWIQ%3 wIM~R@rxjCSpm?~QTh?igM}U%R7pF1PhKh>{$NPBfn?f{-mK<+pWMr@g0DWQ)HUIzs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder-open.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder-open.gif deleted file mode 100755 index 56ba737bcc7734693d7ddb2f50c8f3235fceacee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 956 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2ILfEiU9P24$!>3v-_@?Pw@dZdEXiZDqz?6KotSEHa+=}k8OCR3nw(sqcz%)E z^&Jkk_UAm>?EL6pz~8F{|8JLmcvAKMN&S?id*>|OyM6oiIctwC-Fj{1-dlT*9ou>8 z$^Yvu|6jNKf8Y82L+Ae=lmGvp`Tzf%|NoaBIdbIa(W7V2p1pYS;<0P5Z#?|?{QdXW zpa1{*{pbJx{|uvGGz2IP0mYvz%nS^S3_2i_KzV|JV1OfBquQXEGvI4}0>6q3BdQLvD`XSzZ1sfd8&rn9pxa_cf0 z8;-R|sQDgyVbIvhINu@p(3Fo!OdU)nOn*uow`yILl(G@%_!WGtV|{}AnFkvZ9YR(b rI<1IZ9mc}SXv*Rj;4nR}iJ6T{KqBGLF$ZZACT_Vm-ya@qV6X-NkKMK> diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/folder.gif deleted file mode 100755 index 20412f7c1ba83b82dc3421b211db2f2e93f08bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 952 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2IRjFD>R>Udq3sOkj1T z@R}--bv0re>LfNdN^fnF-QFU)=hNov3pP6ZL zdwbCB?S=oZs*|No!)|Nor- z|92fYaNzXm(`U|{xqSKZwQJXoU3-1w;m7CizrX(c9|#ym!DtB3CIl3JvM@6+Ff!^t&H2GZdv-WZP}~tRj*oB|LorIYr@vw({}!uwfFDhO(&LbJ2U^lzeR`sUwH800T8|T z00#d*{P_PLi2nZvyK9sf4FQ^mfZ|UUW(Ec>1|5)1pgh6A(Z?XlA>*-O!NF!$M-7&b z2M@Kd^GWGABrIrf5YP;mqG0Ic!oef1<ENsed*j@4Yk?RR_1qN#Xfm)wA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/tree/loading.gif deleted file mode 100755 index 1714f1632e73c425969bfba2d6430c8ee2217764..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=CIFBNqb?gW`W~XAf7ukYN8XLp=j#MxeanKO1*fKi43~5LXukr$~hm z4_9AT1*cF?9~ajk1vmd71=olWuV6jL&=3#*Agf^4Aa_?!1(+#%3_2h?K+bYz@tbh+ zWY5CSFPfMC>Qdoganya`Bzn}qfa8!#Nz+81gjfw$2H8{TUk_bqniRp~c`) zyJi~Lo@^6lX*KaV7I3I2Fw0EI$I@GQ`dkhMn5&Vj@Bv!EvT*Yh!w)eJlw_YcvbuRG z>KszxTzrO$jbUo(%E;%ni#Sgk|MpBUP_{Id1AgsYEWI_hf{S8Q?ZPXqWF!7$m^b&vR?yP zoYDG9v&Vb001Kp z5h)oOFaQ8I0021w0Y3o&E-fxEFEBACCN(uSJUcx_0Rc|{08I)CQ~&^5003P90ZlnN zZ2HgaR#tRYR&iNbdS75? zU|?otXJ=+;Yin(FU|@V`YIb#ZeSCg?et>}h0EGYmiU0tO0055<5Rm`?kOl^o005Z) z0GmN+?~005%|1f>7~rUeD5005~41+4%8tpx?M0RglK2)Y6SybBAy92~17B(5YS zt0^g|FE6h$GP@!ovpPDDN=%4PP>)+%g=J@gYio~fZHaSpjd*yLX=#~kY?O0znsITT ze0->1U$sL+wn#|6N=l(?ZKHd8zjAWJ0s_Pf3(Ero%L)p|939OP64C(y(FzLN0RhLMcRH8%DjAoeXS{Ujv)EG+gtJ^wQ^{W?3v zNJh*-LCQ@{#8XqnUth>oR?f~+Utj)HQ~z6A@Lyo#VPouQYVB}x>v?Q{t%gd(L*0R{xyxG~vlatYag2Jb&>V$^kk(2*{ zf&Yw*|C5vdnwsaLq~@lni75b z|Ns8}{@~x^A^8LW00930EC2ui03ZM$000R70RIUbNDv$>R;N^%GKK1uH+KXhN+gI) zQmI(8v}vO?E0!usk6NLdNb;LSjN7_}3)gKMEm^BfQ9=}oWJFkzOv$3fZRN_A+GfF& z32BcxoBv$pj74i3x2G;S3XK)B)FeoEmXWL#snn`jv}gsDrLa^fQ>tQ`viiu;6mb&4 zIih50RjgR4R9RKTR}rL1lO$0B9ElMiAmt)9>blUBj4Y5687efWvLQo=T3ms|nUS42 zGT05w#%K~HN|L}(qt>OeA3m=K#Zlp_nV3Y10NJUdgV?}Dj3P~n6lR(~fAPA&<^wy< z3SY;ip*i$tjvF;7)cwO(hY@E;pU(dEJAMvK96x^EuyA(#I4D2W)wt>4TNE8YjvOf} zG)mrhfAgFX#~WKj)1E)1@X?1HY^b3I4=}g`${ckFf(Rmn_^}B+|J5T5Fy|aN${TUW z0S6mQFhRr!;UgPsq@e^7N-V$&6Kb%bq#Sa*Vdfi^>~mm0dsJzqm1!)YL=j6Upi2{A zuE7S7XQmMhKT=kc#-N0zk;D-~AfZ4mcqp-i8dkz#<`P*@Bc(t0{IW!$Ngy$V5I-1@ zizZxdisc(i!~o5u$IbJ_rv6JTkwg(c{D4CNyI4a65=m^j#u6#8*Ipi;`17AUTJ(BE z5kdIy0|yB7l8z8W9HFeL2U?Ou5|`ZbpQ}X_F@z60{NTU@$Nckz5JFhX#WM$9V(qqN zczc{Zzy$F_4?N^RzzK;Blf(}}6cGhE|5-BcwnvOnPkU1IumcV|U{F8}13B@74?zS0 z#dwzlam2`nic7|EPvkH$4mJotfiVMJGlaxG_)rEWKMWD>&Oe?)03;wIQ58SrAhy#rm+eCjRSRuH))@dW!7dZ& zW5o_u2R%03bq^haWeql1000EIv_ld+Sb#9`4TvW`^x8Ju-~j^zOmNFONd2>m2p`;_ zHs5>m&A|f!9AH8(f>-{JI5cc`2#jD0Go}*+k21NqFv0{8KoG$M PBfNl1GVhQS5C8x>^BLCH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-info.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-info.gif deleted file mode 100755 index 58281c3067b309779f5cf949a7196170c8ca97b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VITk?0QUd@002Ay07w84PX`%A3LHrS9ajJYWB>?a019mY3w!_= zeheW`4kS_$BTNt{R2C>w87x&AE?6EhTN5*F88u@cHent&Zy_^VB{*RwJ!T<2Ybrfu zEanAeNJ0@02_k<8;bxSjRY)#049Cl8e5Y1_tY3bkWN(XQaEfVlk7;?7 zZF!SzdY5*8mt2auc!8LDgq&lBt7(C!V~et7k-lw{yKsuMageiql(2i8y-tSTQHA4U zhskM;!F86%bDF?tGlSHx~QzWsjj`Ou)c+z$A_QDf}_NMrOt$@%8RPR zi>%9lsM?CJ)Qqyzkfy4!pytE%CW@Nu*TlB$=|re)xF5pzRlaC#O0*M=&Huzs>kT8$>*ZV^`Xr3 zq{{ZD&GV%F^A_)Y{V6-P_#W#@Xx7+U3jK?!?;j!ruDO*W%II z<s1(&F;b=Ka&^{@UjA-Rbn(?f%pA|J?Ea z-}(RG-{a%sWQF}}=T6!l(LfBVqwLzTzdz--gr zA>~JRUspdjz=SD#uW#3T=*1z15PotP*O<}1TXI=rW8fk~GqY79KP}1YrcVGlvzs zDl$nW+ZJ<7GW-rh3M7OOB8UkZSwRrC?KL;(Q+JJH=Ywg3PC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-question.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-question.gif deleted file mode 100755 index 08abd82ae86c9457172c7a4fdbc527641cf28e48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1607 zcmV-N2Dtf0Nk%w1VITk?0QUd@02fyP7F_@vT>uhh032%o9CQF5e-A8e03mY#BzglW zcL_0l6g7B5MoUafO-xQwNKjc)QdCG)VMGais%VD1YKp&Yk+f=&xOI)E zaEiQim9}=7y?K_jd6&3+oV;3t&|-(kYnQ@tj>UPC!+4gSZh?S#&mcD?Rw3D8!n4hVIpuCNxypy7?lBc|sslAz{ zv!1E8nykH`pQ59qrl_Z?tE#T5tFf-Ly0EXZv$D0gx4OH!y?~j^f}_NSpv#4+%#5bO zjit(rsl|+~%!H%Tg{shuuF;CD-i))_m#xK;uF0IQ!Je+okgwa9u*sgY$DOs#l(p29 zwb+%o+nKY|oV(kBuJ?(u=#RDcm$&DYyyKX=;G(m`qqxkgwZo{l%AmW~pu5Wy1~n_!_~3H*|^2hyUEtQ&D)~F!=r_S`L&GoF&_N~(Sv&!PL&+@j??Yq$Bv(odm+WouL^Ss^uzv2JK z#>vRX%gf5m#L3db&e_e*)63J`)6&(_)!NwC+uGXR!PV)++V9BJ>B`#d#N777-1y4d z^3d1g(%a?H-|XGp;>6+p%jEve=>OE=@803%+~e!f;quVt`_t+E+2!%y==0m`{@(Hb z;NRop*MI`>g(&|>+<34{Oa!Wf0xe!3Pge_@yBbqQDAy z^yqLDY^(Y`Bgb#Yy&t*SHt<)MmubQE= zM_%4K|K!o54GAF7UTBq*Ob!?g0o7_ijR4L$#5Cl7WQu5*Y1Gi(Bmg6D)2&N<*T z_(l=0(9+Fy7{;fLf+vi?iGtvWSYtTY0MiN@9f&f^H7LmFMINyXBrZBDyqCps^d=g7F3EF65lHnZVrI>UYlglJe zU~oq>afkv8HsRE$YQu zh#-bkqRKD4cwz`3RWxA(1Qnd&3}YuvgUT2`;GhH*Q&3SwBCD*Dh!i~7&_D!W@DWW; z1F;hgDs>bA#0Ei30Z1pS2x5T)7=Y0SG)EyV5IfR9lMEkstO3X(t9(I08OcCnvDYWD z6Ol7qAd-p~6!7sjC){4MV~P`tbU^{7d>1~=99ZDpN7scTEv^xRGv0Vk((EBd#a;&l F06QAMRrde@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/icon-warning.gif deleted file mode 100755 index 27ff98b4f787f776e24227da0227bc781e3b11e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1483 zcmXAoYc$k(9LB%H%(yfgGuR9b<4z3ocd29*O43CNd(`UWmQ=H)a>`a4DYpzOx}c(x zSlvdcWJ?+unZaR-H7>b~v1S^TyJ_?Ptx;{_9t|N0Ki69nENoJ2v3`>&g|W8&busa_So7*+dD)$ zvLc<>kt@t%F{f~h9qzG`vt^ZG;7|7JumJBhJ9Y+8Lf4suZE^fH#5_9C`L|tWUS6U8 z{=uOE0fBzowgqiH9`W<?y6`^?T9Sbi>kIro^$r3_Y4hFwk)R(#Q}G+VFY!jG?tX{A@K zA7Ak-yF;xiAyhqNys9yLRL-ovzEyCSA}UpDxeZO_LcSl+NfU}@28A3*bVbNWrHA>fZ4D_larvD z0o4={9|wFI(DV=ZJRp1#nxdfzI{Lyuvvho356v%?4p|^%j&Mta>}F3~{K0|F!GZpTzVLoC6_EgdgTr?dzB>V$ILvD;-4MrIlR(m27G@h~>JlYZ zVAt|_ro3YUVh;qD&xzwC(+MYO@wD@Y_NS8}VxR3300jn*@X<;}{z{$rL zTQ1Ygt3r~JNZK6NqxROCFAF5#=}AsXB5Gp!SiKu3HLoB=^T~;XI#AbK!S$~9M1UFk{5%nyiu}%*CZiIbNf<7_U*)eK2jmJEb7FxOYX=;RObGwm=_w(}-X91Z& zqYL6B`%{}cDrkMSM*JWx2`jXogS!VNpUr25HWVJ_hwMpzlk(}y+|3YZ)%_6gfm?u*PI1fu~NtNN%<%o?1bnQ|HcP z+A{@eE%wEmbNMT^8Mo3bU$&{4r}IL6UfVqFo%2t*Tz4deYD9aVZE~6`7TH{nSG#4; z<6vfan`>!V4h5%@)!a#Ahc&Ef--@I2iU;@wEYEC-zjIsI(0PM(`f?qQqf=C&8Tb?#p4A}3P=ZzHb8 zU%2?008r{GmdfTSw5X-f*JnevxfSlSM{Cc=no(Hy6^Zi{dugQHUH~t06Bw zQt4307HjGF&8-z0AF;fZZq8-%?^|4nr#0y83LDz+toN8`gZZg2p9Yd5@bP-%L)8(V zUmmP8OS8yf(llyk`BV+l3sY@pR^S)K>*+DB$}jc0e)m$1w?{Mi5Ahq5K8vj4mE(=f iL}jwpve+-)v>A%!R(IJo>4b>g=c*^uYzOYHhx1sj_)>T@<3AfEk&&_0by(=sBy4rzFI=4)EIR%_9Y|Hg+ zsGPU;eYJ4HEH&BV7g;3Q7?)pS__*TxJ(iB?N7R diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners.png deleted file mode 100755 index 1679e5cab2bddf1eebe45c5e9e5b97ce30d8e51e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 240 zcmeAS@N?(olHy`uVBq!ia0vp^Yzz#HIvhZf;X%)#H9%^+r;B4q#jUqDcXKs62si}( z_YUgfP*SoJ3>3^ga(~`^4~ceO=SfyqV|QG=8E${Ea-P5LubAtlo!_=9dJ0_>nZ0bH z`Lax{g$1A5bWR^BmuXL&_x#cA?{^nyaDB|Zofa@{>5prrrYlx?)tufWaivsuU*$aB zTiZnMTlBHj-tW$rU}L`f@b#{93A5BbzAQC=k!<%D=q5~1-)Nxx$I_za$VSH*9luJ> Z{A7|lU{JH}nR^OIt*5J>%Q~loCICxIUqt`_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners_ie6.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/tp/window/right-corners_ie6.png deleted file mode 100755 index 6e6e82e7694cc7f6bd601da361b6839fb65fc419..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 241 zcmeAS@N?(olHy`uVBq!ia0vp^Yzz#HIvhZf;X%)#H9%^Ir;B4q#jUqDcXKrd@H9O9 z945PDafgD^BT+%oi>@{Q4OQ7Py{yZBwb%bD(yKmHD6^YSszMU}w!% zsjRhEE<`PEyJv0MW4I#moF{L#Zq|+JU}LFXx5XDTOpvJ`$IoB<_qy!|b_(Sv(Igmg;p|d@;iWnfh`3{KbE-+kP-U(g-Pbzq=dc O00vK2KbLh*2~7Yh`$1m- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/bg-center.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/bg-center.gif deleted file mode 100644 index 7bf4a4b41d57c4889b8551cbeef72cd4d432e24e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 865 zcmZ?wbhEHbWMtUD($2u3udi=oW8>=T>f__%@9)nr3PwXc;Nalv>l+dlnU*2LQ79iGl)DDv*T_w8u`nrUjU3a~{y^h$NdU%=bYO%Gqw-wwx73=-| zZOrb{$Itez7GHmVU&BwXd)`0ZCme2NR<~OtvGMV-36kD%K0iOEoSv$jzHg1>=I7@Y zSa#p@`Sm&D@>1vJc59`!zP`30@^qZ<@2@$xwc;Nalv>l+dlnU*2LQ79iGl)DDv*T_w8u`nrUjU3a~{y^h$NdU%=bYO%Gqw-wwx73=-| zZOrb{$Itez7GHmVU&BwXd)`0ZCme2NR<~OtvGMV-36kD%K0iOEoSv$jzHg1>=I7@Y zSa#p@`Sm&D@>1vJc59`!zP`30@^qZ<@2@$xwC>mi#>VpU^3c%G z*x1;Lii(nwlE}!&va+)3>gr#=ekCO(J$drP-Q7JuKR-S`-rnB6y}iAusj0rczPPy9 z$jInF5HK)UTU#^G5-9#;VPs&CXV3vz0`e0BTlE3|bPpXN`vvW3Cv&po6fUT3Tp6|Y zipKGSFRS+6$yi{pP(v+)H8qICg}=M8HEH5y_HJj9fS23?f*ee>q72m%9TL1kyqywl z3Os=d;&K9V;*%#SFa=JXIX`f&f>@x)%y}Y#OBLAM*0Tk&taoEclH9R#mt>yDC>mi#>VpU^3c%G z*x1;Lii(nwlE}!&va+)3>gr#=ekCO(J$drP-Q7JuKR-S`-rnB6y}iAusj0rczPPy9 z$jInF5HK)UTU#^G5-9#;VPs&CXV3vz0`e0BTh;;pbPpXN`vvW3Cv&po6fUT3Tp6|Y zipKGcZ>@IR%~)WdIQ!&Nhc6o>w%pJCuE@3G#`_;!4Sg?v|Cgv%;0a`FYiA2=QD6$> r=%2t5*sCBGIDJOoGzB)dd7TO@^W0dHB$uyPDVgOlbDe^`BZD;ne9vIC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/dlg-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/dlg-bg.gif deleted file mode 100644 index 1a466633d70ca1475db2c11061d37911e3b7205c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27857 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/e-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/e-handle.gif deleted file mode 100644 index 48877e748d8fd70185e08c4847b16c932d653664..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 995 zcmZ?wbhEHbWM#O(-p&95YgWws|NlRjIZBL%z{m;##h)z9ARp_12vDA2;5fj*$RXpg zVZp&>4q>gB6B`yDZWmDYn&Yu?(a~-Rdwi{%g@huXy%gj+Op!}VvosMv8T4Iyu3VMvDaL$t*frCj@X=a z_te(a*ViW;?uwOCIB;MS6C0OD_J%h%8FCoc*uDr;h}v4nd5yIo{K1`#4b0qfK07u% yJlr9y9d~BO#>dAeD0|QI*}3WI=^4h^_s;Cx{QUd^=WaRQU0YsWp32O`U=09jY;5ZQ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/expand.gif deleted file mode 100644 index 5b4b0d1e950e34f602f5227eb7e0fa9d707953b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 351 zcmZ?wbhEHbC>mi#>VpU^3c%G z*x1;Lii(nwlE}!&va+)3>gr#=ekCO(J$drP-Q7JuKR-S`-rnB6y}iAusj0rczPPy9 z$jInF5HK)UTU#^G5-9#;VPs&CXV3vz0`e0BTg?IgbPpXN`vvW3Cv&po6fUT3Tp6|Y zipKGWFRS+Q`I!WK2soF)wMd{tPORgo!@ddCV(l6WnpXVyFDfL;P$eNJ(a|ZvAKEV*;nZpmDaDF-IY IJ2F@U0DGff6aWAK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/hd-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/hd-sprite.gif deleted file mode 100644 index 3c2dd632dd60f2fbd55ca74969053abcb40a0b89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 462 zcmZ?wbhEHbWM-&lxT?fpXlNc46>n&0rmn87t*x)GZ=$BAZDeGTpI@S_ZJ?^EnV6WC zk&zP{o0OH6UsO~c78b3ksjH@@rK@XXVq%q&l9`)ZWNKLk$fb0|QfU z?*KhLV=XN`V`EDrBlG|N|1;1ADE?$&WMEKY&;c0_@)HBw>jMEEEhk&#`URK-H$^z{ zxpy4o2-RA6ROw1a3sa*2i_oi*Q_oMUx-4vQSWy0_K!A&}VS=ctgMQ1axHDb z!irK--MyTgiYzRO^72!s3koVqOV63d%&f@9rYIz&$i?McCMn_W>Fw(u7#tcN866v+ zn4GacD<`j@NU@|$v7)M`u0gS>{bFa|l?jukOq-!NYyRDZi#*yhe_i^SKbLiK1vBI ZAG7-kT6NwL$YRiBUaqntNPvaG8UP8Kc8&l5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/s-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/basic-dialog/s-handle.gif deleted file mode 100644 index c13c9cdc0561773f3684528ca64dc6286eeda5b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 992 zcmZ?wbhEHbyui-N(9Qq?YgWws|NlRjIZBL%z{m;##h)z9ARp_12vDA2;MmK+$RXpg zVZp&>4q>gB6B`yDZWmDYn&Yu?(a~-Rdwi{%g@huXy%gj+Op!}VvosMv8PJX8yJ}8yR~vTWL;hzu{rDR zsjaK8uTMDKCF{Ly&CSgjmsiD}{=Bkb72~~Kt-q(Oy}P^O^Q*h3x39myzk!)s&S%Gl v#Fh~h2?h>6 U21X7E0S5)gW>$7K4h{xu0Q^P?w*UYD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/gradient-bg.gif deleted file mode 100644 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-split.gif deleted file mode 100644 index c76a16e95997a487ee9cd1675ecdd99bd2f37c17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 817 zcmZ?wbhEHbWMbfDXlGzpvts7||Nj|A!DtAK$PiHc$pZBEe+C_p??HKjfrF2Mkww6x PV8OvA4t_Qc4hCxg>zoX) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-vista-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/grid/grid-vista-hd.gif deleted file mode 100644 index d0972638e8305d32d4a2419b3dd317f3c8fd3fe2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJe){5xGZ#;uy>#l_<(QpFT5;g3%Bd$|0cmlLhGf{|q`H nPk{0S1BVoYrq2Wc#zV~Pyb=r?3JDC2Ol*7#9t#p29T=`0w!X<41;3Fd70QG6WQVvM_@@t^*=Kd4hpMoq>@<#$&^R ngUt*~JRuPV49@Mm@`0w!X<41;3Fd70QG6WQVvM_=?t^*=Kd4hpMoq>@<#$&^R ngH4QVY9mEVcn)kx zWMC9f}-qT zS9f*_H=dvG(9GpJVZn-vi#;Z5#qJ7eyu3VMvDaL$tyx!CBQ|H0F7?R<|;&Gp{C?(S~>Pfj;ZZ(o0Ze*-hOoKHkS%i#`T?J%8%8y_E^ zpzJ-*Vdti&r)L;v-#fF@xb^%3`)~>0U0YsWUJ<-nEqCG8*Vi{BpPuI{{jK%(j{M{s zXLoOZfB!%;x4fTC^T)?0CTqv9Te$P{^9u{}XZY>i_4W0Q&DrN4;om+G9EN?s6{N`;4ypg zpjp68V_}PONXElfi8Ko)PMNY758D;mB$7B)re!?p)L6FSQJ2oTj6>Z9$21;unq13x y+-tsQ!Q(!gZ!aGAJFsa!nc%`V^Uy^1RSTX>(pvN2$>abx&8JgB!X#527_0%M<4zp_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-collapse.gif deleted file mode 100644 index f2ad235dad390e71a096e2e943ade1f22c1de113..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb`0w!X<41;3Fd70QG6WQVvM_@@t^*=Kd4hpMoq>@<#$&?* n$7V)8E}jD)5)QYqC^Aiu2z=<$#VoJZv*Y8Uqy4PRObpfl%OVxB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/ns-expand.gif deleted file mode 100644 index 0817ec66fd410022c495adacc4855a4cc548ce0f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHb`0w!X<41;3Fd70QG6WQVvM_=?t^*=Kd4hpMgMpDl#$&^R ogN=+#3Lzc_iVW>+!bUb08y~uKaLb3q?AZA5V7~%88w-Oq0L1MSzyJUM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-close.gif deleted file mode 100644 index 4e96481a1fdb16a6f332ae06e138f15ac24fcc03..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWM^P!XlGzZj0<)6@9^Z&RfbV88UiCP1QdU=Ff%YPGU$N34$2b@98wI7 f92^b-4GxWrJbWP?8xjt;u!}3DSX@YSV6X-NNAwV) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-title-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/panel-title-bg.gif deleted file mode 100644 index 681f517a3c2e78c59a0a066e72c9d98c89bd5798..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 888 zcmcJOT}V@57{{M|>C|cSy*dzr-6X~>bt5B8-OE?rwTx5*riBXgoz#9DzP zf_73c5Wmu@^K&s0wVo7-u6twKw`k<)WUe1B%Jm>kn&;S4MzJtR9 zc1K788dw2fm~Ov+l3}{kYMQ1^CX-dAqFL6?^C_A(cXnz+q3Kv`HW-|W$N6M((dRp* z)f!YPox#9btv!**Od^rA*?L!3H%3Rt^m<04(VNXSr*p(;wCHq3i^ajR-TV9d@PC%j z;31yZV(1{Q5`b9f&sFvyr<4)r95y5_F87`i8s^sD6oo!s=$ituoOsj3J1#VwsIp#t zm332pvc(#k`xm=Sym^4EPKdMWC?-j@*h`S-U+>DN*J#c&u0_Z3T z@f3suFuwq24KT9=(Ey~%rUDQ1Nmz*1ei8TDPqUJ6J%#bto2YHJYKUSU&3 z<>fY35_b^=2(r>{o+6&Bf@~DWCCCyuuG-U4*6pDYbd6%t)D0{qBWJ1^#l_<v?3yLtEet$R0a-@ke1!L7RwZ{K@#|Iw3&Po6z~_Tt%#S1(?@dG+S)n|JTu zfB5+E)924$zJC4o{l|}=45MH)1O|5qDE?#tI`BV(4#=6HJi)-B&0t&dV1uJG8;`h7 m$N~dK2L?uF4iSR_21h1VZV8iu4-8H$oC?leGL}XP4AuY#5nmwy diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/stick.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/stick.gif deleted file mode 100644 index 7db68eec95fc77cce1fc4560a257dd0fef64c200..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 872 zcmZ?wbhEHbgwvrlP4cMco57R!o#gWSa7h}g-^(5MS#M@b^&=k d6N!%t8@eSVt=4E1Dje_QlWr4PX`sMh4FDiwBDw$o diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/tab-close-on.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/layout/tab-close-on.gif deleted file mode 100644 index 556e905b11cddb4abcacaf2160ff811ec47a894d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 880 zcmV-$1CRViNk%w1VG95Y0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui01E&M000P00DlP_NKl}>g9s4{d`IWkyNACTy%X5( zSCwBCFIN1ePMyV%9R;2n`Eleqf#u45yqHp;xQ{O{zWfEQ5lwL5BIf+nt*1|)1%v(y G2mm|n+a1fq{uZ2jn48o?zh6WMJix@z}87 pU?UF~kIsPx1?N_NZabd}gGC2BxnzU3XiQk-(8liE#lyj14FHlE< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/qtip/bg.gif deleted file mode 100644 index 5c0e8c92a810d244a29f21f467b90f5d61fdf0ec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 zcmV+b1poU-Nk%w1VF>_E0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui00{t2000Qx0RIUbI8dFzg9q0sT*$EDLUs@%Mr=p1 zVnuftGiuzJ@twzyAK{4{NwTC#lkrljR4K2e%a<@+&YMZIrcIjka_ZDsucyzSKz-U9 zO0=j^qW6+2UCLA`zNb*3=8GCNpVg~Z^=aM8wd>Y>V8e+p>=mnFs)!ReUCi{TW1~SM1Kmmare&KkGs9fT`K0I1 u@IZ?8$gwm=i>NC~T;$%+c3wNW3C)a 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 E0I-oB(f|Me diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/s.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle-dark.gif deleted file mode 100644 index eac9662eade56ad43732ddff31ebe463871c445e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmZ?wbhEHb4q>gB6B`yDZWmDYn&Yu?(a~-Rdwi{%g@huXy%gj+Op!}VvosMv8T4Iyu3VMvDaL$t*frCj@X=a z_te(a*ViW;?vnN1w&v#MjLWNHPj6d$dwap-Q**tyue-au;`6J!r?;=azrTT*Th3?4 zhKGkcgtg<&>_~55;E?Bb&`2;ka(p6lgjs~8(zE7Cn)zivZYI2Fo-4gN?(D9uudi=N zK0VKO_qMmUcND+AcXs#o_xBGpbIbef+41r5iOJgW=l1OU{QSaV@A-avcYS?*V{`WX Tb9;AxfB)ccH}iKX0S0RTywIF? diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/e-handle.gif deleted file mode 100644 index f2c9f538243ecbc0364b1afd7287248ce8f2c513..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VG01y2ZsOv000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui015!m2LK5F0M(fb#|@jog8~U2L^!bELTm{gE{ymP zV#A6QA7-3*QDaAr3O$AdDUsnwlO+vqM2YbuOOYupo>b|Q=1iF}SK7>36KBhtI(@?Y z$rEVLph%A@HOjQ8Q=(9ZN+lVU>eQE3vtr%4vnp4iTDx8q8y4)>q)ok&J-hVjShH*6 z!kvrOZP~hN>9);__if+1d;JCmoK|pQ!gkpnR-9PwU&ed~LpI!4?_$T2F<-V^`LX8C znK?(^>{&GB(V$6(F3oziYt^t*%SKK6v~9$-ao?V-yEpIOpK}8@?K}8xffOkEo#kl2fezwDeD{e#JT~D!6iVD@GL|q$@_W+S)5Z!KyT@ zM#XyctE-hlD=MbZvRW;*(|Wopwy3_!t+d@UzWn0r@4W!SD{#Hv+B>kp1gm>+!3-;$@Vp2|+%Uuw@B8n<4ojSI#r+2S zu*Dv0O!3Afk8Co?7@yp6$|!%lvdb6495Tl-i`=r!FXLP@%`=yLGtVsN47AKa@9eYC zM;ooO(myBN^U_Z@4Rz5`BRw_ISnFIh(^gCEb=P2XE%w%AQ*CzELu-Au+GsnycG_^e k-S*XN*Bv+AcYi(h+j83v-FMz$mp!-Mg8PlPrvU)~JKnY_G5`Po diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle-dark.gif deleted file mode 100644 index c9c041c45f673735de9f54f7967eddec62cde469..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb#gW lSa7hJgPTi$AwlsV10#z=iiLm@LpO)4)SL=|#|Ii1tN|md5{du- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/ne-handle.gif deleted file mode 100644 index 942ae825357ebae7f68e5ef818d7ebc5de4c02cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmV-c1F8H+Nk%w1VF~~W0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui015yK000Ox0I>-iNU)&6g9r(R`}c1fLxQMK{fqby gBC2o^w-G#NZrs9(1Jj{1N0Feqbmt<5BNz|>J6tuIF8}}l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle-dark.gif deleted file mode 100644 index 23fced98bfa4e805e9e078fcad909735344b7957..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb#gW lSa7hJLy${=AtBL`k&(%PC%{07p_^G&Zcc}Qazg`yH2@eV5k3F_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/nw-handle.gif deleted file mode 100644 index d39b0c38d8994139e389a7da016506e0537aac66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmV-b1FHN-Nk%w1VF~~W0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui015yK000Ow0I>-iNU)&6g9s7+`?qajID-FBp^Au# f;5LcjBtrZbZk)Mu5G9&JmyTdYROiyE3kU!^<_nt% diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/s-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/s-handle-dark.gif deleted file mode 100644 index ddc2e18ce48da6338fb4e065effd31f769ae3e34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1060 zcmZ?wbhEHbyui-I(9Qq?YgWws|NlRjIZBL%z{m;##h)z9ARp_12vDA2;P}tL$RXpg zVZp&>4q>gB6B`yDZWmDYn&Yu?(a~-Rdwi{%g@huXy%gj+Op!}VvosMv8PHh8W@=7yR~vTWL;hzu{rDR zsjaK8uTMDKCF{Ly&CSgjmsiD}{=Bkb72~~Kt-q(Oy}P^O^Q*h3x39myzk!)s&S%Gl z#F1=;#XNk%w1VbBK(0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0MG{t000R80M!W`NU)&6g9sBUT*$DY!-o(fN}Ncs zqQ#3CGiuz(v7^V2AVZ2ANwTELlPFWFT*({Vj%bu;+?Z0rgaihAOo3`)Yz=I1PPQ1ABU*OP@}?y7lYWvuoeZy}S4C;KPgmA5Xr#`Sa-0t6$H)z5Dm@7rtA2$K=XW)SdCaB+*pMVA`=%9oaYUrVeCaUP7j5g}%qmV`_>7ZqiaYU-(|rmE_ythVavtFXocie*3mJC`c7>Hq)$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/se-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/se-handle-dark.gif deleted file mode 100644 index 1a678e67fd6edad35c463cb6d96b05fc9d6e89c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHb6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui015yK000Ow0M(^ChYD3VYzVQXLuanwzl7M%nHv}G f-@}9j!xh{H(V;_#75{Cs2(hHelPFV`3^a diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle-dark.gif deleted file mode 100644 index 937102c6b23e59f512f74b5393378ced56e006c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/sizer/sw-handle.gif deleted file mode 100644 index b9e2f563a037e362e69290dff5c19f0316f4659b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmV-d1E~B*Nk%w1VF~~W0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui015yK000Oy0I>b#?Xj_V)Gl_4D&fNJvOYNy*5_$jQmc&CSir%PS}-C@d^2 zDJdx{E32%mtg5Q2t*x!EuWxEmpg2F=$T!MCXKW;pD p+|RbvM@36v9K^$0{|0b#?Xj_V)Gl_4D%!4h~L8NJvRZ$;ima$;rvh&CScpD<~)^ zEG#T3DJd%}tE{Z7s;a83t*x)GZ)|LAYHDh3ZfD!o=;-L|?Ck03VHgFYAux18 zK=CIF(6Rp+bU;o9tx;JQ*%5wKRY?ytoYTPlbe^b&9Q6dlJ&ZxbYYRl zWG&sQl9iX22Sl6odTm`5+7rA!>+Y$q3D?#o91i-cwQWu0qLlNiVzZ5PZ*MOM-qq{9 zJ@5F=vd^!2JIdGJ-yfIAB+V51M$)UOZ?PaMO6$A`+JIuvH>$MPeJX z)q{ua3T+yXI#i}*JnGa~w&GEj&bAkix($wLJnk{#J8_`b;@OJFeKy}-Jnna3(|j_) zMJ)5lL=UxTv)Kj5G@s8Yxt95SZpE{e&*#;Adzn7}f~3NW1ubG(FBW#Ft$MMj$L!UM#S`4L zUM`sumi2P!G`6mn%jT55dbxZ-o7SrpJx<@BuUxTg)vHx&w!M0_y2R;!`++rEu4TPm zyW`oa*X#Ctd-Zz#0XFS78;*!&zu9;~j{7dt8MD`KHeYble!JyLSoYhkH_}$W-FBz! z_1oUX=|YP3k7uj%_g%1k@P0o7yUvFL zEaEvI4sxik`EZEG{LP2M0`58=j|e%7A3Q3NzUJdGnesOuk1Mq6d^({rJ?GO&jpb`T zozhuv^MJ+RxX$M@Cf9R5pS5_t=JPq5?{7YzcVO53a=}I1b_=UGL&3pIKIU(~Tn=#8 z{dy%NJooF>i1f8zuf>$V{dzs2*!SQKE|v)gZ)PlC`|VcF_P5_|7aZ69ey8Mm?)SSD z&)0sxSMyq}w}F9`Md8PT7V*3v4?EP?{dm-4{_e-)3GRA7pG*nQ`}uU5xPyZOgEau_ C3isjw diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-btm-left-bg.gif deleted file mode 100644 index 1d81e54e1043facc21074c0e90417f108e0a53f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 895 zcmZ?wbhEHbWM(j8XlGyu4h~L8NJvjl@9F88JbCht9Xs|PKD__%k^M)2=;(n12M!)Q zc>n(W>$e`DIgJ9J(BFZRLb%kS$iPx55vW@VhJMC>~O zX@@{iC=?ov#$Yf60)a>*ve|4tpDz#yghHWACX;T-w|7-CrBkW+8x3~8;fZy+jeBgtD|FMC?K4{>bAA)%Q@qH7J z5I-cmDLQ9zP}mZ30A9K!pm;f(>AF2*tFYuPw0i+sEL|4 zOW#*+j-y58@8C?v-w&@!=w+Of$Zb|#C7E!ZHD1bTbad8_vL-6pn*5S|BD@tZ`3W-~OC@{=r4wGZ*-J8Yf%haXc2esLOxo5})g{ zhoqI1Ncg-xk5#q&;Lw6qcr!w?t$mDq24) zs#g3QUDZ)}^V530qCK`PQQ2{%uUh#_B4tF`iD2rLUB|_VR|vq@Xw~fu?TG45rdzM- zJ`i;^}%aA^^{TbGb0l; zbFAWI3)i`cv+%syt_l1BCuo_41S6~hXjH9L7?QxSJ`YPbT164ri0|frLbUBgG=^al z!)_RD^Rev+`@)g_TKi%mm0@3kM@=>dMb9A|E2+|2$7+U-;aJP`7#)%`!AR%&xhQ<< zpU~7g;Y(Pm$+?lAjdZ;#D8{?~D#47oHcM}qTvBv9k}2H}>$w$NO&xP@)v`?P?YeoS zXQy6@_q=J;jd^yPJV$xykbPljfxI>9npe@0Fz!_n(#>8~PxdjNy0`e6Pjl~bOa$c1 F{{Xv+AMOAE diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/vista/tabs/tab-sprite.gif deleted file mode 100644 index a16eedb822c1d852020d7c58a40307659ad1f8ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3150 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 Ru}w*2KC@pnhK+^68UTSX)nNbt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l-blue.gif deleted file mode 100644 index 5ed7f0043b6b0f956076e02583ca7d18a150e8f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-NGaC=| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/l.gif deleted file mode 100644 index 0160f97fe75409f17ab6c3c91f7cbdc58afa8f8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGqhzKZa2-8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=uVK7ioV6X-N<)RPU diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r-blue.gif deleted file mode 100644 index 3ea5cae3b7b571ec41ac2b5d38c8a675a1f66efc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzpbnMHWJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-NJSY$C diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/r.gif deleted file mode 100644 index 34237f6292a7da6ac5d1b95d13ce76a7194dd596..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 810 zcmZ?wbhEHbWMN=rXlGzJc<|tzJ9pl^dGr7Oe}+*o8UiCM1QdU=0Db(QK?me-P@Z7m PU}s=w;80LdV6X-N?ynEj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/tb-blue.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/box/tb-blue.gif deleted file mode 100644 index 562fecca87176274af7bf13c419daaf93f169249..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 851 zcmZ?wbhEHbWMt4{XlGzpbnMHL<6oAa{JQeg*VSjft~>i}!})KUE_~a1@%#46-*;X4 zvFF;4eb;~7zJ2@P&7Vha|2%Q`=a~n;&OiEf>B+Ba&wkx{`TPEx-%p-AdGqGY@@87@w|Nk?Lg3%Bd$|0cmlLhGf{|q`H xPk{0S1BVKOBoBu|W0NBntB_a%g98I2m#~UU!-oTo%xv5uDh>q)92y%KtN|VsNKya* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/arrow.gif deleted file mode 100644 index 3ab4f71ac115188898fa2701b6b11561d0461e4d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 828 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-cs.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-cs.gif deleted file mode 100644 index 3d1dca8f05ca550917346830a5a0ae4e16665181..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2459 zcmeH`i9ZvH1HdQ!yk5P2p?H)dxpp{mJU@!;=?=U!!Pkq*zsjUC!6Bk-dSFVOt_!mB{_I3VoryMO9y{@Ma z=-n9DL$B{GJqcGoa`AW@KtUEXYxS9y%>dB{M#Mz_E@4eP*_kWX z^$4C>m(33o-~&JGx7SyMz30WrFL$>$RxxA>k0+M{zIVY>_Ns?Yre=MWTI_qhMP6lu~OPcC3oegZjRc3=(^V7L)w0*({)+2G{4{T;} z!o0jGzAzuE1S`!ys~+~X;Ic~gSFD>2s0i!s44Nr2{v9?`?2ia5C=Ng`%#;QugJvIl zX2534LY2Z0<&i8qVL7rJG?#U&KWwg2Z6tfHDp4JGvpPj7exmxGdU$C3eVxYnn$L!U z`PxTjbD?!bexlEHC5Xm_h{s6L!t<)w{UTi5CucPzxwui(_yinUcAMBO2QMa*XVGKC z=GlNC5?&-)q})%Ygw02%fDp? zVNB8KSM#G-X(81lbZQu7nT3hsnXV^A4@CVZF?NFV-}t){`7%2$Np8AIR-7-nvHOnQ^Yr z29ODG<^*{=utg%~TyB+{CHl7?LfQY-rAyiI?J<{dz1}#QCwUHfpd2o~hf|W=KB6QJ zu45SUAF!!>)JvC{YD)6?1&ZX1^D@s|{)cn`#dBJlpkU5!N_ZIg4~{NC(Uzy6x{{=1 zKe?rfYg@ITrV0~|@8ub{|BR&EQ|Ia^S=qK8j9Iy>vok3>3+xaUQ15r1*4vMH-k~NY zr<-xLf4OeU(HvTdwc$>QVsM?qQfg-Hww|)w(fE}flAPtt)lx0AZ85ZzM!P3YPuBpu zIz4GQX`B=4@`f%`F)25gdrYI#mTiHRMj`BlpN4SV3>xj>^#pw_p3!SNBqur_%-}Fb({3Vq!raSJOb>jsf$Mg_Ll=3M}zGh0*jv{cQuF zqmjT9Ni1sMYJk1%XufpWRdV7?$2CxI+916|kz;5kukQ^K6G~rle?6IYiE>rdD!AJo z!NKDDVl5bDbMZ#j3K=C~N*BvVzNyC%m1wm(h9_K{;$IbDeX@-l!VY^kdI9N8_1=jfHxh8T3_)wKnK|Kp zd#kHb=JVjpZkT2o*vDFxiHooYdyV1V)pyhI?)CaUwehdL_6Z^()SB zh=d#_`1@P3XpBUY8&RN-J+pLr$&4YwYPAf?9 zNv=0?zgF??W86>)p4GbSeVcF@FJrNNcTI26z+a}2%;xSja7^K`kr~TUVtBW8#)oO;GY8+ecXL81wkhso@Q7N{RGV36L4-Fn0@B=bZS$i$`@>*e=Y6L&Ng dUQu}td}@Irs8Us{==-D1xS|KJM_Czg`hV^ynJEAO diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-lr.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-lr.gif deleted file mode 100644 index 7c549f96d6064d4b0cc022671fd823c13df36d8c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 861 zcmZ?wbhEHbe8J4f(9Xcn@V{aEiR+JFe`Od2qaiTzLO}5+3p2>qIv@g+Cm1-a7??R2 z95yUC*vuiU6?0<4!o%$X%3gCkHZD5aEn%E>=fuXv$NLqWyJS2!Ejc+^BY0KJ$xTbW LTbP(wSQxAUYf&Xs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-tb.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/group-tb.gif deleted file mode 100644 index adeb0a4cf54bdfb626ab6f3c070f6e2919f374c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 846 zcmZ?wbhEHbWMt4`Y-eC-_}{So#PvfrK0JQ?m0=W&hQJ650mYvz%pfo8fCx~YVBpYZ yVCE5U*s$PWGl#HNOoc$h;dTLKuQ?tY7ai@EFwVMjV&mfD{R+-`G6D(;4Aua=h#nIF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b-noline.gif deleted file mode 100644 index a4220ee9066357ea2270a842ed244bbaadb23de4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHbJi)-n(9Qq?M~)mhbnDyy|Np_fQDQU%Mo=fuXv$NLqWyJS2!Ejc+^BY0KJ z$xTa7Pd7+DHOF)FGT%0aqGx+fZdP}nYuC)RmLp-s#l;?zwPH_gS$TPRz~V9<4hCxg D_B%R6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-b.gif deleted file mode 100644 index 84b64703006ca6d86d335b89f8d40b9fa3883c48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbJi)-n(9Qq?M~)mhbnDyy|Np_fQDQU%Mo)`~r~W##4N0gJundTm{G tbu}Af#?`K^tFNzT+TJAVU8dErDdY00*wfqA-ripD_|#nQ={XJz)&S^DQ3wD4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-bo.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-bo.gif deleted file mode 100644 index 548700bf45a4766e4633a2ad21cdd03a907e191c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmZ?wbhEHbJi)-nu#f=+R-O3x{>OhHL-8jIBNqcRgAPa(B=5i!GpB#$>9_og=WMyv zz4@M01z+1Ek7>_3m%Tc*Z6(9;Pd?Yb^*;Y~?)yJ}o<}i97JcmS(V9N7;WKBi*YYc? qzIL6>+J0x<_w3ZJ<4-pI?D3myle6{rUd98@zwG+kS1-=MU=08a%|q${ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-noline.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-noline.gif deleted file mode 100644 index 0953eab5c875fcb0f3b40babd89052b064bf9fec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 863 zcmZ?wbhEHb*_y R+_d!cbc5tmb0h^AtO41(Cb0kj diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-o.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow-o.gif deleted file mode 100644 index 89c70f36fa653684087485ab673043ecbf615cdd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbO`C@~rWBPawEf3h$$FfcLbfcy-~6AT<} z46G~?3JVq-Y-VLwiqV*$aJZREUaCi9W8%>kKJB0>J3c15x5sMVlHA(yGnuN7&N42);+}s>}e3|KPvE1;j`8SW1{tiuYV6X-NOpiu@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/button/s-arrow.gif deleted file mode 100644 index 8940774785c25d4467b239aa608a9eee40e273d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmZ?wbhEHbkKJB0>J3c15x5sMVlHA(yGnuN7&N42);+}s>}e3|KPvE1;j`8SW1{tiuYV6X-Nh3iI; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/dd/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/dd/drop-add.gif deleted file mode 100644 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1001 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.gif deleted file mode 100644 index da78d45b3214480842c62514af524f4aebb66124..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1988 zcmdth=~t5n8U^q-VGC;mBm0hsV8ubLEt_Ll8<8_(J7+8+GN29vjM%!ALxG`*vV;KaE8sA!@Y z4L3~1jhLAW4>!Ua947Tqg?%((Kh;b$Ko$&=1w*rGb*ec?N^AxVXqe@UN>0 z891^{u56v7+E|jCmSrZke1FwUW#X##SBxOn2(GSyLZMKlQmNHyjYgx@YWd;~fq0Ft z+7v0*1j;R;!o*jZMDlHsa!;f+iM1w)YEP=(muf+oW=p08<(hqkW|zMX3O7KpZcnTO zrMf+lxo?0HvrSO0Hz^EedrHHu(zqvI1C{Hb+PJIP0JWQ-Y#UT;feI6-)9Lhjy}@8G z8jZTOUH$s*&hGy1-ahdEdx6`Q=5Zi!^uxptKLNl%;1tXUNoYe@!v1h1gG9hjRlyIY zT+i)opRVyJ$m^OWcFfcd!goE+KKq624@2~*{(Gx41$X#rT_Vu?_+4{kc3!~LZ@o|e@KE%NaSqqM2CdnRrfg1wYE_n>MZsu=aYxhs@ zZYg1(SHAI5{)vrY3S>+Sr2G5!}cb)=Lak{l#IcWFsP=h z54sOE<$IwK0i|U>!mQGuh`69u9r$a%T`NxXx|!$| z=ac7y%X=&#XG<+_jk=4wnhTGFb+y-lKaBeiK%tbtM}APdfB|~CqPsh#af)y^(trRQ zEp@1acO7D$So@a(lTLRcQP%+{D$xQ)D?;t7^o`EZs~jG0R~!KcEY9V= zMfruL`9PuG*Qsdx+dj=Ii`&E0II=PwOPulj+Tj@q29JB~T2{m(hfi&|!E zBM$OTv98=N_;e}11gu55UTB%9W)-L))9jWO$gpd{tFfCL@43sLIsT;NS-D3u+AQ2N zWr!%TS6ADl-D$@0q>qlSMI`y2eiHE9u3$58=)j+XZx;IBIT;=;f85a*t?a9*L%6-} zN85P+E0<{PUGyX_R!^ME+)_z>Mape4XM92w`b7;YV!insg9^+qDfzUevNmaJNM0}502MlVmsU>iV}`Lr`6`Bb{t@C#l~>;SXe`ck9;fs%svkL zUAe$-+haTd`enn-;A=LHa#CU?4rl5R1@d8MkEOU&)s-HE(zl)`8NRsxz3AFuDKdp$ U;ezY9-WkTkP-6N%4gg~Q2Qp;nKmY&$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/clear-trigger.psd deleted file mode 100644 index f637fa5d1e12460beabc8b49968ebc0ac883e754..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11804 zcmds6349aP)}JgbA;Ocbf>0GuzzQfJ2%?B00)>YNvUCxIvIz*tj;%n8sK7&Q0D1CQ zltrLGX$urmTA(P<7APcb>E5(W(lkk%eQ6sqbH8&Z({?6l6~E8l?|bhhzmt2G|2b#w z%)MuF?;SDbgAWNF;rR%l=?1ij5D}P%Pn#Gda2|Dsn39*gv69|L?fuB$)^z-xcZ_{4X20k60XxFxV=MG&uck0loQ$W{epAL8` z@TpFnxc9s0xL3xsevqPF5EIuLxGK)@FY{NO49xe089u%ln6UW4E9?>u#0o8GIs42h8( z5j{U9=|;dbx%q`xBUW#1D}JhLx2L=J>D%wcpqGXYdu{lL*GIlP_PufACj?LYaQcjy zvqD0{<}X;dXz?dYmabX5ZvBRhpGSVV?W?c9*}h}v?mc^d*!RyL_y6nYvE#p-IC(1W z^!W=HlP_JCrd;{;x0|R9vZ4sjD>ATAkivwb>ocy7~qej}Ume z1HV4~f!ojH3xxt<8{8ire*=)9qtLI{VE<0
        o7Rp;JAVnkiWNRA}kX#4!D)64-8 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/date-trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/date-trigger.psd deleted file mode 100644 index 74883b21c54ba3552492162863caf022d51e43c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12377 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 BA5{PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/exclamation.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/exclamation.gif deleted file mode 100644 index ea31a3060a36a625cb5cfdf4fdc5cb4fa5c3b239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 996 zcmZ?wbhEHb6krfwXlGz>`0sGY+vu>b$x(l^!y&e3LT!$PJ06d9I~VJ7A=2?olFzvm zzpDxE7n6N1CI(zd3A#}bd9NVyZb9tbn*6)9`43}*9>oVgP7HaP6#6VR?0I_l!meOY(6|dTBUw78N>aBj$UH@iM{ilZ1FAYgw8_pbc0Z{x51oBkf&`s?Q9|Ns9pjDkTQ0*XIbm_d%z0TG})!N75lfssSTW5a@j z7VZsy6h0k$;Gk@@Yl-LKR#u*NrzJaX3aNBVGqZFP(Gfc8+b>uAY)8hyXKfvg1xYiW zY*bF=5>dbAA)s8qF(=rm< znzH#Wl@*DQugyk|h0s(J9u~z4MZR499ryhC^~?K*w-=e{wl~-nv>Egj1cL7gguBx% zT)Zq@NE=-Nt6g4JyGT~9fVo?Mjr%bh_W%^(#8yHO+#|w*$V3wYFrM_Cf1JV+84je7 z9ROpGU-)jyX(BU$6nbeLjSW4@*$~LtaEfn9=b%FPo5J`zLU_AExy0xc;4Ihg&$RuV zvJGs78Rz*%p2AAl3(x<8lzp}-|FX4l%|7EfIvgRBjB8tSQLP1VZWEF#ywdLj z>2hyD&Cz7(vFsX(us-NkLs+sfDkV2EMfeY2cqXqlT3nl0R8N;Z551!ZFX)PvHbvg; zPAF=Ql@G){8oW?FobYU%-aQi8(syOzQ{37bFFif|+O^~xchYiY*TsbylHyFUEVrOS zC@mHh+?B~>#g(;XRrU9uJgcg0tgWkKmA77d(0=`qGNYy=^WpQ%CrV+BN>bPLw6R6f z(sR2_!|q(n>iQ^DjS2e4MK5Qv`<8AFEsF-0Btwh&iZ>0-?TxLUQpLzh z&8rU$BjfVd`o|+*kbdR$!ncucOIodVe0*G|(@jlJ&&BTL3F4!sWQKrZSsrbm`jlswPRiNw~ox#)EssIi3K_U?mR$7V-IC9eE}g* z5#SHoR>a6~NhI<=Q;WTt%?}Qu9NUN;+@wtJJS0y=!z59V(h!KT_cmHu5NujLLCxE9 z_QU0%P-;FGb5tI6*gk|&C@tm`|9+v*B6nv=lO}$S+iOD$Mn~aW%lOvrmnW;VvcjwTy1x_M|Vx7g?UOR%A{vxR1=O9xx`_0#)mAz z#O%%n@__a?l=898*N7xDAiI1b<_~Z{nslUk?g_Dey!Eax#h5@k{{; z%`faJ5{8R)QaC;cQD8x5`VzNXi1Wqp3x`c^8P{6P{gaVWuFtYe7c(1?zIg}q~%W>VJ1sc%Av?5s&yuiMsG8Vvph~HOnJjUP7z}R9x z!{}s!KCBJ0F`$WM&Ver~;K&ocSHW(s6Mh)nO&1ErxjYUP9z|fJI2_q7U~QAux`?+R z3gs}A84lrf=7C(=X6VrsYzT(A2H$czA`b%`i`+&{!uU_X)(G<^EyNUO6=M{u;y53QM-q4Y5!fjNf2B$c3=RvJnhbNor$)h(^K&^hwf=q`1g%>cIxsnNp85qN`tNhU3jbmaN?09D@dd_WcK8kleih diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/search-trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/search-trigger.gif deleted file mode 100644 index db8802beb370d7554d5319c0e0d5c4ecb8da2c5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2182 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 BV7LGP diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/text-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/text-bg.gif deleted file mode 100644 index 4179607cc1e9486dd6fcc8467c79b5b41dbf4f76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 819 zcmZ?wbhEHbWMmLxXlG!!_xRa|&!0bk{rdI$_wPS{{`~#>&!4}4|NZ;_|3AYh7!85p p9s-I#S%6;r&!7YHC@4=ba0oCkvIrP7I50A^3uwfgFi>Ey1^^@>A+7)b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.gif deleted file mode 100644 index 3004ec589026c038e7d056e2b99e3a877d1ecd50..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1810 zcmeH`=~I#k0Eb@@(r`m7uUt*s$}CGwv#`U(3p3rqV|JbGJ~p>wuw%A$t1UBIwalz( z+{&#$%ZT+L@5&Oi)(njo!2=aJUO-TkLqNb6-<{omV!!O~!}Il-d1iizNhCtlp<{qI zFbe>0K=r2)<>eaTOHke`M`}Tc$K&-w`Z;)h1NmlC>qos_ACXo(VMBP*8NSR=2g;eC zTse!>fe=?>)ai87)6-h5_EoP^AP~Uz`M$nBKA*3fwW+K~cv^AWkZNFHpqV2d92_)R z?LwiDBeg?jq*rY07MUBnWnJRA;o;%P^jikAjW3;mVK^eS*lI_(V=4h;GFfaNL{^bV zWP|59VCLdoYHQ)h*?r>{i-ixF%vSq=!rTU`t#k0} zUggI0TWvzs=P^~+(A0Wn8IQWMaOQ0fTZF_<#RVfdDJ| zU-P$Wo*?VVKr zv>QMX8JhcNpY6P}`bdd8lUmhVPVfpMuo|9opEw=-v~3MQ=RHRG1nv9Oc-)Z|m)zHr z)TI1eNurS+6-EBZuS;&Cc#vt;!iFD%gK}8SH6tyq?@1m&3uTYPa>Im(Gk9&3h6-_B zp3}k4Vn(P0zi~{h{VkGnsuu#lr^Ct719}PhhL} zwJTGMKb;z>Igsvlx}rs~`R#5PcR8;)iRvvM|Jk(+(lJoch!ov6ixFnDlj011>WQkv_op8RKJdoL^uEJJCSo!-%b_pjdzFFrJmJ5u%l|L{a0h$@c| zQG*K7nT$MuxPuq(trliLXcs$F;zO;`Hcjg#WrSFHN-C$kgd zQHVYJk}Y{TLeFA3E+FTQu8@r5a-tocYEMo=ei(-!z!|5@yEuY}*X6J=)3sNTi&Up} Wr&xDc=v65PKOA33bU>qlt$zauvnrPW diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-square.psd deleted file mode 100644 index e922ee65de361157b2c9bada8704be67a50510ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36542 zcmeHw3w%?@neRw8eqjUVkq1p#)gfuOu`NsTOAe3vNt}xl$2OEEo8-#Yu~CpESCYe{ zi<3UKy}v@zCf)SzCfnxGY}0Nqxd{-+<2Fs(6ao!k0s)5_111i*G1y=mTb7RY|IIl^ zK9X&M?oCsYO8(8vH{WY!zWL6~nNK>$`9+o0Ov9v442o-z>RAFK7@t*3^NY$WVq%z3J=Tu}>G!+XgZMUp*3DxUvtEpSJs?KapTf8V~ z!J2|KjZKY$$D&))Xm_{^)+|i3Se>;(0boMw({!B0vua^lArW*dDk^owPM4s|&NO7y zWtnny*}0jClx4wK{`YM+49qjRgi%LAFUJf6^8u0b1a)))!Qjl*w(P zwlHm_$J11x*RNi^I&-xt)9Gr^8_Z_2KFg>#8Z*F=;a=9y24n>`ED(x{=}M;@G|DcF$1oyiB9S?6rjudy`g4VhW`pk@dz0J5OiC0IN{ z3DP2CmLV%6%a~y_))=x2vW*2sQ$|*PK~~lR5?6DMwaj%?IIXt&wV^spHHO@RoV9jABrn7RT)8llnbT;XVt4+EJOP$R@b=9C` zc3IN`JsDYLbUveGuQ2?_O@_5DI2TRLE<2xcYn@)O3yp%qXtMD`5+6ciG^y+#?qm7U;*}RMWv}E2;#y)80%TOp{3;y@7IB zR!t9={l>@0s_EgfW1`C(HqRoX+*}wsT3}ybB*c7 zylf=k^0U)(Oj$?DgK4+$^4Bp7IPvDK~PAl$(IhF-Sbw=_HlMbId8`3mD|UWasB(@f`CB7_*5S z^PgvecTf&~o zro(U3;p^$S>3Qk->E?8p#$ZS{7}E`=bVGJJ{1{AzymUA{?u(4L6mTWrBFVw^0(Zxi z0f)cYXfT(SpkQzpTh$$}-E788Ty+^m57fachNJJALrp zPFe4Rw?lswV9d|{D(WSr(MBRNZq!^+b46rRnNDMPz}9n4{hm zHCIFyh=@7rT~TvIWPym7quv!YS40+wh&k$AQFBFPfryx+-W4@hL>7pMIqF?eb46r< zh?t|^6*X5x7Kn&B>RnNDMPz}9n4{hmHCIFyh=@7rT~TvIWPym7quv!YS40+wh&k$A zQFBFPfryx+-W4@hL>7pMIqF?eb46rRnNDMPz}9m@nyFNn=k- z3JyFXxf;(xGJ2XariY%UyhaClqg{8u;G$}H==FtoMorM`OKM7Vl}pR3YjpH{p}zFCG@bfU zM|zS?;Ey1J(XFp^IhzERXYEob%YZ9GiYOC`sN=jU?N?5xHPcddn z%9>nwf-keu(jb)ar{yv$D{gVRZ0nqOKFN*;eHQ46A7Zlj#PS{+JxiKdN6$YxU5ZTN z0=Eb18&u8R=d6`@7wBbLQsO05+B`yIq041iJEqh^Rdfl0N~b2#@$thVCFrz$Q68SV z;Q;BqWRLI&nnx(JTN;8r0zZr>GzhLmcp^&yc?b1M4;Sc_ZsU2w%bf|;b7D$k!68pL zkDrBkm|#$3am8$SBuN3Uq^YQ`v)JLvpPy+68&L2wy>tH!nIXuDp`C5-A7*uc) zuE^C$>2R3meD+tQNd^|2jVt7ma5vZ1Nc(J)1^fQJHb=elUS&6(XqT?6sH`lhB;H~? zK7N~}QBamI)y^5oK61Gm`X%?z@jH6r0%dO`lPfzW!8EE%jDlF?+lZxt$0Oj*W9+U% zkq^Juk@v`nw(+rDC~O~33~t(JF}RbfuyRjpY|aJ?xAY^yxb79 z>YDiUFT2Y$6PCfxxg&&+aJ(n*$;&X{Js{)fbP{x4-ozeY4n<#K9spC6V|&DD_A|X2 zk9X}$4eYb9M341_xVmkr*`B|keZ;0c4;qPvlZfdfAewXUW z2B%uCmsRVogab_Yb|W8^3MaV_^V-mQ%mrRg!1@5%rxo=zW`0xJ&}akhOr* zeoad9Jmdn)*sqXeI#nIbb~_3#x7_7+*qx3B)cG4c1&5`!7B5aDzC=fJW08Q@5eh1f z1Rx9R5wuX@SanmKT1!%+&2c+k)n)UnmAPpClNv2+La{VItjO-Dkh$Xdcua)VlJAV~ zGxw0NJ}1_@5F@Jg2u-)w-d6`PK9Jxr$)q$A!9`#4$SutVa;jBuIMLHFv~~sYa&=Ys zw#4deuKn5~prlW%2k$$({3b|fk|q+Y&FBmkrpwlLb<^b9l2$uitI8cUpH%OrlD^xU zJrOCqR0rA8VuwdIJXvLWgWXwcvDdipDp&dvaJhY{oACG~uC%x-oMamAgxnvpIi(Ew zcz@v6OPD{*cCQo!-g|uYA>7Vin(9{C;2P&~jr@JIygrxe+970gO^k1a-ea3kYjN{n zWKHRc8q}w-Wz5Y4<^qiC5$|JlSlyxXSyksTfX3UY!MjIQCSXg2dbLSdk;mC6)9LNG ztg2z9La!(NZoCUrP)4B%X=e(jfoUdEJg=0OsM?Bea5wQVCb_hl zwBs8t;80JoG<%#&1P5I)f)xl>gDp^IPLh}jLzMEy1|5pO_V{D)@>JRIs;fH`Q{iq9 zLNIX_yQjv|5Q3XlC)n*Z!WvJx`<9xDrQ~I#FhN0wFek2by4DriZ4HX0rb~mzSIrU{ zlJQod-qLLM08G3eU-(SGPJw!k4rQNO+rVF7s4{MOo6|wIPV_jNa9O$q z#W9GMWQQY-!zR}{J#eUT_^FuUm0|4s3it}?V#!FF#eE!>cAr!ZD|-*Envy?DI}h=* zDQ0A3L-JGjt_IiZb;p7KB5Inzk-%{_b_$%%={sZ*1trp}q3oIHKbHM3^TnKkR0)MWmV3#k&GYf`38 zO_`Q5W7@PCv!_j)Hk-0(vn7$#%TW;cElW+n0P15jX-u1{iAmK2I&dk+2mYX0j9yN` zhD>|1^ohaXVyDE#CnP3K#Z6KuQNy$`3ULP0#A;%+vDzu|aS2mml1(6{#>9SUreR9q z9hO;X-~6^QZuTQjzgTqr{5e%`)|#?i-)Sq3zv0p9z7zd*?wqThdFi`1mi(l~TKc$Cr|^|3!3JT>s2+ul0#!Qk@x`@jFwU%vdu_qvDj zmVCWo^$-5{bK7?w{_tWd(`wP%Sl*}jxG6cj3tuwKj71N=nKo;R@!OBgrXIXm)z)X4 zUwgv!okxqS=hV5g`)`P&4#eM>^ScA+#4oP4mM+Wn2q%MGn7jvH9_vEjeU==<+e~GP z*}wx^y8htJ+4=Av1ME~){&3ghs}7H(1lX=kj^`hAKeV>y8$*u&+^{)w#dQz-wnO~M zytl=j{?{u0aAr;Rz^h-pJ2UrgTjx(6_1j{$KUk?wUH{obDq1X$O?n`boL)YH4Iec|mlt$%7=bJzZp@5e0J z-kV#~vFT;sk3L-Zk$<{>`|>nh`(ShXN<-_<((nAo%x%v+-Z6duRXLsiw)ci#1z5wg z`+5dP*ZOB=2iP-PHeCD2J*8J~y{qCmjAUimdk@&&c-!6bo#%egwrJlYcfWG2{!fm7 z*#67Ij%R+lK4YKnsPS4~hts$Fzn&Mhub1AlQ2XsUTV8qSM?dsEQT(e-5AHs0x0mPc zePY=gFIxVz{_$T2*aoLqTEG9FM)ksvhko<&w%(>#^K*x$Y_`qo-qiD(O*Mb|{!4p0 zR+m5h$B*v$j}iB^tA6w3ukQBs&hdYB)oSlu3vcfWFnd{U%YBvCZ)ttvp&#m>&3*j+ zsp<3Mwl1Cfif`JFWz(6%`FGX* z`QpuAZGHV@mvzCb`)&=eceePhe(qd=y|(9jXL?%a)b4%wv40zgKRCrc^ZfL!Eq^&s z`O?mcil1zq+4*d5+lwEG-&)=JhI9Dd>O%pR_{O^On&(@d+;;UBjy@mQ-}~sj1@j+$ z^6B=0FZ3lI-h1Yz!p*B&zWe;?C;zfo{PpftAO7p3H$V2H{g17`X>n_St*=cR>6rh+ z6I%xE(O(z}uw_sF^ex*zAAIzNLhntck)AjHE5P>LId|lP`O{09_4}8vF9@(r5A^)g zqa%a!*R5ZCU+2jH3$#mX?3ef&vW(U~T2H34LS|)7R*Rbp9jjz30eg_#9HRTcSs%lp zW5ukR(QUMRW=I3bG?^6@?5hA0SiEK?e>Xp!=a^VcH9R`~w@myCK-V#-7p!_18ZY6NLF4655N?#K?V&Q;$P4Z)_Zz8`a~`Y7`xsOzoI%sNx^&P23K= zqe%~bXP(k+NXGkhz=`g8Agx5I@88Jmu z)CN%>`1|t#S_9-yEX8BS&ZX08EUpH@Q;lCU;KzM*cAi6w#dcRs$jLBCI!0J(?R0+N zD-d{;QzVJR+uWsVEOj0wl!6kLV&2AqgJEAc*iej=V;5{f3)l6p5k z97__Ff~yYy3_(6-lWCIbZFc$B$jVWbdo@Ze$Nhp(n(G=Z4qJIuSryn zLgM37{8GzW!KKS0J@#e?^^NZT#MVq{t&y>uW>a2N45(8;AFt< zMzlJ*@kTdZB_{3v;1)8Ig*1Cfv&uq$CJuZq+d>Idd?D3Qz?b)O%t{HY3RZIC5J%Bs z9W!wHm{nq_{wZ694-Offr0ONBNPdHyCZ?AAUM=;^ZSm*=jJ|l$@Hqf**;cu#rWyAJ z_@8C?5=plN&%fxf+cpYn3&CsHRjh_J!!{0B$I0`0lw_+V$jQTWu-;18uaOC1*5i@L zPt|&eT}AfyL?E(1%s?z==2CxiS;$}CwoNVlKDMoYl(qElMxs)I`++|s zTp<)ml>;*6|EMXv(k4@0R8x56Z%&!S+vZO0e|2lxPo;wI0RANET}V`p$ng8XpORrJ zM`gGjcp5kHQ|XuC!@!@BVJb;K@w_(){@^6|cP0G!Q<|=Jt`Lf(%7IBKZC5S@-ezWZ zv3v0MbymTOST17T)21@*HFK}QwoUmcOH$Q(LTaJ3b1Ye#zW3DL^eH^o`orqJ5LsUs zbv*Y}Rl6*C_A4U+Ut39=FEH}TY%qt{!Ys;Z;#4Rj^Mj;ZqU9nG%!+ z(X43D21Mims0yvA8wsU^*2efq4?_~6OAUwet0`(&%|&MMK@W|aN*bD?o8ZZ40nUdJ zjgAB%ugp&+AMFG*w8!GSV!!}fz+Gf$I4A*UnuHpQw#bzr7+@oVatT+G`G+Q@a90`$ z1mH@@2V_3D(l{J&`jLuATVPK_^oL#Xv)=+jTvAl965r}5a9M?W6=3{^ zj$)GhV+=bh-NNo>4fwO-Zng&3WC5EW8uvj>9VyC3tc>_;*$PBvzs9n0EvwI21grV8 zz*i6L#D6QaXMsQbEcQ2yEQx0Wee9fgR@-;(oF7ppabMsddsoW+a>OYdCw2w8*#}bY zmm^Vuvq}9vzpwu+&&9JT+unKSy+QBbp}jm85x)_4i~A_~cc-+35mQ=Doai3$jdY*n zxri{<7&mLl>^?2$l$wscrNbN zw~XWHJUIlBkq<{8GIX-DGhBqV1U^bShZanJB;Pslqm*rLzkOg36))1@0rBm5ExY&j zLCN3|U~~HR?%v%J#*xy}(b0t#Or&R|OYBG;FCunm!GgOWF!(#-wr$o08H+!DqCw#I%)82j(y?vGq1le z3i%)sa&04!RTKN=P~_-l?F-vp@Pb{5JE}0Bv#{jfGRP>N75gY*(b*v$7rQ9=<)EXw zE)IzoDf#6f9~vjGWRsIC#-7`Y%ek zh#01tpS99rQ&U-m#ipvVh8CM0$4(4YS5{%=sH&_UI&th+>(QephDV1_{F&$CQGM$; zj)6fRboej&p~E*gFc2=nTKQsA1s){6*zBN{gDOb0a?EQzdTfx|{eapXJa+VGYZymL z>xB!0BrhWQ2gM7i<3;#lQzcevq0`?1Q@^b}Fn9;*cMKlzzn$9J*4BOz(xXTh+uPdq zw}vvnIJ8;?6-*$&ml}xkrDlhJPu#(wJ1XxOI_N|ER@|>Wa*+#PJmN=;Hk9h`jH9tt zjhyn)tcCINMW&iBGCO?l#2y-|9y&CN*sp(o9CV_)M|{wzrua_8c6+P6-J^&OhjIlM zmmQ;M<@^yZN$!t5a2rU?rQ zk4-BaJVp(UVEr>5bN*XKkX4JvE^$B{q~w<)${}?*B0O%<*flUPghgOT%0-BZ-P+S< zPD{DJJEeUb14VyBnOHlm6%TFLh_zzlhKFda*fluh1HwP-2f{ZrIN09Z-Q)Fnd!$_K zPHi8@AqKP$Z`g=@7Bu+rv0myFU;I?f|I>q>kt3m-$9 z1Xqb&qi3|eBfVb4{C!=qr=jumD0GZr$rscVd41RgiNB0MY82zSc-jjY1w#^JSgZ~F Vn+0%uFaj>+OMzhhbM}qFe*^Pn6NCT& diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-tpl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger-tpl.gif deleted file mode 100644 index e3701a383107e090fe25d3fb8d63aaa9290435e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1487 zcmeH`{ZrC+0DwPCBIojs3o|_0?P^-#Ox&%!R?e}@xx}{YYR;I~>N*jn-Qn&=-p-KA zeA(%=S((N$6_|l9fQC+Hxi9#N2luQwPBW3%=l!}^GELum-8=KbTwwF%Rj%DgphgD1_aTFbxxSbc_7 z*tiC}T&|Us6}Q{%@p#OB*cyNreCzg?@X|W$2*O^k*XQ%C`Tc=FAQ%j8?6A4LxwQ?$ zFnGh80{=sSgX_p0D-7aZyI(&6LSe8g^uSq3699<4vDu>uKv9OqBv(z-4-J(@5=c^c zCvT(%gPg*qb@7!*M7$td*%d>&myq6H6@|%BvEwc%rj<`}&sV>d68bLbzTg)ez92R{ zL%OWyA+pbMNDmz0eA2_8Du?G1p`W#a zi*2IW=5FT;Nm@-f=nK&Ju|GKH$G>G{YFkTqB2{y*&pLXG@cG}HCp8gjUV5YGKrX;c zKcN|~+$?$NF%5hJAHnq}74oAsZQo5Wi&P-SqG~)}Tn55ltvZdK`IT)rc<_XRg^Z+L zEoNSBGTq*jc(eqdQjVJMM2OG;fu#t{Wg$qSxg0~TkXJ<4QMskK7QwahebOaMWkPZx zRCQcO<&}om1lH;#2Gv?~f?O}Zn-ZB9UH!@7hU*~W__FO@Msfvo|59dNOf4yZWj)Bw z%xm6#wG3~s&!Wh#gS~vA{n3r&QHV_+#^*Lr;_-`|0`e>QZ$*LSBb*;mXnE6}$b132 z(DJsR0TJCw1C%R+wAP Mbv*YluxN1lKj3usvH$=8 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.gif deleted file mode 100644 index f6cba375ae3a96c87639a5b3034d204953d1db14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1816 zcmeH`_ft~`0DvC>l)V*M8qq2uh!jyON)b6kq!482iD+?8gcdhyFlbZ|=|RDBw1|nK zYy=g-LKp%@NJ7F0kj2X&VI?8&k(c$_{t^AH-#_r(eRtok-4Q`Qq@Dnl0SotmX1et2 znD}NDyN)jG6Qb30kilRKf(n0Ju2yFdDUimGJpp_36beNxUC5kJ*3g9v!Msd^{)2b{ zt)YWDy+JOQ)A*{nxjFfQrm0UnJ3HGlGWq@9yh#Kd7#LtOnJgA-XlMwAVF=L=4-dbm z3fXKnRiF=ye+a^8A5VqoQJqfL&C@akG8PEYxRXj))60QJM@IwV@*uUQp?9K-gJ^UH z4u_-FYMW@18U{!cz;a0asZU(Z0H>#?IrHd{2&N23`ni(|NYg@>b`8qZYBi$ODPSFh z7`jJhAVkyHJFzMLVGDbb%7s2qg)pKQKO~dc9tw(M&*S2TMv}O{ul| zX(hr_p*$X+#+A0Sq=O=OW@d&4Y7hhgA#_j(ixyB=hq5JVKA%tHNdpt|spDd)a$!U? z)5sF_^Hs10Wr_7%E*AvBz=Vf`lc;0?RY8zKjRwZ&(}g;vQppgb43Ta~iVm}RDwPWO zpZ~tVO2otn0PX`m|Em6d0x&}XXEXQ6TK?^DjDz>V9vskq*Um8{ZzSEb>&{ZYsD`$> zm)(zuOII)3T~F#=j=_{4?5+PUs&M0;zw%rhk5ixe#BCnweRnc8-_pj+BdVzUj`_L_ z?#D?-(@DGs1nWi=zJ{hbxhrf&%I9P;z^0j13zsoCgUyB!LQG$M=6Bn zEAz4?W0%OlXZ*aUKJ;U)pd(AW$gbc;9oStk74bN_sb181!*oCQpv$^Dw9=iqU&fOF zA~XHNGjV!qu8eunzbD^*Rqi>fhV#@l+mqU6##_(wB0iO=C7ZkUxySYgSDd!7KA4`t z06t~PYMpC;jw9vdJDi-&MA7~e!G~Qkj#U=LMSSMXfRx;YLuK16N&BjCr(TdvP5rdc zt{pce*VU*awki_c3{bJ8r)Ojoe=08|_7OJCv7kK{Qgd2!MVLiRi_8Mw-eFrw8P7v;1u9x z-}%LDSypYcB`tYg>w`BBcdlCOdCe)M zfedWoWIDv&Q{*sXo@UiMg$8V^0TPUXMplY3&fDl%31>0(Zc)nn!H}aK4fIu=z6)kv z-+Z?)QwhI?k0h;tqPxe!h}L*+mSyQBc8+_@CEm253L5eZ-+%~}u_Mh*3<*qT_XkyU<3LnMio0A;#iIPH2>?PU+mB(da-cCK;QqFvtUd_gzW zR3d9re%ms)ZMLbqzj@+o@P+O3jjpA7c>MCCZPR2MtU)a-vAv->;ui9GR8TT!P_r-l zp)l_j*PxyKbA^6(s&E5fn9Jqqg!@{l99z5`bkz(Dw>Ii+vxSa)plM$yeY@T53FcuX yYq-rg40qd+b;#6`NHN(^kZr9xY#!i+x4U-1Xsrs12{a3_fn)Cim5HGM5d1gxR!0f| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/form/trigger.psd deleted file mode 100644 index 344c7682409411be63023e77ab2e2140403a4fcd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37599 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 HPl*2qO$roZ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/gradient-bg.gif deleted file mode 100644 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-left-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-left-white.gif deleted file mode 100644 index 63088f56e1c33fd23437ab00ef3e10570c4a57fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVC0bDXlQU?ViVMIiI|XhxRH&WjfKG)0LI-8@c;k- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-right-white.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/arrow-right-white.gif deleted file mode 100644 index e9e06789044eacb8a695cd1df46449bcb2b9aa07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHbWMSZBXlGz>`0uc0#Y_e;`2YVugfU8vhQJ630mYvz%pkAofCx~YVBipA cVB}zNNKj~OV&PY_IbpESp@o^1jfKG)0Ls}94FCWD diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-bottom.gif deleted file mode 100644 index cc1e473ecc1a48f6d33d935f226588c495da4e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 868 zcmZ?wbhEHb( zLO{cVgpLOZ6Fwx&_)sw8LBWC#1q=Q+toSft!~X>b{xgh%(GVD#A)xq^g_(hYn?VQU zd{CZX;BaIR=ZFzVT;Rwl#vu{Yu%W4$ky$xng~3BdrVc>?i4_ctPK=BUEM^-R4mL70 a^J-WG2rw*VW@C5a%Q0YR@NEQ2S_1&+BRBT| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/col-move-top.gif deleted file mode 100644 index 58ff32cc8fa2aa1be310b03bb2af77c1b77abe93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 869 zcmZ?wbhEHbG68wVGIhem=U(^LUb4h;c?We$u2%uEc{03e(}^8f$< diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/columns.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/columns.gif deleted file mode 100644 index 2d3a82393e31768c22869778698613b2f5f2174a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 962 zcmZ?wbhEHb6krfwXlGyuEL<5_v@*CDh*pJ^t_~?(6IQl1ymDPc)rN@bjZrn5V(PZU z)NOSrd+hMvA+B+IeDltP)?JCMyOZ1ZrgZEJYkQj3eITRnaL%L?Ia5yNO*xf6?R5V1 zGX)b57R)?XH0ylvoQuVCFO|-_Qnuh~<)Ryvi*HsfxmC5~cGa>w)ywZpoH%jn)T#64 z&D*eH!>(Ps_U+r(Fz^e+YaA8aNxk9Lx+wXJ9gs4iBqReojG&n z?%lgL9)0`&|3AYh7!3i+LO}5+3nK#qAA=6a7*L*I;F!-K%OT^jVZp&>mh3YgjfYq| z1(lp?K5S5QW|J^Yxp3pe#^mFCnoeCZo|g`B%4>LkiP*V`#cPUi%)1K8vI{DjqJ>lyj2t2o f3la`CGVn;rtSCr4)W)vpHOFJ)qNAORj11NQ63h`c diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/done.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/done.gif deleted file mode 100644 index a937cb22c84a2ac6ecfc12ae9681ab72ed83ca78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 133 zcmZ?wbhEHb6krfwXl7towPL}p0*huu%~roJzC1V7qiQ)z(xVq;t8Q*e g@TwP&*%vbDj%DY0^FxMh_Sd^OqF)Bg*^}7&&A#5)LvkG7IyS zOnBJr%r7CL!Q$}XP&==XoWqO@51m;T- zPZpr7|1;=-+z!eU3>@+d`VlJv8V|8>3M$wXTxdAR#L6ikV-V2L(7?dJ#=^p24FK}3 BP__U7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-hd.gif deleted file mode 100644 index 862094e6803f522712e4d193c7becd8e9b857dd3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJa`*r7`~Ocp_<#1%{|it4Uw-=k+VlT6U;e-I>i_*W{~x~l z|K$Du=O6#S`uzXxm;WEW{r~*q|F@t2fByde=kI?YU>F6XAuyCfK=CIF(E0xvbU>Z} m<=_zzU~q6?um%8<;zWG_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-split.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-blue-split.gif deleted file mode 100644 index 5286f58f6f798184c3eeacba1352cfd39b9ae03e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 817 zcmZ?wbhEHbWMbfDXlG!Ub?iS7FpPrH5Ezjmp!kyo=M_wPS^_`om@~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-loading.gif deleted file mode 100644 index d112c54013e1e4c2f606e848352f08958134c46f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 701 zcmZ?wbhEHb6krfw_{6~Q|NsBg$>(oA`P8%SHjuGk&%@0ppYOTwO7TCppKD04vtxj( zk)8oFBLf42;y+oZ(#)I^h4Rdj3>8V47nBGRLn+Q9-(eXZMC@T`q-A zfguTok_rhvuF+B}YGk&S-hZ1Y!QP;7UE)!jv*adK6)hob2AOf}GE&w)<#=MknJHoV zY^}*Md|xE}K6*MO&RAU_^MUKk=Djk=g^pDJi6uprK3M%`#IdVL zUEAw4e{ zmg0{~p6|Ie&p`6H%mYO|r)_gjg|As;$iv1hQk=MZgX#CFjEx2xI6HUG&(-w8Y7Wpj zcm93g6udbnGzoX) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-vista-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid-vista-hd.gif deleted file mode 100644 index d0972638e8305d32d4a2419b3dd317f3c8fd3fe2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWMmL!XlGzJe){5xGZ#;uy>#l_<(QpFT5;g3%Bd$|0cmlLhGf{|q`H nPk{0S1BVoYrq2Wc#zV~Pyb=r?3JDC2Ol*7#9t#p29T=29Ey>tSt{5 zHY{*#Vsg}oIT5h%K(m0QN{+|JM3-h^O`|Opf{7fxyq0BWID}eGbgMYd>zNVs*sDWV zoA1qwjZY3uXHRaM;~D(iZJx6IEfY?Wr2(@o4CQoZZdq`CwriwbsHEt#km;etaZ`6L zTz!3gENh*F_qI0?jS`nu#m){}(7wIk@jlUvh3oF_E@dsdaeDjvxJFSXZaJBV1#O2r zgyqE~6rDPbPjEKrQ!sFDJ262wU4TQ;rQ!Sn=9UHq#|Nzf3_+{e1Rfn?ZRD4$;FDGQ z#@r~Pu^>)X$(*&3x9Pl?tj&%CoF~dRyY`d67r$SB{>v~5Mnhoag@EEu7NDp9Gw6W44$2b@93l*? Z95Nmo7Bnz$2y4ZhC{SczU}R*l1^^j55kLR{ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-hrow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-hrow.gif deleted file mode 100644 index 8d459a304e0b224f8c28d6b7b585da7019d28cce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 836 zcmZ?wbhEHbWMYtDXlG!!aN)x1H}BrOegF2|hj;HkzW?y)!^h7bKYjW6^C!b77!85p z9s-I#S%6;r&!7YHC@4=ba40eea>#gWNI1yM!7mYUVnf4WCKe8!85Rx=4Ga>@3=9GS G4Auam1ttan diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-bg.gif deleted file mode 100644 index 0b4d6ca3bf28ba44b4ee215fddf936aab7cdd5a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHblwe?DXlG!!aN)x1H}BrOegF2|hj;HkzW?y)!^h7bKYjW6^C!b77!85p z9s-I#S%6;r&!7YHC@4=ba40bda>#gmIKarv!7ZX-kkHV;z{nslr{jQv6El~jRSSoL H0)sUGu7M?* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-sel-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/grid3-special-col-sel-bg.gif deleted file mode 100644 index 1dfe9a69eae133929f3835ffcfd108959539b9e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHblwe?DXlGzpb>`cJ$GN zbN|hshj0HpdiUqa`#(?L|9SS|&x?`0o(b_B3_s=d77u3+H|!r zfbs+bM-c-fhm6OD1qYj1`88rr6eKbU2cZFVdORzJ@!m~?8+%1KMTTg@3K$aq~=^PX>8{)(q7 acp2+dVHKAK1EYrP>l5}X$w&(@SOWm68Djnb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-collapse.gif deleted file mode 100644 index 495bb051dcee00b837a948af56f7a59e77b69aa5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 881 zcmZ?wbhEHb}Lc00Z?nwEzGB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand-sprite.gif deleted file mode 100644 index 9c1653b48dbd2d4bb00886c379ba3a66813737c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHbuiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$?_tHlbAgvKT&29}T*1_wr_8B7v4Oad0D zH!!O=%UO7AS#fc($7HS8Q(IPEULLU6Yp&PURaaMg26lV0F?{M|skyG2(-{0TB%q{1$Bh!Jw8USBOURwYF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/group-expand.gif deleted file mode 100644 index a33ac30bd2b3758ab2e003f70ce638ab77eaf101..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 884 zcmZ?wbhEHbbN~|U;Bpe)@m>5|?LIe~TnPxDF-7pDQklw(o P-YjR~vE{{q1_o;Y#^^iR diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hd-pop.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hd-pop.gif deleted file mode 100644 index eb8ba79679eabb7811c3d9d1c86c43bcf67552cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb_??HKjfkTCXkweD9 mfT4kbgI~?WW5NQ*7JhN9o*xBDE*)ahRw)@D7aeL~um%9t9ucMh diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-asc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-asc.gif deleted file mode 100644 index 8917e0eee0cdf7758e83c4cffa7a7239f72b8427..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 931 zcmeH`u}i~197Zo~Emb-ML>(No#i13!1{`|2)F4_jl^X=3LnUJzge<}>RZc~zP~kV; zB68w#pu>SnK&adpIt5*dn`7OIQ?33Dj(x+oeanNlwY^!!2PQI6AN?^vMGITlu?Sc$ zU>9uS*}igoaC}8PN`jCCnovooc75v7&|^Bl#h|GI2x(JLP!wWjlNOK|~-m_dM?T+-E!pI0dd^5l}(d@Glq_swQ5Q<6ypk{;!;VaqFyLusAH|W zI_^hNH}3WaBSr@P!$9skWgujrrQZ^Mn?RWcN@fn{AM5KVovc^P{B4D$=SroI5_&zI zNSF`DRwb35%9fAbth<-%@nxq_$~TO}IN9OvPh(dz1*g;6JvytHv(;6&xjkRcOr!mB r{VRFNa;Pe5osHT>5@ibIb~{3g+0C%lYO~3O6<&R=-|w9m23q?84YkzM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-desc.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-desc.gif deleted file mode 100644 index f26b7c2fc5836850958f7f2b1fafd3988a988d7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 930 zcmeH`u}cC`9LIl>nH9kiSwcv;h)RPe4nCSX#PT4JtLbR)IJcwe#y6z#3aSf)9!+l$ z;%yxW@kSwnZWM)ZydeVHiWX}!?QdxG!)N_2ANcN;ig{#6Ai)s+7(q%#GE!y5mQ{jO zj5MrhrlNCIcT|&WCe|#b*{*J3-4-SmmeaOT%60^HIHrQgae`8gf*j^igs3uBp{hnT zopO)5V>`?=nQ1YLFxzIBGSTNY=9rB4oG{nnt~U^b3F->w3Rehk(B^L2>$m$u&+|JS zzvF-O{o!cJw7~xri2now00G#VJYn()2%o@AE8lw!UPJ@SiC{BRyCfUg+)-YByjskr zv+Ug{Ji~hAw(%`jAsUlHdvfpXd_GaEWO`qB`!@?~^gbD{hpr>BT&DZEGYhLy?xoZ; n!ca~nNw;=d4=v4s)H*Z{&Ndrqrwj#{39jU-m51Y}8o>51Tocwt diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.gif deleted file mode 100644 index 1596126108fd99fc56226b412c6749c55ad5402b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 955 zcmZ?wbhEHb6krfwXlG#X4~ou+bjZoeOV2FG$|=q-C@C(jDlf0eD{N@b6W`Inv#*zP ze=o<1{(yu1+=nJ`ADhB`dOG8|nG9#s|^2dGCVn`{Pc*@>k~$=Pg%ddVgCO)!~fR||KBnE z|HJVAKg0iLR{x*dJ-;0I|GC%y_pblnMF0Qq{Qtk(|NlOXjV)~*Jzd>>6DCZaK7IO( z88c?ioVjUP%kt&RSFKvLYv;-0XzkU1m_xG3of4~3u@#FvBAOHXT`19w_f1o=? z!B7qX#h)z93=CNeIv`Jg@&p6N42G*5G9DWiIGRQ-bEs^3`rv@RCy$K9p(kC=rd|^` zST-*?>B_{iQlwx7E2E<(Ghbe(62oy`Y27&t0f`^nn;9J1SUxr?H8M5pwCs2h(8SWt zC8Qv+=HXHgep#c0o(mriDDdjJR6ObU=;Xr2&gPqN_0-kZOwH=MQtsX=WoB-cUnB8y dW3n5EfMAf!nn#R>TRBB^*6i?z@O5CY1_0nG4B-F( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-lock.png deleted file mode 100644 index 8b81e7ff284100752e155dff383c18bd00107eee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 648 zcmV;30(bq1P)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*hb477vONgHQkf010qNS#tmY3h)2`3h)6!tTdPa000DMK}|sb0I`n?{9y$E00H1h zL_t(|+NDy@YZE~f{$`WrhuKPySQAA=4|-5UL@Ysj^nd8hiS;2Kdj#HUllo z8f~>&*KFH9Nwz?Ckui3oR;%3`NI(gPUDtho|G}f2_3e8bT8ASerBbE5)1bTYdcFQ| zZM?C8k+I47`6u~>51*b--wCz*ER>uRr zeV-UkHLH%}72i$a+1i|RAKlWyIlu9^60fuoN4rrzunmYfG3Rj9y^HEzZv5(CEO81y zUYkzkSk-KQ`3%0SF=Q~vI7Aru=z0O7P{Z@#ja`PhX$8v2D-^Gzc;YIGcnR19E(0MI z;kZD@0aiO(XrN-PsAlqHZzKK#l1tJ_)zheV5(%VKYS5UK?$7C;0+>qp-G76P-YrWc z5ZrIlD9FnLDKc3)8S0<dA!cTgY+CR4-a*;u;!NrNF3LWTlP5a1_; iES|Z7@j-3=)A|j?vD&^)Yn&Va00007>1uYXA>3Qh}beSb(Ur!W`$ZoRvwlh8h#GSA{v3P9MZmob1&N}#H|)3 ziyhJ(U{)KHf*@)Iy5?}L)|RKuO{O%cx#h;IvM2X1`q0Jo18y$3o31q0)ZQR~04YGX zfXCOw7l;j1uOz`;`%xPF|1H(H=TQ-Al80O7c-*kEIp@ZM``Ch}Whn7a@ zEo{qiRYg+i%R z4h#&aR4TPvt$O^~PNy46p*I)|Mx)VWGFdDZtJOL&G4XSL3{j3aZnxWK zXJ;3eLR8p^IE^@iXhU=a0)b#Kw7t0&jYea!SUet2Boc@bilUOqB;u|J|M|xX6jAAP z03n=6?Mi(Dm?nrZ^SKu7#oi7Bm%1nSA1H5qaf|0_D`c0ZeXQSbMRJ}Wp^ujFWEojX z(Y1{1lBcW8em3h3o6B)FgQ$TZv?6jQ8yMxx;o>^&qx~ghy5ef_6fHB&ac3`cuq8MD zSbdMbr>J*|b@#!#g0h@qxe*x=qGVcHY diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-unlock.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/hmenu-unlock.png deleted file mode 100644 index 9dd5df34b70b94b708e862053ef4a634246acc8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmV;q0!ICbP)WdKHUATcr^L}hv)GB7YRATlyKF)%tYH6SZ6F)%P+<{wS~000McNliru z(*g|-5GqRX(wr!towOa3bz1}%hRS$Ze*UVXl27U>F*+kf-M;&k-s!`fDVCrZezlf>dy^3`BTW$z=L>EIW zO>?T0B!*En2q>u<@}12dniz6|2?Qm9qx{jpBiX~P{FQ(#@rTzxF``)#1i>x@j&6Pg z`g9}R!YZ+#Bpq}r3e{~P5}$S=h*)1OVUmx@SN9wqKg;4@^1P3fXJWAV73+q9*IOoT f&)vjR{Ezq!d`RXXnklE900000NkvXXu0mjfw|6I- diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/invalid_line.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/invalid_line.gif deleted file mode 100644 index fb7e0f34d6231868ed2f80b6067be837e70cac44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHbWMN=tXlGzx_z#4mU^E0qXb33&WMKq(T?a&f@&p4150I4La9D7liGhiU G!5RR1hX@}4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/mso-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/mso-hd.gif deleted file mode 100644 index 669f3cf089a61580a9d1c7632a5b1309f8d0439a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHbWMYtKXlGzpd-4Cei~rYO`oH1Q|BaXbZ@T<{^OgTwuKwS8_5ZeO|94#b zzw`S4UDyBbzVUz0&HsCE{@-`&|NdM558VEL!C+hQ;zA>HJFm1! z#)%1x%x&D_IuR=Z8kt%-g@N({4h;>A%p3w50S6iynb`#tJSI3aHnDO`7-U>H(Adn* Pui(%j;MmmCz+epk$!Kdz diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/nowait.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/nowait.gif deleted file mode 100644 index 4c5862cd554d78f20683709d0b450b67f81bd24d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 884 zcmZ?wbhEHb6k-r!XlGz>`0sG^=;33>fanOrC>RZa5f%c9KUtVTUe*B-pgh6A5y-&E zA>*-O!NDdb7MYkC1`iK4@=0rzWCSQRbnt4Ywd@dF=+rMIANR*%(jvDmG5%#TnwOp& kU}SchrxH17*#QO%<_$5P0_ncfbgjEYUKG8!(7<2~0Pia+WB>pF diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first-disabled.gif deleted file mode 100644 index 1e02c419f5e73fc1ba5770df0448d44adf856288..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlGzZPfyRu$tfx-s;H=_udjFb@6g=b+}hgO*4EbE-rn8a-P_yS z*VotI-#=;6q{)*fPnj}h=FFM1XV0EDZ{Ga*^A|2$xOnm6B}gPhY%v@z$+dw{PFR zd-v{x2M-uV!Dt8!L;Mq+#E6<8x|aFW_O4e+3))3Q*|Q=94?bWMk!6jGP<+(r$fM>Xwqe7gmNr&4?FkK$jz>EMMFb>zJ~*Z~ zvMU=|C?p6pu`gocw@ENKkig96%Ptk5a9{xwcPOV4M}k2k%Q{v@i4+D0okN>5F7xql HFjxZs_zi%( diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-first.gif deleted file mode 100644 index d84f41a91fca3a0ccc1107a78ffbf7b62c527afb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 925 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!N5_)V9X)ov0=f%X7nX_llo;Ppa!i5VLFJ8Q4$&%&Em#6pV(z;0OW5pDfG_ z46F<~Am@Pc1OrC}12>0^$A$$5o7t@;-Y_UNJMxKf6&W}lT+k*Y$eyJjc<@21kdg?` z9)m}X2f37ODg+`IICZeGskVGL@ZdlLlaQT?!H)&bz6?zAIR*(A8e5nhSgkHN9C*OQ m>dC5ipkT8?(+Va*AAy7q4&fY(0%9#)p=)k#W@Tbxum%8@3U^Ha diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-last.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-last.gif deleted file mode 100644 index 3df5c2ba50b143fca7d168d5acbcc4404b903ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 923 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!N5_$V9X)ov0=f%X7)sh7DeV(M==$yO&0_YC2+|IvM<}Q z@ZbVY8B+}&lf=VK2L;XIwg}8jWa;H%bG(qjsCck}M+|z`(?y z1M&eVPcU$JFtBpScx+g3u$hC^!6V}XBXb*zY)A!1phGj4Fjq*7gQ62lFOR54M?r!E kLmQ{U6cz@-#wJD`MJWvdVWq}d0_-7oPHt8|*uY>70KTb0MF0Q* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-next.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-next.gif deleted file mode 100644 index 960163530132545abe690cb8e49c5fef0f923344..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 875 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!NB3cV9X)ov0=f%W)9;69vKr@Ionu*A5?G{Hgn3DYJ|un wK6d5q<#D`_!KiqUp-ntt3Jb$U#ts%8MWY1*!jGC}2?&SWIk{Q=U;~3S0KQg&YXATM diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev-disabled.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev-disabled.gif deleted file mode 100644 index 37154d62406ddc064dba311b95f554e49ad38003..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlGzZPfyRu$tfx-s;H=_udjFb@6g=b+}hgO*4EbD-QC;U+t=4O zY0{+0lPAxdIdk5;dGqJbU$}7L;>C-XELpN*#fp_HSMJ!cW9QDDr%#{0ef##^yLTBz z!Dt8!oe)s`$->OQz{;Qlaxy4SFmU)VaC69bY*=uxnSOV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/page-prev.gif deleted file mode 100644 index eb70cf8f6a3b7f524bbeb3656d875a823b27fd7c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 879 zcmZ?wbhEHb6krfwXlGzh@tC0DJ54uuo^j+di-h&|8QW#kzUrr(*H68ylXk-(>4ag{ zZHv4+cEz{tOYf>=ebOm>XHxXSuI{Hx{sE`lD_*51{Hrf`RNeQhe(3PuA-LgMaLe7$ z)_W1{_x-!R`FH*eYuz6C>RX^ z>V<&fPZnkd21y1TkddG~!NB3eV9X)ov0=f%W)AK)kBA8^Y;DZmPc|?ZI=9Q{X*oQZ zkbJD2lgIqQijPiCj2*mD6%7sx9yN0CvxS^laG;@KrlbJNftid9=jS`{vav8&0{~Hw Bh1385 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/pick-button.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/pick-button.gif deleted file mode 100644 index 6957924a8bf01f24f6930aa0213d794a3f56924d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1036 zcmZ?wbhEHbA}e@6f*BUeEG-{mbu9UVeYtn)@A#A9pQ#+`IB&@5(0= zRzH}y`r(9CPbRH>G-dUZ>1!TLU-xM0+NU$tJ)FJ%!HkVh=4^U8ck{CaTb?f6`F!=h zms^g%-go-h&Rf5C-u=Dz!SB6~|L%M6=kVF*ht9t`fBVhRyMGQn`g7pPpQDfe9DDTl z(5wGPUi>@u`u~ZCzfU~=ed^KQvyc9qee&n@+yCcY{k`z?&xIF%F1`GB>D9kWZ~k3* z`RB^(KUZJ||Ns8~&oBx`LjW}d6o0ZXGcYhR=zxSld4hrCB?B{ujK>Cr zPF^XagaZi+ome=9Dmm#SD}7El7CSA;=KXekY^RG>e-{ zuuVYm(pR@|5zQ!{2@Y3s!WlFkEt+xRKzr=&*z_|U*@qgNWbB##KVWn?)_GXn$>4`} z#Rk5^9iqw$CMLJ{owi8Xkg$-crJaR6?!tz^#b0>Dw8Q57c+l9;Af%gcqV6G6E2r=p gYaW5X0}L(q1$Yc3_9+}>;A5Sv9e-|5r2~UC0H_cnr~m)} diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/refresh.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/refresh.gif deleted file mode 100644 index 110f6844b63f04ee495cb6260aadccc5c91f3245..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 977 zcmZ?wbhEHb6krfwXlGy$h}b9*vsWVToJh$rg~Ib{73bBfFRNEyRjIzARe8a@{G?U= zS=*`;&XtFqYK{lh9g^y}Bh~OmX2K7phHF|4mvmY#YBk-m>AI%V{Zwn}AFb*CO}Zah zE&Ol0{J&TG39p`WUhP-C+HU)IUUQmo-)qvfh`zI76Yqx1zV0&XfzSMxLGvGbFMQ~+ z=(Y3m{~l}q`>*>SwD@7vl2_py{zq>5pE~<)_MEHvb8Z#%9?x5TCvVmLlErrtmc7Ye z^(1@q`{eEa%QikQ+y0|u-~Un|+W)`u;QzYA|67+{YhHeP%Er5`D<5=iecZe0VgIfd z6ZSoyyYE@Yq4%wa{&t-D-*@u=lr#UQo%uiG{Quc!{>?l8fByOZOAkC-cNm zdAaJ$n+2EuFS_`D;g$bOF8yC{^Z%AJuQpuyyy5=;?RWm~z4m$Iga5mp{NMZF|DH$x z_dNZ7J^Oa?<^NmHzCC{Z^XcdR&%XSB{pru! zuYbP%{{Q3WpTGb9|NHkJ2pC4ez=eR~PZnkdh6V;5kP|?8f`MZl10$!5$A$$5)il%s zei$5ka6nGTs361eNrP~El!A@oXXa)eCC+CvI2;iHZM67s#E^NJN1wTgOT&i;3Ec;TOAjTi zTyP{|exu5jn1!2~IsF{O7w}9FI^s0Dv3!z%j9{}Lqr9=eiw8w24r1-;JbMZ*Iy$pR TTfCj3pwPfLY5NRjCI)K&rUX|l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-check-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-check-sprite.gif deleted file mode 100644 index 610116465e7e34fe6ec137d674a5a65eb44f3313..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1083 zcmZ?wbhEHbG-BXmXlGz>j-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9;Pl_AtZj8)e}DJP-90mRO_;lP-R7O^x9r-qeb1Jidw1;K zKX>_o#p_P2-*JBTzJq)AAKI|<;`aSlckaKi>)_Qrhp!zxeDu(fW5aL2&AYd5-M(@A-tF6WZr{0c>(2e#ckkc1d++>}M|bZ(ymSA_y$28PKYDua;miAv zUOssE@WI2!4<9{x_~`M2N6#KTe)9Oq(zkK@q?aP-hU%!6+_U+q`A3uKn{Q2YOFNRSt)Ivb< zCkrzJgCK(r$l;(o!NBpKL779wW5a@j%^bpFa}I1+c({#=)o#uSgQOPDOrxwjGt!z| zdt@$e$lSc_@o^LJpjAf}JZwJMArZPP=b&Sgps8HqqLPD`kM_zs`Roai*qqK|#L3VT zF?sR}KXId?9~w-oM=!LvF0}h7u%L13YL4V{2NpVaOx6sKXt0%-%sxprU4%n}F=ee| zk7OB3V$o4<2?NtNdOnMp+}aIPI1Cb!oedm&q`N#WDjn;2s@TV#Wb?^^L6Du@WzE4m zBH2;`fg2hOC%gI1Qk$u|ta4(CLnAZyojrZEhG#jire0bj>DOw0Oe9%D!a<-Z<>RHq z%WD>VO!l0r8@nULP;YPhBrdTFH4+!k**uiX3i z{QdXWpZ@~^!zdUHf#DSbia%Kx85kHDbU@w$^aLtQ^>)SRb9SKCQ``Jr`=eVAz{OT z183VTy}$iASS#R nB^X?DXxtttx-R#(S?*zGzsXrO9p?HCdj*-f<$NLv92l$th`d^G diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-over.gif deleted file mode 100644 index b288e38739ad9914b73eb32837303a11a37f354a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmV-71IYYGNk%w1VF3Ug0EYko000010RaL60s{jB1Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= z{r&#_{{R2~A^8LV00930EC2ui0096U000OS0Po$iSC8I2dGX-ATgb4XLx%wY06VC` Bj$r@* diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-sel.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/row-sel.gif deleted file mode 100644 index 98209e6e7f1ea8cf1ae6c1d61c49e775a37a246c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 823 zcmZ?wbhEHbWMq(KXlG!!`QrEOm%s16{{7(1pGR;1JbC};*@r(bKmL9F`S1V#{~1QX wXb24J5K#Qd0`%X11|5(uL3x6KLxe$C!6IP+Ln9*-6GOy_4GW#y85tR@0bQ{sTL1t6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/sort-hd.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/grid/sort-hd.gif deleted file mode 100644 index 45e545f74423d274d5ba7fd942349e9b6e377787..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1473 zcmeH`Yfn-E06_1O8OuKCZ05?;9y0{yY?;~WgRMsR$~K$2`D~d1@}bQ#*KE^FOzmNr zk4h0m5xA%*2nq5&mj9jr&@R9m?MLJ@ z28+?&*i;q2X{glmbaXwjt9hit_dI1))x{ir6L_uMFRHs`tO}FBO&#lQRo8}|J5?7Y zU`>9C$Th8w3EHL`Ba086h!(PEnZzn=+PIK2*LI5;-9YgM=D}nEMKj(5E_P-Pm7jo~EXPhgm4T&wVplL(D->;y1`B0^KR=R4S}*a1vj)fV>NEY1mB8Uq&zYI6Q%t`{**z!J+Vr;E@5~g9*=aqW{3>u}nt)+%y z;;>ng6u?b5{(;L^(y<6nxNxiv6hU01L$+fA6FPrm&HQ1X9CMc{2sC$3gd=9b3;|~m zeo4%+^eknA7SU=RVi9X;xUJr+UX-mqm<4W0%pznE9#Hd|0*@ZIv{eO*Nb# z12yCIrOhLLJlbn33DTB}t(F_b2bV4~y*j=}%v9m90(t13QX1^b_==P$D+H{5*5Mu? z8gKY>BXXf^7@!+sCzFj+>XgJsqfc(1Ya(r=#J=3 zlZtj9{~(p*xA$9X2mMtN6e0bM#^36uHAhJ9Q&;+@HQ_ThCJ=yPPcaaStzMs1DHP_0 zvw_E92pgO+s83$0SnZp{u*pvQ$A3#Rftg(VD(=52XCTzUftd4T-22$PQrgIR*gHx4 z{43C_yk?5j?(i$Mual4dFf?{<9Wn}qfaB%>iNwkdu&q!m&h2IcZ$2Th!C8}<*_&Pr zyKl`OZw8N)3D^4?RK}UoD=o00gbKYHy=yv32mZ9Dl8aIS8x^Z$2?NwcBLzFmZOtoW zzN62&u*QDIz{Fy}^YAXY&Txmg7ATSAhAr8K5fZbFZ*SFa$_qE2L|VVFHOI{wKE8B_ zGXV2p-56OO`rc4Z7g3zbj)2_3YjK$((`OUqD%*mgvS`YELYsVW1or1)YW%;)D$oE>#r zQ3z|D(W$Eg`c?NY^+fD&+nctrc25@u47U__J8-QW7NqK!$T9C@*SpuaHyFRRpIGae rj_Lao#za}+eaj_<`F9!mRdtBiaY8;H`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5a@j%?wOD iArS@)&h5PNMll*66^^tBbH?qtQJ{FJU!IwX!5RR^E;%az diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/expand.gif deleted file mode 100644 index 7b6e1c1ef82bc36104018936848c3ebfa6e05e6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5a@jO^j@6 iCK3sWhnx8sU0hxiEIiaD!s-`t;^Ttj{VdE(4AubXYdZG; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/gradient-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/gradient-bg.gif deleted file mode 100644 index 8134e4994f2a36da074990b94a5f17aefd378600..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1472 zcmeIx`%jZs7{KwDTLnZd*hMh7R3%&{VK|xh5d@TrMjeTpnq?_&b8`}Bh(kowLJ^R= zwLrP_Mz6F*N-1{`N?)K@6i}uD1>V*|OIv8)A|*;9JN<2c#7;i>=A7rpCpmEmrw$)U zc7mcXc@UIVGnG~gOy34*)9Li-becMyuD$~>)ERVj219+9F_Xbm-(}8ZvefrjGxzFd z?gQ+Z2W-&U2kcoQXO_sF&Em{uap$rD-W-Vsija6n4j*~Q*W?J0hYp%tpk9;bpv@I( z@`Tz)B2B(fn=b+vZGl)@(4Z|8YYQ8+MGfzZp1v;z8bNg>jk*$vu2iBclgyVj>B^es z9|O{PvUGvmyzs<9PmwK9WcqTTMPJ^kuV~R%wCXE?Ha*qBP}OFjwi~K|4nuYOVl`;T zVhzx_SPOK48f&|ZG@#o^cQDa=jErs*qsPQ}W@7f3n4r(hETGq1*K1~j_Lq?Dr%LqcFxvPW zut}by5*6B{LZvEO(+Ju$Vv_!sOuZvAc4ePkK}Mg^X|R8{wv3g3jV&Qm0~*o(w;!4zGtP^}q4TE3f=4jcq2s zNTj41IT7{z(FAgK^iIzZ@_2j+Ir8!+!Q#r@%9(ju7k_5|Ghf7eqx2?7%YoH4jP!wx7HA*Q43) zwFOW=pP6ly3pn=?dHpWVl+z~h4aA7q3Dbmfk>A9h*D=1j0=ZkaJtNDl4|Dy58=OQ4 zb=w|rEX#G|6q4dPk_gFV6VcYbmUmazi7x6i6Xb&As-j$U2PJ(S9-JDYvw05^=DZ2M z-q(%65iC7!Sf=Hfs~2MFb#cc_ASYbPO$Z9ewDx-)GFuhcxKI?v{g{Fd`2H?N2mNoG a(II?Zs7)DAnPM9b=8J95L)rdV=-9sjoxm#q diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-bottom.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-bottom.gif deleted file mode 100644 index c18f9e34ac1f4d06525592c5ec25783921e7ab1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmZ?wbhEHbRAyjhXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zFlAunknz~C;9xU5Gl#^14GRyqF(|p!cuZW_z#t(WR-;k)_;9y`aa9RNLW=VQMPsFy Kokpn+4AubBJRUOu diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-left.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-left.gif deleted file mode 100644 index 99f7993f260b374440c5c8baa41a600eca99d74d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 871 zcmZ?wbhEHbWMxohXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zaA9EP;893e(9p!fE+S&!pm?~AUD|4jgy5sYono4CYdSV2yD|teHi#$`Jzc6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zaAja+k&tj`IMB$%CgZbW!-Ix)HhHZSi@+q84iWvZBN>K^-5Dep8%#8W7*0-Pa>$EW bxpC?7J_E~BDJKIG4z;p#3-JgDFjxZsq+}v; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-top.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/mini-top.gif deleted file mode 100644 index a4ca2bb20aad89264b9022fee88ee29154dfb192..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmZ?wbhEHbRAyjhXlGz>c6N36?{M+r#W!!>FpPrH5Ex-0p!k!8nSp_kK?me-P@Z7m zFlAuo;89qx;9xU{u$s(?fCCNf0?JM-3L76eGxBgot>IYk*sW87)#{JM#>MWF#5uKM LPHswdV6X-Nu*4oA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-collapse.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-collapse.gif deleted file mode 100644 index df2a77e9cc50cdb15e8be856710f506d462a9677..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 842 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPwfssSTW5WW+W=1|P io&z5e4!5x=GEI;OeCX1}EU(tHE{jAJP4AubO%sO%a diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-expand.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/ns-expand.gif deleted file mode 100644 index 77ab9dad2948270706c9b982c5fcdce78940b4c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 843 zcmZ?wbhEHb`0o(Vu;KK>|7RZkKlk|m`6vG`Jo$g|>HkYl|6hLg|LXJq z*I)d<@$&!8m;Z0Q`hVy3e}+*o8Un*81QdU=FoV3K10q0qf`LPWfssSTW5a@jjf_kR jAsz;b4DD>fMm823AG&mK%ZJ76*!b{ZzXCfO3xhQP{>?dp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-close.gif deleted file mode 100644 index 2bdd6239987b95025826fa39f37a036d73ae1c9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 829 zcmZ?wbhEHbWM^P!XlG!MGRSrK@6dAaKf@>(4S|st0*XIbm>C!t8FWBi2jvL{4k-pk f4i1Na28TvQ9=?!{4GD)^*u|AnEG{HEFjxZs3+oT= diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-bg.gif deleted file mode 100644 index d1daef54c578cced19b7f0c3074dd7a23d071cb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHbWMoKTXlGzB%sOhAecUMblu_OpknmbK5V>R(wmyk!^#qaiSiLO}5+3(z&}UbNe&Fw0C0UOPyhe` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-light-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/panel-title-light-bg.gif deleted file mode 100644 index 8c2c83d82536f2e1e8c1fa15ccdf6683047b1d34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHbWMoKUXlGzJdGFVm`@haV{B`m1uPaY~Uw`)d){EbFU;TOT=Fj7|f1bYo z^Wx***Ps8s`}&t*6pV(zunPgjpDaK>{b$et`3#gN7&sIdqzxh#C@?lLvvCPXC@3&A WvZm{QhJfNv7G{tF#eZVXMX8A; zsVNHOnI#ztAsML(?w-B@3=BFTX;5xq;Lv4YLV0FMhC)b2s)D9)qBYY9s=7v2nHV6X-NX@DCv diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close-on.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close-on.gif deleted file mode 100644 index eacea39b623348f656de9a8f0df4ac4b74ceccbd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 880 zcmZ?wbhEHb)z|%kKX-x z_TkUV&wm+4!Dt8!#}H8b$pZA&e+C_p=RkRafy0-9okPYWK%u#rLy#**AmKn$J2Q)p zz={Nh21Zf+FqsJojYs=sS(PMy7OF5cvh&sKnGv+0v0q<*pG<%Q!&xR)rDrk@3zqxO MXKm)=;9#%@0E9$42LJ#7 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/layout/tab-close.gif deleted file mode 100644 index 45db61e6000bedd9a4eacdd171d99a9af159389b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 859 zcmZ?wbhEHb+a1fq{uZ2jn48o?zgxVBqGE@d#MZ z(99ty#S`H0kb#knn;}DEVv=)*u)3Vdj=;yqxu0#kX9cC0)w0klmAo1XIMn(o} E0NP7EbN~PV diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/checked.gif deleted file mode 100644 index fad5893727ee8a13f428aa777380ae97152adec8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 959 zcmZ?wbhEHb6krfwXlGz>j-2EYIms=0ihImdkJxD*ann5GrhCOt_fD7*mN_@JU|~Yh zlH}5*DP>F3%9rQXt#bJ9P}a7(ufM;0=I)-EyC%%tyKeK&xyuhMUUy>sj`JIKUfjO_ z>dyTab{)LB=kT>-Cr%wbdG^%lGbhhnIDP)=+4C1qp1*tM!nLy(uU)-*?dpv?S8v|E zb?f%+J9qBfy?6e~qdWJX+*RNl{ef##~$B&;sfByLSi(wRuh5*qap!k!8nE{v; zbU->ld4hps4uc|xjK_ur2b)<{HDXQ_Japi6Q1W6iYUvPA5Rzlscwpk<4sO9XmXjI+ zi&_OWe7|@wG&BoL67X4M6R7Omz-DfcwPk^l8<#v6OGU!M%_;%{ss?XfI5Zp-5OGar zYW(QXz|GEX#*rx~s>CVD%q0^Mz{1hH&cW`(j0A>8wr;ZvZ4rjePOb7*MGqXL4LK$% TI;tJY@rY17bXb6iiNP8GS6tA5 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/group-checked.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/group-checked.gif deleted file mode 100644 index d30b3e5a8f138bfbbfea3d1d6d5631a81268fe26..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 891 zcmZ?wbhEHb6krfwXlGzxGAUp-FJv++Vzw-1u&!ctt7CJoDF4C-YI>17M;4q>erj}J#1 znRLYtaeQ=iW)bC#?NNBB=*-HhDWD|4xae>zCoh|V$$>=XHZB1n7Kal~O{`q}VgeQu b3s{-ixj1G-bT~0I2=PqTialkbz+epkbq-F$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/item-over.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/item-over.gif deleted file mode 100644 index 01678393246989162922ff0051d855ea02b4c464..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 820 zcmZ?wbhEHbWMU9yXlGzpb>`d67r$SB{>v~5Mnhoag@EEu7NDp9Gw6W44$2b@9D)q2 W95Nmo7Bnz$2y4ZhC`fc*um%9+ToJhd diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu-parent.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu-parent.gif deleted file mode 100644 index 1e375622ff951a3a3f1ccc668061e81b9c93b411..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbOQz{a2h@&qVP zFmM<%@JmQ|Y*@g^%E=?8;=tJG)Wo9VlknjJLnFJO0!M|%0mo(rQBEC(fQyeBCb4lX KFcA=7um%9T95sFb diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/menu/menu.gif deleted file mode 100644 index 30a2c4b6c0458751f85126e8bbca6ef2ccc2ff00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 834 zcmZ?wbhEHb{Kde?(9Xc{=<(wZA3ps5|DRzLjE2C-3jxKSEI?2HXV3w89h4^+IOG|a lIb=LGEI8Q6z#`0voy-@k72&h=Y%ZQ8zP%g((!cJJT4@8F*OhYlV-dg#cp zW5-XNI(_EM*|Vq5Up;&A+S!ZOuUxr$qNpFDl?^y$-QVDS9;ix)3mg1{>fcnt(^ zUcUi>w{PFRfB*i&hYz1Vefsj{%h#`8zkU10FbYOPfHonZ_>+YhWU>y30Obh=jxGj9 z4jGRP3l283GHb+~D0p~)!9>Yxj)(FAXDKG5ESZ1@4oAD0WI9R=9v*6Ak!N+{dHKMR zl}FY^$AdFLm4!>ptVN@75u5?#BR20ya;KC(goN;9V qqtnW!)kYaNB(j|}n>i$H<|I5^)XKF~L^CSn=7x7MEgZ~D4AuZjXTU80 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/corners-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/corners-sprite.gif deleted file mode 100644 index aa0d0ed8fb4a7af14a00f77c9fb0f456144363d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1418 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 F0{~gSY2E+; diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/top-bottom.png deleted file mode 100644 index 578ffb6092a47d9af33fd86615855ac328958537..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 218 zcmeAS@N?(olHy`uVBq!ia0vp^j6kHr!3Jb81>C#}q}WS5eO=kFvq*AsijL3o~JcpmZ-+$h~ z_Wy_3jh&1fGyeT$7yAGIfBVLN2O~0szQ_GbNqF=$At@m#iKWOT4w?3V`{ps}G&u8y_K7ar7g$G|QJ^XUz(U+@FzFvR&^~SSrx1N9d{QdWj z-+%u9|IaWAMnhnTgn;5t7G{uBbwC6tPcU%&XJBNJ@Yt}xfl*RO%SR(2fsIE%+3C!K zfJH7{j7BjxP82F1;}LV};`zC;>EvWJ`=E%EMNf}&8YCb3qp@(=*;(?+FYc`TtlTo+ zp}tPWVT;DaewImEzP~m$Twd;HFEzuf^wn|Zh|NiVI~J_IzD{1aLst9S;-<|R=j&n) zY}38n&-3V1@9&L`cXyZBTirNa{{A?712gkCNfC{QhXnY zwzDg8A8&6~zAsyC`Qh2A#m@8R-Tqnd^6EzM>veOgi(cJ6SpHx9zpZuUvuBsv!|mtQ z{`~sk_VIfC{dRwUzj*$9`+oWV#ozz3{+M6K{3(1v{q?!!3mQ0?c06e26_QxkD6Dkj zcI%WyT+_vK2mMcNg7q+sp IvM^W!0LCzFhyVZp diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/white-left-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/panel/white-left-right.gif deleted file mode 100644 index d82c33784d106a699921e8186376adfe08ed7159..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmZ?wbhEHbC) zJaOyO$=jb!-~D{{-ski8KVNw8<p u#Ky(P`xTtKWIQ)5IXPLwHYwudrlqH+8zi5aADi9QnH9n_(1;hQKfi0UeNEKzV_IL!CjML&jsnf`iQ*+*TO}5*nMB cm>F0E91a{{WZ^W*x^rUV;^X}?%uEc{048uWPyhe` diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/bg.gif deleted file mode 100644 index 43488afdbd4924057e45df94ed68690068fbabac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1091 zcmZ?wbhEHbvJG_ z_wB{IZ!h0}dj&)vzP|>dkKf;X{QmaSk9R=y`N#XuKRjL%gg;OJ?2_%ZN9oX+&1IxF3}_H>l603F*t71i4@GZyiE4sw%lkTl{?!^ z6Bo7I-L2~P;_hzq*8BVGLsu~TDQ|svxII!MZqJR@$6^zdt>?XQDtdZif@HSanM&4& z=Nke$o_R~@-`i0Xygcmmtu?PVY}k3~nAhx8xhrg)|NZ;-|Nno6Q7{?;gDC_Qf3h$$FfcOc zfE)$N6ATu z!(r;m%j_$9KP-wo!oMF4bR^Z#pCLVEt6JIYJY>r`(GBHu8TKMAH hV%craN*NY1aV$`Fvrs8ibZTIkpzPfzqoBZG4FEi-n5_T+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-anchor-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-anchor-sprite.gif deleted file mode 100644 index 9cf485060802498647ba462c826869140085778c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 951 zcmZ?wbhEHbRAb;`_|Cx4x9Z%wLw6p$`1JJa&v#${Ljc1l7!84u5dw-oSr{1@*cfy` z-Ua0e297BVyc{MB2@4t-nK?8-AM7;o6g|H=X=D(-<8}9T;jWog=1UD z4&$fCrm{73`D9*Nda=)=)Tw8u>7xs+o|a)(X9%W5PEyUaQmLAfdV6NU**cdOLJyDZ LX;5ZkVXy`O9&A$y diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/qtip/tip-sprite.gif deleted file mode 100644 index 9810acac5b323d99a641627276e8dbb9a3607d2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4271 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow-lr.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow-lr.png deleted file mode 100644 index bb88b6f2be887650f28b16726e470c09459b9c86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CG!3HG1zpHNqQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiZnf4978H@C8Z=JJZMPDQ+U>TNx_ce55uGN4u2%Q{wE|U g2=cJ=GBC0+@aVFNEX<$33#f^~)78&qol`;+0F-4Xf&c&j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shadow.png deleted file mode 100644 index 75c0eba3e101e3f32cef8bde7bae7383d849e935..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 311 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Q+l0V0jwbN>KRk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5XZhE>nhE&`-GTD~D$v~hjI>0gT@Uw(Rj}ARr(#+ZY|Nr|R ztz576{))TQsGN9FjsN;R=N;cX_7>}LNxZmoT3OARN%FUXp-|AVh0k3k3m;=qQcOOgc@EIAyfV(r;i((zEeg z`}y44S?ng!NoE&wcK=*_2F$s1%jHel(|yj_4>tF9g$FFYCZ&0@DQ;=K_|9xe0dH@S zX*Z%4Z8@@VyGFIRewDnzd#yOua)FIqa}4Vg?=kT(Xhpeh(=cjy2J|F@r>mdKI;Vst E09T24*8l(j diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/blue-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/blue-loading.gif deleted file mode 100644 index 3bbf639efae54ae59e83067121a5283ca34fc319..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3236 zcmc(iX;4#H9>pJdFE7h`I{IF)1A#Fh5ut4e3N)(<0RjYM5fB7KViXV+Wf2GhVF?My z8p38kNgy#qTSQzyTbo4$v2makQG0ZNwnY%Pw(PNcy2b&grfRB&4^uT&J@@0STet4{ z{m(g7m+Rx@;26sUn7}&#`1tXo#kRUXJ(#IG{cZ2ar0&XiSo)d6rQJ`SzIs0Y?&jDJ z?r|;aL+gQmEt8MPR?m=a9JfHv4OVPWZ(-l$@5b(F3Hwu-=?SUvOsQodXuTcr`jbg zmue$Vu8N09Dh_e9xvlQE}RY< zP_^gH0x!E?M8)GXk?rNLfx%X3$@{f6pI0?+Kk?;dhe?AW6T(vRUoFVDuvw5lW5cx* zM2pweD1!&j%R@Gl%J=ydX7%57Vd9aac9Z_J>yuRWsDXvpfXejiTGi@9D0*{1JmRSx z+(o+p5f5SNP%4rK?c7Uak@I(U5Qm-`6W}z|87ByZglu+UIDOG|MzrAi}g)n&=PI-@(_qGEL$9luJu=GC51YSSlYON&Jk&F!xvE-3Kh z{SG%WO1_bmQiLaOZ7IfzCtMz%2Bv}IgS}6Fcn-8*XUsdior!R1FP+0~smTuSB&VVz zf%;|_uc}RCy~|cE>3~J|x6xH|BXI_vp(~ndnd8mDl300&`-+FH%kin}hc=mCs%hOr zes3miFqML|D9IX68;;&V(T#Fi!L6K$alqGL{i;8&cZ;nd>kOMh(|6kH`LF^XKOrwq zLxNUq+(^h`=fMd!A!05uF5M_In*~Z)=E03kINGd4h?H`1sjE_lYECtsMqAXUHlDb| ztz~t~4_&#&)=(SpPT$}pu^m2C#P+$NIgptsh59o_aB_$=CVOaI1t6Z-IX#`pYbsB< zh|M?7Zc2#JvdYI_9sJexAvXPJ`0xYUJtJTE_q8tV{!in#)Xt5VTX?Dk(KVGgUDF>J zOmQR2olL&^n=o0HU){)0uU^Ko7nyQf*9pubO(n7qz8!z;@rwVd5(Z;2Mi3NOw(Ahf zsISP{-77F^cj&U|Wt&4rQwiIx55Xkv+JICKVr-023Y2NQ-^1L$z5z!Xn+{V-Qg_!k zsS%~BL4)v{RU3|Xc!1TF{ve7v8CP92?CwS?1WGB30QaD9uF95`VuAErtx79^3OqN` zy3iINB2;8>3`l)c`|MfOO^*_@XTAykFI^@hCY?(joWn)+0+(uL03km${3n;g=AW;0 zU%vGC-z^qEaN9xwnEJAqO|_LYrN%R8hpzH0_8s=xParG#>lYDcHPrX<`L&79gOo=_ zg_zw`8g?DEjrib0E6~$F-AsVCF5_=UBxRzsDv6zf`l>fM|7Xe>RwkeE*`}Q=LXvgz z5##-i=6o96LMVCQQrZkV)ML z$+XDb7)0G6xcj0<3SL1Yp(soP@9YeR_GX&}QYO$WzbBgmfngMpD*|i*WMZ_(^X@z7 zN0}n*g&Do;+3-p|0YLB_U1NcX|8OX5WnYikl1=d9-#CaDtiaS)2KVjQT5K6;sdswH zdE6{8%Tm5IzvpF?=V;|mCgfb3(0~n(Jtz$^$@V@!^Qp?#AMf4pt~>5Paj$cxoIhh~ zPS!Q<`2JDqH5uPX#9PBL=Shoku(XVrp1oOGCI_ozyc)0~L1;z`y^B@=|=DKmT zTGGk2*^arSvoI-D7-dXEqM%D!orfLWIRiwHZk(v?2+9+zL+=BW+eim*J9Zz%h7q{L z-+dB?Z-Y{w3$qyXNb2wU79-tmWu)LArn{~=c*N=z5S6~PU0eLP&{9qK`uEV!719?3 zODi0*g~hTmc}|If6<)|AfS{vsfs;y`$IfnLQHWZQxTqY0-N_xT`{}z;&=7=SlAnqn zln0~eATkC}2H;95@eXP*hG4{j!D8f2AMh9_4RrFrJ5R9ZSl58`DLOy%-RwYy(H(f* zkRovM`0{XlbUk@!_J00RYttpG@Xh~;f!K*mDs;16$Uex)rZXT!qbW*@!r^ul?qm?a z_-wvfgAhIX3?UHgk6!Ic)M#-Mf@t9d4-A2MVHS50gZnT>eN+P99i7IBLyjEq?hn`t zk7vB+NG0$dd-*j_BUYuAQ7&VHmPTxL<+eY9!>LPm;_niK1tSm`(58d!0rG%hB#pe<71F7@U|0=K0NXRx zTHJ#TCcg7=l#=e90j9PjaftUw_*}?l-jkcN4{*WvjMucEqCfPyf2r&N@|*3+^wHBE zO9tWj|6~F(dQ+tTsR&lE$s1P@b)E9~@h-eT5!+L@j~R*)kt~i+qR|09Z;fO(uS$lA z94LiZv9cP6hJ%V4dVNE+T9O}D=_Iu#!th}y|2zhj)ZWfX6XgJxyGX@`p7EWDXWL2k z00q1TEK-PR?iCC!G*Vg`DcRbd8Eyv`_&CQD8Kok` zfHj_!tN?{V>KI0XRV|Gt99y)uO(*D(vaPX0QRf_1%dw_{ps3rP&LCgyug|f(hMD&h zOAP&!R(D}nt`bED?+o%+hxdU_SWfikVU{BY^nZj5crlX!W63<=ZRgf4R=}KMOz;bk gbLa4==ILrY&j|BSk=*YeL&$au32X~HXm1O3TVD6D*;+bL!L|&=p9%&Yy z$rhfe21!Q^Q_foy-7_zKYFYTes_3C(>0^ho$8NPxd}^OC{AUPgcoyFJG`!<^QvZ{z zDbMnzKTnzZDQo7}(m5|{=DsSP^R0H#i}HnEYgc@4VPKfFcR$P>d-aR%Rj;~Nz3y50x_9NPmes$yHvFEn<75zjyE6rRxuF+*-OfrGSB)`bNRn_N2hWXw`F z1SB%CNxF5h++3*4-Y2c*)x+@dA!D0_Ny3>5#Y4>Oyy6-T9SR2-+2lNnp5aC62aVf7*|&4xzT^Yd-|U2>IL4xC*cvD9p$mdk;F#a0uwaxaLi_TL;LoDk6{ z_LiSPBA|iw_G1P%(cIo|3A36`3aNVZ2}m*>X-_;{7Al|+pwP(3%EG4-A<%HJk&(@q JpNE6N8UT=&&-wrW diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/glass-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/glass-bg.gif deleted file mode 100644 index 26fbbae3bc6d2510832a5ed709f0cb029c2c1170..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 873 zcmZ?wbhEHbWMpt*XlGzJe&g*4AiDYX)q+w@6G_xop)#NygPUI-MM=} z^!_{$-T!dm{)dbAKU@Mb9(=g)@WaK2A1*!oaQVT<%a1-@ehfsPt~~sB_0h*Gk3U^| z^yxZ~`{dJA5c+)e>E~-e^z6&^=U;C;`E>K?=UY!d-+uP_&hsxfUVOdx;_KT_KNv>A zXb8|f1QdU=0PXzGpaZfQlqVQC+!&%a1WaT)$|)>om2)9Mk%@&tK#^^Rgu{V`ZWgW# wlLCgu<17lIIuQpJG%~aEtN6@tSlD!$TihV!!H0*;9Rf;j6Erp|DKJJSK2bm`zya0vPFVPO+Hzo=EoiUW<# zt-R7&85aT+o!hu13_^AkENo)sW?~Im5RiDNg-b{!q(fjK6AOo^oXv^{2OL}3c(n`? z0um24adC-+cuZKp#Ka=XC$l2qfI}-2tCoO5K;nT0E+&=`4uJ(sK-Uz9X;c_IJk-Xo z?6;=E@bR%edFMWzN~5Qzrs*f2TT>bQ{@gtKWw+(i!R!IjKB)<%j$y1Z!Zof6-y9;DGq~5NJ}7gDVJu-S5NBXy HWUvMRItY+| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/large-loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/large-loading.gif deleted file mode 100644 index b36b555b4ff04f841bb2101514d8f95bcf7358f4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3236 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/left-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/left-btn.gif deleted file mode 100644 index a0ddd9ee8203b9fc45eb5ee78ae6bcb7e57aed7b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 870 zcmZ?wbhEHbSKV^zd-BO3vC604f{{R1d4Yk$n}L-sZYVSj)zmI o(Q}fL|Dq=uMNdw3X~iE>$=vYlK$lteqcf2P3=A_Zn3))?0bn93t^fc4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/loading-balls.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/loading-balls.gif deleted file mode 100644 index 9ce214beb5cd4db00666778d371223c605874519..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2118 zcmbW22~ZPf7=}Y29Kir0FmlXvp;AJNF@T|n3=l~OQNReX(lJsJSV$lTCK1p9Cy_(M zQm|OSsz3m3sz4Eyf*^8<#%d)Dpydoi0>~kDK!ll=ZaA%FI-`5dzq{YQ`#%5s?JSAx z1lbx&?h&&9gFi*>!1pzUs7{@wn9`hLm1fx>(Jl7@kz#sNtqbnGu~ zQe16TTxnMP)H3+<{h@2EL)RY+mC2N450&LIW#wqY$lA~nbxPa!&C zu$mg`OY>TK<}eSK12l%IF?DpG!V-0@d@BkYlXMMpg0lep88I%nH28pK5h2~o?kkh6 z2b2xQChiFj0eW(#g;VTwwMJ5_?EDvp>#4GK+r2+JC89@-_OzrTH4{qP8k0!hnWK}9 zap_c+yqJ92gY!};(l)Zfx*I7zMHm#j&@PQG;7HGJgfynxUXLv`)H1{Pg;t0}hNdo2 zEzCw6`;fZ{f2sO<=B5-4@O@rsqC&BzvE4Uy6nRmKzwG>WQa)|oDe}n~loonAD-5{> z?UL_)*}^8e6BlB4$-lNLQ?wCd`#X$Xp*I-B46&`*HeU)u(UfY42oW;RS(7rB(NZ(l zVXa9y3Fg@)|wdEu-^Mr$bM<2lcshb1_0+qU%7*YY5d4R}04b5q{6gDK#lN_Yz+3 zA)Yn+Y!&vbrDwhDx#Nq+`TkLUbU3j!TN`d7b-gn)W>MmQ_}fG`$z)HJCVV5zccWav z)VK6731;9=Y1sl!Lg@h;g8AmhLs23E}Fg8bsA}jW84be zJj3a&!EX+(#)=!^aPHuvE0%9D^z0oWQl`8qV(5Oxp*_o)rkOg&mhP%-u(0XS@f3?_`nfh@f|7!XJ# zk%OqjKq3JM^2G-d4?(;7)p&sbDCoC_x zFgMyk0aQ)fOAm{tLDLuoh6x2UK0R(bi$jkD1vEB~9?s%M(#YylM@%FuVp#;fssZ~@ e5vO$#&5sswUKi2&Xpx=kB8ZO`!7YivcK-uGv{KRl diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/right-btn.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/right-btn.gif deleted file mode 100644 index dee63e2113fcca680699455e8a56ee3eecc81c40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 871 zcmZ?wbhEHbSKV^zd-BO3vC604f{{R1d4Yk$hk=zr!efJiBO@aVPsE804;fk*WxQe}6c#pgOBlzkIk8cxsZYUC>4${T q6OT!%mh)U@eo8sjryPH%CUe8H16^j>kIqCIFfh!NVPs)pum%9ETq}wI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/shared/warning.gif deleted file mode 100644 index 806d4bc09385a98ef1ac19d25e30a21310964e7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 960 zcmZ?wbhEHb6krfwXlDR{f&hVn2muENhm@owhyM-@5dsqm1SVuCOej#8P@%A(LSO-q zY!KMcp>SY^z=a6{7Zxa7SYhyB1;c|43=ehyk-&!?1`l=wJUAfm;Do@30|Fm_AFI_r#;p+LTS5IEMaRKbDQDQU%2#0{;PZnkd237_gkWx^dVBna` zz|A4!v0=eMCPx*A6NM8NOc1gSve|KQ1H(iiYYu@O7ZQ#gR8*}I_~Dqq(8*@R^@`(W z@)HIIWfz?e!wVeVa#HbKFBUvx;Axbo`SPIg5jz8ey-mRe1I2~|N`gTPEE1a-8hE@l zIU)=NI+%skoc{dSsL0&PpvCnl!Qs*I)AH$&GFuihv|L@Lt98xe!$KzpaZ%Pw4hauj N9~|!BW@BNn1^{&szCZu~ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/e-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/e-handle-dark.gif deleted file mode 100644 index b5486c1a95bcc0f39a88c15c10c04ef7c3c561dd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1062 zcmZ?wbhEHb#gW zSa7hJLs%>3#D;~3+Xa-p=6GyebhKN-IP1=djf;=>D>!$_cy3y9a}Xwye0g*kiI*?5Qm)FE0;R>^0YG>#D1(BQ|H< zJ+*c9_4NsdyJWq$t+}~5+bHZ`26bb>Fw+9?{8q{mh;)M z;o;#9VePmxJJK5%IOMqVHRPj^sIT3W`5a^n+Y$P=Sr`RJG*P^>+2hm zPtWt+z3uJo9mTKjo!!0t{rv;Y-12^Vc6@w%VzPGpxjj2SKfkcpd%oY^U0+|{*qnX; T+}_>a-#<9q&HP*pKCAv-hK1$|Ns9CqhK@yMn(uI{$v4q z^gn|R$h)9C!NBpKfm=XAL80MbGZUwri^YZqhZs0z^?H5?BpvP&kx!db5t!`W$7S2b zqB-%Q$7EIBJeSUo%H9(-b?1e=ob=3RreXN4Gm*mSr)OK$9{O`qIOF^RkA5xFQ(IO9 zFA8Y)Qk9(g>dN%6%}IB6ZPp537_~c2R9fuK^(DT0C)w`)@-kv`_TxiyyRYTm+?Dlm z+u82#x%YQh|7ByF6IPITsO+X(*qn%W@yBY|oz3n@jiJwDpWpD!D2@#*RM zbouaqd#t{`KC@K){5zTIFYoRwZ~uS)Uu;d~r?Y35yRVo1RrUSt+WvO_e>SyWKknT> zJ%9fHy1zfqK96ts%NTLLo=K|Xej|%gL_(8*oyNju5wi@%W(mC&iq(=uJ08}`wQ)S^ zU@r4m)TA`+$HFenMHNXcqO(ps>K2aMv8dblS;yl(gIhO}`i(wCBu{X-7xARuS!$-r zBtxy6DwFLl{a7+3@KuG%R2RL@rISOsESFA=YWlf!dTg9#+RVgBGoQ{#TXpj3tc*=F z(`J{P%UnLE;@C>{IW_xUs!yq9`t^KTlbF|wh3RZvD`vN;S*=*yYqTq4ZlxC2%O&OS zey&(Dz3kM>?LPQFywyoHAYVDT0ajVyEf83S5 zYUk}~v)}G~z3g<}j<=J3>+SdwC9S{f)2`L|`~Ez7{eCaQVeNvw_itHmILNZPy5Jy> z_M8uUINa|T91(v1`~4w4?>U7>|FZqra8xea=i@Pz{v4wd67%mAp3VHu<2 zhTV5Ioz;IFV|>wdeI5}aFh%{jYv+pP@iy=AuwcHjMWHRrml`Q7q*+i$mvZu8$Qzn3`O RcKf}i-@V(HGcqz*0{{svxFG-l diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle-dark.gif deleted file mode 100644 index 04e5ecf7d3837aec9510f5467282c10f158a5563..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq95Nmo l794Em;N}uwNKib;z{ui|Vj-Z!(9Iz$HK#)0@qq>gYXJ2^5-b1! diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/ne-handle.gif deleted file mode 100644 index 09405c7ac7b321b3eb9170b1584167448819a071..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmZ?wbhEHbc63}qqP#3eHjE2L+1SS?XB|ZfS0S0RTeD^Ni diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle-dark.gif deleted file mode 100644 index 6e49d6967c08db2c02a3aeb9c1f3cacb9c8665f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq95Nmo l794Em5abeINJw;KWMp#S2{2G%=w_Cco6{kn+|a;a4FKuB5a0j+ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/nw-handle.gif deleted file mode 100644 index 2fcea8a9285dc74626ba9374055b25ab77e53a08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHb#gW zSa7hJLs%>3#D;~3+Xa-p=6GyebhKN-IP1=djf;=>D>!$_cy3y9a}Xwye0g*kiI*?5UEB1_q}2ZmnDnS(jHwY|grS zYU}Fj>k|%l$$D>Fb8~aX+fl6@9wVn{Oa!M?d$LFZ(!z@^VzW> zaVFC%HL)EM4v!B{Q1+hZvvbqa(=&{-@15DX`T6+;&fRjpySBW%ydrpY+}T}QUtiyl ze0rYm?rm>x?*pKCAv-hK1$|Ns9CqhK@yMn(uI{$v4q z^gn|R$h)9C!NBpKfty3dW5a@j%^bp7F()=GJlrmz>@~+@*_y+_d!cbc5tmb38XMJ3HH=_|=`0o0p%T&eFss>$PRY#l;?zwPH_g zS$TPRz+$htURzgPT^+GG>+Y$otFNz5INT-cy=~3S%^8FMbi#@YAI?A-kP`~v50 zIp1AdUS3`iygKgeuC1@HZ%95pZ|#k>jf~q0nRm>cz3u(|1I^s>etUL&e0*ZEcKo?L zJ3n7!TI4<7Z||eAWv;!(H3F^$JPCf70^_gXw#@wm_C+l$Bj4s4oFCb)=Y zKAGsDw(`j&AG4QFCI`4_KAjR0micsQMB2)y(_+eAKAoP>rul3}%CyX9Gc%U0d^Rg* z+skLO3yx_%pHp%z^ZDG0XDgr2tNHfw`TPbptrrVg#Ijy2>`+_vVo{ITs~3wWxM{sy zG9@hQ<LuU0IXmi21oie;-_ty;6~)vMJTjxl$oIxtuR03tF% AKmY&$ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle-dark.gif deleted file mode 100644 index c4c1087868afab5b5bfd329f52d9907eb1c0061a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZ?wbhEHb+YZ5$9Lfxg96SOJ k3mltSSY>Q9925^Vv52er?AV~l(9La}b>~E3vIB!P0N;ZWjQ{`u diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/se-handle.gif deleted file mode 100644 index 972055e7b297a702ab9aa2d799d133b94ac92315..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 853 zcmZ?wbhEHb{~M&wt%~@%zrJ-wdN* zGz5lq2q^w!0s8MhgAT}-pgh6AVaveCA>$E{(A3N!$mMciL!xsdyOP%wjSCG&yTw_> nZk(97*nvsGxlP1k!4l8OOsp$nb_OLhOgBgro5QJ~z+epkjJq?f diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle-dark.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle-dark.gif deleted file mode 100644 index 77224b0c06f1666685286c5322fb02b4cd2204bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmZ?wbhEHb+Yh5$94ZWq93m15 l2M#ndammSOI2<_C%q421Gvk7Sb33nm)}0d@l^YrutN|0L6o3E# diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/sizer/sw-handle.gif deleted file mode 100644 index 3ca0ed96df2059fe283c1d65fa1032a777e1ff97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmZ?wbhEHb_F_q!3-qVNZQx|DV-A6h!W?b)Wnj^{5*w_%-mFl zkc?6VBXb4c#3BVF0|N^M17j-_11m#w1ziJE1B0DgB7cDlD)IDnWxv59C8liseo9Il zP>8d@BeIx*f$tCqGm2_>H2?)!(j9#r85lP9bN@+X1@ct_d_r9R|Np;d_l_fHFK%AH z^6>thcW+(4aQ66_;|EtQS$O!!!80cg?%BPQLC5($P(5QwkY6x^!?PP{K#rTIi(^Q| zt+Nw$@*Xe{IQ-;9=l;Lnc?BNrIk1yMnla18!|Rfx_=~o=7sXGUdm8y8?D5mi^pr2Z pI^U;TAL(EB=a!G%y}ycg#aS#EpKsu3JPkCF!PC{xWt~$(69A`aaP9yA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-thumb.png deleted file mode 100644 index cd654a4c1680183026145066b4aa1a7802605456..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 933 zcmWktYfO^|6#dFz0*jkYAxr02nPDo(Y#3G2We5n&sxU;xD0?`TAk?4`t&?nHc7tSd z3BhbUwh=-{CW2C=R96rO(&5-gscoUWiha@ACv=ooX>pu=`*F^>IX5>s$;rK%mHE!r zP$h3lZ zsu&tSJM$EgWSu@k&1X2N$vNfP1r2#P<>bx>9-HY>X?dzQ`iE=Wlw;RNCAE=}lB(Zo z<6gMZclprm#8~&$>T1JWM}M<~-Ml+E|D-6_*cxWgU-Z?i6ust)nk;MoNq#u7uv;l^ zc%Sp4FTSFge0_U;M2mWF(hez^x65SwD7r47cs}l{u%vZ=dWdj%&y6Bm@aZmsp732n z`nJSRY5d(iFV7q)Zw^u^L<>z!SwVOYYiDTWE^70(u!`A86P*2iZai9?pV48-{yUCV9Ec?o@;sUjk=1>cAm88uY+&dR!6>c{!;b@zv}ZnqTHCISIq3j zrmRZR!4J?JEO}MEgUxOYRO$OSzfMm1HjkLN%MA;yI5!rveWW!)Se@qKRd$^E(bb#N7V}{^w%jXPw*+ z6yhxKh%9Dc;5!7ujG`J|4M0JbbVpxD28NCO+UBR8*c(lVeoYIb6Mw<&;$UDTwkjI diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-v-thumb.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/slider/slider-v-thumb.png deleted file mode 100644 index 7b3d7258ada4c81c6fc060bd5eea69524f0ddd65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 883 zcmWkrX-ty`0R50E#}rYbBu=wW5C%9+p|mz^KUyf-HiDg2qsADUdFzy5J(6V!F6ux{ zaM+2OO$`xO3Uq)R3W!vwP+G1+0l{9h^wh2t1P1Ecw;%7wOWvRN3Pjo4mW8hgCkSGh zfX~}W=_U$Ep}`bKs$wE3`9_+#SDKM~L?S(L_6#XL@#7IfeEd9_vW3i&r8Rg-rR1}uO-*=86B3}KEpj8RNJSwCe z<7ROQqPp;lkCMd%5%jZYyEu~r&Z91X zf9j@W8dR9k4|L3<$&YFmJnu7Kt{FYwd>r5Rl|w2Y#50Oj3~YoXAgst?bG&}PJ#5B*LU z{dhi%PAi5yumtc_57k?YzK3lZCO;fAuuj1>3uQ0r2GKeOg9r8x@cfIq0W`lshXs93 zIA`IVN8>P>-au=Idk*gx@Nx_tR`fbB@($(zCT8GUfYt`J8SN(MT~J+7{6rlSB;A?4 zi{Lm$j#55Vz~hQ9js9@RB1tFCELoIyqu@p3lls?9n^{Tg3m@givo8E|x9G0ECUCv$ zW>S2Nc)=b`i+*yoGx z#+_e9u4`NQ<+fT+t3SUpVSIPU;$N@*R&qb?%B_=I<2M+#S1hId9!oIRt6i-(mIr+o zmUzJ$m2>{w#i(h~Zhb8&|6|8ij!3;n-D6VqYdY^0h8ofXcZ&8bNx3$};+3(67|G0C z237+ptgBK!Xd(M@Vq?UoRC)CgD-;F^C*wA|I6wb-VmZG|v7&PSfrH%d3oaQ}7UiZq zmftCgdwjomxq$gFHJCdQ+PZ_EoJLm54s(eZpwB$-?_*CEA{yP4?kaf^!fVZ&ljHjyZH3qg@$%oTSO4z3`gia3-v=)~KYIE3!JEGi-~N64?(ft0f1iK&`{Lu@ zSD*gA`TY0Im%nen{QdCl-?v}?7)HTp2+%PE6o0ZXGcYhQ=z#15;&S4a5oxH0SN zs>{3yhr48VA6(hFIb*xfjjnHNf_V!bACgrtUw2uk;$t4KK*H+yJ${-Taz2a<42PQM zPKxkJ(vROCEp9#6VdthqhN;HZya#U@-alV!X+70p)|aQ38N94n84nr1IKF1C+YDL8 zubH>}>|d1e-fGQTF3`ljJvU-UF#ieLincdQJ1?_cSRCKycQ>=`^>ta}{qLqUet*xy z)BNWDJCWv}pR=~lGk;&w`1|`i_5=0rzcl^*E&k`x_V*!;|Nk?vt!M}q6Ulhc$Px7* zgo(%O#e-%}i_n8DB4HVctbU3M9=6GpbuB|t=_ytT&nMMP z`uTi9#V?DDDUEfNEBackRz9EIx$NhQITN>8zMMPtSf%EI+Fv_07qYUjFjxZs<-Km4 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroll-right.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroll-right.gif deleted file mode 100644 index 4c5e7e3958dd31d9591fb86b76bcea760d402589..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1300 zcmZ?wbhEHbRAJC&XlG#XDOwU%v(DkaLssvulIcf!H$6UdwB$-?_*CEA{yP4?kaf^!fVZ&ljHjyZH3qg@$%oTSO4z3`gia3-v=)~KYIE3!JEGi-~N64?(ft0f1iK&`{Lu@ zSD*gA`TY0Im%nen{QdCl-?v}?7)HTp2+%PE6o0ZXGB7YP=z#15bKis=idlbh4oJ2jiQWW7vW8%1R%X~mwJayU>VV6oTSu17E0R!3~kx?Aw2 z<@$QPLv^y%A^2nhXpR#NS^OQa!}QC!nD7;IO;8 zMx0HeKEtuD{z(do7CH|P>8bhKX)WCR_&kGEx1E$yOZVv&hST{9O`5VV%#Yn|$HjEy z<(27&ui0@eG=H;qZ?pX04-d`WZ8%~tlY3xKCG+ufGv&WNSh(rqhAS)OQxEL5Zr*!u zxBSPm6AoHE-0~gh?W8#ltoZnb3pn3T+xmtnRW2k2*D$RU8Q9-}2&7w}D*% z12@~1jK{qeQU;5eZN9yD+|MU+!Ku&XmWIj%k8c_&6J6zIs!Z}Wnz?wg|38VPQ_O=R zmrim{nwiQS9d&c*bki)!XH!#V?Npr=w<=O~cEqlqDszHP%~YA|bBpuojLarUwdpBR zFQ3nM{B-l#g8D}{RTia7NvSW+wu(|;lJ7N3eQ9yjE{%mYT3$=$IaFDxF7sq#VXy`O DM15!0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroller-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/scroller-bg.gif deleted file mode 100644 index 099b90d8aca10ad0e0a87552e5eca975a72f985a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1100 zcmZ?wbhEHbRAvxkXlGzB3f<)J-=TNYo33`GCmeE$39%ip(O{=Nqa{`~*` z?|&d*7zLvtFcd;S@h1x-0|O(24#=^fJi);6pMjM_#$&^RgUzhWECL4>ELn-DC~RnIVicC$7cz76!_!<$ z>JQ$${Hzu@UzjE8z|Ms$FE5w2*ptE~x+;X5$?(CI16#El)=4dqV*M?ebAwTWCGCLb z!rW*EhC5yYr?2V8>?~$a3FsDXisvX`{L|_%{qTbW%}d{jE|}`vc)XF(rY@$UsPV+) zrOQ%#E;pnzH`+^U=vaM8Kg*>5z~#U!(>vEVxDMCxM!#ZRY9ajM9&bW<)1iIUzyH}X ztY+Y{kkp7jH^=eevkOau1SA?YzdQ|GUUZ`%w(=VXldOd1+nvQV=ceVVf8Tof`}V7UcV7Lu_vY_|cfTII{rlwo-)A5GzWVg{)n_33 z|K{`GH(&m~{qpzyxBo!EFbYOPU=W9Z;!hT!>;5z7fZPbm6AT=|49qGs6ec`4(8R&7 zWpctG@o+1jveTR&8bSd<0UIDB9_$ireT@Wf$*vuBf>3d;uuMTd5FMl%bJhJ}p` byxeRN0S*aFO-%B91_mD*nV1VVf8Tof`}V7UcV7Lu_vY_|cfTII{rlwo-)A5GzWVg{)n_33 z|K{`GH(&m~{qpzyxBo!EFbYOPU=W9Z;!hT!>;5z7fZPbm6AT>x8PqvsJT@#i*vuiU z6?0<4!o%$X%3gCkHZD5aEoRSf;Kato$NLqWyJS2!B{ngr2Cs@axoPR?Y3lK(=6G&i zc6O>^{;NADH!nXw$F7-6)@zIMg+(5dwPLGER$g8nkZIQIwRKf!fAIROyQe}EudPcs z9QRji+nSq8QqHf6-EFLUdwW6Rq8{(<>tc3SeC{e)y?y=t)|&rZayE(v4-Z%JD#yu$ z8$LdsCF?v-Cd}yR=_uXgdorQM&(C|=Hp|(Dn7q7fhzYodz&w>VTjrBahiCSe0-cybJ4R4j(HVwd#&8~uB^?Te?#&2xA%OzoBzw} z2R5}c2wYkne}3QI-`_txK0V)m|GvM!e|&y@|NQ>_|NlL=Rd~?AB9`%>kwb08gC-uc z7Y~{R+%z7xh=gT4Y!xeeexOaJ?8U=&g*J^x9V*i@9(8IgTk)t%XWNTM-3I$CVwp{@ zWjyY+c(&qkpUt-ykNX|iG@ndx5zBls(L=3Mg^f|?!IQ}WZkkW0goI^2of?t0^69jg zvX@V%C$wokn~{{I(7=?jY~{0AIon=7n_X~B^ZA^TYnjjIRyp5UhSa>TCY|tnU?ix<%(si zUaeZQ?bWN*8;-eiy=G^vNqD_>$Fo(h*X{ZC>h<~qY}#)&91+WYv+;!5>NlHCNgZHd qxZtM!cFUEp?6+HQq^*9t?M~V2x7#1IX}{a?WSX}gvj__dgEat$YLPww diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-left-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-left-bg.gif deleted file mode 100644 index dde796870137f9f9e091100ec800072498b64f80..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1402 zcmZ?wbhEHb)L}GYXlG#P-SqhEz0a4Q{k!+(?}K;0UVi%X`tzT6U;lpi_V@FTzh8g; z`|4|fnTJWlvlbe=$Pt%A$HOF)Fva?eR z^IzRLxmo@E9J^*NS+5Y~3yVA^Yx!1{th~HDAl0nbYwN13eZlLq?w$%wytXdkaM)k1 zZEJ2WN;$tOw%SQ_jCSclKT^G@bGXMuX5aD#!Z;nSXxHI@h^gZ$rb^*Ecq2-#@o^_xJY?4tM{T_useY z=jRufSI4i9ThRFZ!{gKQ{rB(t`}@b|*Z0rw-w!MY*fbtAu<&VIVB}C+@t}#v?8Sp- z0XL0@Eh1qV4_hVDRy=HzDLb*yfulv^QHRR3j7Oas%T_$<(%JUnQMbV{jmJGE*D{iO znN$}%?z8#!;&HzNo92@VE@GKaCVHr?d@{+$?B$cmeq2iqObH3gd^$BEZROKxF=a2G zPETmld^RIxTIREv8S^wRFy(A}`D}K&3zjwN)<`^_abSv3P=;*2^VR!m?g2osqUGa~YHAgO|$}v}wIsv1D4-tCcI3t$MX; z&9+ysR&O{KuJwA&CMJOf<{i&gy53p&!*>FTG`_0A^YOCLDI%9Tv4Z}7o z?YCR5gk`_odLwQ1+6^oY+y}NlXw!bT^!xwa?EmKT z|J&;S;_(08@Bg5}?dtXa?f3tl!0hz=|JmyP;P3zB^8e-Y|EI_Co4xAq`2W}F{hGY$ zjk4q5?)u;D|MU9)A^8LV00000EC2ui00RIq000F%ARq)HIhN?DnrzyxZVbjHt3>W|e1@Q4~3<(Tm;RsAF1q~rm=nyy|06T&;ZRY?0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-over-right-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-btm-over-right-bg.gif deleted file mode 100644 index 45346ab145a9f4796dfbebe62d84c2a785e16b21..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 638 zcmV-^0)hQUNk%w1VJrbM0K@goS5=hKY(MPoOO23|ls}S{n3*z{nw_2~oS&kfp`)glrKhTo zsjIGrt*^3wv9q>zwYR!&xx2n-y}!a?!NbN{#mCB1$;-}9JI~T<(bLvq4b|7%TNc{f z;8YRc;pI&e(BTJr4xw7TUm@{kM ztU1F10-!^S9!C>oFt6t5zwd>cgW6PdRyEg3#3kK-k&AYen-@tJ?|=UP{`(&Y7)HTp2n_uYQ2fcl%)r3Npab#>C{HkO#4<3m zSU7BWz}U#Fsu82{@Bt$ykATIDjt0lW%z^?U8V?ebn>bh$O%xm^r7&}_$QvXWEO>f~ vokdbbz+rM46PqC~1H*!Z<&1OKC3FlnEYJv?!yK*^TN$w6U=tHF6N5DXg62z6 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.gif deleted file mode 100644 index 34f13334511d9d8efe3dee18e6f69f3d1277f8e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 835 zcmZ?wbhEHbWMq(HXlGzJee3<1+wafb{&4orhjVv6oWJ|w!rhM-?|r;<|I_6MpRPRk zboC(+eZKbS^YurcZ#@2d^U0T6PruxL`t{DUuXlmy`PX~TzukZFjbRjwhQJUE0mYvz zKv(}~&;hv}lqVQC6d3d)RyZU!wQvY1*c4o7ILO4xDIjB!uz;bFk%@_cgM+~u0EV(m Avj6}9 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tab-strip-bg.png deleted file mode 100644 index fa8ab3f462f07ad14c7dbbf76117118a302e35a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 259 zcmeAS@N?(olHy`uVBq!ia0y~yU~>SnxjEQ?q`I@C5s=a;ag8W(E=o--$;{7F2+7P% zWe87AQ7|%Ba7j&8FfuSOQ!q5JGBmO>HB!(uFf}kZ+p+j0P#=4Vr>`sfH6CexDft?u z8*)G)&H|6fVg?4eLmeKJnpZ&P`;>Yb*KkvN$ zdGGD72k(9{jDpb+7>*&J_>%?bt^W) diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tabs-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tabs/tabs-sprite.gif deleted file mode 100644 index e969fb0b7338c81f8e22e3f69f82fe49fb9b3d2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2120 zcmeH`|3A}t0LMR@Sv#(pzRU-6RFY!pi@u#ZcG;OPS3Isuz7>Quj<9+o%+>iHqydKXVUq3t_j~CU~d;1O=3^k%I zK@b^`uT%}+t{?xq&)D9te$_uGl4xEH&A%Shb`ERb%I3SIy7w}@coY$jfq&$NZiV54 za=zztL9f!-HxBy8kpUIxp8ygSBAEcv31nyzNTM!e8%TbKsW$>0{H=_AsuJ(WpBfSg6Eg;XE65o%BUvD{bXEk zOXWSPEqo%A=v#Hal?Wf>hPPG~`V-;UmYcp0i`uPV+Gua_+QM z+jV}9XjM%UXVRS6?YV-3@6U&nCSD1PY#jK)GL$I7A7l=yuRmuXLlc& zu@F~vWI*)H{TFEUl1yM1Q1?`aK~Y?SJL;YpH0EedBw1L87_?THz$uRK(*dzsGDIRr zN|-oDu000xBPZXiMrBDev$%^N#95@_X;=$Cd;!|xEBsJq?XSTrf4yxQ8O3r=d><9( z$|fA7Z?+Cv6}4?0d(}aA(YxVj&me;IkXQF!hcK$_x&zIB`dxH%z}@AAET`IkY#?-W z$p}0A^jgNzrjTXz(8BD)vKw(l9~dVr_zGG6(PpcLQ%k!J%WoygcA%1$&nV<~7}(J7 zQY@FzM+-6?Q<$mNZpzVnSG{=+X~duCio)EOmnf#~Nu{EgbFmx6bj+qJOSnb!#x$OQ zx309J8HCcIwJqyPQw7b|^|;5i*7XaX39QN3hPrj%RhD2mP!*TgGF~F`a34c;?haG& zx`J%V`8^&zq=y45Z4xVov0;gS$z^#J7eHm)^lR+#H!Oo9khi&`&-UgmsGutKK zo3JG{IQG`S`*8EoS+V&=lHg5rPQu)WxZ?7;?)XQlxt^mhNSa=H@?lM%-@f~@{?s<0 z&`1vYIN) zra0~MyiReB6<(**9P7x_+-5Gmp-umDajq_{K$xRXs*K1n9B%+@W8xbj8=()LXV1q> zMX*6MN)n85BA`R-8Mu=o%`(^n`+Em-BweC&$n`L*==eqTTw-v8Jr{{O(q~Nu5lXI5 zOmaCba9#xEHSd)AVCWluTNGO4?WKyhhl1J$ll<_EGTqg0SK=TsxEO4=3?n(>GxLWT z+Fs!J71z|k&D@lenZG({BP+%iMQDqn^!^rkIa&w7FRn2+vc5;h@EPdNBxq}`#kPbC z!!{vHsb7oUY(CXAY`Y?h>hbZ|hI1IH9cro1&PAQB85HRX%{3qI^-El@T)1yD;q6N* z*pLx1l<(NiH$fRyS&5sN5QggKUQUKG{0r|y+e1x{I|Dc3>xW_#PS&{kV>SHjg&6$f z11U-@noGbjlFRoKHs`+Mp*9sBYCBRn9lAbP_HeiTu9##_UP~ji_3{WK0b80cM#ok+ zttB1zXuJ7p=bEan)?Gi(v2G2VjIEI9b|-hUZmaplWs}LP1I{(G?igl@OCfy#Q^4Yw aY~k|oDS;V9tOD~>PCR>kAPR$l-2Vk@&nw{o diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/bg.gif deleted file mode 100644 index 0b085bf24e173f7a2568c347f3245bdaade1579b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 904 zcmZ?wbhEHbWMZ&jXlGzJdGqb5TR`;g^zCwCTzUXRA1^)paQWfKD-So0~;Fd71bH3SrYvH+d-pFs!YKv14w;7Da~Z1~~up_!du)~evahJ_E= zc%_Uy&NM7kYU38y$=KqsP`Q;;Sgxby!h)1$R&Ie6E(r^kHZrktoKP`HXkcJuWMa6% p$*}A^6FZ-Z#4LwKrYSs=j0zqwFtu<5D0@r@Sh(uyYDPu|YXAnXewY9N diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-arrow-light.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-arrow-light.gif deleted file mode 100644 index b0e24b55e7ee53b419bdd5d769bb036b19fe9592..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 916 zcmZ?wbhEHbQ@i%X_#s+qO5ao&#Bg}b_z?(JW>fAX3`Gd3KV zv*q~0?WdOQKC^1y`Sph`ZaH>k$H{AZ&)(dB?ha5d!zdUHfuS4%ia%Kx85kHDbU>Z} zernn7GpqKUUw`Q0mSb0ToV>R8?9Kh>?)?A%A85cR7!84;8v=?yS(q6Z7#Vax zUI66@296R2W)2yT4GRu7a|mm>STHs?w+nNawPX}9G%#|o>fAZ8aq;nf1?Mgq&rM5C zPSyxs6?1aa(*sN*0#Y579~gX_Ir7AO7EE5yG(%Y4FT%k%!-dUUH;Lzh!*aJqzAC;N dg;0f-Rg6jrr6;$pzP>);aF?w2wgd+TYXG#xTAcs@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-over-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/btn-over-bg.gif deleted file mode 100644 index ee2dd9860c799be6dc194b387c36a953c55aac59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 837 zcmZ?wbhEHbWMoKTXlGzJeCy}&J3mj~|8@T1uggzJpf;!hT!Z~imrfcyl?6AT{b$et`3#gN7&v4Zqzw`_ELgzA$|)pg(Xe14 SBQvX#kb;4O15gDcgEauAx-gUg diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/more.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/more.gif deleted file mode 100644 index 02c2509fee0fb4555df61072d8e8daac8dc7430e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 845 zcmZ?wbhEHb_??HKjfkTUdnM1~7 r!-9j&9Ku>L9YCQ*K7KbIgN+Z4bP31@U9tF}++`ynz+epkzXub1 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-bg.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-bg.gif deleted file mode 100644 index 4969e4efeb37821bba1319dce59cd339cec06f86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmZ?wbhEHbWML3xXlG!!aPPx~`#|*Z;=Kx_O l3y+3|gN`0r3Od0)xY0~Iq4Rm?bCJ?B`>oTK&gPd3dz*}CLR%aU_l zD=ze`x;$asm5J-FP1|y7=C<4Oc0KGp@OARxuQQK*oqzJ{(lcLIpZm7u8ukxPurZ-YfblWU`p4o5&%%PX!%{-|5oZ<}b{tn!>Yw4W=u^Uq zQpF50j}MM*?7gx+W?f1zJDKabS=0$Rg*yZqflo?c5Ixr^dQ@Bde4NjsFf-c#W=%hte#Xx8144{oy_EOnT}e!Oo~L)&NLV<%|FT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-xl-btn-sprite.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/toolbar/tb-xl-btn-sprite.gif deleted file mode 100644 index 1bc0420f0f0e30675a9eef74adbcb55e3efe9d00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1663 zcmd_p`BPE}00(e9$fKOV%p>iPJj&c%bKS|xcC^ftT+_6&bQ^Q1v0|HYZH>xJ<)Pwz zJ{2=BT=7g3OVbPx;Rzm~c$*61k!dRMUNt+7`}{lhJD>Uf{{7*5&d1C3_zfM5t5zZg z*DM_almg(yCS!GDY@;y)?seu{c7h(Q&j zgny%6K+jMmP;5z0Y-vv%s!SALDvB=?$Crz#U$z654p0@{`RiKu^2 z14&f_^ePFRB}v{QO|F)tR7+E8P=l$c+QGEiq4e6Jw7Q}6I#~v)9yOfNFq~OGocVGj zt6?PT&fvmXJUF)t2KjJ7H_Q;g#SmQ5 z1DA>53Nc*S3$yy*ntr%$0BMjQ>>fpnXzn#itbEfu-`cm(hU#B@JFwI)`Pd=(_)fa~ zZtzp*(8~Lvl_n|DJczUmA#Y?z+c45Gigb=49N8*o_%nB8jW@E^HM-6jM|cwme{6$4 zuIe6F2`1FtlZbFqBbs8TgLuNs?IjW4Js7St1q>d8g*)ROwcN6j>9 zSu?Y&nf(OIS6~Hd6`or~l%J7#)Ecs|_GNMX3+8_r>uji{Y{M4quYv` zK1ZlvHoGPY*j-7ev-=+W3ti~ob1cXsIm=-%B`70^8A;N(lJ71^2VXz?dPh4Tu$GN$JgLf z{3za}WGW%h4420UW0~llVVYVIXr;Kr+JF~!z5KiQkXD$d#isr)hd6Wp9fH_M_ied= zbBRO2H$dKNZxrE1@t!jP7=AW&Qn~^8e!TYHBDTNK?x(Rb1Ec7OaGiY&W#c)!Q|oa) zxR@|!V1K^37G&$K8%{T-20M=%Uw4vYF~9N0M5&-GxF;=F>DrU-MpPWMarYu94|<*m zCmr;5E>{wK?G#LcKY>tb9dwxj<f_U;r4roZGa6lchMQo#=t2JlW z1rrR`MBfun)4u2}<(LGzxnp$QfVUwDi0IAGB@ z(YR^83IK=@3&2sHp2BJ>i_4GC(}I&g&Z3hSEU z&NlR)MYGw$S*eL3K?x;6chQB>jr0!$UUa!Ir<-f7mDQk# zBwX&silB=a;YFDn76zFmv)QzrZEk1V*~{;o^E|)bI{pWJ`S9@Y+&;Y*FLa&mKg-o{ zGXtE#VCd`XtN%z$v&7^lt+S-nPx^l-H-oChVzFASZnt}UeB9&lc)ebq&o>x?i8W;+ z0x#DTPXs0f@Cq;`sILTdDyqJY!dp!Y{CJS@QVn6G|s1BUZM+WbuojB z68@5KNy4B6%MygL5X|E591VxVu~;mTNF6 zT4fpSr~#G*mQx_FYA^?^pdwK*kF0=+VKowA?Or}MJ76DP!CM%*AD^gZu#s95A z(UowVnQP&+Hh#jD&D=5%-X5|Hk63M^_B)Qd&U>!=55^uodhEK?;~v?6`RUM^EeD?u zRaBmERc*B$=XEu%J!RdtiuUaXoK+lWJI3$cRO{Tq^PTU^ZQD8=zLF2tqkLnX?vSIJ z*Yl=;`DA&!eg2!Rd7-JEKVqNJFP{p`eI1PmRwLiEcXNZi?S{R1W!QA>{Vrp4!M?Mx zj_=e@PDiKTTrV5^*>fdcRasKn(y`S4;=E(uxo1t%_l&bzclc_ccC0io_oQne9xONN Gx$b`#5UBhB diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-add.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-add.gif deleted file mode 100644 index b22cd1448efa13c47ad6d3b75bdea8b4031c31e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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~c~334oIij5|Ns9CqhK@yhFS=VTXXjp>_!!i-ZjhjBP9&d=d&P1P-@w z2*?REbZj`-z{teJvFE@96*ex`7^N1;;s=LXIk{il(fr(WZkkH%E}e=3)qp;}RJS=1 ZACr#t%8J+VSOzWgoT4>ViN zU%dGJ;lrOVU;h61@&EsShEXsY0)sdN6o0Y+UH6|s2joUjo?zgZ#9+@MbEA=|m5*7N zuP1?_;V=Wcmd2kAjEoFSyb3l63JeWQEzG)l4<-aOJF{^!n#_11;LyO$#4EyJxnXG= zBd1*n!vlvz??xWBngt9APKV|*$upc#SeW74&N(&d!GU0fOO1}n=k{oQNISc~334!T+I5ReJa7x*DTyS#YWmWQ8@*yChwS&o6 zrsT(mM-FYgx*h@@4;QobG08Hm@c7Wg%*HKZQ}Uv~iG_ooBg3QNK|^B;FB^}5K!V!o j#pc~334eSRT}sa)VS__s8w&@Y zgu;q|!z~;Fasmw<8xA%wGBG*Ccx+O2Y*vXZDtTe_=t!5iao(F9ACgZ@)bm{w(wUgh k*e9SZBf7&RvvH|ppWc*{Usi^4=^EOswG7BU)WBd303hyMjsO4v diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-yes.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/drop-yes.gif deleted file mode 100644 index 8aacb307e89d690f46853e01f5c4726bd5d94e31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1016 zcmZ?wbhEHb6krfwXlGzhFH%vfSJo_7)vQuAsWC9EH&km;*6LR^?KiYxFJMjooS=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$9FpHZ#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$lae%R5x_+pfh=9;jCRWxkA&~=x h2Yp#A(~SZe4mdO}wqloSIC&-M@bZAgN<174)&TX)MQs28 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-minus.gif deleted file mode 100644 index 9a8d727d70ff5161ec18c0cd0156ae8d50a23b75..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 905 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$``4~=2xoOmJxRJ?YUCe?7 p4c<*mc6tvw4?K5dl1^^H;N?iZ| diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-plus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end-plus-nl.gif deleted file mode 100644 index 9f7f69880f48db8d86785639055fcc198764617b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 900 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$y4*XmR1y>vzmpih{E$}o|KC(Juvl9;ogEauy5=OfK diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-end.gif deleted file mode 100644 index f24ddee799ccebea4dfe60fd65a5703a6a59d44f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 844 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQCG#MBA01UeuBlqVQCv>6yVWIQ%3 sIM~R@rxjCSpm?~QTh?igM}U%RmzciOnH3WikN0ueH<|n}RA8_M07ViGB>(^b diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus-nl.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus-nl.gif deleted file mode 100644 index 928779e92361aaebfe9446b236d95cb64256e443..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 898 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$lae%R5x_+pfh=9;jCRWxkA&~=x h2Yp#A(~SZe4mdO}wqloSIC&-M@bZAgN<174)&TX)MQs28 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow-minus.gif deleted file mode 100644 index 97dcc7110f13c3cfb72a66a9891e8ab3ccef4a98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 908 zcmZ?wbhEHb6krfyXlGzB^h$R6?=)rU-Z?Z#?|? z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$``4~=2xoOmJxRJ?YUCe?7 s4c<*mc6tvw4?K5duiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$uiX3i z{QdXWpZ@~^!zdUHf#DSbia%MH85kHDbU@w$y4*XmR1y>vzmpih{E$}o|KC;?;W0q*gYXG$^NPhqT diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/elbow.gif deleted file mode 100644 index b8f42083895bb98276f01a5d0e33debddb3ccf1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmZ?wbhEHb6krfy_|CxK^xx^&v19*7!DtAK$PiHc$->A01UeuBlqVQC^cfgAWIQ%3 wIM~R@rxjCSpm?~QTh?igM}U%R7pF1PhKh>{$NPBfn?f{-mK<+pWMr@g0DWQ)HUIzs diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder-open.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder-open.gif deleted file mode 100644 index 56ba737bcc7734693d7ddb2f50c8f3235fceacee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 956 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2ILfEiU9P24$!>3v-_@?Pw@dZdEXiZDqz?6KotSEHa+=}k8OCR3nw(sqcz%)E z^&Jkk_UAm>?EL6pz~8F{|8JLmcvAKMN&S?id*>|OyM6oiIctwC-Fj{1-dlT*9ou>8 z$^Yvu|6jNKf8Y82L+Ae=lmGvp`Tzf%|NoaBIdbIa(W7V2p1pYS;<0P5Z#?|?{QdXW zpa1{*{pbJx{|uvGGz2IP0mYvz%nS^S3_2i_KzV|JV1OfBquQXEGvI4}0>6q3BdQLvD`XSzZ1sfd8&rn9pxa_cf0 z8;-R|sQDgyVbIvhINu@p(3Fo!OdU)nOn*uow`yILl(G@%_!WGtV|{}AnFkvZ9YR(b rI<1IZ9mc}SXv*Rj;4nR}iJ6T{KqBGLF$ZZACT_Vm-ya@qV6X-NkKMK> diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/folder.gif deleted file mode 100644 index 20412f7c1ba83b82dc3421b211db2f2e93f08bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 952 zcmZ?wbhEHb6krfwXlGzB^h$R6?=&-=aaIP?oGg}kIcy8^I2IRjFD>R>Udq3sOkj1T z@R}--bv0re>LfNdN^fnF-QFU)=hNov3pP6ZL zdwbCB?S=oZs*|No!)|Nor- z|92fYaNzXm(`U|{xqSKZwQJXoU3-1w;m7CizrX(c9|#ym!DtB3CIl3JvM@6+Ff!^t&H2GZdv-WZP}~tRj*oB|LorIYr@vw({}!uwfFDhO(&LbJ2U^lzeR`sUwH800T8|T z00#d*{P_PLi2nZvyK9sf4FQ^mfZ|UUW(Ec>1|5)1pgh6A(Z?XlA>*-O!NF!$M-7&b z2M@Kd^GWGABrIrf5YP;mqG0Ic!oef1<ENsed*j@4Yk?RR_1qN#Xfm)wA diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/loading.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/loading.gif deleted file mode 100644 index e846e1d6c58796558015ffee1fdec546bc207ee8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 771 zcmZ?wbhEHb6krfw*v!MQYQ=(yeQk4RPu{+D?cCXuwr^cCp}%d_ius2R?!0jBXnAQ) zOH<|l|Nj|aK=D7fpKD04vtxj(k)8oFBT!uNCkrbB0}q1^NDatX1{VJbCr|b)oWWMT zS%hVC ~NwO_yO%;SvZ5MdNYf|QNy-I*%yJaj+uTdt+qbZ z4E`Fzb8m}I&!N8OKmWEcCmrLs^Hs&3i)mt@hQVdcqghkaBs*D}tG_lKew4?rTjzIZ z9tSone1TS+TR7tu^CunG)Y7Jg#sw#)sG9C!c0I%LEzP)9;hqRf&)s$D8d5Db{TBs% zgl0~5QQ91luq4Q9tJgt4QLbaxZvAaKeCM9!oy85dg4k>TdBSVqjHub_PG=PO&J-rx z7oYTuF+kH|tG-UK+EkUhDjYx?zW?T|lx>+aOQm zzL$v$zBLo4Cj=G&tw{H}dW?tlTkS)SY4<#NS92z*EY-MMB6Ftp`R=*=*Ev7cS+X%W zMCur^FdlokL}1Y+&aasU2J4#EOuNlnb9CmqgLCGTSY!1BD42pkHY^XidQ5=>YQx%` z*%Pm9D!CkBu&tMWm(%-ejACVWGS2RX5=QOJ$1*tr7F}F+*-OA+Ly&Isg|AEuUYicA z#%IG6kPXkHt{zk2M6zK@Vu^4Q(1zE$?yY6M!^&jQ+2^E?!p7{g*|X6}vuRC3p@jk0 W117c83?+LXEZI4G$p&LV25SKE>nb+@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/s.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/tree/s.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 scmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ~;kK?g*DWEhy3To@Uw0n;G|I{*Lx diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-error.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-error.gif deleted file mode 100644 index 397b655ab83e5362fdc7eb0d18cf361c6f86bd9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1669 zcmV;02738NNk%w1VITk?0QUd@0|NsJ0|X2J00{{R5ds1i7Z(~66B`>G9v&Vb001Kp z5h)oOFaQ8I0021w0Y3o&E-fxEFEBACCN(uSJUcx_0Rc|{08I)CQ~&^5003P90ZlnN zZ2HgaR#tRYR&iNbdS75? zU|?otXJ=+;Yin(FU|@V`YIb#ZeSCg?et>}h0EGYmiU0tO0055<5Rm`?kOl^o005Z) z0GmN+?~005%|1f>7~rUeD5005~41+4%8tpx?M0RglK2)Y6SybBAy92~17B(5YS zt0^g|FE6h$GP@!ovpPDDN=%4PP>)+%g=J@gYio~fZHaSpjd*yLX=#~kY?O0znsITT ze0->1U$sL+wn#|6N=l(?ZKHd8zjAWJ0s_Pf3(Ero%L)p|939OP64C(y(FzLN0RhLMcRH8%DjAoeXS{Ujv)EG+gtJ^wQ^{W?3v zNJh*-LCQ@{#8XqnUth>oR?f~+Utj)HQ~z6A@Lyo#VPouQYVB}x>v?Q{t%gd(L*0R{xyxG~vlatYag2Jb&>V$^kk(2*{ zf&Yw*|C5vdnwsaLq~@lni75b z|Ns8}{@~x^A^8LW00930EC2ui03ZM$000R70RIUbNDv$>R;N^%GKK1uH+KXhN+gI) zQmI(8v}vO?E0!usk6NLdNb;LSjN7_}3)gKMEm^BfQ9=}oWJFkzOv$3fZRN_A+GfF& z32BcxoBv$pj74i3x2G;S3XK)B)FeoEmXWL#snn`jv}gsDrLa^fQ>tQ`viiu;6mb&4 zIih50RjgR4R9RKTR}rL1lO$0B9ElMiAmt)9>blUBj4Y5687efWvLQo=T3ms|nUS42 zGT05w#%K~HN|L}(qt>OeA3m=K#Zlp_nV3Y10NJUdgV?}Dj3P~n6lR(~fAPA&<^wy< z3SY;ip*i$tjvF;7)cwO(hY@E;pU(dEJAMvK96x^EuyA(#I4D2W)wt>4TNE8YjvOf} zG)mrhfAgFX#~WKj)1E)1@X?1HY^b3I4=}g`${ckFf(Rmn_^}B+|J5T5Fy|aN${TUW z0S6mQFhRr!;UgPsq@e^7N-V$&6Kb%bq#Sa*Vdfi^>~mm0dsJzqm1!)YL=j6Upi2{A zuE7S7XQmMhKT=kc#-N0zk;D-~AfZ4mcqp-i8dkz#<`P*@Bc(t0{IW!$Ngy$V5I-1@ zizZxdisc(i!~o5u$IbJ_rv6JTkwg(c{D4CNyI4a65=m^j#u6#8*Ipi;`17AUTJ(BE z5kdIy0|yB7l8z8W9HFeL2U?Ou5|`ZbpQ}X_F@z60{NTU@$Nckz5JFhX#WM$9V(qqN zczc{Zzy$F_4?N^RzzK;Blf(}}6cGhE|5-BcwnvOnPkU1IumcV|U{F8}13B@74?zS0 z#dwzlam2`nic7|EPvkH$4mJotfiVMJGlaxG_)rEWKMWD>&Oe?)03;wIQ58SrAhy#rm+eCjRSRuH))@dW!7dZ& zW5o_u2R%03bq^haWeql1000EIv_ld+Sb#9`4TvW`^x8Ju-~j^zOmNFONd2>m2p`;_ zHs5>m&A|f!9AH8(f>-{JI5cc`2#jD0Go}*+k21NqFv0{8KoG$M PBfNl1GVhQS5C8x>^BLCH diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-info.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-info.gif deleted file mode 100644 index 58281c3067b309779f5cf949a7196170c8ca97b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1586 zcmV-22F>|LNk%w1VITk?0QUd@002Ay07w84PX`%A3LHrS9ajJYWB>?a019mY3w!_= zeheW`4kS_$BTNt{R2C>w87x&AE?6EhTN5*F88u@cHent&Zy_^VB{*RwJ!T<2Ybrfu zEanAeNJ0@02_k<8;bxSjRY)#049Cl8e5Y1_tY3bkWN(XQaEfVlk7;?7 zZF!SzdY5*8mt2auc!8LDgq&lBt7(C!V~et7k-lw{yKsuMageiql(2i8y-tSTQHA4U zhskM;!F86%bDF?tGlSHx~QzWsjj`Ou)c+z$A_QDf}_NMrOt$@%8RPR zi>%9lsM?CJ)Qqyzkfy4!pytE%CW@Nu*TlB$=|re)xF5pzRlaC#O0*M=&Huzs>kT8$>*ZV^`Xr3 zq{{ZD&GV%F^A_)Y{V6-P_#W#@Xx7+U3jK?!?;j!ruDO*W%II z<s1(&F;b=Ka&^{@UjA-Rbn(?f%pA|J?Ea z-}(RG-{a%sWQF}}=T6!l(LfBVqwLzTzdz--gr zA>~JRUspdjz=SD#uW#3T=*1z15PotP*O<}1TXI=rW8fk~GqY79KP}1YrcVGlvzs zDl$nW+ZJ<7GW-rh3M7OOB8UkZSwRrC?KL;(Q+JJH=Ywg3PC diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-question.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-question.gif deleted file mode 100644 index 08abd82ae86c9457172c7a4fdbc527641cf28e48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1607 zcmV-N2Dtf0Nk%w1VITk?0QUd@02fyP7F_@vT>uhh032%o9CQF5e-A8e03mY#BzglW zcL_0l6g7B5MoUafO-xQwNKjc)QdCG)VMGais%VD1YKp&Yk+f=&xOI)E zaEiQim9}=7y?K_jd6&3+oV;3t&|-(kYnQ@tj>UPC!+4gSZh?S#&mcD?Rw3D8!n4hVIpuCNxypy7?lBc|sslAz{ zv!1E8nykH`pQ59qrl_Z?tE#T5tFf-Ly0EXZv$D0gx4OH!y?~j^f}_NSpv#4+%#5bO zjit(rsl|+~%!H%Tg{shuuF;CD-i))_m#xK;uF0IQ!Je+okgwa9u*sgY$DOs#l(p29 zwb+%o+nKY|oV(kBuJ?(u=#RDcm$&DYyyKX=;G(m`qqxkgwZo{l%AmW~pu5Wy1~n_!_~3H*|^2hyUEtQ&D)~F!=r_S`L&GoF&_N~(Sv&!PL&+@j??Yq$Bv(odm+WouL^Ss^uzv2JK z#>vRX%gf5m#L3db&e_e*)63J`)6&(_)!NwC+uGXR!PV)++V9BJ>B`#d#N777-1y4d z^3d1g(%a?H-|XGp;>6+p%jEve=>OE=@803%+~e!f;quVt`_t+E+2!%y==0m`{@(Hb z;NRop*MI`>g(&|>+<34{Oa!Wf0xe!3Pge_@yBbqQDAy z^yqLDY^(Y`Bgb#Yy&t*SHt<)MmubQE= zM_%4K|K!o54GAF7UTBq*Ob!?g0o7_ijR4L$#5Cl7WQu5*Y1Gi(Bmg6D)2&N<*T z_(l=0(9+Fy7{;fLf+vi?iGtvWSYtTY0MiN@9f&f^H7LmFMINyXBrZBDyqCps^d=g7F3EF65lHnZVrI>UYlglJe zU~oq>afkv8HsRE$YQu zh#-bkqRKD4cwz`3RWxA(1Qnd&3}YuvgUT2`;GhH*Q&3SwBCD*Dh!i~7&_D!W@DWW; z1F;hgDs>bA#0Ei30Z1pS2x5T)7=Y0SG)EyV5IfR9lMEkstO3X(t9(I08OcCnvDYWD z6Ol7qAd-p~6!7sjC){4MV~P`tbU^{7d>1~=99ZDpN7scTEv^xRGv0Vk((EBd#a;&l F06QAMRrde@ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-warning.gif b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/icon-warning.gif deleted file mode 100644 index 27ff98b4f787f776e24227da0227bc781e3b11e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1483 zcmXAoYc$k(9LB%H%(yfgGuR9b<4z3ocd29*O43CNd(`UWmQ=H)a>`a4DYpzOx}c(x zSlvdcWJ?+unZaR-H7>b~v1S^TyJ_?Ptx;{_9t|N0Ki69nENoJ2v3`>&g|W8&busa_So7*+dD)$ zvLc<>kt@t%F{f~h9qzG`vt^ZG;7|7JumJBhJ9Y+8Lf4suZE^fH#5_9C`L|tWUS6U8 z{=uOE0fBzowgqiH9`W<?y6`^?T9Sbi>kIro^$r3_Y4hFwk)R(#Q}G+VFY!jG?tX{A@K zA7Ak-yF;xiAyhqNys9yLRL-ovzEyCSA}UpDxeZO_LcSl+NfU}@28A3*bVbNWrHA>fZ4D_larvD z0o4={9|wFI(DV=ZJRp1#nxdfzI{Lyuvvho356v%?4p|^%j&Mta>}F3~{K0|F!GZpTzVLoC6_EgdgTr?dzB>V$ILvD;-4MrIlR(m27G@h~>JlYZ zVAt|_ro3YUVh;qD&xzwC(+MYO@wD@Y_NS8}VxR3300jn*@X<;}{z{$rL zTQ1Ygt3r~JNZK6NqxROCFAF5#=}AsXB5Gp!SiKu3HLoB=^T~;XI#AbK!S$~9M1UFk{5%nyiu}%*CZiIbNf<7_U*)eK2jmJEb7FxOYX=;RObGwm=_w(}-X91Z& zqYL6B`%{}cDrkMSM*JWx2`jXogS!VNpUr25HWVJ_hwMpzlk(}y+|3YZ)%_6gfm?u*PI1fu~NtNN%<%o?1bnQ|HcP z+A{@eE%wEmbNMT^8Mo3bU$&{4r}IL6UfVqFo%2t*Tz4deYD9aVZE~6`7TH{nSG#4; z<6vfan`>!V4h5%@)!a#Ahc&Ef--@I2iU;@wEYEC-zjIsI(0PM(`f?qQqf=C&8Tb?#p4A}3P=ZzHb8 zU%2?008r{GmdfTSw5X-f*JnevxfSlSM{Cc=no(Hy6^Zi{dugQHUH~t06Bw zQt4307HjGF&8-z0AF;fZZq8-%?^|4nr#0y83LDz+toN8`gZZg2p9Yd5@bP-%L)8(V zUmmP8OS8yf(llyk`BV+l3sY@pR^S)K>*+DB$}jc0e)m$1w?{Mi5Ahq5K8vj4mE(=f iL}jwpve+-)v>A%!R(IJo>4b>g=e!-tLq`xb9G_3G{0 zGdEv6d-+ygtj!51%UBZR7tG-B>_!@pqvPq~7*cWT?X^Hr1_hqO2g;KF>0Y)?neb;$ rtH-@3vsBJ|GJLS*We`|3`JPV9O%{pDFOA1RPGj(N^>bP0l+XkKCecH0 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-corners.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-corners.psd deleted file mode 100644 index 3d7f0623e03727a632cf003e22e11593d547de53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15576 zcmeI1e^3-<7{}lDcK7c172LsrFbH>wVhuI%BO?1j;4ffmCc%<)CPO77wGtJH8DkKN zvKdW7$)+hFN{x{NQZx(GprDKf4pB~$KoLdMl;0e;Z11zs-VFT_IWTkFyze{vx#xZN zeRucy?sLz+w-*-qTpYqkDmZ|ca;b^9+hLK>&$6u8qwtm?BqLSqbA&!FhXCf2IpSP5 zggo9P{i$dM!a|eKidi4x zfe~`or3s2zo7{pj_T(#PN0y$^#Ma;O3tpYP!_MB_V}_^KoVotJaqW$vTu$aD?fhX+mk<5R{ivIbz5BziP4hj!ePN0LL5Kf*=i$Y2sSj0%M#)4G_3kj^dN zMIS6V_F2-)(QEg{@4IBo306n>?Ts$(j9H%a)WLvd8;Y}&k~bPQDERq{1XOVT@R3zT z{sq0-5&?afxSLN~0G&leed!0DtdLcXMC=dm>vSIZV8!-TMdr%mdGYBrLDeG_Isw(M zU$Xp$fF8be-QBm_u~b0%sPx_y^^K+dp4`sqHzT-G@?&Q%XEf&n${+=-9b$U~b&il=5o92>F@0C4S*uP!0LSq>g=xxqCDh z$PgA=B&(A$n&XiVc>?&%BT0UIkqLsO3+BE4M)Jn7t|!L!%p>`obp7|Hj7`|QB{5kW zXgMUY#-2Xnnb>mJr40G!OvcfX_k5-xn2(8<@BpKgDlnM}knfIJ7^amfFv$u)T!~qW zL$p!_CRYI#J#EgyS%rKL&g$XYCHx7N1s9=KCjzJ{TvW z7p!sUfj$bVffdGq83L1nYGA{0VBpP=)#;jnt{J980hatzKONUP^qQ?(0UB4<0%69y3#E2IL6&q!Uq=Rpjs4tz5?Mit0(?ST`<5Jh{POMDn=j@c;kE$^ r3VFIXhE&{2PDn^;Vsc|+GqPadUdIqEbJpV=P?o{d)z4*}Q$iB}hcqa_ diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-right.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/left-right.psd deleted file mode 100644 index 59a3960a2353ebe4c9a22bde84cb79979f3150ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24046 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 diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/right-corners.psd b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/right-corners.psd deleted file mode 100644 index 86d5095386123b82d2cf11b8308dd1e40459fd9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15530 zcmeI12}~SS7{}k6nLRj~?k>Af5XvrxAQ6Ry3L4|4Xi*vsE)@@~F;uIT!~;q#R!!xo z)uypht+Z-PFI~})hN>+#^`KBdlxS&@1r)i;QLJ(;u!-ndFU z?hVIfH3V=ia=v&SEkb_JknvKq0%5@_bRgB*wE)!HJX6XfWTnAA;h5d z5041bN31j$^q8EckSmremCN-yjZUZkw@s+Vhe;4JEH)C7*f7I#V|~G8*jSxwl&GO-;uI*-972|-go~48IL@=@v+CB*p#(7cgwR|^PbyQShVBi zov*yQYwsIx?t80b|ADs;A36H|2bK>@KRW)&r=OiTS@HR)GgZ}RYijGhsc$@gq3OqF zYfEcqS9j0F-oE~UOT#0hW47^$N&6H=>`XX>e~O3Lj~R|*IR(UnnXTlCw8p{jjh16eys&)26}8rZI&jwcEb^b;}T6Rcji#e)*Im)rtEp z!~9ou5p?YDJh-kerY>3sXDoJ73%0vp(2n51!5s*G`*C?A&zl{=B~FHI)K- zxR_4;9~{^{#P@Xt4Gv`NiY_~CerM0v`hxG2=DlqdRS9=)DgAhx*MTg)-r{Jk|6XW8 zP|?}TVu?_pImfNazC93Fwf}4(ewL z>Va$KfdjIWf_mV#dEg+$9I859Gc3v*b78;Pm*UkpzM8BV9JsOCIgTCkf(_=07z1?$ zMq!MCdf=jYz{8WFpdPqw9`K}?Lsh412D)Zg6bCr+PyJF{>(G04Z3k#xx%Tr}s&~in zB}gD&EXPZn1K2i;9#C`WfUbykP(Mj%1JwesN@xOgo`QPdnt3n<*-1e?aN9hXBE=l4 zI)98*b~~;*=KKxYXYnhjISfKq#3fJz68b>(0xnAE21P+VaM3*A;mJ@?58O5ncv8%v ws`Cw`vh%p5!8wWfd0_(Pi5LfU1#B=zK|OHMJaEF3p`aePZ5}vDF^8)D2iAzm(f|Me diff --git a/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/top-bottom.png b/scm-webapp/src/main/webapp/resources/extjs/resources/images/yourtheme/window/top-bottom.png deleted file mode 100644 index 33779e76b8d7407100e44ea79974d9c8300a9573..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 180 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 Column subclass which renders a checkbox in each column cell which toggles the truthiness of the associated data field on click.

        - *

        Note. As of ExtJS 3.3 this no longer has to be configured as a plugin of the GridPanel.

        - *

        Example usage:

        - *
        
        -var cm = new Ext.grid.ColumnModel([{
        -       header: 'Foo',
        -       ...
        -    },{
        -       xtype: 'checkcolumn',
        -       header: 'Indoor?',
        -       dataIndex: 'indoor',
        -       width: 55
        -    }
        -]);
        -
        -// create the grid
        -var grid = new Ext.grid.EditorGridPanel({
        -    ...
        -    colModel: cm,
        -    ...
        -});
        - * 
        - * In addition to toggling a Boolean value within the record data, this - * class toggles a css class between 'x-grid3-check-col' and - * 'x-grid3-check-col-on' to alter the background image used for - * a column. - */ -Ext.ux.grid.CheckColumn = Ext.extend(Ext.grid.Column, { - - /** - * @private - * Process and refire events routed from the GridView's processEvent method. - */ - processEvent : function(name, e, grid, rowIndex, colIndex){ - if (name == 'mousedown') { - var record = grid.store.getAt(rowIndex); - record.set(this.dataIndex, !record.data[this.dataIndex]); - return false; // Cancel row selection. - } else { - return Ext.grid.ActionColumn.superclass.processEvent.apply(this, arguments); - } - }, - - renderer : function(v, p, record){ - p.css += ' x-grid3-check-col-td'; - return String.format('
         
        ', v ? '-on' : ''); - }, - - // Deprecate use as a plugin. Remove in 4.0 - init: Ext.emptyFn -}); - -// register ptype. Deprecate. Remove in 4.0 -Ext.preg('checkcolumn', Ext.ux.grid.CheckColumn); - -// backwards compat. Remove in 4.0 -Ext.grid.CheckColumn = Ext.ux.grid.CheckColumn; - -// register Column xtype -Ext.grid.Column.types.checkcolumn = Ext.ux.grid.CheckColumn; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/extjs/util/FileUploadField.js b/scm-webapp/src/main/webapp/resources/extjs/util/FileUploadField.js deleted file mode 100644 index 6291d361d5..0000000000 --- a/scm-webapp/src/main/webapp/resources/extjs/util/FileUploadField.js +++ /dev/null @@ -1,184 +0,0 @@ -/*! - * Ext JS Library 3.4.0 - * Copyright(c) 2006-2011 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ -Ext.ns('Ext.ux.form'); - -/** - * @class Ext.ux.form.FileUploadField - * @extends Ext.form.TextField - * Creates a file upload field. - * @xtype fileuploadfield - */ -Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField, { - /** - * @cfg {String} buttonText The button text to display on the upload button (defaults to - * 'Browse...'). Note that if you supply a value for {@link #buttonCfg}, the buttonCfg.text - * value will be used instead if available. - */ - buttonText: 'Browse...', - /** - * @cfg {Boolean} buttonOnly True to display the file upload field as a button with no visible - * text field (defaults to false). If true, all inherited TextField members will still be available. - */ - buttonOnly: false, - /** - * @cfg {Number} buttonOffset The number of pixels of space reserved between the button and the text field - * (defaults to 3). Note that this only applies if {@link #buttonOnly} = false. - */ - buttonOffset: 3, - /** - * @cfg {Object} buttonCfg A standard {@link Ext.Button} config object. - */ - - // private - readOnly: true, - - /** - * @hide - * @method autoSize - */ - autoSize: Ext.emptyFn, - - // private - initComponent: function(){ - Ext.ux.form.FileUploadField.superclass.initComponent.call(this); - - this.addEvents( - /** - * @event fileselected - * Fires when the underlying file input field's value has changed from the user - * selecting a new file from the system file selection dialog. - * @param {Ext.ux.form.FileUploadField} this - * @param {String} value The file value returned by the underlying file input field - */ - 'fileselected' - ); - }, - - // private - onRender : function(ct, position){ - Ext.ux.form.FileUploadField.superclass.onRender.call(this, ct, position); - - this.wrap = this.el.wrap({cls:'x-form-field-wrap x-form-file-wrap'}); - this.el.addClass('x-form-file-text'); - this.el.dom.removeAttribute('name'); - this.createFileInput(); - - var btnCfg = Ext.applyIf(this.buttonCfg || {}, { - text: this.buttonText - }); - this.button = new Ext.Button(Ext.apply(btnCfg, { - renderTo: this.wrap, - cls: 'x-form-file-btn' + (btnCfg.iconCls ? ' x-btn-icon' : '') - })); - - if(this.buttonOnly){ - this.el.hide(); - this.wrap.setWidth(this.button.getEl().getWidth()); - } - - this.bindListeners(); - this.resizeEl = this.positionEl = this.wrap; - }, - - bindListeners: function(){ - this.fileInput.on({ - scope: this, - mouseenter: function() { - this.button.addClass(['x-btn-over','x-btn-focus']) - }, - mouseleave: function(){ - this.button.removeClass(['x-btn-over','x-btn-focus','x-btn-click']) - }, - mousedown: function(){ - this.button.addClass('x-btn-click') - }, - mouseup: function(){ - this.button.removeClass(['x-btn-over','x-btn-focus','x-btn-click']) - }, - change: function(){ - var v = this.fileInput.dom.value; - this.setValue(v); - this.fireEvent('fileselected', this, v); - } - }); - }, - - createFileInput : function() { - this.fileInput = this.wrap.createChild({ - id: this.getFileInputId(), - name: this.name||this.getId(), - cls: 'x-form-file', - tag: 'input', - type: 'file', - size: 1 - }); - }, - - reset : function(){ - if (this.rendered) { - this.fileInput.remove(); - this.createFileInput(); - this.bindListeners(); - } - Ext.ux.form.FileUploadField.superclass.reset.call(this); - }, - - // private - getFileInputId: function(){ - return this.id + '-file'; - }, - - // private - onResize : function(w, h){ - Ext.ux.form.FileUploadField.superclass.onResize.call(this, w, h); - - this.wrap.setWidth(w); - - if(!this.buttonOnly){ - var w = this.wrap.getWidth() - this.button.getEl().getWidth() - this.buttonOffset; - this.el.setWidth(w); - } - }, - - // private - onDestroy: function(){ - Ext.ux.form.FileUploadField.superclass.onDestroy.call(this); - Ext.destroy(this.fileInput, this.button, this.wrap); - }, - - onDisable: function(){ - Ext.ux.form.FileUploadField.superclass.onDisable.call(this); - this.doDisable(true); - }, - - onEnable: function(){ - Ext.ux.form.FileUploadField.superclass.onEnable.call(this); - this.doDisable(false); - - }, - - // private - doDisable: function(disabled){ - this.fileInput.dom.disabled = disabled; - this.button.setDisabled(disabled); - }, - - - // private - preFocus : Ext.emptyFn, - - // private - alignErrorIcon : function(){ - this.errorIcon.alignTo(this.wrap, 'tl-tr', [2, 0]); - } - -}); - -Ext.reg('fileuploadfield', Ext.ux.form.FileUploadField); - -// backwards compat -Ext.form.FileUploadField = Ext.ux.form.FileUploadField; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/images/add.gif b/scm-webapp/src/main/webapp/resources/images/add.gif deleted file mode 100644 index 8be524954247d0f153b764aa9c74349134c645b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 995 zcmZ?wbhEHb6krfw_}<6x|NsAj9g*dG67ss5y{cjY%Cn1i#l)32MV8jq?#x$)|CtFO#yJzKfu=2E8)tGuldNlldrjTJL5c4w>(o_4v@ zqr>&e>+{?0uG#x!+my>)cRt>TofS}bFmwB@Ra38Y?YO&s^4X5Ws+Qe%);srGWUq?Y za%)-5u9V(=)z{x$vTHXFnCaNOvAE!1a@)z8n#0+BXIfHMhlWh{S$1LCxtAv^_vUTB zyRv>~Zsoz0*!r>=r`u+n=`w3Ds9u-(;M1M_tr4f69ky+(2?Y{JkzLJuub#)tZR$ZCv-Q`}pA*<(f zH>GuJVa9^kt@qcgzrSqy@z$wIm|&gj&6(cx44n>Uu!uPt)wHQWARef*r@>1SFk z8ca*J$7HREwrexX>?_Mz6%{_ub?%KxCCf5vcV^e_N!xmRMbVP<&J*>W`zj_KZAd8Y zW*7z34gtlVEQ|~ceGEDvgF$(Mf#U#!ET@deh6M*TD_8IsK6%mT=*}!tYIw=9y;Ck; zuFBK#$zd^8o(nw>g9F$)1zP=XbObw{o#$N6$0PDNiLt|#fx&0RL^hs<>P*TN9L=rA z`sOsSNSwHEqU(Tm@tzTdBGwD=^JNu2%0&}wbPry zF=f%hMt&ovLs35tJFzx4mI=)XluGau)QDoU)YLfSyU45~iecdfrxVUHh7X=RIONek Vzn$r9!3u#F94{`jGBYt)0{}M1Lj3>$ diff --git a/scm-webapp/src/main/webapp/resources/images/add.png b/scm-webapp/src/main/webapp/resources/images/add.png deleted file mode 100755 index 6332fefea4be19eeadf211b0b202b272e8564898..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 733 zcmV<30wVp1P)9VHk(~TedF+gQSL8D5xnVSSWAVY>J9b+m>@{iq7_KE}go~11+5s4;8hc+i0Xa zI1j@EX5!S+Me6HNqKzU5YQwL;-W5$p%ZMKMeR<%zp69-~?<4?8|C8S?bklXr4v&Ov zb&06v2|-x?qB`90yn>Qi%Sh2^G4n)$ZdyvTPf9}1)_buUT7>`e2G&2VU@~Bb(o+Mz zi4)>IxlSY${Dj4k={-9RzU^W5g9|2V5RZ2ZulL9s2xQbZ@r6eP9Ra5u(s|C0Nj#&4>wTSkb?%#=9?@ z^oxDy-O@tyN{L@by(WWvQ3%CyEu8x{+#Jb4-h&K9Owi)2pgg+heWDyked|3R$$kL@A z#sp1v-r+=G4B8D6DqsDH0@7OztA7aT9qc1Py{()w`m``?Y0&gi2=ROcc-9+nU^I6< zT=e_Y=vSnG@?3Ue{BW5ONFttcE!R-R_W4O01|0-|K-YNXLo2`4Qv z`r1LxR6#yf3FB%T95gJnaKKivA~Z}S9A(ZxEDK}O3T04USJ P00000NkvXXu0mjf^IS-S diff --git a/scm-webapp/src/main/webapp/resources/images/archive.png b/scm-webapp/src/main/webapp/resources/images/archive.png deleted file mode 100755 index 8443c23eb944cf8ef49c9d13cd496502f46f1885..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 555 zcmV+`0@VG9P)i3lOYrtSl@<#7b-w zf}j{s!5HvocfT|9z82@(O@vrwU^wRt=bd>tXQpGD!`Kvuv@XEI8~tgUP2L`{+*)U@I@ zrVtr5X14??iAF(=0+k>q)v`Scm$9&=i`*knBsnaUVL1>ti*O1xfzmiD$%Md-h*6M( z@*iB)icu3eU424Ok{kp%Y!1dvp%f0`ac9vcupx^$vU0xuKpJcBvej0UYk%)EV>mIx2hV}QRf#LX^Uh(%`7hZ~|KEf#uQ31s002ovPDHLkV1hgQ{`mj^ diff --git a/scm-webapp/src/main/webapp/resources/images/delete.gif b/scm-webapp/src/main/webapp/resources/images/delete.gif deleted file mode 100644 index 5c01e7062fdbc665c66aac14acc57fd304db08c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 990 zcmZ?wbhEHb6krfw_};1*|C#KZ`T5n~S1+8I zRrIJJZEc|S&q;O9B77#Kq-N*UeVq4KJuZbJSVsIS(wjyKasxXvCL|@F z&d%Kv;rVU#qCHVQFY7CAWo92sh$t#*Kaw2zAtmf{aqQP+3tv_jT+YhC4}Mrzlg<+1Y8PEBfUp0jJpx4B>@E+cy3`^(Gw`Mf+2&yxZm<$to~Vpgvg&QKNR z_f#1(r6svZt%iF?s+n<8X?B&!h3g9Dbb8_=MX}!;HiQSAh`bp^WMl~Z-44teO7W_Y zV4thSL{h;rJY7!l3%5J4H1!tIzB`Dv+YxO(haWeausGZYkI8^hWj6mzo=L0{%;yxzh{5!Htr?51 zvG|W62MzC8BZ76hRpCyO2zOn<%e)K>NHge!-~)Ap33OdWw6hsLYbCxGNt0%wk_2z7 zfyYvXheSG)5HRK1VB~%mq7Dmurw#bi@hEcOr3&G1ZiF*$M=&9nB#VNf&Q^r$4G5kp zTURh&s)E0%5&hyVD}sp<72~zmAY`Y(9aqO6CXF%=zFHGzO-A&I(pE}v70YQxCPJ{Y z4L+?5-crdLn3ZRPEs!A4ehEY3ZRpL~w9>@aMN+{F4dI@v&>(QDHQum!mG~E^$OS8l z!7?%Uwib*ROP67Hw`ika)gX-(8Ia`-u_IEhxG7U<13kSsMW+$lbb2dUMm5p6pa}cjgA+U$^mJ^AjD?&bdi)8~y+Q002ovPDHLkV1g8IMc@Dc diff --git a/scm-webapp/src/main/webapp/resources/images/document.gif b/scm-webapp/src/main/webapp/resources/images/document.gif deleted file mode 100644 index 0c9e17f2b6165000dedf0668e99a8db6e4fac389..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 237 zcmZ?wbhEHb6krfwI3mmNcD=FFL2zkZoLd-nJ5-@bhL{Q2{z zZ{NPYfB$atmW^-UzWwy+w;w-# z+_YsQ&_D(-Q2fcl$iN`WpabH8>||igO1RFGk~zuuI52HaL}1|X4%z-r+2q;dTlS8;U(H{sMOf!AR*`}zUDxV%KLQ> loeYh2_+oSTrTBy;+eBkodV2eqtauqGPnkMdMplu*8UPy0fBgUe diff --git a/scm-webapp/src/main/webapp/resources/images/document.png b/scm-webapp/src/main/webapp/resources/images/document.png deleted file mode 100644 index 207dc4cd84d9ef1ca0e38bee0c5165735bd6209e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 330 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#VfERCLGF#WBR9cWH1mSCfN??c}I{+uoj@ zcb!;t6<6qFaxeQaQCg?Pvi3wraGG+g#Ejn-{W}esR4!!~t$%&%Xh(s}@>_XjavqNg zZWZUKOlS5y^lp>ge17GxFH5f7d;2|Yo_O;EgP81}?2ZCI-1PPdMNIoD-`J(IJF`;8 zU4e5_8cU%}=1wMQ;V+D{7k{tj{IsWG%BRJ0EdTP^RUZCcEtl%#W%o&`e2i}kD@MLAs Y*M4#`ErB`v0??lfp00i_>zopr0KT_>NB{r; diff --git a/scm-webapp/src/main/webapp/resources/images/favicon.ico b/scm-webapp/src/main/webapp/resources/images/favicon.ico deleted file mode 100755 index e5803f340df8c825ba1344e189e192e34f983a9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmcJNJ4?e*6vwY1D7X{^7l+0sX#^39F22Bg1N#x&baZzx;NY0i`oM@*P<$hbqBYf_ z;2>GF)!Le>^_33!01nsxX-#nuYX)!m_1xZbe&-(2Fjj|8Ai(e~u+e(PS{P&P07p2f zoFgz5x#p${^!vY7DLEMR+dGv?MSwtF$sCN9P6t%l`&sa}sUG*MPNLuP<5Der6O?Cn z5`FyrsN3+<1FivV5O5N`_S<0>f8Fo=bB`~dBkImckNJ8K;V*j~{CP()i<_cQYZiDk zKl%LOc*rQby9zIEN$%5n$Sth4Y4QR1&YB^pW zjsU#5$FQ$H6R+mCh!15P2(S&u?z4Hil8t7f{j9<0TCA`!Pz8ZlgLeh L1`y;UtsLM0i diff --git a/scm-webapp/src/main/webapp/resources/images/folder-remote.gif b/scm-webapp/src/main/webapp/resources/images/folder-remote.gif deleted file mode 100644 index b012c975910b1e3420ee22ed77aa74edc29fcb42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1050 zcmZ?wbhEHb6krfw_&$MQ%Jw@|OD@lvHEZUsyEh-bo3!<|Y1)$J=4LlHH?y>*`!2uq zPO4tBW=-bggC?m<9z1w3Y0{*^!oq!5Uggd?H*pJ4@zS|-=jP_-?!WSC<;s;ymMob# zapLURvyUD5|gY(!Nc%?mm6LaN)vzmtXBX z|H3V{JTo)1qoZTpx^+8u?wq>gj%DWZXu(wx^(H5En6BI8oc64-90@1{{8D1R_I@~ zv26aC37c;vCnsl4IcSx&JS{D4<&j6TcHNybXU>lEFD_oZc>40)+9emll8d*We;yQ@ zxoz9F^z`)B)mLZkylb7ce8!9!&d$!eckjM?_wJ%aixO%U7R)>E;o-UO(o4(q#Ye8c zUcP*J_l6r&x82!z^2z`I{~1OB^+G`LCkrD3!vqE$kddG~!NBpIK~hG-;)1)F2Zykd ziE^?BJHOnioC=4Hu2W4o;!6aK4|8#`Nl$Z-c=?FMNz6oIL4u20GaFk?1CN#q`@&w4 zK%o~`G8ZgoWOumkav{i(osCCml2*j7Eq<-s>O2Jt9Tql(u2ytnxoEuTc)wsbLx-&O zH}A=sg+?)&Mhn*7W;D#px%u&kZ?9Z~gBFsb-$Al)d-EyJ?Fa&trb oLOqryc5xOZCl-N@cLE0rk9e~&USN%JaFBJBe<8-f%EDj`08Y(jQ2+n{ diff --git a/scm-webapp/src/main/webapp/resources/images/folder-remote.png b/scm-webapp/src/main/webapp/resources/images/folder-remote.png deleted file mode 100644 index 5234eab449c95983aee2239151f159dffbd9a1e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmV;q0!ICbP)`( z(kX%tL7hdsb&wD`Ro5;BCFCCa8I zb1tr|tjteNPDX$%gkY*lwOS>{*oHXg=?;+##w7GZ4hG5JCzefEiANj{g8O8hJ>>WcX%^O@L}MgGLdNR>>NT zXhup#G9zeH17u!k6xs%uYD6TX`YWgMqd~6eza?Z|sIKKrfU2gVD8M|QD(if&=j{n- zV}08=vd(Tm@J{%))+#|nQj8J7Xyk#;j%E**Up`>Hve)%=D zwaXV77#KiW3t?s~E-rC%;toB%`|)11r?cag3=R$+PAOdi4sHdQ*%>oCxz*;J`zRvQ f*8E-Sy?^uvyGK{t-)XRw00000NkvXXu0mjfoG~vv diff --git a/scm-webapp/src/main/webapp/resources/images/folder.gif b/scm-webapp/src/main/webapp/resources/images/folder.gif deleted file mode 100644 index a9aca8637902889bbd62e5077d9f55da543754d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 617 zcmV-v0+#(pNk%w1VGsZi0OooCG-aevgSwQr+<2qXdZg2BoX(lL-IBH2gM))MW~IK< z={07gtgNiy;NX&ylD^dH#Kgq2v$Ms;#gUPbHfN=gwcC-j+oYtVztrkAW~HjCs)w!D zUteG0;o&%FroPka$H&Lg-Ro^_ZFO~Zkh9v~-`|zD+?<@8g{#$@y4|_CxqN(lX=!P< z&*!Pc;y7odI%%a{U0ryFmqmE8larIKuCAe>p-+0TI%=oJ*zAjsljGy#czAfHr>8q= zr#Wb)x3{;Bve}NZ+O4gvvB~9;wA#MX>6W-jdu&}Usq|<1OyS=@=US3{=goL}hyPUe+xXr$KF|IB2D|wzjy>=b4$AgsatKV`DdG zr8j7%HfE%yrKO9o*?OhXMsuvh*X#fP{{R30000000000000000A^8LW004RbEC2ui z01yBW000NZfO>+1goSzx2#JYPJBETuV;~X`5Ka>fm?a%cf-4eOLsc3K6EqH|T@ivj zXbc)Xbr%;5Z7N=6CxRneYYD!-3&9Hj#5ZC<86OxJ56ueC&tMrM5erck78Ml-+}uYk z6f89qc>?C==S50$XK8df2J!L+CPH>@9&uE1Mk!5Z2S@~gvS9-fB5F9;VB;bTfrk(u zlKFxo#*-H)q!if5aU&BrJ~+JjVP$~HlP9y>xxz&Ti~ulW$_y|=iw2|yPkE-3> z-8b(3_?ov1cYiV%432IDm|3sa>)kUm%nWx2;PmwLe!t&8>~uQMm(4k6LI`Cz9Dc0p zx&Tx;XIE7wlL@7i6(oef_V#uMc)NrGOsCVTl=7;s>w_zRjH+U0Ymj!k-P+vTq}6H> zV^0g%)=c>R8-N-3GD0!|F@>GqJ z%4)bdf_Rm4wwyD#6GYg!0ieZcvQf+lK>!v2)x`$$R0x3iqPe(Z=9oKK7jS;E^w*b55oWe`mg~7=)i^mlj0C%nT8s$wuo= zb!&(s!bMVmQn@?FCx!@o{yMsKc&XWJj=)i68(aN%$9JEC^W*#Yp8+C_MZ$~UM;0NT T9Al?300000NkvXXu0mjfM@0T3 diff --git a/scm-webapp/src/main/webapp/resources/images/header-backgound.jpg b/scm-webapp/src/main/webapp/resources/images/header-backgound.jpg deleted file mode 100644 index fdfe432e09d07fcfaf1140cd0abbd457ecd32d58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 346 zcmY+9y-EW?5Xb*>v%7bjTyj}O^8hw^2tfr2Xe9&!c1b)jU}0rpXOY&zUXV1FA~v>H zD?YO8z^= z|CWTrebPC9`Qdkm)=BY8!xItd)G hh1>gam<_nRTp!?p9=F%3cR_o8HNJl8Pj7ni@(u1JFS-B# diff --git a/scm-webapp/src/main/webapp/resources/images/help.gif b/scm-webapp/src/main/webapp/resources/images/help.gif deleted file mode 100644 index f652ca2948bbf53af2fa4e7cc96b7a51ba1d4f4b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1048 zcmZ?wbhEHb6krfw_&%Q@zPLLqx9k7^|Mqd6`oSGe37raF?aDswsZDEE?!4ff*rgZR zs~^^<8#ciqeXe!FG*!QjXRklK{qXh0+t07xf7yHT_JpN}51hGMG5e@*{sOC{nMUE= zXK%eMns)Hz+s`lFe6~rMWf<03)W1EVVrhE!&d7>opT7QFu=D!-&F7Nax5ZR1(~p># z(7MGiqJRGOtI3V4QkqsfWzO$ec(8xPiP`H<2UV=BoOw_yxX&Q0zkBKN_n&{L2XvQC z*{kZ`HD&FY!il>B%a&WjO^K~poQ2e@ zgUfeZSi9$PPRE9*`VD8UKU4MX$m-jb-M`y7ddlf*PmQ9dsQ7jmhj+jI`2FLTAMZbX z>sfTrw|H4r+j{S!r4|V@+7=!*4DF1rTIQL**dk%Nci#My*Pn+}tx2p~Ic4Rsu$r~5 zISc>&`*-c$OSjyGam|}vzWaRQ%9AHAKV)}q{`vb)ZueHRn8_c%{>*IOn9{WN)U~HR zMN60NxKupt;D^uOjbo-*C(km8nL2m-wZ|_$6inXVH1}X?=k`^*F8=-d@9C?L&t83e z{`!-CSg%o7S7g z+b@3q`I}JO%`gh^hJfNv7Dfh!`3yQBRiHeRu-!2w35`Aj@95ebbwTp}7F zFE%ASbTDcaQmFXA;HYG!CBUV#U|Ari*K`KMtVxOISrl1Wj3P`99T0ZS-@y?fw9Jpi zeLh=+N5X*vGkL-lI6tsF_gHE=pCiU0A;G=bQObn#2g9-M87lMnJPur5%&6{I{$_{e zl(ybUN)bocb_TjS_i!@xICLIva#zy~+P}u&F~bQNyNN*)W+Z8P1#tT@HD&}SxAD7# z@ceabR#I%{sFIoDsN`^90-pp&W~Sk%RvE$CjwxwP4_)MZxHt}dFwi{CFRf?sV#1W8 ekJM#M*5nvoJb7O2F*AEh14H6rhHgei25SKLNP$}b diff --git a/scm-webapp/src/main/webapp/resources/images/help.png b/scm-webapp/src/main/webapp/resources/images/help.png deleted file mode 100644 index f25fc3fbf106af60de59581bf2e6fba58d489bf8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 932 zcmV;V16%xwP)n<^0M7t*KyZHC1w??>xEt=fabLR*P`s^00F8@s%vX0ly3W2Q;1iYQ`2d{1 zn56SU!aH>A*UV&krU`gE?uNYufcfLL`>KjUEiXOnoQe)`qCG}W|1bb+O7eK1#?QvJ zs|dgU_0&(D106tZ+zosBJd?&v>qnWFmUKydqeslSKE)YIWlRZ)Gjda>n*%4R*)(?6s}$J0tF zrB0rXshXW1sfM?{P>GRo72Li*T~yy3kh%V?FTe2QhE1d6Y3FzU6LKF3;uj?|T^;O;NgH2_-9*%2UxlCj?MeRpHZ4w8sFjOr1-Y$4FjHVOs`O z6+Qs2{*%TqbaEVv&fkX!tu7E!h&mkz2FsQcy_m!>B&KO#Sq7GA5DFBqd&fqUQXD+m zfn!?;p^>;U$?D=fJf(uyMMMYXO4>Md`aVN{(Y9gut;(G&D3o z09{?N%Y*_27>1l9_a8%EHtR(M(E9O_Gnox*SF!%CmFQBU zOF`};huu%zOT%N;EOv}x2@;w%)hg>aX0MU5~e$Dv-j=Valc(v;nT_sm!fGJ@x&;<^^bV( zeDYmpd~&)e>v=ba>Hp#^rKnR%1p%a#U9+>45bDP46hOx7_4S6Fo+k-*%fF5)Ta>O z6XFU~@U5@+ecyX&|2nbnTYt?5UxN?6K*8FddpCXX(R=Ty^WID6y^HGC z`ph45dp>yUeQC)4;H~>H&iO;IIS_qJaQ&1O1ZJB7*&pLwKc#qm47dIeVEiH245Tc` z>_d?0rv$f;k+vT~Ej|RAfJB1LKW7DfDNp_B=WY=PE+6oU-}n*Rx?7$j@|DaivQ4s;Ae zd$Q-(rd)_ifbIlY0aEM=Q~=TfQ5Ilq8U5ZL7)J3WL4KgX#{_y8F6s;KIHaj&SM~LX z#*w=|$?Lu!+Rx2@=!FAw(YJ#Wyu8b=|F|$Q=Z3b(?5tmrjO{n>Z+&;t>|?O?^V9kl zM7Z{T?QJ@3a8m!G+0mxdqd@Z+lf2zs4A$MzeFEfg7I;J!18EO1b~~AE2V`9Kba4!k zxSX88z~rVDXjsUpmc}NLFmXy(|MY2zsm%p9EmNL85q*bTuYW7Uq)~6T3%ikftetCXE28+kIRskY|tpT-ae1$$<3bq^H{ z3l)(g&jk|_5+1X5wY0id9CLU3$lWxDD^OToUQ$Da=Od5wYMu*EUPyGPz~JfX=d#Wzp$P!>0%)xO diff --git a/scm-webapp/src/main/webapp/resources/images/icons/16x16/mercurial.png b/scm-webapp/src/main/webapp/resources/images/icons/16x16/mercurial.png deleted file mode 100644 index f074d9b634beaf2dd9106562bdb8efc08115dbc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 762 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^xl_H+M9WCijWi-X*q z7}lMWc?skwBzpw;GB8xBF)%c=FfjZA3N^f7U???UV0e|lz+g3lfkC`r&aOZkpafHr zx4R3&|Mvbf`++>p0*}aIAngIhZYQ(tfJUG5ba4#PI3L>U>k-VzaJ>F~cKo(8TVKwK zUhA8~)65}xM(U!X%@x(wT_vvtDqcoiSlTR5D&Zol)Utq|>(_yp3kR)Ir|-<#IwNA* zr7e+W&!h9t|2$SLd(E-mzV5%hJtITWlb3JT&b`XsYcTE8RnvWc{Z>vVz$YQ8^3d= z^H;buygyU+cWeH&wX?Ge5ntu1`)cN<@Em+ri~F!uU<&-O{~`PIp#3a3QghqKIZ;anGYiT#P?_ZPRmXdcVs zQkE{caMrX+?MbwbXRi3_=R8yXs(wGS;nIfp8y}{N_iw!V?XLJ~o$9QWYC?k79?h>k z<>>#(;BSqhcg`Ml<$nt*ch(6*a1lZW#u8_MiC{{9NAIdz~@o z?5_uaQLI|x8c~vxSdwa$T$Bo=7>o=IjdTqSbdAhI42`UeEv<}Av<-}`3=9IEnVX?# z$jwj5OsmALL2-9~7f^#F$cEtjw370~qErUQl>DSr1<%~X^wgl##FWaylc}II$l&Sf K=d#Wzp$Pz1NH$0S diff --git a/scm-webapp/src/main/webapp/resources/images/icons/16x16/subversion.png b/scm-webapp/src/main/webapp/resources/images/icons/16x16/subversion.png deleted file mode 100644 index 93775f3971faecd6bea70d91e6ab251a1953aa60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 886 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstUx|vage(c z!@6@aFM%9|WRD45bDP46hOx7_4S6Fo+k-*%fF5)aMo8 z6XM!1=S0)olTGtZR?j$AI{9$<)FZ76PA%GY{n+Ja&)Y9tYPd$3@{L_!0e}4b@`{u*C&OI@I%hl7@Uw;1j>;M1%A3py$d*kJb-8Z|J zo~@aAY~JRpr>?#D_T%^a&p!^Fdr~^(aK*Hv&GSx9SaE*O=|{I7y|0*hqCc~k`_Da|y!yh7^_LfJySDDYo!zG% zp1k_v`h#~*Uw!%T<>&9;fB*jb2gIMg{(SNF>)odxuHJil{?@C@ci(*c^7G%n|M#DL zymBk`seSz6IWfBw)WEN_uqD% zeAu(}?92_94_$cr?&J5b-+wpHKehSDy=(X1zWwxl&c-VbpMU!D?bpqR@5-hezV-P1 z&Jzz?N)-};!OfWD?d~E~n*PKH$l)yTh%5%u9$@TtGTRQw`0DB67$R}mwm;JRaDaqs ze|797mG5k8A2?rL)Vz@6qC|GaSyPj?RgqWD{I9?ID(c(m$lsakng3iocHp+F`*N|& zS?73ywN|g*tuFPt^=tyy-u3kjZ0&82V-5*=sJLg8oGA**T$(;XwqMX!<;s$zV4dX_ z%Q}^=omunx9B28x=o8H~QD<~?*RNS8dd=KyJIB$a&P8^Ao3H)2ZN0ntH+y@?v5Ona zilR8rJt!!wb5vDOcl{L4HAsSN2+mI{DNig)WpGT%PfAtr%uP&B4N6T+sVqF13Nn?!)78&qol`;+0Dr5@ A761SM diff --git a/scm-webapp/src/main/webapp/resources/images/modify.gif b/scm-webapp/src/main/webapp/resources/images/modify.gif deleted file mode 100644 index ee1c57bd912247113e9609c09897d7b1a59a8c66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 331 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 M)&1+$CmqfH2ee|mKL7v# diff --git a/scm-webapp/src/main/webapp/resources/images/tag.gif b/scm-webapp/src/main/webapp/resources/images/tag.gif deleted file mode 100644 index 29d90e26f3c09ba8f7844f3ab898bb1b5b804e3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 623 zcmZ?wbhEHb6krfwc$Ux5*x300|9>-&iVq(?eEj(F{rmUko|W(3y*qK@#PQ?DckS9` z;Z^nN)2Gb`uUL3imQURL_U+rKswMya{a&?dRmG$&D_5?}YF`svIHRC_*}rc)eKL9q zdN$m@fB)FAV|T7DT)A@93H|NZ>=VL?bz+rM8o z@7}$;XV0F42M=C5mAz)ontxx{pFDZ;|DUJ7KCFm|jVtY6zhdResdG1%P1yYJ#|cBn z90U9GkMFMb_jmhd^laR;HoR>9zrUXi9CPN(D9veJVB%Wv?&-WGOO|~7aQMUf_gl7X zdH;On|NsB~{(6&Ii^W%K_3egE&v!(l2@FXF5`p4R7Dfh!da5KthVB}&-5fe+~j!SS93N%>As2>m`E*|Teq2a6OExA!N+C|DP z!rE5OI9EaIfRluBri7K5nvIIH`bOc@Y=vf+B44?97Y|FBp|x zOZ&aI|McbCk^+v1^aj_)%CAXVC1xa@IiSoTaI0JK0b2`GBuj^)!-M!WqVYm14h;*K p*_n83x|$dsIy5#j2Q2f^&}uk4+rn0h@xbQg{`2zgu`n@M0{~~*Cw>3` diff --git a/scm-webapp/src/main/webapp/resources/images/warning.png b/scm-webapp/src/main/webapp/resources/images/warning.png deleted file mode 100755 index 628cf2dae3d419ae220c8928ac71393b480745a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 666 zcmV;L0%iS)P)eOSYYtbpBV}~vsBnU!_?2tr-P=|^T zED%wc9ezHgW@NMb!^uT_|SvCpFLJylbx zY%bpaTGI8IYXMN$9w<3j9VkA~NYOKEQXsj?6a9_hcwfU$acAhJhB)zb_w@MVUEy@S zX&I>K-R!bhu3?(6bHWIg$HEl7{9g>>&l_qdd+UYb(1~BCo9LptNq&8>!yoJ3Ui(i5 zRJ|XnYBklL!{@$-7=3mJ>P@1c=7Oc79e-V7yf+%lD2!I;Y&nXBZ>=B!5?CB>LvEx6 znI%n)qqi$#X#wKB(U7XP2P=+4{b@j#r%9-K(8UqtSDk>0UKzf*HM9yqMZ1D!$2MdZ zR=`U>0zhOH1XqN?nY@AQqB7)Fp4{v&dKXvb43hZKvnN8;Po;+jY*}~*Z|W9Q0W%{D z^T}Cc<|r(Su=1K=P5>Z4 zg`et&Va}tdzBS-G-ZcO)zCWpJvGQwrHZ`@wpM420ac@bI5~KkTFfGEM3sPWO8co4^fI6lPnA)Y{ef%@{+SnoUk0+dW+*{8WvF8}}l07*qoM6N<$g7cXs A&j0`b diff --git a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.changepasswordwindow.js b/scm-webapp/src/main/webapp/resources/js/action/sonia.action.changepasswordwindow.js deleted file mode 100644 index 3d044d69c5..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.changepasswordwindow.js +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.action.ChangePasswordWindow = Ext.extend(Ext.Window,{ - - titleText: 'Change Password', - oldPasswordText: 'Old Password', - newPasswordText: 'New Password', - confirmPasswordText: 'Confirm Password', - okText: 'Ok', - cancelText: 'Cancel', - connectingText: 'Connecting', - failedText: 'change password failed!', - waitMsgText: 'Sending data...', - - initComponent: function(){ - - var config = { - layout:'fit', - width:300, - height:170, - closable: false, - resizable: false, - plain: true, - border: false, - modal: true, - title: this.titleText, - items: [{ - id: 'changePasswordForm', - url: restUrl + 'action/change-password', - frame: true, - xtype: 'form', - monitorValid: true, - defaultType: 'textfield', - items: [{ - name: 'old-password', - fieldLabel: this.oldPasswordText, - inputType: 'password', - allowBlank: false - },{ - id: 'new-password', - name: 'new-password', - fieldLabel: this.newPasswordText, - inputType: 'password', - allowBlank: false, - minLength: 6, - maxLength: 32 - },{ - name: 'confirm-password', - fieldLabel: this.confirmPasswordText, - inputType: 'password', - allowBlank: false, - minLength: 6, - maxLength: 32, - vtype: 'password', - initialPassField: 'new-password' - }], - buttons: [{ - text: this.okText, - formBind: true, - scope: this, - handler: this.changePassword - },{ - text: this.cancelText, - scope: this, - handler: this.cancel - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.action.ChangePasswordWindow.superclass.initComponent.apply(this, arguments); - }, - - changePassword: function(){ - var form = Ext.getCmp('changePasswordForm').getForm(); - form.submit({ - scope: this, - method:'POST', - waitTitle: this.connectingText, - waitMsg: this.waitMsgText, - - success: function(){ - if ( debug ){ - console.debug( 'change password success' ); - } - this.close(); - }, - - failure: function(){ - if ( debug ){ - console.debug( 'change password failed' ); - } - Ext.Msg.alert( this.failedText ); - } - }); - }, - - cancel: function(){ - this.close(); - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.exceptionwindow.js b/scm-webapp/src/main/webapp/resources/js/action/sonia.action.exceptionwindow.js deleted file mode 100644 index 08f6143f4b..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.exceptionwindow.js +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.action.ExceptionWindow = Ext.extend(Ext.Window,{ - - title: null, - message: null, - stacktrace: null, - icon: Ext.MessageBox.ERROR, - - // labels - okText: 'Ok', - detailsText: 'Details', - exceptionText: 'Exception', - - initComponent: function(){ - var config = { - title: this.title, - width: 300, - height: 110, - closable: true, - resizable: true, - plain: true, - border: false, - modal: true, - bodyCssClass: 'x-window-dlg', - items: [{ - xtype: 'panel', - height: 45, - bodyCssClass: 'x-panel-mc x-dlg-icon', - html: '
        ' + this.message + '
        ' - },{ - id: 'stacktraceArea', - xtype: 'textarea', - editable: false, - fieldLabel: this.exceptionText, - value: this.stacktrace, - width: '98%', - height: 260, - hidden: true - }], - buttons: [{ - text: this.okText, - scope: this, - handler: this.close - },{ - id: 'detailButton', - text: this.detailsText, - scope: this, - handler: this.showDetails - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.action.ChangePasswordWindow.superclass.initComponent.apply(this, arguments); - }, - - showDetails: function(){ - Ext.getCmp('detailButton').setDisabled(true); - Ext.getCmp('stacktraceArea').setVisible(true); - this.setWidth(640); - this.setHeight(380); - this.center(); - } - -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.js b/scm-webapp/src/main/webapp/resources/js/action/sonia.action.js deleted file mode 100644 index beaba5c33f..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/action/sonia.action.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.ns('Sonia.action'); diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configform.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configform.js deleted file mode 100644 index 3598045799..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configform.js +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.config.ConfigForm = Ext.extend(Ext.form.FormPanel, { - - title: 'Config Form', - saveButtonText: 'Save', - resetButtontext: 'Reset', - - submitText: 'Submit ...', - loadingText: 'Loading ...', - failedText: 'Unknown Error occurred.', - - items: null, - onSubmit: null, - getValues: null, - - initComponent: function(){ - - var config = { - title: null, - style: 'margin: 10px', - trackResetOnLoad : true, - autoScroll : true, - border : false, - frame : false, - collapsible : false, - collapsed : false, - layoutConfig : { - labelSeparator : '' - }, - items : [{ - xtype : 'fieldset', - checkboxToggle : false, - title : this.title, - collapsible : true, - autoHeight : true, - labelWidth : 140, - buttonAlign: 'left', - layoutConfig : { - labelSeparator : '' - }, - defaults: { - width: 250 - }, - listeners: { - render: function(){ - if ( this.onLoad && Ext.isFunction( this.onLoad ) ){ - this.onLoad(this.el); - } - }, - scope: this - }, - items: this.items, - buttons: [{ - text: this.saveButtonText, - scope: this, - formBind: true, - handler: this.submitForm - },{ - text: this.resetButtontext, - scope: this, - handler: function(){ - this.getForm().reset(); - } - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.config.ConfigForm.superclass.initComponent.apply(this, arguments); - }, - - load: function(values){ - this.getForm().loadRecord({ - success: true, - data: values - }); - }, - - submitForm: function(){ - var form = this.getForm(); - if ( this.onSubmit && Ext.isFunction( this.onSubmit ) ){ - this.onSubmit( form.getValues() ); - } - } - -}); - -Ext.reg("configForm", Sonia.config.ConfigForm); diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configpanel.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configpanel.js deleted file mode 100644 index a465f60e15..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.configpanel.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.config.ConfigPanel = Ext.extend(Ext.Panel, { - - panels: null, - - initComponent: function(){ - - var config = { - region: 'center', - bodyCssClass: 'x-panel-mc', - trackResetOnLoad: true, - autoScroll: true, - border: false, - frame: false, - collapsible: false, - collapsed: false, - items: this.panels - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.config.ConfigPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("configPanel", Sonia.config.ConfigPanel); - diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.js deleted file mode 100644 index f45ae054ef..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -// config form panels -var repositoryConfigPanels = []; -var generalConfigPanels =[]; - -function registerConfigPanel(panel){ - repositoryConfigPanels.push( panel ); -} - -function registerGeneralConfigPanel(panel){ - generalConfigPanels.push(panel); -} - -Ext.ns("Sonia.config"); - - -// pluginurl validator -Ext.apply(Ext.form.VTypes, { - - pluginurl: function(val) { - return this.pluginurlRegex.test(val); - }, - - pluginurlRegex: /(((^https?)|(^ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!\{\}]*)(\.\w{2,})?)*\/?)/i, - pluginurlText: 'This field should be a URL in the format \n\ - "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false"' -}); diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.repositoryconfig.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.repositoryconfig.js deleted file mode 100644 index eda05258af..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.repositoryconfig.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.config.RepositoryConfig = Ext.extend(Sonia.config.ConfigPanel,{ - - initComponent: function(){ - - var config = { - title: main.tabRepositoryTypesText, - panels: repositoryConfigPanels - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.config.RepositoryConfig.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("repositoryConfig", Sonia.config.RepositoryConfig); diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js deleted file mode 100644 index 0f9c2fdd57..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{ - - titleText: 'General Settings', - servnameText: 'Servername', - realmDescriptionText: 'Realm description', - dateFormatText: 'Date format', - enableForwardingText: 'Enable forwarding (mod_proxy)', - forwardPortText: 'Forward Port', - pluginRepositoryText: 'Plugin repository', - allowAnonymousAccessText: 'Allow Anonymous Access', - enableSSLText: 'Enable SSL', - sslPortText: 'SSL Port', - adminGroupsText: 'Admin Groups', - adminUsersText: 'Admin Users', - submitText: 'Submit ...', - loadingText: 'Loading ...', - errorTitleText: 'Error', - errorMsgText: 'Could not load config.', - errorSubmitMsgText: 'Could not submit config.', - - // TODO i18n - skipFailedAuthenticatorsText: 'Skip failed authenticators', - loginAttemptLimitText: 'Login Attempt Limit', - loginAttemptLimitTimeoutText: 'Login Attempt Limit Timeout', - - enableProxyText: 'Enable Proxy', - proxyServerText: 'Proxy Server', - proxyPortText: 'Proxy Port', - proxyUserText: 'Proxy User', - proxyPasswordText: 'Proxy Password', - proxyExcludesText: 'Proxy Excludes', - baseUrlText: 'Base Url', - forceBaseUrlText: 'Force Base Url', - disableGroupingGridText: 'Disable repository Groups', - enableRepositoryArchiveText: 'Enable repository archive', - - - // help - servernameHelpText: 'The name of this server. This name will be part of the repository url.', - realmDescriptionHelpText: 'Enter authentication realm description', - // TODO i18n - dateFormatHelpText: 'Moments date format. Please have a look at \n\ -
        http://momentjs.com/docs/#/displaying/format/.
        \n\ - Note:
        \n\ - {0} - is replaced by a "time ago" string (e.g. 2 hours ago).', - pluginRepositoryHelpText: 'The url of the plugin repository.
        Explanation of the {placeholders}:\n\ -
        version = SCM-Manager Version
        os = Operation System
        arch = Architecture', - enableForwardingHelpText: 'Enbale mod_proxy port forwarding.', - forwardPortHelpText: 'The forwarding port.', - allowAnonymousAccessHelpText: 'Anonymous users have read access on public repositories.', - enableSSLHelpText: 'Enable secure connections via HTTPS.', - sslPortHelpText: 'The ssl port.', - adminGroupsHelpText: 'Comma seperated list of groups with admin permissions.', - adminUsersHelpText: 'Comma seperated list of users with admin permissions.', - - // TODO i18n - skipFailedAuthenticatorsHelpText: 'Do not stop the authentication chain, \n\ - if an authenticator finds the user but fails to authenticate the user.', - loginAttemptLimitHelpText: 'Maximum allowed login attempts. Use -1 to disable the login attempt limit.', - loginAttemptLimitTimeoutHelpText: 'Timeout in seconds for users which are temporary disabled,\ - because of too many failed login attempts.', - - enableProxyHelpText: 'Enable Proxy', - proxyServerHelpText: 'The proxy server', - proxyPortHelpText: 'The proxy port', - proxyUserHelpText: 'The username for the proxy server authentication.', - proxyPasswordHelpText: 'The password for the proxy server authentication.', - proxyExcludesHelpText: 'A comma separated list of glob patterns for hostnames which should be excluded from proxy settings.', - baseUrlHelpText: 'The url of the application (with context path) i.e. http://localhost:8080/scm', - forceBaseUrlHelpText: 'Redirects to the base url if the request comes from a other url', - disableGroupingGridHelpText: 'Disable repository Groups. A complete page reload is required after a change of this value.', - enableRepositoryArchiveHelpText: 'Enable repository archives. A complete page reload is required after a change of this value.', - - // TODO i18n - enableXsrfProtectionText: 'Enable Xsrf Protection', - enableXsrfProtectionHelpText: 'Enable Xsrf Cookie Protection. Note: This feature is still experimental.', - - initComponent: function(){ - - var config = { - title: main.tabGeneralConfigText, - panels: [{ - xtype: 'configForm', - title: this.titleText, - items: [{ - xtype: 'textfield', - fieldLabel: this.baseUrlText, - name: 'base-url', - helpText: this.baseUrlHelpText, - allowBlank: false - },{ - xtype: 'checkbox', - fieldLabel: this.forceBaseUrlText, - name: 'force-base-url', - inputValue: 'true', - helpText: this.forceBaseUrlHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.disableGroupingGridText, - name: 'disableGroupingGrid', - inputValue: 'true', - helpText: this.disableGroupingGridHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.enableRepositoryArchiveText, - name: 'enableRepositoryArchive', - inputValue: 'true', - helpText: this.enableRepositoryArchiveHelpText - },{ - xtype: 'textfield', - fieldLabel: this.realmDescriptionText, - name: 'realmDescription', - allowBlank: false, - helpText: this.realmDescriptionHelpText - },{ - xtype: 'textfield', - fieldLabel: this.dateFormatText, - name: 'dateFormat', - helpText: this.dateFormatHelpText, - helpDisableAutoHide: true, - allowBlank: false - },{ - xtype: 'textfield', - fieldLabel: this.pluginRepositoryText, - name: 'plugin-url', - vtype: 'pluginurl', - allowBlank: false, - helpText: this.pluginRepositoryHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.allowAnonymousAccessText, - name: 'anonymousAccessEnabled', - inputValue: 'true', - helpText: this.allowAnonymousAccessHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.skipFailedAuthenticatorsText, - name: 'skip-failed-authenticators', - inputValue: 'true', - helpText: this.skipFailedAuthenticatorsHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.enableXsrfProtectionText, - name: 'xsrf-protection', - inputValue: 'true', - helpText: this.enableXsrfProtectionHelpText - },{ - xtype: 'numberfield', - fieldLabel: this.loginAttemptLimitText, - name: 'login-attempt-limit', - allowBlank: false, - helpText: this.loginAttemptLimitHelpText - },{ - xtype: 'numberfield', - fieldLabel: this.loginAttemptLimitTimeoutText, - name: 'login-attempt-limit-timeout', - allowBlank: false, - helpText: this.loginAttemptLimitTimeoutHelpText - },{ - xtype: 'checkbox', - fieldLabel: this.enableProxyText, - name: 'enableProxy', - inputValue: 'true', - helpText: this.enableProxyHelpText, - listeners: { - check: function(){ - Ext.getCmp('proxyServer').setDisabled( ! this.checked ); - Ext.getCmp('proxyPort').setDisabled( ! this.checked ); - Ext.getCmp('proxyUser').setDisabled( ! this.checked ); - Ext.getCmp('proxyPassword').setDisabled( ! this.checked ); - Ext.getCmp('proxyExcludes').setDisabled( ! this.checked ); - } - } - },{ - id: 'proxyServer', - xtype: 'textfield', - fieldLabel: this.proxyServerText, - name: 'proxyServer', - disabled: true, - helpText: this.proxyServerHelpText, - allowBlank: false - },{ - id: 'proxyPort', - xtype: 'numberfield', - fieldLabel: this.proxyPortText, - name: 'proxyPort', - disabled: true, - allowBlank: false, - helpText: this.proxyPortHelpText - },{ - id: 'proxyUser', - xtype: 'textfield', - fieldLabel: this.proxyUserText, - name: 'proxyUser', - disabled: true, - helpText: this.proxyUserHelpText, - allowBlank: true - },{ - id: 'proxyPassword', - xtype: 'textfield', - inputType: 'password', - fieldLabel: this.proxyPasswordText, - name: 'proxyPassword', - disabled: true, - helpText: this.proxyPasswordHelpText, - allowBlank: true - },{ - id: 'proxyExcludes', - xtype: 'textfield', - fieldLabel: this.proxyExcludesText, - name: 'proxy-excludes', - disabled: true, - helpText: this.proxyExcludesHelpText, - allowBlank: true - },{ - xtype : 'textfield', - fieldLabel : this.adminGroupsText, - name : 'admin-groups', - allowBlank : true, - helpText: this.adminGroupsHelpText - },{ - xtype : 'textfield', - fieldLabel : this.adminUsersText, - name : 'admin-users', - allowBlank : true, - helpText: this.adminUsersHelpText - }], - - onSubmit: function(values){ - this.el.mask(this.submitText); - Ext.Ajax.request({ - url: restUrl + 'config', - method: 'POST', - jsonData: values, - scope: this, - disableCaching: true, - success: function(){ - this.el.unmask(); - }, - failure: function(result){ - this.el.unmask(); - main.handleRestFailure( - result, - this.errorTitleText, - this.errorMsgText - ); - } - }); - }, - - onLoad: function(el){ - var tid = setTimeout( function(){ el.mask(this.loadingText); }, 100); - Ext.Ajax.request({ - url: restUrl + 'config', - method: 'GET', - scope: this, - disableCaching: true, - success: function(response){ - var obj = Ext.decode(response.responseText); - this.load(obj); - if ( obj.enableProxy ){ - Ext.getCmp('proxyServer').setDisabled(false); - Ext.getCmp('proxyPort').setDisabled(false); - Ext.getCmp('proxyUser').setDisabled(false); - Ext.getCmp('proxyPassword').setDisabled(false); - Ext.getCmp('proxyExcludes').setDisabled(false); - } - clearTimeout(tid); - el.unmask(); - }, - failure: function(result){ - el.unmask(); - clearTimeout(tid); - main.handleRestFailure( - result, - this.errorTitleText, - this.errorMsgText - ); - } - }); - } - }, generalConfigPanels] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.config.ScmConfigPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("scmConfig", Sonia.config.ScmConfigPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.simpleconfigform.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.simpleconfigform.js deleted file mode 100644 index 224b722e20..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.simpleconfigform.js +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{ - - configUrl: null, - loadMethod: 'GET', - submitMethod: 'POST', - - initComponent: function(){ - Ext.apply(this, Ext.apply(this.initialConfig)); - Sonia.config.SimpleConfigForm.superclass.initComponent.apply(this, arguments); - }, - - onSubmit: function(values){ - this.el.mask(this.submitText); - Ext.Ajax.request({ - url: this.configUrl, - method: this.submitMethod, - jsonData: values, - scope: this, - disableCaching: true, - success: function(response){ - this.el.unmask(); - }, - failure: function(result){ - this.el.unmask(); - main.handleRestFailure( - result, - null, - this.failedText - ); - } - }); - }, - - onLoad: function(el){ - var tid = setTimeout( function(){ el.mask(this.loadingText); }, 100); - Ext.Ajax.request({ - url: this.configUrl, - method: this.loadMethod, - scope: this, - disableCaching: true, - success: function(response){ - var obj = Ext.decode(response.responseText); - this.load(obj); - clearTimeout(tid); - el.unmask(); - }, - failure: function(result){ - el.unmask(); - clearTimeout(tid); - main.handleRestFailure( - result, - null, - this.failedText - ); - } - }); - } - -}); - -Ext.reg("simpleConfigForm", Sonia.config.SimpleConfigForm); diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.formpanel.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.formpanel.js deleted file mode 100644 index 4ec278bf6b..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.formpanel.js +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{ - - colMemberText: 'Member', - titleText: 'Settings', - nameText: 'Name', - descriptionText: 'Description', - membersText: 'Members', - errorTitleText: 'Error', - updateErrorMsgText: 'Group update failed', - createErrorMsgText: 'Group creation failed', - - // help - nameHelpText: 'Unique name of the group.', - descriptionHelpText: 'A short description of the group.', - membersHelpText: 'Usernames of the group members.', - - initComponent: function(){ - this.addEvents('preCreate', 'created', 'preUpdate', 'updated', 'updateFailed', 'creationFailed'); - Sonia.group.FormPanel.superclass.initComponent.apply(this, arguments); - }, - - update: function(group){ - if ( debug ){ - console.debug( 'update group ' + group.name ); - } - group = Ext.apply( this.item, group ); - - // this.updateMembers(group); - this.fireEvent('preUpdate', group); - - var url = restUrl + 'groups/' + encodeURIComponent(group.name); - var el = this.el; - var tid = setTimeout( function(){el.mask('Loading ...');}, 100); - - Ext.Ajax.request({ - url: url, - jsonData: group, - method: 'PUT', - scope: this, - success: function(){ - if ( debug ){ - console.debug('update success'); - } - this.fireEvent('updated', group); - clearTimeout(tid); - el.unmask(); - this.execCallback(this.onUpdate, group); - }, - failure: function(result){ - this.fireEvent('updateFailed', group); - clearTimeout(tid); - el.unmask(); - main.handleRestFailure( - result, - this.errorTitleText, - this.updateErrorMsgText - ); - } - }); - }, - - create: function(item){ - if ( debug ){ - console.debug( 'create group: ' + item.name ); - } - item.type = state.defaultUserType; - - var url = restUrl + 'groups'; - var el = this.el; - var tid = setTimeout( function(){el.mask('Loading ...');}, 100); - - this.fireEvent('preCreate', item); - - // this.updateMembers(item); - - Ext.Ajax.request({ - url: url, - jsonData: item, - method: 'POST', - scope: this, - success: function(){ - if ( debug ){ - console.debug('create success'); - } - this.fireEvent('created', item); - // this.memberStore.removeAll(); - this.getForm().reset(); - clearTimeout(tid); - el.unmask(); - this.execCallback(this.onCreate, item); - }, - failure: function(result){ - this.fireEvent('creationFailed', item); - clearTimeout(tid); - el.unmask(); - main.handleRestFailure( - result, - this.errorTitleText, - this.createErrorMsgText - ); - } - }); - }, - - cancel: function(){ - if ( debug ){ - console.debug( 'cancel form' ); - } - Sonia.group.setEditPanel( Sonia.group.DefaultPanel ); - } - -}); - -// register xtype -Ext.reg('groupFormPanel', Sonia.group.FormPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js deleted file mode 100644 index 66784f3c89..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, { - - colNameText: 'Name', - colDescriptionText: 'Description', - colMembersText: 'Members', - colCreationDateText: 'Creation date', - colTypeText: 'Type', - emptyGroupStoreText: 'No group is configured', - groupFormTitleText: 'Group Form', - - // parent panel for history - parentPanel: null, - - initComponent: function(){ - var groupStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'groups', - disableCaching: false - }), - idProperty: 'name', - fields: [ 'name', 'members', 'description', 'creationDate', 'type', 'properties'], - sortInfo: { - field: 'name' - } - }); - - var groupColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: true, - scope: this, - width: 125 - }, - columns: [ - {id: 'name', header: this.colNameText, dataIndex: 'name'}, - {id: 'description', header: this.colDescriptionText, dataIndex: 'description', width: 300 }, - {id: 'members', header: this.colMembersText, dataIndex: 'members', renderer: this.renderMembers}, - {id: 'creationDate', header: this.colCreationDateText, dataIndex: 'creationDate', renderer: Ext.util.Format.formatTimestamp}, - {id: 'type', header: this.colTypeText, dataIndex: 'type', width: 80} - ] - }); - - var config = { - autoExpandColumn: 'members', - store: groupStore, - colModel: groupColModel, - emptyText: this.emptyGroupStoreText, - listeners: { - fallBelowMinHeight: { - fn: this.onFallBelowMinHeight, - scope: this - } - } - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.group.Grid.superclass.initComponent.apply(this, arguments); - - // store grid in parent panel - this.parentPanel.groupGrid = this; - }, - - - onFallBelowMinHeight: function(height, minHeight){ - var p = Ext.getCmp('groupEditPanel'); - this.setHeight(minHeight); - var epHeight = p.getHeight(); - p.setHeight(epHeight - (minHeight - height)); - // rerender - this.doLayout(); - p.doLayout(); - this.ownerCt.doLayout(); - }, - - - renderMembers: function(members){ - var out = ''; - if ( members ){ - var s = members.length; - for ( var i=0; i',{ - id: 'memberGridHelp', - xtype: 'box', - autoEl: { - tag: 'img', - src: 'resources/images/help.png' - } - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.group.MemberFormPanel.superclass.initComponent.apply(this, arguments); - }, - - afterRender: function(){ - // call super - Sonia.group.FormPanel.superclass.afterRender.apply(this, arguments); - - Ext.QuickTips.register({ - target: Ext.getCmp('memberGridHelp'), - title: '', - text: this.membersHelpText, - enabled: true - }); - }, - - updateMembers: function(item){ - var members = []; - this.memberStore.data.each(function(record){ - members.push( record.data.member ); - }); - item.members = members; - }, - - clearModifications: function(){ - Ext.getCmp('memberGrid').getStore().commitChanges(); - } - -}); - -Ext.reg('groupMemberForm', Sonia.group.MemberFormPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js deleted file mode 100644 index 1bc3fbe819..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.panel.js +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.group.Panel = Ext.extend(Sonia.rest.Panel, { - - titleText: 'Group Form', - emptyText: 'Add or select a Group', - removeTitleText: 'Remove Group', - removeMsgText: 'Remove Group "{0}"?', - errorTitleText: 'Error', - errorMsgText: 'Group deletion failed', - - // grid - groupGrid: null, - - initComponent: function(){ - var config = { - tbar: [ - {xtype: 'tbbutton', text: this.addText, icon: this.addIcon, scope: this, handler: this.showAddForm}, - {xtype: 'tbbutton', id: 'groupRmButton', disabled: true, text: this.removeText, icon: this.removeIcon, scope: this, handler: this.removeGroup}, - '-', - {xtype: 'tbbutton', text: this.reloadText, icon: this.reloadIcon, scope: this, handler: this.reload} - ], - items: [{ - id: 'groupGrid', - xtype: 'groupGrid', - region: 'center', - parentPanel: this - }, { - id: 'groupEditPanel', - xtype: 'tabpanel', - activeTab: 0, - height: 250, - split: true, - border: true, - region: 'south', - items: [{ - bodyCssClass: 'x-panel-mc', - title: this.titleText, - padding: 5, - html: this.emptyText - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.group.Panel.superclass.initComponent.apply(this, arguments); - }, - - getGrid: function(){ - if (!this.groupGrid){ - if (debug){ - console.debug('could not find group grid, fetch by id'); - } - this.groupGrid = Ext.getCmp('groupGrid'); - } - return this.groupGrid; - }, - - updateHistory: function(group){ - var token = Sonia.History.createToken('groupPanel', group.name); - Sonia.History.add(token); - }, - - removeGroup: function(){ - var grid = this.getGrid(); - var selected = grid.getSelectionModel().getSelected(); - if ( selected ){ - var item = selected.data; - var url = restUrl + 'groups/' + encodeURIComponent(item.name); - - Ext.MessageBox.show({ - title: this.removeTitleText, - msg: String.format( this.removeMsgText, item.name ), - buttons: Ext.MessageBox.OKCANCEL, - icon: Ext.MessageBox.QUESTION, - fn: function(result){ - if ( result === 'ok' ){ - - if ( debug ){ - console.debug( 'remove group ' + item.name ); - } - - Ext.Ajax.request({ - url: url, - method: 'DELETE', - scope: this, - success: function(){ - this.reload(); - this.resetPanel(); - }, - failure: function(result){ - main.handleRestFailure( - result, - this.errorTitleText, - this.errorMsgText - ); - } - }); - } - - }, - scope: this - }); - - } else if ( debug ){ - console.debug( 'no repository selected' ); - } - }, - - showAddForm: function(){ - Ext.getCmp('groupRmButton').setDisabled(true); - Sonia.group.setEditPanel({ - xtype: 'groupPropertiesForm', - title: this.titleText, - padding: 5, - onUpdate: { - fn: this.reload, - scope: this - }, - onCreate: { - fn: this.reload, - scope: this - } - }); - }, - - resetPanel: function(){ - Sonia.group.setEditPanel(Sonia.group.DefaultPanel); - }, - - reload: function(){ - this.getGrid().reload(); - } - -}); - -// register xtype -Ext.reg('groupPanel', Sonia.group.Panel); - -// register history handler -Sonia.History.register('groupPanel', { - - onActivate: function(panel){ - var token = null; - var rec = panel.getGrid().getSelectionModel().getSelected(); - if (rec){ - token = Sonia.History.createToken('groupPanel', rec.get('name')); - } else { - token = Sonia.History.createToken('groupPanel'); - } - return token; - }, - - onChange: function(groupId){ - var panel = Ext.getCmp('groups'); - if ( ! panel ){ - main.addGroupsTabPanel(); - panel = Ext.getCmp('groups'); - if (groupId){ - var selected = false; - panel.getGrid().getStore().addListener('load', function(){ - if (!selected){ - panel.getGrid().selectById(groupId); - selected = true; - } - }); - } - } else { - main.addTab(panel); - if (groupId){ - panel.getGrid().selectById(groupId); - } - } - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.propertiesformpanel.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.propertiesformpanel.js deleted file mode 100644 index 658df59bc8..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.propertiesformpanel.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.group.PropertiesFormPanel = Ext.extend(Sonia.group.FormPanel, { - - initComponent: function(){ - var config = { - title: this.titleText, - items: [{ - fieldLabel: this.nameText, - name: 'name', - allowBlank: false, - readOnly: this.item !== null, - helpText: this.nameHelpText, - vtype: 'name' - },{ - fieldLabel: this.descriptionText, - name: 'description', - xtype: 'textarea', - helpText: this.descriptionHelpText - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.group.PropertiesFormPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -// register xtype -Ext.reg('groupPropertiesForm', Sonia.group.PropertiesFormPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/i18n/de.js b/scm-webapp/src/main/webapp/resources/js/i18n/de.js deleted file mode 100644 index 60597a2b89..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/i18n/de.js +++ /dev/null @@ -1,686 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -if (Ext.form.VTypes){ - - Ext.override(Ext.form.VTypes, { - - // sonia.config.js - pluginurlText: 'Dieses Feld sollte eine URL enthalten. Format: \n\ - "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false"', - - passwordText: 'Die Passwörter stimmen nicht überein!', - nameTest: 'Der Name ist invalid.', - usernameText: 'Der Benutzername ist invalid.', - repositoryNameText: 'Der Name des Repositorys ist ungültig.' - }); - -} - -// sonia.util.js - -if ( Ext.util.Format ){ - - Ext.apply(Ext.util.Format, { - timeAgoJustNow: 'Jetzt', - timeAgoOneMinuteAgo: 'Vor 1 Minute', - timeAgoOneMinuteFromNow: 'In 1 minute', - timeAgoMinutes: 'Minuten', - timeAgoOneHourAgo: 'Vor 1 Stunde', - timeAgoOneHourFromNow: 'In 1 Stunde', - timeAgoHours: 'Stunden', - timeAgoYesterday: 'Gestern', - timeAgoTomorrow: 'Morgen', - timeAgoDays: 'Tage', - timeAgoLastWeek: 'Letzte Woche', - timeAgoNextWeek: 'Nächste Woche', - timeAgoWeeks: 'Wochen', - timeAgoLastMonth: 'Letzten Monat', - timeAgoNextMonth: 'Nächsten Monat', - timeAgoMonths: 'Monate', - timeAgoLastYear: 'Letztes Jahr', - timeAgoNextYear: 'Nächstes Jahr', - timeAgoYears: 'Jahre', - timeAgoLastCentury: 'Letztes Jahrhundert', - timeAgoNextCentury: 'Nächstes Jahrhundert', - timeAgoCenturies: 'Jahrhunderte' - }); - -} - -// sonia.login.js - -if (Sonia.login.Form){ - - Ext.override(Sonia.login.Form, { - usernameText: 'Benutzername', - passwordText: 'Passwort', - loginText: 'Anmelden', - cancelText: 'Abbrechen', - waitTitleText: 'Verbinden', - WaitMsgText: 'Übertrage Daten...', - failedMsgText: 'Anmeldung fehlgeschlagen!', - failedDescriptionText: 'Falscher Benutzername, Passwort oder Sie haben nicht\n\ - genug Berechtigungen. Bitte versuchen Sie es erneut.', - accountLockedText: 'Der Account ist gesperrt.', - accountTemporaryLockedText: 'Der Account ist momentan gesperrt. \n\ - Versuchen Sie es später nochmal.', - rememberMeText: 'Angemeldet bleiben' - }); - -} - -if (Sonia.login.Window){ - - Ext.override(Sonia.login.Window, { - titleText: 'Anmeldung' - }); - -} - -// sonia.rest.js - -if ( Sonia.rest.JsonStore ){ - - Ext.override(Sonia.rest.JsonStore, { - errorTitleText: 'Fehler', - errorMsgText: 'Es konnten keine Daten geladen werden. Server-Status: {0}' - }); - -} - -if ( Sonia.rest.Grid ){ - - Ext.override(Sonia.rest.Grid, { - emptyText: 'Es konnten keine Daten gefunden werden.' - }); - -} - -if ( Sonia.rest.FormPanel ){ - - Ext.override(Sonia.rest.FormPanel, { - okText: 'Ok', - cancelText: 'Abbrechen', - addText: 'Hinzufügen', - removeText: 'Entfernen' - }); - -} - -if (Sonia.repository.ChangesetPanel){ - - Ext.apply(Sonia.repository.ChangesetPanel, { - diffLabel: 'Änderung', - rawDiffLabel: 'Datei anzeigen' - }); -} - -// sonia.repository.js - -if (Sonia.repository.DefaultPanel){ - - Ext.apply(Sonia.repository.DefaultPanel, { - title: 'Repository', - html: 'Es wurde kein Repository selektiert' - }); - -} - -if ( Sonia.repository.Grid ){ - - Ext.override(Sonia.repository.Grid, { - colNameText: 'Name', - colTypeText: 'Typ', - colContactText: 'Kontakt', - colDescriptionText: 'Beschreibung', - colCreationDateText: 'Erstellungsdatum', - colLastModifiedText: 'Zuletzt geändert', - colUrlText: 'Url', - colArchiveText: 'Archiv', - emptyText: 'Es wurde kein Repository konfiguriert', - formTitleText: 'Repository', - unknownType: 'Unbekannt' - }); - -} - -if (Sonia.repository.FormPanel){ - - Ext.override(Sonia.repository.FormPanel, { - colGroupPermissionText: 'Gruppen Berechtigung', - colNameText: 'Name', - colTypeText: 'Typ', - formTitleText: 'Einstellungen', - nameText: 'Name', - typeText: 'Typ', - contactText: 'Kontakt', - descriptionText: 'Beschreibung', - publicText: 'Öffentlich', - permissionText: 'Berechtigung', - errorTitleText: 'Fehler', - updateErrorMsgText: 'Repository update fehlgeschlagen', - createErrorMsgText: 'Repository erstellen fehlgeschlagen', - - // help - nameHelpText: 'Name des Repositories. Dieser Name wird Teil der Repository-URL.', - typeHelpText: 'Typ des Repositories (z.B.: Mercurial, Git oder Subversion).', - contactHelpText: 'Die E-Mail Adresse einer für das Repository verantwortlichen Person.', - descriptionHelpText: 'Eine kurze Beschreibung des Repositories.', - publicHelpText: 'Ein öffentliches Repository kann von jeder Person gelesen werden.', - permissionHelpText: 'Rechteverwaltung für bestimmte Nutzer oder Gruppen
        \n\ - Rechte:
        READ = nur lesen
        WRITE = lesen und schreiben
        \n\ - OWNER = lesen, schreiben und Rechteverwaltung.' - }); - -} - -if (Sonia.repository.Panel){ - - Ext.override(Sonia.repository.Panel, { - titleText: 'Repository', - - searchText: 'Suche: ', - archiveText: 'Archivieren', - unarchiveText: 'Wiederherstellen', - archiveTitleText: 'Repository archivieren', - unarchiveTitleText: 'Repository wiederherstellen', - archiveMsgText: 'Repository "{0}" archivieren?', - unarchiveMsgText: 'Repository "{0}" wiederherstellen?', - errorArchiveMsgText: 'Das Archivieren des Repositories ist fehlgeschlagen.', - errorUnarchiveMsgText: 'Das Wiederherstellen des Repositories ist fehlgeschlagen.', - displayArchivedRepositoriesText: 'Archiv', - - emptyText: 'Es wurde kein Repository selektiert', - removeTitleText: 'Repository entfernen', - removeMsgText: 'Diese Aktion wird das Repository "{0}" permanent von der \n\ - Festplatte löschen?
        Repository entfernen?', - errorTitleText: 'Fehler', - errorMsgText: 'Repository entfernen fehlgeschlagen' - }); - -} - -if (Sonia.repository.PermissionFormPanel){ - - Ext.override(Sonia.repository.PermissionFormPanel, { - titleText: 'Berechtigungen' - }); - -} - -if (Sonia.repository.ChangesetViewerPanel){ - - Ext.override(Sonia.repository.ChangesetViewerPanel,{ - // german ?? - changesetViewerTitleText: 'Commits {0}' - }); - -} - -if (Sonia.repository.InfoPanel){ - - Ext.override(Sonia.repository.InfoPanel, { - nameText: 'Name: ', - typeText: 'Typ: ', - contactText: 'Kontakt: ', - urlText: 'Url: ', - // german ?? - changesetViewerText: 'Commits', - accessText: 'Zugriff:', - accessReadOnly: 'Nur lesender Zugriff', - accessReadWrite: 'Lese und Schreibzugriff' - }); - -} - -if (Sonia.repository.ExtendedInfoPanel){ - - Ext.override(Sonia.repository.ExtendedInfoPanel, { - // german ?? - checkoutText: 'Checkout: ', - repositoryBrowserText: 'Quellcode' - }); - -} - -if (Sonia.repository.RepositoryBrowser){ - - Ext.override(Sonia.repository.RepositoryBrowser, { - repositoryBrowserTitleText: 'Quellcode {0}', - emptyText: 'In diesem Verzeichnis befinden sich keine Dateien', - colNameText: 'Name', - colLengthText: 'Length', - colLastModifiedText: 'Last Modified', - colDescriptionText: 'Description' - }); - -} - -if (Sonia.repository.ChangesetViewerGrid){ - - Ext.override(Sonia.repository.ChangesetViewerGrid, { - emptyText: 'Es konnten keine Commits gefunden werden' - }); - -} - -if (Sonia.repository.ImportWindow){ - - Ext.override(Sonia.repository.ImportWindow, { - titleText: 'Repositories importieren', - okText: 'Ok', - closeText: 'Schließen' - }); - -} - -// sonia.config.js - -if (Sonia.config.ScmConfigPanel){ - - Ext.override(Sonia.config.ScmConfigPanel,{ - titleText: 'Allgemeine Einstellung', - servnameText: 'Servername', - dateFormatText: 'Datumsformat', - enableForwardingText: 'Forwarding (mod_proxy) aktivieren', - forwardPortText: 'Forward Port', - pluginRepositoryText: 'Plugin-Repository', - allowAnonymousAccessText: 'Anonymen Zugriff erlauben', - enableSSLText: 'SSL Aktivieren', - sslPortText: 'SSL Port', - adminGroupsText: 'Admin Gruppen', - adminUsersText: 'Admin Benutzer', - - enableProxyText: 'Proxy aktivieren', - proxyServerText: 'Proxy Server', - proxyPortText: 'Proxy Port', - proxyUserText: 'Proxy User', - proxyPasswordText: 'Proxy Passwort', - proxyExcludesText: 'Proxy Ausnahmen', - baseUrlText: 'Basis-URL', - forceBaseUrlText: 'Basis-URL forcieren', - disableGroupingGridText: 'Repository-Gruppierung deaktivieren', - enableRepositoryArchiveText: 'Repository-Archiv aktivieren', - - submitText: 'Senden ...', - loadingText: 'Laden ...', - errorTitleText: 'Fehler', - errorMsgText: 'Die Konfiguration konnte nicht geladen werden.', - errorSubmitMsgText: 'Die Konfiguration konnte nicht gespeichert werden.', - - // help - servernameHelpText: 'Der Name dieses Servers. Dieser Name wird Teil der Repository-URL.', - // TODO - dateFormatHelpText: 'JavaScript Datumsformat.', - pluginRepositoryHelpText: 'Die URL des Plugin-Repositories.
        Beschreibung der {Platzhalter}:\n\ -
        version = SCM-Manager Version
        os = Betriebssystem
        arch = Architektur', - enableForwardingHelpText: 'Apache mod_proxy Port-Forwarding aktivieren.', - forwardPortHelpText: 'Der Port für das mod_proxy Port-Forwarding.', - allowAnonymousAccessHelpText: 'Anonyme Benutzer können öffentlich Repositories lesen.', - enableSSLHelpText: 'Aktiviere sichere Verbindungen über HTTPS.', - sslPortHelpText: 'Der SSL-Port.', - adminGroupsHelpText: 'Komma getrennte Liste von Gruppen mit Administrationsrechten.', - adminUsersHelpText: 'Komma getrennte Liste von Benutzern mit Administrationsrechten.', - - skipFailedAuthenticatorsText: 'Überspringe fehlgeschlagene Authentifizierer', - skipFailedAuthenticatorsHelpText: 'Setzt die Authentifizierungs-Kette fort,\n\ - auch wenn ein ein Authentifizierer einen Benutzer gefunden hat,\n\ - diesen aber nicht Authentifizieren kann.', - loginAttemptLimitText: 'Login Attempt Limit', - loginAttemptLimitTimeoutText: 'Login Attempt Limit Timeout', - loginAttemptLimitHelpText: 'Maximale Anzahl gescheiterte Loginversuche. Der Wert -1 deaktiviert die Begrenzung.', - loginAttemptLimitTimeoutHelpText: 'Zeitraum in Sekunden, die ein Nutzer nach zu vielen gescheiterten Loginversuchen vorübergehend gesperrt ist.', - - enableProxyHelpText: 'Proxy-Einstellungen verwenden.', - proxyServerHelpText: 'Der Proxy-Server.', - proxyPortHelpText: 'Der Proxy-Port', - proxyUserHelpText: 'Der Benutzername für die Authentifizierung am Proxy-Server.', - proxyPasswordHelpText: 'Das Passwort für die Authentifizierung am Proxy-Server.', - proxyExcludesHelpText: 'Eine Komma-separierte liste von Glob-Patterns für servername die von den Proxy-Einstellungen ausgenommen werden sollen', - baseUrlHelpText: 'Die vollständige URL des Server, inclusive Context-Pfad z.B.: http://localhost:8080/scm.', - forceBaseUrlHelpText: 'Leitet alle Zugriffe die nicht von der Basis-URL kommen auf die Basis-URL um.', - disableGroupingGridHelpText: 'Repository grupierung deaktivieren. Wenn dieser Wert verändert wird muss die Seite neu geladen werden.', - enableRepositoryArchiveHelpText: 'Repository-Archiv aktivieren. Wenn dieser Wert verändert wird muss die Seite neu geladen werden.' - }); - -} - -if (Sonia.config.ConfigForm){ - - Ext.override(Sonia.config.ConfigForm, { - title: 'Konfiguration', - saveButtonText: 'Speichern', - resetButtontext: 'Zurücksetzen', - - submitText: 'Senden ...', - loadingText: 'Laden ...', - failedText: 'Es ist ein unbekannter Fehler aufgetreten.' - }); - -} - -// sonia.user.js - -if (Sonia.user.DefaultPanel){ - - Ext.apply(Sonia.user.DefaultPanel, { - title: 'Benutzer', - html: 'Es wurde kein Benutzer selektiert.' - }); - -} - -if (Sonia.user.Grid){ - - Ext.override(Sonia.user.Grid, { - titleText: 'Benutzer', - colNameText: 'Name', - colDisplayNameText: 'Anzeigename', - colMailText: 'E-Mail', - colActiveText: 'Aktiv', - colAdminText: 'Admin', - colCreationDateText: 'Erstellungsdatum', - colLastModifiedText: 'Letzte Änderung', - colTypeText: 'Typ' - }); - -} - -if (Sonia.user.FormPanel){ - - Ext.override(Sonia.user.FormPanel, { - nameText: 'Name', - displayNameText: 'Anzeigename', - mailText: 'E-Mail', - passwordText: 'Passwort', - adminText: 'Administrator', - activeText: 'Aktiv', - errorTitleText: 'Fehler', - updateErrorMsgText: 'Benutzer Aktualisierung fehlgeschlagen', - createErrorMsgText: 'Benutzer Erstellung fehlgeschlagen', - passwordMinLengthText: 'Das Passwort muss mindestens 6 Zeichen lang sein', - - // help - usernameHelpText: 'Eindeutiger Name des Benutzers.', - displayNameHelpText: 'Anzeigename des Benutzers.', - mailHelpText: 'E-Mail Adresse des Benutzers.', - passwordHelpText: 'Passwort des Benutzers.', - passwordConfirmHelpText: 'Passwortwiederholung zur Kontrolle.', - adminHelpText: 'Ein Administrator kann Repositories, Gruppen und Benutzer erstellen, bearbeiten und löschen.', - activeHelpText: 'User deaktivieren oder aktivieren.' - }); - -} - -if (Sonia.user.Panel){ - - Ext.override(Sonia.user.Panel, { - titleText: 'Benutzer', - emptyText: 'Es wurde kein Benutzer selektiert', - removeTitleText: 'Benutzer entfernen', - removeMsgText: 'Benutzer "{0}" entfernen?', - showOnlyActiveText: 'Nur aktive anzeigen: ', - errorTitleText: 'Fehler', - errorMsgText: 'Entfernen des Benutzers fehlgeschlagen' - }); - -} - - -// sonia.group.js - -if (Sonia.group.DefaultPanel){ - - Ext.apply(Sonia.group.DefaultPanel,{ - title: 'Gruppe', - html: 'Es wurde keine Gruppe selektiert' - }); - -} - -if (Sonia.group.Grid){ - - Ext.override(Sonia.group.Grid,{ - colNameText: 'Name', - colDescriptionText: 'Beschreibung', - colMembersText: 'Mitglieder', - colCreationDateText: 'Erstellungsdatum', - colTypeText: 'Typ', - emptyGroupStoreText: 'Es wurde keine Gruppe konfiguriert.', - groupFormTitleText: 'Gruppe' - }); - -} - -if (Sonia.group.FormPanel){ - - Ext.override(Sonia.group.FormPanel, { - colMemberText: 'Mitglied', - titleText: 'Einstellungen', - nameText: 'Name', - descriptionText: 'Beschreibung', - membersText: 'Mitglieder', - errorTitleText: 'Fehler', - updateErrorMsgText: 'Gruppen Aktualisierung fehlgeschlagen', - createErrorMsgText: 'Gruppen Erstellung fehlgeschlagen', - - // help - nameHelpText: 'Eindeutiger Name der Gruppe.', - descriptionHelpText: 'Eine kurze Beschreibung der Gruppe.', - membersHelpText: 'Die Benutzernamen der Gruppenmitglieder.' - }); - -} - -if (Sonia.group.Panel){ - - Ext.override(Sonia.group.Panel, { - titleText: 'Gruppe', - emptyText: 'Es wurde keine Gruppe selektiert', - removeTitleText: 'Gruppe entfernen', - removeMsgText: 'Gruppe "{0}" entfernen?', - errorTitleText: 'Fehler', - errorMsgText: 'Entfernen der Gruppe fehlgeschlagen.' - }); - -} - -// sonia.action.js - -if (Sonia.action.ChangePasswordWindow){ - - Ext.override(Sonia.action.ChangePasswordWindow, { - titleText: 'Passwort ändern', - oldPasswordText: 'Altes Passwort', - newPasswordText: 'Neues Password', - confirmPasswordText: 'Passwort bestätigen', - okText: 'Ok', - cancelText: 'Abbrechen', - connectingText: 'Verbinden', - failedText: 'Passwort Änderung fehlgeschlagen!', - waitMsgText: 'Daten übertragen...' - }); - -} - -if (Sonia.action.ExceptionWindow){ - - // ?? - Ext.override(Sonia.action.ExceptionWindow, { - okText: 'Ok', - detailsText: 'Details', - exceptionText: 'Fehler' - }); - -} - -// sonia.plugin.js - -if (Sonia.plugin.Center){ - - Ext.override(Sonia.plugin.Center, { - waitTitleText: 'Bitte warten', - errorTitleText: 'Fehler', - restartText: 'Der ApplicationServer muss neugestartet werden um das Plugin zu aktivieren.', - - installWaitMsgText: 'Plugin wird installiert.', - installSuccessText: 'Plugin wurde erfolgreich installiert', - installFailedText: 'Plugin installieren fehlgeschlagen', - - uninstallWaitMsgText: 'Plugin wird deinstalliert.', - uninstallSuccessText: 'Plugin wurde erfolgreich deinstalliert', - uninstallFailedText: 'Plugin deinstallieren fehlgeschlagen', - - updateWaitMsgText: 'Plugin wird aktualisiert.', - updateSuccessText: 'Plugin wurde erfolgreich aktualisiert', - updateFailedText: 'Plugin aktualisieren fehlgeschlagen' - }); - -} - -if (Sonia.plugin.Grid){ - - Ext.override(Sonia.plugin.Grid, { - colNameText: 'Name', - colAuthorText: 'Autor', - colDescriptionText: 'Beschreibung', - colVersionText: 'Version', - colActionText: 'Aktion', - colUrlText: 'Url', - colCategoryText: 'Kategorie', - emptyText: 'Es konnte kein Plugin gefunden werden.', - - btnReload: 'Aktualisieren', - btnInstallPackage: 'Paket installieren', - - uploadWindowTitle: 'Plugin-Paket hochladen' - }); - -} - -if (Sonia.plugin.UploadForm){ - - Ext.override(Sonia.plugin.UploadForm, { - emptyText: 'Wählen Sie ein Plugin-Paket', - uploadFieldLabel: 'Paket', - waitMsg: 'Hochladen des Pakets ...', - btnUpload: 'Hochladen', - btnReset: 'Zurücksetzen' - }); -} - -// sonia.scm.js - -if (Sonia.scm.Main){ - - Ext.override(Sonia.scm.Main, { - tabRepositoriesText: 'Repositories', - navChangePasswordText: 'Passwort ändern', - sectionMainText: 'Repositories', - sectionSecurityText: 'Sicherheit', - navRepositoriesText: 'Repositories', - sectionConfigText: 'Konfiguration', - navGeneralConfigText: 'Allgemein', - tabGeneralConfigText: 'SCM Konfiguration', - navRepositoryTypesText: 'Repository Konfiguration', - navImportRepositoriesText: 'Repositories importieren', - tabRepositoryTypesText: 'Repository Konfiguration', - navPluginsText: 'Plugins', - tabPluginsText: 'Plugins', - navUsersText: 'Benutzer', - tabUsersText: 'Benutzer', - navGroupsText: 'Gruppen', - tabGroupsText: 'Gruppen', - - sectionLoginText: 'Anmelden', - navLoginText: 'Anmelden', - - sectionLogoutText: 'Abmelden', - navLogoutText: 'Abmelden', - - logoutFailedText: 'Abmeldung Fehlgeschlagen!', - - errorTitle: 'Fehler', - errorMessage: 'Es ist ein unbekannter Fehler aufgetreten.', - - errorSessionExpiredTitle: 'Session abgelaufen', - errorSessionExpiredMessage: 'Ihre Session ist abgelaufen. Bitte melden Sie sich neu an.', - - errorNoPermissionsTitle: 'Keine Berechtigung', - errorNoPermissionsMessage: 'Sie haben nicht genügend Rechte um diese Aktion auszuführen.', - - errorNotFoundTitle: 'Nicht gefunden', - errorNotFoundMessage: 'Die Ressource konnte nicht gefunden werden.', - - loggedInTextTemplate: 'angemeldet als {state.user.name} - ', - userInfoMailText: 'E-Mail', - userInfoGroupsText: 'Gruppen' - }); - -} - -if (Sonia.panel.SyntaxHighlighterPanel){ - - Ext.override(Sonia.panel.SyntaxHighlighterPanel, { - loadErrorTitleText: 'Fehler', - loadErrorMsgText: 'Die Datei konnte nicht geladen werden' - }); - -} - - -if (Sonia.rest.Panel){ - - Ext.override(Sonia.rest.Panel, { - - addText: 'Hinzufügen', - removeText: 'Entfernen', - reloadText: 'Aktualisieren' - - }); - -} - -// sonia.security.permissionspanel.js -if (Sonia.security.PermissionsPanel){ - - Ext.override(Sonia.security.PermissionsPanel, { - - addText: 'Hinzufügen', - removeText: 'Entfernen', - reloadText: 'Aktualisieren', - - titleText: 'Berechtigungen' - - }); - - } \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/i18n/es.js b/scm-webapp/src/main/webapp/resources/js/i18n/es.js deleted file mode 100644 index 15460c2fec..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/i18n/es.js +++ /dev/null @@ -1,668 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -if (Ext.form.VTypes) { - - Ext.override(Ext.form.VTypes, { - // sonia.config.js - pluginurlText: 'Este campo debe ser una URL. Formato: \n\ - "http://plugins.scm-manager.org/scm-plugin-backend/api/{version}/plugins?os={os}&arch={arch}&snapshot=false"', - passwordText: '¡Las contraseñas no coinciden!', - nameTest: 'El nombre no es válido.', - usernameText: 'El nombre de usuario no es válido.', - repositoryNameText: 'El nombre del repositorio no es válido.' - }); - -} - -// sonia.util.js - -if (Ext.util.Format) { - - Ext.apply(Ext.util.Format, { - timeAgoJustNow: 'Ahora', - timeAgoOneMinuteAgo: 'Hace un minuto', - timeAgoOneMinuteFromNow: 'Dentro de un minuto', - timeAgoMinutes: 'Minutos', - timeAgoOneHourAgo: 'Hace una hora', - timeAgoOneHourFromNow: 'Dentro de una hora', - timeAgoHours: 'Horas', - timeAgoYesterday: 'Ayer', - timeAgoTomorrow: 'Mañana', - timeAgoDays: 'Días', - timeAgoLastWeek: 'La semana pasada', - timeAgoNextWeek: 'La próxima semana', - timeAgoWeeks: 'Semanas', - timeAgoLastMonth: 'El mes pasado', - timeAgoNextMonth: 'El próximo mes', - timeAgoMonths: 'Meses', - timeAgoLastYear: 'El año pasado', - timeAgoNextYear: 'El próximo año', - timeAgoYears: 'Años', - timeAgoLastCentury: 'El siglo pasado', - timeAgoNextCentury: 'El próximo siglo', - timeAgoCenturies: 'Siglos' - }); - -} - -// sonia.login.js - -if (Sonia.login.Form) { - - Ext.override(Sonia.login.Form, { - usernameText: 'Nombre de usuario', - passwordText: 'Contraseña', - loginText: 'Iniciar sesión', - cancelText: 'Cancelar', - waitTitleText: 'Conectando', - WaitMsgText: 'Enviando datos...', - failedMsgText: '¡Error de acceso!', - failedDescriptionText: 'O el nombre de usuario o la contraseña son incorrectos o usted \n\ - no tiene suficientes permisos. Por favor inténtelo de nuevo.', - accountLockedText: 'La cuenta está bloqueada.', - accountTemporaryLockedText: 'En este momento la cuenta está bloqueada. \n\ - Inténtelo más tarde.', - rememberMeText: 'Recuérdame' - }); - -} - -if (Sonia.login.Window) { - - Ext.override(Sonia.login.Window, { - titleText: 'Iniciar sesión' - }); - -} - -// sonia.rest.js - -if (Sonia.rest.JsonStore) { - - Ext.override(Sonia.rest.JsonStore, { - errorTitleText: 'Error', - errorMsgText: 'No se pudieron cargar los datos. Estado del servidor: {0}' - }); - -} - -if (Sonia.rest.Grid) { - - Ext.override(Sonia.rest.Grid, { - emptyText: 'No se encontraron datos.' - }); - -} - -if (Sonia.rest.FormPanel) { - - Ext.override(Sonia.rest.FormPanel, { - okText: 'Aceptar', - cancelText: 'Cancelar', - addText: 'Añadir', - removeText: 'Eliminar' - }); - -} - -if (Sonia.repository.ChangesetPanel) { - - Ext.apply(Sonia.repository.ChangesetPanel, { - diffLabel: 'Diferenciar', - rawDiffLabel: 'Fichero de diferencias' - }); - -} - -// sonia.repository.js - -if (Sonia.repository.DefaultPanel) { - - Ext.apply(Sonia.repository.DefaultPanel, { - title: 'Repositorio', - html: 'Añada o seleccione un repositorio' - }); - -} - -if (Sonia.repository.Grid) { - - Ext.override(Sonia.repository.Grid, { - colNameText: 'Nombre', - colTypeText: 'Tipo', - colContactText: 'Contacto', - colDescriptionText: 'Descripción', - colCreationDateText: 'Fecha de creación', - colUrlText: 'URL', - colArchiveText: 'Archivo', - emptyText: 'El repositorio no está configurado', - formTitleText: 'Repositorio', - unknownType: 'Desconocido' - }); - -} - -if (Sonia.repository.FormPanel) { - - Ext.override(Sonia.repository.FormPanel, { - colGroupPermissionText: 'Es un grupo', - colNameText: 'Nombre', - colTypeText: 'Tipo', - formTitleText: 'Ajustes', - nameText: 'Nombre', - typeText: 'Tipo', - contactText: 'Contacto', - descriptionText: 'Descripción', - publicText: 'Público', - permissionText: 'Permisos', - errorTitleText: 'Error', - updateErrorMsgText: 'Error al actualizar el repositorio', - createErrorMsgText: 'Error el crear el repositorio', - // help - nameHelpText: 'El nombre del repositorio. Este nombre es parte de la URL del repositorio.', - typeHelpText: 'El tipo del repositorio (por ejemplo, Mercurial, Git o Subversion).', - contactHelpText: 'La dirección de correo electrónico de la persona responsable del repositorio.', - descriptionHelpText: 'Una breve descripción del repositorio.', - publicHelpText: 'Un repositorio público puede ser leído por cualquier persona.', - permissionHelpText: 'Los permisos de gestión para un usuario o un grupo específico.
        \n\ - Permisos:
        READ = lectura
        WRITE = lectura y escritura
        \n\ - OWNER = lectura, escritura y gestión de propiedades y permisos' - }); - -} - -if (Sonia.repository.Panel) { - - Ext.override(Sonia.repository.Panel, { - titleText: 'Repositorio', - filterText: 'Filtrar: ', - searchText: 'Buscar: ', - archiveText: 'Archivar', - unarchiveText: 'Restaurar', - archiveTitleText: 'Archivar el repositorio', - unarchiveTitleText: 'Restaurar el repositorio', - archiveMsgText: '¿Archivar el repositorio "{0}"?', - unarchiveMsgText: '¿Restaurar el repositorio "{0}"?', - errorArchiveMsgText: 'Error al archivar el repositorio.', - errorUnarchiveMsgText: 'Error al restaurar el repositorio.', - displayArchivedRepositoriesText: 'Archivo', - emptyText: 'Añada o seleccione un repositorio', - removeTitleText: 'Eliminar el repositorio', - removeMsgText: 'Eliminar el repositorio "{0}"?', - errorTitleText: 'Error', - errorMsgText: 'Error al eliminar el repositorio' - }); - -} - -if (Sonia.repository.PermissionFormPanel) { - - Ext.override(Sonia.repository.PermissionFormPanel, { - titleText: 'Permisos' - }); - -} - -if (Sonia.repository.ChangesetViewerPanel) { - - Ext.override(Sonia.repository.ChangesetViewerPanel, { - // spanish ?? - changesetViewerTitleText: 'Commits {0}' //Confirmaciones - }); - -} - -if (Sonia.repository.InfoPanel) { - - Ext.override(Sonia.repository.InfoPanel, { - nameText: 'Nombre: ', - typeText: 'Tipo: ', - contactText: 'Contacto: ', - urlText: 'URL: ', - // spanish ?? - changesetViewerText: 'Commits', //Confirmaciones - accessText: 'Acceso:', - accessReadOnly: 'Acceso de solo lectura', - accessReadWrite: 'Acceso de lectura y escritura' - }); - -} - -if (Sonia.repository.ExtendedInfoPanel) { - - Ext.override(Sonia.repository.ExtendedInfoPanel, { - // spanish ?? - checkoutText: 'Checkout: ', //Obtener - repositoryBrowserText: 'Código fuente' - }); - -} - -if (Sonia.repository.RepositoryBrowser) { - - Ext.override(Sonia.repository.RepositoryBrowser, { - repositoryBrowserTitleText: 'Código fuente {0}', - emptyText: 'Este directorio está vacio', - colNameText: 'Nombre', - colLengthText: 'Longitud', - colLastModifiedText: 'Última modificación', - colDescriptionText: 'Descripción' - }); - -} - -if (Sonia.repository.ChangesetViewerGrid) { - - Ext.override(Sonia.repository.ChangesetViewerGrid, { - // spanish ?? - emptyText: 'No hay commits disponibles' //confirmaciones - }); - -} - -if (Sonia.repository.ImportWindow) { - - Ext.override(Sonia.repository.ImportWindow, { - titleText: 'Importar repositorios', - okText: 'Aceptar', - closeText: 'Cerrar' - }); - -} - -// sonia.config.js - -if (Sonia.config.ScmConfigPanel) { - - Ext.override(Sonia.config.ScmConfigPanel, { - titleText: 'Ajustes generales', - servnameText: 'Nombre del servidor', - dateFormatText: 'Formato de la fecha', - enableForwardingText: 'Habilitar el reenvío (mod_proxy)', - forwardPortText: 'Puerto para el reenvío', - pluginRepositoryText: 'Repositorio de plugins', - allowAnonymousAccessText: 'Permitir el acceso anónimo', - enableSSLText: 'Activar SSL', - sslPortText: 'Puerto SSL', - adminGroupsText: 'Grupos de administradores', - adminUsersText: 'Usuarios administradores', - enableProxyText: 'Activar proxy', - proxyServerText: 'Servidor proxy', - proxyPortText: 'Puerto para el proxy', - proxyUserText: 'Usuario para el proxy', - proxyPasswordText: 'Contraseña para el proxy', - proxyExcludesText: 'Excepciones para el proxy', - baseUrlText: 'URL base', - forceBaseUrlText: 'Forzar a URL base', - disableGroupingGridText: 'Desactivar la agrupación de repositorios', - enableRepositoryArchiveText: 'Habilitar el archivado de repositorios', - submitText: 'Enviando ...', - loadingText: 'Cargando ...', - errorTitleText: 'Error', - errorMsgText: 'No se pudo cargar la configuración.', - errorSubmitMsgText: 'No se pudo enviar la configuración.', - loginAttemptLimitText: 'Intentos de inicio de sesión fallidos', - loginAttemptLimitTimeoutText: 'Tiempo de espera para inicio de sesión', - // help - servernameHelpText: 'El nombre de este servidor. Este nombre será parte de la URL del repositorio.', - dateFormatHelpText: 'Formato de la fecha. Por favor, eche un vistazo a\n\ - http://momentjs.com/docs/#/displaying/format/.', - pluginRepositoryHelpText: 'La URL del repositorio de plugins.
        Descripción de los {comodines}:\n\ -
        version = Versión de SCM-Manager
        os = Sistema Operativo
        arch = Arquitectura', - enableForwardingHelpText: 'Habilitar el reenvío de puerto de Apache mod_proxy.', - forwardPortHelpText: 'El puerto para el reenvío de puerto de Apache mod_proxy.', - allowAnonymousAccessHelpText: 'Los usuarios anónimos pueden leer los repositorios públicos.', - enableSSLHelpText: 'Habilitar conexiones seguras a través de HTTPS.', - sslPortHelpText: 'El puerto SSL.', - adminGroupsHelpText: 'Lista de grupos con derechos de administrador separados por comas.', - adminUsersHelpText: 'Lista de usuarios con derechos de administrador separados por comas.', - loginAttemptLimitHelpText: 'El número máximo de inicios de sesión fallidos. Un valor de -1 desactiva el límite.', - loginAttemptLimitTimeoutHelpText: 'El tiempo, en segundos, que un usuario será bloqueado temporalmente debido a muchos intentos fallidos de inicio de sesión.', - enableProxyHelpText: 'Usar la configuración del proxy.', - proxyServerHelpText: 'El servidor proxy.', - proxyPortHelpText: 'El puerto para el proxy', - proxyUserHelpText: 'El nombre de usuario para la autenticación en el servidor proxy.', - proxyPasswordHelpText: 'La contraseña del usuario para la autenticación en el servidor proxy.', - proxyExcludesHelpText: 'Una lista separada por comas de los patrones globales de nombre de servidor que serán excluidos de la configuración del proxy', - baseUrlHelpText: 'La URL completa del servidor, incluyendo el contexto, por ejemplo: http://localhost:8080/scm.', - forceBaseUrlHelpText: 'Redirige a la URL base si la solicitud proviene de otra URL.', - disableGroupingGridHelpText: 'Desactiva la agrupación de repositorios. Si se cambia este valor, la página se tiene que volver a cargar.', - enableRepositoryArchiveHelpText: 'Habilita el archivado de repositorios. Si se cambia este valor, la página se tiene que volver a cargar.' - }); - -} - -if (Sonia.config.ConfigForm) { - - Ext.override(Sonia.config.ConfigForm, { - title: 'Configuración', - saveButtonText: 'Guardar', - resetButtontext: 'Reestablecer', - submitText: 'Enviando ...', - loadingText: 'Cargando ...', - failedText: 'Se ha producido un error desconocido.' - }); - -} - -// sonia.user.js - -if (Sonia.user.DefaultPanel) { - - Ext.apply(Sonia.user.DefaultPanel, { - title: 'Usuario', - html: 'Añada o seleccione un usuario.' - }); - -} - -if (Sonia.user.Grid) { - - Ext.override(Sonia.user.Grid, { - titleText: 'Usuario', - colNameText: 'Nombre', - colDisplayNameText: 'Mostrar nombre', - colMailText: 'Correo electrónico', - colActiveText: 'Activo', - colAdminText: 'Administrador', - colCreationDateText: 'Fecha de creación', - colLastModifiedText: 'Última modificación', - colTypeText: 'Tipo' - }); - -} - -if (Sonia.user.FormPanel) { - - Ext.override(Sonia.user.FormPanel, { - nameText: 'Nombre', - displayNameText: 'Mostrar nombre', - mailText: 'Correo electrónico', - passwordText: 'Contraseña', - adminText: 'Administrador', - activeText: 'Activo', - errorTitleText: 'Error', - updateErrorMsgText: 'No se ha podido actualizar el usuario', - createErrorMsgText: 'No se ha podido crear el usuario', - passwordMinLengthText: 'La contraseña debe tener al menos 6 caracteres', - // help - usernameHelpText: 'Nombre único de usuario.', - displayNameHelpText: 'Muestra el nombre del usuario.', - mailHelpText: 'Dirección de correo electrónico del usuario.', - passwordHelpText: 'Contraseña en texto plano del usuario.', - passwordConfirmHelpText: 'Repita la contraseña para la validación.', - adminHelpText: 'Un administrador puede crear, editar y borrar repositorios, grupos y usuarios.', - activeHelpText: 'Activa o desactiva el usuario.' - }); - -} - -if (Sonia.user.Panel) { - - Ext.override(Sonia.user.Panel, { - titleText: 'Usuario', - emptyText: 'Añada o seleccione un usuario', - removeTitleText: 'Eliminar usuario', - removeMsgText: '¿Eliminar el usuario "{0}"?', - showOnlyActiveText: 'Mostrar solo activos: ', - errorTitleText: 'Error', - errorMsgText: 'No se ha podido eliminar el usuario' - }); - -} - - -// sonia.group.js - -if (Sonia.group.DefaultPanel) { - - Ext.apply(Sonia.group.DefaultPanel, { - title: 'Grupo', - html: 'Añada o seleccione un grupo' - }); - -} - -if (Sonia.group.Grid) { - - Ext.override(Sonia.group.Grid, { - colNameText: 'Nombre', - colDescriptionText: 'Descripción', - colMembersText: 'Miembros', - colCreationDateText: 'Fecha de creación', - colTypeText: 'Tipo', - emptyGroupStoreText: 'El grupo no está configurado.', - groupFormTitleText: 'Grupo' - }); - -} - -if (Sonia.group.FormPanel) { - - Ext.override(Sonia.group.FormPanel, { - colMemberText: 'Miembro', - titleText: 'Ajustes', - nameText: 'Nombre', - descriptionText: 'Descripción', - membersText: 'Miembros', - errorTitleText: 'Error', - updateErrorMsgText: 'No se pudo actualizar el grupo', - createErrorMsgText: 'No se pudo crear el grupo', - // help - nameHelpText: 'Nombre único del grupo.', - descriptionHelpText: 'Una breve descripción del grupo.', - membersHelpText: 'Nombres de usuario de los miembros del grupo.' - }); - -} - -if (Sonia.group.Panel) { - - Ext.override(Sonia.group.Panel, { - titleText: 'Grupo', - emptyText: 'Añada o seleccione un grupo', - removeTitleText: 'Eliminar grupo', - removeMsgText: '¿Eliminar el grupo "{0}"?', - errorTitleText: 'Error', - errorMsgText: 'No se pudo eliminar el grupo.' - }); - -} - -// sonia.action.js - -if (Sonia.action.ChangePasswordWindow) { - - Ext.override(Sonia.action.ChangePasswordWindow, { - titleText: 'Cambiar contraseña', - oldPasswordText: 'Clave antigua', // Better 'Contraseña antigua' change dialog size - newPasswordText: 'Clave nueva', // Better 'Contraseña nueva' change dialog size - confirmPasswordText: 'Confirma clave', // Better 'Confirma clave' change dialog size - okText: 'Aceptar', - cancelText: 'Cancelar', - connectingText: 'Conectando', - failedText: '¡No se pudo cambiar la contraseña!', - waitMsgText: 'Enviando datos ...' - }); - -} - -if (Sonia.action.ExceptionWindow) { - - // ?? - Ext.override(Sonia.action.ExceptionWindow, { - okText: 'Aceptar', - detailsText: 'Detalles', - exceptionText: 'Excepción' - }); - -} - -// sonia.plugin.js - -if (Sonia.plugin.Center) { - - Ext.override(Sonia.plugin.Center, { - waitTitleText: 'Por favor espere', - errorTitleText: 'Error', - restartText: 'Reinicie el servidor para activar el pugin.', - installWaitMsgText: 'Instalando el plugin.', - installSuccessText: 'Instalación correcta', - installFailedText: 'La instalación falló', - uninstallWaitMsgText: 'Desinstalando el plugin.', - uninstallSuccessText: 'Desinstalación correcta', - uninstallFailedText: 'La desinstalación falló', - updateWaitMsgText: 'Actualizando el plugin.', - updateSuccessText: 'Actualización correcta', - updateFailedText: 'La actualización falló' - - /* - Better: - - installSuccessText: 'El plugin se instaló correctamente', - installFailedText: 'La instalación del plugin ha fallado', - - uninstallSuccessText: 'El plugin se desinstaló correctamente', - uninstallFailedText: 'La desinstalación del plugin ha fallado', - - updateSuccessText: 'El plugin se actualizó correctamente', - updateFailedText: 'La actualización del plugin ha fallado' - - But needed change dialog size - */ - }); - -} - -if (Sonia.plugin.Grid) { - - Ext.override(Sonia.plugin.Grid, { - colNameText: 'Nombre', - colAuthorText: 'Autor', - colDescriptionText: 'Descripción', - colVersionText: 'Versión', - colActionText: 'Acción', - colUrlText: 'URL', - colCategoryText: 'Categoría', - emptyText: 'No hay plugins disponibles.', - btnReload: 'Actualizar', - btnInstallPackage: 'Instalar paquete', - uploadWindowTitle: 'Cargar paquete de plugins' - }); - -} - -if (Sonia.plugin.UploadForm) { - - Ext.override(Sonia.plugin.UploadForm, { - emptyText: 'Seleccione un paquete de plugins', - uploadFieldLabel: 'Paquete', - waitMsg: 'Cargando el paquete ...', - btnUpload: 'Cargar', - btnReset: 'Limpiar' - }); - -} - -// sonia.scm.js - -if (Sonia.scm.Main) { - - Ext.override(Sonia.scm.Main, { - tabRepositoriesText: 'Repositorios', - navChangePasswordText: 'Cambiar contraseña', - sectionMainText: 'Principal', - sectionSecurityText: 'Seguridad', - navRepositoriesText: 'Repositorios', - sectionConfigText: 'Configuración', - navGeneralConfigText: 'General', - tabGeneralConfigText: 'Configuración general', - navRepositoryTypesText: 'Repositorios', - navImportRepositoriesText: 'Importar repositorios', - tabRepositoryTypesText: 'Configuración de repositorios', - navPluginsText: 'Plugins', - tabPluginsText: 'Configuración de plugins', - navUsersText: 'Usuarios', - tabUsersText: 'Usuarios', - navGroupsText: 'Grupos', - tabGroupsText: 'Grupos', - sectionLoginText: 'Iniciar sesión', - navLoginText: 'Iniciar sesión', - sectionLogoutText: 'Cerrar sesión', - navLogoutText: 'Cerrar sesión', - logoutFailedText: '¡Ha ocurrido un error al salir!', - errorTitle: 'Error', - errorMessage: 'Se ha producido un error desconocido.', - errorSessionExpiredTitle: 'Sesión expirada', - errorSessionExpiredMessage: 'Su sesión ha expirado. Por favor, inicie sesión de nuevo.', - errorNoPermissionsTitle: 'Sin permiso', - errorNoPermissionsMessage: 'Usted no tiene permiso para realizar esta acción.', - errorNotFoundTitle: 'No encontrado', - errorNotFoundMessage: 'El recurso no se pudo encontrar.', - loggedInTextTemplate: 'conectado como {state.user.name} - ', - userInfoMailText: 'Correo electrónico', - userInfoGroupsText: 'Grupos' - }); - -} - -if (Sonia.panel.SyntaxHighlighterPanel) { - - Ext.override(Sonia.panel.SyntaxHighlighterPanel, { - loadErrorTitleText: 'Error', - loadErrorMsgText: 'No se pudo cargar el fichero' - }); - -} - - -if (Sonia.rest.Panel) { - - Ext.override(Sonia.rest.Panel, { - addText: 'Añadir', - removeText: 'Eliminar', - reloadText: 'Actualizar' - }); - -} - -// sonia.security.permissionspanel.js -if (Sonia.security.PermissionsPanel) { - - Ext.override(Sonia.security.PermissionsPanel, { - addText: 'Añadir', - removeText: 'Eliminar', - reloadText: 'Actualizar', - titleText: 'Permisos' - }); - -} \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.form.js b/scm-webapp/src/main/webapp/resources/js/login/sonia.login.form.js deleted file mode 100644 index ee0d7a689b..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.form.js +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.login.Form = Ext.extend(Ext.FormPanel,{ - - usernameText: 'Username', - passwordText: 'Password', - loginText: 'Login', - cancelText: 'Cancel', - waitTitleText: 'Connecting', - WaitMsgText: 'Sending data...', - failedMsgText: 'Login failed!', - failedDescriptionText: 'Incorrect username, password or not enough permission. Please Try again.', - accountLockedText: 'Account is locked.', - accountTemporaryLockedText: 'Account is temporary locked. Please try again later.', - - initComponent: function(){ - var buttons = []; - if (scmGlobalConfiguration.anonymousAccessEnabled){ - buttons.push({ - text: this.cancelText, - scope: this, - handler: this.cancel - }); - } - buttons.push({ - id: 'loginButton', - text: this.loginText, - formBind: true, - scope: this, - handler: this.authenticate - }); - - var config = { - labelWidth: 120, - url: restUrl + "auth/access_token", - frame: true, - title: this.titleText, - defaultType: 'textfield', - monitorValid: true, - listeners: { - afterrender: function(){ - Ext.getCmp('username').focus(true, 500); - } - }, - items:[{ - id: 'username', - fieldLabel: this.usernameText, - name: 'username', - allowBlank:false, - listeners: { - specialkey: { - fn: this.specialKeyPressed, - scope: this - } - } - },{ - fieldLabel: this.passwordText, - name: 'password', - inputType: 'password', - allowBlank: false, - listeners: { - specialkey: { - fn: this.specialKeyPressed, - scope: this - } - } - }, { - name: 'grant_type', - value: 'password', - xtype: 'hidden' - }, { - name: 'cookie', - value: 'true', - xtype: 'hidden' - }], - buttons: buttons - }; - - this.addEvents('cancel', 'failure'); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.login.Form.superclass.initComponent.apply(this, arguments); - }, - - cancel: function(){ - this.fireEvent('cancel'); - main.checkLogin(); - }, - - authenticate: function(){ - var form = this.getForm(); - - form.submit({ - scope: this, - method: 'POST', - waitTitle: this.waitTitleText, - waitMsg: this.WaitMsgText, - - success: function(form, action){ - if ( debug ){ - console.debug( 'login success' ); - } - main.loadState( action.result ); - }, - - failure: function(form, action){ - if ( debug ){ - console.debug( 'login failed with ' + action.result.failure); - } - this.fireEvent('failure'); - var msg = this.failedDescriptionText; - switch (action.result.failure){ - case 'LOCKED': - msg = this.accountLockedText; - break; - case 'TEMPORARY_LOCKED': - msg = this.accountTemporaryLockedText; - break; - } - Ext.Msg.show({ - title: this.failedMsgText, - msg: msg, - buttons: Ext.Msg.OK, - icon: Ext.MessageBox.WARNING - }); - form.reset(); - } - }); - }, - - specialKeyPressed: function(field, e){ - if (e.getKey() === e.ENTER) { - var form = this.getForm(); - if ( form.isValid() ){ - this.authenticate(); - } - } - } - -}); - -Ext.reg('soniaLoginForm', Sonia.login.Form); diff --git a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.js b/scm-webapp/src/main/webapp/resources/js/login/sonia.login.js deleted file mode 100644 index d0f3d492cb..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.ns('Sonia.login'); diff --git a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.window.js b/scm-webapp/src/main/webapp/resources/js/login/sonia.login.window.js deleted file mode 100644 index b8f5722d50..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/login/sonia.login.window.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.login.Window = Ext.extend(Ext.Window,{ - - titleText: 'Please Login', - - initComponent: function(){ - var form = new Sonia.login.Form(); - form.on('actioncomplete', function(){ - this.fireEvent('success'); - this.close(); - }, this); - form.on('cancel', function(){ - this.close(); - }, this); - - var config = { - layout:'fit', - width:320, - height:150, - closable: false, - resizable: false, - plain: true, - border: false, - modal: true, - title: this.titleText, - items: [form] - }; - - this.addEvents('success'); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.login.Window.superclass.initComponent.apply(this, arguments); - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.js b/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.js deleted file mode 100644 index 394ae3bd6b..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.ns('Sonia.navigation'); diff --git a/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.navpanel.js b/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.navpanel.js deleted file mode 100644 index 9d3e44f414..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/navigation/sonia.navigation.navpanel.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.navigation.NavPanel = Ext.extend(Ext.Panel, { - - sections: null, - - initComponent: function(){ - - var config = { - listeners: { - afterrender: { - fn: this.renderSections, - scope: this - } - } - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.navigation.NavSection.superclass.initComponent.apply(this, arguments); - }, - - renderSections: function(){ - if ( this.sections ){ - this.addSections( this.sections ); - } - }, - - insertSection: function(pos, section){ - if ( debug ){ - console.debug('insert navsection ' + section.title + ' at ' + pos); - } - section.xtype = 'navSection'; - this.insert(pos, section); - this.doLayout(); - }, - - addSections: function(sections){ - if ( Ext.isArray( sections ) && sections.length > 0 ){ - for ( var i=0; i', - '', - '
      1. ', - '{label}', - '
      2. ', - '
        ', - '' - ), - - - initComponent: function(){ - if ( ! this.links ){ - this.links = this.items; - } - if ( ! this.links ){ - this.links = []; - } - - Ext.each(this.links, function(link){ - Ext.id( link ); - }); - - var config = { - frame: true, - collapsible:true, - style: 'margin: 5px' - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.navigation.NavSection.superclass.initComponent.apply(this, arguments); - }, - - doAction: function(e, t){ - e.stopEvent(); - Ext.each(this.links, function(navItem){ - if ( navItem.id === t.id && Ext.isFunction(navItem.fn) ){ - var scope = navItem.scope; - if ( Ext.isObject( scope )){ - navItem.fn.call(scope); - } else { - navItem.fn(); - } - } - }); - }, - - afterRender: function(){ - Sonia.navigation.NavSection.superclass.afterRender.apply(this, arguments); - - // create list items - this.tpl.overwrite(this.body, { - links: this.links - }); - - this.body.on('mousedown', this.doAction, this, {delegate:'a'}); - this.body.on('click', Ext.emptyFn, null, {delegate:'a', preventDefault:true}); - }, - - - addLink: function(link){ - Ext.id(link); - this.links.push(link); - }, - - addLinks: function(links){ - if ( Ext.isArray(links) && links.length > 0 ){ - for ( var i=0; i= 0){ - this.colModel.removeColumn(colIndex); - } - }, - - applyState: function(state){ - var view = this.getView(); - if (view && view.applyState){ - var groups = state.groups; - if (groups){ - view.applyState(groups); - } - } - this.applyStateExt(state); - }, - - getState: function(){ - var state = this.getStateExt(); - var view = this.getView(); - if (view && view.getState){ - state.groups = view.getState(); - } - return state; - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/override/ext.grid.groupingview.js b/scm-webapp/src/main/webapp/resources/js/override/ext.grid.groupingview.js deleted file mode 100644 index 0bcc883f57..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/override/ext.grid.groupingview.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.grid.GroupingView.prototype.initTemplatesExt = Ext.grid.GroupingView.prototype.initTemplates; -Ext.grid.GroupingView.prototype.toggleGroupExt = Ext.grid.GroupingView.prototype.toggleGroup; - -Ext.override(Ext.grid.GroupingView,{ - - storedState: null, - idPrefix: '{grid.el.id}', - - initTemplates : function(){ - this.initTemplatesExt(); - if (this.storedState){ - this.state = this.storedState; - } - }, - - toggleGroup : function(group, expanded){ - this.toggleGroupExt(group, expanded); - this.grid.fireEvent('toggleGroup', group, expanded); - }, - - getState: function(){ - return this.state; - }, - - applyState: function(state){ - this.storedState = state; - }, - - getPrefix: function(field){ - var prefix; - if ( this.idPrefix === '{grid.id}' ){ - prefix = this.grid.getId(); - } else if (this.idPrefix === '{grid.el.id}') { - prefix = this.grid.getGridEl().id; - } else { - prefix = this.idPrefix; - } - prefix += '-gp-' + field + '-'; - return prefix; - } - -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js b/scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js deleted file mode 100644 index 258b489bac..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Ext.apply(Ext.util.Format, { - - formatTimestamp: function(value){ - var result = ''; - if ( value && (value > 0 || value.length > 0)){ - var df = state.clientConfig.dateFormat; - if ( ! df || df.length === 0 || ! Ext.isDefined(value) ){ - df = "YYYY-MM-DD HH:mm:ss"; - } - result = moment(value).format(df); - } - - if (result.indexOf("{0}") >= 0){ - result = String.format(result, Ext.util.Format.timeAgo(value)); - } - - return result; - }, - - timeAgo : function(value){ - return moment(value).fromNow(); - }, - - id: function(value){ - return this.substr(value, 0, 12); - }, - - convertLineBreaks: function(value){ - if (value){ - value = value.replace(/(\r\n|\n|\r)/gm, "
        "); - } - return value; - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.js b/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.js deleted file mode 100644 index 80cd5fd528..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// register namespace -Ext.ns('Sonia.panel'); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.syntaxhighlighterpanel.js b/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.syntaxhighlighterpanel.js deleted file mode 100644 index fab21ac806..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/panel/sonia.panel.syntaxhighlighterpanel.js +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.panel.SyntaxHighlighterPanel = Ext.extend(Ext.Panel, { - - syntaxes: [{ - name: 'ActionScript3', - aliases: ['as', 'as3', 'actionscript3'], - fileName: 'shBrushAS3.js' - },{ - name: 'AppleScript', - aliases: ['applescript', 'scpt'], - fileName: 'shBrushAppleScript.js' - },{ - name: 'Bash/shell', - brush: 'shell', - aliases: ['sh', 'bash', 'shell'], - fileName: 'shBrushBash.js' - },{ - name: 'ColdFusion', - aliases: ['cf', 'coldfusion'], - fileName: 'shBrushColdFusion.js' - },{ - name: 'C#', - brush: 'csharp', - aliases: ['cs', 'c-sharp', 'csharp'], - fileName: 'shBrushCSharp.js' - },{ - name: 'C++', - aliases: ['cpp', 'c', 'h', 'hh', 'cc'], - fileName: 'shBrushCpp.js' - },{ - name: 'CSS', - aliases: ['css'], - fileName: 'shBrushCss.js' - },{ - name: 'Delphi', - aliases: ['delphi', 'pas', 'pascal'], - fileName: 'shBrushDelphi.js' - },{ - name: 'Diff', - aliases: ['diff', 'patch'], - fileName: 'shBrushDiff.js' - },{ - name: 'Erlang', - aliases: ['erl', 'erlang'], - fileName: 'shBrushErlang.js' - },{ - name: 'Groovy', - aliases: ['groovy'], - fileName: 'shBrushGroovy.js' - },{ - name: 'JavaScript', - aliases: ['js', 'jscript', 'javascript' ], - fileName: 'shBrushJScript.js' - },{ - name: 'Java', - aliases: ['java', 'idl'], - fileName: 'shBrushJava.js' - },{ - name: 'JavaFX', - aliases: ['jfx', 'javafx'], - fileName: 'shBrushJavaFX.js' - },{ - name: 'Perl', - aliases: ['perl', 'pl'], - fileName: 'shBrushPerl.js' - },{ - name: 'PHP', - aliases: ['php'], - fileName: 'shBrushPhp.js' - },{ - name: 'Plain Text', - brush: 'plain', - aliases: ['plain', 'text', 'txt', 'log'], - fileName: 'shBrushPlain.js' - },{ - name: 'PowerShell', - aliases: ['ps', 'powershell'], - fileName: 'shBrushPowerShell.js' - },{ - name: 'Python', - aliases: ['py', 'python'], - fileName: 'shBrushPython.js' - },{ - name: 'Ruby', - aliases: ['rails', 'ror', 'ruby', 'rb'], - fileName: 'shBrushRuby.js' - },{ - name: 'Sass', - aliases: ['sass', 'scss'], - fileName: 'shBrushSass.js' - },{ - name: 'Scala', - aliases: ['scala'], - fileName: 'shBrushScala.js' - },{ - name: 'SQL', - aliases: ['sql'], - fileName: 'shBrushSql.js' - },{ - name: 'Visual Basic', - aliases: ['vb', 'vbnet'], - fileName: 'shBrushVb.js' - },{ - name: 'XML', - aliases: ['xml', 'xhtml', 'xslt', 'html', 'xhtml'], - fileName: 'shBrushXml.js' - }], - - syntax: 'plain', - brush: 'plain', - brushUrl: 'shBrushPlain.js', - theme: 'Netbeans', - shPath: 'resources/syntaxhighlighter', - contentUrl: null, - - loadErrorTitleText: 'Error', - loadErrorMsgText: 'Could not load file', - - contentLoaded: false, - scriptsLoaded: false, - - initComponent: function(){ - - if (debug){ - console.debug( 'try to find brush for ' + this.syntax ); - } - - if ( this.syntax !== 'plain' ){ - var s = null; - var found = false; - for (var i=0; i' + Ext.util.Format.htmlEncode(response.responseText) + ''); - this.contentLoaded = true; - this.highlight(); - }, - failure: function(result){ - main.handleRestFailure( - result, - this.loadErrorTitleText, - this.loadErrorMsgText - ); - } - }); - }, - - loadBrush: function(){ - main.loadScript(this.shPath + '/scripts/' + this.brushUrl, function(){ - this.scriptsLoaded = true; - this.highlight(); - }, this); - }, - - highlight: function(){ - if (debug){ - console.debug('loaded, script: ' + this.scriptsLoaded + ", content: " + this.contentLoaded ); - } - if ( this.scriptsLoaded && this.contentLoaded ){ - if (debug){ - console.debug('call SyntaxHighlighter.highlight()'); - } - SyntaxHighlighter.highlight({}, this.body.el); - // ugly workaround - SyntaxHighlighter.vars.discoveredBrushes = null; - } - } - -}); - -Ext.reg('syntaxHighlighterPanel', Sonia.panel.SyntaxHighlighterPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.center.js b/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.center.js deleted file mode 100644 index ebd2119886..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.center.js +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.plugin.Center = Ext.extend(Ext.util.Observable, { - - waitTitleText: 'Please wait', - errorTitleText: 'Error', - restartText: 'Restart the applicationserver to activate the plugin.', - - installWaitMsgText: 'Installing Plugin.', - installSuccessText: 'Plugin successfully installed', - installFailedText: 'Plugin installation failed', - - uninstallWaitMsgText: 'Uninstalling Plugin.', - uninstallSuccessText: 'Plugin successfully uninstalled', - uninstallFailedText: 'Plugin uninstallation failed', - - updateWaitMsgText: 'Updating Plugin.', - updateSuccessText: 'Plugin successfully updated', - updateFailedText: 'Plugin update failed', - - constructor : function(config) { - this.addEvents('install', 'uninstalled', 'updated'); - Sonia.plugin.Center.superclass.constructor.call(this, config); - }, - - getPluginId: function(data){ - return data.groupId + ':' + data.artifactId + ':' + data.version; - }, - - createLoadingBox: function(msg){ - return Ext.MessageBox.show({ - title: this.waitTitleText, - msg: msg, - width: 300, - wait: true, - animate: true, - progress: true, - closable: false - }); - }, - - fireEvents: function(name, pluginId){ - this.fireEvent(name, pluginId); - this.fireEvent("changed", pluginId); - }, - - install: function(pluginId){ - if ( debug ){ - console.debug( 'install plugin ' + pluginId ); - } - - var loadingBox = this.createLoadingBox( this.installWaitMsgText ); - - Ext.Ajax.request({ - url: restUrl + 'plugins/install/' + pluginId, - method: 'POST', - scope: this, - timeout: 300000, // 5min - success: function(){ - if ( debug ){ - console.debug('plugin successfully installed'); - } - loadingBox.hide(); - Ext.MessageBox.alert(this.installSuccessText, - this.restartText); - this.fireEvents('installed', pluginId); - }, - failure: function(result){ - if ( debug ){ - console.debug('plugin installation failed'); - } - loadingBox.hide(); - main.handleRestFailure( - result, - this.errorTitleText, - this.installFailedText - ); - } - }); - }, - - uninstall: function(pluginId){ - if ( debug ){ - console.debug( 'uninstall plugin ' + pluginId ); - } - - var loadingBox = this.createLoadingBox( this.uninstallWaitMsgText ); - - Ext.Ajax.request({ - url: restUrl + 'plugins/uninstall/' + pluginId, - method: 'POST', - scope: this, - success: function(){ - if ( debug ){ - console.debug('plugin successfully uninstalled'); - } - loadingBox.hide(); - Ext.MessageBox.alert(this.uninstallSuccessText, - this.restartText); - this.fireEvents('uninstalled', pluginId); - }, - failure: function(result){ - if ( debug ){ - console.debug('plugin uninstallation failed'); - } - loadingBox.hide(); - main.handleRestFailure( - result, - this.errorTitleText, - this.uninstallFailedText - ); - } - }); - }, - - update: function(pluginId){ - if ( debug ){ - console.debug( 'update plugin to ' + pluginId ); - } - - var loadingBox = this.createLoadingBox( this.updateWaitMsgText ); - - Ext.Ajax.request({ - url: restUrl + 'plugins/update/' + pluginId, - method: 'POST', - scope: this, - timeout: 300000, // 5min - success: function(){ - if ( debug ){ - console.debug('plugin successfully updated'); - } - loadingBox.hide(); - Ext.MessageBox.alert(this.updateSuccessText, - this.restartText); - this.fireEvents('updated', pluginId); - }, - failure: function(result){ - if ( debug ){ - console.debug('plugin update failed'); - } - loadingBox.hide(); - main.handleRestFailure( - result, - this.errorTitleText, - this.updateFailedText - ); - } - }); - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.grid.js b/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.grid.js deleted file mode 100644 index 5f44e51ebc..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.grid.js +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// the plugin center -Sonia.plugin.CenterInstance = new Sonia.plugin.Center(); - - -// plugin grid -Sonia.plugin.Grid = Ext.extend(Sonia.rest.Grid, { - - // columns - colNameText: 'Name', - colAuthorText: 'Author', - colDescriptionText: 'Description', - colVersionText: 'Version', - colActionText: 'Action', - colUrlText: 'Url', - colCategoryText: 'Category', - - // grid - emptyText: 'No plugins avaiable', - - // TODO i18n - - // buttons - btnReload: 'Reload', - btnIconReload: 'resources/images/reload.png', - btnInstallPackage: 'Install Package', - btnIconInstallPackage: 'resources/images/add.png', - - uploadWindowTitle: 'Upload Plugin-Package', - - actionLinkTemplate: '{0}', - - initComponent: function(){ - - var pluginColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: true, - scope: this, - width: 125 - }, - columns: [ - {id: 'name', header: this.colNameText, dataIndex: 'name'}, - {id: 'author', header: this.colAuthorText, dataIndex: 'author'}, - {id: 'description', header: this.colDescriptionText, dataIndex: 'description'}, - {id: 'version', header: this.colVersionText, dataIndex: 'version'}, - {id: 'action', header: this.colActionText, renderer: this.renderActionColumn}, - {id: 'Url', header: this.colUrlText, dataIndex: 'url', renderer: this.renderUrl, width: 150}, - {id: 'Category', header: this.colCategoryText, dataIndex: 'category', hidden: true, hideable: false} - ] - }); - - var pluginStore = new Ext.data.GroupingStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'plugins/overview', - disableCaching: false - }), - reader: new Ext.data.JsonReader({ - fields: [ 'name', 'author', 'description', 'url', 'version', 'state', 'groupId', 'artifactId', { - name: 'category', - convert: this.convertCategory, - scope: this - }] - }), - sortInfo: { - field: 'name' - }, - autoLoad: true, - autoDestroy: true, - remoteGroup: false, - groupOnSort: false, - groupField: 'category', - groupDir: 'AES' - }); - - var config = { - title: main.tabPluginsText, - autoExpandColumn: 'description', - store: pluginStore, - colModel: pluginColModel, - emptyText: this.emptyText, - view: new Ext.grid.GroupingView({ - forceFit: true, - enableGroupingMenu: false, - groupTextTpl: '{group} ({[values.rs.length]} {[values.rs.length > 1 ? "Plugins" : "Plugin"]})' - }), - tbar: [{ - text: this.btnInstallPackage, - icon: this.btnIconInstallPackage, - handler: function(){ - var window = new Ext.Window({ - title: this.uploadWindowTitle - }); - window.add({ - xtype: 'pluginPackageUploadForm', - listeners: { - success: { - fn: function(){ - this.close(); - Ext.MessageBox.alert( - Sonia.plugin.CenterInstance.installSuccessText, - Sonia.plugin.CenterInstance.restartText - ); - }, - scope: window - }, - failure: { - fn: function(){ - this.close(); - Ext.MessageBox.alert( - Sonia.plugin.CenterInstance.errorTitleText, - Sonia.plugin.CenterInstance.installFailedText - ); - }, - scope: window - } - } - }); - window.show(); - }, - scope: this - },'|',{ - text: this.btnReload, - icon: this.btnIconReload, - handler: function(){ - this.getStore().reload(); - }, - scope: this - }] - }; - - Sonia.plugin.CenterInstance.addListener('changed', function(){ - if (debug){ - console.debug( 'receive change event, reload plugin store' ); - } - this.getStore().reload(); - }, this); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.plugin.Grid.superclass.initComponent.apply(this, arguments); - }, - - convertCategory: function(category){ - return category ? category : 'Miscellaneous'; - }, - - renderActionColumn: function(val, meta, record){ - var out = ""; - var data = record.data; - var id = Sonia.plugin.CenterInstance.getPluginId(data); - if ( data.state === 'AVAILABLE' ){ - out = String.format(this.actionLinkTemplate, 'Install', 'install', id); - } else if ( data.state === 'INSTALLED' ){ - out = String.format(this.actionLinkTemplate, 'Uninstall', 'uninstall', id); - } else if ( data.state === 'UPDATE_AVAILABLE' ){ - out = String.format(this.actionLinkTemplate, 'Update', 'update', id); - out += ', ' - out += String.format(this.actionLinkTemplate, 'Uninstall', 'uninstall', id); - } - return out; - } - -}); - -// register xtype -Ext.reg('pluginGrid', Sonia.plugin.Grid); diff --git a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.js b/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.js deleted file mode 100644 index da0d87c6ef..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -// register namespace -Ext.ns("Sonia.plugin"); diff --git a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.store.js b/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.store.js deleted file mode 100644 index dd4a7073d9..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.store.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.plugin.Store = Ext.extend(Sonia.rest.JsonStore, { - - constructor: function(config) { - var baseConfig = { - fields: [ 'name', 'author', 'description', 'url', 'version', 'state', 'groupId', 'artifactId' ], - sortInfo: { - field: 'name' - } - }; - Sonia.plugin.Store.superclass.constructor.call(this, Ext.apply(baseConfig, config)); - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.uploadform.js b/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.uploadform.js deleted file mode 100644 index b8fe14f455..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/plugin/sonia.plugin.uploadform.js +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Sonia.plugin.UploadForm = Ext.extend(Ext.FormPanel, { - - // TODO i18n - - emptyText: 'Select an Plugin-Package', - uploadFieldLabel: 'Package', - waitMsg: 'Uploading your package ...', - btnUpload: 'Upload', - btnReset: 'Reset', - - initComponent: function(){ - this.addEvents('success', 'failure'); - - var config = { - fileUpload: true, - width: 500, - frame: false, - autoHeight: true, - labelWidth: 50, - bodyStyle: 'padding: 5px 0 0 10px;', - defaults: { - anchor: '95%', - allowBlank: false, - msgTarget: 'side' - }, - items: [{ - xtype: 'fileuploadfield', - id: 'form-file', - emptyText: this.emptyText, - fieldLabel: this.uploadFieldLabel, - name: 'package', - buttonText: '', - buttonCfg: { - iconCls: 'upload-icon' - } - }], - buttons: [{ - text: this.btnUpload, - handler: function(){ - if(this.getForm().isValid()){ - this.getForm().submit({ - url: restUrl + 'plugins/install-package.html', - waitMsg: this.waitMsg, - success: function(form, action){ - if (debug){ - console.debug('upload success'); - } - this.fireEvent('success'); - }, - failure: function(form, action){ - if (debug){ - console.debug('upload failed'); - } - this.fireEvent('failure'); - }, - scope: this - }); - } - }, - scope: this - },{ - text: this.btnReset, - handler: function(){ - this.getForm().reset(); - }, - scope: this - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.plugin.UploadForm.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg('pluginPackageUploadForm', Sonia.plugin.UploadForm); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.blamepanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.blamepanel.js deleted file mode 100644 index 6ca0d651ce..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.blamepanel.js +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.BlamePanel = Ext.extend(Ext.grid.GridPanel, { - - blameUrl: null, - repository: null, - path: null, - revision: null, - linkTemplate: '{0}', - - initComponent: function(){ - var blameUrl = restUrl + 'repositories/' + this.repository.id + '/'; - blameUrl += 'blame.json?path=' + this.path; - if ( this.revision ){ - blameUrl += "&revision=" + this.revision; - } - - var blameStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - url: blameUrl, - disableCaching: false - }), - root: 'blamelines', - idProperty: 'lineNumber', - fields: [ 'lineNumber', 'author', 'revision', 'when', 'description', 'code'], - sortInfo: { - field: 'lineNumber' - } - }); - - var blameColModel = new Ext.grid.ColumnModel({ - columns: [{ - id: 'revision', - dataIndex: 'revision', - renderer: this.renderRevision, - width: 20, - scope: this - },{ - id: 'code', - dataIndex: 'code', - renderer: this.renderCode, - width: 400 - }] - }); - - var config = { - hideHeaders: true, - autoExpandColumn: 'code', - store: blameStore, - colModel: blameColModel, - stripeRows: false, - autoHeight: true, - viewConfig: { - forceFit: true - }, - listeners: { - click: { - fn: this.onClick, - scope: this - } - } - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.BlamePanel.superclass.initComponent.apply(this, arguments); - }, - - onClick: function(e){ - var el = e.getTarget('.blame-link'); - if ( el ){ - var revision = el.rel; - if (debug){ - console.debug('load content for ' + revision); - } - this.openContentPanel(revision); - } - }, - - openContentPanel: function(revision){ - var id = Sonia.repository.createContentId( - this.repository, - this.path, - revision - ); - main.addTab({ - id: id, - xtype: 'contentPanel', - repository: this.repository, - revision: revision, - path: this.path, - closable: true, - autoScroll: true - }); - }, - - renderRevision: function(value, metadata, record){ - var shortId = Ext.util.Format.id(value); - var title = 'Revision: ' + shortId; - var tip = 'Author: ' + record.get('author').name; - var when = record.get('when'); - if ( when ){ - tip += '
        When: ' + Ext.util.Format.formatTimestamp(when); - } - var description = record.get('description'); - if (description){ - tip += '
        Description: ' + description; - } - metadata.attr = 'ext:qtitle="' + title + '"' + ' ext:qtip="' + tip + '"'; - return String.format( - this.linkTemplate, - shortId, - value - ); - }, - - renderCode: function(value){ - return '
        ' + Ext.util.Format.htmlEncode(value) + '
        '; - } - -}); - -Ext.reg('blamePanel', Sonia.repository.BlamePanel); diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.branchcombobox.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.branchcombobox.js deleted file mode 100644 index 4c3dcbc7c8..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.branchcombobox.js +++ /dev/null @@ -1,66 +0,0 @@ -/* * - * Copyright (c) 2014, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Sonia.repository.BranchComboBox = Ext.extend(Ext.form.ComboBox, { - - repositoryId: null, - useNameAsValue: false, - - initComponent: function(){ - var branchStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'repositories/' + this.repositoryId + '/branches', - method: 'GET', - disableCaching: false - }), - root: 'branch', - idProperty: 'name', - fields: ['name', 'revision'] - }); - - var config = { - displayField: 'name', - valueField: this.useNameAsValue ? 'name' : 'revision', - typeAhead: false, - editable: false, - triggerAction: 'all', - store: branchStore - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.BranchComboBox.superclass.initComponent.apply(this, arguments); - } - -}); - -// register xtype -Ext.reg('repositoryBranchComboBox', Sonia.repository.BranchComboBox); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetpanel.js deleted file mode 100644 index 0502d53ecb..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetpanel.js +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.ChangesetPanel = Ext.extend(Ext.Panel, { - - repository: null, - revision: null, - view: 'commit', - - // labels - title: 'Commit {0}', - commitLabel: 'Commit', - diffLabel: 'Diff', - rawDiffLabel: 'Raw Diff', - - initComponent: function(){ - var panel = null; - - switch (this.view){ - case 'diff': - panel = this.createDiffPanel(); - break; - default: - panel = this.createCommitPanel(); - } - - var config = { - title: String.format(this.title, Ext.util.Format.id(this.revision)), - autoScroll: true, - tbar: [{ - text: this.commitLabel, - handler: this.showCommit, - scope: this - },{ - text: this.diffLabel, - handler: this.showDiff, - scope: this - },{ - text: this.rawDiffLabel, - handler: this.downloadRawDiff, - scope: this - }], - layout: 'fit', - bbar: ['->', this.repository.name, ':', this.revision], - items: [panel] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.ChangesetPanel.superclass.initComponent.apply(this, arguments); - }, - - openPanel: function(panel){ - this.removeAll(); - this.add(panel); - this.doLayout(); - }, - - updateHistory: function(){ - var token = Sonia.History.createToken( - 'changesetPanel', - this.repository.id, - this.revision, - this.view - ); - Sonia.History.add(token); - }, - - createCommitPanel: function(){ - return { - id: 'commit-' + this.repository.id + ':' + this.revision, - xtype: 'commitPanel', - repository: this.repository, - revision: this.revision - }; - }, - - createDiffPanel: function(){ - return { - id: 'diff-' + this.repository.id + ':' + this.revision, - xtype: 'syntaxHighlighterPanel', - syntax: 'diff', - contentUrl: this.createDiffUrl() - }; - }, - - createDiffUrl: function(){ - var diffUrl = restUrl + 'repositories/' + this.repository.id; - return diffUrl + '/diff?revision=' + this.revision; - }, - - showCommit: function(){ - if ( debug ){ - console.debug('open commit for ' + this.revision); - } - this.openPanel(this.createCommitPanel()); - this.view = 'commit'; - this.updateHistory(); - }, - - showDiff: function(){ - if ( debug ){ - console.debug('open diff for ' + this.revision); - } - this.openPanel(this.createDiffPanel()); - this.view = 'diff'; - this.updateHistory(); - }, - - downloadRawDiff: function(){ - if ( debug ){ - console.debug('open raw diff for ' + this.revision); - } - window.open(this.createDiffUrl()); - } - -}); - -// register xtype -Ext.reg('changesetPanel', Sonia.repository.ChangesetPanel); - -// register history handler -Sonia.History.register('changesetPanel', { - - onActivate: function(panel){ - return Sonia.History.createToken( - 'changesetPanel', - panel.repository.id, - panel.revision, - panel.view - ); - }, - - onChange: function(repoId, revision, view){ - if (revision === 'null'){ - revision = null; - } - if (!view || view === 'null'){ - view = 'commit'; - } - var id = 'changesetPanel;' + repoId + ';' + revision; - Sonia.repository.get(repoId, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'changesetPanel', - repository : repository, - revision: revision, - view: view, - closable: true, - autoScroll: true - }; - } else { - panel.loadPanel(view); - } - main.addTab(panel); - }); - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewergrid.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewergrid.js deleted file mode 100644 index b0f1b234aa..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewergrid.js +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// changeset viewer - -Sonia.repository.ChangesetViewerGrid = Ext.extend(Ext.grid.GridPanel, { - - repository: null, - - mailTemplate: '<{0}>', - - changesetMetadataTemplate: '
        {0}
        \ -
        {1}
        \ -
        {2}
        ', - - modificationsTemplate: '
        \ - Added{0}\ - Modified{1}\ - Deleted{2}\ -
        ', - - idsTemplate: new Ext.XTemplate('
        Commit: {id:id}
        \ -
        Source: {id:id}
        \ -
        Parent: {parent:id}
        \ -
        Parent: {parent2:id}
        '), - - tagsAndBranchesTemplate: new Ext.XTemplate('\ - '), - - emptyText: 'No commits available', - - initComponent: function(){ - - var changesetColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: false - }, - columns: [{ - id: 'metadata', - dataIndex: 'author', - renderer: this.renderChangesetMetadata, - scope: this - },{ - id: 'tagsAndBranches', - renderer: this.renderTagsAndBranches, - scope: this - },{ - id: 'modifications', - dataIndex: 'modifications', - renderer: this.renderModifications, - scope: this, - width: 120 - },{ - id: 'ids', - dataIndex: 'id', - renderer: this.renderIds, - scope: this, - width: 180 - }] - }); - - var config = { - header: false, - autoScroll: true, - autoExpandColumn: 'metadata', - autoHeight: true, - hideHeaders: true, - colModel: changesetColModel, - loadMask: true, - viewConfig: { - deferEmptyText: false, - emptyText: this.emptyText - }, - listeners: { - click: { - fn: this.onClick, - scope: this - } - } - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.ChangesetViewerGrid.superclass.initComponent.apply(this, arguments); - }, - - getRevision: function(el){ - var revision = el.rel; - var index = revision.indexOf(':'); - if ( index >= 0 ){ - revision = revision.substr(index+1); - } - return revision; - }, - - onClick: function(e){ - var el = e.getTarget('.cs-tree-link'); - var revision = null; - - if (el){ - revision = this.getRevision(el); - if (debug){ - console.debug('load repositorybrowser for ' + revision); - } - - this.openRepositoryBrowser(revision); - } else { - el = e.getTarget('.cs-diff-link'); - - if ( el ){ - revision = this.getRevision(el); - if (debug){ - console.debug('load diff for ' + revision); - } - - this.openChangeset(revision); - } - } - }, - - openChangeset: function(revision){ - main.addTab({ - id: 'changesetPanel;' + this.repository.id + ';' + revision, - xtype: 'changesetPanel', - repository: this.repository, - revision: revision, - closable: true - }); - }, - - openRepositoryBrowser: function(revision){ - main.addTab({ - id: 'repositoryBrowser;' + this.repository.id + ';' + revision, - xtype: 'repositoryBrowser', - repository: this.repository, - revision: revision, - closable: true - }); - }, - - renderChangesetMetadata: function(author, p, record){ - var authorValue = ''; - if ( author ){ - authorValue = author.name; - if ( author.mail ){ - authorValue += ' ' + String.format(this.mailTemplate, author.mail); - } - } - var description = record.data.description; - if ( description ){ - // description = Ext.util.Format.htmlEncode(description); - var index = description.indexOf('\n'); - if ( index > 0 ){ - description = description.substring(0, index) + " ..."; - } - } - var date = record.data.date; - if ( date ){ - date = Ext.util.Format.formatTimestamp(date); - } - return String.format( - this.changesetMetadataTemplate, - description, - authorValue, - date - ); - }, - - renderTagsAndBranches: function(value, p, record){ - return this.tagsAndBranchesTemplate.apply({ - tags: record.get('tags'), - branches: record.get('branches') - }); - }, - - getLabeledValue: function(label, array){ - var result = ''; - if ( array && array.length > 0 ){ - result = label + ': ' + Sonia.util.getStringFromArray(array); - } - return result; - }, - - getChangesetId: function(id, record){ - return id; - }, - - getParentIds: function(id, record){ - return record.get('parents'); - }, - - renderIds: function(value, p, record){ - var parents = this.getParentIds(value, record); - var parent1 = null; - var parent2 = null; - if ( parents ){ - parent1 = parents[0]; - if (parents.length > 1){ - parent2 = parents[1]; - } - } - return this.idsTemplate.apply({ - id: this.getChangesetId(value, record), - parent: parent1, - parent2: parent2 - }); - }, - - renderModifications: function(value){ - var added = 0; - var modified = 0; - var removed = 0; - if ( Ext.isDefined(value) ){ - if ( Ext.isDefined(value.added) ){ - added = value.added.length; - } - if ( Ext.isDefined(value.modified) ){ - modified = value.modified.length; - } - if ( Ext.isDefined(value.removed) ){ - removed = value.removed.length; - } - } - return String.format(this.modificationsTemplate, added, modified, removed); - } - -}); - -// register xtype -Ext.reg('repositoryChangesetViewerGrid', Sonia.repository.ChangesetViewerGrid); - diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewerpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewerpanel.js deleted file mode 100644 index 468b99dbec..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.changesetviewerpanel.js +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, { - - repository: null, - start: 0, - pageSize: 20, - changesetStore: null, - startLimit: null, - - // parameters for file history view - inline: false, - path: null, - revision: null, - - changesetViewerTitleText: 'Commits {0}', - - initComponent: function(){ - if (! this.url){ - this.url = restUrl + 'repositories/' + this.repository.id + '/changesets'; - } - - if ( ! this.startLimit ){ - this.startLimit = this.pageSize; - } - - var params = { - start: this.start, - limit: this.startLimit - }; - - var baseParams = {}; - - if (this.path){ - baseParams.path = this.path; - } - - if (this.revision){ - baseParams.revision = this.revision; - } - - this.changesetStore = new Sonia.rest.JsonStore({ - id: 'changesetStore', - proxy: new Ext.data.HttpProxy({ - url: this.url, - method: 'GET' - }), - fields: ['id', 'date', 'author', 'description', 'parents', 'modifications', 'tags', 'branches', 'properties'], - root: 'changesets', - idProperty: 'id', - totalProperty: 'total', - baseParams: baseParams, - autoLoad: { - params: params - }, - autoDestroy: true, - listeners: { - load: { - fn: this.updateHistory, - scope: this - } - } - }); - - var config = { - items: [{ - xtype: 'repositoryChangesetViewerGrid', - repository: this.repository, - store: this.changesetStore - }] - }; - - if ( ! this.inline ){ - config.title = String.format(this.changesetViewerTitleText, this.repository.name); - - var type = Sonia.repository.getTypeByName( this.repository.type ); - if ( type && type.supportedCommands && type.supportedCommands.indexOf('BRANCHES') >= 0){ - config.tbar = this.createTopToolbar(); - } - config.bbar = { - xtype: 'paging', - store: this.changesetStore, - displayInfo: true, - pageSize: this.pageSize, - prependButtons: true - }; - } - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.ChangesetViewerPanel.superclass.initComponent.apply(this, arguments); - }, - - createTopToolbar: function(){ - return { - xtype: 'toolbar', - items: [ - this.repository.name, - '->', - 'Branches:', ' ',{ - xtype: 'repositoryBranchComboBox', - repositoryId: this.repository.id, - listeners: { - select: { - fn: this.selectBranch, - scope: this - } - } - }] - }; - }, - - selectBranch: function(combo, rec){ - var branch = rec.get('name'); - if (debug){ - console.debug('select branch ' + branch); - } - this.changesetStore.baseParams.branch = branch; - this.start = 0; - this.changesetStore.load({ - params: { - start: this.start, - limit: this.startLimit - } - }); - }, - - updateHistory: function(store, records, options){ - if ( ! this.inline && options && options.params ){ - this.start = options.params.start; - this.pageSize = options.params.limit; - var token = Sonia.History.createToken( - 'repositoryChangesetViewerPanel', - this.repository.id, - this.start, - this.pageSize - ); - Sonia.History.add(token); - } - }, - - loadChangesets: function(start, limit){ - this.changesetStore.load({params: { - start: start, - limit: limit - }}); - } - -}); - -// register xtype -Ext.reg('repositoryChangesetViewerPanel', Sonia.repository.ChangesetViewerPanel); - -// register history handler -Sonia.History.register('repositoryChangesetViewerPanel', { - - onActivate: function(panel){ - return Sonia.History.createToken( - 'repositoryChangesetViewerPanel', - panel.repository.id, - panel.start, - panel.pageSize - ); - }, - - onChange: function(repoId, start, limit){ - if (start){ - start = parseInt(start); - } - if (limit){ - limit = parseInt(limit); - } - var id = 'repositoryChangesetViewerPanel;' + repoId; - Sonia.repository.get(repoId, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'repositoryChangesetViewerPanel', - repository : repository, - start: start, - pageSize: limit, - closable: true, - autoScroll: true - }; - } else { - panel.loadChangesets(start, limit); - } - main.addTab(panel); - }); - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.commitpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.commitpanel.js deleted file mode 100644 index 591d77d43f..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.commitpanel.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.CommitPanel = Ext.extend(Ext.Panel, { - - repository: null, - revision: null, - - // changeset - changeset: null, - - // templates - templateCommit: '
        \n\ -
        \n\ -
        \n\\n\ - {leftPlaceholder}\n\ -
        \n\ -
        \n\ -

        Commit {id}

        \n\ -

        {description:convertLineBreaks}

        \n\ -

        \n\ - \n\ - {name} <{mail}>\n\ - \n\ -

        \n\ -

        {date:formatTimestamp}

        \n\ -
        \n\ -
        \n\ -
        \n\ -
        \n\ - \n\ - \n\ - {.}\n\ - \n\ - \n\ -
        \n\ -
        \n\ - \n\ - \n\ - {.}\n\ - \n\ - \n\ -
        \n\ -
        \n\ -
        ', - - templateModifications: '
          \n\ - \n\ -
        • {.}
        • \n\ -
          \n\ - \n\ -
        • {.}
        • \n\ -
          \n\ - \n\ -
        • {.}
        • \n\ -
          \n\ -
        ', - - // header panel - commitPanel: null, - diffPanel: null, - - initComponent: function(){ - this.commitPanel = new Ext.Panel({ - tpl: new Ext.XTemplate(this.templateCommit + this.templateModifications), - listeners: { - render: { - fn: function(panel){ - panel.body.on('click', this.onClick, this); - }, - scope: this - } - } - }); - - this.diffPanel = new Sonia.panel.SyntaxHighlighterPanel({ - syntax: 'diff', - contentUrl: restUrl + 'repositories/' + this.repository.id + '/diff?revision=' + this.revision - }); - - var config = { - bodyCssClass: 'x-panel-mc', - padding: 10, - autoScroll: true, - items: [this.commitPanel, this.diffPanel] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.CommitPanel.superclass.initComponent.apply(this, arguments); - - // loadChangeset - this.loadChangeset(); - }, - - update: function(changeset) { - this.changeset = changeset; - this.commitPanel.tpl.overwrite(this.commitPanel.body, this.changeset); - }, - - loadChangeset: function(){ - if (debug){ - console.debug('read changeset ' + this.revision); - } - - Ext.Ajax.request({ - url: restUrl + 'repositories/' + this.repository.id + '/changeset/' + this.revision, - method: 'GET', - scope: this, - success: function(response){ - var changeset = Ext.decode(response.responseText); - this.update(changeset); - }, - failure: function(result){ - main.handleRestFailure( - result, - this.errorTitleText, - this.errorMsgText - ); - } - }); - }, - - onClick: function(e){ - var el = e.getTarget('a.scm-link'); - if (el){ - var path = el.rel; - if (path){ - this.openFile(path); - } - } - }, - - openFile: function(path){ - Sonia.repository.openFile(this.repository, path, this.revision); - } - -}); - -Ext.reg('commitPanel', Sonia.repository.CommitPanel); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.contentpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.contentpanel.js deleted file mode 100644 index 36622a55ed..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.contentpanel.js +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Sonia.repository.ContentPanel = Ext.extend(Ext.Panel, { - - repository: null, - revision: null, - path: null, - contentUrl: null, - - // view content/blame/history - view: 'content', - - initComponent: function(){ - var name = Sonia.util.getName(this.path); - this.contentUrl = Sonia.repository.createContentUrl( - this.repository, this.path, this.revision - ); - - var bottomBar = [this.path]; - this.appendRepositoryProperties(bottomBar); - - var panel = null; - - switch (this.view){ - case 'blame': - panel = this.createBlamePanel(); - break; - case 'history': - panel = this.createHistoryPanel(); - break; - default: - panel = this.createSyntaxPanel(); - } - - var config = { - title: name, - tbar: [{ - text: 'Default', - handler: this.openSyntaxPanel, - scope: this - },{ - text: 'Raw', - handler: this.downlaodFile, - scope: this - },{ - text: 'Blame', - handler: this.openBlamePanel, - scope: this - },{ - text: 'History', - handler: this.openHistoryPanel, - scope: this - }], - bbar: bottomBar, - items: [panel] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.ContentPanel.superclass.initComponent.apply(this, arguments); - }, - - loadPanel: function(view){ - switch (view){ - case 'blame': - this.openBlamePanel(); - break; - case 'history': - this.openHistoryPanel(); - break; - default: - this.openSyntaxPanel(); - } - - }, - - createHistoryPanel: function(){ - return { - xtype: 'repositoryChangesetViewerPanel', - repository: this.repository, - revision: this.revision, - path: this.path, - inline: true, - // TODO find a better way - pageSize: 9999, - startLimit: -1 - }; - }, - - openHistoryPanel: function(){ - this.openPanel(this.createHistoryPanel()); - this.view = 'history'; - this.updateHistory(); - }, - - createSyntaxPanel: function(){ - return { - xtype: 'syntaxHighlighterPanel', - syntax: Sonia.util.getExtension(this.path), - contentUrl: this.contentUrl - }; - }, - - openSyntaxPanel: function(){ - this.openPanel(this.createSyntaxPanel()); - this.view = 'content'; - this.updateHistory(); - }, - - createBlamePanel: function(){ - return { - xtype: 'blamePanel', - repository: this.repository, - revision: this.revision, - path: this.path - }; - }, - - openBlamePanel: function(){ - this.openPanel(this.createBlamePanel()); - this.view = 'blame'; - this.updateHistory(); - }, - - updateHistory: function(){ - var token = Sonia.History.createToken( - 'contentPanel', - this.repository.id, - this.revision, - this.path, - this.view - ); - Sonia.History.add(token); - }, - - downlaodFile: function(){ - window.open(this.contentUrl); - }, - - openPanel: function(panel){ - this.removeAll(); - this.add(panel); - this.doLayout(); - }, - - appendRepositoryProperties: function(bar){ - bar.push('->',this.repository.name); - if ( this.revision ){ - bar.push(': ', this.revision); - } - }, - - getExtension: function(path){ - var ext = null; - var index = path.lastIndexOf('.'); - if ( index > 0 ){ - ext = path.substr(index + 1, path.length); - } - return ext; - } - -}); - -// register xtype -Ext.reg('contentPanel', Sonia.repository.ContentPanel); - -// register history handler -Sonia.History.register('contentPanel', { - - onActivate: function(panel){ - return Sonia.History.createToken( - 'contentPanel', - panel.repository.id, - panel.revision, - panel.path, - panel.view - ); - }, - - onChange: function(repoId, revision, path, view){ - if (revision === 'null'){ - revision = null; - } - if (!view || view === 'null'){ - view = 'content'; - } - var id = 'contentPanel;' + repoId + ';' + revision + ';' + path; - Sonia.repository.get(repoId, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'contentPanel', - repository : repository, - revision: revision, - path: path, - view: view, - closable: true, - autoScroll: true - }; - } else { - panel.loadPanel(view); - } - main.addTab(panel); - }); - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.diffpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.diffpanel.js deleted file mode 100644 index 8cd1b5d90e..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.diffpanel.js +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.DiffPanel = Ext.extend(Ext.Panel, { - - repository: null, - revision: null, - diffUrl: null, - - initComponent: function(){ - this.diffUrl = restUrl + 'repositories/' + this.repository.id; - this.diffUrl += '/diff?revision=' + this.revision; - - var config = { - title: 'Diff ' + this.revision, - autoScroll: true, - tbar: [{ - text: 'Raw', - handler: this.downlaodFile, - scope: this - }], - bbar: ['->', this.repository.name, ':', this.revision], - items: [{ - id: 'diff-' + this.repository.id + ':' + this.revision, - xtype: 'syntaxHighlighterPanel', - syntax: 'diff', - contentUrl: this.diffUrl - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.DiffPanel.superclass.initComponent.apply(this, arguments); - }, - - downlaodFile: function(){ - window.open(this.diffUrl); - } - -}); - -// register xtype -Ext.reg('diffPanel', Sonia.repository.DiffPanel); - -// register history handler -Sonia.History.register('diffPanel', { - - onActivate: function(panel){ - return Sonia.History.createToken( - 'diffPanel', - panel.repository.id, - panel.revision - ); - }, - - onChange: function(repoId, revision){ - var id = 'diffPanel;' + repoId + ';' + revision; - Sonia.repository.get(repoId, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'diffPanel', - repository : repository, - revision: revision, - closable: true, - autoScroll: true - }; - } - main.addTab(panel); - }); - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.extendedinfopanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.extendedinfopanel.js deleted file mode 100644 index 062c93aefa..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.extendedinfopanel.js +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// extended information panel - -Sonia.repository.ExtendedInfoPanel = Ext.extend(Sonia.repository.InfoPanel,{ - - checkoutTemplate: null, - - // text - checkoutText: 'Checkout: ', - - repositoryBrowserText: 'Source', - - enableRepositoryBrowser: true, - enableChangesetViewer: true, - - modifyDefaultConfig: function(config){ - var items = config.items; - if ( ! items ){ - items = []; - } - items.push({ - xtype: 'label', - text: this.checkoutText - },{ - xtype: 'box', - html: String.format( - this.checkoutTemplate, - this.getRepositoryUrlWithUsername() - ) - },this.createSpacer()); - - var box = []; - if ( this.enableChangesetViewer ){ - box.push(this.createChangesetViewerLink()); - if (this.enableRepositoryBrowser){ - box.push({ - xtyle: 'box', - html: ', ', - width: 8 - }); - } - } - - if (this.enableRepositoryBrowser){ - box.push(this.createRepositoryBrowserLink()); - } - - items.push({ - xtype: 'panel', - colspan: 2, - layout: 'column', - items: box - }); - }, - - createRepositoryBrowserLink: function(){ - return { - xtype: 'link', - style: 'font-weight: bold', - text: this.repositoryBrowserText, - handler: this.openRepositoryBrowser, - scope: this - }; - }, - - createRepositoryBrowser: function(){ - return { - id: 'repositoryBrowser;' + this.item.id + ';null', - xtype: 'repositoryBrowser', - repository: this.item, - closable: true - }; - }, - - openRepositoryBrowser: function(browser){ - if ( ! browser ){ - browser = this.createRepositoryBrowser(); - } - main.addTab(browser); - } - -}); - -// register xtype -Ext.reg("repositoryExtendedInfoPanel", Sonia.repository.ExtendedInfoPanel); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.formpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.formpanel.js deleted file mode 100644 index 422a81ce6b..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.formpanel.js +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// RepositoryFormPanel -Sonia.repository.FormPanel = Ext.extend(Sonia.rest.FormPanel,{ - - colGroupPermissionText: 'Is Group', - colNameText: 'Name', - colTypeText: 'Permissions', - formTitleText: 'Settings', - nameText: 'Name', - typeText: 'Type', - contactText: 'Contact', - descriptionText: 'Description', - publicText: 'Public', - permissionText: 'Permission', - errorTitleText: 'Error', - updateErrorMsgText: 'Repository update failed', - createErrorMsgText: 'Repository creation failed', - - // help - nameHelpText: 'The name of the repository. This name will be part of the repository url.', - typeHelpText: 'The type of the repository (e.g. Mercurial, Git or Subversion).', - contactHelpText: 'Email address of the person who is responsible for this repository.', - descriptionHelpText: 'A short description of the repository.', - publicHelpText: 'Public repository, readable by everyone.', - permissionHelpText: 'Manage permissions for a specific user or group.
        \n\ - Permissions explenation:
        READ = read
        WRITE = read and write
        \n\ - OWNER = read, write and also the ability to manage the properties and permissions', - - initComponent: function(){ - this.addEvents('preCreate', 'created', 'preUpdate', 'updated', 'updateFailed', 'creationFailed'); - Sonia.repository.FormPanel.superclass.initComponent.apply(this, arguments); - }, - - prepareUpdate: function(item) { - - }, - - update: function(item){ - item = Ext.apply( this.item, item ); - // allow plugins to modify item - this.prepareUpdate(item); - - if ( debug ){ - console.debug( 'update repository: ' + item.name ); - } - var url = restUrl + 'repositories/' + item.id; - var el = this.el; - var tid = setTimeout( function(){el.mask('Loading ...');}, 100); - - if (item.group){ - delete item.group; - } - - this.fireEvent('preUpdate', item); - - Ext.Ajax.request({ - url: url, - jsonData: item, - method: 'PUT', - scope: this, - success: function(){ - if ( debug ){ - console.debug('update success'); - } - this.fireEvent('updated', item); - clearTimeout(tid); - el.unmask(); - this.execCallback(this.onUpdate, item); - }, - failure: function(result){ - this.fireEvent('updateFailed', item); - clearTimeout(tid); - el.unmask(); - main.handleFailure( - result.status, - this.errorTitleText, - this.updateErrorMsgText - ); - } - }); - }, - - getIdFromResponse: function(response){ - var id = null; - var location = response.getResponseHeader('Location'); - if (location){ - var parts = location.split('/'); - id = parts[parts.length - 1]; - } - return id; - }, - - create: function(item){ - if ( debug ){ - console.debug( 'create repository: ' + item.name ); - } - var url = restUrl + 'repositories'; - var el = this.el; - var tid = setTimeout( function(){el.mask('Loading ...');}, 100); - - this.fireEvent('preCreate', item); - - Ext.Ajax.request({ - url: url, - jsonData: item, - method: 'POST', - scope: this, - success: function(response){ - if ( debug ){ - console.debug('create success'); - } - - var id = this.getIdFromResponse(response); - if (id){ - item.id = id; - } - - this.fireEvent('created', item); - this.getForm().reset(); - clearTimeout(tid); - el.unmask(); - this.execCallback(this.onCreate, item); - }, - failure: function(result){ - this.fireEvent('creationFailed', item); - clearTimeout(tid); - el.unmask(); - main.handleRestFailure( - result, - this.errorTitleText, - this.createErrorMsgText - ); - } - }); - }, - - cancel: function(){ - if ( debug ){ - console.debug( 'cancel form' ); - } - Sonia.repository.setEditPanel( Sonia.repository.DefaultPanel ); - } - -}); - -// register xtype -Ext.reg('repositoryForm', Sonia.repository.FormPanel); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js deleted file mode 100644 index 9e2f76f607..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js +++ /dev/null @@ -1,530 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, { - - // templates - typeIconTemplate: '{1}', - - colNameText: 'Name', - colTypeText: 'Type', - colContactText: 'Contact', - colDescriptionText: 'Description', - colCreationDateText: 'Creation date', - colLastModifiedText: 'Last modified', - colUrlText: 'Url', - colArchiveText: 'Archive', - emptyText: 'No repository is configured', - formTitleText: 'Repository Form', - unknownType: 'Unknown', - - archiveIcon: 'resources/images/archive.png', - warningIcon: 'resources/images/warning.png', - - filterRequest: null, - - /** - * @deprecated use filterRequest - */ - searchValue: null, - - /** - * @deprecated use filterRequest - */ - typeFilter: null, - - // TODO find better text - mainGroup: 'main', - - // for history - parentPanel: null, - ready: false, - - initComponent: function(){ - - var repositoryStore = new Ext.data.GroupingStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'repositories', - disableCaching: false - }), - idProperty: 'id', - reader: new Ext.data.JsonReader({ - fields: [{ - name: 'id' - },{ - name: 'group', - convert: this.convertToGroup - },{ - name: 'name', - sortType:'asUCString' - },{ - name: 'type' - },{ - name: 'contact' - },{ - name: 'description' - },{ - name: 'creationDate' - },{ - name: 'lastModified' - },{ - name: 'public' - },{ - name:'permissions' - },{ - name: 'properties' - },{ - name: 'archived' - },{ - name: 'healthCheckFailures', - defaultValue: null - }] - }), - sortInfo: { - field: 'name' - }, - autoDestroy: true, - autoLoad: true, - remoteGroup: false, - groupOnSort: false, - groupField: 'group', - groupDir: 'AES', - listeners: { - load: { - fn: this.storeLoad, - scope: this - }, - exception: Sonia.rest.ExceptionHandler - } - }); - - var repositoryColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: true, - scope: this, - width: 125 - }, - columns: [{ - id: 'iconType', - dataIndex: 'type', - renderer: this.renderTypeIcon, - width: 20 - },{ - id: 'name', - header: this.colNameText, - dataIndex: 'name', - renderer: this.renderName, - scope: this - },{ - id: 'type', - header: this.colTypeText, - dataIndex: 'type', - renderer: this.renderRepositoryType, - width: 80, - hidden: true - },{ - id: 'contact', - header: this.colContactText, - dataIndex: 'contact', - renderer: this.renderMailto - },{ - id: 'description', - header: this.colDescriptionText, - dataIndex: 'description' - },{ - id: 'creationDate', - header: this.colCreationDateText, - dataIndex: 'creationDate', - renderer: Ext.util.Format.formatTimestamp - },{ - id: 'lastModified', - header: this.colLastModifiedText, - dataIndex: 'lastModified', - renderer: Ext.util.Format.formatTimestamp, - hidden: true - },{ - id: 'Url', - header: this.colUrlText, - dataIndex: 'name', - renderer: this.renderRepositoryUrl, - scope: this, - width: 250 - },{ - id: 'Archive', - header: this.colArchiveText, - dataIndex: 'archived', - width: 40, - hidden: ! state.clientConfig.enableRepositoryArchive, - renderer: this.renderArchive, - scope: this - },{ - id: 'group', - dataIndex: 'group', - hidden: true, - hideable: false, - groupRenderer: this.renderGroupName, - scope: this - }] - }); - - if (debug){ - var msg = "grouping is "; - if ( state.clientConfig.disableGroupingGrid ){ - msg += "disabled"; - } else { - msg += "enabled"; - } - console.debug( msg ); - } - - if ( state.clientConfig.enableRepositoryArchive ){ - if ( !this.filterRequest ){ - this.filterRequest = {}; - } - this.filterRequest.archived = false; - } - - var config = { - autoExpandColumn: 'description', - store: repositoryStore, - colModel: repositoryColModel, - emptyText: this.emptyText, - listeners: { - fallBelowMinHeight: { - fn: this.onFallBelowMinHeight, - scope: this - } - }, - view: new Ext.grid.GroupingView({ - idPrefix: '{grid.id}', - enableGrouping: ! state.clientConfig.disableGroupingGrid, - enableNoGroups: false, - forceFit: true, - groupMode: 'value', - enableGroupingMenu: false, - groupTextTpl: '{group} ({[values.rs.length]} {[values.rs.length > 1 ? "Repositories" : "Repository"]})', - getRowClass: function(record){ - var rowClass = ''; - var healthFailures = record.get('healthCheckFailures'); - if (healthFailures && healthFailures.length > 0){ - rowClass = 'unhealthy'; - } - return rowClass; - } - }) - }; - - this.addEvents('repositorySelected'); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.Grid.superclass.initComponent.apply(this, arguments); - - if (this.parentPanel){ - this.parentPanel.repositoryGrid = this; - } - }, - - renderTypeIcon: function(type, meta, record){ - var result; - if ( record ){ - var healthFailures = record.get('healthCheckFailures'); - if (healthFailures && healthFailures.length > 0){ - result = String.format(this.typeIconTemplate, this.warningIcon, type, type); - } - } - if (!result){ - result = this.getTypeIcon(type); - } - return result; - }, - - getTypeIcon: function(type){ - var result = ''; - var icon = Sonia.repository.getTypeIcon(type); - if ( icon ){ - var displayName = type; - var t = Sonia.repository.getTypeByName(type); - if (t){ - displayName = t.displayName; - } - result = String.format(this.typeIconTemplate, icon, type, displayName); - } - return result; - }, - - renderRepositoryUrl: function(name, meta, record){ - var type = record.get('type'); - return this.renderUrl( - Sonia.repository.createUrl(type, name) - ); - }, - - renderArchive: function(v){ - return v ? ' + v + ' : ''; - }, - - convertToGroup: function(v, data){ - var name = data.name; - var i = name.lastIndexOf('/'); - if ( i > 0 ){ - name = name.substring(0, i); - } else { - name = "zzz__"; - } - return name; - }, - - renderName: function(v, meta, record, rowIndex, colIndex, store){ - // TODO check if grouping is enabled - var i = v.lastIndexOf('/'); - if ( i > 0 ){ - v = v.substring(i+1); - } - return v; - }, - - renderGroupName: function(v){ - if (v === 'zzz__'){ - v = this.mainGroup; - } - return v; - }, - - storeLoad: function(){ - if (this.searchValue){ - this.filterStore(); - } - if (this.filterRequest){ - this.filterByRequest(); - } - this.ready = true; - }, - - onFallBelowMinHeight: function(height, minHeight){ - var p = Ext.getCmp('repositoryEditPanel'); - this.setHeight(minHeight); - var epHeight = p.getHeight(); - p.setHeight(epHeight - (minHeight - height)); - // rerender - this.doLayout(); - p.doLayout(); - this.ownerCt.doLayout(); - }, - - getFilterRequest: function(){ - if ( ! this.filterRequest ){ - this.filterRequest = {}; - } - return this.filterRequest; - }, - - /** - * @deprecated use filterByRequest - */ - search: function(value){ - this.searchValue = value; - this.filterStore(); - }, - - /** - * @deprecated use filterByRequest - */ - filter: function(type){ - this.typeFilter = type; - this.filterStore(); - }, - - clearStoreFilter: function(){ - this.filterRequest = null; - this.searchValue = null; - this.typeFilter = null; - this.getStore().clearFilter(); - }, - - filterByRequest: function(){ - if (debug){ - console.debug('filter repository store by request:'); - console.debug(this.filterRequest); - } - var store = this.getStore(); - if ( ! this.filterRequest ){ - store.clearFilter(); - } else { - var query = this.filterRequest.query; - if ( query ){ - query = query.toLowerCase(); - } - var archived = ! state.clientConfig.enableRepositoryArchive || this.filterRequest.archived; - store.filterBy(function(rec){ - var desc = rec.get('description'); - return (! query || rec.get('name').toLowerCase().indexOf(query) >= 0 || - (desc && desc.toLowerCase().indexOf(query) >= 0)) && - (! this.filterRequest.type || rec.get('type') === this.filterRequest.type) && - (archived || ! rec.get('archived')); - }, this); - } - }, - - /** - * @deprecated use filterByRequest - */ - filterStore: function(){ - var store = this.getStore(); - if ( ! this.searchValue && ! this.typeFilter ){ - store.clearFilter(); - } else { - var search = null; - if ( this.searchValue ){ - search = this.searchValue.toLowerCase(); - } - store.filterBy(function(rec){ - var desc = rec.get('description'); - return (! search || rec.get('name').toLowerCase().indexOf(search) >= 0 || - (desc && desc.toLowerCase().indexOf(search) >= 0)) && - (! this.typeFilter || rec.get('type') === this.typeFilter); - }, this); - } - }, - - /** - * TODO move to panel - */ - selectItem: function(item){ - if ( debug ){ - console.debug( item.name + ' selected' ); - } - - if ( this.parentPanel ){ - this.parentPanel.updateHistory(item); - } - - var owner = Sonia.repository.isOwner(item); - - this.fireEvent('repositorySelected', item, owner); - - var infoPanel = main.getInfoPanel(item.type); - infoPanel.item = item; - - var settingsForm = main.getSettingsForm(item.type); - settingsForm.item = item; - settingsForm.onUpdate = { - fn: this.reload, - scope: this - }; - settingsForm.onCreate = { - fn: this.reload, - scope: this - }; - - var panels = [infoPanel]; - - if ( owner ){ - panels.push( - settingsForm, { - item: item, - xtype: 'repositoryPermissionsForm', - listeners: { - updated: { - fn: this.reload, - scope: this - }, - created: { - fn: this.reload, - scope: this - } - } - }); - - } else { - Ext.getCmp('repoRmButton').setDisabled(true); - } - - if (admin && item.healthCheckFailures && item.healthCheckFailures.length > 0){ - panels.push({ - xtype: 'repositoryHealthCheckFailurePanel', - grid: this, - repository: item, - healthCheckFailures: item.healthCheckFailures - }); - } - - // call open listeners - Ext.each(Sonia.repository.openListeners, function(listener){ - if (Ext.isFunction(listener)){ - listener(item, panels); - } else { - listener.call(listener.scope, item, panels); - } - }); - - // get the xtype of the currently opened tab - // search for the tab with the same xtype and activate it - // see issue https://goo.gl/3RGnA3 - var activeTab = 0; - var activeXtype = this.getActiveTabXtype(); - if (activeXtype){ - for (var i=0; i{0}', - - errorTitleText: 'Error', - errorDescriptionText: 'Could not execute health check.', - - initComponent: function(){ - var items = []; - - if ( this.healthCheckFailures && this.healthCheckFailures.length > 0 ){ - for (var i=0; iNote:
        Not all repository types support all options.', - - // cache - nextButton: null, - prevButton: null, - - // settings - repositoryType: null, - - // active card - activeForm: null, - - // result template - tpl: new Ext.XTemplate([ - '

        ', - ' ', - ' Imported repositories
        ', - ' ', - ' - {.}
        ', - '
        ', - '
        ', - '
        ', - ' ', - ' Failed to import the following directories
        ', - ' ', - ' - {.}
        ', - '
        ', - '
        ', - ' ', - ' No repositories to import', - ' ', - '

        ', - '
        ' - ]), - - initComponent: function(){ - this.addEvents('finish'); - - // fix initialization bug - this.imported = []; - this.failed = []; - this.activeForm = null; - - var typeItems = []; - - Ext.each(state.repositoryTypes, function(repositoryType){ - typeItems.push({ - boxLabel: repositoryType.displayName, - name: 'repositoryType', - inputValue: repositoryType.name, - checked: false - }); - }); - - typeItems = typeItems.sort(function(a, b){ - return a.boxLabel > b.boxLabel; - }); - - typeItems.push({ - xtype: 'scmTip', - content: this.tipRepositoryType, - width: '100%' - }); - - var config = { - layout: 'card', - activeItem: 0, - bodyStyle: 'padding: 5px', - defaults: { - bodyCssClass: 'x-panel-mc', - border: false, - labelWidth: 120, - width: 250 - }, - bbar: ['->',{ - id: 'move-prev', - text: this.backText, - handler: this.navHandler.createDelegate(this, [-1]), - disabled: true, - scope: this - },{ - id: 'move-next', - text: this.nextText, - handler: this.navHandler.createDelegate(this, [1]), - disabled: true, - scope: this - },{ - id: 'closeBtn', - text: this.closeBtnText, - handler: this.applyChanges, - disabled: true, - scope: this - }], - items: [{ - id: 'repositoryTypeLayout', - items: [{ - id: 'chooseRepositoryType', - xtype: 'radiogroup', - name: 'chooseRepositoryType', - columns: 1, - items: [typeItems], - listeners: { - change: { - fn: function(){ - this.getNextButton().setDisabled(false); - }, - scope: this - } - } - }] - },{ - id: 'importTypeLayout', - items: [{ - id: 'chooseImportType', - xtype: 'radiogroup', - name: 'chooseImportType', - columns: 1, - items: [{ - id: 'importTypeDirectory', - boxLabel: 'Import from directory', - name: 'importType', - inputValue: 'directory', - disabled: false, - helpText: this.importTypeDirectoryHelpText - },{ - id: 'importTypeURL', - boxLabel: 'Import from url', - name: 'importType', - inputValue: 'url', - checked: false, - disabled: true, - helpText: this.importTypeURLHelpText - },{ - id: 'importTypeFile', - boxLabel: 'Import from file', - name: 'importType', - inputValue: 'file', - checked: false, - disabled: true, - helpText: this.importTypeFileHelpText - },{ - xtype: 'scmTip', - content: this.tipImportType, - width: '100%' - }], - listeners: { - change: { - fn: function(){ - this.getNextButton().setDisabled(false); - }, - scope: this - } - } - }] - },{ - id: 'importUrlLayout', - xtype: 'form', - monitorValid: true, - defaults: { - width: 250 - }, - listeners: { - clientvalidation: { - fn: this.urlFormValidityMonitor, - scope: this - } - }, - items: [{ - id: 'importUrlName', - xtype: 'textfield', - fieldLabel: 'Repository name', - name: 'name', - allowBlank: false, - vtype: 'repositoryName', - helpText: this.importUrlNameHelpText - },{ - id: 'importUrl', - xtype: 'textfield', - fieldLabel: 'Import URL', - name: 'url', - allowBlank: false, - vtype: 'url', - helpText: this.importUrlHelpText - },{ - xtype: 'scmTip', - content: 'Please insert name and remote url of the repository.', - width: '100%' - }] - },{ - id: 'importFileLayout', - xtype: 'form', - fileUpload: true, - monitorValid: true, - listeners: { - clientvalidation: { - fn: this.fileFormValidityMonitor, - scope: this - } - }, - items: [{ - id: 'importFileName', - xtype: 'textfield', - fieldLabel: 'Repository name', - name: 'name', - type: 'textfield', - width: 250, - allowBlank: false, - vtype: 'repositoryName', - helpText: this.importFileNameHelpText - },{ - id: 'importFile', - xtype: 'fileuploadfield', - fieldLabel: 'Import File', - ctCls: 'import-fu', - name: 'bundle', - buttonText: '', - allowBlank: false, - helpText: this.importFileHelpText, - cls: 'import-fu', - buttonCfg: { - iconCls: 'upload-icon' - } - },{ - id: 'importFileGZipCompressed', - xtype: 'checkbox', - fieldLabel: 'GZip compressed', - helpText: this.importFileGZipCompressedHelpText - },{ - xtype: 'scmTip', - content: 'Please insert name and upload the repository file.', - width: '100%' - }] - },{ - id: 'importFinishedLayout', - layout: 'form', - defaults: { - width: 250 - }, - items: [{ - id: 'resultPanel', - xtype: 'panel', - bodyCssClass: 'x-panel-mc', - tpl: this.tpl - },{ - id: 'finalTip', - xtype: 'scmTip', - content: 'Please see log for details.', - width: '100%', - hidden: true - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.ImportPanel.superclass.initComponent.apply(this, arguments); - }, - - navHandler: function(direction){ - this.activeForm = null; - - var layout = this.getLayout(); - var id = layout.activeItem.id; - - var next = -1; - - if ( id === 'repositoryTypeLayout' && direction === 1 ){ - this.repositoryType = Ext.getCmp('chooseRepositoryType').getValue().getRawValue(); - this.enableAvailableImportTypes(); - next = 1; - } - else if ( id === 'importTypeLayout' && direction === -1 ){ - next = 0; - Ext.getCmp('move-prev').setDisabled(true); - Ext.getCmp('move-next').setDisabled(false); - } - else if ( id === 'importTypeLayout' && direction === 1 ){ - Ext.getCmp('move-next').setDisabled(false); - var v = Ext.getCmp('chooseImportType').getValue(); - if ( v ){ - switch (v.getRawValue()){ - case 'directory': - this.importFromDirectory(layout); - break; - case 'url': - next = 2; - this.activeForm = 'url'; - break; - case 'file': - next = 3; - this.activeForm = 'file'; - break; - } - } - } - else if ( (id === 'importUrlLayout' || id === 'importFileLayout') && direction === -1 ) - { - next = 1; - } - else if ( id === 'importUrlLayout' && direction === 1 ) - { - this.importFromUrl(layout, Ext.getCmp('importUrlLayout').getForm().getValues()); - } - else if ( id === 'importFileLayout' && direction === 1 ) - { - this.importFromFile(layout, Ext.getCmp('importFileLayout').getForm()); - } - - if ( next >= 0 ){ - layout.setActiveItem(next); - } - }, - - getNextButton: function(){ - if (!this.nextButton){ - this.nextButton = Ext.getCmp('move-next'); - } - return this.nextButton; - }, - - getPrevButton: function(){ - if (!this.prevButton){ - this.prevButton = Ext.getCmp('move-prev'); - } - return this.prevButton; - }, - - showLoadingBox: function(){ - return Ext.MessageBox.show({ - title: 'Loading', - msg: 'Import repository', - width: 300, - wait: true, - animate: true, - progress: true, - closable: false - }); - }, - - urlFormValidityMonitor: function(form, valid){ - if (this.activeForm === 'url'){ - this.formValidityMonitor(valid); - } - }, - - fileFormValidityMonitor: function(form, valid){ - if (this.activeForm === 'file'){ - this.formValidityMonitor(valid); - } - }, - - formValidityMonitor: function(valid){ - var nbt = this.getNextButton(); - if (valid && nbt.disabled){ - nbt.setDisabled(false); - } else if (!valid && !nbt.disabled){ - nbt.setDisabled(true); - } - }, - - appendImportResult: function(layout, result){ - for (var i=0; i 0 ? this.imported : null, - failed: this.failed.length > 0 ? this.failed : null, - isEmpty: function(imported, failed){ - return !imported && !failed; - } - }; - var resultPanel = Ext.getCmp('resultPanel'); - Ext.getCmp('finalTip').setVisible(this.failed.length > 0); - resultPanel.tpl.overwrite(resultPanel.body, model); - layout.setActiveItem(4); - }, - - importFromFile: function(layout, form){ - var compressed = Ext.getCmp('importFileGZipCompressed').getValue(); - var lbox = this.showLoadingBox(); - form.submit({ - url: restUrl + 'import/repositories/' + this.repositoryType + '/bundle.html?compressed=' + compressed, - timeout: 300000, // 5min - scope: this, - success: function(form){ - lbox.hide(); - this.appendImported(layout, form.getValues().name); - }, - failure: function(form){ - lbox.hide(); - this.appendFailed(layout, form.getValues().name); - } - }); - }, - - importFromUrl: function(layout, repository){ - var lbox = this.showLoadingBox(); - Ext.Ajax.request({ - url: restUrl + 'import/repositories/' + this.repositoryType + '/url', - method: 'POST', - scope: this, - timeout: 300000, // 5min - jsonData: repository, - success: function(){ - lbox.hide(); - this.appendImported(layout, repository.name); - }, - failure: function(){ - lbox.hide(); - this.appendFailed(layout, repository.name); - } - }); - }, - - importFromDirectory: function(layout){ - var lbox = this.showLoadingBox(); - Ext.Ajax.request({ - url: restUrl + 'import/repositories/' + this.repositoryType + '/directory', - timeout: 300000, // 5min - method: 'POST', - scope: this, - success: function(response){ - lbox.hide(); - this.appendImportResult(layout, Ext.decode(response.responseText)); - }, - failure: function(result){ - lbox.hide(); - main.handleRestFailure( - result, - this.errorTitleText, - this.errorMsgText - ); - } - }); - }, - - enableAvailableImportTypes: function(){ - var type = null; - Ext.each(state.repositoryTypes, function(repositoryType){ - if (repositoryType.name === this.repositoryType){ - type = repositoryType; - } - }, this); - - if ( type !== null ){ - Ext.getCmp('chooseImportType').setValue(null); - this.getNextButton().setDisabled(true); - this.getPrevButton().setDisabled(false); - Ext.getCmp('importTypeURL').setDisabled(type.supportedCommands.indexOf('PULL') < 0); - Ext.getCmp('importTypeFile').setDisabled(type.supportedCommands.indexOf('UNBUNDLE') < 0); - } - }, - - applyChanges: function(){ - var panel = Ext.getCmp('repositories'); - if (panel){ - panel.getGrid().reload(); - } - this.fireEvent('finish'); - } - -}); - -// register xtype -Ext.reg('scmRepositoryImportWizard', Sonia.repository.ImportPanel); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js deleted file mode 100644 index 8083a319db..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// default repository information panel - -Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { - - linkTemplate: '{0}', - mailTemplate: '{0}', - actionLinkTemplate: '{0}', - - // text - nameText: 'Name: ', - typeText: 'Type: ', - contactText: 'Contact: ', - urlText: 'Url: ', - changesetViewerText: 'Commits', - - accessText: 'Access:', - accessReadOnly: 'Read-Only access', - accessReadWrite: 'Read+Write access', - - initComponent: function(){ - - var contact = ''; - if ( this.item.contact ){ - contact = String.format(this.mailTemplate, this.item.contact); - } - - var access = this.accessReadOnly; - if ( Sonia.repository.getPermissionType(this.item) !== 'READ' ){ - access = this.accessReadWrite; - } - - var items = [{ - xtype: 'label', - text: this.nameText - },{ - xtype: 'box', - html: this.item.name - },{ - xtype: 'label', - text: this.typeText - },{ - xtype: 'box', - html: this.getRepositoryTypeText(this.item.type) - },{ - xtype: 'label', - text: this.contactText - },{ - xtype: 'box', - html: contact - },{ - xtype: 'label', - text: this.accessText - },{ - xtype: 'box', - html: '' + access + '' - },{ - xtype: 'label', - text: this.urlText - },{ - xtype: 'box', - html: String.format(this.linkTemplate, Sonia.repository.createUrlFromObject(this.item)) - }]; - - var config = { - title: this.item.name, - padding: 5, - bodyCssClass: 'x-panel-mc', - layout: 'table', - layoutConfig: { - columns: 2, - tableAttrs: { - style: 'width: 80%;' - } - }, - defaults: { - style: 'font-size: 12px' - }, - items: items - }; - - this.modifyDefaultConfig(config); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.InfoPanel.superclass.initComponent.apply(this, arguments); - }, - - modifyDefaultConfig: function(config){ - - }, - - getRepositoryUrlWithUsername: function(){ - var uri = Sonia.repository.createUrlFromObject(this.item); - if ( state.user.name !== 'anonymous' ){ - var index = uri.indexOf("://"); - if ( index > 0 ){ - index += 3; - var username = state.user.name; - // escape backslash for active directory users - // see https://bitbucket.org/sdorra/scm-manager/issue/570/incorrect-git-checkout-url-generated-for - username = username.replace('\\', '\\\\'); - uri = uri.substring(0, index) + username + "@" + uri.substring(index); - } - } - return uri; - }, - - getRepositoryTypeText: function(t){ - var text = null; - for ( var i=0; i values[type] ){ - type = parts[2]; - } - } - }); - } - return type; -}; - -/** - * default panel - */ -Sonia.repository.DefaultPanel = { - region: 'south', - title: 'Repository Form', - padding: 5, - xtype: 'panel', - bodyCssClass: 'x-panel-mc', - html: 'Add or select an Repository' -}; - -// load object from store or from web service - -Sonia.repository.get = function(id, callback){ - function execCallback(item){ - if (Ext.isFunction(callback)){ - callback(item); - } else { - callback.call(callback.scope, item); - } - } - - var repository = null; - - var grid = Ext.getCmp('repositoryGrid'); - if ( grid ){ - var store = grid.getStore(); - if (store){ - var rec = null; - var index = id.indexOf('/'); - if ( index > 0 ){ - var type = id.substring(0, index); - var name = id.substring(index); - index = store.findBy(function(rec){ - return rec.get('name') === name && rec.get('type') === type; - }); - if ( index >= 0 ){ - rec = store.getAt(index); - } - } else { - rec = store.getById(id); - } - if (rec){ - repository = rec.data; - } - } - } - - if (repository){ - execCallback(repository); - } else { - Ext.Ajax.request({ - url: restUrl + 'repositories/' + id, - method: 'GET', - scope: this, - success: function(response){ - execCallback(Ext.decode(response.responseText)); - }, - failure: function(result){ - main.handleRestFailure( - result - ); - } - }); - } -}; - -/** open file */ -Sonia.repository.openFile = function(repository, path, revision){ - if ( debug ){ - console.debug( 'open file: ' + path ); - } - - var id = Sonia.repository.createContentId( - repository, - path, - revision - ); - - main.addTab({ - id: id, - path: path, - revision: revision, - repository: repository, - xtype: 'contentPanel', - closable: true, - autoScroll: true - }); -}; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js deleted file mode 100644 index 767c294242..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.panel.js +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// RepositoryPanel -Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, { - - titleText: 'Repository Form', - emptyText: 'Add or select an Repository', - - filterText: 'Filter: ', - searchText: 'Search: ', - archiveText: 'Archive', - unarchiveText: 'Unarchive', - archiveTitleText: 'Archive Repository', - unarchiveTitleText: 'Unarchive Repository', - archiveMsgText: 'Archive Repository "{0}"?', - unarchiveMsgText: 'Unarchive Repository "{0}"?', - errorArchiveMsgText: 'Repository archival failed', - errorUnarchiveMsgText: 'Repository unarchival failed', - displayArchivedRepositoriesText: 'Archive', - - removeTitleText: 'Remove Repository', - removeMsgText: 'This action will permanently remove the data of the repository \n\ - "{0}" from your disk.
        Do you want to proceed?', - errorTitleText: 'Error', - errorMsgText: 'Repository deletion failed', - - archiveIcon: 'resources/images/archive.png', - - repositoryGrid: null, - - initComponent: function(){ - - // create new store for repository types - var typeStore = new Ext.data.JsonStore({ - id: 1, - fields: [ 'displayName', 'name' ] - }); - - // load types from server state - typeStore.loadData(state.repositoryTypes); - - // add empty value - var t = new typeStore.recordType({ - displayName: '', - name: '' - }); - - typeStore.insert(0, t); - - var toolbar = []; - if ( admin ){ - toolbar.push({ - id: 'repositoryAddButton', - xtype: 'tbbutton', - text: this.addText, - icon: this.addIcon, - scope: this, - handler: this.showAddForm - }); - } - - // repository archive - if (state.clientConfig.enableRepositoryArchive){ - toolbar.push({ - xtype: 'tbbutton', - id: 'repoArchiveButton', - disabled: true, - text: this.archiveText, - icon: this.archiveIcon, - scope: this, - handler: this.toggleArchive - }); - } - - toolbar.push({ - xtype: 'tbbutton', - id: 'repoRmButton', - disabled: true, - text: this.removeText, - icon: this.removeIcon, - scope: this, - handler: this.removeRepository - },'-', { - xtype: 'tbbutton', - text: this.reloadText, - icon: this.reloadIcon, - scope: this, - handler: this.reload - },'-',{ - xtype: 'label', - text: this.filterText, - cls: 'ytb-text' - }, ' ', { - id: 'repositoryTypeFilter', - xtype: 'combo', - hiddenName : 'type', - typeAhead: true, - triggerAction: 'all', - lazyRender: true, - mode: 'local', - editable: false, - store: typeStore, - valueField: 'name', - displayField: 'displayName', - allowBlank: true, - listeners: { - select: { - fn: this.filterByType, - scope: this - } - }, - tpl:'' + - '
        ' + - '{displayName} ' + - '
        ' - }, ' ',{ - xtype: 'label', - text: this.searchText, - cls: 'ytb-text' - }, ' ',{ - id: 'repositorySearch', - xtype: 'textfield', - enableKeyEvents: true, - listeners: { - keyup: { - fn: this.search, - scope: this - } - } - }); - - // repository archive - if (state.clientConfig.enableRepositoryArchive){ - toolbar.push(' ',{ - id: 'displayArchived', - xtype: 'checkbox', - listeners: { - check: { - fn: this.filterByArchived, - scope: this - } - } - },{ - xtype: 'label', - text: this.displayArchivedRepositoriesText, - cls: 'ytb-text' - }); - } - - var config = { - tbar: toolbar, - items: [{ - id: 'repositoryGrid', - xtype: 'repositoryGrid', - region: 'center', - parentPanel: this, - listeners: { - repositorySelected: { - fn: this.onRepositorySelection, - scope: this - } - } - },{ - id: 'repositoryEditPanel', - xtype: 'tabpanel', - activeTab: 0, - height: 250, - split: true, - border: true, - region: 'south', - enableTabScroll: true, - items: [{ - bodyCssClass: 'x-panel-mc', - title: this.titleText, - padding: 5, - html: this.emptyText - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.Panel.superclass.initComponent.apply(this, arguments); - }, - - getGrid: function(){ - if ( ! this.repositoryGrid ){ - if ( debug ){ - console.debug('repository grid not found, retrive by cmp id'); - } - this.repositoryGrid = Ext.getCmp('repositoryGrid'); - } - return this.repositoryGrid; - }, - - updateHistory: function(item){ - var token = Sonia.History.createToken('repositoryPanel', item.id); - Sonia.History.add(token); - }, - - filterByArchived: function(checkbox, checked){ - var grid = this.getGrid(); - grid.getFilterRequest().archived = checked; - grid.filterByRequest(); - }, - - filterByType: function(combo, rec){ - var grid = this.getGrid(); - grid.getFilterRequest().type = rec.get('name'); - grid.filterByRequest(); - }, - - search: function(field){ - var grid = this.getGrid(); - grid.getFilterRequest().query = field.getValue(); - grid.filterByRequest(); - }, - - getSelectedRepository: function(){ - var repository = null; - var grid = this.getGrid(); - var selected = grid.getSelectionModel().getSelected(); - if ( selected ){ - repository = selected.data; - } else if (debug) { - console.debug( 'no repository selected' ); - } - return repository; - }, - - executeRemoteCall: function(title, message, method, url, data, failureCallback, icon){ - Ext.MessageBox.show({ - title: title, - msg: message, - buttons: Ext.MessageBox.OKCANCEL, - icon: icon ? icon : Ext.MessageBox.QUESTION, - fn: function(result){ - if ( result === 'ok' ){ - - if ( debug ){ - console.debug('call repository repository action '+ method + ' on ' + url ); - } - - var el = this.el; - var tid = setTimeout( function(){el.mask('Loading ...');}, 100); - - if (data && data.group){ - delete data.group; - } - - Ext.Ajax.request({ - url: url, - method: method, - jsonData: data, - scope: this, - success: function(){ - this.reload(); - this.resetPanel(); - clearTimeout(tid); - el.unmask(); - }, - failure: function(result){ - clearTimeout(tid); - el.unmask(); - failureCallback.call(this, result); - } - }); - } // canceled - }, - scope: this - }); - }, - - toggleArchive: function(){ - var item = this.getSelectedRepository(); - if ( item ){ - - var title = item.archived ? this.unarchiveTitleText : this.archiveTitleText; - var msg = item.archived ? this.unarchiveMsgText : this.archiveMsgText; - - item.archived = ! item.archived; - if (debug){ - console.debug('toggle repository ' + item.name + ' archive to ' + item.archived); - } - - var url = restUrl + 'repositories/' + item.id; - this.executeRemoteCall(title, String.format(msg, item.name), - 'PUT', url, item, function(result){ - main.handleFailure( - result.status, - this.errorTitleText, - this.errorArchiveMsgText - ); - } - ); - } - }, - - removeRepository: function(){ - var item = this.getSelectedRepository(); - if ( item ){ - if ( debug ){ - console.debug( 'remove repository ' + item.name ); - } - - var url = restUrl + 'repositories/' + item.id; - this.executeRemoteCall(this.removeTitleText, - String.format(this.removeMsgText, item.name), - 'DELETE', url, null, function(result){ - main.handleFailure( - result.status, - this.errorTitleText, - this.errorMsgText - ); - }, - Ext.MessageBox.WARNING - ); - } - }, - - onRepositorySelection: function(item, owner){ - if ( owner ){ - if (state.clientConfig.enableRepositoryArchive){ - var archiveBt = Ext.getCmp('repoArchiveButton'); - if ( item.archived ){ - archiveBt.setText(this.unarchiveText); - Ext.getCmp('repoRmButton').setDisabled(false); - } else { - archiveBt.setText(this.archiveText); - Ext.getCmp('repoRmButton').setDisabled(true); - } - archiveBt.setDisabled(false); - } else { - Ext.getCmp('repoRmButton').setDisabled(false); - } - } else { - Ext.getCmp('repoRmButton').setDisabled(false); - if (state.clientConfig.enableRepositoryArchive){ - Ext.getCmp('repoArchiveButton').setDisabled(false); - } - } - }, - - resetPanel: function(){ - Ext.getCmp('repoRmButton').setDisabled(true); - if (state.clientConfig.enableRepositoryArchive){ - var archiveBt = Ext.getCmp('repoArchiveButton'); - archiveBt.setText(this.archiveText); - archiveBt.setDisabled(true); - } - this.getGrid().getSelectionModel().clearSelections(); - Sonia.repository.setEditPanel(Sonia.repository.DefaultPanel); - }, - - showAddForm: function(){ - Ext.getCmp('repoRmButton').setDisabled(true); - Sonia.repository.setEditPanel([{ - xtype: 'repositorySettingsForm', - listeners: { - updated: { - fn: this.reload, - scope: this - }, - created: { - fn: this.repositoryCreated, - scope: this - } - } - }]); - }, - - repositoryCreated: function(item){ - var grid = this.getGrid(); - - grid.reload(function(){ - if (debug){ - console.debug('select repository ' + item.id + " after creation"); - } - grid.selectById(item.id); - }); - }, - - clearRepositoryFilter: function(grid){ - if (debug){ - console.debug('clear repository filter'); - } - if (! grid ){ - grid = this.getGrid(); - } - Ext.getCmp('repositorySearch').setValue(''); - Ext.getCmp('repositoryTypeFilter').setValue(''); - grid.clearStoreFilter(); - }, - - reload: function(){ - this.getGrid().reload(); - var repo = this.getSelectedRepository(); - if ( repo ){ - this.onRepositorySelection(repo, Sonia.repository.isOwner(repo)); - } - } - -}); - -// register xtype -Ext.reg('repositoryPanel', Sonia.repository.Panel); - -// register history handler -Sonia.History.register('repositoryPanel', { - - onActivate: function(panel){ - var token = null; - var rec = panel.getGrid().getSelectionModel().getSelected(); - if (rec){ - token = Sonia.History.createToken('repositoryPanel', rec.get('id')); - } else { - token = Sonia.History.createToken('repositoryPanel'); - } - return token; - }, - - waitAndSelect: function(grid, repoId){ - setTimeout(function(){ - if ( grid.ready ){ - grid.selectById(repoId); - } - }, 250); - }, - - onChange: function(repoId){ - var panel = Ext.getCmp('repositories'); - if ( ! panel ){ - main.addRepositoriesTabPanel(); - panel = Ext.getCmp('repositories'); - if ( repoId ){ - var selected = false; - panel.getGrid().getStore().addListener('load', function(){ - if (!selected){ - panel.getGrid().selectById(repoId); - selected = true; - } - }); - } - } else { - main.addTab(panel); - if ( repoId ){ - var grid = panel.getGrid(); - if ( grid.ready ){ - grid.selectById(repoId); - } else { - this.waitAndSelect(grid, repoId); - } - } - } - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js deleted file mode 100644 index b29f3b2beb..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.PermissionFormPanel = Ext.extend(Sonia.repository.FormPanel, { - - permissionStore: null, - - addIcon: 'resources/images/add.png', - removeIcon: 'resources/images/delete.png', - - titleText: 'Permissions', - - initComponent: function(){ - var permissionStore = new Ext.data.JsonStore({ - root: 'permissions', - fields: [ - {name: 'name'}, - {name: 'type'}, - {name: 'groupPermission', type: 'boolean'} - ], - sortInfo: { - field: 'name' - } - }); - this.permissionStore = permissionStore; - - var permissionColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: true - }, - columns: [{ - id: 'groupPermission', - xtype: 'checkcolumn', - header: this.colGroupPermissionText, - dataIndex: 'groupPermission', - width: 40 - },{ - id: 'name', - header: this.colNameText, - dataIndex: 'name', - editable: true - },{ - id: 'type', - header: this.colTypeText, - dataIndex: 'type', - width: 80, - editor: new Ext.form.ComboBox({ - valueField: 'type', - displayField: 'type', - typeAhead: false, - editable: false, - triggerAction: 'all', - mode: 'local', - store: new Ext.data.SimpleStore({ - fields: ['type'], - data: [ - ['READ'], - ['WRITE'], - ['OWNER'] - ] - }) - }) - }], - - getCellEditor: function(colIndex, rowIndex) { - if (this.getColumnId(colIndex) === 'name') { - var store = null; - var rec = permissionStore.getAt(rowIndex); - if ( rec.data.groupPermission ){ - if (debug){ - console.debug( "using groupSearchStore" ); - } - store = groupSearchStore; - } else { - if (debug){ - console.debug( "using userSearchStore" ); - } - store = userSearchStore; - } - return new Ext.grid.GridEditor(new Ext.form.ComboBox({ - store: store, - displayField: 'label', - valueField: 'value', - typeAhead: true, - mode: 'remote', - queryParam: 'query', - hideTrigger: true, - selectOnFocus:true, - width: 250 - })); - } - return Ext.grid.ColumnModel.prototype.getCellEditor.call(this, colIndex, rowIndex); - } - }); - - if ( this.item ){ - if ( !this.item.permissions ){ - this.item.permissions = []; - } - this.permissionStore.loadData( this.item ); - } - - var selectionModel = new Ext.grid.RowSelectionModel({ - singleSelect: true - }); - - var config = { - title: this.titleText, - listeners: { - updated: this.clearModifications, - preUpdate: { - fn: this.updatePermissions, - scope: this - } - }, - items:[{ - id: 'permissionGrid', - xtype: 'editorgrid', - title: this.permissionsText, - clicksToEdit: 1, - autoExpandColumn: 'name', - frame: true, - width: '100%', - autoHeight: true, - autoScroll: false, - colModel: permissionColModel, - sm: selectionModel, - store: this.permissionStore, - viewConfig: { - forceFit:true - }, - tbar: [{ - text: this.addText, - scope: this, - icon: this.addIcon, - handler : function(){ - var Permission = this.permissionStore.recordType; - var p = new Permission({ - type: 'READ' - }); - var grid = Ext.getCmp('permissionGrid'); - grid.stopEditing(); - this.permissionStore.insert(0, p); - grid.startEditing(0, 0); - } - },{ - text: this.removeText, - scope: this, - icon: this.removeIcon, - handler: function(){ - var grid = Ext.getCmp('permissionGrid'); - var selected = grid.getSelectionModel().getSelected(); - if ( selected ){ - this.permissionStore.remove(selected); - } - } - }, '->',{ - id: 'permissionGridHelp', - xtype: 'box', - autoEl: { - tag: 'img', - src: 'resources/images/help.png' - } - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.PermissionFormPanel.superclass.initComponent.apply(this, arguments); - }, - - afterRender: function(){ - // call super - Sonia.repository.PermissionFormPanel.superclass.afterRender.apply(this, arguments); - - Ext.QuickTips.register({ - target: Ext.getCmp('permissionGridHelp'), - title: '', - text: this.permissionHelpText, - enabled: true - }); - }, - - updatePermissions: function(item){ - var permissions = []; - this.permissionStore.data.each(function(record){ - permissions.push( record.data ); - }); - item.permissions = permissions; - }, - - clearModifications: function(){ - Ext.getCmp('permissionGrid').getStore().commitChanges(); - } - -}); - -// register xtype -Ext.reg('repositoryPermissionsForm', Sonia.repository.PermissionFormPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.propertiesformpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.propertiesformpanel.js deleted file mode 100644 index 81311fda86..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.propertiesformpanel.js +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Sonia.repository.PropertiesFormPanel = Ext.extend(Sonia.repository.FormPanel, { - - properties: [], - - initComponent: function(){ - var config = { - listeners: { - preUpdate: { - fn: this.storeProperties, - scope: this - } - } - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.PropertiesFormPanel.superclass.initComponent.apply(this, arguments); - - // load properties from fields - this.loadProperties(); - }, - - loadProperties: function(){ - this.properties[this.id] = []; - - this.items.each(function(field){ - if (!Ext.isEmpty(field.property)){ - this.properties[this.id].push({ - 'name': field.name, - 'property': field.property - }); - field.submitValue = false; - - for ( var j in this.item.properties ){ - var property = this.item.properties[j]; - if ( property.key === field.property ){ - field.setValue(property.value); - } - } - } - }, this); - this.loadExtraProperties(this.item); - }, - - loadExtraProperties: function(item){ - - }, - - storeProperties: function(item){ - // create properties if they are empty - if (!item.properties){ - item.properties = []; - } else { - var filtered = item.properties.filter(function(p){ - var result = !Ext.isEmpty(p.key); - if ( result ){ - for (var i in this.properties[this.id]){ - if ( p.key === this.properties[this.id][i].property ){ - result = false; - break; - } - } - } - return result; - }, this); - item.properties = filtered; - } - - // copy fields to properties - for ( var k in this.properties[this.id] ){ - var property = this.properties[this.id][k]; - if (!Ext.isEmpty(property.name)){ - item.properties.push({ - key: property.property, - value: item[property.name] - }); - } - delete item[property.name]; - } - this.storeExtraProperties(item); - }, - - storeExtraProperties: function(item){ - - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.repositorybrowser.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.repositorybrowser.js deleted file mode 100644 index 59677cab7e..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.repositorybrowser.js +++ /dev/null @@ -1,540 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Sonia.repository.RepositoryBrowser = Ext.extend(Ext.grid.GridPanel, { - - repository: null, - revision: null, - path: null, - - repositoryBrowserTitleText: 'Source {0}', - - colNameText: 'Name', - colLengthText: 'Length', - colLastModifiedText: 'Last Modified', - colDescriptionText: 'Description', - - iconFolder: 'resources/images/folder.png', - iconDocument: 'resources/images/document.png', - iconSubRepository: 'resources/images/folder-remote.png', - templateIcon: '{1}', - templateInternalLink: '{0}', - templateExternalLink: '{0}', - - emptyText: 'This directory is empty', - - initComponent: function(){ - - if (debug){ - console.debug('create new browser for repository ' + this.repository.name + " and revision " + this.revision); - } - - var browserStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'repositories/' + this.repository.id, - method: 'GET' - }), - fields: ['path', 'name', 'length', 'lastModified', 'directory', 'description', 'subrepository'], - root: 'files', - idProperty: 'path', - autoLoad: true, - autoDestroy: true - }); - - // register listener - browserStore.addListener('load', this.loadStore, this); - - if ( this.revision ){ - browserStore.baseParams = { - revision: this.revision - }; - } - - if ( this.path ){ - browserStore.baseParams = { - path: this.path - }; - } - - var browserColModel = new Ext.grid.ColumnModel({ - defaults: { - sortable: false - }, - columns: [{ - id: 'icon', - dataIndex: 'directory', - header: '', - width: 28, - renderer: this.renderIcon, - scope: this - },{ - id: 'name', - dataIndex: 'name', - header: this.colNameText, - renderer: this.renderName, - scope: this, - width: 180 - },{ - id: 'length', - dataIndex: 'length', - header: this.colLengthText, - renderer: this.renderLength - },{ - id: 'lastModified', - dataIndex: 'lastModified', - header: this.colLastModifiedText, - renderer: Ext.util.Format.formatTimestamp - },{ - id: 'description', - dataIndex: 'description', - header: this.colDescriptionText - },{ - id: 'subrepository', - dataIndex: 'subrepository', - hidden: true - }] - }); - - var bar = [this.createFolderButton('', '')]; - this.appendRepositoryProperties(bar); - - var config = { - bbar: bar, - autoExpandColumn: 'description', - title: String.format(this.repositoryBrowserTitleText, this.repository.name), - store: browserStore, - colModel: browserColModel, - loadMask: true, - viewConfig: { - deferEmptyText: false, - emptyText: this.emptyText - }, - listeners: { - click: { - fn: this.onClick, - scope: this - } - } - }; - - config.tbar = this.createTopToolbar(); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.RepositoryBrowser.superclass.initComponent.apply(this, arguments); - }, - - createTopToolbar: function(){ - var items = [this.repository.name]; - - var type = Sonia.repository.getTypeByName( this.repository.type ); - var branches = false; - if (type && type.supportedCommands && type.supportedCommands.indexOf('BRANCHES') >= 0){ - - branches = true; - - items.push('->','Branches:', ' ',{ - id: 'branchComboBox', - xtype: 'repositoryBranchComboBox', - repositoryId: this.repository.id, - listeners: { - select: { - fn: this.selectBranch, - scope: this - } - } - }); - - } - - if ( type && type.supportedCommands && type.supportedCommands.indexOf('TAGS') >= 0){ - - if (branches){ - items.push(' '); - } else { - items.push('->'); - } - - items.push('Tags:', ' ',{ - id: 'tagComboBox', - xtype: 'repositoryTagComboBox', - repositoryId: this.repository.id, - listeners: { - select: { - fn: this.selectTag, - scope: this - } - } - }); - - } - - var tbar = { - xtype: 'toolbar', - items: [items] - }; - - return tbar; - }, - - selectBranch: function(combo, rec){ - this.selectRev(rec, Ext.getCmp('tagComboBox')); - }, - - selectTag: function(combo, rec){ - this.selectRev(rec, Ext.getCmp('branchComboBox')); - }, - - selectRev: function(rec, comboToClear){ - var tag = rec.get('name'); - if (debug){ - console.debug('select rev ' + tag); - } - this.revision = rec.get('revision'); - this.getStore().load({ - params: { - revision: this.revision, - path: this.path - } - }); - - this.reRenderBottomBar(this.path); - this.updateHistory(); - - // clear other combobox - if (comboToClear){ - comboToClear.clearValue(); - } - }, - - loadStore: function(store, records, extra){ - var path = extra.params.path; - if ( path && path.length > 0 ){ - - var index = path.lastIndexOf('/'); - if ( index > 0 ){ - path = path.substr(0, index); - } else { - path = ''; - } - - var File = Ext.data.Record.create([{ - name: 'name' - },{ - name: 'path' - },{ - name: 'directory' - },{ - name: 'length' - },{ - name: 'lastModified' - }]); - - store.insert(0, new File({ - name: '..', - path: path, - directory: true, - length: 0 - })); - } - }, - - onClick: function(e){ - var el = e.getTarget('.scm-browser'); - - if ( el ){ - - var rel = el.rel; - var index = rel.indexOf(':'); - if ( index > 0 ){ - var prefix = rel.substring(0, index); - var path = rel.substring(index + 1); - - if ( prefix === 'sub' ){ - this.openSubRepository(path); - } else if ( prefix === 'dir' ){ - this.changeDirectory(path); - } else { - this.openFile(path); - } - } - } - }, - - openSubRepository: function(subRepository){ - if (debug){ - console.debug('open sub repository ' + subRepository); - } - var revision = null; - var index = subRepository.indexOf(';'); - if ( index > 0 ){ - revision = subRepository.substring(index + 1); - subRepository = subRepository.substring(0, index); - } - var id = 'repositoryBrowser;' + subRepository + ';' + revision + ';null'; - Sonia.repository.get(subRepository, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'repositoryBrowser', - repository : repository, - revision: revision, - closable: true, - autoScroll: true - }; - } - main.addTab(panel); - }); - }, - - appendRepositoryProperties: function(bar){ - bar.push('->',this.repository.name); - if ( this.revision ){ - bar.push(': ', this.revision); - } - }, - - openFile: function(path){ - Sonia.repository.openFile(this.repository, path, this.revision); - }, - - changeDirectory: function(path){ - if ( path.substr(-1) === '/' ){ - path = path.substr( 0, path.length - 1 ); - } - - if (debug){ - console.debug( 'change directory: ' + path ); - } - - var params = { - path: path - }; - - if (this.revision){ - params.revision = this.revision; - } - - this.getStore().load({ - params: params - }); - - this.path = path; - this.updateHistory(); - - this.reRenderBottomBar(path); - }, - - updateHistory: function(){ - var token = Sonia.History.createToken( - 'repositoryBrowser', - this.repository.id, - this.revision, - this.path - ); - Sonia.History.add(token); - }, - - createFolderButton: function(path, name){ - return { - xtype: 'button', - icon: this.iconFolder, - text: name + '/', - handler: this.changeDirectory.createDelegate(this, [path]) - }; - }, - - renderClickPath: function(path){ - this.reRenderBottomBar(path); - }, - - reRenderBottomBar: function(path){ - var bbar = this.getBottomToolbar(); - bbar.removeAll(); - - var parts; - if (path){ - parts = path.split('/'); - } else { - parts = []; - } - var currentPath = ''; - var items = [this.createFolderButton(currentPath, '')]; - - if ( path !== '' ){ - for (var i=0; i', this.repository.name); - if ( this.revision ){ - items.push(':', this.revision); - } - - bbar.add(items); - bbar.doLayout(); - }, - - getRepositoryPath: function(url){ - var ctxPath = Sonia.util.getContextPath(); - var i = url.indexOf(ctxPath); - if ( i > 0 ){ - url = url.substring( i + ctxPath.length ); - } - if ( url.indexOf('/') === 0 ){ - url = url.substring(1); - } - return url; - }, - - transformLink: function(url, revision){ - var link = null; - var server = Sonia.util.getServername(url); - if ( server === window.location.hostname || server === 'localhost' ){ - var repositoryPath = this.getRepositoryPath( url ); - if (repositoryPath){ - link = 'sub:' + repositoryPath; - if (revision){ - link += ';' + revision; - } - } - } - return link; - }, - - renderLink: function(text, record){ - var subRepository = record.get('subrepository'); - var folder = record.get('directory'); - var path = null; - var template = null; - if ( subRepository ){ - // get real revision (.hgsubstate)? - var subRepositoryUrl = subRepository['browser-url']; - if (!subRepositoryUrl){ - subRepositoryUrl = subRepository['repository-url']; - } - path = this.transformLink(subRepositoryUrl, subRepository['revision']); - if ( path ){ - template = this.templateInternalLink; - } else { - path = subRepositoryUrl; - template = this.templateExternalLink; - } - } else { - if (folder){ - path = 'dir:'; - } else { - path = 'file:'; - } - path += record.get('path'); - template = this.templateInternalLink; - } - - return String.format(template, text, path); - }, - - renderName: function(name, p, record){ - return this.renderLink(name, record); - }, - - renderIcon: function(directory, p, record){ - var icon = null; - var subRepository = record.get('subrepository'); - - var name = record.get('name'); - if ( subRepository ){ - icon = this.iconSubRepository; - } else if (directory){ - icon = this.iconFolder; - } else { - icon = this.iconDocument; - } - var img = String.format(this.templateIcon, icon, name, name); - return this.renderLink(img, record); - }, - - renderLength: function(length, p, record){ - var result = ''; - var directory = record.data.directory; - if ( ! directory ){ - result = Ext.util.Format.fileSize(length); - } - return result; - } - -}); - -// register xtype -Ext.reg('repositoryBrowser', Sonia.repository.RepositoryBrowser); - - -// register history handler -Sonia.History.register('repositoryBrowser', { - - onActivate: function(panel){ - return Sonia.History.createToken( - 'repositoryBrowser', - panel.repository.id, - panel.revision, - panel.path - ); - }, - - onChange: function(repoId, revision, path){ - if (revision === 'null'){ - revision = null; - } - if (path === 'null'){ - path = ''; - } - var id = 'repositoryBrowser;' + repoId + ';' + revision; - Sonia.repository.get(repoId, function(repository){ - var panel = Ext.getCmp(id); - if (! panel){ - panel = { - id: id, - xtype: 'repositoryBrowser', - repository : repository, - revision: revision, - closable: true, - autoScroll: true - }; - if (path){ - panel.path = path; - } - } else { - panel.changeDirectory(path); - } - main.addTab(panel); - }); - } -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.settingsformpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.settingsformpanel.js deleted file mode 100644 index 2b182a5de2..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.settingsformpanel.js +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.repository.SettingsFormPanel = Ext.extend(Sonia.repository.FormPanel, { - - initComponent: function(){ - var update = this.isUpdate(); - - var config = { - title: this.formTitleText, - items: [{ - id: 'repositoryName', - fieldLabel: this.nameText, - name: 'name', - readOnly: update, - allowBlank: false, - helpText: this.nameHelpText, - vtype: 'repositoryName' - },{ - id: 'repositoryType', - fieldLabel: this.typeText, - name: 'type', - xtype: 'combo', - readOnly: update, - hiddenName : 'type', - typeAhead: true, - triggerAction: 'all', - lazyRender: true, - mode: 'local', - editable: false, - store: repositoryTypeStore, - valueField: 'name', - displayField: 'displayName', - allowBlank: false, - helpText: this.typeHelpText - },{ - fieldLabel: this.contactText, - name: 'contact', - vtype: 'email', - helpText: this.contactHelpText - },{ - fieldLabel: this.descriptionText, - name: 'description', - xtype: 'textarea', - helpText: this.descriptionHelpText - },{ - fieldLabel: this.publicText, - name: 'public', - xtype: 'checkbox', - helpText: this.publicHelpText - }] - }; - - this.modifyDefaultConfig(config); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.SettingsFormPanel.superclass.initComponent.apply(this, arguments); - }, - - modifyDefaultConfig: function(config){ - - } - -}); - -// register xtype -Ext.reg('repositorySettingsForm', Sonia.repository.SettingsFormPanel); diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.tagcombobox.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.tagcombobox.js deleted file mode 100644 index 5af3cc97f1..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.tagcombobox.js +++ /dev/null @@ -1,65 +0,0 @@ -/* * - * Copyright (c) 2014, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - - -Sonia.repository.TagComboBox = Ext.extend(Ext.form.ComboBox, { - - repositoryId: null, - - initComponent: function(){ - var tagStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'repositories/' + this.repositoryId + '/tags', - method: 'GET', - disableCaching: false - }), - root: 'tag', - idProperty: 'name', - fields: [ 'name', 'revision' ] - }); - - var config = { - valueField: 'revision', - displayField: 'name', - typeAhead: false, - editable: false, - triggerAction: 'all', - store: tagStore - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.repository.TagComboBox.superclass.initComponent.apply(this, arguments); - } - -}); - -// register xtype -Ext.reg('repositoryTagComboBox', Sonia.repository.TagComboBox); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.formpanel.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.formpanel.js deleted file mode 100644 index eabea80386..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.formpanel.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Sonia.rest.FormPanel = Ext.extend(Ext.form.FormPanel,{ - - okText: 'Ok', - cancelText: 'Cancel', - addText: 'Add', - removeText: 'Remove', - - item: null, - onUpdate: null, - onCreate: null, - - initComponent: function(){ - var config = { - bodyCssClass: 'x-panel-mc', - padding: 5, - labelWidth: 100, - defaults: {width: 240}, - autoScroll: true, - monitorValid: true, - defaultType: 'textfield', - buttonAlign: 'center', - footerCfg: { - cls: 'x-panel-mc' - }, - buttons: [ - {text: this.okText, formBind: true, scope: this, handler: this.submit}, - {text: this.cancelText, scope: this, handler: this.cancel} - ] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.rest.FormPanel.superclass.initComponent.apply(this, arguments); - - if ( this.item ){ - this.loadData(this.item); - } - }, - - isUpdate: function(){ - return this.item !== null; - }, - - loadData: function(item){ - this.item = item; - var data = {success: true, data: item}; - this.getForm().loadRecord(data); - }, - - submit: function(){ - if ( debug ){ - console.debug( 'form submitted' ); - } - var item = this.getForm().getFieldValues(); - if ( this.isUpdate() ){ - this.update(item); - } else { - this.create(item); - } - }, - - cancel: function(){ - if ( debug ){ - console.debug( 'reset form' ); - } - this.getForm().reset(); - }, - - execCallback: function(obj, item){ - if ( Ext.isFunction( obj ) ){ - obj(item); - } else if ( Ext.isObject( obj ) && Ext.isFunction(obj.fn) ){ - obj.fn.call( obj.scope, item ); - } else if (debug){ - console.debug('obj ' + obj + ' is not valid callback object'); - } - }, - - update: function(item){ - if ( debug ){ - console.debug( 'update item: ' ); - console.debug( item ); - } - }, - - create: function(item){ - if (debug){ - console.debug( 'create item: ' ); - console.debug( item ); - } - } - -}); - diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js deleted file mode 100644 index 9f05a75375..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, { - - urlTemplate: '{0}', - mailtoTemplate: '{0}', - checkboxTemplate: '', - emptyText: 'No items available', - minHeight: 150, - - initComponent: function(){ - - var selectionModel = new Ext.grid.RowSelectionModel({ - singleSelect: true - }); - - selectionModel.on({ - selectionchange: { - scope: this, - fn: this.selectionChanged - } - }); - - var config = { - minHeight: this.minHeight, - loadMask: true, - sm: selectionModel, - viewConfig: { - deferEmptyText: false, - emptyText: this.emptyText - } - }; - - this.addEvents('fallBelowMinHeight'); - - Ext.EventManager.onWindowResize(this.resize, this); - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.rest.Grid.superclass.initComponent.apply(this, arguments); - }, - - resize: function(){ - var h = this.getHeight(); - if (debug){ - console.debug('' + h + ' < ' + this.minHeight + " = " + (h < this.minHeight)); - } - if ( h < this.minHeight ){ - if ( debug ){ - console.debug( 'fire event fallBelowMinHeight' ); - } - this.fireEvent('fallBelowMinHeight', h, this.minHeight); - } - }, - - onDestroy: function(){ - Ext.EventManager.removeResizeListener(this.resize, this); - Sonia.rest.Grid.superclass.onDestroy.apply(this, arguments); - }, - - reload: function(callback, scope){ - if ( debug ){ - console.debug('reload store'); - } - - if ( Ext.isFunction(callback) ){ - this.store.load({ - callback: callback, - scope: scope - }); - } else { - if (debug){ - console.debug( 'callback is not a function' ); - } - this.store.load(); - } - }, - - selectionChanged: function(sm){ - var selected = sm.getSelected(); - if ( selected ){ - this.selectItem( selected.data ); - } - }, - - selectItem: function(item){ - if (debug){ - console.debug( item ); - } - }, - - renderUrl: function(url){ - var result = ''; - if ( url ){ - result = String.format( this.urlTemplate, url ); - } - return result; - }, - - renderMailto: function(mail){ - var result = ''; - if ( mail ){ - result = String.format( this.mailtoTemplate, mail ); - } - return result; - }, - - renderCheckbox: function(value){ - var param = ""; - if ( value ){ - param = "checked='checked' "; - } - return String.format( this.checkboxTemplate, param ); - }, - - selectById: function(id){ - if (debug){ - console.debug( 'select by id ' + id ); - } - var index = this.getStore().indexOfId(id); - if ( index >= 0 ){ - this.getSelectionModel().selectRow(index); - } else if (debug) { - console.debug('could not find item with id ' + id); - } - }, - - handleHistory: function(params){ - if (params && params.length > 0){ - this.selectById(params[0]); - } else { - if (debug){ - console.debug( 'clear selection' ); - } - this.getSelectionModel().clearSelections(); - } - } - -}); - diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.js deleted file mode 100644 index c524299fca..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.ns("Sonia.rest"); - - -Sonia.rest.exceptionTitleText = 'Error'; -Sonia.rest.exceptionMsgText = 'Could not load items. Server returned status: {0}'; - -Sonia.rest.ExceptionHandler = function(proxy, type, action, options, response, arg){ - var status = response.status; - if (debug){ - console.debug('store returned statuscode ' + status); - } - if ( status === 200 && action === 'read' && response.responseText === 'null' ){ - if ( debug ){ - console.debug( 'empty array, clear whole store' ); - } - this.removeAll(); - } else { - if (debug){ - console.debug( 'error during store load, status: ' + status ); - } - main.handleRestFailure( - response, - Sonia.rest.exceptionTitleText, - String.format(Sonia.rest.exceptionMsgText, status) - ); - } -}; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.jsonstore.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.jsonstore.js deleted file mode 100644 index 909d54da3d..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.jsonstore.js +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.rest.JsonStore = Ext.extend( Ext.data.JsonStore, { - - constructor: function(config) { - if ( ! config.listeners ){ - config.listeners = {}; - } - - // fix jersey empty array problem - config.listeners.exception = { - fn: Sonia.rest.ExceptionHandler, - scope: this - }; - - var baseConfig = { - autoLoad: true - }; - Sonia.rest.JsonStore.superclass.constructor.call(this, Ext.apply(baseConfig, config)); - } - -}); diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js deleted file mode 100644 index 210cedb9a7..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.panel.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.rest.Panel = Ext.extend(Ext.Panel, { - - addText: 'Add', - removeText: 'Remove', - reloadText: 'Reload', - - // icons - addIcon: 'resources/images/add.png', - removeIcon: 'resources/images/delete.png', - reloadIcon: 'resources/images/reload.png', - helpIcon: 'resources/images/help.png', - - initComponent: function(){ - - var config = { - layout: 'border', - hideMode: 'offsets', - enableTabScroll: true, - region:'center', - autoScroll: true - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.rest.Panel.superclass.initComponent.apply(this, arguments); - } - -}); - -// register xtype -Ext.reg('restPanel', Sonia.rest.Panel); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/security/sonia.security.js b/scm-webapp/src/main/webapp/resources/js/security/sonia.security.js deleted file mode 100644 index ce7fc8efdc..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/security/sonia.security.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// register namespace -Ext.ns('Sonia.security'); - -Sonia.security.getXsrfToken = function() { - var tokenCompressed = Ext.util.Cookies.get('X-Bearer-Token'); - if (tokenCompressed) { - var tokenClaimsCompressed = tokenCompressed.split('.')[1]; - tokenClaimsCompressed = tokenClaimsCompressed.replace('-', '+').replace('_', '/'); - if (window.atob) { - var token = Ext.util.JSON.decode(window.atob(tokenClaimsCompressed)); - return token['xsrf']; - } else if (debug) { - console.log('ERROR: browser does not support window.atob'); - } - } - return undefined; -}; \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/security/sonia.security.permissionspanel.js b/scm-webapp/src/main/webapp/resources/js/security/sonia.security.permissionspanel.js deleted file mode 100644 index 676114fc78..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/security/sonia.security.permissionspanel.js +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -Sonia.security.PermissionsPanel = Ext.extend(Ext.Panel, { - - addText: 'Add', - removeText: 'Remove', - reloadText: 'Reload', - - // icons - addIcon: 'resources/images/add.png', - removeIcon: 'resources/images/delete.png', - reloadIcon: 'resources/images/reload.png', - helpIcon: 'resources/images/help.png', - - - //TODO i18n - titleText: 'Permissions', - - permissionStore: null, - baseUrl: null, - - initComponent: function(){ - - this.permissionStore = new Sonia.rest.JsonStore({ - proxy: new Ext.data.HttpProxy({ - api: { - read: restUrl + this.baseUrl - }, - disableCaching: false - }), - idProperty: 'id', - fields: [ 'id', 'value'], - listeners: { - update: { - fn: this.modifyOrAddPermission, - scope: this - }, - remove: { - fn: this.removePermission, - scope: this - } - } - }); - - var availablePermissionStore = new Ext.data.JsonStore({ - fields: ['display-name', 'description', 'value'], - sortInfo: { - field: 'display-name' - } - }); - availablePermissionStore.loadData(state.availablePermissions); - - var permissionColModel = new Ext.grid.ColumnModel({ - columns: [{ - id: 'value', - header: 'Permission', - dataIndex: 'value', - renderer: this.renderPermission, - editor: new Ext.form.ComboBox({ - store: availablePermissionStore, - displayField: 'display-name', - valueField: 'value', - typeAhead: false, - editable: false, - triggerAction: 'all', - mode: 'local', - width: 250 - }) - }] - }); - - var selectionModel = new Ext.grid.RowSelectionModel({ - singleSelect: true - }); - - var config = { - title: this.titleText, - bodyCssClass: 'x-panel-mc', - padding: 5, - items: [{ - id: 'permissionGrid', - xtype: 'editorgrid', - clicksToEdit: 1, - frame: true, - width: '100%', - autoHeight: true, - autoScroll: false, - colModel: permissionColModel, - sm: selectionModel, - store: this.permissionStore, - viewConfig: { - forceFit: true, - markDirty: false - }, - tbar: [{ - text: this.addText, - scope: this, - icon: this.addIcon, - handler : function(){ - var Permission = this.permissionStore.recordType; - var grid = Ext.getCmp('permissionGrid'); - grid.stopEditing(); - this.permissionStore.insert(0, new Permission()); - grid.startEditing(0, 0); - } - },{ - text: this.removeText, - scope: this, - icon: this.removeIcon, - handler: function(){ - var grid = Ext.getCmp('permissionGrid'); - var selected = grid.getSelectionModel().getSelected(); - if ( selected ){ - this.permissionStore.remove(selected); - } - } - },'->',{ - id: 'permissionGridHelp', - xtype: 'box', - autoEl: { - tag: 'img', - src: this.helpIcon - } - }] - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.security.PermissionsPanel.superclass.initComponent.apply(this, arguments); - }, - - getIdFromResponse: function(response){ - var id = null; - var location = response.getResponseHeader('Location'); - if (location){ - var parts = location.split('/'); - id = parts[parts.length - 1]; - } - return id; - }, - - modifyOrAddPermission: function(store, record){ - var id = record.get('id'); - if ( id ){ - this.modifyPermission(id, record); - } else { - this.addPermission(record); - } - }, - - addPermission: function(record){ - Ext.Ajax.request({ - url: restUrl + this.baseUrl, - method: 'POST', - jsonData: record.data, - scope: this, - success: function(response){ - var id = this.getIdFromResponse(response); - record.data.id = id; - }, - failure: function(result){ - } - }); - }, - - modifyPermission: function(id, record){ - Ext.Ajax.request({ - url: restUrl + this.baseUrl + '/' + encodeURIComponent(id), - method: 'PUT', - jsonData: record.data, - scope: this, - success: function(){ - }, - failure: function(result){ - } - }); - }, - - removePermission: function(store, record){ - Ext.Ajax.request({ - url: restUrl + this.baseUrl + '/' + encodeURIComponent(record.get('id')), - method: 'DELETE', - scope: this, - success: function(){ - - }, - failure: function(result){ - } - }); - }, - - renderPermission: function(value){ - var ap = state.availablePermissions; - for (var i=0; i= 0; -}; diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.global.js b/scm-webapp/src/main/webapp/resources/js/sonia.global.js deleted file mode 100644 index a9b0e9a30e..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/sonia.global.js +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ - -// enable debug mode, if console is available -var debug = typeof console !== 'undefined' && typeof console.debug !== 'undefined'; - -// send X-SCM-Client on every ajax request -Ext.Ajax.defaultHeaders = { - 'X-SCM-Client': 'WUI' -}; - -// XSRF protection -Ext.Ajax.on('beforerequest', function(conn, options){ - var token = Sonia.security.getXsrfToken(); - if (token){ - if (!options.headers){ - options.headers = {}; - } - options.headers['X-XSRF-Token'] = token; - } -}); - -var state = null; -var admin = false; - -// sonia.scm.api.rest.resources.UserResource.DUMMY_PASSWORT -var dummyPassword = '__dummypassword__'; - -/** - * functions called after login - * - * @deprecated use main.addListener('login', fn, scope) - */ -var loginCallbacks = []; - -/** - * functions called after logout - * - * @deprecated use main.addListener('logout', fn, scope) - */ -var logoutCallbacks = []; - -/** - * functions called after initialisation - */ -var initCallbacks = []; - -/** - * The base url for the rest api - */ -var restUrl = "api/rest/"; - -var userSearchStore = new Ext.data.JsonStore({ - root: 'results', - idProperty: 'value', - fields: ['value','label'], - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'search/users', - method: 'GET' - }) -}); - -var groupSearchStore = new Ext.data.JsonStore({ - root: 'results', - idProperty: 'value', - fields: ['value','label'], - proxy: new Ext.data.HttpProxy({ - url: restUrl + 'search/groups', - method: 'GET' - }) -}); - -// SONIA - -Sonia = { - - idSeparator: ';', - idNoneObject: '-', - - id: function(){ - var id = ''; - for ( var i=0; i= 0 ){ - invokeable = false; - lockList.splice(index); - } - return invokeable; - }, - - onActivate: function(tab){ - if (tab){ - var el = this.historyElements[tab.xtype]; - if (el){ - var token = Sonia.util.apply({ - fn: el.onActivate, - scope: el - }, tab); - if (token){ - this.add(token); - } - } else { - if (debug){ - console.debug('could not find xtype ' + tab.xtype + ' set xtype as id'); - } - this.add(tab.xtype); - } - } - }, - - onChange: function(token){ - if(token){ - if (this.isInvokeable(this.recentlyAdded, token)){ - var parts = token.split(';'); - var id = parts[0]; - this.recentlyChanged.push(token); - Sonia.History.handleChange(id, parts.splice(1, parts.length - 1)); - } - } else if (debug) { - console.debug('history token is empty'); - } - }, - - handleChange: function(id, p){ - var el = this.historyElements[id]; - if (el){ - if (debug){ - console.debug('handle history event for ' + id + ' with "' + p + '"'); - } - Sonia.util.apply({ - fn: el.onChange, - scope: el - }, p); - } else if (Ext.ComponentMgr.isRegistered(id)) { - try { - main.addTabPanel(id); - } catch (e){ - if (debug){ - console.debug('could not handle history event: ' + e ); - } - } - } else if (debug) { - console.debug('could not find xtype ' + id); - } - } - -}; - - -Ext.History.on('ready', function(history){ - var token = history.getToken(); - if (token && token !== 'null'){ - Sonia.History.onChange(token); - } - Sonia.History.initialized = true; -}); - -Ext.History.on('change', function(token){ - Sonia.History.onChange(token); -}); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.scm.js b/scm-webapp/src/main/webapp/resources/js/sonia.scm.js deleted file mode 100644 index 9befb7c676..0000000000 --- a/scm-webapp/src/main/webapp/resources/js/sonia.scm.js +++ /dev/null @@ -1,692 +0,0 @@ -/* - * Copyright (c) 2010, Sebastian Sdorra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. Neither the name of SCM-Manager; nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * http://bitbucket.org/sdorra/scm-manager - * - */ -Ext.ns("Sonia.scm"); - -Sonia.scm.Main = Ext.extend(Ext.util.Observable, { - - tabRepositoriesText: 'Repositories', - navImportRepositoriesText: 'Import Repositories', - navChangePasswordText: 'Change Password', - sectionMainText: 'Main', - sectionSecurityText: 'Security', - navRepositoriesText: 'Repositories', - sectionConfigText: 'Config', - navGeneralConfigText: 'General', - tabGeneralConfigText: 'SCM Config', - - navRepositoryTypesText: 'Repository Types', - tabRepositoryTypesText: 'Repository Config', - navPluginsText: 'Plugins', - tabPluginsText: 'Plugins', - navUsersText: 'Users', - tabUsersText: 'Users', - navGroupsText: 'Groups', - tabGroupsText: 'Groups', - - sectionLoginText: 'Login', - navLoginText: 'Login', - - sectionLogoutText: 'Log out', - navLogoutText: 'Log out', - - logoutFailedText: 'Logout Failed!', - - errorTitle: 'Error', - errorMessage: 'Unknown error occurred.', - - errorSessionExpiredTitle: 'Session expired', - errorSessionExpiredMessage: 'Your session is expired. Please relogin.', - - errorNoPermissionsTitle: 'Not permitted', - errorNoPermissionsMessage: 'You have not enough permissions to execute this action.', - - errorNotFoundTitle: 'Not found', - errorNotFoundMessage: 'The resource could not be found.', - - loggedInTextTemplate: 'logged in as {state.user.name} - ', - userInfoMailText: 'Mail', - userInfoGroupsText: 'Groups', - - mainTabPanel: null, - - infoPanels: [], - settingsForm: [], - scripts: [], - stylesheets: [], - - constructor : function(config) { - this.addEvents('login', 'logout', 'init'); - this.mainTabPanel = Ext.getCmp('mainTabPanel'); - this.addListener('login', this.postLogin, this); - Sonia.scm.Main.superclass.constructor.call(this, config); - }, - - init: function(){ - this.fireEvent('init', this); - }, - - registerInfoPanel: function(type, panel){ - this.infoPanels[type] = panel; - }, - - registerSettingsForm: function(type, form){ - this.settingsForm[type] = form; - }, - - getSettingsForm: function(type){ - var rp = null; - var panel = this.settingsForm[type]; - if ( ! panel ){ - rp = { - xtype: 'repositorySettingsForm' - }; - } else { - rp = Sonia.util.clone( panel ); - } - return rp; - }, - - getInfoPanel: function(type){ - var rp = null; - var panel = this.infoPanels[type]; - if ( ! panel ){ - rp = { - xtype: 'repositoryInfoPanel' - }; - } else { - rp = Sonia.util.clone( panel ); - } - return rp; - }, - - postLogin: function(){ - this.createMainMenu(); - this.createHomePanel(); - }, - - createHomePanel: function(){ - if ( debug ){ - console.debug('create home panel'); - } - this.mainTabPanel.add({ - id: 'repositories', - xtype: 'repositoryPanel', - title: this.tabRepositoriesText, - closeable: false, - autoScroll: true - }); - this.mainTabPanel.setActiveTab('repositories'); - }, - - addRepositoriesTabPanel: function(){ - this.addTabPanel("repositories", "repositoryPanel", this.tabRepositoriesText); - }, - - addScmConfigTabPanel: function(){ - if (admin){ - this.addTabPanel("scmConfig", "scmConfig", this.navGeneralConfigText); - } - }, - - addRepositoryConfigTabPanel: function(){ - if (admin){ - this.addTabPanel('repositoryConfig', 'repositoryConfig', this.tabRepositoryTypesText); - } - }, - - addPluginTabPanel: function(){ - if (admin){ - this.addTabPanel('plugins', 'pluginGrid', this.navPluginsText); - } - }, - - addUsersTabPanel: function(){ - if (admin){ - this.addTabPanel('users', 'userPanel', this.navUsersText); - } - }, - - addGroupsTabPanel: function(){ - if (admin){ - this.addTabPanel('groups', 'groupPanel', this.tabGroupsText); - } - }, - - createMainMenu: function(){ - if ( debug ){ - console.debug('create main menu'); - } - var panel = Ext.getCmp('navigationPanel'); - - var repositoryLinks = [{ - label: this.navRepositoriesText, - fn: this.addRepositoriesTabPanel, - scope: this - }]; - - if ( admin ){ - repositoryLinks.push({ - label: this.navImportRepositoriesText, - fn: function(){ - new Sonia.repository.ImportWindow().show(); - } - }); - } - - panel.addSection({ - id: 'navMain', - title: this.sectionMainText, - links: repositoryLinks - }); - - var securitySection = null; - - if ( state.user.type === state.defaultUserType && state.user.name !== 'anonymous' ){ - securitySection = { - id: 'securityConfig', - title: this.sectionSecurityText, - links: [{ - label: this.navChangePasswordText, - fn: function(){ - new Sonia.action.ChangePasswordWindow().show(); - } - }] - }; - } - - if ( admin ){ - - panel.addSections([{ - id: 'navConfig', - title: this.sectionConfigText, - links: [{ - label: this.navGeneralConfigText, - fn: this.addScmConfigTabPanel, - scope: this - },{ - label: this.navRepositoryTypesText, - fn: this.addRepositoryConfigTabPanel, - scope: this - },{ - label: this.navPluginsText, - fn: this.addPluginTabPanel, - scope: this - }] - }]); - - if ( ! securitySection ){ - securitySection = { - id: 'securityConfig', - title: this.sectionSecurityText, - links: [] - }; - } - - securitySection.links.push({ - label: this.navUsersText, - fn: this.addUsersTabPanel, - scope: this - },{ - label: this.navGroupsText, - fn: this.addGroupsTabPanel, - scope: this - }); - } - - if ( securitySection ){ - panel.addSection( securitySection ); - } - - if ( state.user.name === 'anonymous' ){ - panel.addSection({ - id: 'navLogin', - title: this.sectionLoginText, - links: [{ - label: this.sectionLoginText, - fn: this.login, - scope: this - }] - }); - } else { - panel.addSection({ - id: 'navLogout', - title: this.sectionLogoutText, - links: [{ - label: this.navLogoutText, - fn: this.logout, - scope: this - }] - }); - } - - //fix hidden logout button - panel.doLayout(); - }, - - addTabPanel: function(id, xtype, title){ - if (!xtype){ - xtype = id; - } - var panel = { - id: id, - xtype: xtype, - closable: true, - autoScroll: true - }; - if (title){ - panel.title = title; - } - this.addTab(panel); - }, - - addTab: function(panel){ - var tab = this.mainTabPanel.findById(panel.id); - if ( !tab ){ - this.mainTabPanel.add(panel); - } - this.mainTabPanel.setActiveTab(panel.id); - }, - - loadState: function(s){ - if ( debug ){ - console.debug( s ); - } - state = s; - admin = s.user.admin; - - // call login callback functions - this.fireEvent("login", state); - }, - - clearState: function(){ - // clear state - state = null; - // clear repository store - repositoryTypeStore.removeAll(); - // remove all tabs - this.mainTabPanel.removeAll(); - // remove navigation items - Ext.getCmp('navigationPanel').removeAll(); - }, - - checkLogin: function(){ - Ext.Ajax.request({ - url: restUrl + 'auth/state', - method: 'GET', - scope: this, - success: function(response){ - if ( debug ){ - console.debug('login success'); - } - var s = Ext.decode(response.responseText); - this.loadState(s); - }, - failure: function(){ - if ( debug ){ - console.debug('login failed'); - } - var loginWin = new Sonia.login.Window(); - loginWin.show(); - } - }); - }, - - login: function(){ - this.clearState(); - var loginWin = new Sonia.login.Window(); - loginWin.show(); - }, - - logout: function(){ - Ext.Ajax.request({ - url: restUrl + 'auth/logout', - method: 'GET', - scope: this, - success: function(response){ - if ( debug ){ - console.debug('logout success'); - } - this.clearState(); - // call logout callback functions - this.fireEvent( "logout", state ); - - var s = null; - var text = response.responseText; - if ( text && text.length > 0 ){ - s = Ext.decode( text ); - } - if ( s && s.success ){ - this.loadState(s); - } else { - // show login window - var loginWin = new Sonia.login.Window(); - loginWin.show(); - } - }, - failure: function(){ - if ( debug ){ - console.debug('logout failed'); - } - Ext.Msg.alert(this.logoutFailedText); - } - }); - }, - - addListeners: function(event, callbacks){ - Ext.each(callbacks, function(callback){ - if ( Ext.isFunction(callback) ){ - this.addListener(event, callback); - } else if (Ext.isObject(callback)) { - this.addListener(event, callback.fn, callback.scope); - } else if (debug){ - console.debug( "callback is not a function or object. " + callback ); - } - }, this); - }, - - handleRestFailure: function(response, title, message){ - this.handleFailure(response.status, title, message, response.responseText); - }, - - handleFailure: function(status, title, message, serverException){ - if (debug){ - console.debug( 'handle failure for status code: ' + status ); - } - // TODO handle already exists exceptions specific - if ( status === 401 ){ - Ext.Msg.show({ - title: this.errorSessionExpiredTitle, - msg: this.errorSessionExpiredMessage, - buttons: Ext.Msg.OKCANCEL, - fn: function(btn){ - if ( btn === 'ok' ){ - this.login(); - } - }, - scope: this - }); - } else if ( status === 403 ){ - Ext.Msg.show({ - title: this.errorNoPermissionsTitle, - msg: this.errorNoPermissionsMessage, - buttons: Ext.Msg.OKCANCEL - }); - } else if ( status === 404 ){ - Ext.Msg.show({ - title: this.errorNotFoundTitle, - msg: this.errorNotFoundMessage, - buttons: Ext.Msg.OKCANCEL - }); - } else { - if ( ! title ){ - title = this.errorTitle; - } - if ( ! message ){ - message = this.errorMessage; - } - - var text = null; - if (serverException){ - try { - if ( Ext.isString(serverException) ){ - serverException = Ext.decode(serverException); - } - text = serverException.stacktrace; - if ( debug ){ - console.debug( text ); - } - } catch (e){ - if ( debug ){ - console.debug(e); - } - } - } - - message = String.format(message, status); - - if ( ! text ){ - - Ext.MessageBox.show({ - title: title, - msg: message, - buttons: Ext.MessageBox.OK, - icon: Ext.MessageBox.ERROR - }); - - } else { - new Sonia.action.ExceptionWindow({ - title: title, - message: message, - stacktrace: text - }).show(); - } - } - }, - - loadScript: function(url, callback, scope){ - var doCallback = function(){ - if (debug){ - console.debug('call callback for script ' + url); - } - if ( scope ){ - callback.call(scope); - } else { - callback(); - } - }; - if ( this.scripts.indexOf(url) < 0 ){ - var js = document.createElement('script'); - js.type = "text/javascript"; - js.language = 'javascript'; - js.src = url; - - if ( Ext.isIE ){ - js.onreadystatechange = function (){ - if (this.readyState === 'loaded' || - this.readyState === 'complete'){ - doCallback(); - } - }; - } else { - js.onload = doCallback; - js.onerror = doCallback; - } - - if (debug){ - console.debug('load script ' + url); - } - - document.body.appendChild(js); - // var head = document.getElementsByTagName('head')[0]; - // head.appendChild(js); - this.scripts.push(url); - } else { - if (debug){ - console.debug( 'script ' + url + ' allready loaded' ); - } - doCallback(); - } - }, - - loadStylesheet: function(url){ - if ( this.stylesheets.indexOf(url) < 0 ){ - var css = document.createElement('link'); - css.rel = 'stylesheet'; - css.type = 'text/css'; - css.href = url; - document.getElementsByTagName('head')[0].appendChild(css); - this.stylesheets.push(url); - } - }, - - getMainTabPanel: function(){ - return this.mainTabPanel; - }, - - renderUserInformations: function(state){ - if ( state.user.name !== 'anonymous' ){ - var tpl = new Ext.XTemplate(this.loggedInTextTemplate); - tpl.overwrite(Ext.get('scm-userinfo'), state); - var text = ''; - if (state.user.mail){ - text += this.userInfoMailText + ': ' + state.user.mail + '
        '; - } - if (state.groups && state.groups.length > 0){ - text += this.userInfoGroupsText + ': ' + this.getGroups(state.groups) + '
        '; - } - - Ext.QuickTips.register({ - target : 'scm-userinfo-tip', - title : state.user.displayName, - text : text, - enabled : true - }); - } - }, - - getGroups: function(groups){ - var out = ''; - var s = groups.length; - for ( var i=0; i 0 ){ - url = url.substring(i+3); - i = url.indexOf(':'); - if ( i <= 0 ){ - i = url.indexOf('/'); - } - if ( i > 0 ){ - url = url.substring(0, i); - } - } - return url; -}; - -Sonia.util.getContextPath = function(){ - var path = window.location.pathname; - if ( path.indexOf('.html') > 0 ){ - var i = path.lastIndexOf('/'); - if ( i > 0 ){ - path = path.substring(0, i); - } - } - return path; -}; - -Sonia.util.getBaseUrl = function(){ - var url = location.href; - var i = url.indexOf('#'); - if ( i > 0 ){ - url = url.substring(0, i); - } - - i = url.indexOf('?'); - if ( i > 0 ){ - url = url.substring(0, i); - } - - if ( url.endsWith('/index.html') ){ - url = url.substring(0, url.length - '/index.html'.length); - } else if ( url.endsWith('/') ){ - url = url.substring(0, url.length -1); - } - return url; -}; - -Sonia.util.getName = function(path){ - var name = path; - var index = path.lastIndexOf('/'); - if ( index > 0 ){ - name = path.substr(index +1); - } - return name; -}; - -Sonia.util.getExtension = function(path){ - var ext = null; - var index = path.lastIndexOf('.'); - if ( index > 0 ){ - ext = path.substr(index + 1, path.length); - } - return ext; -}; - -Sonia.util.clone = function(obj) { - var newObj = (this instanceof Array) ? [] : {}; - for (i in obj) { - if (i === 'clone') continue; - if (obj[i] && typeof obj[i] === "object") { - newObj[i] = Sonia.util.clone(obj[i]); - } else newObj[i] = obj[i]; - } - return newObj; -}; - -Sonia.util.parseInt = function(string, defaultValue){ - var result = defaultValue; - try { - result = parseInt(string); - } catch (e){ - if (debug){ - console.debug(e); - } - } - if (isNaN(result)){ - result = defaultValue; - } - return result; -}; - -Sonia.util.getStringFromArray = function(array){ - var value = ''; - if ( Ext.isArray(array) ){ - for ( var i=0; i\ -
        \ -
        \ -
        \ -
        \ - \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ - {content}\ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
        \ -
    '), - - constructor: function(config) { - config = config || {}; - var cl = 'scm-tip'; - if (config['class']){ - cl += ' ' + config['class']; - } - config.xtype = 'box'; - this.html = this.tpl.apply({content: config.content}); - Sonia.util.Tip.superclass.constructor.apply(this, arguments); - } - -}); - -// register xtype -Ext.reg('scmTip', Sonia.util.Tip); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/moment/lang/de.js b/scm-webapp/src/main/webapp/resources/moment/lang/de.js deleted file mode 100644 index 6acd642859..0000000000 --- a/scm-webapp/src/main/webapp/resources/moment/lang/de.js +++ /dev/null @@ -1,4 +0,0 @@ -// moment.js language configuration -// language : german (de) -// author : lluchs : https://github.com/lluchs -(function(){var a={months:"Januar_Februar_M\u00e4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm U\\hr",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT",sameElse:"L",nextDay:"[Morgen um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gestern um] LT",lastWeek:"[letzten] dddd [um] LT"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:"einer Minute",mm:"%d Minuten",h:"einer Stunde",hh:"%d Stunden",d:"einem Tag",dd:"%d Tagen",M:"einem Monat",MM:"%d Monaten",y:"einem Jahr",yy:"%d Jahren"},ordinal:function(a){return"."}};typeof module!="undefined"&&module.exports&&(module.exports=a),typeof window!="undefined"&&this.moment&&this.moment.lang&&this.moment.lang("de",a)})(); \ No newline at end of file diff --git a/scm-webapp/src/main/webapp/resources/moment/moment.js b/scm-webapp/src/main/webapp/resources/moment/moment.js deleted file mode 100644 index e6fa145aa4..0000000000 --- a/scm-webapp/src/main/webapp/resources/moment/moment.js +++ /dev/null @@ -1,1213 +0,0 @@ -// moment.js -// version : 1.7.2 -// author : Tim Wood -// license : MIT -// momentjs.com - -(function (undefined) { - - /************************************ - Constants - ************************************/ - - var moment, - VERSION = "1.7.2", - round = Math.round, i, - // internal storage for language config files - languages = {}, - currentLanguage = 'en', - - // check for nodeJS - hasModule = (typeof module !== 'undefined' && module.exports), - - // Parameters to check for on the lang config. This list of properties - // will be inherited from English if not provided in a language - // definition. monthsParse is also a lang config property, but it - // cannot be inherited and as such cannot be enumerated here. - langConfigProperties = 'months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem'.split('|'), - - // ASP.NET json date format regex - aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, - - // format tokens - formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g, - - // parsing tokens - parseMultipleFormatChunker = /([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi, - - // parsing token regexes - parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 - parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 - parseTokenThreeDigits = /\d{3}/, // 000 - 999 - parseTokenFourDigits = /\d{1,4}/, // 0 - 9999 - parseTokenWord = /[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i, // any word characters or numbers - parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/i, // +00:00 -00:00 +0000 -0000 or Z - parseTokenT = /T/i, // T (ISO seperator) - - // preliminary iso regex - // 0000-00-00 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 - isoRegex = /^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/, - isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', - - // iso time formats and regexes - isoTimes = [ - ['HH:mm:ss.S', /T\d\d:\d\d:\d\d\.\d{1,3}/], - ['HH:mm:ss', /T\d\d:\d\d:\d\d/], - ['HH:mm', /T\d\d:\d\d/], - ['HH', /T\d\d/] - ], - - // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"] - parseTimezoneChunker = /([\+\-]|\d\d)/gi, - - // getter and setter names - proxyGettersAndSetters = 'Month|Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), - unitMillisecondFactors = { - 'Milliseconds' : 1, - 'Seconds' : 1e3, - 'Minutes' : 6e4, - 'Hours' : 36e5, - 'Days' : 864e5, - 'Months' : 2592e6, - 'Years' : 31536e6 - }, - - // format function strings - formatFunctions = {}, - - // tokens to ordinalize and pad - ordinalizeTokens = 'DDD w M D d'.split(' '), - paddedTokens = 'M D H h m s w'.split(' '), - - /* - * moment.fn.format uses new Function() to create an inlined formatting function. - * Results are a 3x speed boost - * http://jsperf.com/momentjs-cached-format-functions - * - * These strings are appended into a function using replaceFormatTokens and makeFormatFunction - */ - formatTokenFunctions = { - // a = placeholder - // b = placeholder - // t = the current moment being formatted - // v = getValueAtKey function - // o = language.ordinal function - // p = leftZeroFill function - // m = language.meridiem value or function - M : function () { - return this.month() + 1; - }, - MMM : function (format) { - return getValueFromArray("monthsShort", this.month(), this, format); - }, - MMMM : function (format) { - return getValueFromArray("months", this.month(), this, format); - }, - D : function () { - return this.date(); - }, - DDD : function () { - var a = new Date(this.year(), this.month(), this.date()), - b = new Date(this.year(), 0, 1); - return ~~(((a - b) / 864e5) + 1.5); - }, - d : function () { - return this.day(); - }, - dd : function (format) { - return getValueFromArray("weekdaysMin", this.day(), this, format); - }, - ddd : function (format) { - return getValueFromArray("weekdaysShort", this.day(), this, format); - }, - dddd : function (format) { - return getValueFromArray("weekdays", this.day(), this, format); - }, - w : function () { - var a = new Date(this.year(), this.month(), this.date() - this.day() + 5), - b = new Date(a.getFullYear(), 0, 4); - return ~~((a - b) / 864e5 / 7 + 1.5); - }, - YY : function () { - return leftZeroFill(this.year() % 100, 2); - }, - YYYY : function () { - return leftZeroFill(this.year(), 4); - }, - a : function () { - return this.lang().meridiem(this.hours(), this.minutes(), true); - }, - A : function () { - return this.lang().meridiem(this.hours(), this.minutes(), false); - }, - H : function () { - return this.hours(); - }, - h : function () { - return this.hours() % 12 || 12; - }, - m : function () { - return this.minutes(); - }, - s : function () { - return this.seconds(); - }, - S : function () { - return ~~(this.milliseconds() / 100); - }, - SS : function () { - return leftZeroFill(~~(this.milliseconds() / 10), 2); - }, - SSS : function () { - return leftZeroFill(this.milliseconds(), 3); - }, - Z : function () { - var a = -this.zone(), - b = "+"; - if (a < 0) { - a = -a; - b = "-"; - } - return b + leftZeroFill(~~(a / 60), 2) + ":" + leftZeroFill(~~a % 60, 2); - }, - ZZ : function () { - var a = -this.zone(), - b = "+"; - if (a < 0) { - a = -a; - b = "-"; - } - return b + leftZeroFill(~~(10 * a / 6), 4); - } - }; - - function getValueFromArray(key, index, m, format) { - var lang = m.lang(); - return lang[key].call ? lang[key](m, format) : lang[key][index]; - } - - function padToken(func, count) { - return function (a) { - return leftZeroFill(func.call(this, a), count); - }; - } - function ordinalizeToken(func) { - return function (a) { - var b = func.call(this, a); - return b + this.lang().ordinal(b); - }; - } - - while (ordinalizeTokens.length) { - i = ordinalizeTokens.pop(); - formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i]); - } - while (paddedTokens.length) { - i = paddedTokens.pop(); - formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); - } - formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); - - - /************************************ - Constructors - ************************************/ - - - // Moment prototype object - function Moment(date, isUTC, lang) { - this._d = date; - this._isUTC = !!isUTC; - this._a = date._a || null; - this._lang = lang || false; - } - - // Duration Constructor - function Duration(duration) { - var data = this._data = {}, - years = duration.years || duration.y || 0, - months = duration.months || duration.M || 0, - weeks = duration.weeks || duration.w || 0, - days = duration.days || duration.d || 0, - hours = duration.hours || duration.h || 0, - minutes = duration.minutes || duration.m || 0, - seconds = duration.seconds || duration.s || 0, - milliseconds = duration.milliseconds || duration.ms || 0; - - // representation for dateAddRemove - this._milliseconds = milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 36e5; // 1000 * 60 * 60 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = days + - weeks * 7; - // It is impossible translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = months + - years * 12; - - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - seconds += absRound(milliseconds / 1000); - - data.seconds = seconds % 60; - minutes += absRound(seconds / 60); - - data.minutes = minutes % 60; - hours += absRound(minutes / 60); - - data.hours = hours % 24; - days += absRound(hours / 24); - - days += weeks * 7; - data.days = days % 30; - - months += absRound(days / 30); - - data.months = months % 12; - years += absRound(months / 12); - - data.years = years; - - this._lang = false; - } - - - /************************************ - Helpers - ************************************/ - - - function absRound(number) { - if (number < 0) { - return Math.ceil(number); - } else { - return Math.floor(number); - } - } - - // left zero fill a number - // see http://jsperf.com/left-zero-filling for performance comparison - function leftZeroFill(number, targetLength) { - var output = number + ''; - while (output.length < targetLength) { - output = '0' + output; - } - return output; - } - - // helper function for _.addTime and _.subtractTime - function addOrSubtractDurationFromMoment(mom, duration, isAdding) { - var ms = duration._milliseconds, - d = duration._days, - M = duration._months, - currentDate; - - if (ms) { - mom._d.setTime(+mom + ms * isAdding); - } - if (d) { - mom.date(mom.date() + d * isAdding); - } - if (M) { - currentDate = mom.date(); - mom.date(1) - .month(mom.month() + M * isAdding) - .date(Math.min(currentDate, mom.daysInMonth())); - } - } - - // check if is an array - function isArray(input) { - return Object.prototype.toString.call(input) === '[object Array]'; - } - - // compare two arrays, return the number of differences - function compareArrays(array1, array2) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if (~~array1[i] !== ~~array2[i]) { - diffs++; - } - } - return diffs + lengthDiff; - } - - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function dateFromArray(input, asUTC, hoursOffset, minutesOffset) { - var i, date, forValid = []; - for (i = 0; i < 7; i++) { - forValid[i] = input[i] = (input[i] == null) ? (i === 2 ? 1 : 0) : input[i]; - } - // we store whether we used utc or not in the input array - input[7] = forValid[7] = asUTC; - // if the parser flagged the input as invalid, we pass the value along - if (input[8] != null) { - forValid[8] = input[8]; - } - // add the offsets to the time to be parsed so that we can have a clean array - // for checking isValid - input[3] += hoursOffset || 0; - input[4] += minutesOffset || 0; - date = new Date(0); - if (asUTC) { - date.setUTCFullYear(input[0], input[1], input[2]); - date.setUTCHours(input[3], input[4], input[5], input[6]); - } else { - date.setFullYear(input[0], input[1], input[2]); - date.setHours(input[3], input[4], input[5], input[6]); - } - date._a = forValid; - return date; - } - - // Loads a language definition into the `languages` cache. The function - // takes a key and optionally values. If not in the browser and no values - // are provided, it will load the language file module. As a convenience, - // this function also returns the language values. - function loadLang(key, values) { - var i, m, - parse = []; - - if (!values && hasModule) { - values = require('./lang/' + key); - } - - for (i = 0; i < langConfigProperties.length; i++) { - // If a language definition does not provide a value, inherit - // from English - values[langConfigProperties[i]] = values[langConfigProperties[i]] || - languages.en[langConfigProperties[i]]; - } - - for (i = 0; i < 12; i++) { - m = moment([2000, i]); - parse[i] = new RegExp('^' + (values.months[i] || values.months(m, '')) + - '|^' + (values.monthsShort[i] || values.monthsShort(m, '')).replace('.', ''), 'i'); - } - values.monthsParse = values.monthsParse || parse; - - languages[key] = values; - - return values; - } - - // Determines which language definition to use and returns it. - // - // With no parameters, it will return the global language. If you - // pass in a language key, such as 'en', it will return the - // definition for 'en', so long as 'en' has already been loaded using - // moment.lang. If you pass in a moment or duration instance, it - // will decide the language based on that, or default to the global - // language. - function getLangDefinition(m) { - var langKey = (typeof m === 'string') && m || - m && m._lang || - null; - - return langKey ? (languages[langKey] || loadLang(langKey)) : moment; - } - - - /************************************ - Formatting - ************************************/ - - - function removeFormattingTokens(input) { - if (input.match(/\[.*\]/)) { - return input.replace(/^\[|\]$/g, ""); - } - return input.replace(/\\/g, ""); - } - - function makeFormatFunction(format) { - var array = format.match(formattingTokens), i, length; - - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } - - return function (mom) { - var output = ""; - for (i = 0; i < length; i++) { - output += typeof array[i].call === 'function' ? array[i].call(mom, format) : array[i]; - } - return output; - }; - } - - // format date using native date object - function formatMoment(m, format) { - var i = 5; - - function replaceLongDateFormatTokens(input) { - return m.lang().longDateFormat[input] || input; - } - - while (i-- && localFormattingTokens.test(format)) { - format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); - } - - if (!formatFunctions[format]) { - formatFunctions[format] = makeFormatFunction(format); - } - - return formatFunctions[format](m); - } - - - /************************************ - Parsing - ************************************/ - - - // get the regex to find the next token - function getParseRegexForToken(token) { - switch (token) { - case 'DDDD': - return parseTokenThreeDigits; - case 'YYYY': - return parseTokenFourDigits; - case 'S': - case 'SS': - case 'SSS': - case 'DDD': - return parseTokenOneToThreeDigits; - case 'MMM': - case 'MMMM': - case 'dd': - case 'ddd': - case 'dddd': - case 'a': - case 'A': - return parseTokenWord; - case 'Z': - case 'ZZ': - return parseTokenTimezone; - case 'T': - return parseTokenT; - case 'MM': - case 'DD': - case 'YY': - case 'HH': - case 'hh': - case 'mm': - case 'ss': - case 'M': - case 'D': - case 'd': - case 'H': - case 'h': - case 'm': - case 's': - return parseTokenOneOrTwoDigits; - default : - return new RegExp(token.replace('\\', '')); - } - } - - // function to convert string input to date - function addTimeToArrayFromToken(token, input, datePartArray, config) { - var a, b; - - switch (token) { - // MONTH - case 'M' : // fall through to MM - case 'MM' : - datePartArray[1] = (input == null) ? 0 : ~~input - 1; - break; - case 'MMM' : // fall through to MMMM - case 'MMMM' : - for (a = 0; a < 12; a++) { - if (getLangDefinition().monthsParse[a].test(input)) { - datePartArray[1] = a; - b = true; - break; - } - } - // if we didn't find a month name, mark the date as invalid. - if (!b) { - datePartArray[8] = false; - } - break; - // DAY OF MONTH - case 'D' : // fall through to DDDD - case 'DD' : // fall through to DDDD - case 'DDD' : // fall through to DDDD - case 'DDDD' : - if (input != null) { - datePartArray[2] = ~~input; - } - break; - // YEAR - case 'YY' : - datePartArray[0] = ~~input + (~~input > 70 ? 1900 : 2000); - break; - case 'YYYY' : - datePartArray[0] = ~~Math.abs(input); - break; - // AM / PM - case 'a' : // fall through to A - case 'A' : - config.isPm = ((input + '').toLowerCase() === 'pm'); - break; - // 24 HOUR - case 'H' : // fall through to hh - case 'HH' : // fall through to hh - case 'h' : // fall through to hh - case 'hh' : - datePartArray[3] = ~~input; - break; - // MINUTE - case 'm' : // fall through to mm - case 'mm' : - datePartArray[4] = ~~input; - break; - // SECOND - case 's' : // fall through to ss - case 'ss' : - datePartArray[5] = ~~input; - break; - // MILLISECOND - case 'S' : - case 'SS' : - case 'SSS' : - datePartArray[6] = ~~ (('0.' + input) * 1000); - break; - // TIMEZONE - case 'Z' : // fall through to ZZ - case 'ZZ' : - config.isUTC = true; - a = (input + '').match(parseTimezoneChunker); - if (a && a[1]) { - config.tzh = ~~a[1]; - } - if (a && a[2]) { - config.tzm = ~~a[2]; - } - // reverse offsets - if (a && a[0] === '+') { - config.tzh = -config.tzh; - config.tzm = -config.tzm; - } - break; - } - - // if the input is null, the date is not valid - if (input == null) { - datePartArray[8] = false; - } - } - - // date from string and format string - function makeDateFromStringAndFormat(string, format) { - // This array is used to make a Date, either with `new Date` or `Date.UTC` - // We store some additional data on the array for validation - // datePartArray[7] is true if the Date was created with `Date.UTC` and false if created with `new Date` - // datePartArray[8] is false if the Date is invalid, and undefined if the validity is unknown. - var datePartArray = [0, 0, 1, 0, 0, 0, 0], - config = { - tzh : 0, // timezone hour offset - tzm : 0 // timezone minute offset - }, - tokens = format.match(formattingTokens), - i, parsedInput; - - for (i = 0; i < tokens.length; i++) { - parsedInput = (getParseRegexForToken(tokens[i]).exec(string) || [])[0]; - if (parsedInput) { - string = string.slice(string.indexOf(parsedInput) + parsedInput.length); - } - // don't parse if its not a known token - if (formatTokenFunctions[tokens[i]]) { - addTimeToArrayFromToken(tokens[i], parsedInput, datePartArray, config); - } - } - // handle am pm - if (config.isPm && datePartArray[3] < 12) { - datePartArray[3] += 12; - } - // if is 12 am, change hours to 0 - if (config.isPm === false && datePartArray[3] === 12) { - datePartArray[3] = 0; - } - // return - return dateFromArray(datePartArray, config.isUTC, config.tzh, config.tzm); - } - - // date from string and array of format strings - function makeDateFromStringAndArray(string, formats) { - var output, - inputParts = string.match(parseMultipleFormatChunker) || [], - formattedInputParts, - scoreToBeat = 99, - i, - currentDate, - currentScore; - for (i = 0; i < formats.length; i++) { - currentDate = makeDateFromStringAndFormat(string, formats[i]); - formattedInputParts = formatMoment(new Moment(currentDate), formats[i]).match(parseMultipleFormatChunker) || []; - currentScore = compareArrays(inputParts, formattedInputParts); - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - output = currentDate; - } - } - return output; - } - - // date from iso format - function makeDateFromString(string) { - var format = 'YYYY-MM-DDT', - i; - if (isoRegex.exec(string)) { - for (i = 0; i < 4; i++) { - if (isoTimes[i][1].exec(string)) { - format += isoTimes[i][0]; - break; - } - } - return parseTokenTimezone.exec(string) ? - makeDateFromStringAndFormat(string, format + ' Z') : - makeDateFromStringAndFormat(string, format); - } - return new Date(string); - } - - - /************************************ - Relative Time - ************************************/ - - - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, lang) { - var rt = lang.relativeTime[string]; - return (typeof rt === 'function') ? - rt(number || 1, !!withoutSuffix, string, isFuture) : - rt.replace(/%d/i, number || 1); - } - - function relativeTime(milliseconds, withoutSuffix, lang) { - var seconds = round(Math.abs(milliseconds) / 1000), - minutes = round(seconds / 60), - hours = round(minutes / 60), - days = round(hours / 24), - years = round(days / 365), - args = seconds < 45 && ['s', seconds] || - minutes === 1 && ['m'] || - minutes < 45 && ['mm', minutes] || - hours === 1 && ['h'] || - hours < 22 && ['hh', hours] || - days === 1 && ['d'] || - days <= 25 && ['dd', days] || - days <= 45 && ['M'] || - days < 345 && ['MM', round(days / 30)] || - years === 1 && ['y'] || ['yy', years]; - args[2] = withoutSuffix; - args[3] = milliseconds > 0; - args[4] = lang; - return substituteTimeAgo.apply({}, args); - } - - - /************************************ - Top Level Functions - ************************************/ - - - moment = function (input, format) { - if (input === null || input === '') { - return null; - } - var date, - matched; - // parse Moment object - if (moment.isMoment(input)) { - return new Moment(new Date(+input._d), input._isUTC, input._lang); - // parse string and format - } else if (format) { - if (isArray(format)) { - date = makeDateFromStringAndArray(input, format); - } else { - date = makeDateFromStringAndFormat(input, format); - } - // evaluate it as a JSON-encoded date - } else { - matched = aspNetJsonRegex.exec(input); - date = input === undefined ? new Date() : - matched ? new Date(+matched[1]) : - input instanceof Date ? input : - isArray(input) ? dateFromArray(input) : - typeof input === 'string' ? makeDateFromString(input) : - new Date(input); - } - - return new Moment(date); - }; - - // creating with utc - moment.utc = function (input, format) { - if (isArray(input)) { - return new Moment(dateFromArray(input, true), true); - } - // if we don't have a timezone, we need to add one to trigger parsing into utc - if (typeof input === 'string' && !parseTokenTimezone.exec(input)) { - input += ' +0000'; - if (format) { - format += ' Z'; - } - } - return moment(input, format).utc(); - }; - - // creating with unix timestamp (in seconds) - moment.unix = function (input) { - return moment(input * 1000); - }; - - // duration - moment.duration = function (input, key) { - var isDuration = moment.isDuration(input), - isNumber = (typeof input === 'number'), - duration = (isDuration ? input._data : (isNumber ? {} : input)), - ret; - - if (isNumber) { - if (key) { - duration[key] = input; - } else { - duration.milliseconds = input; - } - } - - ret = new Duration(duration); - - if (isDuration) { - ret._lang = input._lang; - } - - return ret; - }; - - // humanizeDuration - // This method is deprecated in favor of the new Duration object. Please - // see the moment.duration method. - moment.humanizeDuration = function (num, type, withSuffix) { - return moment.duration(num, type === true ? null : type).humanize(type === true ? true : withSuffix); - }; - - // version number - moment.version = VERSION; - - // default format - moment.defaultFormat = isoFormat; - - // This function will load languages and then set the global language. If - // no arguments are passed in, it will simply return the current global - // language key. - moment.lang = function (key, values) { - var i; - - if (!key) { - return currentLanguage; - } - if (values || !languages[key]) { - loadLang(key, values); - } - if (languages[key]) { - // deprecated, to get the language definition variables, use the - // moment.fn.lang method or the getLangDefinition function. - for (i = 0; i < langConfigProperties.length; i++) { - moment[langConfigProperties[i]] = languages[key][langConfigProperties[i]]; - } - moment.monthsParse = languages[key].monthsParse; - currentLanguage = key; - } - }; - - // returns language data - moment.langData = getLangDefinition; - - // compare moment object - moment.isMoment = function (obj) { - return obj instanceof Moment; - }; - - // for typechecking Duration objects - moment.isDuration = function (obj) { - return obj instanceof Duration; - }; - - // Set default language, other languages will inherit from English. - moment.lang('en', { - months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), - monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), - weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), - weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), - weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), - longDateFormat : { - LT : "h:mm A", - L : "MM/DD/YYYY", - LL : "MMMM D YYYY", - LLL : "MMMM D YYYY LT", - LLLL : "dddd, MMMM D YYYY LT" - }, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } - }, - calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[last] dddd [at] LT', - sameElse : 'L' - }, - relativeTime : { - future : "in %s", - past : "%s ago", - s : "a few seconds", - m : "a minute", - mm : "%d minutes", - h : "an hour", - hh : "%d hours", - d : "a day", - dd : "%d days", - M : "a month", - MM : "%d months", - y : "a year", - yy : "%d years" - }, - ordinal : function (number) { - var b = number % 10; - return (~~ (number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - } - }); - - - /************************************ - Moment Prototype - ************************************/ - - - moment.fn = Moment.prototype = { - - clone : function () { - return moment(this); - }, - - valueOf : function () { - return +this._d; - }, - - unix : function () { - return Math.floor(+this._d / 1000); - }, - - toString : function () { - return this._d.toString(); - }, - - toDate : function () { - return this._d; - }, - - toArray : function () { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hours(), - m.minutes(), - m.seconds(), - m.milliseconds(), - !!this._isUTC - ]; - }, - - isValid : function () { - if (this._a) { - // if the parser finds that the input is invalid, it sets - // the eighth item in the input array to false. - if (this._a[8] != null) { - return !!this._a[8]; - } - return !compareArrays(this._a, (this._a[7] ? moment.utc(this._a) : moment(this._a)).toArray()); - } - return !isNaN(this._d.getTime()); - }, - - utc : function () { - this._isUTC = true; - return this; - }, - - local : function () { - this._isUTC = false; - return this; - }, - - format : function (inputString) { - return formatMoment(this, inputString ? inputString : moment.defaultFormat); - }, - - add : function (input, val) { - var dur = val ? moment.duration(+val, input) : moment.duration(input); - addOrSubtractDurationFromMoment(this, dur, 1); - return this; - }, - - subtract : function (input, val) { - var dur = val ? moment.duration(+val, input) : moment.duration(input); - addOrSubtractDurationFromMoment(this, dur, -1); - return this; - }, - - diff : function (input, val, asFloat) { - var inputMoment = this._isUTC ? moment(input).utc() : moment(input).local(), - zoneDiff = (this.zone() - inputMoment.zone()) * 6e4, - diff = this._d - inputMoment._d - zoneDiff, - year = this.year() - inputMoment.year(), - month = this.month() - inputMoment.month(), - date = this.date() - inputMoment.date(), - output; - if (val === 'months') { - output = year * 12 + month + date / 30; - } else if (val === 'years') { - output = year + (month + date / 30) / 12; - } else { - output = val === 'seconds' ? diff / 1e3 : // 1000 - val === 'minutes' ? diff / 6e4 : // 1000 * 60 - val === 'hours' ? diff / 36e5 : // 1000 * 60 * 60 - val === 'days' ? diff / 864e5 : // 1000 * 60 * 60 * 24 - val === 'weeks' ? diff / 6048e5 : // 1000 * 60 * 60 * 24 * 7 - diff; - } - return asFloat ? output : round(output); - }, - - from : function (time, withoutSuffix) { - return moment.duration(this.diff(time)).lang(this._lang).humanize(!withoutSuffix); - }, - - fromNow : function (withoutSuffix) { - return this.from(moment(), withoutSuffix); - }, - - calendar : function () { - var diff = this.diff(moment().sod(), 'days', true), - calendar = this.lang().calendar, - allElse = calendar.sameElse, - format = diff < -6 ? allElse : - diff < -1 ? calendar.lastWeek : - diff < 0 ? calendar.lastDay : - diff < 1 ? calendar.sameDay : - diff < 2 ? calendar.nextDay : - diff < 7 ? calendar.nextWeek : allElse; - return this.format(typeof format === 'function' ? format.apply(this) : format); - }, - - isLeapYear : function () { - var year = this.year(); - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - }, - - isDST : function () { - return (this.zone() < moment([this.year()]).zone() || - this.zone() < moment([this.year(), 5]).zone()); - }, - - day : function (input) { - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - return input == null ? day : - this.add({ d : input - day }); - }, - - startOf: function (val) { - // the following switch intentionally omits break keywords - // to utilize falling through the cases. - switch (val.replace(/s$/, '')) { - case 'year': - this.month(0); - /* falls through */ - case 'month': - this.date(1); - /* falls through */ - case 'day': - this.hours(0); - /* falls through */ - case 'hour': - this.minutes(0); - /* falls through */ - case 'minute': - this.seconds(0); - /* falls through */ - case 'second': - this.milliseconds(0); - /* falls through */ - } - return this; - }, - - endOf: function (val) { - return this.startOf(val).add(val.replace(/s?$/, 's'), 1).subtract('ms', 1); - }, - - sod: function () { - return this.clone().startOf('day'); - }, - - eod: function () { - // end of day = start of day plus 1 day, minus 1 millisecond - return this.clone().endOf('day'); - }, - - zone : function () { - return this._isUTC ? 0 : this._d.getTimezoneOffset(); - }, - - daysInMonth : function () { - return moment.utc([this.year(), this.month() + 1, 0]).date(); - }, - - // If passed a language key, it will set the language for this - // instance. Otherwise, it will return the language configuration - // variables for this instance. - lang : function (lang) { - if (lang === undefined) { - return getLangDefinition(this); - } else { - this._lang = lang; - return this; - } - } - }; - - // helper for adding shortcuts - function makeGetterAndSetter(name, key) { - moment.fn[name] = function (input) { - var utc = this._isUTC ? 'UTC' : ''; - if (input != null) { - this._d['set' + utc + key](input); - return this; - } else { - return this._d['get' + utc + key](); - } - }; - } - - // loop through and add shortcuts (Month, Date, Hours, Minutes, Seconds, Milliseconds) - for (i = 0; i < proxyGettersAndSetters.length; i ++) { - makeGetterAndSetter(proxyGettersAndSetters[i].toLowerCase(), proxyGettersAndSetters[i]); - } - - // add shortcut for year (uses different syntax than the getter/setter 'year' == 'FullYear') - makeGetterAndSetter('year', 'FullYear'); - - - /************************************ - Duration Prototype - ************************************/ - - - moment.duration.fn = Duration.prototype = { - weeks : function () { - return absRound(this.days() / 7); - }, - - valueOf : function () { - return this._milliseconds + - this._days * 864e5 + - this._months * 2592e6; - }, - - humanize : function (withSuffix) { - var difference = +this, - rel = this.lang().relativeTime, - output = relativeTime(difference, !withSuffix, this.lang()), - fromNow = difference <= 0 ? rel.past : rel.future; - - if (withSuffix) { - if (typeof fromNow === 'function') { - output = fromNow(output); - } else { - output = fromNow.replace(/%s/i, output); - } - } - - return output; - }, - - lang : moment.fn.lang - }; - - function makeDurationGetter(name) { - moment.duration.fn[name] = function () { - return this._data[name]; - }; - } - - function makeDurationAsGetter(name, factor) { - moment.duration.fn['as' + name] = function () { - return +this / factor; - }; - } - - for (i in unitMillisecondFactors) { - if (unitMillisecondFactors.hasOwnProperty(i)) { - makeDurationAsGetter(i, unitMillisecondFactors[i]); - makeDurationGetter(i.toLowerCase()); - } - } - - makeDurationAsGetter('Weeks', 6048e5); - - - /************************************ - Exposing Moment - ************************************/ - - - // CommonJS module is defined - if (hasModule) { - module.exports = moment; - } - /*global ender:false */ - if (typeof ender === 'undefined') { - // here, `this` means `window` in the browser, or `global` on the server - // add `moment` as a global object via a string identifier, - // for Closure Compiler "advanced" mode - this['moment'] = moment; - } - /*global define:false */ - if (typeof define === "function" && define.amd) { - define("moment", [], function () { - return moment; - }); - } -}).call(this); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shAutoloader.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shAutoloader.js deleted file mode 100644 index 4e29bddecb..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shAutoloader.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g, - css: 'color2' }, - - { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g, - css: 'keyword' }, - - { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals - css: 'keyword' }, - - { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g, - css: 'color3' }, - - { regex: /\b(?:adding folder items to|after receiving|choose( ((remote )?application|color|folder|from list|URL))?|clipboard info|set the clipboard to|(the )?clipboard|entire contents|display(ing| (alert|dialog|mode))?|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|quoted form|return(ed)?|second(?! item)(s)?|list (disks|folder)|text item(s| delimiters)?|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|using( delimiters)?|starting at|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor)|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|(do( shell)?|load|run|store) script|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|POSIX (file|path)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|group|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g, - css: 'color3' }, - - { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'color3' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, - { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['applescript']; - - SyntaxHighlighter.brushes.AppleScript = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushBash.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushBash.js deleted file mode 100644 index 8c296969ff..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushBash.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le'; - var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + - 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + - 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + - 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + - 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + - 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + - 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + - 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + - 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + - 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + - 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + - 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + - 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + - 'vi watch wc whereis which who whoami Wget xargs yes' - ; - - this.regexList = [ - { regex: /^#!.*$/gm, css: 'preprocessor bold' }, - { regex: /\/[\w-\/]+/gm, css: 'plain' }, - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands - ]; - } - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['bash', 'shell']; - - SyntaxHighlighter.brushes.Bash = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCSharp.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCSharp.js deleted file mode 100644 index 079214efe1..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCSharp.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'abstract as base bool break byte case catch char checked class const ' + - 'continue decimal default delegate do double else enum event explicit ' + - 'extern false finally fixed float for foreach get goto if implicit in int ' + - 'interface internal is lock long namespace new null object operator out ' + - 'override params private protected public readonly ref return sbyte sealed set ' + - 'short sizeof stackalloc static string struct switch this throw true try ' + - 'typeof uint ulong unchecked unsafe ushort using virtual void while'; - - function fixComments(match, regexInfo) - { - var css = (match[0].indexOf("///") == 0) - ? 'color1' - : 'comments' - ; - - return [new SyntaxHighlighter.Match(match[0], match.index, css)]; - } - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword - { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial' - { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield' - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['c#', 'c-sharp', 'csharp']; - - SyntaxHighlighter.brushes.CSharp = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); - diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushColdFusion.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushColdFusion.js deleted file mode 100644 index 627dbb9b76..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushColdFusion.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Jen - // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus - - var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' + - 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' + - 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' + - 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' + - 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' + - 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' + - 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' + - 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' + - 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' + - 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' + - 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' + - 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' + - 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' + - 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' + - 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' + - 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' + - 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' + - 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' + - 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' + - 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' + - 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' + - 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' + - 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' + - 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' + - 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' + - 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' + - 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' + - 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' + - 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' + - 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' + - 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' + - 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' + - 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' + - 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' + - 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' + - 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' + - 'XmlValidate Year YesNoFormat'; - - var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' + - 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' + - 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' + - 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' + - 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' + - 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' + - 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' + - 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' + - 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' + - 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' + - 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' + - 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' + - 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' + - 'cfwindow cfxml cfzip cfzipparam'; - - var operators = 'all and any between cross in join like not null or outer some'; - - this.regexList = [ - { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments - { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions - { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; - } - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['coldfusion','cf']; - - SyntaxHighlighter.brushes.ColdFusion = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCpp.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCpp.js deleted file mode 100644 index 198f2ed457..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCpp.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Copyright 2006 Shin, YoungJin - - var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' + - 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' + - 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' + - 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' + - 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' + - 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' + - 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' + - 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' + - 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' + - 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' + - 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' + - 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' + - 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' + - 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' + - 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' + - 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' + - 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + - 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' + - 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' + - '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' + - 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' + - 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' + - 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' + - 'va_list wchar_t wctrans_t wctype_t wint_t signed'; - - var keywords = 'break case catch class const __finally __exception __try ' + - 'const_cast continue private public protected __declspec ' + - 'default delete deprecated dllexport dllimport do dynamic_cast ' + - 'else enum explicit extern if for friend goto inline ' + - 'mutable naked namespace new noinline noreturn nothrow ' + - 'register reinterpret_cast return selectany ' + - 'sizeof static static_cast struct switch template this ' + - 'thread throw true false try typedef typeid typename union ' + - 'using uuid virtual void volatile whcar_t while'; - - var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + - 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + - 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' + - 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + - 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' + - 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' + - 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' + - 'fwrite getc getchar gets perror printf putc putchar puts remove ' + - 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' + - 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' + - 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' + - 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' + - 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' + - 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' + - 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' + - 'clock ctime difftime gmtime localtime mktime strftime time'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /^ *#.*/gm, css: 'preprocessor' }, - { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' }, - { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['cpp', 'hpp', 'hxx', 'cxx', 'hh', 'cc', 'c', 'h']; - - SyntaxHighlighter.brushes.Cpp = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCss.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCss.js deleted file mode 100644 index 4297a9a648..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushCss.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - function getKeywordsCSS(str) - { - return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; - }; - - function getValuesCSS(str) - { - return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; - }; - - var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + - 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + - 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + - 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + - 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + - 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + - 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + - 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + - 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + - 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + - 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + - 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + - 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + - 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; - - var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ - 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ - 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+ - 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ - 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ - 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ - 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ - 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ - 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ - 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ - 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ - 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ - 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ - 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow'; - - var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors - { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes - { regex: /!important/g, css: 'color3' }, // !important - { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values - { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts - ]; - - this.forHtmlScript({ - left: /(<|<)\s*style.*?(>|>)/gi, - right: /(<|<)\/\s*style\s*(>|>)/gi - }); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['css']; - - SyntaxHighlighter.brushes.CSS = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDelphi.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDelphi.js deleted file mode 100644 index e1060d4468..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDelphi.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' + - 'case char class comp const constructor currency destructor div do double ' + - 'downto else end except exports extended false file finalization finally ' + - 'for function goto if implementation in inherited int64 initialization ' + - 'integer interface is label library longint longword mod nil not object ' + - 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' + - 'pint64 pointer private procedure program property pshortstring pstring ' + - 'pvariant pwidechar pwidestring protected public published raise real real48 ' + - 'record repeat set shl shortint shortstring shr single smallint string then ' + - 'threadvar to true try type unit until uses val var varirnt while widechar ' + - 'widestring with word write writeln xor'; - - this.regexList = [ - { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) - { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags - { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 - { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['delphi', 'pascal', 'pas']; - - SyntaxHighlighter.brushes.Delphi = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDiff.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDiff.js deleted file mode 100644 index e9b14fc580..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushDiff.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - this.regexList = [ - { regex: /^\+\+\+.*$/gm, css: 'color2' }, - { regex: /^\-\-\-.*$/gm, css: 'color2' }, - { regex: /^\s.*$/gm, css: 'color1' }, - { regex: /^@@.*@@$/gm, css: 'variable' }, - { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, - { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['diff', 'patch']; - - SyntaxHighlighter.brushes.Diff = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushErlang.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushErlang.js deleted file mode 100644 index 6ba7d9da87..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushErlang.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Jean-Lou Dupont - // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html - - // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5 - var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+ - 'case catch cond div end fun if let not of or orelse '+ - 'query receive rem try when xor'+ - // additional - ' module export import define'; - - this.regexList = [ - { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' }, - { regex: new RegExp("\\%.+", 'gm'), css: 'comments' }, - { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' }, - { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' }, - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['erl', 'erlang']; - - SyntaxHighlighter.brushes.Erland = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushGroovy.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushGroovy.js deleted file mode 100644 index 6ec5c18521..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushGroovy.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Andres Almiray - // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter - - var keywords = 'as assert break case catch class continue def default do else extends finally ' + - 'if in implements import instanceof interface new package property return switch ' + - 'throw throws try while public protected private static'; - var types = 'void boolean byte char short int long float double'; - var constants = 'null'; - var methods = 'allProperties count get size '+ - 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' + - 'findIndexOf grep inject max min reverseEach sort ' + - 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' + - 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' + - 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' + - 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' + - 'transformChar transformLine withOutputStream withPrintWriter withStream ' + - 'withStreams withWriter withWriterAppend write writeLine '+ - 'dump inspect invokeMethod print println step times upto use waitForOrKill '+ - 'getText'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /""".*"""/g, css: 'string' }, // GStrings - { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword - { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type - { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants - { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - } - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['groovy']; - - SyntaxHighlighter.brushes.Groovy = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJScript.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJScript.js deleted file mode 100644 index ff98daba16..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJScript.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'break case catch continue ' + - 'default delete do else false ' + - 'for function if in instanceof ' + - 'new null return super switch ' + - 'this throw true try typeof var while with' - ; - - var r = SyntaxHighlighter.regexLib; - - this.regexList = [ - { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings - { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings - { regex: r.singleLineCComments, css: 'comments' }, // one line comments - { regex: r.multiLineCComments, css: 'comments' }, // multiline comments - { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords - ]; - - this.forHtmlScript(r.scriptScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['js', 'jscript', 'javascript']; - - SyntaxHighlighter.brushes.JScript = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJava.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJava.js deleted file mode 100644 index 372557a1df..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJava.js +++ /dev/null @@ -1,41 +0,0 @@ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'abstract assert boolean break byte case catch char class const ' + - 'continue default do double else enum extends ' + - 'false final finally float for goto if implements import ' + - 'instanceof int interface long native new null ' + - 'package private protected public return ' + - 'short static strictfp super switch synchronized this throw throws true ' + - 'transient try void volatile while'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - // { regex: /\/\*\*?[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers - { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno - { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword - ]; - - this.forHtmlScript({ - left : /(<|<)%[@!=]?/g, - right : /%(>|>)/g - }); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['java','idl']; - - SyntaxHighlighter.brushes.Java = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJavaFX.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJavaFX.js deleted file mode 100644 index 1a150a6ad3..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushJavaFX.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Patrick Webster - // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html - var datatypes = 'Boolean Byte Character Double Duration ' - + 'Float Integer Long Number Short String Void' - ; - - var keywords = 'abstract after and as assert at before bind bound break catch class ' - + 'continue def delete else exclusive extends false finally first for from ' - + 'function if import in indexof init insert instanceof into inverse last ' - + 'lazy mixin mod nativearray new not null on or override package postinit ' - + 'protected public public-init public-read replace return reverse sizeof ' - + 'step super then this throw true try tween typeof var where while with ' - + 'attribute let private readonly static trigger' - ; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers - { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['jfx', 'javafx']; - - SyntaxHighlighter.brushes.JavaFX = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPerl.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPerl.js deleted file mode 100644 index d94a2e0ec5..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPerl.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by David Simmons-Duffin and Marty Kube - - var funcs = - 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + - 'chroot close closedir connect cos crypt defined delete each endgrent ' + - 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + - 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + - 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + - 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + - 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + - 'getservbyname getservbyport getservent getsockname getsockopt glob ' + - 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + - 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + - 'oct open opendir ord pack pipe pop pos print printf prototype push ' + - 'quotemeta rand read readdir readline readlink readpipe recv rename ' + - 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + - 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + - 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + - 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + - 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + - 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + - 'undef unlink unpack unshift utime values vec wait waitpid warn write'; - - var keywords = - 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + - 'for foreach goto if import last local my next no our package redo ref ' + - 'require return sub tie tied unless untie until use wantarray while'; - - this.regexList = [ - { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, - { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, - { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); - } - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['perl', 'Perl', 'pl']; - - SyntaxHighlighter.brushes.Perl = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPhp.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPhp.js deleted file mode 100644 index 95e6e4325b..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPhp.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var funcs = 'abs acos acosh addcslashes addslashes ' + - 'array_change_key_case array_chunk array_combine array_count_values array_diff '+ - 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+ - 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+ - 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+ - 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+ - 'array_push array_rand array_reduce array_reverse array_search array_shift '+ - 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+ - 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ - 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ - 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ - 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+ - 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+ - 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+ - 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+ - 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+ - 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+ - 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+ - 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+ - 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+ - 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+ - 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+ - 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ - 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ - 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ - 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ - 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ - 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ - 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+ - 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+ - 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+ - 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+ - 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+ - 'strtoupper strtr strval substr substr_compare'; - - var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' + - 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' + - 'function include include_once global goto if implements interface instanceof namespace new ' + - 'old_function or private protected public return require require_once static switch ' + - 'throw try use var while xor '; - - var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\$\w+/g, css: 'variable' }, // variables - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions - { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['php']; - - SyntaxHighlighter.brushes.Php = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPlain.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPlain.js deleted file mode 100644 index 9f7d9e90c3..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPlain.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['text', 'plain']; - - SyntaxHighlighter.brushes.Plain = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPowerShell.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPowerShell.js deleted file mode 100644 index 0be1752968..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPowerShell.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributes by B.v.Zanten, Getronics - // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro - - var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' + - 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' + - 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' + - 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' + - 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' + - 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' + - 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' + - 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' + - 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' + - 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' + - 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' + - 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' + - 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' + - 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + - 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + - 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' + - 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' + - 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' + - 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' + - 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' + - 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning'; - var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' + - 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' + - 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' + - 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' + - 'spps spsv sv tee cat cd cp h history kill lp ls ' + - 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' + - 'erase rd ren type % \\?'; - - this.regexList = [ - { regex: /#.*$/gm, css: 'comments' }, // one line comments - { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1 - { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, - { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['powershell', 'ps']; - - SyntaxHighlighter.brushes.PowerShell = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPython.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPython.js deleted file mode 100644 index ce77462975..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushPython.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Gheorghe Milas and Ahmad Sherif - - var keywords = 'and assert break class continue def del elif else ' + - 'except exec finally for from global if import in is ' + - 'lambda not or pass print raise return try yield while'; - - var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' + - 'chr classmethod cmp coerce compile complex delattr dict dir ' + - 'divmod enumerate eval execfile file filter float format frozenset ' + - 'getattr globals hasattr hash help hex id input int intern ' + - 'isinstance issubclass iter len list locals long map max min next ' + - 'object oct open ord pow print property range raw_input reduce ' + - 'reload repr reversed round set setattr slice sorted staticmethod ' + - 'str sum super tuple type type unichr unicode vars xrange zip'; - - var special = 'None True False self cls class_'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, - { regex: /^\s*@\w+/gm, css: 'decorator' }, - { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, - { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, - { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, - { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, - { regex: /\b\d+\.?\w*/g, css: 'value' }, - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, - { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['py', 'python']; - - SyntaxHighlighter.brushes.Python = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushRuby.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushRuby.js deleted file mode 100644 index ff82130a7a..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushRuby.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Erik Peterson. - - var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + - 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + - 'self super then throw true undef unless until when while yield'; - - var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + - 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + - 'ThreadGroup Thread Time TrueClass'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants - { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols - { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['ruby', 'rails', 'ror', 'rb']; - - SyntaxHighlighter.brushes.Ruby = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSass.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSass.js deleted file mode 100644 index aa04da0996..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSass.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - function getKeywordsCSS(str) - { - return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; - }; - - function getValuesCSS(str) - { - return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; - }; - - var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + - 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + - 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + - 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + - 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + - 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + - 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + - 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + - 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + - 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + - 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + - 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + - 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + - 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; - - var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ - 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ - 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+ - 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ - 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ - 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ - 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ - 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ - 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ - 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ - 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ - 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ - 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ - 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow'; - - var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; - - var statements = '!important !default'; - var preprocessor = '@import @extend @debug @warn @if @for @while @mixin @include'; - - var r = SyntaxHighlighter.regexLib; - - this.regexList = [ - { regex: r.multiLineCComments, css: 'comments' }, // multiline comments - { regex: r.singleLineCComments, css: 'comments' }, // singleline comments - { regex: r.doubleQuotedString, css: 'string' }, // double quoted strings - { regex: r.singleQuotedString, css: 'string' }, // single quoted strings - { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors - { regex: /\b(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)\b/g, css: 'value' }, // sizes - { regex: /\$\w+/g, css: 'variable' }, // variables - { regex: new RegExp(this.getKeywords(statements), 'g'), css: 'color3' }, // statements - { regex: new RegExp(this.getKeywords(preprocessor), 'g'), css: 'preprocessor' }, // preprocessor - { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values - { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['sass', 'scss']; - - SyntaxHighlighter.brushes.Sass = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushScala.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushScala.js deleted file mode 100644 index 4b0b6f04d2..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushScala.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - // Contributed by Yegor Jbanov and David Bernard. - - var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + - 'override try lazy for var catch throw type extends class while with new final yield abstract ' + - 'else do if return protected private this package false'; - - var keyops = '[_:=><%#@]+'; - - this.regexList = [ - { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments - { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings - { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string - { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings - { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords - { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword - ]; - } - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['scala']; - - SyntaxHighlighter.brushes.Scala = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSql.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSql.js deleted file mode 100644 index 5c2cd8806f..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushSql.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + - 'current_user day isnull left lower month nullif replace right ' + - 'session_user space substring sum system_user upper user year'; - - var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + - 'binary bit by cascade char character check checkpoint close collate ' + - 'column commit committed connect connection constraint contains continue ' + - 'create cube current current_date current_time cursor database date ' + - 'deallocate dec decimal declare default delete desc distinct double drop ' + - 'dynamic else end end-exec escape except exec execute false fetch first ' + - 'float for force foreign forward free from full function global goto grant ' + - 'group grouping having hour ignore index inner insensitive insert instead ' + - 'int integer intersect into is isolation key last level load local max min ' + - 'minute modify move name national nchar next no numeric of off on only ' + - 'open option order out output partial password precision prepare primary ' + - 'prior privileges procedure public read real references relative repeatable ' + - 'restrict return returns revoke rollback rollup rows rule schema scroll ' + - 'second section select sequence serializable set size smallint static ' + - 'statistics table temp temporary then time timestamp to top transaction ' + - 'translation trigger true truncate uncommitted union unique update values ' + - 'varchar varying view when where with work'; - - var operators = 'all and any between cross in join like not null or outer some'; - - this.regexList = [ - { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments - { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings - { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings - { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions - { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such - { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['sql']; - - SyntaxHighlighter.brushes.Sql = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); - diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushVb.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushVb.js deleted file mode 100644 index be845dc0b3..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushVb.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + - 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + - 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + - 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + - 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + - 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + - 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + - 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + - 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + - 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + - 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + - 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + - 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + - 'Variant When While With WithEvents WriteOnly Xor'; - - this.regexList = [ - { regex: /'.*$/gm, css: 'comments' }, // one line comments - { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings - { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion - { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword - ]; - - this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['vb', 'vbnet']; - - SyntaxHighlighter.brushes.Vb = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushXml.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushXml.js deleted file mode 100644 index 69d9fd0b1f..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shBrushXml.js +++ /dev/null @@ -1,69 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -;(function() -{ - // CommonJS - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - - function Brush() - { - function process(match, regexInfo) - { - var constructor = SyntaxHighlighter.Match, - code = match[0], - tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), - result = [] - ; - - if (match.attributes != null) - { - var attributes, - regex = new XRegExp('(? [\\w:\\-\\.]+)' + - '\\s*=\\s*' + - '(? ".*?"|\'.*?\'|\\w+)', - 'xg'); - - while ((attributes = regex.exec(code)) != null) - { - result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); - result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); - } - } - - if (tag != null) - result.push( - new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') - ); - - return result; - } - - this.regexList = [ - { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // - { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // - { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } - ]; - }; - - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; - - SyntaxHighlighter.brushes.Xml = Brush; - - // CommonJS - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shCore.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shCore.js deleted file mode 100644 index b47b645472..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shCore.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 B(f,e,a,b){K c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N}}}}5v(i){1S i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a-1},3d:6(g){e+=g}};c1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K b=1;be.P&&J.12--}H e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b,c;I(a&&1j e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K d=0;dd.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("});M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/\\\\k<([\\w$]+)>/,6(f){K e=p(J.19,f[1]);H e>-1?"\\\\"+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H f[0]==="[]"?"\\\\b\\\\B":"[\\\\s\\\\S]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H J.2K("x")});M.1h(/\\./,6(){H"[\\\\s\\\\S]"},M.1B,6(){H J.2K("s")})})();1j 2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H a;O(a=0;d&&a\'+c+""});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.Pb.P)H 1;Y I(a.Lb.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'\'+c+""+d})}6 z(){O(K a=1E.36("1k"),b=[],c=0;c<1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v<3B 1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;">1v3v 3.0.76 (72 73 3x)1Z://3u.2w/1v70 17 6U 71.6T 6X-3x 6Y 6D.6t 61 60 J 1k, 5Z 5R 5V <2R/>5U 5T 5S!\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^\\\\"\\n]|\\\\.)*"/g,6o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,6p:1f M(\'"([^\\\\\\\\"]|\\\\\\\\.)*"\',"3z"),6s:1f M("\'([^\\\\\\\\\']|\\\\\\\\.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'\',d=e.16.2x,h=d.2X,g=0;g";H c},2o:6(a,b,c){H\'<2W>\'+c+""},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K d=6(h){H(h=15(h+"6f(\\\\w+)").X(c))?h[1]:N}("6g");b&&d&&e.16.2x[d].2B(b);a.3N()},2x:{2X:["21","2P"],21:{1H:6(a){I(a.V("2l")!=R)H"";K b=a.V("1t");H e.16.2o(a,"21",b?b:e.13.1x.21)},2B:6(a){a=1E.6j(t(a.1c));a.1l=a.1l.Q("47","")}},2P:{2B:6(){K a="68=0";a+=", 18="+(31.30-33)/2+", 32="+(31.2Z-2Y)/2+", 30=33, 2Z=2Y";a=a.Q(/^,/,"");a=1P.6Z("","38",a);a.2C();K b=a.1E;b.6W(e.13.1x.37);b.6V();a.2C()}}}},35:6(a,b){K c;I(b)c=[b];Y{c=1E.36(e.13.34);O(K d=[],h=0;h(.*?))\\\\]$"),s=1f M("(?<27>[\\\\w-]+)\\\\s*:\\\\s*(?<1T>[\\\\w-%#]+|\\\\[.*?\\\\]|\\".*?\\"|\'.*?\')\\\\s*;?","g");(j=s.X(k))!=N;){K o=j.1T.Q(/^[\'"]|[\'"]$/g,"");I(o!=N&&m.1A(o)){o=m.X(o);o=o.2V.L>0?o.2V.1e(/\\s*,\\s*/):[]}l[j.27]=o}g={1F:g,1n:C(i,l)};g.1n.1D!=N&&d.U(g)}H d},1M:6(a,b){K c=J.35(a,b),d=N,h=e.13;I(c.L!==0)O(K g=0;g")==o-3){m=m.4h(0,o-3);s=R}l=s?m:l}I((i.1t||"")!="")k.1t=i.1t;k.1D=j;d.2Q(k);b=d.2F(l);I((i.1c||"")!="")b.1c=i.1c;i.2G.74(b,i)}}},2E:6(a){w(1P,"4k",6(){e.1M(a)})}};e.2E=e.2E;e.1M=e.1M;e.2L=6(a,b,c){J.1T=a;J.P=b;J.L=a.L;J.23=c;J.1V=N};e.2L.Z.1q=6(){H J.1T};e.4l=6(a){6 b(j,l){O(K m=0;md)1N;Y I(g.P==c.P&&g.L>c.L)a[b]=N;Y I(g.P>=c.P&&g.P\'+c+""},3Q:6(a,b){K c="",d=a.1e("\\n").L,h=2u(J.V("2i-1s")),g=J.V("2z-1s-2t");I(g==R)g=(h+d-1).1q().L;Y I(3R(g)==R)g=0;O(K i=0;i\'+j+"":"")+i)}H a},4f:6(a){H a?"<4a>"+a+"":""},4b:6(a,b){6 c(l){H(l=l?l.1V||g:g)?l+" ":""}O(K d=0,h="",g=J.V("1D",""),i=0;i|&1y;2R\\s*\\/?&1G;/2T;I(e.13.46==R)b=b.Q(h,"\\n");I(e.13.44==R)b=b.Q(h,"");b=b.1e("\\n");h=/^\\s*/;g=4Q;O(K i=0;i0;i++){K k=b[i];I(x(k).L!=0){k=h.X(k);I(k==N){a=a;1N a}g=1Q.4q(k[0].L,g)}}I(g>0)O(i=0;i\'+(J.V("16")?e.16.1H(J):"")+\'<3Z 5z="0" 5H="0" 5J="0">\'+J.4f(J.V("1t"))+"<3T><3P>"+(1u?\'<2d 1g="1u">\'+J.3Q(a)+"":"")+\'<2d 1g="17">\'+b+""},2F:6(a){I(a===N)a="";J.17=a;K b=J.3Y("T");b.3X=J.1H(a);J.V("16")&&w(p(b,".16"),"5c",e.16.2b);J.V("3V-17")&&w(p(b,".17"),"56",f);H b},2Q:6(a){J.1c=""+1Q.5d(1Q.5n()*5k).1q();e.1Y.2A[t(J.1c)]=J;J.1n=C(e.2v,a||{});I(J.V("2k")==R)J.1n.16=J.1n.1u=11},5j:6(a){a=a.Q(/^\\s+|\\s+$/g,"").Q(/\\s+/g,"|");H"\\\\b(?:"+a+")\\\\b"},5f:6(a){J.28={18:{1I:a.18,23:"1k"},1b:{1I:a.1b,23:"1k"},17:1f M("(?<18>"+a.18.1m+")(?<17>.*?)(?<1b>"+a.1b.1m+")","5o")}}};H e}();1j 2e!="1d"&&(2e.1v=1v);',62,441,'||||||function|||||||||||||||||||||||||||||||||||||return|if|this|var|length|XRegExp|null|for|index|replace|true||div|push|getParam|call|exec|else|prototype||false|lastIndex|config|arguments|RegExp|toolbar|code|left|captureNames|slice|right|id|undefined|split|new|class|addToken|indexOf|typeof|script|className|source|params|substr|apply|toString|String|line|title|gutter|SyntaxHighlighter|_xregexp|strings|lt|html|test|OUTSIDE_CLASS|match|brush|document|target|gt|getHtml|regex|global|join|style|highlight|break|concat|window|Math|isRegExp|throw|value|brushes|brushName|space|alert|vars|http|syntaxhighlighter|expandSource|size|css|case|font|Fa|name|htmlScript|dA|can|handler|gm|td|exports|color|in|href|first|discoveredBrushes|light|collapse|object|cache|getButtonHtml|trigger|pattern|getLineHtml|nbsp|numbers|parseInt|defaults|com|items|www|pad|highlighters|execute|focus|func|all|getDiv|parentNode|navigator|INSIDE_CLASS|regexList|hasFlag|Match|useScriptTags|hasNamedCapture|text|help|init|br|input|gi|Error|values|span|list|250|height|width|screen|top|500|tagName|findElements|getElementsByTagName|aboutDialog|_blank|appendChild|charAt|Array|copyAsGlobal|setFlag|highlighter_|string|attachEvent|nodeName|floor|backref|output|the|TypeError|sticky|Za|iterate|freezeTokens|scope|type|textarea|alexgorbatchev|version|margin|2010|005896|gs|regexLib|body|center|align|noBrush|require|childNodes|DTD|xhtml1|head|org|w3|url|preventDefault|container|tr|getLineNumbersHtml|isNaN|userAgent|tbody|isLineHighlighted|quick|void|innerHTML|create|table|links|auto|smart|tab|stripBrs|tabs|bloggerMode|collapsed|plain|getCodeLinesHtml|caption|getMatchesHtml|findMatches|figureOutLineNumbers|removeNestedMatches|getTitleHtml|brushNotHtmlScript|substring|createElement|Highlighter|load|HtmlScript|Brush|pre|expand|multiline|min|Can|ignoreCase|find|blur|extended|toLowerCase|aliases|addEventListener|innerText|textContent|wasn|select|createTextNode|removeChild|option|same|frame|xmlns|dtd|twice|1999|equiv|meta|htmlscript|transitional|1E3|expected|PUBLIC|DOCTYPE|on|W3C|XHTML|TR|EN|Transitional||configured|srcElement|Object|after|run|dblclick|matchChain|valueOf|constructor|default|switch|click|round|execAt|forHtmlScript|token|gimy|functions|getKeywords|1E6|escape|within|random|sgi|another|finally|supply|MSIE|ie|toUpperCase|catch|returnValue|definition|event|border|imsx|constructing|one|Infinity|from|when|Content|cellpadding|flags|cellspacing|try|xhtml|Type|spaces|2930402|hosted_button_id|lastIndexOf|donate|active|development|keep|to|xclick|_s|Xml|please|like|you|paypal|cgi|cmd|webscr|bin|highlighted|scrollbars|aspScriptTags|phpScriptTags|sort|max|scriptScriptTags|toolbar_item|_|command|command_|number|getElementById|doubleQuotedString|singleLinePerlComments|singleLineCComments|multiLineCComments|singleQuotedString|multiLineDoubleQuotedString|xmlComments|alt|multiLineSingleQuotedString|If|https|1em|000|fff|background|5em|xx|bottom|75em|Gorbatchev|large|serif|CDATA|continue|utf|charset|content|About|family|sans|Helvetica|Arial|Geneva|3em|nogutter|Copyright|syntax|close|write|2004|Alex|open|JavaScript|highlighter|July|02|replaceChild|offset|83'.split('|'),0,{})) diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shLegacy.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shLegacy.js deleted file mode 100644 index 6d9fd4d19f..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/scripts/shLegacy.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?\\\\w+)\\\\]$","U"),i=1,p=0;p tags to the document body - for (i = 0; i < elements.length; i++) - { - var url = brushes[elements[i].params.brush]; - - if (!url) - continue; - - scripts[url] = false; - loadScript(url); - } - - function loadScript(url) - { - var script = document.createElement('script'), - done = false - ; - - script.src = url; - script.type = 'text/javascript'; - script.language = 'javascript'; - script.onload = script.onreadystatechange = function() - { - if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) - { - done = true; - scripts[url] = true; - checkAll(); - - // Handle memory leak in IE - script.onload = script.onreadystatechange = null; - script.parentNode.removeChild(script); - } - }; - - // sync way of adding script tags to the page - document.body.appendChild(script); - }; - - function checkAll() - { - for(var url in scripts) - if (scripts[url] == false) - return; - - if (allCalled) - SyntaxHighlighter.highlight(allParams); - }; -}; - -})(); diff --git a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shCore.js b/scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shCore.js deleted file mode 100644 index 4214763d24..0000000000 --- a/scm-webapp/src/main/webapp/resources/syntaxhighlighter/src/shCore.js +++ /dev/null @@ -1,1721 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -// -// Begin anonymous function. This is used to contain local scope variables without polutting global scope. -// -var SyntaxHighlighter = function() { - -// CommonJS -if (typeof(require) != 'undefined' && typeof(XRegExp) == 'undefined') -{ - XRegExp = require('XRegExp').XRegExp; -} - -// Shortcut object which will be assigned to the SyntaxHighlighter variable. -// This is a shorthand for local reference in order to avoid long namespace -// references to SyntaxHighlighter.whatever... -var sh = { - defaults : { - /** Additional CSS class names to be added to highlighter elements. */ - 'class-name' : '', - - /** First line number. */ - 'first-line' : 1, - - /** - * Pads line numbers. Possible values are: - * - * false - don't pad line numbers. - * true - automaticaly pad numbers with minimum required number of leading zeroes. - * [int] - length up to which pad line numbers. - */ - 'pad-line-numbers' : false, - - /** Lines to highlight. */ - 'highlight' : null, - - /** Title to be displayed above the code block. */ - 'title' : null, - - /** Enables or disables smart tabs. */ - 'smart-tabs' : true, - - /** Gets or sets tab size. */ - 'tab-size' : 4, - - /** Enables or disables gutter. */ - 'gutter' : true, - - /** Enables or disables toolbar. */ - 'toolbar' : true, - - /** Enables quick code copy and paste from double click. */ - 'quick-code' : true, - - /** Forces code view to be collapsed. */ - 'collapse' : false, - - /** Enables or disables automatic links. */ - 'auto-links' : true, - - /** Gets or sets light mode. Equavalent to turning off gutter and toolbar. */ - 'light' : false, - - 'html-script' : false - }, - - config : { - space : ' ', - - /** Enables use of tags. */ - scriptScriptTags : { left: /(<|<)\s*script.*?(>|>)/gi, right: /(<|<)\/\s*script\s*(>|>)/gi } - }, - - toolbar: { - /** - * Generates HTML markup for the toolbar. - * @param {Highlighter} highlighter Highlighter instance. - * @return {String} Returns HTML markup. - */ - getHtml: function(highlighter) - { - var html = '
    ', - items = sh.toolbar.items, - list = items.list - ; - - function defaultGetHtml(highlighter, name) - { - return sh.toolbar.getButtonHtml(highlighter, name, sh.config.strings[name]); - }; - - for (var i = 0; i < list.length; i++) - html += (items[list[i]].getHtml || defaultGetHtml)(highlighter, list[i]); - - html += '
    '; - - return html; - }, - - /** - * Generates HTML markup for a regular button in the toolbar. - * @param {Highlighter} highlighter Highlighter instance. - * @param {String} commandName Command name that would be executed. - * @param {String} label Label text to display. - * @return {String} Returns HTML markup. - */ - getButtonHtml: function(highlighter, commandName, label) - { - return '' + label + '' - ; - }, - - /** - * Event handler for a toolbar anchor. - */ - handler: function(e) - { - var target = e.target, - className = target.className || '' - ; - - function getValue(name) - { - var r = new RegExp(name + '_(\\w+)'), - match = r.exec(className) - ; - - return match ? match[1] : null; - }; - - var highlighter = getHighlighterById(findParentElement(target, '.syntaxhighlighter').id), - commandName = getValue('command') - ; - - // execute the toolbar command - if (highlighter && commandName) - sh.toolbar.items[commandName].execute(highlighter); - - // disable default A click behaviour - e.preventDefault(); - }, - - /** Collection of toolbar items. */ - items : { - // Ordered lis of items in the toolbar. Can't expect `for (var n in items)` to be consistent. - list: ['expandSource', 'help'], - - expandSource: { - getHtml: function(highlighter) - { - if (highlighter.getParam('collapse') != true) - return ''; - - var title = highlighter.getParam('title'); - return sh.toolbar.getButtonHtml(highlighter, 'expandSource', title ? title : sh.config.strings.expandSource); - }, - - execute: function(highlighter) - { - var div = getHighlighterDivById(highlighter.id); - removeClass(div, 'collapsed'); - } - }, - - /** Command to display the about dialog window. */ - help: { - execute: function(highlighter) - { - var wnd = popup('', '_blank', 500, 250, 'scrollbars=0'), - doc = wnd.document - ; - - doc.write(sh.config.strings.aboutDialog); - doc.close(); - wnd.focus(); - } - } - } - }, - - /** - * Finds all elements on the page which should be processes by SyntaxHighlighter. - * - * @param {Object} globalParams Optional parameters which override element's - * parameters. Only used if element is specified. - * - * @param {Object} element Optional element to highlight. If none is - * provided, all elements in the current document - * are returned which qualify. - * - * @return {Array} Returns list of { target: DOMElement, params: Object } objects. - */ - findElements: function(globalParams, element) - { - var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), - conf = sh.config, - result = [] - ; - - // support for