From 219ad4f45a45ba0a6d48d4ee76f05ee3817e82c0 Mon Sep 17 00:00:00 2001 From: Jihoon Song Date: Fri, 25 Jan 2013 11:27:29 +0900 Subject: [PATCH] [Title] common-eplugin: updated Tizen Web UI FW to 0.2.13 [Desc.] [Issue] Change-Id: I88f1fb488d64fb7ec857a906a91026470a1849f5 --- .../tizen-web-ui-fw/VERSION | 2 +- .../latest/js/tizen-web-ui-fw-libs.js | 742 +-------------------- .../latest/js/tizen-web-ui-fw-libs.min.js | 56 +- .../tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js | 706 ++++++++++---------- .../latest/js/tizen-web-ui-fw.min.js | 22 +- .../latest/themes/default/images/ajax-loader.png | Bin 503 -> 0 bytes .../themes/default/images/icon-search-black.png | Bin 1245 -> 0 bytes .../themes/default/images/icons-18-black.png | Bin 2064 -> 0 bytes .../themes/default/images/icons-18-white.png | Bin 2200 -> 0 bytes .../themes/default/images/icons-36-black.png | Bin 3403 -> 0 bytes .../themes/default/images/icons-36-white.png | Bin 4020 -> 0 bytes .../themes/tizen-tizen/images/00_icon_jump.png | Bin 3061 -> 0 bytes .../tizen-tizen/images/00_icon_jump_left.png | Bin 1233 -> 0 bytes .../images/controls/button/00_icon_jump.png | Bin 3061 -> 2944 bytes .../images/controls/button/00_icon_jump_left.png | Bin 1233 -> 317 bytes .../controls/button/00_icon_jump_left_press.png | Bin 0 -> 340 bytes .../images/controls/button/00_icon_jump_press.png} | Bin 2805 -> 2950 bytes .../themes/tizen-tizen/tizen-web-ui-fw-theme.css | 23 +- .../tizen-tizen/tizen-web-ui-fw-theme.min.css | 2 +- .../tizen-white/images/00_icon_jump_left.png | Bin 1233 -> 0 bytes .../images/controls/button/00_icon_jump.png | Bin 3061 -> 2944 bytes .../images/controls/button/00_icon_jump_left.png | Bin 1233 -> 317 bytes .../controls/button/00_icon_jump_left_press.png | Bin 0 -> 340 bytes .../button/00_icon_jump_press.png} | Bin 3061 -> 2950 bytes .../themes/tizen-white/tizen-web-ui-fw-theme.css | 23 +- .../tizen-white/tizen-web-ui-fw-theme.min.css | 2 +- .../templates/jar/common-resources.jar | Bin 18565 -> 18565 bytes .../templates/jar/jqm-common-resources.jar | Bin 173860 -> 173860 bytes .../templates/jar/jqm-masterdetail.jar | Bin 3016 -> 3016 bytes .../templates/jar/jqm-multipage.jar | Bin 2266 -> 2266 bytes .../templates/jar/jqm-navigation.jar | Bin 2888 -> 2888 bytes .../templates/jar/jqm-singlepage.jar | Bin 1604 -> 1604 bytes .../templates/jar/tizen-basic.jar | Bin 20803 -> 20803 bytes .../jar/tizenwebuifw-common-resources.jar | Bin 1824942 -> 1798269 bytes .../templates/jar/tizenwebuifw-masterdetail.jar | Bin 2864 -> 2864 bytes .../templates/jar/tizenwebuifw-multipage.jar | Bin 2248 -> 2248 bytes .../templates/jar/tizenwebuifw-navigation.jar | Bin 2854 -> 2854 bytes .../templates/jar/tizenwebuifw-singlepage.jar | Bin 1703 -> 1703 bytes 38 files changed, 404 insertions(+), 1174 deletions(-) delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/ajax-loader.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/icon-search-black.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/icons-18-black.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/icons-18-white.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/icons-36-black.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/default/images/icons-36-white.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-tizen/images/00_icon_jump.png delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-tizen/images/00_icon_jump_left.png create mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-tizen/images/controls/button/00_icon_jump_left_press.png rename org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/{default/images/00_sweep_list_bg.png => tizen-tizen/images/controls/button/00_icon_jump_press.png} (88%) delete mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-white/images/00_icon_jump_left.png create mode 100644 org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-white/images/controls/button/00_icon_jump_left_press.png rename org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/themes/tizen-white/images/{00_icon_jump.png => controls/button/00_icon_jump_press.png} (85%) diff --git a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/VERSION b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/VERSION index d3b5ba4..2779245 100644 --- a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/VERSION +++ b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/VERSION @@ -1 +1 @@ -0.2.11 +0.2.13 diff --git a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js index c3867ab..d335527 100644 --- a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js +++ b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js @@ -1,735 +1,3 @@ -/*! - * JSizes - JQuery plugin v0.33 - * - * Licensed under the revised BSD License. - * Copyright 2008-2010 Bram Stein - * All rights reserved. - */ -/*global jQuery*/ -(function ($) { - var num = function (value) { - return parseInt(value, 10) || 0; - }; - - /** - * Sets or gets the values for min-width, min-height, max-width - * and max-height. - */ - $.each(['min', 'max'], function (i, name) { - $.fn[name + 'Size'] = function (value) { - var width, height; - if (value) { - if (value.width !== undefined) { - this.css(name + '-width', value.width); - } - if (value.height !== undefined) { - this.css(name + '-height', value.height); - } - return this; - } - else { - width = this.css(name + '-width'); - height = this.css(name + '-height'); - // Apparently: - // * Opera returns -1px instead of none - // * IE6 returns undefined instead of none - return {'width': (name === 'max' && (width === undefined || width === 'none' || num(width) === -1) && Number.MAX_VALUE) || num(width), - 'height': (name === 'max' && (height === undefined || height === 'none' || num(height) === -1) && Number.MAX_VALUE) || num(height)}; - } - }; - }); - - /** - * Returns whether or not an element is visible. - */ - $.fn.isVisible = function () { - return this.is(':visible'); - }; - - /** - * Sets or gets the values for border, margin and padding. - */ - $.each(['border', 'margin', 'padding'], function (i, name) { - $.fn[name] = function (value) { - if (value) { - if (value.top !== undefined) { - this.css(name + '-top' + (name === 'border' ? '-width' : ''), value.top); - } - if (value.bottom !== undefined) { - this.css(name + '-bottom' + (name === 'border' ? '-width' : ''), value.bottom); - } - if (value.left !== undefined) { - this.css(name + '-left' + (name === 'border' ? '-width' : ''), value.left); - } - if (value.right !== undefined) { - this.css(name + '-right' + (name === 'border' ? '-width' : ''), value.right); - } - return this; - } - else { - return {top: num(this.css(name + '-top' + (name === 'border' ? '-width' : ''))), - bottom: num(this.css(name + '-bottom' + (name === 'border' ? '-width' : ''))), - left: num(this.css(name + '-left' + (name === 'border' ? '-width' : ''))), - right: num(this.css(name + '-right' + (name === 'border' ? '-width' : '')))}; - } - }; - }); -})(jQuery); -/*! - * jLayout Border Layout - JavaScript Layout Algorithms v0.4 - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - */ -/*global jLayout */ -(function () { - jLayout = typeof jLayout === 'undefined' ? {} : jLayout; - - jLayout.border = function (spec) { - var my = {}, - that = {}, - east = spec.east, - west = spec.west, - north = spec.north, - south = spec.south, - center = spec.center; - - my.hgap = spec.hgap || 0; - my.vgap = spec.vgap || 0; - - that.items = function () { - var items = []; - if (east) { - items.push(east); - } - - if (west) { - items.push(west); - } - - if (north) { - items.push(north); - } - - if (south) { - items.push(south); - } - - if (center) { - items.push(center); - } - return items; - }; - - that.layout = function (container) { - var size = container.bounds(), - insets = container.insets(), - top = insets.top, - bottom = size.height - insets.bottom, - left = insets.left, - right = size.width - insets.right, - tmp; - - if (north && north.isVisible()) { - tmp = north.preferredSize(); - north.bounds({'x': left, 'y': top, 'width': right - left, 'height': tmp.height}); - north.doLayout(); - - top += tmp.height + my.vgap; - } - if (south && south.isVisible()) { - tmp = south.preferredSize(); - south.bounds({'x': left, 'y': bottom - tmp.height, 'width': right - left, 'height': tmp.height}); - south.doLayout(); - - bottom -= tmp.height + my.vgap; - } - if (east && east.isVisible()) { - tmp = east.preferredSize(); - east.bounds({'x': right - tmp.width, 'y': top, 'width': tmp.width, 'height': bottom - top}); - east.doLayout(); - - right -= tmp.width + my.hgap; - } - if (west && west.isVisible()) { - tmp = west.preferredSize(); - west.bounds({'x': left, 'y': top, 'width': tmp.width, 'height': bottom - top}); - west.doLayout(); - - left += tmp.width + my.hgap; - } - if (center && center.isVisible()) { - center.bounds({'x': left, 'y': top, 'width': right - left, 'height': bottom - top}); - center.doLayout(); - } - return container; - }; - - function typeLayout(type) { - return function (container) { - var insets = container.insets(), - width = 0, - height = 0, - type_size; - - if (east && east.isVisible()) { - type_size = east[type + 'Size'](); - width += type_size.width + my.hgap; - height = type_size.height; - } - if (west && west.isVisible()) { - type_size = west[type + 'Size'](); - width += type_size.width + my.hgap; - height = Math.max(type_size.height, height); - } - if (center && center.isVisible()) { - type_size = center[type + 'Size'](); - width += type_size.width; - height = Math.max(type_size.height, height); - } - if (north && north.isVisible()) { - type_size = north[type + 'Size'](); - width = Math.max(type_size.width, width); - height += type_size.height + my.vgap; - } - if (south && south.isVisible()) { - type_size = south[type + 'Size'](); - width = Math.max(type_size.width, width); - height += type_size.height + my.vgap; - } - - return { - 'width': width + insets.left + insets.right, - 'height': height + insets.top + insets.bottom - }; - }; - } - that.preferred = typeLayout('preferred'); - that.minimum = typeLayout('minimum'); - that.maximum = typeLayout('maximum'); - return that; - }; -})(); -/*! - * jLayout Grid Layout - JavaScript Layout Algorithms v0.41 - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - */ -/*global jLayout */ -(function () { - jLayout = typeof jLayout === 'undefined' ? {} : jLayout; - - jLayout.grid = function (spec, shared) { - var my = shared || {}, - that = {}; - - my.hgap = spec.hgap || 0; - my.vgap = spec.vgap || 0; - - // initialize the number of columns to the number of items - // we're laying out. - my.items = spec.items || []; - my.columns = spec.columns || my.items.length; - my.rows = spec.rows || 0; - my.fillVertical = spec.fill && spec.fill === 'vertical'; - - if (my.rows > 0) { - my.columns = Math.floor((my.items.length + my.rows - 1) / my.rows); - } else { - my.rows = Math.floor((my.items.length + my.columns - 1) / my.columns); - } - - that.items = function () { - var r = []; - Array.prototype.push.apply(r, my.items); - return r; - }; - - that.layout = function (container) { - var i, j, - insets = container.insets(), - x = insets.left, - y = insets.top, - width = (container.bounds().width - (insets.left + insets.right) - (my.columns - 1) * my.hgap) / my.columns, - height = (container.bounds().height - (insets.top + insets.bottom) - (my.rows - 1) * my.vgap) / my.rows; - - for (i = 0, j = 1; i < my.items.length; i += 1, j += 1) { - my.items[i].bounds({'x': x, 'y': y, 'width': width, 'height': height}); - - if (!my.fillVertical) { - if (j >= my.columns) { - y += height + my.vgap; - x = insets.left; - j = 0; - } - else { - x += width + my.hgap; - } - } else { - if (j >= my.rows) { - x += width + my.hgap; - y = insets.top; - j = 0; - } else { - y += height + my.vgap; - } - } - my.items[i].doLayout(); - } - return container; - }; - - function typeLayout(type) { - return function (container) { - var i = 0, - width = 0, - height = 0, - type_size, - insets = container.insets(); - - for (; i < my.items.length; i += 1) { - type_size = my.items[i][type + 'Size'](); - width = Math.max(width, type_size.width); - height = Math.max(height, type_size.height); - } - return { - 'width': insets.left + insets.right + my.columns * width + (my.columns - 1) * my.hgap, - 'height': insets.top + insets.bottom + my.rows * height + (my.rows - 1) * my.vgap - }; - }; - } - - // this creates the min and preferred size methods, as they - // only differ in the function they call. - that.preferred = typeLayout('preferred'); - that.minimum = typeLayout('minimum'); - that.maximum = typeLayout('maximum'); - return that; - }; -})(); - -/*! - * jLayout Flex Grid Layout - JavaScript Layout Algorithms v0.4 - * Based on: http://www.javaworld.com/javaworld/javatips/jw-javatip121.html - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - */ -/*global jLayout */ -(function () { - jLayout = typeof jLayout === 'undefined' ? {} : jLayout; - - // The flex grid has a dependency on the grid layout, so please make - // sure you include the grid layout manager before the flex grid - // layout manager. - if (typeof jLayout.grid !== 'undefined') { - jLayout.flexGrid = function (spec) { - var my = {}, - that = this.grid(spec, my); - - function zeroArray(a, l) { - var i = 0; - for (; i < l; i += 1) { - a[i] = 0; - } - return a; - } - - function typeLayout(type) { - return function (container) { - var i = 0, r = 0, c = 0, nw = 0, nh = 0, - w = zeroArray([], my.columns), - h = zeroArray([], my.rows), - type_size, - insets = container.insets(); - - for (i = 0; i < my.items.length; i += 1) { - r = i / my.columns; - c = i % my.columns; - type_size = my.items[i][type + 'Size'](); - if (w[c] < type_size.width) { - w[c] = type_size.width; - } - if (h[r] < type_size.height) { - h[r] = type_size.height; - } - } - for (i = 0; i < my.columns; i += 1) { - nw += w[i]; - } - for (i = 0; i < my.rows; i += 1) { - nh += h[i]; - } - return { - width: insets.left + insets.right + nw + (my.columns - 1) * my.hgap, - height: insets.top + insets.bottom + nh + (my.rows - 1) * my.vgap - }; - }; - } - - that.preferred = typeLayout('preferred'); - that.minimum = typeLayout('minimum'); - that.maximum = typeLayout('maximum'); - - that.layout = function (container) { - var i = 0, c = 0, r = 0, - pd = that.preferred(container), - sw = container.bounds().width / pd.width, - sh = container.bounds().height / pd.height, - w = zeroArray([], my.columns), - h = zeroArray([], my.rows), - insets = container.insets(), - x = insets.left, - y = insets.top, - d; - - for (i = 0; i < my.items.length; i += 1) { - r = i / my.columns; - c = i % my.columns; - d = my.items[i].preferredSize(); - d.width = sw * d.width; - d.height = sh * d.height; - - if (w[c] < d.width) { - w[c] = d.width; - } - if (h[r] < d.height) { - h[r] = d.height; - } - } - - for (c = 0; c < my.columns; c += 1) { - for (r = 0, y = insets.top; r < my.rows; r += 1) { - i = r * my.columns + c; - if (i < my.items.length) { - my.items[i].bounds({'x': x, 'y': y, 'width': w[c], 'height': h[r]}); - my.items[i].doLayout(); - } - y += h[r] + my.vgap; - } - x += w[c] + my.hgap; - } - - return container; - }; - return that; - }; - } -})(); -/*! - * jLayout Flow Layout - JavaScript Layout Algorithms v0.12 - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - */ -/*global jLayout */ -(function () { - jLayout = typeof jLayout === 'undefined' ? {} : jLayout; - - jLayout.flow = function (options) { - var my = {}, - that = {}; - - - my.hgap = typeof options.hgap === 'number' && !isNaN(options.hgap) ? options.hgap : 5; - my.vgap = typeof options.vgap === 'number' && !isNaN(options.vgap) ? options.vgap : 5; - my.items = options.items || []; - my.alignment = (options.alignment && (options.alignment === 'center' || options.alignment === 'right' || options.alignment === 'left') && options.alignment) || 'left'; - - that.items = function () { - var r = []; - Array.prototype.push.apply(r, my.items); - return r; - }; - - that.layout = function (container) { - var parentSize = container.bounds(), - insets = container.insets(), - i = 0, - len = my.items.length, - itemSize, - currentRow = [], - rowSize = { - width: 0, - height: 0 - }, - offset = { - x: insets.left, - y: insets.top - }; - - parentSize.width -= insets.left + insets.right; - parentSize.height -= insets.top + insets.bottom; - - for (; i < len; i += 1) { - if (my.items[i].isVisible()) { - itemSize = my.items[i].preferredSize(); - - if ((rowSize.width + itemSize.width) > parentSize.width) { - align(currentRow, offset, rowSize, parentSize); - - currentRow = []; - offset.y += rowSize.height; - offset.x = insets.left; - rowSize.width = 0; - rowSize.height = 0; - } - rowSize.height = Math.max(rowSize.height, itemSize.height + my.vgap); - rowSize.width += itemSize.width + my.hgap; - - currentRow.push(my.items[i]); - } - } - align(currentRow, offset, rowSize, parentSize); - return container; - }; - - function align(row, offset, rowSize, parentSize) { - var location = { - x: offset.x, - y: offset.y - }, - i = 0, - len = row.length; - - switch (my.alignment) { - case 'center': { - location.x += (my.hgap + parentSize.width - rowSize.width) / 2; - break; - } - case 'right': { - location.x += parentSize.width - rowSize.width + my.hgap; - break; - } - } - - for (; i < len; i += 1) { - location.y = offset.y; - row[i].bounds(location); - row[i].doLayout(); - location.x += row[i].bounds().width + my.hgap; - } - } - - function typeLayout(type) { - return function (container) { - var i = 0, - width = 0, - height = 0, - typeSize, - firstComponent = false, - insets = container.insets(); - - for (; i < my.items.length; i += 1) { - if (my.items[i].isVisible()) { - typeSize = my.items[i][type + 'Size'](); - height = Math.max(height, typeSize.height); - width += typeSize.width; - } - } - - return { - 'width': width + insets.left + insets.right + (my.items.length - 1) * my.hgap, - 'height': height + insets.top + insets.bottom - }; - }; - } - - that.preferred = typeLayout('preferred'); - that.minimum = typeLayout('minimum'); - that.maximum = typeLayout('maximum'); - - return that; - }; -})(); - -/*! - * jLayout JQuery Plugin v0.17 - * - * Licensed under the new BSD License. - * Copyright 2008-2009 Bram Stein - * All rights reserved. - */ -/*global jQuery jLayout*/ -if (jQuery && jLayout) { - (function ($) { - /** - * This wraps jQuery objects in another object that supplies - * the methods required for the layout algorithms. - */ - function wrap(item, resize) { - var that = {}; - - $.each(['min', 'max'], function (i, name) { - that[name + 'imumSize'] = function (value) { - var l = item.data('jlayout'); - - if (l) { - return l[name + 'imum'](that); - } else { - return item[name + 'Size'](value); - } - }; - }); - - $.extend(that, { - doLayout: function () { - var l = item.data('jlayout'); - - if (l) { - l.layout(that); - } - item.css({position: 'absolute'}); - }, - isVisible: function () { - return item.isVisible(); - }, - insets: function () { - var p = item.padding(), - b = item.border(); - - return { - 'top': p.top, - 'bottom': p.bottom + b.bottom + b.top, - 'left': p.left, - 'right': p.right + b.right + b.left - }; - }, - bounds: function (value) { - var tmp = {}; - - if (value) { - if (typeof value.x === 'number') { - tmp.left = value.x; - } - if (typeof value.y === 'number') { - tmp.top = value.y; - } - if (typeof value.width === 'number') { - tmp.width = (value.width - (item.outerWidth(true) - item.width())); - tmp.width = (tmp.width >= 0) ? tmp.width : 0; - } - if (typeof value.height === 'number') { - tmp.height = value.height - (item.outerHeight(true) - item.height()); - tmp.height = (tmp.height >= 0) ? tmp.height : 0; - } - item.css(tmp); - return item; - } else { - tmp = item.position(); - return { - 'x': tmp.left, - 'y': tmp.top, - 'width': item.outerWidth(false), - 'height': item.outerHeight(false) - }; - } - }, - preferredSize: function () { - var minSize, - maxSize, - margin = item.margin(), - size = {width: 0, height: 0}, - l = item.data('jlayout'); - - if (l && resize) { - size = l.preferred(that); - - minSize = that.minimumSize(); - maxSize = that.maximumSize(); - - size.width += margin.left + margin.right; - size.height += margin.top + margin.bottom; - - if (size.width < minSize.width || size.height < minSize.height) { - size.width = Math.max(size.width, minSize.width); - size.height = Math.max(size.height, minSize.height); - } else if (size.width > maxSize.width || size.height > maxSize.height) { - size.width = Math.min(size.width, maxSize.width); - size.height = Math.min(size.height, maxSize.height); - } - } else { - size = that.bounds(); - size.width += margin.left + margin.right; - size.height += margin.top + margin.bottom; - } - return size; - } - }); - return that; - } - - $.fn.layout = function (options) { - var opts = $.extend({}, $.fn.layout.defaults, options); - return $.each(this, function () { - var element = $(this), - o = $.metadata && element.metadata().layout ? $.extend(opts, element.metadata().layout) : opts, - elementWrapper = wrap(element, o.resize); - - if (o.type === 'border' && typeof jLayout.border !== 'undefined') { - $.each(['north', 'south', 'west', 'east', 'center'], function (i, name) { - if (element.children().hasClass(name)) { - o[name] = wrap(element.children('.' + name + ':first')); - } - }); - element.data('jlayout', jLayout.border(o)); - } else if (o.type === 'grid' && typeof jLayout.grid !== 'undefined') { - o.items = []; - element.children().each(function (i) { - if (!$(this).hasClass('ui-resizable-handle')) { - o.items[i] = wrap($(this)); - } - }); - element.data('jlayout', jLayout.grid(o)); - } else if (o.type === 'flexGrid' && typeof jLayout.flexGrid !== 'undefined') { - o.items = []; - element.children().each(function (i) { - if (!$(this).hasClass('ui-resizable-handle')) { - o.items[i] = wrap($(this)); - } - }); - element.data('jlayout', jLayout.flexGrid(o)); - } else if (o.type === 'column' && typeof jLayout.column !== 'undefined') { - o.items = []; - element.children().each(function (i) { - if (!$(this).hasClass('ui-resizable-handle')) { - o.items[i] = wrap($(this)); - } - }); - element.data('jlayout', jLayout.column(o)); - } else if (o.type === 'flow' && typeof jLayout.flow !== 'undefined') { - o.items = []; - element.children().each(function (i) { - if (!$(this).hasClass('ui-resizable-handle')) { - o.items[i] = wrap($(this)); - } - }); - element.data('jlayout', jLayout.flow(o)); - } - - if (o.resize) { - elementWrapper.bounds(elementWrapper.preferredSize()); - } - - elementWrapper.doLayout(); - element.css({position: 'relative'}); - if ($.ui !== undefined) { - element.addClass('ui-widget'); - } - }); - }; - - $.fn.layout.defaults = { - resize: true, - type: 'grid' - }; - })(jQuery); -} /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * @@ -1419,7 +687,7 @@ jQuery.extend( jQuery.easing, } })( jQuery ); /* -* jQuery Mobile Framework Git Build: SHA1: f27dea3d2964b00ed538ae371f483f8a1b831602 <> Date: Tue Jan 22 14:26:05 2013 +0900 +* jQuery Mobile Framework Git Build: SHA1: 6c30696495e997a91e3d6e477170588fbc01883d <> Date: Thu Jan 24 21:09:47 2013 +0900 * http://jquerymobile.com * * Copyright 2012 jQuery Foundation and other contributors @@ -3678,12 +2946,12 @@ $.widget( "mobile.page", $.mobile.widget, { }, refresh: function() { - $( ".ui-page-active" ).children( ".ui-content" ).trigger("updatelayout", ["external"]); + $( this.element ).children( ".ui-content" ).trigger("updatelayout", ["external"]); }, /* GUI Builder only : redesign page when user drag&drop header, footer */ setToolbar: function () { - $( ".ui-page" ).trigger( "pagebeforeshow" ); + $( this.element ).trigger( "pagebeforeshow" ); }, removeContainerBackground: function() { @@ -7542,7 +6810,7 @@ $.mobile.listview.prototype.options.autodividersSelector = function( elt ) { } // create the text for the divider (first uppercased letter) - text = text.slice( 0, 1 ).toUpperCase(); + text = text.trim().slice( 0, 1 ).toUpperCase(); return text; }; @@ -8764,7 +8032,7 @@ $( document ).bind( "pagecreate create", function( e ) { self.link = options.link; } self.positionTo = ( options != null && options.positionTo != null ) ? options.positionTo : "origin"; - if ( $(self.link).jqmData("position-to") !== "window" + if ( $(self.link).jqmData("position-to") !== "window" && self.positionTo !== "window" ) { $(self.element).addClass("ui-ctxpopup"); diff --git a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js index 596b33f..804d0e7 100644 --- a/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js +++ b/org.tizen.common.verrari/templates/cli/tizenwebuifw-common-resources/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js @@ -1,46 +1,3 @@ -/*! - * JSizes - JQuery plugin v0.33 - * - * Licensed under the revised BSD License. - * Copyright 2008-2010 Bram Stein - * All rights reserved. - *//*global jQuery*/(function(a){var b=function(a){return parseInt(a,10)||0};a.each(["min","max"],function(c,d){a.fn[d+"Size"]=function(a){var c,e;return a?(a.width!==undefined&&this.css(d+"-width",a.width),a.height!==undefined&&this.css(d+"-height",a.height),this):(c=this.css(d+"-width"),e=this.css(d+"-height"),{width:d==="max"&&(c===undefined||c==="none"||b(c)===-1)&&Number.MAX_VALUE||b(c),height:d==="max"&&(e===undefined||e==="none"||b(e)===-1)&&Number.MAX_VALUE||b(e)})}}),a.fn.isVisible=function(){return this.is(":visible")},a.each(["border","margin","padding"],function(c,d){a.fn[d]=function(a){return a?(a.top!==undefined&&this.css(d+"-top"+(d==="border"?"-width":""),a.top),a.bottom!==undefined&&this.css(d+"-bottom"+(d==="border"?"-width":""),a.bottom),a.left!==undefined&&this.css(d+"-left"+(d==="border"?"-width":""),a.left),a.right!==undefined&&this.css(d+"-right"+(d==="border"?"-width":""),a.right),this):{top:b(this.css(d+"-top"+(d==="border"?"-width":""))),bottom:b(this.css(d+"-bottom"+(d==="border"?"-width":""))),left:b(this.css(d+"-left"+(d==="border"?"-width":""))),right:b(this.css(d+"-right"+(d==="border"?"-width":"")))}}})})(jQuery); -/*! - * jLayout Border Layout - JavaScript Layout Algorithms v0.4 - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - *//*global jLayout */(function(){jLayout=typeof jLayout=="undefined"?{}:jLayout,jLayout.border=function(a){function i(a){return function(c){var i=c.insets(),j=0,k=0,l;return d&&d.isVisible()&&(l=d[a+"Size"](),j+=l.width+b.hgap,k=l.height),e&&e.isVisible()&&(l=e[a+"Size"](),j+=l.width+b.hgap,k=Math.max(l.height,k)),h&&h.isVisible()&&(l=h[a+"Size"](),j+=l.width,k=Math.max(l.height,k)),f&&f.isVisible()&&(l=f[a+"Size"](),j=Math.max(l.width,j),k+=l.height+b.vgap),g&&g.isVisible()&&(l=g[a+"Size"](),j=Math.max(l.width,j),k+=l.height+b.vgap),{width:j+i.left+i.right,height:k+i.top+i.bottom}}}var b={},c={},d=a.east,e=a.west,f=a.north,g=a.south,h=a.center;return b.hgap=a.hgap||0,b.vgap=a.vgap||0,c.items=function(){var a=[];return d&&a.push(d),e&&a.push(e),f&&a.push(f),g&&a.push(g),h&&a.push(h),a},c.layout=function(a){var c=a.bounds(),i=a.insets(),j=i.top,k=c.height-i.bottom,l=i.left,m=c.width-i.right,n;return f&&f.isVisible()&&(n=f.preferredSize(),f.bounds({x:l,y:j,width:m-l,height:n.height}),f.doLayout(),j+=n.height+b.vgap),g&&g.isVisible()&&(n=g.preferredSize(),g.bounds({x:l,y:k-n.height,width:m-l,height:n.height}),g.doLayout(),k-=n.height+b.vgap),d&&d.isVisible()&&(n=d.preferredSize(),d.bounds({x:m-n.width,y:j,width:n.width,height:k-j}),d.doLayout(),m-=n.width+b.hgap),e&&e.isVisible()&&(n=e.preferredSize(),e.bounds({x:l,y:j,width:n.width,height:k-j}),e.doLayout(),l+=n.width+b.hgap),h&&h.isVisible()&&(h.bounds({x:l,y:j,width:m-l,height:k-j}),h.doLayout()),a},c.preferred=i("preferred"),c.minimum=i("minimum"),c.maximum=i("maximum"),c}})(); -/*! - * jLayout Grid Layout - JavaScript Layout Algorithms v0.41 - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - *//*global jLayout */(function(){jLayout=typeof jLayout=="undefined"?{}:jLayout,jLayout.grid=function(a,b){function e(a){return function(b){var d=0,e=0,f=0,g,h=b.insets();for(;d0?c.columns=Math.floor((c.items.length+c.rows-1)/c.rows):c.rows=Math.floor((c.items.length+c.columns-1)/c.columns),d.items=function(){var a=[];return Array.prototype.push.apply(a,c.items),a},d.layout=function(a){var b,d,e=a.insets(),f=e.left,g=e.top,h=(a.bounds().width-(e.left+e.right)-(c.columns-1)*c.hgap)/c.columns,i=(a.bounds().height-(e.top+e.bottom)-(c.rows-1)*c.vgap)/c.rows;for(b=0,d=1;b=c.rows?(f+=h+c.hgap,g=e.top,d=0):g+=i+c.vgap:d>=c.columns?(g+=i+c.vgap,f=e.left,d=0):f+=h+c.hgap,c.items[b].doLayout();return a},d.preferred=e("preferred"),d.minimum=e("minimum"),d.maximum=e("maximum"),d}})(); -/*! - * jLayout Flex Grid Layout - JavaScript Layout Algorithms v0.4 - * Based on: http://www.javaworld.com/javaworld/javatips/jw-javatip121.html - * - * Licensed under the new BSD License. - * Copyright 2008-2009, Bram Stein - * All rights reserved. - *//*global jLayout */(function(){jLayout=typeof jLayout=="undefined"?{}:jLayout,typeof jLayout.grid!="undefined"&&(jLayout.flexGrid=function(a){function d(a,b){var c=0;for(;cc.width&&(d(i,k,j,c),i=[],k.y+=j.height,k.x=e.left,j.width=0,j.height=0),j.height=Math.max(j.height,h.height+b.vgap),j.width+=h.width+b.hgap,i.push(b.items[f]));return d(i,k,j,c),a},c.preferred=e("preferred"),c.minimum=e("minimum"),c.maximum=e("maximum"),c}})(); -/*! - * jLayout JQuery Plugin v0.17 - * - * Licensed under the new BSD License. - * Copyright 2008-2009 Bram Stein - * All rights reserved. - *//*global jQuery jLayout*/jQuery&&jLayout&&function(a){function b(b,c){var d={};return a.each(["min","max"],function(a,c){d[c+"imumSize"]=function(a){var e=b.data("jlayout");return e?e[c+"imum"](d):b[c+"Size"](a)}}),a.extend(d,{doLayout:function(){var a=b.data("jlayout");a&&a.layout(d),b.css({position:"absolute"})},isVisible:function(){return b.isVisible()},insets:function(){var a=b.padding(),c=b.border();return{top:a.top,bottom:a.bottom+c.bottom+c.top,left:a.left,right:a.right+c.right+c.left}},bounds:function(a){var c={};return a?(typeof a.x=="number"&&(c.left=a.x),typeof a.y=="number"&&(c.top=a.y),typeof a.width=="number"&&(c.width=a.width-(b.outerWidth(!0)-b.width()),c.width=c.width>=0?c.width:0),typeof a.height=="number"&&(c.height=a.height-(b.outerHeight(!0)-b.height()),c.height=c.height>=0?c.height:0),b.css(c),b):(c=b.position(),{x:c.left,y:c.top,width:b.outerWidth(!1),height:b.outerHeight(!1)})},preferredSize:function(){var a,e,f=b.margin(),g={width:0,height:0},h=b.data("jlayout");if(h&&c){g=h.preferred(d),a=d.minimumSize(),e=d.maximumSize(),g.width+=f.left+f.right,g.height+=f.top+f.bottom;if(g.widthe.width||g.height>e.height)g.width=Math.min(g.width,e.width),g.height=Math.min(g.height,e.height)}else g=d.bounds(),g.width+=f.left+f.right,g.height+=f.top+f.bottom;return g}}),d}a.fn.layout=function(c){var d=a.extend({},a.fn.layout.defaults,c);return a.each(this,function(){var c=a(this),e=a.metadata&&c.metadata().layout?a.extend(d,c.metadata().layout):d,f=b(c,e.resize);e.type==="border"&&typeof jLayout.border!="undefined"?(a.each(["north","south","west","east","center"],function(a,d){c.children().hasClass(d)&&(e[d]=b(c.children("."+d+":first")))}),c.data("jlayout",jLayout.border(e))):e.type==="grid"&&typeof jLayout.grid!="undefined"?(e.items=[],c.children().each(function(c){a(this).hasClass("ui-resizable-handle")||(e.items[c]=b(a(this)))}),c.data("jlayout",jLayout.grid(e))):e.type==="flexGrid"&&typeof jLayout.flexGrid!="undefined"?(e.items=[],c.children().each(function(c){a(this).hasClass("ui-resizable-handle")||(e.items[c]=b(a(this)))}),c.data("jlayout",jLayout.flexGrid(e))):e.type==="column"&&typeof jLayout.column!="undefined"?(e.items=[],c.children().each(function(c){a(this).hasClass("ui-resizable-handle")||(e.items[c]=b(a(this)))}),c.data("jlayout",jLayout.column(e))):e.type==="flow"&&typeof jLayout.flow!="undefined"&&(e.items=[],c.children().each(function(c){a(this).hasClass("ui-resizable-handle")||(e.items[c]=b(a(this)))}),c.data("jlayout",jLayout.flow(e))),e.resize&&f.bounds(f.preferredSize()),f.doLayout(),c.css({position:"relative"}),a.ui!==undefined&&c.addClass("ui-widget")})},a.fn.layout.defaults={resize:!0,type:"grid"}}(jQuery); /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * @@ -88,21 +45,14 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO * http://jquery.org/license */(function(a,b){function m(b,c,d,e){var h={data:e||e===0||e===!1?e:c?c.data:{},_wrap:c?c._wrap:null,tmpl:null,parent:c||null,nodes:[],calls:u,nest:v,wrap:w,html:x,update:y};return b&&a.extend(h,b,{nodes:[],parent:c}),d&&(h.tmpl=d,h._ctnt=h._ctnt||h.tmpl(a,h),h.key=++j,(l.length?g:f)[j]=h),h}function n(b,c,e){var f,g=e?a.map(e,function(a){return typeof a=="string"?b.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+b.key+'" $2'):a:n(a,b,a._ctnt)}):b;return c?g:(g=g.join(""),g.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(b,c,d,e){f=a(d).get(),t(f),c&&(f=o(c).concat(f)),e&&(f=f.concat(o(e)))}),f?f:o(g))}function o(b){var c=document.createElement("div");return c.innerHTML=b,a.makeArray(c.childNodes)}function p(b){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(b,c,d,e,f,g,h){var i=a.tmpl.tag[d],j,k,l;if(!i)throw"Unknown template tag: "+d;return j=i._default||[],g&&!/\w$/.test(f)&&(f+=g,g=""),f?(f=r(f),h=h?","+r(h)+")":g?")":"",k=g?f.indexOf(".")>-1?f+r(g):"("+f+").call($item"+h:f,l=g?k:"(typeof("+f+")==='function'?("+f+").call($item):("+f+"))"):l=k=j.$1||"null",e=r(e),"');"+i[c?"close":"open"].split("$notnull_1").join(f?"typeof("+f+")!=='undefined' && ("+f+")!=null":"true").split("$1a").join(l).split("$1").join(k).split("$2").join(e||j.$2||"")+"__.push('"})+"');}return __;")}function q(b,c){b._wrap=n(b,!0,a.isArray(c)?c:[e.test(c)?c:a(c).html()]).join("")}function r(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function s(a){var b=document.createElement("div");return b.appendChild(a.cloneNode(!0)),b.innerHTML}function t(b){function p(b){function p(a){a+=c,n=i[a]=i[a]||m(n,f[n.parent.key+c]||n.parent)}var e,h=b,l,n,o;if(o=b.getAttribute(d)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(e=h.getAttribute(d)));e!==o&&(h=h.parentNode?h.nodeType===11?0:h.getAttribute(d)||0:0,(n=f[o])||(n=g[o],n=m(n,f[h]||g[h]),n.key=++j,f[j]=n),k&&p(o)),b.removeAttribute(d)}else k&&(n=a.data(b,"tmplItem"))&&(p(n.key),f[n.key]=n,h=a.data(b.parentNode,"tmplItem"),h=h?h.key:0);if(n){l=n;while(l&&l.key!=h)l.nodes.push(b),l=l.parent;delete n._ctnt,delete n._wrap,a.data(b,"tmplItem",n)}}var c="_"+k,e,h,i={},l,n,o;for(l=0,n=b.length;l=0;o--)p(h[o]);p(e)}}function u(a,b,c,d){if(!a)return l.pop();l.push({_:a,tmpl:b,item:this,data:c,options:d})}function v(b,c,d){return a.tmpl(a.template(b),c,d,this)}function w(b,c){var d=b.options||{};return d.wrapped=c,a.tmpl(a.template(b.tmpl),b.data,d,b.item)}function x(b,c){var d=this._wrap;return a.map(a(a.isArray(d)?d.join(""):d).filter(b||"*"),function(a){return c?a.innerText||a.textContent:a.outerHTML||s(a)})}function y(){var b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]),a(b).remove()}var c=a.fn.domManip,d="_tmplitem",e=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,f={},g={},h,i={key:0,data:{}},j=0,k=0,l=[];a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(d){var e=[],g=a(d),i,j,l,m,n=this.length===1&&this[0].parentNode;h=f||{};if(n&&n.nodeType===11&&n.childNodes.length===1&&g.length===1)g[c](this[0]),e=this;else{for(j=0,l=g.length;j0?this.clone(!0):this).get(),a(g[j])[c](i),e=e.concat(i);k=0,e=this.pushStack(e,b,g.selector)}return m=h,h=null,a.tmpl.complete(m),e}}),a.fn.extend({tmpl:function(b,c,d){return a.tmpl(this[0],b,c,d)},tmplItem:function(){return a.tmplItem(this[0])},template:function(b){return a.template(b,this[0])},domManip:function(b,d,e,g){if(b[0]&&a.isArray(b[0])){var i=a.makeArray(arguments),j=b[0],l=j.length,m=0,n;while(m").join(">").split('"').join(""").split("'").join("'")}}),a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(a){f={}},afterManip:function(c,d,e){var f=d.nodeType===11?a.makeArray(d.childNodes):d.nodeType===1?[d]:[];e.call(c,d),t(f),k++}})})(jQuery); /* -* jQuery Mobile Framework Git Build: SHA1: f27dea3d2964b00ed538ae371f483f8a1b831602 <> Date: Tue Jan 22 14:26:05 2013 +0900 +* jQuery Mobile Framework Git Build: SHA1: 6c30696495e997a91e3d6e477170588fbc01883d <> Date: Thu Jan 24 21:09:47 2013 +0900 * http://jquerymobile.com * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * -*/(function(a,b,c){typeof define=="function"&&define.amd?define(["jquery"],function(d){return c(d,a,b),d.mobile}):c(a.jQuery,a,b)})(this,document,function(a,b,c,d){(function(a,b,d){var e={};a.mobile=a.extend({},{version:"1.2.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(d){a.type(d)!=="number"&&(d=a.mobile.defaultHomeScroll),a.event.special.scrollstart.enabled=!1,setTimeout(function(){b.scrollTo(0,d),a(c).trigger("silentscroll",{x:0,y:d})},20),setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:e,nsNormalize:function(b){if(!b)return;return e[b]||(e[b]=a.camelCase(a.mobile.ns+b))},getInheritedTheme:function(a,b){var c=a[0],d="",e=/ui-(bar|body|overlay)-([a-z])\b/,f,g;while(c){f=c.className||"";if(f&&(g=e.exec(f))&&(d=g[2]))break;c=c.parentNode}return d||b||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(a){return this.haveParents(a,"enhance")},hijackable:function(a){return this.haveParents(a,"ajax")},haveParents:function(b,c){if(!a.mobile.ignoreContentEnabled)return b;var d=b.length,e=a(),f,g,h;for(var i=0;i").text(a(this).text()).html()},a.fn.jqmEnhanceable=function(){return a.mobile.enhanceable(this)},a.fn.jqmHijackable=function(){return a.mobile.hijackable(this)};var f=a.find,g=/:jqmData\(([^)]*)\)/g;a.find=function(b,c,d,e){return b=b.replace(g,"[data-"+(a.mobile.ns||"")+"$1]"),f.call(this,b,c,d,e)},a.extend(a.find,f),a.find.matches=function(b,c){return a.find(b,null,null,c)},a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}})(a,this),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var c=0,d;(d=b[c])!=null;c++)try{a(d).triggerHandler("remove")}catch(f){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i=b.split(".")[0];b=b.split(".")[1],e=i+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e]=function(b){return!!a.data(b,e)},a[i]=a[i]||{},f=a[i][b],g=a[i][b]=function(a,b){if(!this._createWidget)return new g(a,b);arguments.length&&this._createWidget(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,e){a.isFunction(e)&&(d[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},d=function(a){return c.prototype[b].apply(this,a)};return function(){var b=this._super,c=this._superApply,f;return this._super=a,this._superApply=d,f=e.apply(this,arguments),this._super=b,this._superApply=c,f}}())}),g.prototype=a.widget.extend(h,{widgetEventPrefix:b},d,{constructor:g,namespace:i,widgetName:b,widgetBaseClass:e,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){var e=d.call(arguments,1),f=0,g=e.length,h,i;for(;f",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on({remove:"destroy"}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var e=c,f,g,h;if(arguments.length===0)return a.widget.extend({},this.options);if(typeof c=="string"){e={},f=c.split("."),c=f.shift();if(f.length){g=e[c]=a.widget.extend({},this.options[c]);for(h=0;h"+""+"

"+"",fakeFixLoader:function(){var b=a("."+a.mobile.activeBtnClass).first();this.element.css({top:a.support.scrollTop&&f.scrollTop()+f.height()/2||b.length&&b.offset().top||100})},checkLoaderPosition:function(){var b=this.element.offset(),c=f.scrollTop(),d=a.mobile.getScreenHeight();if(b.topd)this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),f.unbind("scroll",this.checkLoaderPosition).bind("scroll",this.fakeFixLoader)},resetHtml:function(){this.element.html(a(this.defaultHtml).html())},show:function(b,g,h){var i,j,k,l;this.resetHtml(),a.type(b)==="object"?(l=a.extend({},this.options,b),b=l.theme||a.mobile.loadingMessageTheme):(l=this.options,b=b||a.mobile.loadingMessageTheme||l.theme),j=g||a.mobile.loadingMessage||l.text,e.addClass("ui-loading");if(a.mobile.loadingMessage!==!1||l.html)a.mobile.loadingMessageTextVisible!==d?i=a.mobile.loadingMessageTextVisible:i=l.textVisible,this.element.attr("class",c+" ui-corner-all ui-body-"+b+" ui-loader-"+(i||g||b.text?"verbose":"default")+(l.textonly||h?" ui-loader-textonly":"")),l.html?this.element.html(l.html):this.element.find("h1").text(j),this.element.appendTo(a.mobile.pageContainer),this.checkLoaderPosition(),f.bind("scroll",a.proxy(this.checkLoaderPosition,this))},hide:function(){e.removeClass("ui-loading"),a.mobile.loadingMessage&&this.element.removeClass("ui-loader-fakefix"),a(b).unbind("scroll",a.proxy(this.fakeFixLoader,this)),a(b).unbind("scroll",a.proxy(this.checkLoaderPosition,this))}}),f.bind("pagecontainercreate",function(){a.mobile.loaderWidget=a.mobile.loaderWidget||a(a.mobile.loader.prototype.defaultHtml).loader()})}(a,this),function(a,b,c,d){function x(a){while(a&&typeof a.originalEvent!="undefined")a=a.originalEvent;return a}function y(b,c){var e=b.type,f,g,i,k,l,m,n,o,p;b=a.Event(b),b.type=c,f=b.originalEvent,g=a.event.props,e.search(/^(mouse|click)/)>-1&&(g=j);if(f)for(n=g.length,k;n;)k=g[--n],b[k]=f[k];e.search(/mouse(down|up)|click/)>-1&&!b.which&&(b.which=1);if(e.search(/^touch/)!==-1){i=x(f),e=i.touches,l=i.changedTouches,m=e&&e.length?e[0]:l&&l.length?l[0]:d;if(m)for(o=0,p=h.length;oe||Math.abs(c.pageY-n)>e,o&&!d&&H("vmousecancel",b,f),H("vmousemove",b,f),F()}function M(a){if(r)return;C();var b=z(a.target),c;H("vmouseup",a,b);if(!o){var d=H("vclick",a,b);d&&d.isDefaultPrevented()&&(c=x(a).changedTouches[0],p.push({touchID:v,target:a.target,x:c.clientX,y:c.clientY}),q=!0)}H("vmouseout",a,b),o=!1,F()}function N(b){var c=a.data(b,e),d;if(c)for(d in c)if(c[d])return!0;return!1}function O(){}function P(b){var c=b.substr(1);return{setup:function(d,f){N(this)||a.data(this,e,{});var g=a.data(this,e);g[b]=!0,k[b]=(k[b]||0)+1,k[b]===1&&t.bind(c,I),a(this).bind(c,O),s&&(k.touchstart=(k.touchstart||0)+1,k.touchstart===1&&t.bind("touchstart",J).bind("touchend",M).bind("touchmove",L).bind("scroll",K))},teardown:function(d,f){--k[b],k[b]||t.unbind(c,I),s&&(--k.touchstart,k.touchstart||t.unbind("touchstart",J).unbind("touchmove",L).unbind("touchend",M).unbind("scroll",K));var g=a(this),h=a.data(this,e);h&&(h[b]=!1),g.unbind(c,O),N(this)||g.removeData(e)}}}var e="virtualMouseBindings",f="virtualTouchID",g="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),h="clientX clientY pageX pageY screenX screenY".split(" "),i=a.event.mouseHooks?a.event.mouseHooks.props:[],j=a.event.props.concat(i),k={},l=0,m=0,n=0,o=!1,p=[],q=!1,r=!1,s="addEventListener"in c,t=a(c),u=1,v=0,w;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var Q=0;Qa.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}var e=b.originalEvent.touches?b.originalEvent.touches[0]:b,f={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:a(b.target)},g;c.bind(i,j).one(h,function(b){c.unbind(i,j),f&&g&&g.time-f.timea.event.special.swipe.horizontalDistanceThreshold&&Math.abs(f.coords[1]-g.coords[1])g.coords[0]?"swipeleft":"swiperight"),f=g=d})})}},a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})}(a,this),function(a,c){a.extend(a.support,{orientation:"orientation"in b&&"onorientationchange"in b})}(a),function(a){a.event.special.throttledresize={setup:function(){a(this).bind("resize",c)},teardown:function(){a(this).unbind("resize",c)}};var b=250,c=function(){f=(new Date).getTime(),g=f-d,g>=b?(d=f,a(this).trigger("throttledresize")):(e&&clearTimeout(e),e=setTimeout(c,b-g))},d=0,e,f,g}(a),function(a,b){function o(){var a=g();a!==h&&(h=a,d.trigger(e))}var d=a(b),e="orientationchange",f,g,h,i,j,k={0:!0,180:!0};if(a.support.orientation){var l=b.innerWidth||a(b).width(),m=b.innerHeight||a(b).height(),n=50;i=l>m&&l-m>n,j=k[b.orientation];if(i&&j||!i&&!j)k={"-90":!0,90:!0}}a.event.special.orientationchange=a.extend({},a.event.special.orientationchange,{setup:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;h=g(),d.bind("throttledresize",o)},teardown:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;d.unbind("throttledresize",o)},add:function(a){var b=a.handler;a.handler=function(a){return a.orientation=g(),b.apply(this,arguments)}}}),a.event.special.orientationchange.orientation=g=function(){var d=!0,e=c.documentElement;return a.support.orientation?d=k[b.orientation]:d=e&&e.clientWidth/e.clientHeight<1.1,d?"portrait":"landscape"},a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)},a.attrFn&&(a.attrFn[e]=!0)}(a,this),function(a,d){var e=a(b),f=a("html");a.mobile.media=function(){var b={},d=a("
"),e=a("").append(d);return function(a){if(!(a in b)){var g=c.createElement("style"),h="@media "+a+" { #jquery-mediatest { position:absolute; } }";g.type="text/css",g.styleSheet?g.styleSheet.cssText=h:g.appendChild(c.createTextNode(h)),f.prepend(e).prepend(g),b[a]=d.css("position")==="absolute",e.add(g).remove()}return b[a]}}()}(a),function(a,d){function e(a){var b=a.charAt(0).toUpperCase()+a.substr(1),c=(a+" "+h.join(b+" ")+b).split(" ");for(var e in c)if(g[c[e]]!==d)return!0}function m(a,b,d){var e=c.createElement("div"),f=function(a){return a.charAt(0).toUpperCase()+a.substr(1)},g=function(a){return"-"+a.charAt(0).toLowerCase()+a.substr(1)+"-"},i=function(c){var d=g(c)+a+": "+b+";",h=f(c),i=h+f(a);e.setAttribute("style",d),!e.style[i]||(k=!0)},j=d?[d]:h,k;for(var l=0;l",{href:b}).appendTo("head"),g=a("").prependTo(f),h=g[0].href,c[0].href=e||location.pathname,d&&d.remove(),h.indexOf(b)===0}function p(){var a=c.createElement("x"),d=c.documentElement,e=b.getComputedStyle,f;return"pointerEvents"in a.style?(a.style.pointerEvents="auto",a.style.pointerEvents="x",d.appendChild(a),f=e&&e(a,"").pointerEvents==="auto",d.removeChild(a),!!f):!1}function q(){var a=c.createElement("div");return typeof a.getBoundingClientRect!="undefined"}var f=a("").prependTo("html"),g=f[0].style,h=["Webkit","Moz","O"],i="palmGetResource"in b,j=b.opera,k=b.operamini&&{}.toString.call(b.operamini)==="[object OperaMini]",l=b.blackberry&&!e("-webkit-transform");a.extend(a.mobile,{browser:{}}),a.mobile.browser.ie=function(){var a=3,b=c.createElement("div"),d=b.all||[];do b.innerHTML="";while(d[0]);return a>4?a:!a}(),a.extend(a.support,{cssTransitions:"WebKitTransitionEvent"in b||m("transition","height 100ms linear")&&!j,pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!e("content"),touchOverflow:!!e("overflowScrolling"),cssTransform3d:n(),boxShadow:!!e("boxShadow")&&!l,scrollTop:("pageXOffset"in b||"scrollTop"in c.documentElement||"scrollTop"in f[0])&&!i&&!k,dynamicBaseTag:o(),cssPointerEvents:p(),boundingRect:q()}),f.remove();var r=function(){var a=b.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.gradeA=function(){return(a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7)&&(a.support.boundingRect||a.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)},a.mobile.ajaxBlacklist=b.blackberry&&!b.WebKitPoint||k||r,r&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")}(a),function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var a=this;if(a._trigger("beforecreate")===!1)return!1;a.element.attr("tabindex","0").addClass("ui-page ui-body-"+a.options.theme).bind("pagebeforehide",function(){a.removeContainerBackground()}).bind("pagebeforeshow",function(){a.setContainerBackground()})},refresh:function(){a(".ui-page-active").children(".ui-content").trigger("updatelayout",["external"])},setToolbar:function(){a(".ui-page").trigger("pagebeforeshow")},removeContainerBackground:function(){a.mobile.pageContainer.removeClass("ui-overlay-"+a.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(b){this.options.theme&&a.mobile.pageContainer.addClass("ui-overlay-"+(b||this.options.theme))},addBackBtn:function(b){var c=a(".ui-page-active .ui-footer");b=="header"&&(c=a(".ui-page-active .ui-header")),backBtn=a("").buttonMarkup({icon:"header-back-btn",theme:"s"}),c.find(".ui-btn-back").length||backBtn.prependTo(c)},keepNativeSelector:function(){var b=this.options,c=b.keepNative&&a.trim(b.keepNative);return c&&b.keepNative!==b.keepNativeDefault?[b.keepNative,b.keepNativeDefault].join(", "):b.keepNativeDefault}})}(a),function(a,b,d){function k(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var e="hashchange",f=c,g,h=a.event.special,i=f.documentMode,j="on"+e in b&&(i===d||i>7);a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)},a.fn[e].delay=50,h[e]=a.extend(h[e],{setup:function(){if(j)return!1;a(g.start)},teardown:function(){if(j)return!1;a(g.stop)}}),g=function(){function n(){var c=k(),d=m(h);c!==h?(l(h=c,d),a(b).trigger(e)):d!==h&&(location.href=location.href.replace(/#.*/,"")+d),g=setTimeout(n,a.fn[e].delay)}var c={},g,h=k(),i=function(a){return a},l=i,m=i;return c.start=function(){g||n()},c.stop=function(){g&&clearTimeout(g),g=d},a.browser.msie&&!j&&function(){var b,d;c.start=function(){b||(d=a.fn[e].src,d=d&&d+k(),b=a('