code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
|---|---|---|---|---|---|
local Class = require 'utils.class'
local Block = require 'specific.block'
local global = require 'global'
local Fence = Class{
name='fence',
__includes = Block
}
local fw = global.tileWidth/3
local fh = global.tileHeight
function Fence:init(map, world, x,y)
Block.init(self, world, x,y,fw,fh,global.tileWidth/2-fw/2,0)
self.map = map
self.r = 0
end
return Fence
|
KanagiMiss/popjumper
|
specific/fence.lua
|
Lua
|
mit
| 380
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_file_execl_54b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-54b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSource: Fixed string
* Sink: execl
* BadSink : execute command with wexecl
* Flow Variant: 54 Data flow: data passed as an argument from one function through three others to a fifth; all five functions are in different source files
*
* */
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INT_PATH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INT L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir"
#define COMMAND_ARG3 data
#else /* NOT _WIN32 */
#include <unistd.h>
#define COMMAND_INT_PATH L"/bin/sh"
#define COMMAND_INT L"sh"
#define COMMAND_ARG1 L"ls"
#define COMMAND_ARG2 L"-la"
#define COMMAND_ARG3 data
#endif
#ifdef _WIN32
#define FILENAME "C:\\temp\\file.txt"
#else
#define FILENAME "/tmp/file.txt"
#endif
#ifdef _WIN32
#include <process.h>
#define EXECL _wexecl
#else /* NOT _WIN32 */
#define EXECL execl
#endif
/* all the sinks are the same, we just want to know where the hit originated if a tool flags one */
#ifndef OMITBAD
/* bad function declaration */
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(wchar_t * data);
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink(wchar_t * data)
{
CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(data);
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* good function declaration */
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(wchar_t * data);
/* goodG2B uses the GoodSource with the BadSink */
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_goodG2BSink(wchar_t * data)
{
CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(data);
}
#endif /* OMITGOOD */
|
maurer/tiamat
|
samples/Juliet/testcases/CWE78_OS_Command_Injection/s07/CWE78_OS_Command_Injection__wchar_t_file_execl_54b.c
|
C
|
mit
| 2,041
|
<br>
<br>
<?php
$deporte[]='Deporte*';
foreach ($datos as $dato) {
$deporte[$dato->nombre]=$dato->nombre;
}
foreach ($usuarios as $usuario){
$nombre=(isset($nombre)) ? $nombre=$nombre : $nombre= $usuario->nombre;
$apellidos=(isset($apellidos)) ? $apellidos=$apellidos : $apellidos=$usuario->apellidos;
$ciudad=(isset($ciudad)) ? $ciudad=$ciudad : $ciudad=$usuario->ciudad;
$correo=(isset($correo)) ? $correo=$correo : $correo=$usuario->correo;
$nombre_usuario=(isset($nombre_usuario)) ? $nombre_usuario=$nombre_usuario : $nombre_usuario=$usuario->nombre_usuario;
$contraseña=(isset($contraseña)) ? $contraseña=$contraseña : $contraseña=$usuario->contraseña;
$repetir_contraseña=(isset($repetir_contraseña)) ? $repetir_contraseña=$repetir_contraseña : $repetir_contraseña=$usuario->contraseña;
$deporte1=(isset($deporte1)) ? $deporte1=$deporte1 : $deporte1=$usuario->deporte;
}
$nom = array(
'name' => 'nombre',
'value' => $nombre,
'placeholder' =>'Nombre*',
'class' => 'form-control',
);
$ape = array(
'name' => 'apellidos',
'value' => $apellidos,
'placeholder' =>'Apellidos*',
'class' => 'form-control',
);
$ciu = array(
'name' => 'ciudad',
'value' => $ciudad,
'placeholder' =>'Ciudad*',
'class' => 'form-control',
);
$cor = array(
'name' => 'correo',
'value' => $correo,
'placeholder' =>'Correo electrónico*',
'class' => 'form-control',
);
$nomU = array(
'name' => 'nombre_usuario',
'value' => $nombre_usuario,
'placeholder' =>'Nombre de Usuario*',
'class' => 'form-control',
);
$cont = array(
'name' => 'contraseña',
'value' => $contraseña,
'placeholder' =>'Contraseña*',
'class' => 'form-control',
);
$rcont = array(
'name' => 'repetir_contrasena',
'value' => $repetir_contraseña,
'placeholder' =>'Repetir Contraseña*',
'class' => 'form-control',
);
?>
<div class='container'>
<div class="row" style="background: rgba(255, 255, 255, .8)">
<div class="col-md-7">
<p><h1>Editar Perfil</h1></p>
<?= form_open('ControladorUsuario/guardar_cambios'); ?>
<?php echo validation_errors(); ?>
<table border="0">
<tr>
<td><?= form_input($nom, ['id'=>'nombre']); ?></td>
<td><?= form_input($ape, ['id'=>'apellidos']); ?></td>
</tr>
<tr>
<td><?= form_input($ciu, ['id'=>'ciudad']); ?></td>
<td><?= form_dropdown('deporte', $deporte, $deporte1, 'class="form-control"', ['id'=>'deporte']) ?> </td>
</tr>
<tr>
<td><?= form_input($cor, ['id'=>'correo']); ?></td>
<td><?= form_input($nomU,['id'=>'nombre_usuario']); ?></td>
</tr>
<tr>
<td><?= form_password($cont, ['id'=>'contraseña']); ?></td>
<td><?= form_password($rcont, ['id'=>'repetir_contrasena']); ?></td>
</tr>
</table>
<br>
<p class="help-block"> La contraseña debe tener por lo menos 1 letra en mayúscula, <br> 1 en minúscula, 1 digito y 1 caracter especial y tener una longitud mayor o igual a 7</p>
<?= form_submit('sbm', 'Guardar', 'class="btn btn-primary"'); ?>
<?= form_close(); ?>
<?php if(isset($mensaje)):
echo $mensaje;
endif;
?>
</div>
</div>
</div>
|
albeiroep/sportremind
|
application/views/editar_perfil_vista.php
|
PHP
|
mit
| 3,710
|
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
/*
|--------------------------------------------------------------------------
| API (Client Credentials) Routes
|--------------------------------------------------------------------------
|
| For API requests that use a token from the OAuth client_credentials flow
| -- Important: All requests to these routes must include a HTTP header
| -- X-Api-UsesClientCredentials = 1
|
*/
Route::get('version', function () {
return response()->json(['version' => 'Flares API (client credentials) v2'], 200);
});
Route::group(['middleware' => 'clientCredentials:manage-sso'], function() {
Route::post('usersso/{userId}/link', 'UserSSOController@provisionSSO')->name('link');
Route::resource('usersso', 'UserSSOController', ['only' => ['store', 'destroy']]);
});
Route::group(['middleware' => 'clientCredentials:submit-decorations'], function() {
Route::resource('approval', 'DecorationApprovalController', ['only' => ['index', 'store']]);
});
Route::group(['middleware' => 'clientCredentials:sync-members'], function() {
Route::post('membersync', 'MemberSyncController@sync');
Route::post('membersync/presync', 'MemberSyncController@presync');
});
|
alansfyeung/FLARES
|
routes/api-clientcred.php
|
PHP
|
mit
| 1,239
|
/*(function() {
'use strict';
angular.module('myApp', []).controller('VideoListController', function($http, $log) {
var ctrl = this;
ctrl.query = 'Rick Astley';
ctrl.search = function() {
return $http.get('https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=20&type=video&q=' + ctrl.query + '&key=AIzaSyD4YJITOWdfQdFbcxHc6TgeCKmVS9yRuQ8')
.then(function(res) {
$log.info(res.data.items);
ctrl.videos = res.data.items.map(function (v) {
var snip = v.snippet;
return {
title: snip.title,
description: snip.description,
thumb: snip.thumbnails.medium.url,
link: 'https://www.youtube.com/watch?v=' + v.id.videoId
};
});
});
}
ctrl.search();
});
})();*/
|
rasmusvhansen/angularjs-foundation-course
|
exercises/03Controllers/app2.js
|
JavaScript
|
mit
| 884
|
# Change Log
更新紀錄
## [Unreleased]
### Changed
- 重構filter相關元件
- 效能改進
## [1.0.1] - 2017-05-20
### Changed
- 修改首頁說明
- webpack to 2.5.1
- react to 15.5.4
## [1.0.0] - 2017-05-12
### Added
- 共現分析
## [0.4.1] - 2017-05-07
### Added
- 首頁說明
- 示範資料集
### Changed
- 在語境分析裡加入篩選器
## [0.4.0] - 2017-05-01
### Added
- 語境分析
## [0.3.1] - 2017-04-11
### Changed
- 重構action
- 改寫路由方法
- 改寫setState部份,保護root component
## [0.3.0] - 2017-04-11
### Added
- 篩選器模組
- README.md
- CHANGELOG.md
## [Before 0.3.0]
### Added
- 輸入資科狀態
- 詞頻分析
|
ldkrsi/TaiwanDH-React
|
CHANGELOG.md
|
Markdown
|
mit
| 673
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
/* Shared styles */
body {
font-family: HelveticaNeue, sans-serif;
font-size: 16.0px;
color: #34302e;
margin: 0.25in;
}
.name {
font-size: 18.0px;
font-family: Futura, Helvetica, sans-serif;
font-weight: normal;
margin: 0 0 10px 0;
}
.categories {
color: #605D5D;
font-size: 14.0px;
font-family: Helvetica, sans-serif;
font-style: italic;
}
.rating {
color: #d10505;
font-size: 14.0px;
}
.metadata {
font-size: 14.0px;
}
.infobox p {
margin: 0;
line-height: 150%;
}
.subhead {
color: #d10505;
font-weight: bold;
font-size: 14.0px;
text-transform: uppercase;
margin: 10px 0;
}
.ingredients p {
margin: 4px 0;
}
.clear {
clear:both;
}
a {
color: #4990E2;
text-decoration: none;
}
/* Full page specific styles */
.text {
line-height: 130%;
}
.photobox {
float: left;
margin-right: 14px;
}
.photo {
max-width: 140px;
max-height: 140px;
width: auto;
height: auto;
}
.columnbox {
}
.inline-image {
max-width: 140px;
max-height: 140px;
width: auto;
height: auto;
}
.photoswipe {
border: 1px #dddddd solid;
cursor: pointer;
}
.pswp__caption__center {
text-align: center !important;
}
</style>
</head>
<body>
<!-- Recipe -->
<div class="recipe" itemscope itemtype="http://schema.org/Recipe">
<div class="infobox">
<!-- Image -->
<div class="photobox">
<a href="http://reckittbenckiser.calcmenuweb.com/picOriginal/P082114193930_3.jpg">
<img src="Images/7D970237-BB09-47FD-8534-EB71C6784381-1185-0000021071598E6E/F22FA66F-0AEC-47DD-9260-982BC8613FA2-1185-00000210715A06F9.jpg" itemprop="image" class="photo photoswipe"/>
</a>
</div>
<!-- Name -->
<h1 itemprop="name" class="name">Green Bean Bake</h1>
<!-- Info -->
<!-- Rating, categories -->
<p itemprop="aggregateRating" class="rating" value="4">★★★★</p>
<p itemprop="recipeCategory" class="categories">Holiday, Sides, Thanksgiving</p>
<p class="metadata">
<!-- Cook time, prep time, servings, difficulty -->
<b>Prep Time: </b><span itemprop="prepTime">5min</span>
<b>Cook Time: </b><span itemprop="cookTime">35min</span>
<b>Servings: </b><span itemprop="recipeYield">6 servings</span>
<!-- Source -->
<b>Source: </b>
<a itemprop="url" href="http://www.frenchs.com/recipe/frenchs-green-bean-casserole-RE1511-1">
<span itemprop="author">Frenchs.com</span>
</a>
</p>
<div class="clear"></div>
</div>
<div class="columnbox">
<!-- Ingredients -->
<div class="ingredientsbox">
<h3 class="subhead">Ingredients</h3>
<div class="ingredients text">
<p class="line" itemprop="recipeIngredient"><strong>1</strong> can (10 1/2 oz.) Campbell's® Condensed Cream of Mushroom Soup</p><p class="line" itemprop="recipeIngredient"><strong>3/4</strong> cup milk</p><p class="line" itemprop="recipeIngredient"><strong>1/8</strong> tsp. black pepper</p><p class="line" itemprop="recipeIngredient"><strong>4</strong> cups cooked cut green beans or 2 cans (14.5oz each) any style Del Monte® Green Beans, drained</p><p class="line" itemprop="recipeIngredient"><strong>1 1/3</strong> cups FRENCH'S® Crispy Fried Onions</p>
</div>
</div>
<!-- Nutrition (in two-column mode it goes below the ingredients) -->
</div>
<!-- Descriptino -->
<!-- Directions -->
<div class="directionsbox">
<h3 class="subhead">Directions</h3>
<div itemprop="recipeInstructions" class="directions text">
<p class="line">MIX soup, milk and pepper in a 1 1/2 -qt. baking dish. Stir in beans and 2/3 cup Crispy Fried Onions.</p><p class="line">BAKE at 350°F for <span class='timer' time='1800.0'>30 min</span>. or until hot. Stir.</p><p class="line">TOP with remaining 2/3 cup onions. Bake <span class='timer' time='300.0'>5 min</span>. until onions are golden.</p><p class="line">For a twist, try the Festive Green Bean Casserole.</p>
</div>
</div>
<!-- Notes -->
<div class="notesbox">
<h3 class="subhead">Notes</h3>
<div itemprop="comment" class="notes text">
<p>Look for French's® Crispy Fried Onions in the canned vegetable aisle!</p>
</div>
</div>
<!-- Nutrition (in regular mode it goes below the notes) -->
<!-- Used in two different places depending on the recipe layout -->
</div>
<!-- PhotoSwipe gallery -->
<link rel="stylesheet" href="Resources/PhotoSwipe/photoswipe.css">
<link rel="stylesheet" href="Resources/PhotoSwipe/default-skin/default-skin.css">
<script src="Resources/PhotoSwipe/photoswipe.min.js"></script>
<script src="Resources/PhotoSwipe/photoswipe-ui-default.min.js"></script>
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<div class="pswp__bg"></div>
<div class="pswp__scroll-wrap">
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close"></button>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var openPhotoSwipe = function(event) {
var pswp = document.querySelector('.pswp');
var element = event.target;
var src = element.getAttribute('src');
// build items array
var items = [
];
var index = 0;
for (var i=0; i<items.length; i++) {
var item = items[i];
if (item.src == src) {
index = i;
}
}
var options = {
index: index,
history: false,
focus: true,
captionEl: true,
fullscreenEl: false,
zoomEl: false,
shareEl: false,
preloaderEl: false,
bgOpacity: 0.9,
showHideOpacity: true
};
var gallery = new PhotoSwipe(pswp, PhotoSwipeUI_Default, items, options);
gallery.init();
};
var elements = document.querySelectorAll('.photoswipe');
for (var i=0; i<elements.length; i++) {
var element = elements[i];
element.addEventListener('click', openPhotoSwipe);
}
</script>
</body>
</html>
|
bobtiki/Recipes
|
Paprika-Recipes/Recipes/Green Bean Bake.html
|
HTML
|
mit
| 8,636
|
import React, { PropTypes } from 'react';
import CSSModules from 'react-css-modules';
// Styles
import styles from './index.scss';
const propTypes = {
crises: PropTypes.array.isRequired,
};
const CrisisArchiveList = ({ crises }) => (
<div styleName='CrisisArchiveList'>
<h1>
All Crises
</h1>
<ul>
{crises.map((crisis, i) => {
const crisisStatusText = crisis.status === 'ARC' ?
'archived' :
'active';
return (
<li
styleName={crisisStatusText}
key={i}
>
<div styleName='header'>
{crisis.title}
</div>
<div styleName='body'>
<span>{crisis.incidents.length} incidents</span>
{crisis.description &&
<div styleName='description'>
Description: {crisis.description}
</div>
}
</div>
<div styleName='footer'>
<span styleName='tag'>
{crisis.status === 'ARC' ?
<i className='ion-ios-box-outline' /> :
<i className='ion-ios-pulse' />
}
{crisisStatusText}
</span>
</div>
</li>
);
})}
</ul>
</div>
);
CrisisArchiveList.propTypes = propTypes;
export default CSSModules(CrisisArchiveList, styles);
|
Temzasse/ntu-crysis
|
client/components/crisis/CrisisArchiveList/index.js
|
JavaScript
|
mit
| 1,416
|
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/** Provides sync access to async component. Date component can be lazy created - this class encapsulates
* this by keeping value locally until DateComp has loaded, then passing DateComp the value. */
var DateCompWrapper = /** @class */ (function () {
function DateCompWrapper(context, userComponentFactory, dateComponentParams, eParent) {
var _this = this;
this.alive = true;
this.context = context;
userComponentFactory.newDateComponent(dateComponentParams).then(function (dateComp) {
// because async, check the filter still exists after component comes back
if (!_this.alive) {
context.destroyBean(dateComp);
return;
}
_this.dateComp = dateComp;
eParent.appendChild(dateComp.getGui());
if (dateComp.afterGuiAttached) {
dateComp.afterGuiAttached();
}
if (_this.tempValue) {
dateComp.setDate(_this.tempValue);
}
});
}
DateCompWrapper.prototype.destroy = function () {
this.alive = false;
this.dateComp = this.context.destroyBean(this.dateComp);
};
DateCompWrapper.prototype.getDate = function () {
return this.dateComp ? this.dateComp.getDate() : this.tempValue;
};
DateCompWrapper.prototype.setDate = function (value) {
if (this.dateComp) {
this.dateComp.setDate(value);
}
else {
this.tempValue = value;
}
};
DateCompWrapper.prototype.setInputPlaceholder = function (placeholder) {
if (this.dateComp && this.dateComp.setInputPlaceholder) {
this.dateComp.setInputPlaceholder(placeholder);
}
};
DateCompWrapper.prototype.setInputAriaLabel = function (label) {
if (this.dateComp && this.dateComp.setInputAriaLabel) {
this.dateComp.setInputAriaLabel(label);
}
};
DateCompWrapper.prototype.afterGuiAttached = function (params) {
if (this.dateComp && typeof this.dateComp.afterGuiAttached === 'function') {
this.dateComp.afterGuiAttached(params);
}
};
return DateCompWrapper;
}());
exports.DateCompWrapper = DateCompWrapper;
//# sourceMappingURL=dateCompWrapper.js.map
|
ceolter/angular-grid
|
community-modules/core/dist/cjs/filter/provided/date/dateCompWrapper.js
|
JavaScript
|
mit
| 2,578
|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class MakePatientInfoTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('patient_info', function(Blueprint $table)
{
$table->bigincrements('file_number');
$table->char('name' , 90);
$table->biginteger('id_number');
$table->text('residents');
$table->string('sex');
$table->integer('age');
$table->text('marital_status');
$table->char('next_of_keen' ,90);
$table->biginteger('keen_phone_number');
$table->text('postal address');
$table->biginteger('phone_number');
$table->string('email');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('patient_info');
}
}
|
Meritei/MOI-TEACHING-AND-REFERAL-HOSPITALONLINE-HOSPITAL-MANAGEMENT-SYSTEMS
|
app/database/migrations/2015_02_25_123444_make_patient_info_table.php
|
PHP
|
mit
| 856
|
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "AMTokenFieldCell.h"
#import "IBDocumentArchiving-Protocol.h"
@interface AMTokenFieldCell (IBDocumentArchivingGenerator) <IBDocumentArchiving>
- (void)unarchiveWithDocumentUnarchiver:(id)arg1;
- (void)archiveWithDocumentArchiver:(id)arg1;
@end
|
liyong03/YLCleaner
|
YLCleaner/Xcode-RuntimeHeaders/IDEInterfaceBuilderCocoa/AMTokenFieldCell-IBDocumentArchivingGenerator.h
|
C
|
mit
| 397
|
package laatikot;
import java.util.ArrayList;
import java.util.List;
public class YhdenTavaranLaatikko extends Laatikko {
private List<Tavara> laatikko;
public YhdenTavaranLaatikko(){
this.laatikko = new ArrayList<Tavara>();
}
@Override
public void lisaa(Tavara tavara) {
if(this.laatikko.isEmpty()){
this.laatikko.add(tavara);
}
}
@Override
public boolean onkoLaatikossa(Tavara tavara) {
if(this.laatikko.contains(tavara)){
return true;
}else{
return false;
}
}
}
|
Vahtix/Ohjelmoinnin-MOOC-2017-nodl
|
Osa10/Osa10_07.ErilaisiaLaatikoita/src/laatikot/YhdenTavaranLaatikko.java
|
Java
|
mit
| 507
|
<!-- //INDEX Page -->
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="/stylesheet.css">
</head>
<div>
<p>Im content</p>
<div>
|
baottran/CRITIQ
|
_tests/transition_hover/index.html
|
HTML
|
mit
| 137
|
from flask_bcrypt import check_password_hash
from project.user.services.create_user_service import CreateUserService
from project.user.services.login_user_service import LoginUserService
from project.user.services.logout_user_service import LogoutUserService
from project.user.finders.user_finder import UserFinder
from project.utils import flash
class UserHandler:
@classmethod
def login(cls, form):
"""
Login user by giving "LoginForm" form and validate if username+password pair is valid
"""
if not form.validate_on_submit():
flash.danger(u'Form is not valid.')
return False
user = UserFinder.by_username(form.username.data)
if not user:
flash.danger(u'User {} does not exists.'.format(form.username.data))
return False
if not check_password_hash(user.password, form.password.data):
flash.warning(u'Invalid Credentials. Please try again.')
return False
LoginUserService(user).call()
return user
@classmethod
def logout(cls):
"""
Delete user session
"""
return LogoutUserService().call()
@classmethod
def register(cls, form):
"""
Create new user by given "RegisterForm"
"""
if not form.validate_on_submit():
flash.danger(u'Form is not valid.')
return False
user = CreateUserService(form.username.data, form.password.data).call()
return LoginUserService(user).call()
|
andreffs18/flask-template-project
|
project/user/handlers/user_handler.py
|
Python
|
mit
| 1,551
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css'>
<title>Hello React</title>
</head>
<body>
<div id="react-root"></div>
<script src="/dist/bundle.js"></script>
</body>
</html>
|
pineapplemidi/pw-survey
|
index.html
|
HTML
|
mit
| 307
|
'use strict';
import './index.html';
import 'babel-core/polyfill';
import PIXI from 'pixi.js';
import TWEEN from 'tween.js';
import Renderer from './Renderer/Renderer';
import App from './displayobjects/App/App.js';
var renderer = new Renderer();
var stage = new PIXI.Stage(0x333333);
var app = new App(1920, 1080);
function animate() {
renderer.render(stage);
window.requestAnimationFrame(animate);
TWEEN.update();
}
document.body.appendChild(renderer.view);
stage.addChild(app);
animate();
|
edwinwebb/dashboard-playground
|
app/app.js
|
JavaScript
|
mit
| 506
|
// File generated from our OpenAPI spec
package com.stripe.model;
public class SubscriptionCollection extends StripeCollection<Subscription> {}
|
stripe/stripe-java
|
src/main/java/com/stripe/model/SubscriptionCollection.java
|
Java
|
mit
| 145
|
@charset "UTF-8";
:root {
--surface-a:#1e1e1e;
--surface-b:#121212;
--surface-c:rgba(255, 255, 255, 0.03);
--surface-d:#383838;
--surface-e:#1e1e1e;
--surface-f:#1e1e1e;
--text-color:rgba(255, 255, 255, 0.87);
--text-color-secondary:rgba(255, 255, 255, 0.6);
--primary-color:#64B5F6;
--primary-color-text:#212529;
--font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; }
* {
box-sizing: border-box; }
.p-component {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: normal; }
.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4);
transition-duration: 0.2s; }
.p-disabled, .p-component:disabled {
opacity: 0.4; }
.p-error, .p-invalid {
color: #ef9a9a; }
.p-text-secondary {
color: rgba(255, 255, 255, 0.6); }
.pi {
font-size: 1rem; }
.p-link {
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
border-radius: 3px; }
.p-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-autocomplete .p-autocomplete-loader {
right: 0.5rem; }
.p-autocomplete.p-autocomplete-dd .p-autocomplete-loader {
right: 2.857rem; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container {
padding: 0.25rem 0.5rem; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled):hover {
border-color: #64B5F6; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token {
padding: 0.25rem 0; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon {
margin-left: 0.5rem; }
.p-autocomplete.p-error > .p-inputtext, .p-autocomplete.p-invalid > .p-inputtext {
border-color: #ef9a9a; }
.p-autocomplete-panel {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-autocomplete-panel .p-autocomplete-items {
padding: 0.5rem 0; }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-calendar.p-error > .p-inputtext, .p-calendar.p-invalid > .p-inputtext {
border-color: #ef9a9a; }
.p-datepicker {
padding: 0.5rem;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px; }
.p-datepicker:not(.p-datepicker-inline) {
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {
background: #1e1e1e; }
.p-datepicker .p-datepicker-header {
padding: 0.5rem;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
margin: 0;
border-bottom: 1px solid #383838;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-datepicker .p-datepicker-header .p-datepicker-prev,
.p-datepicker .p-datepicker-header .p-datepicker-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,
.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,
.p-datepicker .p-datepicker-header .p-datepicker-next:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 2rem; }
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
margin-right: 0.5rem; }
.p-datepicker table {
font-size: 1rem;
margin: 0.5rem 0; }
.p-datepicker table th {
padding: 0.5rem; }
.p-datepicker table th > span {
width: 2.5rem;
height: 2.5rem; }
.p-datepicker table td {
padding: 0.5rem; }
.p-datepicker table td > span {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
transition: box-shadow 0.2s;
border: 1px solid transparent; }
.p-datepicker table td > span.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-datepicker table td > span:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datepicker table td.p-datepicker-today > span {
background: transparent;
color: #64B5F6;
border-color: transparent; }
.p-datepicker table td.p-datepicker-today > span.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-datepicker .p-datepicker-buttonbar {
padding: 1rem 0;
border-top: 1px solid #383838; }
.p-datepicker .p-datepicker-buttonbar .p-button {
width: auto; }
.p-datepicker .p-timepicker {
border-top: 1px solid #383838;
padding: 0.5rem; }
.p-datepicker .p-timepicker button {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-timepicker button:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datepicker .p-timepicker button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datepicker .p-timepicker button:last-child {
margin-top: .2em; }
.p-datepicker .p-timepicker span {
font-size: 1.25rem; }
.p-datepicker .p-timepicker > div {
padding: 0 0.5rem; }
.p-datepicker.p-datepicker-timeonly .p-timepicker {
border-top: 0 none; }
.p-datepicker .p-monthpicker {
margin: 0.5rem 0; }
.p-datepicker .p-monthpicker .p-monthpicker-month {
padding: 0.5rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
border-right: 1px solid #383838;
padding-right: 0.5rem;
padding-left: 0.5rem;
padding-top: 0;
padding-bottom: 0; }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
padding-left: 0; }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
padding-right: 0;
border-right: 0 none; }
.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datepicker-mask.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
@media screen and (max-width: 769px) {
.p-datepicker table th, .p-datepicker table td {
padding: 0; } }
.p-checkbox {
width: 20px;
height: 20px; }
.p-checkbox .p-checkbox-box {
border: 2px solid #383838;
background: #121212;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-checkbox .p-checkbox-box .p-checkbox-icon {
transition-duration: 0.2s;
color: #212529;
font-size: 14px; }
.p-checkbox .p-checkbox-box:not(.p-disabled):hover {
border-color: #64B5F6; }
.p-checkbox .p-checkbox-box:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-checkbox .p-checkbox-box.p-highlight {
border-color: #64B5F6;
background: #64B5F6; }
.p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover {
border-color: #2396f2;
background: #2396f2;
color: #212529; }
.p-checkbox.p-error > .p-checkbox-box, .p-checkbox.p-invalid > .p-checkbox-box {
border-color: #ef9a9a; }
.p-input-filled .p-checkbox .p-checkbox-box {
background-color: #383838; }
.p-input-filled .p-checkbox .p-checkbox-box:not(.p-disabled):hover {
background-color: #383838; }
.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {
background: #64B5F6; }
.p-input-filled .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover {
background: #2396f2; }
.p-chips .p-chips-multiple-container {
padding: 0.25rem 0.5rem; }
.p-chips .p-chips-multiple-container:not(.p-disabled):hover {
border-color: #64B5F6; }
.p-chips .p-chips-multiple-container:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-chips .p-chips-multiple-container .p-chips-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
margin-left: 0.5rem; }
.p-chips .p-chips-multiple-container .p-chips-input-token {
padding: 0.25rem 0; }
.p-chips .p-chips-multiple-container .p-chips-input-token input {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0; }
.p-chips.p-error > .p-inputtext, .p-chips.p-invalid > .p-inputtext {
border-color: #ef9a9a; }
.p-colorpicker-preview {
width: 2rem;
height: 2rem; }
.p-colorpicker-panel {
background: #1e1e1e;
border-color: #383838; }
.p-colorpicker-panel .p-colorpicker-color-handle,
.p-colorpicker-panel .p-colorpicker-hue-handle {
border-color: rgba(255, 255, 255, 0.87); }
.p-colorpicker-overlay-panel {
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-dropdown {
background: #121212;
border: 1px solid #383838;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-dropdown:not(.p-disabled):hover {
border-color: #64B5F6; }
.p-dropdown:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-dropdown.p-dropdown-clearable .p-dropdown-label {
padding-right: 1.5rem; }
.p-dropdown .p-dropdown-label {
background: transparent;
border: 0 none; }
.p-dropdown .p-dropdown-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-dropdown .p-dropdown-label:enabled:focus {
outline: 0 none;
box-shadow: none; }
.p-dropdown .p-dropdown-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-dropdown .p-dropdown-clear-icon {
color: rgba(255, 255, 255, 0.6);
right: 2.357rem; }
.p-dropdown.p-error, .p-dropdown.p-invalid {
border-color: #ef9a9a; }
.p-dropdown-panel {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-dropdown-panel .p-dropdown-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {
padding-right: 1.5rem; }
.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-dropdown-panel .p-dropdown-items {
padding: 0.5rem 0; }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-input-filled .p-dropdown {
background: #383838; }
.p-input-filled .p-dropdown:not(.p-disabled):hover {
background-color: #383838; }
.p-input-filled .p-dropdown:not(.p-disabled).p-focus {
background-color: #383838; }
.p-editor-container .p-editor-toolbar {
background: #1e1e1e;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-editor-container .p-editor-toolbar.ql-snow {
border: 1px solid #383838; }
.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {
stroke: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {
fill: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {
border: 0 none;
color: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 1rem;
border-radius: 3px; }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-editor-container .p-editor-content {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-editor-container .p-editor-content.ql-snow {
border: 1px solid #383838; }
.p-editor-container .p-editor-content .ql-editor {
background: #121212;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-editor-container .ql-snow.ql-toolbar button:hover,
.p-editor-container .ql-snow.ql-toolbar button:focus {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button.ql-active,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
color: #64B5F6; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {
stroke: #64B5F6; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {
fill: #64B5F6; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {
color: #64B5F6; }
.p-inputgroup-addon {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border-top: 1px solid #383838;
border-left: 1px solid #383838;
border-bottom: 1px solid #383838;
padding: 0.5rem 0.5rem;
min-width: 2.357rem; }
.p-inputgroup-addon:last-child {
border-right: 1px solid #383838; }
.p-inputgroup > .p-component,
.p-inputgroup > .p-inputwrapper > .p-inputtext,
.p-inputgroup > .p-float-label > .p-component {
border-radius: 0;
margin: 0; }
.p-inputgroup > .p-component + .p-inputgroup-addon,
.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,
.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {
border-left: 0 none; }
.p-inputgroup > .p-component:focus,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,
.p-inputgroup > .p-float-label > .p-component:focus {
z-index: 1; }
.p-inputgroup > .p-component:focus ~ label,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label,
.p-inputgroup > .p-float-label > .p-component:focus ~ label {
z-index: 1; }
.p-inputgroup-addon:first-child,
.p-inputgroup button:first-child,
.p-inputgroup input:first-child,
.p-inputgroup > .p-inputwrapper:first-child,
.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-inputgroup .p-float-label:first-child input {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-inputgroup-addon:last-child,
.p-inputgroup button:last-child,
.p-inputgroup input:last-child,
.p-inputgroup > .p-inputwrapper:last-child,
.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-inputgroup .p-float-label:last-child input {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-fluid .p-inputgroup .p-button {
width: auto; }
.p-fluid .p-inputgroup .p-button.p-button-icon-only {
width: 2.357rem; }
.p-inputnumber.p-error > .p-inputtext, .p-inputnumber.p-invalid > .p-inputtext {
border-color: #ef9a9a; }
.p-inputswitch {
width: 3rem;
height: 1.75rem; }
.p-inputswitch .p-inputswitch-slider {
background: #383838;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 30px; }
.p-inputswitch .p-inputswitch-slider:before {
background: rgba(255, 255, 255, 0.6);
width: 1.25rem;
height: 1.25rem;
left: 0.25rem;
margin-top: -0.625rem;
border-radius: 50%;
transition-duration: 0.2s; }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
transform: translateX(1.25rem); }
.p-inputswitch.p-focus .p-inputswitch-slider {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {
background: rgba(255, 255, 255, 0.03); }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {
background: #64B5F6; }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
background: rgba(255, 255, 255, 0.87); }
.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
background: #43a5f4; }
.p-inputswitch.p-error, .p-inputswitch.p-invalid {
border-color: #ef9a9a; }
.p-inputtext {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
background: #121212;
padding: 0.5rem 0.5rem;
border: 1px solid #383838;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
appearance: none;
border-radius: 3px; }
.p-inputtext:enabled:hover {
border-color: #64B5F6; }
.p-inputtext:enabled:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-inputtext.p-error, .p-inputtext.p-invalid {
border-color: #ef9a9a; }
.p-inputtext.p-inputtext-sm {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem; }
.p-inputtext.p-inputtext-lg {
font-size: 1.25rem;
padding: 0.625rem 0.625rem; }
.p-float-label > label {
left: 0.5rem;
color: rgba(255, 255, 255, 0.6);
transition-duration: 0.2s; }
.p-input-icon-left > i:first-of-type {
left: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-input-icon-left > .p-inputtext {
padding-left: 2rem; }
.p-input-icon-right > i:last-of-type {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-input-icon-right > .p-inputtext {
padding-right: 2rem; }
::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.6); }
:-moz-placeholder {
color: rgba(255, 255, 255, 0.6); }
::-moz-placeholder {
color: rgba(255, 255, 255, 0.6); }
:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-input-filled .p-inputtext {
background-color: #383838; }
.p-input-filled .p-inputtext:enabled:hover {
background-color: #383838; }
.p-input-filled .p-inputtext:enabled:focus {
background-color: #383838; }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem; }
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem; }
.p-listbox {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px; }
.p-listbox .p-listbox-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-listbox .p-listbox-header .p-listbox-filter {
padding-right: 1.5rem; }
.p-listbox .p-listbox-header .p-listbox-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-listbox .p-listbox-list {
padding: 0.5rem 0; }
.p-listbox .p-listbox-list .p-listbox-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
border-radius: 0; }
.p-listbox .p-listbox-list .p-listbox-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-listbox .p-listbox-list .p-listbox-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-listbox .p-listbox-list .p-listbox-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-listbox.p-error, .p-listbox.p-invalid {
border-color: #ef9a9a; }
.p-multiselect {
background: #121212;
border: 1px solid #383838;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-multiselect:not(.p-disabled):hover {
border-color: #64B5F6; }
.p-multiselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-multiselect .p-multiselect-label {
padding: 0.5rem 0.5rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-multiselect .p-multiselect-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-multiselect .p-multiselect-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-multiselect.p-error, .p-multiselect.p-invalid {
border-color: #ef9a9a; }
.p-multiselect-panel {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-multiselect-panel .p-multiselect-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {
padding-right: 1.5rem; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-multiselect-panel .p-multiselect-header .p-checkbox {
margin-right: 0.5rem; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close {
margin-left: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-multiselect-panel .p-multiselect-items {
padding: 0.5rem 0; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {
margin-right: 0.5rem; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-input-filled .p-multiselect {
background: #383838; }
.p-input-filled .p-multiselect:not(.p-disabled):hover {
background-color: #383838; }
.p-input-filled .p-multiselect:not(.p-disabled).p-focus {
background-color: #383838; }
.p-password-panel {
padding: 1rem;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-password-panel .p-password-meter {
margin-bottom: 0.5rem; }
.p-radiobutton {
width: 20px;
height: 20px; }
.p-radiobutton .p-radiobutton-box {
border: 2px solid #383838;
background: #121212;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {
border-color: #64B5F6; }
.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
border-color: #64B5F6; }
.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {
width: 12px;
height: 12px;
transition-duration: 0.2s;
background-color: #212529; }
.p-radiobutton .p-radiobutton-box.p-highlight {
border-color: #64B5F6;
background: #64B5F6; }
.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
border-color: #2396f2;
background: #2396f2;
color: #212529; }
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; }
.p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #383838; }
.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {
background-color: #383838; }
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {
background: #64B5F6; }
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
background: #2396f2; }
.p-rating .p-rating-icon {
color: rgba(255, 255, 255, 0.87);
margin-left: 0.5rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
font-size: 1.143rem; }
.p-rating .p-rating-icon.p-rating-cancel {
color: #F48FB1; }
.p-rating .p-rating-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-rating .p-rating-icon:first-child {
margin-left: 0; }
.p-rating .p-rating-icon.pi-star {
color: #64B5F6; }
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {
color: #64B5F6; }
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {
color: #F48FB1; }
.p-selectbutton .p-button {
background: #1e1e1e;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-selectbutton .p-button .p-button-icon-left,
.p-selectbutton .p-button .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-selectbutton .p-button.p-highlight {
background: #64B5F6;
border-color: #64B5F6;
color: #212529; }
.p-selectbutton .p-button.p-highlight .p-button-icon-left,
.p-selectbutton .p-button.p-highlight .p-button-icon-right {
color: #212529; }
.p-selectbutton .p-button.p-highlight:hover {
background: #43a5f4;
border-color: #43a5f4;
color: #212529; }
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {
color: #212529; }
.p-selectbutton.p-error > .p-button, .p-selectbutton.p-invalid > .p-button {
border-color: #ef9a9a; }
.p-slider {
background: #383838;
border: 0 none;
border-radius: 3px; }
.p-slider.p-slider-horizontal {
height: 0.286rem; }
.p-slider.p-slider-horizontal .p-slider-handle {
margin-top: -0.5715rem;
margin-left: -0.5715rem; }
.p-slider.p-slider-vertical {
width: 0.286rem; }
.p-slider.p-slider-vertical .p-slider-handle {
margin-left: -0.5715rem;
margin-bottom: -0.5715rem; }
.p-slider .p-slider-handle {
height: 1.143rem;
width: 1.143rem;
background: #383838;
border: 2px solid #64B5F6;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-slider .p-slider-handle:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-slider .p-slider-range {
background: #64B5F6; }
.p-slider:not(.p-disabled) .p-slider-handle:hover {
background: #64B5F6;
border-color: #64B5F6; }
.p-togglebutton.p-button {
background: #1e1e1e;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-togglebutton.p-button .p-button-icon-left,
.p-togglebutton.p-button .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-togglebutton.p-button.p-highlight {
background: #64B5F6;
border-color: #64B5F6;
color: #212529; }
.p-togglebutton.p-button.p-highlight .p-button-icon-left,
.p-togglebutton.p-button.p-highlight .p-button-icon-right {
color: #212529; }
.p-togglebutton.p-button.p-highlight:hover {
background: #43a5f4;
border-color: #43a5f4;
color: #212529; }
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {
color: #212529; }
.p-togglebutton.p-button.p-error > .p-button, .p-togglebutton.p-button.p-invalid > .p-button {
border-color: #ef9a9a; }
.p-button {
color: #212529;
background: #64B5F6;
border: 1px solid #64B5F6;
padding: 0.5rem 1rem;
font-size: 1rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-button:enabled:hover {
background: #43a5f4;
color: #212529;
border-color: #43a5f4; }
.p-button:enabled:active {
background: #2396f2;
color: #212529;
border-color: #2396f2; }
.p-button.p-button-outlined {
background-color: transparent;
color: #64B5F6;
border: 1px solid; }
.p-button.p-button-outlined:enabled:hover {
background: rgba(100, 181, 246, 0.04);
color: #64B5F6;
border: 1px solid; }
.p-button.p-button-outlined:enabled:active {
background: rgba(100, 181, 246, 0.16);
color: #64B5F6;
border: 1px solid; }
.p-button.p-button-text {
background-color: transparent;
color: #64B5F6;
border-color: transparent; }
.p-button.p-button-text:enabled:hover {
background: rgba(100, 181, 246, 0.04);
color: #64B5F6;
border-color: transparent; }
.p-button.p-button-text:enabled:active {
background: rgba(100, 181, 246, 0.16);
color: #64B5F6;
border-color: transparent; }
.p-button.p-button-text.p-button-plain {
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:enabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-button .p-button-icon-left {
margin-right: 0.5rem; }
.p-button .p-button-icon-right {
margin-left: 0.5rem; }
.p-button .p-button-icon-bottom {
margin-top: 0.5rem; }
.p-button .p-button-icon-top {
margin-bottom: 0.5rem; }
.p-button .p-badge {
margin-left: 0.5rem;
min-width: 1rem;
height: 1rem;
line-height: 1rem;
color: #64B5F6;
background-color: #212529; }
.p-button.p-button-raised {
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); }
.p-button.p-button-rounded {
border-radius: 2rem; }
.p-button.p-button-icon-only {
width: 2.357rem;
padding: 0.5rem 0; }
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
margin: 0; }
.p-button.p-button-icon-only.p-button-rounded {
border-radius: 50%;
height: 2.357rem; }
.p-button.p-button-sm {
font-size: 0.875rem;
padding: 0.4375rem 0.875rem; }
.p-button.p-button-sm .p-button-icon {
font-size: 0.875rem; }
.p-button.p-button-lg {
font-size: 1.25rem;
padding: 0.625rem 1.25rem; }
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; }
.p-fluid .p-button {
width: 100%; }
.p-fluid .p-button-icon-only {
width: 2.357rem; }
.p-fluid .p-buttonset {
display: flex; }
.p-fluid .p-buttonset .p-button {
flex: 1; }
.p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {
color: #ffffff;
background: #78909C;
border: 1px solid #78909C; }
.p-button.p-button-secondary:enabled:hover, .p-buttonset.p-button-secondary > .p-button:enabled:hover, .p-splitbutton.p-button-secondary > .p-button:enabled:hover {
background: #69838f;
color: #ffffff;
border-color: #69838f; }
.p-button.p-button-secondary:enabled:focus, .p-buttonset.p-button-secondary > .p-button:enabled:focus, .p-splitbutton.p-button-secondary > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #a1b1ba; }
.p-button.p-button-secondary:enabled:active, .p-buttonset.p-button-secondary > .p-button:enabled:active, .p-splitbutton.p-button-secondary > .p-button:enabled:active {
background: #5d747f;
color: #ffffff;
border-color: #5d747f; }
.p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined {
background-color: transparent;
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:hover {
background: rgba(120, 144, 156, 0.04);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:active {
background: rgba(120, 144, 156, 0.16);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text {
background-color: transparent;
color: #78909C;
border-color: transparent; }
.p-button.p-button-secondary.p-button-text:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:hover {
background: rgba(120, 144, 156, 0.04);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-text:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:active {
background: rgba(120, 144, 156, 0.16);
border-color: transparent;
color: #78909C; }
.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {
color: #121212;
background: #81D4FA;
border: 1px solid #81D4FA; }
.p-button.p-button-info:enabled:hover, .p-buttonset.p-button-info > .p-button:enabled:hover, .p-splitbutton.p-button-info > .p-button:enabled:hover {
background: #5dc8f9;
color: #121212;
border-color: #5dc8f9; }
.p-button.p-button-info:enabled:focus, .p-buttonset.p-button-info > .p-button:enabled:focus, .p-splitbutton.p-button-info > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #a7e1fc; }
.p-button.p-button-info:enabled:active, .p-buttonset.p-button-info > .p-button:enabled:active, .p-splitbutton.p-button-info > .p-button:enabled:active {
background: #38bbf7;
color: #121212;
border-color: #38bbf7; }
.p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined {
background-color: transparent;
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:hover {
background: rgba(129, 212, 250, 0.04);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:active {
background: rgba(129, 212, 250, 0.16);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text {
background-color: transparent;
color: #81D4FA;
border-color: transparent; }
.p-button.p-button-info.p-button-text:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:hover {
background: rgba(129, 212, 250, 0.04);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-text:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:active {
background: rgba(129, 212, 250, 0.16);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {
color: #121212;
background: #C5E1A5;
border: 1px solid #C5E1A5; }
.p-button.p-button-success:enabled:hover, .p-buttonset.p-button-success > .p-button:enabled:hover, .p-splitbutton.p-button-success > .p-button:enabled:hover {
background: #b2d788;
color: #121212;
border-color: #b2d788; }
.p-button.p-button-success:enabled:focus, .p-buttonset.p-button-success > .p-button:enabled:focus, .p-splitbutton.p-button-success > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #d6eac0; }
.p-button.p-button-success:enabled:active, .p-buttonset.p-button-success > .p-button:enabled:active, .p-splitbutton.p-button-success > .p-button:enabled:active {
background: #9fce6b;
color: #121212;
border-color: #9fce6b; }
.p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined {
background-color: transparent;
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:hover {
background: rgba(197, 225, 165, 0.04);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:active {
background: rgba(197, 225, 165, 0.16);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text {
background-color: transparent;
color: #C5E1A5;
border-color: transparent; }
.p-button.p-button-success.p-button-text:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:hover {
background: rgba(197, 225, 165, 0.04);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-text:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:active {
background: rgba(197, 225, 165, 0.16);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {
color: #121212;
background: #FFE082;
border: 1px solid #FFE082; }
.p-button.p-button-warning:enabled:hover, .p-buttonset.p-button-warning > .p-button:enabled:hover, .p-splitbutton.p-button-warning > .p-button:enabled:hover {
background: #ffd65c;
color: #121212;
border-color: #ffd65c; }
.p-button.p-button-warning:enabled:focus, .p-buttonset.p-button-warning > .p-button:enabled:focus, .p-splitbutton.p-button-warning > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #ffe9a8; }
.p-button.p-button-warning:enabled:active, .p-buttonset.p-button-warning > .p-button:enabled:active, .p-splitbutton.p-button-warning > .p-button:enabled:active {
background: #ffcd35;
color: #121212;
border-color: #ffcd35; }
.p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined {
background-color: transparent;
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:hover {
background: rgba(255, 224, 130, 0.04);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:active {
background: rgba(255, 224, 130, 0.16);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text {
background-color: transparent;
color: #FFE082;
border-color: transparent; }
.p-button.p-button-warning.p-button-text:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:hover {
background: rgba(255, 224, 130, 0.04);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-text:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:active {
background: rgba(255, 224, 130, 0.16);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {
color: #121212;
background: #CE93D8;
border: 1px solid #CE93D8; }
.p-button.p-button-help:enabled:hover, .p-buttonset.p-button-help > .p-button:enabled:hover, .p-splitbutton.p-button-help > .p-button:enabled:hover {
background: #c278ce;
color: #121212;
border-color: #c278ce; }
.p-button.p-button-help:enabled:focus, .p-buttonset.p-button-help > .p-button:enabled:focus, .p-splitbutton.p-button-help > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #ddb3e4; }
.p-button.p-button-help:enabled:active, .p-buttonset.p-button-help > .p-button:enabled:active, .p-splitbutton.p-button-help > .p-button:enabled:active {
background: #b65ec5;
color: #121212;
border-color: #b65ec5; }
.p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined {
background-color: transparent;
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:hover {
background: rgba(206, 147, 216, 0.04);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:active {
background: rgba(206, 147, 216, 0.16);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text {
background-color: transparent;
color: #CE93D8;
border-color: transparent; }
.p-button.p-button-help.p-button-text:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:hover {
background: rgba(206, 147, 216, 0.04);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-text:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:active {
background: rgba(206, 147, 216, 0.16);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {
color: #121212;
background: #F48FB1;
border: 1px solid #F48FB1; }
.p-button.p-button-danger:enabled:hover, .p-buttonset.p-button-danger > .p-button:enabled:hover, .p-splitbutton.p-button-danger > .p-button:enabled:hover {
background: #f16c98;
color: #121212;
border-color: #f16c98; }
.p-button.p-button-danger:enabled:focus, .p-buttonset.p-button-danger > .p-button:enabled:focus, .p-splitbutton.p-button-danger > .p-button:enabled:focus {
box-shadow: 0 0 0 1px #f7b1c8; }
.p-button.p-button-danger:enabled:active, .p-buttonset.p-button-danger > .p-button:enabled:active, .p-splitbutton.p-button-danger > .p-button:enabled:active {
background: #ed4980;
color: #121212;
border-color: #ed4980; }
.p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined {
background-color: transparent;
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:hover {
background: rgba(244, 143, 177, 0.04);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:active {
background: rgba(244, 143, 177, 0.16);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text {
background-color: transparent;
color: #F48FB1;
border-color: transparent; }
.p-button.p-button-danger.p-button-text:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:hover {
background: rgba(244, 143, 177, 0.04);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-text:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:active {
background: rgba(244, 143, 177, 0.16);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-link {
color: #64B5F6;
background: transparent;
border: transparent; }
.p-button.p-button-link:enabled:hover {
background: transparent;
color: #64B5F6;
border-color: transparent; }
.p-button.p-button-link:enabled:hover .p-button-label {
text-decoration: underline; }
.p-button.p-button-link:enabled:focus {
background: transparent;
box-shadow: 0 0 0 1px #93cbf9;
border-color: transparent; }
.p-button.p-button-link:enabled:active {
background: transparent;
color: #64B5F6;
border-color: transparent; }
.p-carousel .p-carousel-content .p-carousel-prev,
.p-carousel .p-carousel-content .p-carousel-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin: 0.5rem; }
.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,
.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-carousel .p-carousel-content .p-carousel-prev:focus,
.p-carousel .p-carousel-content .p-carousel-next:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-carousel .p-carousel-indicators {
padding: 1rem; }
.p-carousel .p-carousel-indicators .p-carousel-indicator {
margin-right: 0.5rem;
margin-bottom: 0.5rem; }
.p-carousel .p-carousel-indicators .p-carousel-indicator button {
background-color: #383838;
width: 2rem;
height: 0.5rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 0; }
.p-carousel .p-carousel-indicators .p-carousel-indicator button:hover {
background: rgba(255, 255, 255, 0.03); }
.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-datatable .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-datatable .p-datatable-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datatable .p-datatable-footer {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datatable .p-datatable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #383838;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
transition: box-shadow 0.2s; }
.p-datatable .p-datatable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #383838;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e; }
.p-datatable .p-sortable-column {
outline-color: #93cbf9; }
.p-datatable .p-sortable-column .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-datatable .p-sortable-column .p-sortable-column-badge {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16);
margin-left: 0.5rem; }
.p-datatable .p-sortable-column:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-sortable-column.p-highlight {
background: #1e1e1e;
color: #64B5F6; }
.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {
color: #64B5F6; }
.p-datatable .p-datatable-tbody > tr {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
outline-color: #93cbf9; }
.p-datatable .p-datatable-tbody > tr > td {
text-align: left;
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem; }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; }
.p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
box-shadow: inset 0 2px 0 0 rgba(100, 181, 246, 0.16); }
.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {
box-shadow: inset 0 -2px 0 0 rgba(100, 181, 246, 0.16); }
.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-column-resizer-helper {
background: #64B5F6; }
.p-datatable .p-datatable-scrollable-header,
.p-datatable .p-datatable-scrollable-footer {
background: #1e1e1e; }
.p-datatable .p-datatable-loading-icon {
font-size: 2rem; }
.p-datatable.p-datatable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-footer {
border-width: 0 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-paginator-top {
border-width: 0 1px 0 1px; }
.p-datatable.p-datatable-gridlines .p-paginator-bottom {
border-width: 0 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
border-width: 1px 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {
border-width: 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {
border-width: 1px; }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {
background: rgba(255, 255, 255, 0.01); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover {
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-sm .p-datatable-header {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-footer {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-lg .p-datatable-header {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-footer {
padding: 1.25rem 1.25rem; }
.p-dataview .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-dataview .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-dataview .p-dataview-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-dataview .p-dataview-content {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0; }
.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {
border: solid #383838;
border-width: 0 0 1px 0; }
.p-dataview .p-dataview-footer {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.p-dataview .p-dataview-loading-icon {
font-size: 2rem; }
.p-datascroller .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-datascroller .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-datascroller .p-datascroller-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datascroller .p-datascroller-content {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0; }
.p-datascroller.p-datascroller-inline .p-datascroller-list > li {
border: solid #383838;
border-width: 0 0 1px 0; }
.p-datascroller .p-datascroller-footer {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.fc .fc-view-container th {
background: #1e1e1e;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-view-container td.fc-widget-content {
background: #1e1e1e;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-view-container td.fc-head-container {
border: 1px solid #383838; }
.fc .fc-view-container .fc-row {
border-right: 1px solid #383838; }
.fc .fc-view-container .fc-event {
background: #43a5f4;
border: 1px solid #43a5f4;
color: #212529; }
.fc .fc-view-container .fc-divider {
background: #1e1e1e;
border: 1px solid #383838; }
.fc .fc-toolbar .fc-button {
color: #212529;
background: #64B5F6;
border: 1px solid #64B5F6;
font-size: 1rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px;
display: flex;
align-items: center; }
.fc .fc-toolbar .fc-button:hover {
background: #43a5f4;
color: #212529;
border-color: #43a5f4; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-left {
font-family: 'PrimeIcons' !important;
text-indent: 0;
font-size: 1rem; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-left:before {
content: ""; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-right {
font-family: 'PrimeIcons' !important;
text-indent: 0;
font-size: 1rem; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-right:before {
content: ""; }
.fc .fc-toolbar .fc-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc .fc-toolbar .fc-button.fc-timeGridDay-button {
background: #1e1e1e;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {
background: #64B5F6;
border-color: #64B5F6;
color: #212529; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {
background: #43a5f4;
border-color: #43a5f4;
color: #212529; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9;
z-index: 1; }
.fc .fc-toolbar .fc-button-group .fc-button {
border-radius: 0; }
.fc .fc-toolbar .fc-button-group .fc-button:first-child {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.fc .fc-toolbar .fc-button-group .fc-button:last-child {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-orderlist .p-orderlist-controls {
padding: 1rem; }
.p-orderlist .p-orderlist-controls .p-button {
margin-bottom: 0.5rem; }
.p-orderlist .p-orderlist-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
padding: 1rem;
font-weight: 600;
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-orderlist .p-orderlist-list {
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-orderlist .p-orderlist-list .p-orderlist-item {
padding: 0.5rem 1rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.2s, box-shadow 0.2s; }
.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-orderlist .p-orderlist-list .p-orderlist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
@media screen and (max-width: 960px) {
.p-orderlist {
flex-direction: column; }
.p-orderlist .p-orderlist-controls {
padding: 1rem;
flex-direction: row; }
.p-orderlist .p-orderlist-controls .p-button {
margin-right: 0.5rem;
margin-bottom: 0; }
.p-orderlist .p-orderlist-controls .p-button:last-child {
margin-right: 0; } }
.p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-organizationchart .p-organizationchart-node-content.p-highlight {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i {
color: rgba(12, 120, 207, 0.16); }
.p-organizationchart .p-organizationchart-line-down {
background: #383838; }
.p-organizationchart .p-organizationchart-line-left {
border-right: 1px solid #383838;
border-color: #383838; }
.p-organizationchart .p-organizationchart-line-top {
border-top: 1px solid #383838;
border-color: #383838; }
.p-organizationchart .p-organizationchart-node-content {
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 1rem; }
.p-organizationchart .p-organizationchart-node-content .p-node-toggler {
background: inherit;
color: inherit;
border-radius: 50%; }
.p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-paginator {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border: solid #383838;
border-width: 1px;
padding: 0.5rem 1rem;
border-radius: 3px; }
.p-paginator .p-paginator-first,
.p-paginator .p-paginator-prev,
.p-paginator .p-paginator-next,
.p-paginator .p-paginator-last {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: transparent;
color: rgba(255, 255, 255, 0.87); }
.p-paginator .p-paginator-first {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-paginator .p-paginator-last {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-paginator .p-dropdown {
margin-left: 0.5rem;
height: 2.286em; }
.p-paginator .p-dropdown .p-dropdown-label {
padding-right: 0; }
.p-paginator .p-paginator-current {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
padding: 0 0.5rem; }
.p-paginator .p-paginator-pages .p-paginator-page {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {
background: rgba(100, 181, 246, 0.16);
border-color: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: transparent;
color: rgba(255, 255, 255, 0.87); }
.p-picklist .p-picklist-buttons {
padding: 1rem; }
.p-picklist .p-picklist-buttons .p-button {
margin-bottom: 0.5rem; }
.p-picklist .p-picklist-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
padding: 1rem;
font-weight: 600;
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-picklist .p-picklist-list {
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-picklist .p-picklist-list .p-picklist-item {
padding: 0.5rem 1rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.2s, box-shadow 0.2s; }
.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-picklist .p-picklist-list .p-picklist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-picklist .p-picklist-list .p-picklist-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16); }
@media screen and (max-width: 960px) {
.p-picklist {
flex-direction: column; }
.p-picklist .p-picklist-buttons {
padding: 1rem;
flex-direction: row; }
.p-picklist .p-picklist-buttons .p-button {
margin-right: 0.5rem;
margin-bottom: 0; }
.p-picklist .p-picklist-buttons .p-button:last-child {
margin-right: 0; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-right:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-double-right:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-left:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-double-left:before {
content: ""; } }
.p-tree {
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
border-radius: 3px; }
.p-tree .p-tree-container .p-treenode {
padding: 0.143rem; }
.p-tree .p-tree-container .p-treenode .p-treenode-content {
border-radius: 3px;
transition: box-shadow 0.2s;
padding: 0.5rem; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {
margin-right: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {
margin-right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox {
margin-right: 0.5rem; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler,
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-filter-container {
margin-bottom: 0.5rem; }
.p-tree .p-tree-filter-container .p-tree-filter {
width: 100%;
padding-right: 1.5rem; }
.p-tree .p-tree-filter-container .p-tree-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-tree .p-treenode-children {
padding: 0 0 0 1rem; }
.p-tree .p-tree-loading-icon {
font-size: 2rem; }
.p-treetable .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-treetable .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-treetable .p-treetable-header {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-treetable .p-treetable-footer {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-treetable .p-treetable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #383838;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
transition: box-shadow 0.2s; }
.p-treetable .p-treetable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #383838;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e; }
.p-treetable .p-sortable-column {
outline-color: #93cbf9; }
.p-treetable .p-sortable-column .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-treetable .p-sortable-column .p-sortable-column-badge {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: rgba(255, 255, 255, 0.87);
background: rgba(100, 181, 246, 0.16);
margin-left: 0.5rem; }
.p-treetable .p-sortable-column:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-sortable-column.p-highlight {
background: #1e1e1e;
color: #64B5F6; }
.p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon {
color: #64B5F6; }
.p-treetable .p-treetable-tbody > tr {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
outline-color: #93cbf9; }
.p-treetable .p-treetable-tbody > tr > td {
text-align: left;
border: 1px solid #383838;
border-width: 0 0 1px 0;
padding: 1rem 1rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin-right: 0.5rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox {
margin-right: 0.5rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {
color: rgba(255, 255, 255, 0.87); }
.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-column-resizer-helper {
background: #64B5F6; }
.p-treetable .p-treetable-scrollable-header,
.p-treetable .p-treetable-scrollable-footer {
background: #1e1e1e; }
.p-treetable .p-treetable-loading-icon {
font-size: 2rem; }
.p-treetable.p-treetable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-footer {
border-width: 0 1px 1px 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-top {
border-width: 0 1px 0 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-bottom {
border-width: 0 1px 1px 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {
border-width: 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {
border-width: 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {
border-width: 1px; }
.p-treetable.p-treetable-sm .p-treetable-header {
padding: 0.875rem 0.875rem; }
.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-footer {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-lg .p-treetable-header {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-footer {
padding: 1.25rem 1.25rem; }
.p-accordion .p-accordion-header .p-accordion-header-link {
padding: 1rem;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon {
margin-right: 0.5rem; }
.p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {
background: #1e1e1e;
border-color: #383838;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {
border-color: #383838;
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-accordion .p-accordion-content {
padding: 1rem;
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-accordion .p-accordion-tab {
margin-bottom: 0; }
.p-accordion .p-accordion-tab .p-accordion-header .p-accordion-header-link {
border-radius: 0; }
.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header .p-accordion-header-link {
border-top: 0 none; }
.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link, .p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {
border-top: 0 none; }
.p-accordion .p-accordion-tab:first-child .p-accordion-header .p-accordion-header-link {
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-header-link {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-card {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-card .p-card-body {
padding: 1rem; }
.p-card .p-card-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem; }
.p-card .p-card-subtitle {
font-weight: 700;
margin-bottom: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-card .p-card-content {
padding: 1rem 0; }
.p-card .p-card-footer {
padding: 1rem 0 0 0; }
.p-fieldset {
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-fieldset .p-fieldset-legend {
padding: 1rem;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
border-radius: 3px; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {
padding: 0;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {
padding: 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {
margin-right: 0.5rem; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.p-fieldset .p-fieldset-content {
padding: 1rem; }
.p-panel .p-panel-header {
border: 1px solid #383838;
padding: 1rem;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-panel .p-panel-header .p-panel-title {
font-weight: 600; }
.p-panel .p-panel-header .p-panel-header-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-panel .p-panel-header .p-panel-header-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-panel.p-panel-toggleable .p-panel-header {
padding: 0.5rem 1rem; }
.p-panel .p-panel-content {
padding: 1rem;
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
border-top: 0 none; }
.p-panel .p-panel-footer {
padding: 0.5rem 1rem;
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border-top: 0 none; }
.p-scrollpanel .p-scrollpanel-bar {
background: #383838;
border: 0 none; }
.p-tabview .p-tabview-nav {
background: transparent;
border: 1px solid #383838;
border-width: 0 0 2px 0; }
.p-tabview .p-tabview-nav li {
margin-right: 0; }
.p-tabview .p-tabview-nav li .p-tabview-nav-link {
border: solid #383838;
border-width: 0 0 2px 0;
border-color: transparent transparent #383838 transparent;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
padding: 1rem;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
transition: box-shadow 0.2s;
margin: 0 0 -2px 0; }
.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {
background: #1e1e1e;
border-color: #64B5F6;
color: rgba(255, 255, 255, 0.87); }
.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {
background: #1e1e1e;
border-color: #64B5F6;
color: #64B5F6; }
.p-tabview .p-tabview-panels {
background: #1e1e1e;
padding: 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-toolbar {
background: #1e1e1e;
border: 1px solid #383838;
padding: 1rem;
border-radius: 3px; }
.p-toolbar .p-toolbar-separator {
margin: 0 0.5rem; }
.p-dialog {
border-radius: 3px;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
border: 1px solid #383838; }
.p-dialog .p-dialog-header {
border-bottom: 0 none;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 1.5rem;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-dialog .p-dialog-header .p-dialog-title {
font-weight: 600;
font-size: 1.25rem; }
.p-dialog .p-dialog-header .p-dialog-header-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin-right: 0.5rem; }
.p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-dialog .p-dialog-header .p-dialog-header-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-dialog .p-dialog-header .p-dialog-header-icon:last-child {
margin-right: 0; }
.p-dialog .p-dialog-content {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 0 1.5rem 2rem 1.5rem; }
.p-dialog .p-dialog-footer {
border-top: 0 none;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 0 1.5rem 1.5rem 1.5rem;
text-align: right;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-dialog .p-dialog-footer button {
margin: 0 0.5rem 0 0;
width: auto; }
.p-dialog-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4); }
.p-overlaypanel {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); }
.p-overlaypanel .p-overlaypanel-content {
padding: 1rem; }
.p-overlaypanel .p-overlaypanel-close {
background: #64B5F6;
color: #212529;
width: 2rem;
height: 2rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%;
position: absolute;
top: -1rem;
right: -1rem; }
.p-overlaypanel .p-overlaypanel-close:enabled:hover {
background: #43a5f4;
color: #212529; }
.p-overlaypanel:after {
border: solid transparent;
border-color: rgba(30, 30, 30, 0);
border-bottom-color: #1e1e1e; }
.p-overlaypanel:before {
border: solid transparent;
border-color: rgba(56, 56, 56, 0);
border-bottom-color: #383838; }
.p-overlaypanel.p-overlaypanel-flipped:after {
border-top-color: #1e1e1e; }
.p-overlaypanel.p-overlaypanel-flipped:before {
border-top-color: #383838; }
.p-sidebar {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
border: 1px solid #383838;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); }
.p-sidebar .p-sidebar-close,
.p-sidebar .p-sidebar-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-sidebar .p-sidebar-close:enabled:hover,
.p-sidebar .p-sidebar-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-sidebar .p-sidebar-close:focus,
.p-sidebar .p-sidebar-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-sidebar-mask.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
.p-tooltip .p-tooltip-text {
background: #383838;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0.5rem;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-tooltip.p-tooltip-right .p-tooltip-arrow {
border-right-color: #383838; }
.p-tooltip.p-tooltip-left .p-tooltip-arrow {
border-left-color: #383838; }
.p-tooltip.p-tooltip-top .p-tooltip-arrow {
border-top-color: #383838; }
.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {
border-bottom-color: #383838; }
.p-fileupload .p-fileupload-buttonbar {
background: #1e1e1e;
padding: 1rem;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-fileupload .p-fileupload-buttonbar .p-button {
margin-right: 0.5rem; }
.p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-fileupload .p-fileupload-content {
background: #1e1e1e;
padding: 2rem 1rem;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-fileupload .p-progressbar {
height: 0.25rem; }
.p-fileupload .p-fileupload-row > div {
padding: 1rem 1rem; }
.p-fileupload.p-fileupload-advanced .p-message {
margin-top: 0; }
.p-fileupload-choose:not(.p-disabled):hover {
background: #43a5f4;
color: #212529;
border-color: #43a5f4; }
.p-fileupload-choose:not(.p-disabled):active {
background: #2396f2;
color: #212529;
border-color: #2396f2; }
.p-breadcrumb {
background: #1e1e1e;
border: 1px solid #383838;
border-radius: 3px;
padding: 1rem; }
.p-breadcrumb ul li .p-menuitem-link {
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-breadcrumb ul li .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6); }
.p-breadcrumb ul li.p-breadcrumb-chevron {
margin: 0 0.5rem 0 0.5rem;
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li:last-child .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li:last-child .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6); }
.p-contextmenu {
padding: 0.25rem 0;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 12.5rem; }
.p-contextmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-contextmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-contextmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-contextmenu .p-submenu-list {
padding: 0.25rem 0;
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: rgba(255, 255, 255, 0.03); }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-contextmenu .p-submenu-icon {
font-size: 0.875rem; }
.p-megamenu {
padding: 0.5rem;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s;
user-select: none; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-megamenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-megamenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-megamenu .p-megamenu-panel {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-megamenu .p-megamenu-submenu-header {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-megamenu .p-megamenu-submenu {
padding: 0.25rem 0;
width: 12.5rem; }
.p-megamenu .p-megamenu-submenu .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu.p-megamenu-vertical {
width: 12.5rem;
padding: 0.25rem 0; }
.p-menu {
padding: 0.25rem 0;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
width: 12.5rem; }
.p-menu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-menu.p-menu-overlay {
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-menu .p-submenu-header {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
border-top-right-radius: 0;
border-top-left-radius: 0; }
.p-menu .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-menubar {
padding: 0.5rem;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px; }
.p-menubar .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-submenu-list {
padding: 0.25rem 0;
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 12.5rem; }
.p-menubar .p-submenu-list .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-menubar .p-submenu-list .p-submenu-icon {
font-size: 0.875rem; }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
@media screen and (max-width: 960px) {
.p-menubar {
position: relative; }
.p-menubar .p-menubar-button {
display: flex;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-menubar .p-menubar-button:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-menubar .p-menubar-root-list {
position: absolute;
display: none;
padding: 0.25rem 0;
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 100%; }
.p-menubar .p-menubar-root-list .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-menubar .p-menubar-root-list .p-submenu-icon {
font-size: 0.875rem; }
.p-menubar .p-menubar-root-list > .p-menuitem {
width: 100%;
position: static; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {
margin-left: auto;
transition: transform 0.2s; }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon {
transform: rotate(-180deg); }
.p-menubar .p-menubar-root-list .p-submenu-list {
width: 100%;
position: static;
box-shadow: none;
border: 0 none; }
.p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon {
transition: transform 0.2s;
transform: rotate(90deg); }
.p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {
transform: rotate(-90deg); }
.p-menubar .p-menubar-root-list .p-menuitem {
width: 100%;
position: static; }
.p-menubar .p-menubar-root-list ul li a {
padding-left: 2.25rem; }
.p-menubar .p-menubar-root-list ul li ul li a {
padding-left: 3.75rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li a {
padding-left: 5.25rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li ul li a {
padding-left: 6.75rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {
padding-left: 8.25rem; }
.p-menubar.p-menubar-mobile-active .p-menubar-root-list {
display: flex;
flex-direction: column;
top: 100%;
left: 0;
z-index: 1; } }
.p-panelmenu .p-panelmenu-header > a {
padding: 1rem;
border: 1px solid #383838;
color: rgba(255, 255, 255, 0.87);
background: #1e1e1e;
font-weight: 600;
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-header > a .p-menuitem-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-header > a:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #383838;
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-header.p-highlight {
margin-bottom: 0; }
.p-panelmenu .p-panelmenu-header.p-highlight > a {
background: #1e1e1e;
border-color: #383838;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {
border-color: #383838;
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content {
padding: 0.25rem 0;
border: 1px solid #383838;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
margin-bottom: 0;
border-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) {
padding: 0 0 0 1rem; }
.p-panelmenu .p-panelmenu-panel {
margin-bottom: 0; }
.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {
border-radius: 0; }
.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {
border-radius: 0; }
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {
border-top: 0 none; }
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {
border-top: 0 none; }
.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-slidemenu {
padding: 0.25rem 0;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
width: 12.5rem; }
.p-slidemenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-slidemenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-slidemenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-slidemenu.p-slidemenu-overlay {
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-slidemenu .p-slidemenu-list {
padding: 0.25rem 0;
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link {
background: rgba(255, 255, 255, 0.03); }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon, .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-slidemenu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-slidemenu .p-slidemenu-icon {
font-size: 0.875rem; }
.p-slidemenu .p-slidemenu-backward {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item .p-menuitem-link {
background: transparent;
transition: box-shadow 0.2s;
border-radius: 3px;
background: transparent; }
.p-steps .p-steps-item .p-menuitem-link .p-steps-number {
color: rgba(255, 255, 255, 0.87);
border: 0 none;
background: transparent;
min-width: 2rem;
height: 2rem;
line-height: 2rem;
font-size: 1.143rem;
z-index: 1;
border-radius: 50%; }
.p-steps .p-steps-item .p-menuitem-link .p-steps-title {
margin-top: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-steps .p-steps-item.p-highlight .p-steps-number {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item.p-highlight .p-steps-title {
font-weight: 600;
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item:before {
content: ' ';
border-top: 1px solid #383838;
width: 100%;
top: 50%;
left: 0;
display: block;
position: absolute;
margin-top: -1rem; }
.p-tabmenu .p-tabmenu-nav {
background: transparent;
border: 1px solid #383838;
border-width: 0 0 2px 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {
margin-right: 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {
border: solid #383838;
border-width: 0 0 2px 0;
border-color: transparent transparent #383838 transparent;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.6);
padding: 1rem;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
transition: box-shadow 0.2s;
margin: 0 0 -2px 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon {
margin-right: 0.5rem; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {
background: #1e1e1e;
border-color: #64B5F6;
color: rgba(255, 255, 255, 0.87); }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {
background: #1e1e1e;
border-color: #64B5F6;
color: #64B5F6; }
.p-tieredmenu {
padding: 0.25rem 0;
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
border-radius: 3px;
width: 12.5rem; }
.p-tieredmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-tieredmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-tieredmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #93cbf9; }
.p-tieredmenu.p-tieredmenu-overlay {
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-tieredmenu .p-submenu-list {
padding: 0.25rem 0;
background: #1e1e1e;
border: 1px solid #383838;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: rgba(255, 255, 255, 0.03); }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menu-separator {
border-top: 1px solid #383838;
margin: 0.25rem 0; }
.p-tieredmenu .p-submenu-icon {
font-size: 0.875rem; }
.p-inline-message {
padding: 0.5rem 0.5rem;
margin: 0;
border-radius: 3px; }
.p-inline-message.p-inline-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 1px;
color: #044868; }
.p-inline-message.p-inline-message-info .p-inline-message-icon {
color: #044868; }
.p-inline-message.p-inline-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 1px;
color: #224a23; }
.p-inline-message.p-inline-message-success .p-inline-message-icon {
color: #224a23; }
.p-inline-message.p-inline-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 1px;
color: #6d5100; }
.p-inline-message.p-inline-message-warn .p-inline-message-icon {
color: #6d5100; }
.p-inline-message.p-inline-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 1px;
color: #73000c; }
.p-inline-message.p-inline-message-error .p-inline-message-icon {
color: #73000c; }
.p-inline-message .p-inline-message-icon {
font-size: 1rem;
margin-right: 0.5rem; }
.p-inline-message .p-inline-message-text {
font-size: 1rem; }
.p-inline-message.p-inline-message-icon-only .p-inline-message-icon {
margin-right: 0; }
.p-message {
margin: 1rem 0;
border-radius: 3px; }
.p-message .p-message-wrapper {
padding: 1rem 1.5rem; }
.p-message .p-message-close {
width: 2rem;
height: 2rem;
border-radius: 50%;
background: transparent;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-message .p-message-close:hover {
background: rgba(255, 255, 255, 0.3); }
.p-message .p-message-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-message.p-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 0 0 0 6px;
color: #044868; }
.p-message.p-message-info .p-message-icon {
color: #044868; }
.p-message.p-message-info .p-message-close {
color: #044868; }
.p-message.p-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 0 0 0 6px;
color: #224a23; }
.p-message.p-message-success .p-message-icon {
color: #224a23; }
.p-message.p-message-success .p-message-close {
color: #224a23; }
.p-message.p-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 0 0 0 6px;
color: #6d5100; }
.p-message.p-message-warn .p-message-icon {
color: #6d5100; }
.p-message.p-message-warn .p-message-close {
color: #6d5100; }
.p-message.p-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 0 0 0 6px;
color: #73000c; }
.p-message.p-message-error .p-message-icon {
color: #73000c; }
.p-message.p-message-error .p-message-close {
color: #73000c; }
.p-message .p-message-text {
font-size: 1rem;
font-weight: 500; }
.p-message .p-message-icon {
font-size: 1.5rem;
margin-right: 0.5rem; }
.p-toast {
opacity: 0.9; }
.p-toast .p-toast-message {
margin: 0 0 1rem 0;
box-shadow: none;
border-radius: 3px; }
.p-toast .p-toast-message .p-toast-message-content {
padding: 1rem;
border-width: 0 0 0 6px; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {
margin: 0 0 0 1rem; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon {
font-size: 2rem; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-summary {
font-weight: 700; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {
margin: 0.5rem 0 0 0; }
.p-toast .p-toast-message .p-toast-icon-close {
width: 2rem;
height: 2rem;
border-radius: 50%;
background: transparent;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-toast .p-toast-message .p-toast-icon-close:hover {
background: rgba(255, 255, 255, 0.3); }
.p-toast .p-toast-message .p-toast-icon-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-toast .p-toast-message.p-toast-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 0 0 0 6px;
color: #044868; }
.p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close {
color: #044868; }
.p-toast .p-toast-message.p-toast-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 0 0 0 6px;
color: #224a23; }
.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close {
color: #224a23; }
.p-toast .p-toast-message.p-toast-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 0 0 0 6px;
color: #6d5100; }
.p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close {
color: #6d5100; }
.p-toast .p-toast-message.p-toast-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 0 0 0 6px;
color: #73000c; }
.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close {
color: #73000c; }
.p-galleria .p-galleria-close {
margin: 0.5rem;
background: transparent;
color: #f8f9fa;
width: 4rem;
height: 4rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-close .p-galleria-close-icon {
font-size: 2rem; }
.p-galleria .p-galleria-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-item-nav {
background: transparent;
color: #f8f9fa;
width: 4rem;
height: 4rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 3px;
margin: 0 0.5rem; }
.p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon,
.p-galleria .p-galleria-item-nav .p-galleria-item-next-icon {
font-size: 2rem; }
.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-caption {
background: rgba(0, 0, 0, 0.5);
color: #f8f9fa;
padding: 1rem; }
.p-galleria .p-galleria-indicators {
padding: 1rem; }
.p-galleria .p-galleria-indicators .p-galleria-indicator button {
background-color: #383838;
width: 1rem;
height: 1rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-indicators .p-galleria-indicator button:hover {
background: rgba(255, 255, 255, 0.1); }
.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator {
margin-right: 0.5rem; }
.p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator {
margin-bottom: 0.5rem; }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators {
background: rgba(0, 0, 0, 0.5); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button {
background: rgba(255, 255, 255, 0.4); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover {
background: rgba(255, 255, 255, 0.6); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-galleria .p-galleria-thumbnail-container {
background: rgba(0, 0, 0, 0.9);
padding: 1rem 0.25rem; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev,
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next {
margin: 0.5rem;
background-color: transparent;
color: #f8f9fa;
width: 2rem;
height: 2rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover,
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content {
transition: box-shadow 0.2s; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-galleria-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.9); }
.p-inplace .p-inplace-display {
padding: 0.5rem 0.5rem;
border-radius: 3px;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-inplace .p-inplace-display:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-inplace .p-inplace-display:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #93cbf9; }
.p-progressbar {
border: 0 none;
height: 1.5rem;
background: #383838;
border-radius: 3px; }
.p-progressbar .p-progressbar-value {
border: 0 none;
margin: 0;
background: #64B5F6; }
.p-progressbar .p-progressbar-label {
color: rgba(255, 255, 255, 0.87);
line-height: 1.5rem; }
.p-terminal {
background: #1e1e1e;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #383838;
padding: 1rem; }
.p-terminal .p-terminal-input {
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
.p-blockui.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
.p-badge {
background: #64B5F6;
color: #212529;
font-size: 0.75rem;
font-weight: 700;
min-width: 1.5rem;
height: 1.5rem;
line-height: 1.5rem; }
.p-badge.p-badge-secondary {
background-color: #78909C;
color: #ffffff; }
.p-badge.p-badge-success {
background-color: #C5E1A5;
color: #121212; }
.p-badge.p-badge-info {
background-color: #81D4FA;
color: #121212; }
.p-badge.p-badge-warning {
background-color: #FFE082;
color: #121212; }
.p-badge.p-badge-danger {
background-color: #F48FB1;
color: #121212; }
.p-badge.p-badge-lg {
font-size: 1.125rem;
min-width: 2.25rem;
height: 2.25rem;
line-height: 2.25rem; }
.p-badge.p-badge-xl {
font-size: 1.5rem;
min-width: 3rem;
height: 3rem;
line-height: 3rem; }
.p-tag {
background: #64B5F6;
color: #212529;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.4rem;
border-radius: 3px; }
.p-tag.p-tag-success {
background-color: #C5E1A5;
color: #121212; }
.p-tag.p-tag-info {
background-color: #81D4FA;
color: #121212; }
.p-tag.p-tag-warning {
background-color: #FFE082;
color: #121212; }
.p-tag.p-tag-danger {
background-color: #F48FB1;
color: #121212; }
/* Customizations to the designer theme should be defined here */
|
cdnjs/cdnjs
|
ajax/libs/primereact/5.0.0/resources/themes/arya-blue/theme.css
|
CSS
|
mit
| 139,566
|
# 笔记
1. 在animation中,如果后边的百分比中有某个属性需要突然改变,那么他之前的百分比中一定要书写该属性,并且保持原来的值。否则属性会从0开始就变化。
|
irockyan/BlogEvents
|
CSS3动画/Readme.md
|
Markdown
|
mit
| 215
|
package com.mindscapehq.raygun4java.core;
import com.mindscapehq.raygun4java.core.messages.RaygunMessage;
public interface IRaygunOnAfterSend extends IRaygunSentEvent {
RaygunMessage onAfterSend(RaygunClient client, RaygunMessage message);
}
|
MindscapeHQ/raygun4java
|
core/src/main/java/com/mindscapehq/raygun4java/core/IRaygunOnAfterSend.java
|
Java
|
mit
| 247
|
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
#if UNITY_5_3
using UnityEngine.SceneManagement;
#endif
public class vChangeScenes : MonoBehaviour
{
public void LoadThirdPersonScene()
{
#if UNITY_5_3
SceneManager.LoadScene("3rdPersonController-Demo");
#else
Application.LoadLevel("3rdPersonController-Demo");
#endif
}
public void LoadTopDownScene()
{
#if UNITY_5_3
SceneManager.LoadScene("TopDownController-Demo");
#else
Application.LoadLevel("TopDownController-Demo");
#endif
}
public void LoadPlatformScene()
{
#if UNITY_5_3
SceneManager.LoadScene("2.5DController-Demo");
#else
Application.LoadLevel("2.5DController-Demo");
#endif
}
public void LoadIsometricScene()
{
#if UNITY_5_3
SceneManager.LoadScene("IsometricController-Demo");
#else
Application.LoadLevel("IsometricController-Demo");
#endif
}
public void LoadVMansion()
{
#if UNITY_5_3
SceneManager.LoadScene("V-Mansion");
#else
Application.LoadLevel("V-Mansion");
#endif
}
public void LoadCompanionAI()
{
#if UNITY_5_3
SceneManager.LoadScene("BeatnUp@CompanionAI-Demo");
#else
Application.LoadLevel("BeatnUp@CompanionAI-Demo");
#endif
}
public void LoadPuzzleBox()
{
#if UNITY_5_3
SceneManager.LoadScene("PuzzleBoxes");
#else
Application.LoadLevel("PuzzleBoxes");
#endif
}
}
|
Sugarfooot/VeggyBot
|
Assets/Invector-3rdPersonController/Scripts/Generic/vChangeScenes.cs
|
C#
|
mit
| 1,697
|
function Convert-APIDateTime {
<#
.SYNOPSIS
Converts a string to a datetime object
.DESCRIPTION
The Rubrik API endpoints often return dates within the response. These dates are treated as strings within the response.
This function may be used to convert these returned date strings into a properly formated datetime object.
.EXAMPLE
Convert-APIDateTime "Thu Aug 08 20:31:36 UTC 2019"
Thursday, August 8, 2019 8:31:36 PM
#>
[cmdletbinding()]
param(
[parameter(
Position = 0,
Mandatory = $true,
ValueFromPipeline = $true
)]
[ValidateNotNullOrEmpty()]
[string] $DateTimeString
)
begin {
[System.Globalization.DateTimeFormatInfo]::InvariantInfo.get_abbreviatedmonthnames() | ForEach-Object -Begin {
$MonthHash = @{}
$Count = 0
} -Process {
$Count++
if ($_) {
$MonthHash.$_ = $Count.ToString().Padleft(2,'0')
}
}
}
process {
$NewDateTimeString = $DateTimeString.Substring(4) -replace 'UTC '
$MonthHash.GetEnumerator() | ForEach-Object {
$NewDateTimeString = $NewDateTimeString -replace $_.Key,$_.Value
}
try {
[DateTime]::ParseExact($NewDateTimeString,'MM dd HH:mm:ss yyyy',$null)
} catch {
}
}
}
|
rubrikinc/PowerShell-Module
|
Rubrik/Private/Convert-APIDateTime.ps1
|
PowerShell
|
mit
| 1,439
|
---
description: A detailed look at the various REST actions supported by the Application Api Token resource of the Losant API. Learn more.
---
# Application Api Token Actions
https://api.losant.com/applications/**`APPLICATION_ID`**/tokens/**`API_TOKEN_ID`**
Below are the various requests that can be performed against the
Application Api Token resource, as well as the expected
parameters and the potential responses.
## Delete
Deletes an API Token
### Method And Url <a name="delete-method-url"></a>
DELETE https://api.losant.com/applications/**`APPLICATION_ID`**/tokens/**`API_TOKEN_ID`**
### Authentication <a name="delete-authentication"></a>
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, applicationApiToken.*, or applicationApiToken.delete.
### Request Path Components <a name="delete-path-components"></a>
| Path Component | Description | Example |
| -------------- | ----------- | ------- |
| APPLICATION_ID | ID associated with the application | 575ec8687ae143cd83dc4a97 |
| API_TOKEN_ID | ID associated with the API token | 575ec7417ae143cd83dc4a95 |
### Request Headers <a name="delete-headers"></a>
| Name | Required | Description | Default |
| ---- | -------- | ----------- | ------- |
| Authorization | Y | The token for authenticating the request, prepended with Bearer | |
### Curl Example <a name="delete-curl-example"></a>
```bash
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_ACCESS_TOKEN' \
-X DELETE \
https://api.losant.com/applications/APPLICATION_ID/tokens/API_TOKEN_ID
```
### Successful Responses <a name="delete-successful-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 200 | [Success](schemas.md#success) | If API token was successfully deleted |
### Error Responses <a name="delete-error-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](schemas.md#error) | Error if malformed request |
| 404 | [Error](schemas.md#error) | Error if API token was not found |
## Get
Retrieves information on an API token
### Method And Url <a name="get-method-url"></a>
GET https://api.losant.com/applications/**`APPLICATION_ID`**/tokens/**`API_TOKEN_ID`**
### Authentication <a name="get-authentication"></a>
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, applicationApiToken.*, or applicationApiToken.get.
### Request Path Components <a name="get-path-components"></a>
| Path Component | Description | Example |
| -------------- | ----------- | ------- |
| APPLICATION_ID | ID associated with the application | 575ec8687ae143cd83dc4a97 |
| API_TOKEN_ID | ID associated with the API token | 575ec7417ae143cd83dc4a95 |
### Request Headers <a name="get-headers"></a>
| Name | Required | Description | Default |
| ---- | -------- | ----------- | ------- |
| Authorization | Y | The token for authenticating the request, prepended with Bearer | |
### Curl Example <a name="get-curl-example"></a>
```bash
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_ACCESS_TOKEN' \
-X GET \
https://api.losant.com/applications/APPLICATION_ID/tokens/API_TOKEN_ID
```
### Successful Responses <a name="get-successful-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 200 | [API Token](schemas.md#api-token) | API token information |
### Error Responses <a name="get-error-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](schemas.md#error) | Error if malformed request |
| 404 | [Error](schemas.md#error) | Error if API token was not found |
## Patch
Updates information about an API token
### Method And Url <a name="patch-method-url"></a>
PATCH https://api.losant.com/applications/**`APPLICATION_ID`**/tokens/**`API_TOKEN_ID`**
### Authentication <a name="patch-authentication"></a>
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, applicationApiToken.*, or applicationApiToken.patch.
### Request Path Components <a name="patch-path-components"></a>
| Path Component | Description | Example |
| -------------- | ----------- | ------- |
| APPLICATION_ID | ID associated with the application | 575ec8687ae143cd83dc4a97 |
| API_TOKEN_ID | ID associated with the API token | 575ec7417ae143cd83dc4a95 |
### Request Headers <a name="patch-headers"></a>
| Name | Required | Description | Default |
| ---- | -------- | ----------- | ------- |
| Authorization | Y | The token for authenticating the request, prepended with Bearer | |
### Request Body <a name="patch-body"></a>
The body of the request should be serialized JSON that validates against
the [API Token Patch](schemas.md#api-token-patch) schema. For example, the following would be a
valid body for this request:
```json
{
"name": "My Updated API Token",
"status": "inactive"
}
```
### Curl Example <a name="patch-curl-example"></a>
```bash
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_ACCESS_TOKEN' \
-X PATCH \
-d '{"name":"My Updated API Token","status":"inactive"}' \
https://api.losant.com/applications/APPLICATION_ID/tokens/API_TOKEN_ID
```
### Successful Responses <a name="patch-successful-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 200 | [API Token](schemas.md#api-token) | Updated API token information |
### Error Responses <a name="patch-error-responses"></a>
| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](schemas.md#error) | Error if malformed request |
| 404 | [Error](schemas.md#error) | Error if API token was not found |
|
Losant/losant-docs
|
docs/rest-api/application-api-token.md
|
Markdown
|
mit
| 6,118
|
# gkosmo-blog
My ruby blog
|
gkosmo/gkosmo-blog
|
README.md
|
Markdown
|
mit
| 27
|
/**
* @author mrdoob / http://mrdoob.com/
* @author *kile / http://kile.stravaganza.org/
* @author philogb / http://blog.thejit.org/
* @author mikael emtinger / http://gomo.se/
* @author egraether / http://egraether.com/
* @author WestLangley / http://github.com/WestLangley
*/
THREE.Vector3 = function ( x, y, z ) {
this.x = x || 0;
this.y = y || 0;
this.z = z || 0;
};
THREE.Vector3.prototype = {
constructor: THREE.Vector3,
set: function ( x, y, z ) {
this.x = x;
this.y = y;
this.z = z;
return this;
},
setX: function ( x ) {
this.x = x;
return this;
},
setY: function ( y ) {
this.y = y;
return this;
},
setZ: function ( z ) {
this.z = z;
return this;
},
setComponent: function ( index, value ) {
switch ( index ) {
case 0: this.x = value; break;
case 1: this.y = value; break;
case 2: this.z = value; break;
default: throw new Error( 'index is out of range: ' + index );
}
},
getComponent: function ( index ) {
switch ( index ) {
case 0: return this.x;
case 1: return this.y;
case 2: return this.z;
default: throw new Error( 'index is out of range: ' + index );
}
},
copy: function ( v ) {
this.x = v.x;
this.y = v.y;
this.z = v.z;
return this;
},
add: function ( v, w ) {
this.x += v.x;
this.y += v.y;
this.z += v.z;
return this;
},
addScalar: function ( s ) {
this.x += s;
this.y += s;
this.z += s;
return this;
},
addVectors: function ( a, b ) {
this.x = a.x + b.x;
this.y = a.y + b.y;
this.z = a.z + b.z;
return this;
},
sub: function ( v, w ) {
this.x -= v.x;
this.y -= v.y;
this.z -= v.z;
return this;
},
subScalar: function ( s ) {
this.x -= s;
this.y -= s;
this.z -= s;
return this;
},
subVectors: function ( a, b ) {
this.x = a.x - b.x;
this.y = a.y - b.y;
this.z = a.z - b.z;
return this;
},
multiply: function ( v, w ) {
if ( w !== undefined ) {
THREE.warn( 'THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.' );
return this.multiplyVectors( v, w );
}
this.x *= v.x;
this.y *= v.y;
this.z *= v.z;
return this;
},
multiplyScalar: function ( scalar ) {
this.x *= scalar;
this.y *= scalar;
this.z *= scalar;
return this;
},
multiplyVectors: function ( a, b ) {
this.x = a.x * b.x;
this.y = a.y * b.y;
this.z = a.z * b.z;
return this;
},
applyEuler: function () {
var quaternion;
return function ( euler ) {
if ( euler instanceof THREE.Euler === false ) {
THREE.error( 'THREE.Vector3: .applyEuler() now expects a Euler rotation rather than a Vector3 and order.' );
}
if ( quaternion === undefined ) quaternion = new THREE.Quaternion();
this.applyQuaternion( quaternion.setFromEuler( euler ) );
return this;
};
}(),
applyAxisAngle: function () {
var quaternion;
return function ( axis, angle ) {
if ( quaternion === undefined ) quaternion = new THREE.Quaternion();
this.applyQuaternion( quaternion.setFromAxisAngle( axis, angle ) );
return this;
};
}(),
applyMatrix3: function ( m ) {
var x = this.x;
var y = this.y;
var z = this.z;
var e = m.elements;
this.x = e[ 0 ] * x + e[ 3 ] * y + e[ 6 ] * z;
this.y = e[ 1 ] * x + e[ 4 ] * y + e[ 7 ] * z;
this.z = e[ 2 ] * x + e[ 5 ] * y + e[ 8 ] * z;
return this;
},
applyMatrix4: function ( m ) {
// input: THREE.Matrix4 affine matrix
var x = this.x, y = this.y, z = this.z;
var e = m.elements;
this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ];
this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ];
this.z = e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ];
return this;
},
applyProjection: function ( m ) {
// input: THREE.Matrix4 projection matrix
var x = this.x, y = this.y, z = this.z;
var e = m.elements;
var d = 1 / ( e[ 3 ] * x + e[ 7 ] * y + e[ 11 ] * z + e[ 15 ] ); // perspective divide
this.x = ( e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[ 12 ] ) * d;
this.y = ( e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z + e[ 13 ] ) * d;
this.z = ( e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z + e[ 14 ] ) * d;
return this;
},
applyQuaternion: function ( q ) {
var x = this.x;
var y = this.y;
var z = this.z;
var qx = q.x;
var qy = q.y;
var qz = q.z;
var qw = q.w;
// calculate quat * vector
var ix = qw * x + qy * z - qz * y;
var iy = qw * y + qz * x - qx * z;
var iz = qw * z + qx * y - qy * x;
var iw = - qx * x - qy * y - qz * z;
// calculate result * inverse quat
this.x = ix * qw + iw * - qx + iy * - qz - iz * - qy;
this.y = iy * qw + iw * - qy + iz * - qx - ix * - qz;
this.z = iz * qw + iw * - qz + ix * - qy - iy * - qx;
return this;
},
project: function () {
var matrix;
return function ( camera ) {
if ( matrix === undefined ) matrix = new THREE.Matrix4();
matrix.multiplyMatrices( camera.projectionMatrix, matrix.getInverse( camera.matrixWorld ) );
return this.applyProjection( matrix );
};
}(),
unproject: function () {
var matrix;
return function ( camera ) {
if ( matrix === undefined ) matrix = new THREE.Matrix4();
matrix.multiplyMatrices( camera.matrixWorld, matrix.getInverse( camera.projectionMatrix ) );
return this.applyProjection( matrix );
};
}(),
transformDirection: function ( m ) {
// input: THREE.Matrix4 affine matrix
// vector interpreted as a direction
var x = this.x, y = this.y, z = this.z;
var e = m.elements;
this.x = e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z;
this.y = e[ 1 ] * x + e[ 5 ] * y + e[ 9 ] * z;
this.z = e[ 2 ] * x + e[ 6 ] * y + e[ 10 ] * z;
this.normalize();
return this;
},
divide: function ( v ) {
this.x /= v.x;
this.y /= v.y;
this.z /= v.z;
return this;
},
divideScalar: function ( scalar ) {
if ( scalar !== 0 ) {
var invScalar = 1 / scalar;
this.x *= invScalar;
this.y *= invScalar;
this.z *= invScalar;
} else {
this.x = 0;
this.y = 0;
this.z = 0;
}
return this;
},
min: function ( v ) {
if ( this.x > v.x ) {
this.x = v.x;
}
if ( this.y > v.y ) {
this.y = v.y;
}
if ( this.z > v.z ) {
this.z = v.z;
}
return this;
},
max: function ( v ) {
if ( this.x < v.x ) {
this.x = v.x;
}
if ( this.y < v.y ) {
this.y = v.y;
}
if ( this.z < v.z ) {
this.z = v.z;
}
return this;
},
clamp: function ( min, max ) {
// This function assumes min < max, if this assumption isn't true it will not operate correctly
if ( this.x < min.x ) {
this.x = min.x;
} else if ( this.x > max.x ) {
this.x = max.x;
}
if ( this.y < min.y ) {
this.y = min.y;
} else if ( this.y > max.y ) {
this.y = max.y;
}
if ( this.z < min.z ) {
this.z = min.z;
} else if ( this.z > max.z ) {
this.z = max.z;
}
return this;
},
clampScalar: ( function () {
var min, max;
return function ( minVal, maxVal ) {
if ( min === undefined ) {
min = new THREE.Vector3();
max = new THREE.Vector3();
}
min.set( minVal, minVal, minVal );
max.set( maxVal, maxVal, maxVal );
return this.clamp( min, max );
};
} )(),
floor: function () {
this.x = Math.floor( this.x );
this.y = Math.floor( this.y );
this.z = Math.floor( this.z );
return this;
},
ceil: function () {
this.x = Math.ceil( this.x );
this.y = Math.ceil( this.y );
this.z = Math.ceil( this.z );
return this;
},
round: function () {
this.x = Math.round( this.x );
this.y = Math.round( this.y );
this.z = Math.round( this.z );
return this;
},
roundToZero: function () {
this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z );
return this;
},
negate: function () {
this.x = - this.x;
this.y = - this.y;
this.z = - this.z;
return this;
},
dot: function ( v ) {
return this.x * v.x + this.y * v.y + this.z * v.z;
},
lengthSq: function () {
return this.x * this.x + this.y * this.y + this.z * this.z;
},
length: function () {
return Math.sqrt( this.x * this.x + this.y * this.y + this.z * this.z );
},
lengthManhattan: function () {
return Math.abs( this.x ) + Math.abs( this.y ) + Math.abs( this.z );
},
normalize: function () {
return this.divideScalar( this.length() );
},
setLength: function ( l ) {
var oldLength = this.length();
if ( oldLength !== 0 && l !== oldLength ) {
this.multiplyScalar( l / oldLength );
}
return this;
},
lerp: function ( v, alpha ) {
this.x += ( v.x - this.x ) * alpha;
this.y += ( v.y - this.y ) * alpha;
this.z += ( v.z - this.z ) * alpha;
return this;
},
lerpVectors: function ( v1, v2, alpha ) {
this.subVectors( v2, v1 ).multiplyScalar( alpha ).add( v1 );
return this;
},
cross: function ( v, w ) {
if ( w !== undefined ) {
THREE.warn( 'THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.' );
return this.crossVectors( v, w );
}
var x = this.x, y = this.y, z = this.z;
this.x = y * v.z - z * v.y;
this.y = z * v.x - x * v.z;
this.z = x * v.y - y * v.x;
return this;
},
crossVectors: function ( a, b ) {
var ax = a.x, ay = a.y, az = a.z;
var bx = b.x, by = b.y, bz = b.z;
this.x = ay * bz - az * by;
this.y = az * bx - ax * bz;
this.z = ax * by - ay * bx;
return this;
},
projectOnVector: function () {
var v1, dot;
return function ( vector ) {
if ( v1 === undefined ) v1 = new THREE.Vector3();
v1.copy( vector ).normalize();
dot = this.dot( v1 );
return this.copy( v1 ).multiplyScalar( dot );
};
}(),
projectOnPlane: function () {
var v1;
return function ( planeNormal ) {
if ( v1 === undefined ) v1 = new THREE.Vector3();
v1.copy( this ).projectOnVector( planeNormal );
return this.sub( v1 );
}
}(),
reflect: function () {
// reflect incident vector off plane orthogonal to normal
// normal is assumed to have unit length
var v1;
return function ( normal ) {
if ( v1 === undefined ) v1 = new THREE.Vector3();
return this.sub( v1.copy( normal ).multiplyScalar( 2 * this.dot( normal ) ) );
}
}(),
angleTo: function ( v ) {
var theta = this.dot( v ) / ( this.length() * v.length() );
// clamp, to handle numerical problems
return Math.acos( THREE.Math.clamp( theta, - 1, 1 ) );
},
distanceTo: function ( v ) {
return Math.sqrt( this.distanceToSquared( v ) );
},
distanceToSquared: function ( v ) {
var dx = this.x - v.x;
var dy = this.y - v.y;
var dz = this.z - v.z;
return dx * dx + dy * dy + dz * dz;
},
setEulerFromRotationMatrix: function ( m, order ) {
THREE.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
},
setEulerFromQuaternion: function ( q, order ) {
THREE.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' );
},
getPositionFromMatrix: function ( m ) {
THREE.warn( 'THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().' );
return this.setFromMatrixPosition( m );
},
getScaleFromMatrix: function ( m ) {
THREE.warn( 'THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().' );
return this.setFromMatrixScale( m );
},
getColumnFromMatrix: function ( index, matrix ) {
THREE.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
return this.setFromMatrixColumn( index, matrix );
},
setFromMatrixPosition: function ( m ) {
this.x = m.elements[ 12 ];
this.y = m.elements[ 13 ];
this.z = m.elements[ 14 ];
return this;
},
setFromMatrixScale: function ( m ) {
var sx = this.set( m.elements[ 0 ], m.elements[ 1 ], m.elements[ 2 ] ).length();
var sy = this.set( m.elements[ 4 ], m.elements[ 5 ], m.elements[ 6 ] ).length();
var sz = this.set( m.elements[ 8 ], m.elements[ 9 ], m.elements[ 10 ] ).length();
this.x = sx;
this.y = sy;
this.z = sz;
return this;
},
setFromMatrixColumn: function ( index, matrix ) {
var offset = index * 4;
var me = matrix.elements;
this.x = me[ offset ];
this.y = me[ offset + 1 ];
this.z = me[ offset + 2 ];
return this;
},
equals: function ( v ) {
return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) );
},
fromArray: function ( array, offset ) {
if ( offset === undefined ) offset = 0;
this.x = array[ offset ];
this.y = array[ offset + 1 ];
this.z = array[ offset + 2 ];
return this;
},
toArray: function ( array, offset ) {
if ( array === undefined ) array = [];
if ( offset === undefined ) offset = 0;
array[ offset ] = this.x;
array[ offset + 1 ] = this.y;
array[ offset + 2 ] = this.z;
return array;
},
fromAttribute: function ( attribute, index, offset ) {
if ( offset === undefined ) offset = 0;
index = index * attribute.itemSize + offset;
this.x = attribute.array[ index ];
this.y = attribute.array[ index + 1 ];
this.z = attribute.array[ index + 2 ];
return this;
},
clone: function () {
return new THREE.Vector3( this.x, this.y, this.z );
}
};
|
strandedcity/makeItZoom
|
src/threejs_files/Vector3.js
|
JavaScript
|
mit
| 13,436
|
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
if user.role == 'admin'
can :manage, :all
elsif !user.id.blank?
[Clothing, ClothingLog, Context, ClothingMatch, CsaFood, DecisionLog, Decision, Food, LibraryItem, LocationHistory, MeasurementLog, Measurement, Stuff, TimeRecord, TorontoLibrary, Memory, TapLogRecord, RecordCategory, Goal, ReceiptItem, ReceiptItemType, ReceiptItemCategory].each do |item|
can :manage, item, user_id: user.id
can :create, item
end
can :manage, GroceryList do |o|
o.user_id == user.id || GroceryListUser.find_by(grocery_list_id: o.id, user_id: user.id)
end
can :create, GroceryList
can :manage, GroceryListItem do |o|
can? :manage, o.grocery_list
end
can :view_food, User, id: user.id
can :manage_account, User, id: user.id
can :delete, User, id: user.id
can :view_tap_log_records, User, id: user.id
can :view_time, User
can :send_feedback, User do |o|
!o.demo?
end
end
can :view, LibraryItem do |o| o.public? and o.user.demo? end
can :view, Memory do |o| o.public? and o.user.demo? end
[:view_contexts, :view_locations, :view_dashboard, :view_clothing, :view_clothing_logs, :view_time, :view_library_items, :view_memories, :view_tap_log_records].each do |sym|
can sym, User do |u|
u.demo? || u.id == user.id
end
end
can :view, Clothing do |o| o.user.demo? end
can :view, TapLogRecord do |o| o.user.demo? and o.public? end
can :view_note, TapLogRecord do |o|
(!o.private? and o.user.demo?) || (o.user_id == user.id)
end
can :view_site, User
end
end
|
sachac/quantified
|
app/models/ability.rb
|
Ruby
|
mit
| 1,714
|
Gitlab Silex Provider
================================
Gitlab service provider for silex micro-framework. Check here: https://github.com/m4tthumphrey/php-gitlab-api
## Example
``` php
<?php
use Silex\Application;
$url = 'http://gitlab.example.com/api/v3';
$key = 'key';
$app = new Application();
$app->register(new GitlabServiceProvider(), array(
"gitlab.url" => $url,
"gitlab.key" => $key
));
$app['gitlab']->api('projects')->show();
```
## Install with Composer
``` json
{
"require": {
"jrschumacher/silex-provider-gitlab": "~0.0"
}
}
```
|
jrschumacher/silex-provider-gitlab
|
README.md
|
Markdown
|
mit
| 573
|
/*! Select2 4.1.0-beta.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها میتوانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}();
|
cdnjs/cdnjs
|
ajax/libs/select2/4.1.0-beta.0/js/i18n/fa.js
|
JavaScript
|
mit
| 1,029
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Dropbox = {}));
}(this, (function (exports) { 'use strict';
// Auto-generated by Stone, do not modify.
var routes = {};
/**
* Sets a user's profile photo.
* @function Dropbox#accountSetProfilePhoto
* @arg {AccountSetProfilePhotoArg} arg - The request parameters.
* @returns {Promise.<AccountSetProfilePhotoResult, Error.<AccountSetProfilePhotoError>>}
*/
routes.accountSetProfilePhoto = function (arg) {
return this.request('account/set_profile_photo', arg, 'user', 'api', 'rpc');
};
/**
* Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
* @function Dropbox#authTokenFromOauth1
* @arg {AuthTokenFromOAuth1Arg} arg - The request parameters.
* @returns {Promise.<AuthTokenFromOAuth1Result, Error.<AuthTokenFromOAuth1Error>>}
*/
routes.authTokenFromOauth1 = function (arg) {
return this.request('auth/token/from_oauth1', arg, 'app', 'api', 'rpc');
};
/**
* Disables the access token used to authenticate the call.
* @function Dropbox#authTokenRevoke
* @arg {void} arg - The request parameters.
* @returns {Promise.<void, Error.<void>>}
*/
routes.authTokenRevoke = function (arg) {
return this.request('auth/token/revoke', arg, 'user', 'api', 'rpc');
};
/**
* This endpoint performs App Authentication, validating the supplied app key
* and secret, and returns the supplied string, to allow you to test your code
* and connection to the Dropbox API. It has no other effect. If you receive an
* HTTP 200 response with the supplied query, it indicates at least part of the
* Dropbox API infrastructure is working and that the app key and secret valid.
* @function Dropbox#checkApp
* @arg {CheckEchoArg} arg - The request parameters.
* @returns {Promise.<CheckEchoResult, Error.<void>>}
*/
routes.checkApp = function (arg) {
return this.request('check/app', arg, 'app', 'api', 'rpc');
};
/**
* This endpoint performs User Authentication, validating the supplied access
* token, and returns the supplied string, to allow you to test your code and
* connection to the Dropbox API. It has no other effect. If you receive an HTTP
* 200 response with the supplied query, it indicates at least part of the
* Dropbox API infrastructure is working and that the access token is valid.
* @function Dropbox#checkUser
* @arg {CheckEchoArg} arg - The request parameters.
* @returns {Promise.<CheckEchoResult, Error.<void>>}
*/
routes.checkUser = function (arg) {
return this.request('check/user', arg, 'user', 'api', 'rpc');
};
/**
* Fetch the binary content of the requested document. This route requires Cloud
* Docs auth. Please make a request to cloud_docs/authorize and supply that
* token in the Authorization header.
* @function Dropbox#cloudDocsGetContent
* @arg {CloudDocsGetContentArg} arg - The request parameters.
* @returns {Promise.<void, Error.<CloudDocsCloudDocsAccessError>>}
*/
routes.cloudDocsGetContent = function (arg) {
return this.request('cloud_docs/get_content', arg, 'user', 'content', 'download');
};
/**
* Fetches metadata associated with a Cloud Doc and user. This route requires
* Cloud Docs auth. Please make a request to cloud_docs/authorize and supply
* that token in the Authorization header.
* @function Dropbox#cloudDocsGetMetadata
* @arg {CloudDocsGetMetadataArg} arg - The request parameters.
* @returns {Promise.<CloudDocsGetMetadataResult, Error.<CloudDocsGetMetadataError>>}
*/
routes.cloudDocsGetMetadata = function (arg) {
return this.request('cloud_docs/get_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Lock a Cloud Doc. This route requires Cloud Docs auth. Please make a request
* to cloud_docs/authorize and supply that token in the Authorization header.
* @function Dropbox#cloudDocsLock
* @arg {CloudDocsLockArg} arg - The request parameters.
* @returns {Promise.<CloudDocsLockResult, Error.<CloudDocsLockingError>>}
*/
routes.cloudDocsLock = function (arg) {
return this.request('cloud_docs/lock', arg, 'user', 'api', 'rpc');
};
/**
* Update the title of a Cloud Doc. This route requires Cloud Docs auth. Please
* make a request to cloud_docs/authorize and supply that token in the
* Authorization header.
* @function Dropbox#cloudDocsRename
* @arg {CloudDocsRenameArg} arg - The request parameters.
* @returns {Promise.<CloudDocsRenameResult, Error.<CloudDocsRenameError>>}
*/
routes.cloudDocsRename = function (arg) {
return this.request('cloud_docs/rename', arg, 'user', 'api', 'rpc');
};
/**
* Unlock a Cloud Doc. This route requires Cloud Docs auth. Please make a
* request to cloud_docs/authorize and supply that token in the Authorization
* header.
* @function Dropbox#cloudDocsUnlock
* @arg {CloudDocsUnlockArg} arg - The request parameters.
* @returns {Promise.<CloudDocsUnlockResult, Error.<CloudDocsLockingError>>}
*/
routes.cloudDocsUnlock = function (arg) {
return this.request('cloud_docs/unlock', arg, 'user', 'api', 'rpc');
};
/**
* Update the contents of a Cloud Doc. This should be called for files with a
* max size of 150MB. This route requires Cloud Docs auth. Please make a request
* to cloud_docs/authorize and supply that token in the Authorization header.
* @function Dropbox#cloudDocsUpdateContent
* @arg {CloudDocsUpdateContentArg} arg - The request parameters.
* @returns {Promise.<CloudDocsUpdateContentResult, Error.<CloudDocsUpdateContentError>>}
*/
routes.cloudDocsUpdateContent = function (arg) {
return this.request('cloud_docs/update_content', arg, 'user', 'content', 'upload');
};
/**
* Removes all manually added contacts. You'll still keep contacts who are on
* your team or who you imported. New contacts will be added when you share.
* @function Dropbox#contactsDeleteManualContacts
* @arg {void} arg - The request parameters.
* @returns {Promise.<void, Error.<void>>}
*/
routes.contactsDeleteManualContacts = function (arg) {
return this.request('contacts/delete_manual_contacts', arg, 'user', 'api', 'rpc');
};
/**
* Removes manually added contacts from the given list.
* @function Dropbox#contactsDeleteManualContactsBatch
* @arg {ContactsDeleteManualContactsArg} arg - The request parameters.
* @returns {Promise.<void, Error.<ContactsDeleteManualContactsError>>}
*/
routes.contactsDeleteManualContactsBatch = function (arg) {
return this.request('contacts/delete_manual_contacts_batch', arg, 'user', 'api', 'rpc');
};
/**
* Add property groups to a Dropbox file. See templates/add_for_user or
* templates/add_for_team to create new templates.
* @function Dropbox#filePropertiesPropertiesAdd
* @arg {FilePropertiesAddPropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesAddPropertiesError>>}
*/
routes.filePropertiesPropertiesAdd = function (arg) {
return this.request('file_properties/properties/add', arg, 'user', 'api', 'rpc');
};
/**
* Overwrite property groups associated with a file. This endpoint should be
* used instead of properties/update when property groups are being updated via
* a "snapshot" instead of via a "delta". In other words, this endpoint will
* delete all omitted fields from a property group, whereas properties/update
* will only delete fields that are explicitly marked for deletion.
* @function Dropbox#filePropertiesPropertiesOverwrite
* @arg {FilePropertiesOverwritePropertyGroupArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesInvalidPropertyGroupError>>}
*/
routes.filePropertiesPropertiesOverwrite = function (arg) {
return this.request('file_properties/properties/overwrite', arg, 'user', 'api', 'rpc');
};
/**
* Permanently removes the specified property group from the file. To remove
* specific property field key value pairs, see properties/update. To update a
* template, see templates/update_for_user or templates/update_for_team. To
* remove a template, see templates/remove_for_user or
* templates/remove_for_team.
* @function Dropbox#filePropertiesPropertiesRemove
* @arg {FilePropertiesRemovePropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesRemovePropertiesError>>}
*/
routes.filePropertiesPropertiesRemove = function (arg) {
return this.request('file_properties/properties/remove', arg, 'user', 'api', 'rpc');
};
/**
* Search across property templates for particular property field values.
* @function Dropbox#filePropertiesPropertiesSearch
* @arg {FilePropertiesPropertiesSearchArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesPropertiesSearchResult, Error.<FilePropertiesPropertiesSearchError>>}
*/
routes.filePropertiesPropertiesSearch = function (arg) {
return this.request('file_properties/properties/search', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from properties/search, use this to paginate
* through all search results.
* @function Dropbox#filePropertiesPropertiesSearchContinue
* @arg {FilePropertiesPropertiesSearchContinueArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesPropertiesSearchResult, Error.<FilePropertiesPropertiesSearchContinueError>>}
*/
routes.filePropertiesPropertiesSearchContinue = function (arg) {
return this.request('file_properties/properties/search/continue', arg, 'user', 'api', 'rpc');
};
/**
* Add, update or remove properties associated with the supplied file and
* templates. This endpoint should be used instead of properties/overwrite when
* property groups are being updated via a "delta" instead of via a "snapshot" .
* In other words, this endpoint will not delete any omitted fields from a
* property group, whereas properties/overwrite will delete any fields that are
* omitted from a property group.
* @function Dropbox#filePropertiesPropertiesUpdate
* @arg {FilePropertiesUpdatePropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesUpdatePropertiesError>>}
*/
routes.filePropertiesPropertiesUpdate = function (arg) {
return this.request('file_properties/properties/update', arg, 'user', 'api', 'rpc');
};
/**
* Add a template associated with a team. See properties/add to add properties
* to a file or folder. Note: this endpoint will create team-owned templates.
* @function Dropbox#filePropertiesTemplatesAddForTeam
* @arg {FilePropertiesAddTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesAddTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes.filePropertiesTemplatesAddForTeam = function (arg) {
return this.request('file_properties/templates/add_for_team', arg, 'team', 'api', 'rpc');
};
/**
* Add a template associated with a user. See properties/add to add properties
* to a file. This endpoint can't be called on a team member or admin's behalf.
* @function Dropbox#filePropertiesTemplatesAddForUser
* @arg {FilePropertiesAddTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesAddTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes.filePropertiesTemplatesAddForUser = function (arg) {
return this.request('file_properties/templates/add_for_user', arg, 'user', 'api', 'rpc');
};
/**
* Get the schema for a specified template.
* @function Dropbox#filePropertiesTemplatesGetForTeam
* @arg {FilePropertiesGetTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesGetTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesGetForTeam = function (arg) {
return this.request('file_properties/templates/get_for_team', arg, 'team', 'api', 'rpc');
};
/**
* Get the schema for a specified template. This endpoint can't be called on a
* team member or admin's behalf.
* @function Dropbox#filePropertiesTemplatesGetForUser
* @arg {FilePropertiesGetTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesGetTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesGetForUser = function (arg) {
return this.request('file_properties/templates/get_for_user', arg, 'user', 'api', 'rpc');
};
/**
* Get the template identifiers for a team. To get the schema of each template
* use templates/get_for_team.
* @function Dropbox#filePropertiesTemplatesListForTeam
* @arg {void} arg - The request parameters.
* @returns {Promise.<FilePropertiesListTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesListForTeam = function (arg) {
return this.request('file_properties/templates/list_for_team', arg, 'team', 'api', 'rpc');
};
/**
* Get the template identifiers for a team. To get the schema of each template
* use templates/get_for_user. This endpoint can't be called on a team member or
* admin's behalf.
* @function Dropbox#filePropertiesTemplatesListForUser
* @arg {void} arg - The request parameters.
* @returns {Promise.<FilePropertiesListTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesListForUser = function (arg) {
return this.request('file_properties/templates/list_for_user', arg, 'user', 'api', 'rpc');
};
/**
* Permanently removes the specified template created from
* templates/add_for_user. All properties associated with the template will also
* be removed. This action cannot be undone.
* @function Dropbox#filePropertiesTemplatesRemoveForTeam
* @arg {FilePropertiesRemoveTemplateArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesRemoveForTeam = function (arg) {
return this.request('file_properties/templates/remove_for_team', arg, 'team', 'api', 'rpc');
};
/**
* Permanently removes the specified template created from
* templates/add_for_user. All properties associated with the template will also
* be removed. This action cannot be undone.
* @function Dropbox#filePropertiesTemplatesRemoveForUser
* @arg {FilePropertiesRemoveTemplateArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesTemplateError>>}
*/
routes.filePropertiesTemplatesRemoveForUser = function (arg) {
return this.request('file_properties/templates/remove_for_user', arg, 'user', 'api', 'rpc');
};
/**
* Update a template associated with a team. This route can update the template
* name, the template description and add optional properties to templates.
* @function Dropbox#filePropertiesTemplatesUpdateForTeam
* @arg {FilePropertiesUpdateTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesUpdateTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes.filePropertiesTemplatesUpdateForTeam = function (arg) {
return this.request('file_properties/templates/update_for_team', arg, 'team', 'api', 'rpc');
};
/**
* Update a template associated with a user. This route can update the template
* name, the template description and add optional properties to templates. This
* endpoint can't be called on a team member or admin's behalf.
* @function Dropbox#filePropertiesTemplatesUpdateForUser
* @arg {FilePropertiesUpdateTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesUpdateTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes.filePropertiesTemplatesUpdateForUser = function (arg) {
return this.request('file_properties/templates/update_for_user', arg, 'user', 'api', 'rpc');
};
/**
* Returns the total number of file requests owned by this user. Includes both
* open and closed file requests.
* @function Dropbox#fileRequestsCount
* @arg {void} arg - The request parameters.
* @returns {Promise.<FileRequestsCountFileRequestsResult, Error.<FileRequestsCountFileRequestsError>>}
*/
routes.fileRequestsCount = function (arg) {
return this.request('file_requests/count', arg, 'user', 'api', 'rpc');
};
/**
* Creates a file request for this user.
* @function Dropbox#fileRequestsCreate
* @arg {FileRequestsCreateFileRequestArgs} arg - The request parameters.
* @returns {Promise.<FileRequestsFileRequest, Error.<FileRequestsCreateFileRequestError>>}
*/
routes.fileRequestsCreate = function (arg) {
return this.request('file_requests/create', arg, 'user', 'api', 'rpc');
};
/**
* Delete a batch of closed file requests.
* @function Dropbox#fileRequestsDelete
* @arg {FileRequestsDeleteFileRequestArgs} arg - The request parameters.
* @returns {Promise.<FileRequestsDeleteFileRequestsResult, Error.<FileRequestsDeleteFileRequestError>>}
*/
routes.fileRequestsDelete = function (arg) {
return this.request('file_requests/delete', arg, 'user', 'api', 'rpc');
};
/**
* Delete all closed file requests owned by this user.
* @function Dropbox#fileRequestsDeleteAllClosed
* @arg {void} arg - The request parameters.
* @returns {Promise.<FileRequestsDeleteAllClosedFileRequestsResult, Error.<FileRequestsDeleteAllClosedFileRequestsError>>}
*/
routes.fileRequestsDeleteAllClosed = function (arg) {
return this.request('file_requests/delete_all_closed', arg, 'user', 'api', 'rpc');
};
/**
* Returns the specified file request.
* @function Dropbox#fileRequestsGet
* @arg {FileRequestsGetFileRequestArgs} arg - The request parameters.
* @returns {Promise.<FileRequestsFileRequest, Error.<FileRequestsGetFileRequestError>>}
*/
routes.fileRequestsGet = function (arg) {
return this.request('file_requests/get', arg, 'user', 'api', 'rpc');
};
/**
* Returns a list of file requests owned by this user. For apps with the app
* folder permission, this will only return file requests with destinations in
* the app folder.
* @function Dropbox#fileRequestsListV2
* @arg {FileRequestsListFileRequestsArg} arg - The request parameters.
* @returns {Promise.<FileRequestsListFileRequestsV2Result, Error.<FileRequestsListFileRequestsError>>}
*/
routes.fileRequestsListV2 = function (arg) {
return this.request('file_requests/list_v2', arg, 'user', 'api', 'rpc');
};
/**
* Returns a list of file requests owned by this user. For apps with the app
* folder permission, this will only return file requests with destinations in
* the app folder.
* @function Dropbox#fileRequestsList
* @arg {void} arg - The request parameters.
* @returns {Promise.<FileRequestsListFileRequestsResult, Error.<FileRequestsListFileRequestsError>>}
*/
routes.fileRequestsList = function (arg) {
return this.request('file_requests/list', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_v2, use this to paginate through
* all file requests. The cursor must come from a previous call to list_v2 or
* list/continue.
* @function Dropbox#fileRequestsListContinue
* @arg {FileRequestsListFileRequestsContinueArg} arg - The request parameters.
* @returns {Promise.<FileRequestsListFileRequestsV2Result, Error.<FileRequestsListFileRequestsContinueError>>}
*/
routes.fileRequestsListContinue = function (arg) {
return this.request('file_requests/list/continue', arg, 'user', 'api', 'rpc');
};
/**
* Update a file request.
* @function Dropbox#fileRequestsUpdate
* @arg {FileRequestsUpdateFileRequestArgs} arg - The request parameters.
* @returns {Promise.<FileRequestsFileRequest, Error.<FileRequestsUpdateFileRequestError>>}
*/
routes.fileRequestsUpdate = function (arg) {
return this.request('file_requests/update', arg, 'user', 'api', 'rpc');
};
/**
* Returns the metadata for a file or folder. This is an alpha endpoint
* compatible with the properties API. Note: Metadata for the root folder is
* unsupported.
* @function Dropbox#filesAlphaGetMetadata
* @deprecated
* @arg {FilesAlphaGetMetadataArg} arg - The request parameters.
* @returns {Promise.<(FilesFileMetadata|FilesFolderMetadata|FilesDeletedMetadata), Error.<FilesAlphaGetMetadataError>>}
*/
routes.filesAlphaGetMetadata = function (arg) {
return this.request('files/alpha/get_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Create a new file with the contents provided in the request. Note that this
* endpoint is part of the properties API alpha and is slightly different from
* upload. Do not use this to upload a file larger than 150 MB. Instead, create
* an upload session with upload_session/start.
* @function Dropbox#filesAlphaUpload
* @deprecated
* @arg {FilesCommitInfoWithProperties} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesUploadErrorWithProperties>>}
*/
routes.filesAlphaUpload = function (arg) {
return this.request('files/alpha/upload', arg, 'user', 'content', 'upload');
};
/**
* Copy a file or folder to a different location in the user's Dropbox. If the
* source path is a folder all its contents will be copied.
* @function Dropbox#filesCopyV2
* @arg {FilesRelocationArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationResult, Error.<FilesRelocationError>>}
*/
routes.filesCopyV2 = function (arg) {
return this.request('files/copy_v2', arg, 'user', 'api', 'rpc');
};
/**
* Copy a file or folder to a different location in the user's Dropbox. If the
* source path is a folder all its contents will be copied.
* @function Dropbox#filesCopy
* @deprecated
* @arg {FilesRelocationArg} arg - The request parameters.
* @returns {Promise.<(FilesFileMetadata|FilesFolderMetadata|FilesDeletedMetadata), Error.<FilesRelocationError>>}
*/
routes.filesCopy = function (arg) {
return this.request('files/copy', arg, 'user', 'api', 'rpc');
};
/**
* Copy multiple files or folders to different locations at once in the user's
* Dropbox. This route will replace copy_batch. The main difference is this
* route will return status for each entry, while copy_batch raises failure if
* any entry fails. This route will either finish synchronously, or return a job
* ID and do the async copy job in background. Please use copy_batch/check_v2 to
* check the job status.
* @function Dropbox#filesCopyBatchV2
* @arg {Object} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchV2Launch, Error.<void>>}
*/
routes.filesCopyBatchV2 = function (arg) {
return this.request('files/copy_batch_v2', arg, 'user', 'api', 'rpc');
};
/**
* Copy multiple files or folders to different locations at once in the user's
* Dropbox. If RelocationBatchArg.allow_shared_folder is false, this route is
* atomic. If one entry fails, the whole transaction will abort. If
* RelocationBatchArg.allow_shared_folder is true, atomicity is not guaranteed,
* but it allows you to copy the contents of shared folders to new locations.
* This route will return job ID immediately and do the async copy job in
* background. Please use copy_batch/check to check the job status.
* @function Dropbox#filesCopyBatch
* @deprecated
* @arg {FilesRelocationBatchArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchLaunch, Error.<void>>}
*/
routes.filesCopyBatch = function (arg) {
return this.request('files/copy_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for copy_batch_v2. It returns list
* of results for each entry.
* @function Dropbox#filesCopyBatchCheckV2
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchV2JobStatus, Error.<AsyncPollError>>}
*/
routes.filesCopyBatchCheckV2 = function (arg) {
return this.request('files/copy_batch/check_v2', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for copy_batch. If success, it
* returns list of results for each entry.
* @function Dropbox#filesCopyBatchCheck
* @deprecated
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchJobStatus, Error.<AsyncPollError>>}
*/
routes.filesCopyBatchCheck = function (arg) {
return this.request('files/copy_batch/check', arg, 'user', 'api', 'rpc');
};
/**
* Get a copy reference to a file or folder. This reference string can be used
* to save that file or folder to another user's Dropbox by passing it to
* copy_reference/save.
* @function Dropbox#filesCopyReferenceGet
* @arg {FilesGetCopyReferenceArg} arg - The request parameters.
* @returns {Promise.<FilesGetCopyReferenceResult, Error.<FilesGetCopyReferenceError>>}
*/
routes.filesCopyReferenceGet = function (arg) {
return this.request('files/copy_reference/get', arg, 'user', 'api', 'rpc');
};
/**
* Save a copy reference returned by copy_reference/get to the user's Dropbox.
* @function Dropbox#filesCopyReferenceSave
* @arg {FilesSaveCopyReferenceArg} arg - The request parameters.
* @returns {Promise.<FilesSaveCopyReferenceResult, Error.<FilesSaveCopyReferenceError>>}
*/
routes.filesCopyReferenceSave = function (arg) {
return this.request('files/copy_reference/save', arg, 'user', 'api', 'rpc');
};
/**
* Create a folder at a given path.
* @function Dropbox#filesCreateFolderV2
* @arg {FilesCreateFolderArg} arg - The request parameters.
* @returns {Promise.<FilesCreateFolderResult, Error.<FilesCreateFolderError>>}
*/
routes.filesCreateFolderV2 = function (arg) {
return this.request('files/create_folder_v2', arg, 'user', 'api', 'rpc');
};
/**
* Create a folder at a given path.
* @function Dropbox#filesCreateFolder
* @deprecated
* @arg {FilesCreateFolderArg} arg - The request parameters.
* @returns {Promise.<FilesFolderMetadata, Error.<FilesCreateFolderError>>}
*/
routes.filesCreateFolder = function (arg) {
return this.request('files/create_folder', arg, 'user', 'api', 'rpc');
};
/**
* Create multiple folders at once. This route is asynchronous for large
* batches, which returns a job ID immediately and runs the create folder batch
* asynchronously. Otherwise, creates the folders and returns the result
* synchronously for smaller inputs. You can force asynchronous behaviour by
* using the CreateFolderBatchArg.force_async flag. Use
* create_folder_batch/check to check the job status.
* @function Dropbox#filesCreateFolderBatch
* @arg {FilesCreateFolderBatchArg} arg - The request parameters.
* @returns {Promise.<FilesCreateFolderBatchLaunch, Error.<void>>}
*/
routes.filesCreateFolderBatch = function (arg) {
return this.request('files/create_folder_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for create_folder_batch. If
* success, it returns list of result for each entry.
* @function Dropbox#filesCreateFolderBatchCheck
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesCreateFolderBatchJobStatus, Error.<AsyncPollError>>}
*/
routes.filesCreateFolderBatchCheck = function (arg) {
return this.request('files/create_folder_batch/check', arg, 'user', 'api', 'rpc');
};
/**
* Delete the file or folder at a given path. If the path is a folder, all its
* contents will be deleted too. A successful response indicates that the file
* or folder was deleted. The returned metadata will be the corresponding
* FileMetadata or FolderMetadata for the item at time of deletion, and not a
* DeletedMetadata object.
* @function Dropbox#filesDeleteV2
* @arg {FilesDeleteArg} arg - The request parameters.
* @returns {Promise.<FilesDeleteResult, Error.<FilesDeleteError>>}
*/
routes.filesDeleteV2 = function (arg) {
return this.request('files/delete_v2', arg, 'user', 'api', 'rpc');
};
/**
* Delete the file or folder at a given path. If the path is a folder, all its
* contents will be deleted too. A successful response indicates that the file
* or folder was deleted. The returned metadata will be the corresponding
* FileMetadata or FolderMetadata for the item at time of deletion, and not a
* DeletedMetadata object.
* @function Dropbox#filesDelete
* @deprecated
* @arg {FilesDeleteArg} arg - The request parameters.
* @returns {Promise.<(FilesFileMetadata|FilesFolderMetadata|FilesDeletedMetadata), Error.<FilesDeleteError>>}
*/
routes.filesDelete = function (arg) {
return this.request('files/delete', arg, 'user', 'api', 'rpc');
};
/**
* Delete multiple files/folders at once. This route is asynchronous, which
* returns a job ID immediately and runs the delete batch asynchronously. Use
* delete_batch/check to check the job status.
* @function Dropbox#filesDeleteBatch
* @arg {FilesDeleteBatchArg} arg - The request parameters.
* @returns {Promise.<FilesDeleteBatchLaunch, Error.<void>>}
*/
routes.filesDeleteBatch = function (arg) {
return this.request('files/delete_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for delete_batch. If success, it
* returns list of result for each entry.
* @function Dropbox#filesDeleteBatchCheck
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesDeleteBatchJobStatus, Error.<AsyncPollError>>}
*/
routes.filesDeleteBatchCheck = function (arg) {
return this.request('files/delete_batch/check', arg, 'user', 'api', 'rpc');
};
/**
* Download a file from a user's Dropbox.
* @function Dropbox#filesDownload
* @arg {FilesDownloadArg} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesDownloadError>>}
*/
routes.filesDownload = function (arg) {
return this.request('files/download', arg, 'user', 'content', 'download');
};
/**
* Download a folder from the user's Dropbox, as a zip file. The folder must be
* less than 20 GB in size and have fewer than 10,000 total files. The input
* cannot be a single file. Any single file must be less than 4GB in size.
* @function Dropbox#filesDownloadZip
* @arg {FilesDownloadZipArg} arg - The request parameters.
* @returns {Promise.<FilesDownloadZipResult, Error.<FilesDownloadZipError>>}
*/
routes.filesDownloadZip = function (arg) {
return this.request('files/download_zip', arg, 'user', 'content', 'download');
};
/**
* Export a file from a user's Dropbox. This route only supports exporting files
* that cannot be downloaded directly and whose ExportResult.file_metadata has
* ExportInfo.export_as populated.
* @function Dropbox#filesExport
* @arg {FilesExportArg} arg - The request parameters.
* @returns {Promise.<FilesExportResult, Error.<FilesExportError>>}
*/
routes.filesExport = function (arg) {
return this.request('files/export', arg, 'user', 'content', 'download');
};
/**
* Return the lock metadata for the given list of paths.
* @function Dropbox#filesGetFileLockBatch
* @arg {FilesLockFileBatchArg} arg - The request parameters.
* @returns {Promise.<FilesLockFileBatchResult, Error.<FilesLockFileError>>}
*/
routes.filesGetFileLockBatch = function (arg) {
return this.request('files/get_file_lock_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the metadata for a file or folder. Note: Metadata for the root folder
* is unsupported.
* @function Dropbox#filesGetMetadata
* @arg {FilesGetMetadataArg} arg - The request parameters.
* @returns {Promise.<(FilesFileMetadata|FilesFolderMetadata|FilesDeletedMetadata), Error.<FilesGetMetadataError>>}
*/
routes.filesGetMetadata = function (arg) {
return this.request('files/get_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Get a preview for a file. Currently, PDF previews are generated for files
* with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc,
* .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML
* previews are generated for files with the following extensions: .csv, .ods,
* .xls, .xlsm, .gsheet, .xlsx. Other formats will return an unsupported
* extension error.
* @function Dropbox#filesGetPreview
* @arg {FilesPreviewArg} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesPreviewError>>}
*/
routes.filesGetPreview = function (arg) {
return this.request('files/get_preview', arg, 'user', 'content', 'download');
};
/**
* Get a temporary link to stream content of a file. This link will expire in
* four hours and afterwards you will get 410 Gone. This URL should not be used
* to display content directly in the browser. The Content-Type of the link is
* determined automatically by the file's mime type.
* @function Dropbox#filesGetTemporaryLink
* @arg {FilesGetTemporaryLinkArg} arg - The request parameters.
* @returns {Promise.<FilesGetTemporaryLinkResult, Error.<FilesGetTemporaryLinkError>>}
*/
routes.filesGetTemporaryLink = function (arg) {
return this.request('files/get_temporary_link', arg, 'user', 'api', 'rpc');
};
/**
* Get a one-time use temporary upload link to upload a file to a Dropbox
* location. This endpoint acts as a delayed upload. The returned temporary
* upload link may be used to make a POST request with the data to be uploaded.
* The upload will then be perfomed with the CommitInfo previously provided to
* get_temporary_upload_link but evaluated only upon consumption. Hence, errors
* stemming from invalid CommitInfo with respect to the state of the user's
* Dropbox will only be communicated at consumption time. Additionally, these
* errors are surfaced as generic HTTP 409 Conflict responses, potentially
* hiding issue details. The maximum temporary upload link duration is 4 hours.
* Upon consumption or expiration, a new link will have to be generated.
* Multiple links may exist for a specific upload path at any given time. The
* POST request on the temporary upload link must have its Content-Type set to
* "application/octet-stream". Example temporary upload link consumption
* request: curl -X POST
* https://dl.dropboxusercontent.com/apitul/1/bNi2uIYF51cVBND --header
* "Content-Type: application/octet-stream" --data-binary @local_file.txt A
* successful temporary upload link consumption request returns the content hash
* of the uploaded data in JSON format. Example succesful temporary upload link
* consumption response: {"content-hash":
* "599d71033d700ac892a0e48fa61b125d2f5994"} An unsuccessful temporary upload
* link consumption request returns any of the following status codes: HTTP 400
* Bad Request: Content-Type is not one of application/octet-stream and
* text/plain or request is invalid. HTTP 409 Conflict: The temporary upload
* link does not exist or is currently unavailable, the upload failed, or
* another error happened. HTTP 410 Gone: The temporary upload link is expired
* or consumed. Example unsuccessful temporary upload link consumption
* response: Temporary upload link has been recently consumed.
* @function Dropbox#filesGetTemporaryUploadLink
* @arg {FilesGetTemporaryUploadLinkArg} arg - The request parameters.
* @returns {Promise.<FilesGetTemporaryUploadLinkResult, Error.<void>>}
*/
routes.filesGetTemporaryUploadLink = function (arg) {
return this.request('files/get_temporary_upload_link', arg, 'user', 'api', 'rpc');
};
/**
* Get a thumbnail for an image. This method currently supports files with the
* following file extensions: jpg, jpeg, png, tiff, tif, gif and bmp. Photos
* that are larger than 20MB in size won't be converted to a thumbnail.
* @function Dropbox#filesGetThumbnail
* @arg {FilesThumbnailArg} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesThumbnailError>>}
*/
routes.filesGetThumbnail = function (arg) {
return this.request('files/get_thumbnail', arg, 'user', 'content', 'download');
};
/**
* Get a thumbnail for a file.
* @function Dropbox#filesGetThumbnailV2
* @arg {FilesThumbnailV2Arg} arg - The request parameters.
* @returns {Promise.<FilesPreviewResult, Error.<FilesThumbnailV2Error>>}
*/
routes.filesGetThumbnailV2 = function (arg) {
return this.request('files/get_thumbnail_v2', arg, 'app, user', 'content', 'download');
};
/**
* Get thumbnails for a list of images. We allow up to 25 thumbnails in a single
* batch. This method currently supports files with the following file
* extensions: jpg, jpeg, png, tiff, tif, gif and bmp. Photos that are larger
* than 20MB in size won't be converted to a thumbnail.
* @function Dropbox#filesGetThumbnailBatch
* @arg {FilesGetThumbnailBatchArg} arg - The request parameters.
* @returns {Promise.<FilesGetThumbnailBatchResult, Error.<FilesGetThumbnailBatchError>>}
*/
routes.filesGetThumbnailBatch = function (arg) {
return this.request('files/get_thumbnail_batch', arg, 'user', 'content', 'rpc');
};
/**
* Starts returning the contents of a folder. If the result's
* ListFolderResult.has_more field is true, call list_folder/continue with the
* returned ListFolderResult.cursor to retrieve more entries. If you're using
* ListFolderArg.recursive set to true to keep a local cache of the contents of
* a Dropbox account, iterate through each entry in order and process them as
* follows to keep your local state in sync: For each FileMetadata, store the
* new entry at the given path in your local state. If the required parent
* folders don't exist yet, create them. If there's already something else at
* the given path, replace it and remove all its children. For each
* FolderMetadata, store the new entry at the given path in your local state. If
* the required parent folders don't exist yet, create them. If there's already
* something else at the given path, replace it but leave the children as they
* are. Check the new entry's FolderSharingInfo.read_only and set all its
* children's read-only statuses to match. For each DeletedMetadata, if your
* local state has something at the given path, remove it and all its children.
* If there's nothing at the given path, ignore this entry. Note:
* auth.RateLimitError may be returned if multiple list_folder or
* list_folder/continue calls with same parameters are made simultaneously by
* same API app for same user. If your app implements retry logic, please hold
* off the retry until the previous request finishes.
* @function Dropbox#filesListFolder
* @arg {FilesListFolderArg} arg - The request parameters.
* @returns {Promise.<FilesListFolderResult, Error.<FilesListFolderError>>}
*/
routes.filesListFolder = function (arg) {
return this.request('files/list_folder', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_folder, use this to paginate
* through all files and retrieve updates to the folder, following the same
* rules as documented for list_folder.
* @function Dropbox#filesListFolderContinue
* @arg {FilesListFolderContinueArg} arg - The request parameters.
* @returns {Promise.<FilesListFolderResult, Error.<FilesListFolderContinueError>>}
*/
routes.filesListFolderContinue = function (arg) {
return this.request('files/list_folder/continue', arg, 'user', 'api', 'rpc');
};
/**
* A way to quickly get a cursor for the folder's state. Unlike list_folder,
* list_folder/get_latest_cursor doesn't return any entries. This endpoint is
* for app which only needs to know about new files and modifications and
* doesn't need to know about files that already exist in Dropbox.
* @function Dropbox#filesListFolderGetLatestCursor
* @arg {FilesListFolderArg} arg - The request parameters.
* @returns {Promise.<FilesListFolderGetLatestCursorResult, Error.<FilesListFolderError>>}
*/
routes.filesListFolderGetLatestCursor = function (arg) {
return this.request('files/list_folder/get_latest_cursor', arg, 'user', 'api', 'rpc');
};
/**
* A longpoll endpoint to wait for changes on an account. In conjunction with
* list_folder/continue, this call gives you a low-latency way to monitor an
* account for file changes. The connection will block until there are changes
* available or a timeout occurs. This endpoint is useful mostly for client-side
* apps. If you're looking for server-side notifications, check out our webhooks
* documentation https://www.dropbox.com/developers/reference/webhooks.
* @function Dropbox#filesListFolderLongpoll
* @arg {FilesListFolderLongpollArg} arg - The request parameters.
* @returns {Promise.<FilesListFolderLongpollResult, Error.<FilesListFolderLongpollError>>}
*/
routes.filesListFolderLongpoll = function (arg) {
return this.request('files/list_folder/longpoll', arg, 'noauth', 'notify', 'rpc');
};
/**
* Returns revisions for files based on a file path or a file id. The file path
* or file id is identified from the latest file entry at the given file path or
* id. This end point allows your app to query either by file path or file id by
* setting the mode parameter appropriately. In the ListRevisionsMode.path
* (default) mode, all revisions at the same file path as the latest file entry
* are returned. If revisions with the same file id are desired, then mode must
* be set to ListRevisionsMode.id. The ListRevisionsMode.id mode is useful to
* retrieve revisions for a given file across moves or renames.
* @function Dropbox#filesListRevisions
* @arg {FilesListRevisionsArg} arg - The request parameters.
* @returns {Promise.<FilesListRevisionsResult, Error.<FilesListRevisionsError>>}
*/
routes.filesListRevisions = function (arg) {
return this.request('files/list_revisions', arg, 'user', 'api', 'rpc');
};
/**
* Lock the files at the given paths. A locked file will be writable only by the
* lock holder. A successful response indicates that the file has been locked.
* Returns a list of the locked file paths and their metadata after this
* operation.
* @function Dropbox#filesLockFileBatch
* @arg {FilesLockFileBatchArg} arg - The request parameters.
* @returns {Promise.<FilesLockFileBatchResult, Error.<FilesLockFileError>>}
*/
routes.filesLockFileBatch = function (arg) {
return this.request('files/lock_file_batch', arg, 'user', 'api', 'rpc');
};
/**
* Move a file or folder to a different location in the user's Dropbox. If the
* source path is a folder all its contents will be moved. Note that we do not
* currently support case-only renaming.
* @function Dropbox#filesMoveV2
* @arg {FilesRelocationArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationResult, Error.<FilesRelocationError>>}
*/
routes.filesMoveV2 = function (arg) {
return this.request('files/move_v2', arg, 'user', 'api', 'rpc');
};
/**
* Move a file or folder to a different location in the user's Dropbox. If the
* source path is a folder all its contents will be moved.
* @function Dropbox#filesMove
* @deprecated
* @arg {FilesRelocationArg} arg - The request parameters.
* @returns {Promise.<(FilesFileMetadata|FilesFolderMetadata|FilesDeletedMetadata), Error.<FilesRelocationError>>}
*/
routes.filesMove = function (arg) {
return this.request('files/move', arg, 'user', 'api', 'rpc');
};
/**
* Move multiple files or folders to different locations at once in the user's
* Dropbox. Note that we do not currently support case-only renaming. This route
* will replace move_batch. The main difference is this route will return status
* for each entry, while move_batch raises failure if any entry fails. This
* route will either finish synchronously, or return a job ID and do the async
* move job in background. Please use move_batch/check_v2 to check the job
* status.
* @function Dropbox#filesMoveBatchV2
* @arg {FilesMoveBatchArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchV2Launch, Error.<void>>}
*/
routes.filesMoveBatchV2 = function (arg) {
return this.request('files/move_batch_v2', arg, 'user', 'api', 'rpc');
};
/**
* Move multiple files or folders to different locations at once in the user's
* Dropbox. This route will return job ID immediately and do the async moving
* job in background. Please use move_batch/check to check the job status.
* @function Dropbox#filesMoveBatch
* @deprecated
* @arg {FilesRelocationBatchArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchLaunch, Error.<void>>}
*/
routes.filesMoveBatch = function (arg) {
return this.request('files/move_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for move_batch_v2. It returns list
* of results for each entry.
* @function Dropbox#filesMoveBatchCheckV2
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchV2JobStatus, Error.<AsyncPollError>>}
*/
routes.filesMoveBatchCheckV2 = function (arg) {
return this.request('files/move_batch/check_v2', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for move_batch. If success, it
* returns list of results for each entry.
* @function Dropbox#filesMoveBatchCheck
* @deprecated
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesRelocationBatchJobStatus, Error.<AsyncPollError>>}
*/
routes.filesMoveBatchCheck = function (arg) {
return this.request('files/move_batch/check', arg, 'user', 'api', 'rpc');
};
/**
* Permanently delete the file or folder at a given path (see
* https://www.dropbox.com/en/help/40). Note: This endpoint is only available
* for Dropbox Business apps.
* @function Dropbox#filesPermanentlyDelete
* @arg {FilesDeleteArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilesDeleteError>>}
*/
routes.filesPermanentlyDelete = function (arg) {
return this.request('files/permanently_delete', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesAdd
* @deprecated
* @arg {FilePropertiesAddPropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesAddPropertiesError>>}
*/
routes.filesPropertiesAdd = function (arg) {
return this.request('files/properties/add', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesOverwrite
* @deprecated
* @arg {FilePropertiesOverwritePropertyGroupArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesInvalidPropertyGroupError>>}
*/
routes.filesPropertiesOverwrite = function (arg) {
return this.request('files/properties/overwrite', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesRemove
* @deprecated
* @arg {FilePropertiesRemovePropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesRemovePropertiesError>>}
*/
routes.filesPropertiesRemove = function (arg) {
return this.request('files/properties/remove', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesTemplateGet
* @deprecated
* @arg {FilePropertiesGetTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesGetTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filesPropertiesTemplateGet = function (arg) {
return this.request('files/properties/template/get', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesTemplateList
* @deprecated
* @arg {void} arg - The request parameters.
* @returns {Promise.<FilePropertiesListTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes.filesPropertiesTemplateList = function (arg) {
return this.request('files/properties/template/list', arg, 'user', 'api', 'rpc');
};
/**
* @function Dropbox#filesPropertiesUpdate
* @deprecated
* @arg {FilePropertiesUpdatePropertiesArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilePropertiesUpdatePropertiesError>>}
*/
routes.filesPropertiesUpdate = function (arg) {
return this.request('files/properties/update', arg, 'user', 'api', 'rpc');
};
/**
* Restore a specific revision of a file to the given path.
* @function Dropbox#filesRestore
* @arg {FilesRestoreArg} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesRestoreError>>}
*/
routes.filesRestore = function (arg) {
return this.request('files/restore', arg, 'user', 'api', 'rpc');
};
/**
* Save the data from a specified URL into a file in user's Dropbox. Note that
* the transfer from the URL must complete within 5 minutes, or the operation
* will time out and the job will fail. If the given path already exists, the
* file will be renamed to avoid the conflict (e.g. myfile (1).txt).
* @function Dropbox#filesSaveUrl
* @arg {FilesSaveUrlArg} arg - The request parameters.
* @returns {Promise.<FilesSaveUrlResult, Error.<FilesSaveUrlError>>}
*/
routes.filesSaveUrl = function (arg) {
return this.request('files/save_url', arg, 'user', 'api', 'rpc');
};
/**
* Check the status of a save_url job.
* @function Dropbox#filesSaveUrlCheckJobStatus
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesSaveUrlJobStatus, Error.<AsyncPollError>>}
*/
routes.filesSaveUrlCheckJobStatus = function (arg) {
return this.request('files/save_url/check_job_status', arg, 'user', 'api', 'rpc');
};
/**
* Searches for files and folders. Note: Recent changes may not immediately be
* reflected in search results due to a short delay in indexing.
* @function Dropbox#filesSearch
* @deprecated
* @arg {FilesSearchArg} arg - The request parameters.
* @returns {Promise.<FilesSearchResult, Error.<FilesSearchError>>}
*/
routes.filesSearch = function (arg) {
return this.request('files/search', arg, 'user', 'api', 'rpc');
};
/**
* Searches for files and folders. Note: search_v2 along with search/continue_v2
* can only be used to retrieve a maximum of 10,000 matches. Recent changes may
* not immediately be reflected in search results due to a short delay in
* indexing. Duplicate results may be returned across pages. Some results may
* not be returned.
* @function Dropbox#filesSearchV2
* @arg {FilesSearchV2Arg} arg - The request parameters.
* @returns {Promise.<FilesSearchV2Result, Error.<FilesSearchError>>}
*/
routes.filesSearchV2 = function (arg) {
return this.request('files/search_v2', arg, 'user', 'api', 'rpc');
};
/**
* Fetches the next page of search results returned from search_v2. Note:
* search_v2 along with search/continue_v2 can only be used to retrieve a
* maximum of 10,000 matches. Recent changes may not immediately be reflected in
* search results due to a short delay in indexing. Duplicate results may be
* returned across pages. Some results may not be returned.
* @function Dropbox#filesSearchContinueV2
* @arg {FilesSearchV2ContinueArg} arg - The request parameters.
* @returns {Promise.<FilesSearchV2Result, Error.<FilesSearchError>>}
*/
routes.filesSearchContinueV2 = function (arg) {
return this.request('files/search/continue_v2', arg, 'user', 'api', 'rpc');
};
/**
* Unlock the files at the given paths. A locked file can only be unlocked by
* the lock holder or, if a business account, a team admin. A successful
* response indicates that the file has been unlocked. Returns a list of the
* unlocked file paths and their metadata after this operation.
* @function Dropbox#filesUnlockFileBatch
* @arg {FilesUnlockFileBatchArg} arg - The request parameters.
* @returns {Promise.<FilesLockFileBatchResult, Error.<FilesLockFileError>>}
*/
routes.filesUnlockFileBatch = function (arg) {
return this.request('files/unlock_file_batch', arg, 'user', 'api', 'rpc');
};
/**
* Create a new file with the contents provided in the request. Do not use this
* to upload a file larger than 150 MB. Instead, create an upload session with
* upload_session/start. Calls to this endpoint will count as data transport
* calls for any Dropbox Business teams with a limit on the number of data
* transport calls allowed per month. For more information, see the Data
* transport limit page
* https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUpload
* @arg {FilesCommitInfo} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesUploadError>>}
*/
routes.filesUpload = function (arg) {
return this.request('files/upload', arg, 'user', 'content', 'upload');
};
/**
* Append more data to an upload session. When the parameter close is set, this
* call will close the session. A single request should not upload more than 150
* MB. The maximum size of a file one can upload to an upload session is 350 GB.
* Calls to this endpoint will count as data transport calls for any Dropbox
* Business teams with a limit on the number of data transport calls allowed per
* month. For more information, see the Data transport limit page
* https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUploadSessionAppendV2
* @arg {FilesUploadSessionAppendArg} arg - The request parameters.
* @returns {Promise.<void, Error.<FilesUploadSessionLookupError>>}
*/
routes.filesUploadSessionAppendV2 = function (arg) {
return this.request('files/upload_session/append_v2', arg, 'user', 'content', 'upload');
};
/**
* Append more data to an upload session. A single request should not upload
* more than 150 MB. The maximum size of a file one can upload to an upload
* session is 350 GB. Calls to this endpoint will count as data transport calls
* for any Dropbox Business teams with a limit on the number of data transport
* calls allowed per month. For more information, see the Data transport limit
* page https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUploadSessionAppend
* @deprecated
* @arg {FilesUploadSessionCursor} arg - The request parameters.
* @returns {Promise.<void, Error.<FilesUploadSessionLookupError>>}
*/
routes.filesUploadSessionAppend = function (arg) {
return this.request('files/upload_session/append', arg, 'user', 'content', 'upload');
};
/**
* Finish an upload session and save the uploaded data to the given file path. A
* single request should not upload more than 150 MB. The maximum size of a file
* one can upload to an upload session is 350 GB. Calls to this endpoint will
* count as data transport calls for any Dropbox Business teams with a limit on
* the number of data transport calls allowed per month. For more information,
* see the Data transport limit page
* https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUploadSessionFinish
* @arg {FilesUploadSessionFinishArg} arg - The request parameters.
* @returns {Promise.<FilesFileMetadata, Error.<FilesUploadSessionFinishError>>}
*/
routes.filesUploadSessionFinish = function (arg) {
return this.request('files/upload_session/finish', arg, 'user', 'content', 'upload');
};
/**
* This route helps you commit many files at once into a user's Dropbox. Use
* upload_session/start and upload_session/append_v2 to upload file contents. We
* recommend uploading many files in parallel to increase throughput. Once the
* file contents have been uploaded, rather than calling upload_session/finish,
* use this route to finish all your upload sessions in a single request.
* UploadSessionStartArg.close or UploadSessionAppendArg.close needs to be true
* for the last upload_session/start or upload_session/append_v2 call. The
* maximum size of a file one can upload to an upload session is 350 GB. This
* route will return a job_id immediately and do the async commit job in
* background. Use upload_session/finish_batch/check to check the job status.
* For the same account, this route should be executed serially. That means you
* should not start the next job before current job finishes. We allow up to
* 1000 entries in a single request. Calls to this endpoint will count as data
* transport calls for any Dropbox Business teams with a limit on the number of
* data transport calls allowed per month. For more information, see the Data
* transport limit page
* https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUploadSessionFinishBatch
* @arg {FilesUploadSessionFinishBatchArg} arg - The request parameters.
* @returns {Promise.<FilesUploadSessionFinishBatchLaunch, Error.<void>>}
*/
routes.filesUploadSessionFinishBatch = function (arg) {
return this.request('files/upload_session/finish_batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for upload_session/finish_batch. If
* success, it returns list of result for each entry.
* @function Dropbox#filesUploadSessionFinishBatchCheck
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<FilesUploadSessionFinishBatchJobStatus, Error.<AsyncPollError>>}
*/
routes.filesUploadSessionFinishBatchCheck = function (arg) {
return this.request('files/upload_session/finish_batch/check', arg, 'user', 'api', 'rpc');
};
/**
* Upload sessions allow you to upload a single file in one or more requests,
* for example where the size of the file is greater than 150 MB. This call
* starts a new upload session with the given data. You can then use
* upload_session/append_v2 to add more data and upload_session/finish to save
* all the data to a file in Dropbox. A single request should not upload more
* than 150 MB. The maximum size of a file one can upload to an upload session
* is 350 GB. An upload session can be used for a maximum of 48 hours.
* Attempting to use an UploadSessionStartResult.session_id with
* upload_session/append_v2 or upload_session/finish more than 48 hours after
* its creation will return a UploadSessionLookupError.not_found. Calls to this
* endpoint will count as data transport calls for any Dropbox Business teams
* with a limit on the number of data transport calls allowed per month. For
* more information, see the Data transport limit page
* https://www.dropbox.com/developers/reference/data-transport-limit.
* @function Dropbox#filesUploadSessionStart
* @arg {FilesUploadSessionStartArg} arg - The request parameters.
* @returns {Promise.<FilesUploadSessionStartResult, Error.<void>>}
*/
routes.filesUploadSessionStart = function (arg) {
return this.request('files/upload_session/start', arg, 'user', 'content', 'upload');
};
/**
* Marks the given Paper doc as archived. This action can be performed or undone
* by anyone with edit permissions to the doc. Note that this endpoint will
* continue to work for content created by users on the older version of Paper.
* To check which version of Paper a user is on, use /users/features/get_values.
* If the paper_as_files feature is enabled, then the user is running the new
* version of Paper. This endpoint will be retired in September 2020. Refer to
* the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* more information.
* @function Dropbox#paperDocsArchive
* @deprecated
* @arg {PaperRefPaperDoc} arg - The request parameters.
* @returns {Promise.<void, Error.<PaperDocLookupError>>}
*/
routes.paperDocsArchive = function (arg) {
return this.request('paper/docs/archive', arg, 'user', 'api', 'rpc');
};
/**
* Creates a new Paper doc with the provided content. Note that this endpoint
* will continue to work for content created by users on the older version of
* Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. This endpoint will be retired
* in September 2020. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* more information.
* @function Dropbox#paperDocsCreate
* @deprecated
* @arg {PaperPaperDocCreateArgs} arg - The request parameters.
* @returns {Promise.<PaperPaperDocCreateUpdateResult, Error.<PaperPaperDocCreateError>>}
*/
routes.paperDocsCreate = function (arg) {
return this.request('paper/docs/create', arg, 'user', 'api', 'upload');
};
/**
* Exports and downloads Paper doc either as HTML or markdown. Note that this
* endpoint will continue to work for content created by users on the older
* version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperDocsDownload
* @deprecated
* @arg {PaperPaperDocExport} arg - The request parameters.
* @returns {Promise.<PaperPaperDocExportResult, Error.<PaperDocLookupError>>}
*/
routes.paperDocsDownload = function (arg) {
return this.request('paper/docs/download', arg, 'user', 'api', 'download');
};
/**
* Lists the users who are explicitly invited to the Paper folder in which the
* Paper doc is contained. For private folders all users (including owner)
* shared on the folder are listed and for team folders all non-team users
* shared on the folder are returned. Note that this endpoint will continue to
* work for content created by users on the older version of Paper. To check
* which version of Paper a user is on, use /users/features/get_values. If the
* paper_as_files feature is enabled, then the user is running the new version
* of Paper. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsFolderUsersList
* @deprecated
* @arg {PaperListUsersOnFolderArgs} arg - The request parameters.
* @returns {Promise.<PaperListUsersOnFolderResponse, Error.<PaperDocLookupError>>}
*/
routes.paperDocsFolderUsersList = function (arg) {
return this.request('paper/docs/folder_users/list', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from docs/folder_users/list, use this to
* paginate through all users on the Paper folder. Note that this endpoint will
* continue to work for content created by users on the older version of Paper.
* To check which version of Paper a user is on, use /users/features/get_values.
* If the paper_as_files feature is enabled, then the user is running the new
* version of Paper. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsFolderUsersListContinue
* @deprecated
* @arg {PaperListUsersOnFolderContinueArgs} arg - The request parameters.
* @returns {Promise.<PaperListUsersOnFolderResponse, Error.<PaperListUsersCursorError>>}
*/
routes.paperDocsFolderUsersListContinue = function (arg) {
return this.request('paper/docs/folder_users/list/continue', arg, 'user', 'api', 'rpc');
};
/**
* Retrieves folder information for the given Paper doc. This includes: -
* folder sharing policy; permissions for subfolders are set by the top-level
* folder. - full 'filepath', i.e. the list of folders (both folderId and
* folderName) from the root folder to the folder directly containing the
* Paper doc. If the Paper doc is not in any folder (aka unfiled) the response
* will be empty. Note that this endpoint will continue to work for content
* created by users on the older version of Paper. To check which version of
* Paper a user is on, use /users/features/get_values. If the paper_as_files
* feature is enabled, then the user is running the new version of Paper. Refer
* to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsGetFolderInfo
* @deprecated
* @arg {PaperRefPaperDoc} arg - The request parameters.
* @returns {Promise.<PaperFoldersContainingPaperDoc, Error.<PaperDocLookupError>>}
*/
routes.paperDocsGetFolderInfo = function (arg) {
return this.request('paper/docs/get_folder_info', arg, 'user', 'api', 'rpc');
};
/**
* Return the list of all Paper docs according to the argument specifications.
* To iterate over through the full pagination, pass the cursor to
* docs/list/continue. Note that this endpoint will continue to work for content
* created by users on the older version of Paper. To check which version of
* Paper a user is on, use /users/features/get_values. If the paper_as_files
* feature is enabled, then the user is running the new version of Paper. Refer
* to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsList
* @deprecated
* @arg {PaperListPaperDocsArgs} arg - The request parameters.
* @returns {Promise.<PaperListPaperDocsResponse, Error.<void>>}
*/
routes.paperDocsList = function (arg) {
return this.request('paper/docs/list', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from docs/list, use this to paginate through
* all Paper doc. Note that this endpoint will continue to work for content
* created by users on the older version of Paper. To check which version of
* Paper a user is on, use /users/features/get_values. If the paper_as_files
* feature is enabled, then the user is running the new version of Paper. Refer
* to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsListContinue
* @deprecated
* @arg {PaperListPaperDocsContinueArgs} arg - The request parameters.
* @returns {Promise.<PaperListPaperDocsResponse, Error.<PaperListDocsCursorError>>}
*/
routes.paperDocsListContinue = function (arg) {
return this.request('paper/docs/list/continue', arg, 'user', 'api', 'rpc');
};
/**
* Permanently deletes the given Paper doc. This operation is final as the doc
* cannot be recovered. This action can be performed only by the doc owner. Note
* that this endpoint will continue to work for content created by users on the
* older version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperDocsPermanentlyDelete
* @deprecated
* @arg {PaperRefPaperDoc} arg - The request parameters.
* @returns {Promise.<void, Error.<PaperDocLookupError>>}
*/
routes.paperDocsPermanentlyDelete = function (arg) {
return this.request('paper/docs/permanently_delete', arg, 'user', 'api', 'rpc');
};
/**
* Gets the default sharing policy for the given Paper doc. Note that this
* endpoint will continue to work for content created by users on the older
* version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperDocsSharingPolicyGet
* @deprecated
* @arg {PaperRefPaperDoc} arg - The request parameters.
* @returns {Promise.<PaperSharingPolicy, Error.<PaperDocLookupError>>}
*/
routes.paperDocsSharingPolicyGet = function (arg) {
return this.request('paper/docs/sharing_policy/get', arg, 'user', 'api', 'rpc');
};
/**
* Sets the default sharing policy for the given Paper doc. The default
* 'team_sharing_policy' can be changed only by teams, omit this field for
* personal accounts. The 'public_sharing_policy' policy can't be set to the
* value 'disabled' because this setting can be changed only via the team admin
* console. Note that this endpoint will continue to work for content created by
* users on the older version of Paper. To check which version of Paper a user
* is on, use /users/features/get_values. If the paper_as_files feature is
* enabled, then the user is running the new version of Paper. Refer to the
* Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsSharingPolicySet
* @deprecated
* @arg {PaperPaperDocSharingPolicy} arg - The request parameters.
* @returns {Promise.<void, Error.<PaperDocLookupError>>}
*/
routes.paperDocsSharingPolicySet = function (arg) {
return this.request('paper/docs/sharing_policy/set', arg, 'user', 'api', 'rpc');
};
/**
* Updates an existing Paper doc with the provided content. Note that this
* endpoint will continue to work for content created by users on the older
* version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. This endpoint will be retired
* in September 2020. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* more information.
* @function Dropbox#paperDocsUpdate
* @deprecated
* @arg {PaperPaperDocUpdateArgs} arg - The request parameters.
* @returns {Promise.<PaperPaperDocCreateUpdateResult, Error.<PaperPaperDocUpdateError>>}
*/
routes.paperDocsUpdate = function (arg) {
return this.request('paper/docs/update', arg, 'user', 'api', 'upload');
};
/**
* Allows an owner or editor to add users to a Paper doc or change their
* permissions using their email address or Dropbox account ID. The doc owner's
* permissions cannot be changed. Note that this endpoint will continue to work
* for content created by users on the older version of Paper. To check which
* version of Paper a user is on, use /users/features/get_values. If the
* paper_as_files feature is enabled, then the user is running the new version
* of Paper. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsUsersAdd
* @deprecated
* @arg {PaperAddPaperDocUser} arg - The request parameters.
* @returns {Promise.<Array.<PaperAddPaperDocUserMemberResult>, Error.<PaperDocLookupError>>}
*/
routes.paperDocsUsersAdd = function (arg) {
return this.request('paper/docs/users/add', arg, 'user', 'api', 'rpc');
};
/**
* Lists all users who visited the Paper doc or users with explicit access. This
* call excludes users who have been removed. The list is sorted by the date of
* the visit or the share date. The list will include both users, the explicitly
* shared ones as well as those who came in using the Paper url link. Note that
* this endpoint will continue to work for content created by users on the older
* version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperDocsUsersList
* @deprecated
* @arg {PaperListUsersOnPaperDocArgs} arg - The request parameters.
* @returns {Promise.<PaperListUsersOnPaperDocResponse, Error.<PaperDocLookupError>>}
*/
routes.paperDocsUsersList = function (arg) {
return this.request('paper/docs/users/list', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from docs/users/list, use this to paginate
* through all users on the Paper doc. Note that this endpoint will continue to
* work for content created by users on the older version of Paper. To check
* which version of Paper a user is on, use /users/features/get_values. If the
* paper_as_files feature is enabled, then the user is running the new version
* of Paper. Refer to the Paper Migration Guide
* https://www.dropbox.com/lp/developers/reference/paper-migration-guide for
* migration information.
* @function Dropbox#paperDocsUsersListContinue
* @deprecated
* @arg {PaperListUsersOnPaperDocContinueArgs} arg - The request parameters.
* @returns {Promise.<PaperListUsersOnPaperDocResponse, Error.<PaperListUsersCursorError>>}
*/
routes.paperDocsUsersListContinue = function (arg) {
return this.request('paper/docs/users/list/continue', arg, 'user', 'api', 'rpc');
};
/**
* Allows an owner or editor to remove users from a Paper doc using their email
* address or Dropbox account ID. The doc owner cannot be removed. Note that
* this endpoint will continue to work for content created by users on the older
* version of Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperDocsUsersRemove
* @deprecated
* @arg {PaperRemovePaperDocUser} arg - The request parameters.
* @returns {Promise.<void, Error.<PaperDocLookupError>>}
*/
routes.paperDocsUsersRemove = function (arg) {
return this.request('paper/docs/users/remove', arg, 'user', 'api', 'rpc');
};
/**
* Create a new Paper folder with the provided info. Note that this endpoint
* will continue to work for content created by users on the older version of
* Paper. To check which version of Paper a user is on, use
* /users/features/get_values. If the paper_as_files feature is enabled, then
* the user is running the new version of Paper. Refer to the Paper Migration
* Guide https://www.dropbox.com/lp/developers/reference/paper-migration-guide
* for migration information.
* @function Dropbox#paperFoldersCreate
* @deprecated
* @arg {PaperPaperFolderCreateArg} arg - The request parameters.
* @returns {Promise.<PaperPaperFolderCreateResult, Error.<PaperPaperFolderCreateError>>}
*/
routes.paperFoldersCreate = function (arg) {
return this.request('paper/folders/create', arg, 'user', 'api', 'rpc');
};
/**
* Adds specified members to a file.
* @function Dropbox#sharingAddFileMember
* @arg {SharingAddFileMemberArgs} arg - The request parameters.
* @returns {Promise.<Array.<SharingFileMemberActionResult>, Error.<SharingAddFileMemberError>>}
*/
routes.sharingAddFileMember = function (arg) {
return this.request('sharing/add_file_member', arg, 'user', 'api', 'rpc');
};
/**
* Allows an owner or editor (if the ACL update policy allows) of a shared
* folder to add another member. For the new member to get access to all the
* functionality for this folder, you will need to call mount_folder on their
* behalf.
* @function Dropbox#sharingAddFolderMember
* @arg {SharingAddFolderMemberArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingAddFolderMemberError>>}
*/
routes.sharingAddFolderMember = function (arg) {
return this.request('sharing/add_folder_member', arg, 'user', 'api', 'rpc');
};
/**
* Identical to update_file_member but with less information returned.
* @function Dropbox#sharingChangeFileMemberAccess
* @deprecated
* @arg {SharingChangeFileMemberAccessArgs} arg - The request parameters.
* @returns {Promise.<SharingFileMemberActionResult, Error.<SharingFileMemberActionError>>}
*/
routes.sharingChangeFileMemberAccess = function (arg) {
return this.request('sharing/change_file_member_access', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job.
* @function Dropbox#sharingCheckJobStatus
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<SharingJobStatus, Error.<AsyncPollError>>}
*/
routes.sharingCheckJobStatus = function (arg) {
return this.request('sharing/check_job_status', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for sharing a folder.
* @function Dropbox#sharingCheckRemoveMemberJobStatus
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<SharingRemoveMemberJobStatus, Error.<AsyncPollError>>}
*/
routes.sharingCheckRemoveMemberJobStatus = function (arg) {
return this.request('sharing/check_remove_member_job_status', arg, 'user', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for sharing a folder.
* @function Dropbox#sharingCheckShareJobStatus
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<SharingShareFolderJobStatus, Error.<AsyncPollError>>}
*/
routes.sharingCheckShareJobStatus = function (arg) {
return this.request('sharing/check_share_job_status', arg, 'user', 'api', 'rpc');
};
/**
* Create a shared link. If a shared link already exists for the given path,
* that link is returned. Note that in the returned PathLinkMetadata, the
* PathLinkMetadata.url field is the shortened URL if
* CreateSharedLinkArg.short_url argument is set to true. Previously, it was
* technically possible to break a shared link by moving or renaming the
* corresponding file or folder. In the future, this will no longer be the case,
* so your app shouldn't rely on this behavior. Instead, if your app needs to
* revoke a shared link, use revoke_shared_link.
* @function Dropbox#sharingCreateSharedLink
* @deprecated
* @arg {SharingCreateSharedLinkArg} arg - The request parameters.
* @returns {Promise.<SharingPathLinkMetadata, Error.<SharingCreateSharedLinkError>>}
*/
routes.sharingCreateSharedLink = function (arg) {
return this.request('sharing/create_shared_link', arg, 'user', 'api', 'rpc');
};
/**
* Create a shared link with custom settings. If no settings are given then the
* default visibility is RequestedVisibility.public (The resolved visibility,
* though, may depend on other aspects such as team and shared folder settings).
* @function Dropbox#sharingCreateSharedLinkWithSettings
* @arg {SharingCreateSharedLinkWithSettingsArg} arg - The request parameters.
* @returns {Promise.<(SharingFileLinkMetadata|SharingFolderLinkMetadata|SharingSharedLinkMetadata), Error.<SharingCreateSharedLinkWithSettingsError>>}
*/
routes.sharingCreateSharedLinkWithSettings = function (arg) {
return this.request('sharing/create_shared_link_with_settings', arg, 'user', 'api', 'rpc');
};
/**
* Returns shared file metadata.
* @function Dropbox#sharingGetFileMetadata
* @arg {SharingGetFileMetadataArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFileMetadata, Error.<SharingGetFileMetadataError>>}
*/
routes.sharingGetFileMetadata = function (arg) {
return this.request('sharing/get_file_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Returns shared file metadata.
* @function Dropbox#sharingGetFileMetadataBatch
* @arg {SharingGetFileMetadataBatchArg} arg - The request parameters.
* @returns {Promise.<Array.<SharingGetFileMetadataBatchResult>, Error.<SharingSharingUserError>>}
*/
routes.sharingGetFileMetadataBatch = function (arg) {
return this.request('sharing/get_file_metadata/batch', arg, 'user', 'api', 'rpc');
};
/**
* Returns shared folder metadata by its folder ID.
* @function Dropbox#sharingGetFolderMetadata
* @arg {SharingGetMetadataArgs} arg - The request parameters.
* @returns {Promise.<SharingSharedFolderMetadata, Error.<SharingSharedFolderAccessError>>}
*/
routes.sharingGetFolderMetadata = function (arg) {
return this.request('sharing/get_folder_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Download the shared link's file from a user's Dropbox.
* @function Dropbox#sharingGetSharedLinkFile
* @arg {Object} arg - The request parameters.
* @returns {Promise.<(SharingFileLinkMetadata|SharingFolderLinkMetadata|SharingSharedLinkMetadata), Error.<SharingGetSharedLinkFileError>>}
*/
routes.sharingGetSharedLinkFile = function (arg) {
return this.request('sharing/get_shared_link_file', arg, 'user', 'content', 'download');
};
/**
* Get the shared link's metadata.
* @function Dropbox#sharingGetSharedLinkMetadata
* @arg {SharingGetSharedLinkMetadataArg} arg - The request parameters.
* @returns {Promise.<(SharingFileLinkMetadata|SharingFolderLinkMetadata|SharingSharedLinkMetadata), Error.<SharingSharedLinkError>>}
*/
routes.sharingGetSharedLinkMetadata = function (arg) {
return this.request('sharing/get_shared_link_metadata', arg, 'user', 'api', 'rpc');
};
/**
* Returns a list of LinkMetadata objects for this user, including collection
* links. If no path is given, returns a list of all shared links for the
* current user, including collection links, up to a maximum of 1000 links. If a
* non-empty path is given, returns a list of all shared links that allow access
* to the given path. Collection links are never returned in this case. Note
* that the url field in the response is never the shortened URL.
* @function Dropbox#sharingGetSharedLinks
* @deprecated
* @arg {SharingGetSharedLinksArg} arg - The request parameters.
* @returns {Promise.<SharingGetSharedLinksResult, Error.<SharingGetSharedLinksError>>}
*/
routes.sharingGetSharedLinks = function (arg) {
return this.request('sharing/get_shared_links', arg, 'user', 'api', 'rpc');
};
/**
* Use to obtain the members who have been invited to a file, both inherited and
* uninherited members.
* @function Dropbox#sharingListFileMembers
* @arg {SharingListFileMembersArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFileMembers, Error.<SharingListFileMembersError>>}
*/
routes.sharingListFileMembers = function (arg) {
return this.request('sharing/list_file_members', arg, 'user', 'api', 'rpc');
};
/**
* Get members of multiple files at once. The arguments to this route are more
* limited, and the limit on query result size per file is more strict. To
* customize the results more, use the individual file endpoint. Inherited users
* and groups are not included in the result, and permissions are not returned
* for this endpoint.
* @function Dropbox#sharingListFileMembersBatch
* @arg {SharingListFileMembersBatchArg} arg - The request parameters.
* @returns {Promise.<Array.<SharingListFileMembersBatchResult>, Error.<SharingSharingUserError>>}
*/
routes.sharingListFileMembersBatch = function (arg) {
return this.request('sharing/list_file_members/batch', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_file_members or
* list_file_members/batch, use this to paginate through all shared file
* members.
* @function Dropbox#sharingListFileMembersContinue
* @arg {SharingListFileMembersContinueArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFileMembers, Error.<SharingListFileMembersContinueError>>}
*/
routes.sharingListFileMembersContinue = function (arg) {
return this.request('sharing/list_file_members/continue', arg, 'user', 'api', 'rpc');
};
/**
* Returns shared folder membership by its folder ID.
* @function Dropbox#sharingListFolderMembers
* @arg {SharingListFolderMembersArgs} arg - The request parameters.
* @returns {Promise.<SharingSharedFolderMembers, Error.<SharingSharedFolderAccessError>>}
*/
routes.sharingListFolderMembers = function (arg) {
return this.request('sharing/list_folder_members', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_folder_members, use this to
* paginate through all shared folder members.
* @function Dropbox#sharingListFolderMembersContinue
* @arg {SharingListFolderMembersContinueArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFolderMembers, Error.<SharingListFolderMembersContinueError>>}
*/
routes.sharingListFolderMembersContinue = function (arg) {
return this.request('sharing/list_folder_members/continue', arg, 'user', 'api', 'rpc');
};
/**
* Return the list of all shared folders the current user has access to.
* @function Dropbox#sharingListFolders
* @arg {SharingListFoldersArgs} arg - The request parameters.
* @returns {Promise.<SharingListFoldersResult, Error.<void>>}
*/
routes.sharingListFolders = function (arg) {
return this.request('sharing/list_folders', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_folders, use this to paginate
* through all shared folders. The cursor must come from a previous call to
* list_folders or list_folders/continue.
* @function Dropbox#sharingListFoldersContinue
* @arg {SharingListFoldersContinueArg} arg - The request parameters.
* @returns {Promise.<SharingListFoldersResult, Error.<SharingListFoldersContinueError>>}
*/
routes.sharingListFoldersContinue = function (arg) {
return this.request('sharing/list_folders/continue', arg, 'user', 'api', 'rpc');
};
/**
* Return the list of all shared folders the current user can mount or unmount.
* @function Dropbox#sharingListMountableFolders
* @arg {SharingListFoldersArgs} arg - The request parameters.
* @returns {Promise.<SharingListFoldersResult, Error.<void>>}
*/
routes.sharingListMountableFolders = function (arg) {
return this.request('sharing/list_mountable_folders', arg, 'user', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from list_mountable_folders, use this to
* paginate through all mountable shared folders. The cursor must come from a
* previous call to list_mountable_folders or list_mountable_folders/continue.
* @function Dropbox#sharingListMountableFoldersContinue
* @arg {SharingListFoldersContinueArg} arg - The request parameters.
* @returns {Promise.<SharingListFoldersResult, Error.<SharingListFoldersContinueError>>}
*/
routes.sharingListMountableFoldersContinue = function (arg) {
return this.request('sharing/list_mountable_folders/continue', arg, 'user', 'api', 'rpc');
};
/**
* Returns a list of all files shared with current user. Does not include files
* the user has received via shared folders, and does not include unclaimed
* invitations.
* @function Dropbox#sharingListReceivedFiles
* @arg {SharingListFilesArg} arg - The request parameters.
* @returns {Promise.<SharingListFilesResult, Error.<SharingSharingUserError>>}
*/
routes.sharingListReceivedFiles = function (arg) {
return this.request('sharing/list_received_files', arg, 'user', 'api', 'rpc');
};
/**
* Get more results with a cursor from list_received_files.
* @function Dropbox#sharingListReceivedFilesContinue
* @arg {SharingListFilesContinueArg} arg - The request parameters.
* @returns {Promise.<SharingListFilesResult, Error.<SharingListFilesContinueError>>}
*/
routes.sharingListReceivedFilesContinue = function (arg) {
return this.request('sharing/list_received_files/continue', arg, 'user', 'api', 'rpc');
};
/**
* List shared links of this user. If no path is given, returns a list of all
* shared links for the current user. If a non-empty path is given, returns a
* list of all shared links that allow access to the given path - direct links
* to the given path and links to parent folders of the given path. Links to
* parent folders can be suppressed by setting direct_only to true.
* @function Dropbox#sharingListSharedLinks
* @arg {SharingListSharedLinksArg} arg - The request parameters.
* @returns {Promise.<SharingListSharedLinksResult, Error.<SharingListSharedLinksError>>}
*/
routes.sharingListSharedLinks = function (arg) {
return this.request('sharing/list_shared_links', arg, 'user', 'api', 'rpc');
};
/**
* Modify the shared link's settings. If the requested visibility conflict with
* the shared links policy of the team or the shared folder (in case the linked
* file is part of a shared folder) then the LinkPermissions.resolved_visibility
* of the returned SharedLinkMetadata will reflect the actual visibility of the
* shared link and the LinkPermissions.requested_visibility will reflect the
* requested visibility.
* @function Dropbox#sharingModifySharedLinkSettings
* @arg {SharingModifySharedLinkSettingsArgs} arg - The request parameters.
* @returns {Promise.<(SharingFileLinkMetadata|SharingFolderLinkMetadata|SharingSharedLinkMetadata), Error.<SharingModifySharedLinkSettingsError>>}
*/
routes.sharingModifySharedLinkSettings = function (arg) {
return this.request('sharing/modify_shared_link_settings', arg, 'user', 'api', 'rpc');
};
/**
* The current user mounts the designated folder. Mount a shared folder for a
* user after they have been added as a member. Once mounted, the shared folder
* will appear in their Dropbox.
* @function Dropbox#sharingMountFolder
* @arg {SharingMountFolderArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFolderMetadata, Error.<SharingMountFolderError>>}
*/
routes.sharingMountFolder = function (arg) {
return this.request('sharing/mount_folder', arg, 'user', 'api', 'rpc');
};
/**
* The current user relinquishes their membership in the designated file. Note
* that the current user may still have inherited access to this file through
* the parent folder.
* @function Dropbox#sharingRelinquishFileMembership
* @arg {SharingRelinquishFileMembershipArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingRelinquishFileMembershipError>>}
*/
routes.sharingRelinquishFileMembership = function (arg) {
return this.request('sharing/relinquish_file_membership', arg, 'user', 'api', 'rpc');
};
/**
* The current user relinquishes their membership in the designated shared
* folder and will no longer have access to the folder. A folder owner cannot
* relinquish membership in their own folder. This will run synchronously if
* leave_a_copy is false, and asynchronously if leave_a_copy is true.
* @function Dropbox#sharingRelinquishFolderMembership
* @arg {SharingRelinquishFolderMembershipArg} arg - The request parameters.
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<SharingRelinquishFolderMembershipError>>}
*/
routes.sharingRelinquishFolderMembership = function (arg) {
return this.request('sharing/relinquish_folder_membership', arg, 'user', 'api', 'rpc');
};
/**
* Identical to remove_file_member_2 but with less information returned.
* @function Dropbox#sharingRemoveFileMember
* @deprecated
* @arg {SharingRemoveFileMemberArg} arg - The request parameters.
* @returns {Promise.<SharingFileMemberActionIndividualResult, Error.<SharingRemoveFileMemberError>>}
*/
routes.sharingRemoveFileMember = function (arg) {
return this.request('sharing/remove_file_member', arg, 'user', 'api', 'rpc');
};
/**
* Removes a specified member from the file.
* @function Dropbox#sharingRemoveFileMember2
* @arg {SharingRemoveFileMemberArg} arg - The request parameters.
* @returns {Promise.<SharingFileMemberRemoveActionResult, Error.<SharingRemoveFileMemberError>>}
*/
routes.sharingRemoveFileMember2 = function (arg) {
return this.request('sharing/remove_file_member_2', arg, 'user', 'api', 'rpc');
};
/**
* Allows an owner or editor (if the ACL update policy allows) of a shared
* folder to remove another member.
* @function Dropbox#sharingRemoveFolderMember
* @arg {SharingRemoveFolderMemberArg} arg - The request parameters.
* @returns {Promise.<AsyncLaunchResultBase, Error.<SharingRemoveFolderMemberError>>}
*/
routes.sharingRemoveFolderMember = function (arg) {
return this.request('sharing/remove_folder_member', arg, 'user', 'api', 'rpc');
};
/**
* Revoke a shared link. Note that even after revoking a shared link to a file,
* the file may be accessible if there are shared links leading to any of the
* file parent folders. To list all shared links that enable access to a
* specific file, you can use the list_shared_links with the file as the
* ListSharedLinksArg.path argument.
* @function Dropbox#sharingRevokeSharedLink
* @arg {SharingRevokeSharedLinkArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingRevokeSharedLinkError>>}
*/
routes.sharingRevokeSharedLink = function (arg) {
return this.request('sharing/revoke_shared_link', arg, 'user', 'api', 'rpc');
};
/**
* Change the inheritance policy of an existing Shared Folder. Only permitted
* for shared folders in a shared team root. If a ShareFolderLaunch.async_job_id
* is returned, you'll need to call check_share_job_status until the action
* completes to get the metadata for the folder.
* @function Dropbox#sharingSetAccessInheritance
* @arg {SharingSetAccessInheritanceArg} arg - The request parameters.
* @returns {Promise.<SharingShareFolderLaunch, Error.<SharingSetAccessInheritanceError>>}
*/
routes.sharingSetAccessInheritance = function (arg) {
return this.request('sharing/set_access_inheritance', arg, 'user', 'api', 'rpc');
};
/**
* Share a folder with collaborators. Most sharing will be completed
* synchronously. Large folders will be completed asynchronously. To make
* testing the async case repeatable, set `ShareFolderArg.force_async`. If a
* ShareFolderLaunch.async_job_id is returned, you'll need to call
* check_share_job_status until the action completes to get the metadata for the
* folder.
* @function Dropbox#sharingShareFolder
* @arg {SharingShareFolderArg} arg - The request parameters.
* @returns {Promise.<SharingShareFolderLaunch, Error.<SharingShareFolderError>>}
*/
routes.sharingShareFolder = function (arg) {
return this.request('sharing/share_folder', arg, 'user', 'api', 'rpc');
};
/**
* Transfer ownership of a shared folder to a member of the shared folder. User
* must have AccessLevel.owner access to the shared folder to perform a
* transfer.
* @function Dropbox#sharingTransferFolder
* @arg {SharingTransferFolderArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingTransferFolderError>>}
*/
routes.sharingTransferFolder = function (arg) {
return this.request('sharing/transfer_folder', arg, 'user', 'api', 'rpc');
};
/**
* The current user unmounts the designated folder. They can re-mount the folder
* at a later time using mount_folder.
* @function Dropbox#sharingUnmountFolder
* @arg {SharingUnmountFolderArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingUnmountFolderError>>}
*/
routes.sharingUnmountFolder = function (arg) {
return this.request('sharing/unmount_folder', arg, 'user', 'api', 'rpc');
};
/**
* Remove all members from this file. Does not remove inherited members.
* @function Dropbox#sharingUnshareFile
* @arg {SharingUnshareFileArg} arg - The request parameters.
* @returns {Promise.<void, Error.<SharingUnshareFileError>>}
*/
routes.sharingUnshareFile = function (arg) {
return this.request('sharing/unshare_file', arg, 'user', 'api', 'rpc');
};
/**
* Allows a shared folder owner to unshare the folder. You'll need to call
* check_job_status to determine if the action has completed successfully.
* @function Dropbox#sharingUnshareFolder
* @arg {SharingUnshareFolderArg} arg - The request parameters.
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<SharingUnshareFolderError>>}
*/
routes.sharingUnshareFolder = function (arg) {
return this.request('sharing/unshare_folder', arg, 'user', 'api', 'rpc');
};
/**
* Changes a member's access on a shared file.
* @function Dropbox#sharingUpdateFileMember
* @arg {SharingUpdateFileMemberArgs} arg - The request parameters.
* @returns {Promise.<SharingMemberAccessLevelResult, Error.<SharingFileMemberActionError>>}
*/
routes.sharingUpdateFileMember = function (arg) {
return this.request('sharing/update_file_member', arg, 'user', 'api', 'rpc');
};
/**
* Allows an owner or editor of a shared folder to update another member's
* permissions.
* @function Dropbox#sharingUpdateFolderMember
* @arg {SharingUpdateFolderMemberArg} arg - The request parameters.
* @returns {Promise.<SharingMemberAccessLevelResult, Error.<SharingUpdateFolderMemberError>>}
*/
routes.sharingUpdateFolderMember = function (arg) {
return this.request('sharing/update_folder_member', arg, 'user', 'api', 'rpc');
};
/**
* Update the sharing policies for a shared folder. User must have
* AccessLevel.owner access to the shared folder to update its policies.
* @function Dropbox#sharingUpdateFolderPolicy
* @arg {SharingUpdateFolderPolicyArg} arg - The request parameters.
* @returns {Promise.<SharingSharedFolderMetadata, Error.<SharingUpdateFolderPolicyError>>}
*/
routes.sharingUpdateFolderPolicy = function (arg) {
return this.request('sharing/update_folder_policy', arg, 'user', 'api', 'rpc');
};
/**
* Retrieves team events. If the result's GetTeamEventsResult.has_more field is
* true, call get_events/continue with the returned cursor to retrieve more
* entries. If end_time is not specified in your request, you may use the
* returned cursor to poll get_events/continue for new events. Many attributes
* note 'may be missing due to historical data gap'. Note that the
* file_operations category and & analogous paper events are not available on
* all Dropbox Business plans /business/plans-comparison. Use
* features/get_values
* /developers/documentation/http/teams#team-features-get_values to check for
* this feature. Permission : Team Auditing.
* @function Dropbox#teamLogGetEvents
* @arg {TeamLogGetTeamEventsArg} arg - The request parameters.
* @returns {Promise.<TeamLogGetTeamEventsResult, Error.<TeamLogGetTeamEventsError>>}
*/
routes.teamLogGetEvents = function (arg) {
return this.request('team_log/get_events', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from get_events, use this to paginate
* through all events. Permission : Team Auditing.
* @function Dropbox#teamLogGetEventsContinue
* @arg {TeamLogGetTeamEventsContinueArg} arg - The request parameters.
* @returns {Promise.<TeamLogGetTeamEventsResult, Error.<TeamLogGetTeamEventsContinueError>>}
*/
routes.teamLogGetEventsContinue = function (arg) {
return this.request('team_log/get_events/continue', arg, 'team', 'api', 'rpc');
};
/**
* Get a list of feature values that may be configured for the current account.
* @function Dropbox#usersFeaturesGetValues
* @arg {UsersUserFeaturesGetValuesBatchArg} arg - The request parameters.
* @returns {Promise.<UsersUserFeaturesGetValuesBatchResult, Error.<UsersUserFeaturesGetValuesBatchError>>}
*/
routes.usersFeaturesGetValues = function (arg) {
return this.request('users/features/get_values', arg, 'user', 'api', 'rpc');
};
/**
* Get information about a user's account.
* @function Dropbox#usersGetAccount
* @arg {UsersGetAccountArg} arg - The request parameters.
* @returns {Promise.<UsersBasicAccount, Error.<UsersGetAccountError>>}
*/
routes.usersGetAccount = function (arg) {
return this.request('users/get_account', arg, 'user', 'api', 'rpc');
};
/**
* Get information about multiple user accounts. At most 300 accounts may be
* queried per request.
* @function Dropbox#usersGetAccountBatch
* @arg {UsersGetAccountBatchArg} arg - The request parameters.
* @returns {Promise.<Object, Error.<UsersGetAccountBatchError>>}
*/
routes.usersGetAccountBatch = function (arg) {
return this.request('users/get_account_batch', arg, 'user', 'api', 'rpc');
};
/**
* Get information about the current user's account.
* @function Dropbox#usersGetCurrentAccount
* @arg {void} arg - The request parameters.
* @returns {Promise.<UsersFullAccount, Error.<void>>}
*/
routes.usersGetCurrentAccount = function (arg) {
return this.request('users/get_current_account', arg, 'user', 'api', 'rpc');
};
/**
* Get the space usage information for the current user's account.
* @function Dropbox#usersGetSpaceUsage
* @arg {void} arg - The request parameters.
* @returns {Promise.<UsersSpaceUsage, Error.<void>>}
*/
routes.usersGetSpaceUsage = function (arg) {
return this.request('users/get_space_usage', arg, 'user', 'api', 'rpc');
};
var RPC = 'rpc';
var UPLOAD = 'upload';
var DOWNLOAD = 'download';
function getSafeUnicode(c) {
var unicode = ('000' + c.charCodeAt(0).toString(16)).slice(-4);
return '\\u' + unicode;
}
/* global WorkerGlobalScope */
function isWindowOrWorker() {
return typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope || typeof module === 'undefined' || typeof window !== 'undefined';
}
function getBaseURL(host) {
return 'https://' + host + '.dropboxapi.com/2/';
}
// source https://www.dropboxforum.com/t5/API-support/HTTP-header-quot-Dropbox-API-Arg-quot-could-not-decode-input-as/m-p/173823/highlight/true#M6786
function httpHeaderSafeJson(args) {
return JSON.stringify(args).replace(/[\u007f-\uffff]/g, getSafeUnicode);
}
var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
var createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
var inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
var possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
var slicedToArray = function () {
function sliceIterator(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"]) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else if (Symbol.iterator in Object(arr)) {
return sliceIterator(arr, i);
} else {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
};
}();
function getDataFromConsumer(res) {
if (!res.ok) {
return res.text();
}
return isWindowOrWorker() ? res.blob() : res.buffer();
}
function responseHandler(res, data) {
if (!res.ok) {
// eslint-disable-next-line no-throw-literal
throw {
error: data,
response: res,
status: res.status
};
}
var result = JSON.parse(res.headers.get('dropbox-api-result'));
if (isWindowOrWorker()) {
result.fileBlob = data;
} else {
result.fileBinary = data;
}
return result;
}
function downloadRequest(fetch) {
return function downloadRequestWithFetch(path, args, auth, host, client, options) {
return client.checkAndRefreshAccessToken().then(function () {
if (auth !== 'user') {
throw new Error('Unexpected auth type: ' + auth);
}
var fetchOptions = {
method: 'POST',
headers: {
Authorization: 'Bearer ' + client.getAccessToken(),
'Dropbox-API-Arg': httpHeaderSafeJson(args)
}
};
if (options) {
if (options.selectUser) {
fetchOptions.headers['Dropbox-API-Select-User'] = options.selectUser;
}
if (options.selectAdmin) {
fetchOptions.headers['Dropbox-API-Select-Admin'] = options.selectAdmin;
}
if (options.pathRoot) {
fetchOptions.headers['Dropbox-API-Path-Root'] = options.pathRoot;
}
}
return fetchOptions;
}).then(function (fetchOptions) {
return fetch(getBaseURL(host) + path, fetchOptions);
}).then(function (res) {
return getDataFromConsumer(res).then(function (data) {
return [res, data];
});
}).then(function (_ref) {
var _ref2 = slicedToArray(_ref, 2),
res = _ref2[0],
data = _ref2[1];
return responseHandler(res, data);
});
};
}
function parseBodyToType(res) {
var clone = res.clone();
return new Promise(function (resolve) {
res.json().then(function (data) {
return resolve(data);
}).catch(function () {
return clone.text().then(function (data) {
return resolve(data);
});
});
}).then(function (data) {
return [res, data];
});
}
function uploadRequest(fetch) {
return function uploadRequestWithFetch(path, args, auth, host, client, options) {
return client.checkAndRefreshAccessToken().then(function () {
if (auth !== 'user') {
throw new Error('Unexpected auth type: ' + auth);
}
var contents = args.contents;
delete args.contents;
var fetchOptions = {
body: contents,
method: 'POST',
headers: {
Authorization: 'Bearer ' + client.getAccessToken(),
'Content-Type': 'application/octet-stream',
'Dropbox-API-Arg': httpHeaderSafeJson(args)
}
};
if (options) {
if (options.selectUser) {
fetchOptions.headers['Dropbox-API-Select-User'] = options.selectUser;
}
if (options.selectAdmin) {
fetchOptions.headers['Dropbox-API-Select-Admin'] = options.selectAdmin;
}
if (options.pathRoot) {
fetchOptions.headers['Dropbox-API-Path-Root'] = options.pathRoot;
}
}
return fetchOptions;
}).then(function (fetchOptions) {
return fetch(getBaseURL(host) + path, fetchOptions);
}).then(function (res) {
return parseBodyToType(res);
}).then(function (_ref) {
var _ref2 = slicedToArray(_ref, 2),
res = _ref2[0],
data = _ref2[1];
// maintaining existing API for error codes not equal to 200 range
if (!res.ok) {
// eslint-disable-next-line no-throw-literal
throw {
error: data,
response: res,
status: res.status
};
}
return data;
});
};
}
var global$1 = (typeof global !== "undefined" ? global :
typeof self !== "undefined" ? self :
typeof window !== "undefined" ? window : {});
var lookup = [];
var revLookup = [];
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;
var inited = false;
function init () {
inited = true;
var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
for (var i = 0, len = code.length; i < len; ++i) {
lookup[i] = code[i];
revLookup[code.charCodeAt(i)] = i;
}
revLookup['-'.charCodeAt(0)] = 62;
revLookup['_'.charCodeAt(0)] = 63;
}
function toByteArray (b64) {
if (!inited) {
init();
}
var i, j, l, tmp, placeHolders, arr;
var len = b64.length;
if (len % 4 > 0) {
throw new Error('Invalid string. Length must be a multiple of 4')
}
// the number of equal signs (place holders)
// if there are two placeholders, than the two characters before it
// represent one byte
// if there is only one, then the three characters before it represent 2 bytes
// this is just a cheap hack to not do indexOf twice
placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0;
// base64 is 4/3 + up to two characters of the original data
arr = new Arr(len * 3 / 4 - placeHolders);
// if there are placeholders, only get up to the last complete 4 chars
l = placeHolders > 0 ? len - 4 : len;
var L = 0;
for (i = 0, j = 0; i < l; i += 4, j += 3) {
tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)];
arr[L++] = (tmp >> 16) & 0xFF;
arr[L++] = (tmp >> 8) & 0xFF;
arr[L++] = tmp & 0xFF;
}
if (placeHolders === 2) {
tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4);
arr[L++] = tmp & 0xFF;
} else if (placeHolders === 1) {
tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2);
arr[L++] = (tmp >> 8) & 0xFF;
arr[L++] = tmp & 0xFF;
}
return arr
}
function tripletToBase64 (num) {
return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]
}
function encodeChunk (uint8, start, end) {
var tmp;
var output = [];
for (var i = start; i < end; i += 3) {
tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]);
output.push(tripletToBase64(tmp));
}
return output.join('')
}
function fromByteArray (uint8) {
if (!inited) {
init();
}
var tmp;
var len = uint8.length;
var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes
var output = '';
var parts = [];
var maxChunkLength = 16383; // must be multiple of 3
// go through the array every three bytes, we'll deal with trailing stuff later
for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)));
}
// pad the end with zeros, but make sure to not forget the extra bytes
if (extraBytes === 1) {
tmp = uint8[len - 1];
output += lookup[tmp >> 2];
output += lookup[(tmp << 4) & 0x3F];
output += '==';
} else if (extraBytes === 2) {
tmp = (uint8[len - 2] << 8) + (uint8[len - 1]);
output += lookup[tmp >> 10];
output += lookup[(tmp >> 4) & 0x3F];
output += lookup[(tmp << 2) & 0x3F];
output += '=';
}
parts.push(output);
return parts.join('')
}
function read (buffer, offset, isLE, mLen, nBytes) {
var e, m;
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var nBits = -7;
var i = isLE ? (nBytes - 1) : 0;
var d = isLE ? -1 : 1;
var s = buffer[offset + i];
i += d;
e = s & ((1 << (-nBits)) - 1);
s >>= (-nBits);
nBits += eLen;
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
m = e & ((1 << (-nBits)) - 1);
e >>= (-nBits);
nBits += mLen;
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
if (e === 0) {
e = 1 - eBias;
} else if (e === eMax) {
return m ? NaN : ((s ? -1 : 1) * Infinity)
} else {
m = m + Math.pow(2, mLen);
e = e - eBias;
}
return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
}
function write (buffer, value, offset, isLE, mLen, nBytes) {
var e, m, c;
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0);
var i = isLE ? 0 : (nBytes - 1);
var d = isLE ? 1 : -1;
var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;
value = Math.abs(value);
if (isNaN(value) || value === Infinity) {
m = isNaN(value) ? 1 : 0;
e = eMax;
} else {
e = Math.floor(Math.log(value) / Math.LN2);
if (value * (c = Math.pow(2, -e)) < 1) {
e--;
c *= 2;
}
if (e + eBias >= 1) {
value += rt / c;
} else {
value += rt * Math.pow(2, 1 - eBias);
}
if (value * c >= 2) {
e++;
c /= 2;
}
if (e + eBias >= eMax) {
m = 0;
e = eMax;
} else if (e + eBias >= 1) {
m = (value * c - 1) * Math.pow(2, mLen);
e = e + eBias;
} else {
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
e = 0;
}
}
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
e = (e << mLen) | m;
eLen += mLen;
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
buffer[offset + i - d] |= s * 128;
}
var toString = {}.toString;
var isArray = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
var INSPECT_MAX_BYTES = 50;
/**
* If `Buffer.TYPED_ARRAY_SUPPORT`:
* === true Use Uint8Array implementation (fastest)
* === false Use Object implementation (most compatible, even IE6)
*
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
* Opera 11.6+, iOS 4.2+.
*
* Due to various browser bugs, sometimes the Object implementation will be used even
* when the browser supports typed arrays.
*
* Note:
*
* - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
*
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
*
* - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
* incorrect length in some situations.
* We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
* get the Object implementation, which is slower but behaves correctly.
*/
Buffer.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined
? global$1.TYPED_ARRAY_SUPPORT
: true;
function kMaxLength () {
return Buffer.TYPED_ARRAY_SUPPORT
? 0x7fffffff
: 0x3fffffff
}
function createBuffer (that, length) {
if (kMaxLength() < length) {
throw new RangeError('Invalid typed array length')
}
if (Buffer.TYPED_ARRAY_SUPPORT) {
// Return an augmented `Uint8Array` instance, for best performance
that = new Uint8Array(length);
that.__proto__ = Buffer.prototype;
} else {
// Fallback: Return an object instance of the Buffer class
if (that === null) {
that = new Buffer(length);
}
that.length = length;
}
return that
}
/**
* The Buffer constructor returns instances of `Uint8Array` that have their
* prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
* `Uint8Array`, so the returned instances will have all the node `Buffer` methods
* and the `Uint8Array` methods. Square bracket notation works as expected -- it
* returns a single octet.
*
* The `Uint8Array` prototype remains unmodified.
*/
function Buffer (arg, encodingOrOffset, length) {
if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
return new Buffer(arg, encodingOrOffset, length)
}
// Common case.
if (typeof arg === 'number') {
if (typeof encodingOrOffset === 'string') {
throw new Error(
'If encoding is specified then the first argument must be a string'
)
}
return allocUnsafe(this, arg)
}
return from(this, arg, encodingOrOffset, length)
}
Buffer.poolSize = 8192; // not used by this implementation
// TODO: Legacy, not needed anymore. Remove in next major version.
Buffer._augment = function (arr) {
arr.__proto__ = Buffer.prototype;
return arr
};
function from (that, value, encodingOrOffset, length) {
if (typeof value === 'number') {
throw new TypeError('"value" argument must not be a number')
}
if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
return fromArrayBuffer(that, value, encodingOrOffset, length)
}
if (typeof value === 'string') {
return fromString(that, value, encodingOrOffset)
}
return fromObject(that, value)
}
/**
* Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
* if value is a number.
* Buffer.from(str[, encoding])
* Buffer.from(array)
* Buffer.from(buffer)
* Buffer.from(arrayBuffer[, byteOffset[, length]])
**/
Buffer.from = function (value, encodingOrOffset, length) {
return from(null, value, encodingOrOffset, length)
};
if (Buffer.TYPED_ARRAY_SUPPORT) {
Buffer.prototype.__proto__ = Uint8Array.prototype;
Buffer.__proto__ = Uint8Array;
}
function assertSize (size) {
if (typeof size !== 'number') {
throw new TypeError('"size" argument must be a number')
} else if (size < 0) {
throw new RangeError('"size" argument must not be negative')
}
}
function alloc (that, size, fill, encoding) {
assertSize(size);
if (size <= 0) {
return createBuffer(that, size)
}
if (fill !== undefined) {
// Only pay attention to encoding if it's a string. This
// prevents accidentally sending in a number that would
// be interpretted as a start offset.
return typeof encoding === 'string'
? createBuffer(that, size).fill(fill, encoding)
: createBuffer(that, size).fill(fill)
}
return createBuffer(that, size)
}
/**
* Creates a new filled Buffer instance.
* alloc(size[, fill[, encoding]])
**/
Buffer.alloc = function (size, fill, encoding) {
return alloc(null, size, fill, encoding)
};
function allocUnsafe (that, size) {
assertSize(size);
that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
if (!Buffer.TYPED_ARRAY_SUPPORT) {
for (var i = 0; i < size; ++i) {
that[i] = 0;
}
}
return that
}
/**
* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
* */
Buffer.allocUnsafe = function (size) {
return allocUnsafe(null, size)
};
/**
* Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
*/
Buffer.allocUnsafeSlow = function (size) {
return allocUnsafe(null, size)
};
function fromString (that, string, encoding) {
if (typeof encoding !== 'string' || encoding === '') {
encoding = 'utf8';
}
if (!Buffer.isEncoding(encoding)) {
throw new TypeError('"encoding" must be a valid string encoding')
}
var length = byteLength(string, encoding) | 0;
that = createBuffer(that, length);
var actual = that.write(string, encoding);
if (actual !== length) {
// Writing a hex string, for example, that contains invalid characters will
// cause everything after the first invalid character to be ignored. (e.g.
// 'abxxcd' will be treated as 'ab')
that = that.slice(0, actual);
}
return that
}
function fromArrayLike (that, array) {
var length = array.length < 0 ? 0 : checked(array.length) | 0;
that = createBuffer(that, length);
for (var i = 0; i < length; i += 1) {
that[i] = array[i] & 255;
}
return that
}
function fromArrayBuffer (that, array, byteOffset, length) {
array.byteLength; // this throws if `array` is not a valid ArrayBuffer
if (byteOffset < 0 || array.byteLength < byteOffset) {
throw new RangeError('\'offset\' is out of bounds')
}
if (array.byteLength < byteOffset + (length || 0)) {
throw new RangeError('\'length\' is out of bounds')
}
if (byteOffset === undefined && length === undefined) {
array = new Uint8Array(array);
} else if (length === undefined) {
array = new Uint8Array(array, byteOffset);
} else {
array = new Uint8Array(array, byteOffset, length);
}
if (Buffer.TYPED_ARRAY_SUPPORT) {
// Return an augmented `Uint8Array` instance, for best performance
that = array;
that.__proto__ = Buffer.prototype;
} else {
// Fallback: Return an object instance of the Buffer class
that = fromArrayLike(that, array);
}
return that
}
function fromObject (that, obj) {
if (internalIsBuffer(obj)) {
var len = checked(obj.length) | 0;
that = createBuffer(that, len);
if (that.length === 0) {
return that
}
obj.copy(that, 0, 0, len);
return that
}
if (obj) {
if ((typeof ArrayBuffer !== 'undefined' &&
obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
if (typeof obj.length !== 'number' || isnan(obj.length)) {
return createBuffer(that, 0)
}
return fromArrayLike(that, obj)
}
if (obj.type === 'Buffer' && isArray(obj.data)) {
return fromArrayLike(that, obj.data)
}
}
throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
}
function checked (length) {
// Note: cannot use `length < kMaxLength()` here because that fails when
// length is NaN (which is otherwise coerced to zero.)
if (length >= kMaxLength()) {
throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
'size: 0x' + kMaxLength().toString(16) + ' bytes')
}
return length | 0
}
Buffer.isBuffer = isBuffer;
function internalIsBuffer (b) {
return !!(b != null && b._isBuffer)
}
Buffer.compare = function compare (a, b) {
if (!internalIsBuffer(a) || !internalIsBuffer(b)) {
throw new TypeError('Arguments must be Buffers')
}
if (a === b) return 0
var x = a.length;
var y = b.length;
for (var i = 0, len = Math.min(x, y); i < len; ++i) {
if (a[i] !== b[i]) {
x = a[i];
y = b[i];
break
}
}
if (x < y) return -1
if (y < x) return 1
return 0
};
Buffer.isEncoding = function isEncoding (encoding) {
switch (String(encoding).toLowerCase()) {
case 'hex':
case 'utf8':
case 'utf-8':
case 'ascii':
case 'latin1':
case 'binary':
case 'base64':
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return true
default:
return false
}
};
Buffer.concat = function concat (list, length) {
if (!isArray(list)) {
throw new TypeError('"list" argument must be an Array of Buffers')
}
if (list.length === 0) {
return Buffer.alloc(0)
}
var i;
if (length === undefined) {
length = 0;
for (i = 0; i < list.length; ++i) {
length += list[i].length;
}
}
var buffer = Buffer.allocUnsafe(length);
var pos = 0;
for (i = 0; i < list.length; ++i) {
var buf = list[i];
if (!internalIsBuffer(buf)) {
throw new TypeError('"list" argument must be an Array of Buffers')
}
buf.copy(buffer, pos);
pos += buf.length;
}
return buffer
};
function byteLength (string, encoding) {
if (internalIsBuffer(string)) {
return string.length
}
if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
(ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
return string.byteLength
}
if (typeof string !== 'string') {
string = '' + string;
}
var len = string.length;
if (len === 0) return 0
// Use a for loop to avoid recursion
var loweredCase = false;
for (;;) {
switch (encoding) {
case 'ascii':
case 'latin1':
case 'binary':
return len
case 'utf8':
case 'utf-8':
case undefined:
return utf8ToBytes(string).length
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return len * 2
case 'hex':
return len >>> 1
case 'base64':
return base64ToBytes(string).length
default:
if (loweredCase) return utf8ToBytes(string).length // assume utf8
encoding = ('' + encoding).toLowerCase();
loweredCase = true;
}
}
}
Buffer.byteLength = byteLength;
function slowToString (encoding, start, end) {
var loweredCase = false;
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
// property of a typed array.
// This behaves neither like String nor Uint8Array in that we set start/end
// to their upper/lower bounds if the value passed is out of range.
// undefined is handled specially as per ECMA-262 6th Edition,
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
if (start === undefined || start < 0) {
start = 0;
}
// Return early if start > this.length. Done here to prevent potential uint32
// coercion fail below.
if (start > this.length) {
return ''
}
if (end === undefined || end > this.length) {
end = this.length;
}
if (end <= 0) {
return ''
}
// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
end >>>= 0;
start >>>= 0;
if (end <= start) {
return ''
}
if (!encoding) encoding = 'utf8';
while (true) {
switch (encoding) {
case 'hex':
return hexSlice(this, start, end)
case 'utf8':
case 'utf-8':
return utf8Slice(this, start, end)
case 'ascii':
return asciiSlice(this, start, end)
case 'latin1':
case 'binary':
return latin1Slice(this, start, end)
case 'base64':
return base64Slice(this, start, end)
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return utf16leSlice(this, start, end)
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
encoding = (encoding + '').toLowerCase();
loweredCase = true;
}
}
}
// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
// Buffer instances.
Buffer.prototype._isBuffer = true;
function swap (b, n, m) {
var i = b[n];
b[n] = b[m];
b[m] = i;
}
Buffer.prototype.swap16 = function swap16 () {
var len = this.length;
if (len % 2 !== 0) {
throw new RangeError('Buffer size must be a multiple of 16-bits')
}
for (var i = 0; i < len; i += 2) {
swap(this, i, i + 1);
}
return this
};
Buffer.prototype.swap32 = function swap32 () {
var len = this.length;
if (len % 4 !== 0) {
throw new RangeError('Buffer size must be a multiple of 32-bits')
}
for (var i = 0; i < len; i += 4) {
swap(this, i, i + 3);
swap(this, i + 1, i + 2);
}
return this
};
Buffer.prototype.swap64 = function swap64 () {
var len = this.length;
if (len % 8 !== 0) {
throw new RangeError('Buffer size must be a multiple of 64-bits')
}
for (var i = 0; i < len; i += 8) {
swap(this, i, i + 7);
swap(this, i + 1, i + 6);
swap(this, i + 2, i + 5);
swap(this, i + 3, i + 4);
}
return this
};
Buffer.prototype.toString = function toString () {
var length = this.length | 0;
if (length === 0) return ''
if (arguments.length === 0) return utf8Slice(this, 0, length)
return slowToString.apply(this, arguments)
};
Buffer.prototype.equals = function equals (b) {
if (!internalIsBuffer(b)) throw new TypeError('Argument must be a Buffer')
if (this === b) return true
return Buffer.compare(this, b) === 0
};
Buffer.prototype.inspect = function inspect () {
var str = '';
var max = INSPECT_MAX_BYTES;
if (this.length > 0) {
str = this.toString('hex', 0, max).match(/.{2}/g).join(' ');
if (this.length > max) str += ' ... ';
}
return '<Buffer ' + str + '>'
};
Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
if (!internalIsBuffer(target)) {
throw new TypeError('Argument must be a Buffer')
}
if (start === undefined) {
start = 0;
}
if (end === undefined) {
end = target ? target.length : 0;
}
if (thisStart === undefined) {
thisStart = 0;
}
if (thisEnd === undefined) {
thisEnd = this.length;
}
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
throw new RangeError('out of range index')
}
if (thisStart >= thisEnd && start >= end) {
return 0
}
if (thisStart >= thisEnd) {
return -1
}
if (start >= end) {
return 1
}
start >>>= 0;
end >>>= 0;
thisStart >>>= 0;
thisEnd >>>= 0;
if (this === target) return 0
var x = thisEnd - thisStart;
var y = end - start;
var len = Math.min(x, y);
var thisCopy = this.slice(thisStart, thisEnd);
var targetCopy = target.slice(start, end);
for (var i = 0; i < len; ++i) {
if (thisCopy[i] !== targetCopy[i]) {
x = thisCopy[i];
y = targetCopy[i];
break
}
}
if (x < y) return -1
if (y < x) return 1
return 0
};
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
//
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
// Empty buffer means no match
if (buffer.length === 0) return -1
// Normalize byteOffset
if (typeof byteOffset === 'string') {
encoding = byteOffset;
byteOffset = 0;
} else if (byteOffset > 0x7fffffff) {
byteOffset = 0x7fffffff;
} else if (byteOffset < -0x80000000) {
byteOffset = -0x80000000;
}
byteOffset = +byteOffset; // Coerce to Number.
if (isNaN(byteOffset)) {
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
byteOffset = dir ? 0 : (buffer.length - 1);
}
// Normalize byteOffset: negative offsets start from the end of the buffer
if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
if (byteOffset >= buffer.length) {
if (dir) return -1
else byteOffset = buffer.length - 1;
} else if (byteOffset < 0) {
if (dir) byteOffset = 0;
else return -1
}
// Normalize val
if (typeof val === 'string') {
val = Buffer.from(val, encoding);
}
// Finally, search either indexOf (if dir is true) or lastIndexOf
if (internalIsBuffer(val)) {
// Special case: looking for empty string/buffer always fails
if (val.length === 0) {
return -1
}
return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
} else if (typeof val === 'number') {
val = val & 0xFF; // Search for a byte value [0-255]
if (Buffer.TYPED_ARRAY_SUPPORT &&
typeof Uint8Array.prototype.indexOf === 'function') {
if (dir) {
return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
} else {
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
}
}
return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
}
throw new TypeError('val must be string, number or Buffer')
}
function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
var indexSize = 1;
var arrLength = arr.length;
var valLength = val.length;
if (encoding !== undefined) {
encoding = String(encoding).toLowerCase();
if (encoding === 'ucs2' || encoding === 'ucs-2' ||
encoding === 'utf16le' || encoding === 'utf-16le') {
if (arr.length < 2 || val.length < 2) {
return -1
}
indexSize = 2;
arrLength /= 2;
valLength /= 2;
byteOffset /= 2;
}
}
function read (buf, i) {
if (indexSize === 1) {
return buf[i]
} else {
return buf.readUInt16BE(i * indexSize)
}
}
var i;
if (dir) {
var foundIndex = -1;
for (i = byteOffset; i < arrLength; i++) {
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
if (foundIndex === -1) foundIndex = i;
if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
} else {
if (foundIndex !== -1) i -= i - foundIndex;
foundIndex = -1;
}
}
} else {
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
for (i = byteOffset; i >= 0; i--) {
var found = true;
for (var j = 0; j < valLength; j++) {
if (read(arr, i + j) !== read(val, j)) {
found = false;
break
}
}
if (found) return i
}
}
return -1
}
Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
return this.indexOf(val, byteOffset, encoding) !== -1
};
Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
};
Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
};
function hexWrite (buf, string, offset, length) {
offset = Number(offset) || 0;
var remaining = buf.length - offset;
if (!length) {
length = remaining;
} else {
length = Number(length);
if (length > remaining) {
length = remaining;
}
}
// must be an even number of digits
var strLen = string.length;
if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
if (length > strLen / 2) {
length = strLen / 2;
}
for (var i = 0; i < length; ++i) {
var parsed = parseInt(string.substr(i * 2, 2), 16);
if (isNaN(parsed)) return i
buf[offset + i] = parsed;
}
return i
}
function utf8Write (buf, string, offset, length) {
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
}
function asciiWrite (buf, string, offset, length) {
return blitBuffer(asciiToBytes(string), buf, offset, length)
}
function latin1Write (buf, string, offset, length) {
return asciiWrite(buf, string, offset, length)
}
function base64Write (buf, string, offset, length) {
return blitBuffer(base64ToBytes(string), buf, offset, length)
}
function ucs2Write (buf, string, offset, length) {
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
}
Buffer.prototype.write = function write (string, offset, length, encoding) {
// Buffer#write(string)
if (offset === undefined) {
encoding = 'utf8';
length = this.length;
offset = 0;
// Buffer#write(string, encoding)
} else if (length === undefined && typeof offset === 'string') {
encoding = offset;
length = this.length;
offset = 0;
// Buffer#write(string, offset[, length][, encoding])
} else if (isFinite(offset)) {
offset = offset | 0;
if (isFinite(length)) {
length = length | 0;
if (encoding === undefined) encoding = 'utf8';
} else {
encoding = length;
length = undefined;
}
// legacy write(string, encoding, offset, length) - remove in v0.13
} else {
throw new Error(
'Buffer.write(string, encoding, offset[, length]) is no longer supported'
)
}
var remaining = this.length - offset;
if (length === undefined || length > remaining) length = remaining;
if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
throw new RangeError('Attempt to write outside buffer bounds')
}
if (!encoding) encoding = 'utf8';
var loweredCase = false;
for (;;) {
switch (encoding) {
case 'hex':
return hexWrite(this, string, offset, length)
case 'utf8':
case 'utf-8':
return utf8Write(this, string, offset, length)
case 'ascii':
return asciiWrite(this, string, offset, length)
case 'latin1':
case 'binary':
return latin1Write(this, string, offset, length)
case 'base64':
// Warning: maxLength not taken into account in base64Write
return base64Write(this, string, offset, length)
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return ucs2Write(this, string, offset, length)
default:
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
encoding = ('' + encoding).toLowerCase();
loweredCase = true;
}
}
};
Buffer.prototype.toJSON = function toJSON () {
return {
type: 'Buffer',
data: Array.prototype.slice.call(this._arr || this, 0)
}
};
function base64Slice (buf, start, end) {
if (start === 0 && end === buf.length) {
return fromByteArray(buf)
} else {
return fromByteArray(buf.slice(start, end))
}
}
function utf8Slice (buf, start, end) {
end = Math.min(buf.length, end);
var res = [];
var i = start;
while (i < end) {
var firstByte = buf[i];
var codePoint = null;
var bytesPerSequence = (firstByte > 0xEF) ? 4
: (firstByte > 0xDF) ? 3
: (firstByte > 0xBF) ? 2
: 1;
if (i + bytesPerSequence <= end) {
var secondByte, thirdByte, fourthByte, tempCodePoint;
switch (bytesPerSequence) {
case 1:
if (firstByte < 0x80) {
codePoint = firstByte;
}
break
case 2:
secondByte = buf[i + 1];
if ((secondByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F);
if (tempCodePoint > 0x7F) {
codePoint = tempCodePoint;
}
}
break
case 3:
secondByte = buf[i + 1];
thirdByte = buf[i + 2];
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F);
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
codePoint = tempCodePoint;
}
}
break
case 4:
secondByte = buf[i + 1];
thirdByte = buf[i + 2];
fourthByte = buf[i + 3];
if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F);
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
codePoint = tempCodePoint;
}
}
}
}
if (codePoint === null) {
// we did not generate a valid codePoint so insert a
// replacement char (U+FFFD) and advance only 1 byte
codePoint = 0xFFFD;
bytesPerSequence = 1;
} else if (codePoint > 0xFFFF) {
// encode to utf16 (surrogate pair dance)
codePoint -= 0x10000;
res.push(codePoint >>> 10 & 0x3FF | 0xD800);
codePoint = 0xDC00 | codePoint & 0x3FF;
}
res.push(codePoint);
i += bytesPerSequence;
}
return decodeCodePointsArray(res)
}
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
var MAX_ARGUMENTS_LENGTH = 0x1000;
function decodeCodePointsArray (codePoints) {
var len = codePoints.length;
if (len <= MAX_ARGUMENTS_LENGTH) {
return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
}
// Decode in chunks to avoid "call stack size exceeded".
var res = '';
var i = 0;
while (i < len) {
res += String.fromCharCode.apply(
String,
codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
);
}
return res
}
function asciiSlice (buf, start, end) {
var ret = '';
end = Math.min(buf.length, end);
for (var i = start; i < end; ++i) {
ret += String.fromCharCode(buf[i] & 0x7F);
}
return ret
}
function latin1Slice (buf, start, end) {
var ret = '';
end = Math.min(buf.length, end);
for (var i = start; i < end; ++i) {
ret += String.fromCharCode(buf[i]);
}
return ret
}
function hexSlice (buf, start, end) {
var len = buf.length;
if (!start || start < 0) start = 0;
if (!end || end < 0 || end > len) end = len;
var out = '';
for (var i = start; i < end; ++i) {
out += toHex(buf[i]);
}
return out
}
function utf16leSlice (buf, start, end) {
var bytes = buf.slice(start, end);
var res = '';
for (var i = 0; i < bytes.length; i += 2) {
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
}
return res
}
Buffer.prototype.slice = function slice (start, end) {
var len = this.length;
start = ~~start;
end = end === undefined ? len : ~~end;
if (start < 0) {
start += len;
if (start < 0) start = 0;
} else if (start > len) {
start = len;
}
if (end < 0) {
end += len;
if (end < 0) end = 0;
} else if (end > len) {
end = len;
}
if (end < start) end = start;
var newBuf;
if (Buffer.TYPED_ARRAY_SUPPORT) {
newBuf = this.subarray(start, end);
newBuf.__proto__ = Buffer.prototype;
} else {
var sliceLen = end - start;
newBuf = new Buffer(sliceLen, undefined);
for (var i = 0; i < sliceLen; ++i) {
newBuf[i] = this[i + start];
}
}
return newBuf
};
/*
* Need to make sure that buffer isn't trying to write out of bounds.
*/
function checkOffset (offset, ext, length) {
if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
}
Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var val = this[offset];
var mul = 1;
var i = 0;
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul;
}
return val
};
Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) {
checkOffset(offset, byteLength, this.length);
}
var val = this[offset + --byteLength];
var mul = 1;
while (byteLength > 0 && (mul *= 0x100)) {
val += this[offset + --byteLength] * mul;
}
return val
};
Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
if (!noAssert) checkOffset(offset, 1, this.length);
return this[offset]
};
Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length);
return this[offset] | (this[offset + 1] << 8)
};
Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length);
return (this[offset] << 8) | this[offset + 1]
};
Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return ((this[offset]) |
(this[offset + 1] << 8) |
(this[offset + 2] << 16)) +
(this[offset + 3] * 0x1000000)
};
Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return (this[offset] * 0x1000000) +
((this[offset + 1] << 16) |
(this[offset + 2] << 8) |
this[offset + 3])
};
Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var val = this[offset];
var mul = 1;
var i = 0;
while (++i < byteLength && (mul *= 0x100)) {
val += this[offset + i] * mul;
}
mul *= 0x80;
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
return val
};
Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) checkOffset(offset, byteLength, this.length);
var i = byteLength;
var mul = 1;
var val = this[offset + --i];
while (i > 0 && (mul *= 0x100)) {
val += this[offset + --i] * mul;
}
mul *= 0x80;
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
return val
};
Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
if (!noAssert) checkOffset(offset, 1, this.length);
if (!(this[offset] & 0x80)) return (this[offset])
return ((0xff - this[offset] + 1) * -1)
};
Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length);
var val = this[offset] | (this[offset + 1] << 8);
return (val & 0x8000) ? val | 0xFFFF0000 : val
};
Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 2, this.length);
var val = this[offset + 1] | (this[offset] << 8);
return (val & 0x8000) ? val | 0xFFFF0000 : val
};
Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return (this[offset]) |
(this[offset + 1] << 8) |
(this[offset + 2] << 16) |
(this[offset + 3] << 24)
};
Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return (this[offset] << 24) |
(this[offset + 1] << 16) |
(this[offset + 2] << 8) |
(this[offset + 3])
};
Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return read(this, offset, true, 23, 4)
};
Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 4, this.length);
return read(this, offset, false, 23, 4)
};
Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 8, this.length);
return read(this, offset, true, 52, 8)
};
Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
if (!noAssert) checkOffset(offset, 8, this.length);
return read(this, offset, false, 52, 8)
};
function checkInt (buf, value, offset, ext, max, min) {
if (!internalIsBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
if (offset + ext > buf.length) throw new RangeError('Index out of range')
}
Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
value = +value;
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) {
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
checkInt(this, value, offset, byteLength, maxBytes, 0);
}
var mul = 1;
var i = 0;
this[offset] = value & 0xFF;
while (++i < byteLength && (mul *= 0x100)) {
this[offset + i] = (value / mul) & 0xFF;
}
return offset + byteLength
};
Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
value = +value;
offset = offset | 0;
byteLength = byteLength | 0;
if (!noAssert) {
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
checkInt(this, value, offset, byteLength, maxBytes, 0);
}
var i = byteLength - 1;
var mul = 1;
this[offset + i] = value & 0xFF;
while (--i >= 0 && (mul *= 0x100)) {
this[offset + i] = (value / mul) & 0xFF;
}
return offset + byteLength
};
Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
this[offset] = (value & 0xff);
return offset + 1
};
function objectWriteUInt16 (buf, value, offset, littleEndian) {
if (value < 0) value = 0xffff + value + 1;
for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
(littleEndian ? i : 1 - i) * 8;
}
}
Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff);
this[offset + 1] = (value >>> 8);
} else {
objectWriteUInt16(this, value, offset, true);
}
return offset + 2
};
Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 8);
this[offset + 1] = (value & 0xff);
} else {
objectWriteUInt16(this, value, offset, false);
}
return offset + 2
};
function objectWriteUInt32 (buf, value, offset, littleEndian) {
if (value < 0) value = 0xffffffff + value + 1;
for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff;
}
}
Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset + 3] = (value >>> 24);
this[offset + 2] = (value >>> 16);
this[offset + 1] = (value >>> 8);
this[offset] = (value & 0xff);
} else {
objectWriteUInt32(this, value, offset, true);
}
return offset + 4
};
Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 24);
this[offset + 1] = (value >>> 16);
this[offset + 2] = (value >>> 8);
this[offset + 3] = (value & 0xff);
} else {
objectWriteUInt32(this, value, offset, false);
}
return offset + 4
};
Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1);
checkInt(this, value, offset, byteLength, limit - 1, -limit);
}
var i = 0;
var mul = 1;
var sub = 0;
this[offset] = value & 0xFF;
while (++i < byteLength && (mul *= 0x100)) {
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
sub = 1;
}
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF;
}
return offset + byteLength
};
Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) {
var limit = Math.pow(2, 8 * byteLength - 1);
checkInt(this, value, offset, byteLength, limit - 1, -limit);
}
var i = byteLength - 1;
var mul = 1;
var sub = 0;
this[offset + i] = value & 0xFF;
while (--i >= 0 && (mul *= 0x100)) {
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
sub = 1;
}
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF;
}
return offset + byteLength
};
Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);
if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
if (value < 0) value = 0xff + value + 1;
this[offset] = (value & 0xff);
return offset + 1
};
Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff);
this[offset + 1] = (value >>> 8);
} else {
objectWriteUInt16(this, value, offset, true);
}
return offset + 2
};
Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 8);
this[offset + 1] = (value & 0xff);
} else {
objectWriteUInt16(this, value, offset, false);
}
return offset + 2
};
Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value & 0xff);
this[offset + 1] = (value >>> 8);
this[offset + 2] = (value >>> 16);
this[offset + 3] = (value >>> 24);
} else {
objectWriteUInt32(this, value, offset, true);
}
return offset + 4
};
Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
value = +value;
offset = offset | 0;
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
if (value < 0) value = 0xffffffff + value + 1;
if (Buffer.TYPED_ARRAY_SUPPORT) {
this[offset] = (value >>> 24);
this[offset + 1] = (value >>> 16);
this[offset + 2] = (value >>> 8);
this[offset + 3] = (value & 0xff);
} else {
objectWriteUInt32(this, value, offset, false);
}
return offset + 4
};
function checkIEEE754 (buf, value, offset, ext, max, min) {
if (offset + ext > buf.length) throw new RangeError('Index out of range')
if (offset < 0) throw new RangeError('Index out of range')
}
function writeFloat (buf, value, offset, littleEndian, noAssert) {
if (!noAssert) {
checkIEEE754(buf, value, offset, 4);
}
write(buf, value, offset, littleEndian, 23, 4);
return offset + 4
}
Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
return writeFloat(this, value, offset, true, noAssert)
};
Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
return writeFloat(this, value, offset, false, noAssert)
};
function writeDouble (buf, value, offset, littleEndian, noAssert) {
if (!noAssert) {
checkIEEE754(buf, value, offset, 8);
}
write(buf, value, offset, littleEndian, 52, 8);
return offset + 8
}
Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
return writeDouble(this, value, offset, true, noAssert)
};
Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
return writeDouble(this, value, offset, false, noAssert)
};
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
if (!start) start = 0;
if (!end && end !== 0) end = this.length;
if (targetStart >= target.length) targetStart = target.length;
if (!targetStart) targetStart = 0;
if (end > 0 && end < start) end = start;
// Copy 0 bytes; we're done
if (end === start) return 0
if (target.length === 0 || this.length === 0) return 0
// Fatal error conditions
if (targetStart < 0) {
throw new RangeError('targetStart out of bounds')
}
if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
if (end < 0) throw new RangeError('sourceEnd out of bounds')
// Are we oob?
if (end > this.length) end = this.length;
if (target.length - targetStart < end - start) {
end = target.length - targetStart + start;
}
var len = end - start;
var i;
if (this === target && start < targetStart && targetStart < end) {
// descending copy from end
for (i = len - 1; i >= 0; --i) {
target[i + targetStart] = this[i + start];
}
} else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
// ascending copy from start
for (i = 0; i < len; ++i) {
target[i + targetStart] = this[i + start];
}
} else {
Uint8Array.prototype.set.call(
target,
this.subarray(start, start + len),
targetStart
);
}
return len
};
// Usage:
// buffer.fill(number[, offset[, end]])
// buffer.fill(buffer[, offset[, end]])
// buffer.fill(string[, offset[, end]][, encoding])
Buffer.prototype.fill = function fill (val, start, end, encoding) {
// Handle string cases:
if (typeof val === 'string') {
if (typeof start === 'string') {
encoding = start;
start = 0;
end = this.length;
} else if (typeof end === 'string') {
encoding = end;
end = this.length;
}
if (val.length === 1) {
var code = val.charCodeAt(0);
if (code < 256) {
val = code;
}
}
if (encoding !== undefined && typeof encoding !== 'string') {
throw new TypeError('encoding must be a string')
}
if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
throw new TypeError('Unknown encoding: ' + encoding)
}
} else if (typeof val === 'number') {
val = val & 255;
}
// Invalid ranges are not set to a default, so can range check early.
if (start < 0 || this.length < start || this.length < end) {
throw new RangeError('Out of range index')
}
if (end <= start) {
return this
}
start = start >>> 0;
end = end === undefined ? this.length : end >>> 0;
if (!val) val = 0;
var i;
if (typeof val === 'number') {
for (i = start; i < end; ++i) {
this[i] = val;
}
} else {
var bytes = internalIsBuffer(val)
? val
: utf8ToBytes(new Buffer(val, encoding).toString());
var len = bytes.length;
for (i = 0; i < end - start; ++i) {
this[i + start] = bytes[i % len];
}
}
return this
};
// HELPER FUNCTIONS
// ================
var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g;
function base64clean (str) {
// Node strips out invalid characters like \n and \t from the string, base64-js does not
str = stringtrim(str).replace(INVALID_BASE64_RE, '');
// Node converts strings with length < 2 to ''
if (str.length < 2) return ''
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
while (str.length % 4 !== 0) {
str = str + '=';
}
return str
}
function stringtrim (str) {
if (str.trim) return str.trim()
return str.replace(/^\s+|\s+$/g, '')
}
function toHex (n) {
if (n < 16) return '0' + n.toString(16)
return n.toString(16)
}
function utf8ToBytes (string, units) {
units = units || Infinity;
var codePoint;
var length = string.length;
var leadSurrogate = null;
var bytes = [];
for (var i = 0; i < length; ++i) {
codePoint = string.charCodeAt(i);
// is surrogate component
if (codePoint > 0xD7FF && codePoint < 0xE000) {
// last char was a lead
if (!leadSurrogate) {
// no lead yet
if (codePoint > 0xDBFF) {
// unexpected trail
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
continue
} else if (i + 1 === length) {
// unpaired lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
continue
}
// valid lead
leadSurrogate = codePoint;
continue
}
// 2 leads in a row
if (codePoint < 0xDC00) {
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
leadSurrogate = codePoint;
continue
}
// valid surrogate pair
codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000;
} else if (leadSurrogate) {
// valid bmp char, but last char was a lead
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
}
leadSurrogate = null;
// encode utf8
if (codePoint < 0x80) {
if ((units -= 1) < 0) break
bytes.push(codePoint);
} else if (codePoint < 0x800) {
if ((units -= 2) < 0) break
bytes.push(
codePoint >> 0x6 | 0xC0,
codePoint & 0x3F | 0x80
);
} else if (codePoint < 0x10000) {
if ((units -= 3) < 0) break
bytes.push(
codePoint >> 0xC | 0xE0,
codePoint >> 0x6 & 0x3F | 0x80,
codePoint & 0x3F | 0x80
);
} else if (codePoint < 0x110000) {
if ((units -= 4) < 0) break
bytes.push(
codePoint >> 0x12 | 0xF0,
codePoint >> 0xC & 0x3F | 0x80,
codePoint >> 0x6 & 0x3F | 0x80,
codePoint & 0x3F | 0x80
);
} else {
throw new Error('Invalid code point')
}
}
return bytes
}
function asciiToBytes (str) {
var byteArray = [];
for (var i = 0; i < str.length; ++i) {
// Node's code seems to be doing this and not & 0x7F..
byteArray.push(str.charCodeAt(i) & 0xFF);
}
return byteArray
}
function utf16leToBytes (str, units) {
var c, hi, lo;
var byteArray = [];
for (var i = 0; i < str.length; ++i) {
if ((units -= 2) < 0) break
c = str.charCodeAt(i);
hi = c >> 8;
lo = c % 256;
byteArray.push(lo);
byteArray.push(hi);
}
return byteArray
}
function base64ToBytes (str) {
return toByteArray(base64clean(str))
}
function blitBuffer (src, dst, offset, length) {
for (var i = 0; i < length; ++i) {
if ((i + offset >= dst.length) || (i >= src.length)) break
dst[i + offset] = src[i];
}
return i
}
function isnan (val) {
return val !== val // eslint-disable-line no-self-compare
}
// the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
function isBuffer(obj) {
return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj))
}
function isFastBuffer (obj) {
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
}
// For Node v0.10 support. Remove this eventually.
function isSlowBuffer (obj) {
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0))
}
function parseBodyToType$1(res) {
if (res.headers.get('Content-Type') === 'application/json') {
return res.json().then(function (data) {
return [res, data];
});
}
return res.text().then(function (data) {
return [res, data];
});
}
function rpcRequest(fetch) {
return function rpcRequestWithFetch(path, body, auth, host, client, options) {
return client.checkAndRefreshAccessToken().then(function () {
var fetchOptions = {
method: 'POST',
body: body ? JSON.stringify(body) : null
};
var headers = {};
if (body) {
headers['Content-Type'] = 'application/json';
}
var authHeader = '';
switch (auth) {
case 'app':
if (!options.clientId || !options.clientSecret) {
throw new Error('A client id and secret is required for this function');
}
authHeader = new Buffer(options.clientId + ':' + options.clientSecret).toString('base64');
headers.Authorization = 'Basic ' + authHeader;
break;
case 'team':
case 'user':
headers.Authorization = 'Bearer ' + client.getAccessToken();
break;
case 'noauth':
break;
default:
throw new Error('Unhandled auth type: ' + auth);
}
if (options) {
if (options.selectUser) {
headers['Dropbox-API-Select-User'] = options.selectUser;
}
if (options.selectAdmin) {
headers['Dropbox-API-Select-Admin'] = options.selectAdmin;
}
if (options.pathRoot) {
headers['Dropbox-API-Path-Root'] = options.pathRoot;
}
}
fetchOptions.headers = headers;
return fetchOptions;
}).then(function (fetchOptions) {
return fetch(getBaseURL(host) + path, fetchOptions);
}).then(function (res) {
return parseBodyToType$1(res);
}).then(function (_ref) {
var _ref2 = slicedToArray(_ref, 2),
res = _ref2[0],
data = _ref2[1];
// maintaining existing API for error codes not equal to 200 range
if (!res.ok) {
// eslint-disable-next-line no-throw-literal
throw {
error: data,
response: res,
status: res.status
};
}
return data;
});
};
}
var crypto = void 0;
try {
crypto = require('crypto'); // eslint-disable-line global-require
} catch (Exception) {
crypto = window.crypto;
}
// Expiration is 300 seconds but needs to be in milliseconds for Date object
var TokenExpirationBuffer = 300 * 1000;
var PKCELength = 128;
var TokenAccessTypes = ['legacy', 'offline', 'online'];
var GrantTypes = ['code', 'token'];
var IncludeGrantedScopes = ['none', 'user', 'team'];
var BaseAuthorizeUrl = 'https://www.dropbox.com/oauth2/authorize';
var BaseTokenUrl = 'https://api.dropboxapi.com/oauth2/token';
/* eslint-disable */
// Polyfill object.assign for legacy browsers
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
if (typeof Object.assign !== 'function') {
(function () {
Object.assign = function (target) {
var output;
var index;
var source;
var nextKey;
if (target === undefined || target === null) {
throw new TypeError('Cannot convert undefined or null to object');
}
output = Object(target);
for (index = 1; index < arguments.length; index++) {
source = arguments[index];
if (source !== undefined && source !== null) {
for (nextKey in source) {
if (source.hasOwnProperty(nextKey)) {
output[nextKey] = source[nextKey];
}
}
}
}
return output;
};
})();
}
// Polyfill Array.includes for legacy browsers
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
if (!Array.prototype.includes) {
Object.defineProperty(Array.prototype, 'includes', {
value: function value(searchElement, fromIndex) {
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
// 1. Let O be ? ToObject(this value).
var o = Object(this);
// 2. Let len be ? ToLength(? Get(O, "length")).
var len = o.length >>> 0;
// 3. If len is 0, return false.
if (len === 0) {
return false;
}
// 4. Let n be ? ToInteger(fromIndex).
// (If fromIndex is undefined, this step produces the value 0.)
var n = fromIndex | 0;
// 5. If n ≥ 0, then
// a. Let k be n.
// 6. Else n < 0,
// a. Let k be len + n.
// b. If k < 0, let k be 0.
var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
function sameValueZero(x, y) {
return x === y || typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y);
}
// 7. Repeat, while k < len
while (k < len) {
// a. Let elementK be the result of ? Get(O, ! ToString(k)).
// b. If SameValueZero(searchElement, elementK) is true, return true.
if (sameValueZero(o[k], searchElement)) {
return true;
}
// c. Increase k by 1.
k++;
}
// 8. Return false
return false;
}
});
}
/* eslint-enable */
/**
* @private
* @class DropboxBase
* @classdesc The main Dropbox SDK class. This contains the methods that are
* shared between Dropbox and DropboxTeam classes. It is marked as private so
* that it doesn't show up in the docs because it is never used directly.
* @arg {Object} options
* @arg {Function} [options.fetch] - fetch library for making requests.
* @arg {String} [options.accessToken] - An access token for making authenticated
* requests.
* @arg {String} [options.clientId] - The client id for your app. Used to create
* authentication URL.
* @arg {String} [options.clientSecret] - The client secret for your app.
* @arg {Number} [options.selectUser] - User that the team access token would like
* to act as.
* @arg {String} [options.selectAdmin] - Team admin that the team access token would like
* to act as.
* @arg {String} [options.pathRoot] - root pass to access other namespaces
* Use to access team folders for example
*/
function parseBodyToType$2(res) {
var clone = res.clone();
return new Promise(function (resolve) {
res.json().then(function (data) {
return resolve(data);
}).catch(function () {
return clone.text().then(function (data) {
return resolve(data);
});
});
}).then(function (data) {
return [res, data];
});
}
/**
*
* @param expiresIn
*/
function getTokenExpiresAt(expiresIn) {
return new Date(Date.now() + expiresIn * 1000);
}
var DropboxBase = function () {
function DropboxBase(options) {
classCallCheck(this, DropboxBase);
options = options || {};
this.accessToken = options.accessToken;
this.accessTokenExpiresAt = options.accessTokenExpiresAt;
this.refreshToken = options.refreshToken;
this.clientId = options.clientId;
this.clientSecret = options.clientSecret;
this.selectUser = options.selectUser;
this.selectAdmin = options.selectAdmin;
this.fetch = options.fetch || fetch;
this.pathRoot = options.pathRoot;
if (!options.fetch) {
console.warn('Global fetch is deprecated and will be unsupported in a future version. Please pass fetch function as option when instantiating dropbox instance: new Dropbox({fetch})');
} // eslint-disable-line no-console
}
/**
* Set the access token used to authenticate requests to the API.
* @arg {String} accessToken - An access token
* @returns {undefined}
*/
createClass(DropboxBase, [{
key: 'setAccessToken',
value: function setAccessToken(accessToken) {
this.accessToken = accessToken;
}
/**
* Get the access token
* @returns {String} Access token
*/
}, {
key: 'getAccessToken',
value: function getAccessToken() {
return this.accessToken;
}
/**
* Set the client id, which is used to help gain an access token.
* @arg {String} clientId - Your apps client id
* @returns {undefined}
*/
}, {
key: 'setClientId',
value: function setClientId(clientId) {
this.clientId = clientId;
}
/**
* Get the client id
* @returns {String} Client id
*/
}, {
key: 'getClientId',
value: function getClientId() {
return this.clientId;
}
/**
* Set the client secret
* @arg {String} clientSecret - Your app's client secret
* @returns {undefined}
*/
}, {
key: 'setClientSecret',
value: function setClientSecret(clientSecret) {
this.clientSecret = clientSecret;
}
/**
* Get the client secret
* @returns {String} Client secret
*/
}, {
key: 'getClientSecret',
value: function getClientSecret() {
return this.clientSecret;
}
/**
* Gets the refresh token
* @returns {String} Refresh token
*/
}, {
key: 'getRefreshToken',
value: function getRefreshToken() {
return this.refreshToken;
}
/**
* Sets the refresh token
* @param refreshToken - A refresh token
*/
}, {
key: 'setRefreshToken',
value: function setRefreshToken(refreshToken) {
this.refreshToken = refreshToken;
}
/**
* Gets the access token's expiration date
* @returns {Date} date of token expiration
*/
}, {
key: 'getAccessTokenExpiresAt',
value: function getAccessTokenExpiresAt() {
return this.accessTokenExpiresAt;
}
/**
* Sets the access token's expiration date
* @param accessTokenExpiresAt - new expiration date
*/
}, {
key: 'setAccessTokenExpiresAt',
value: function setAccessTokenExpiresAt(accessTokenExpiresAt) {
this.accessTokenExpiresAt = accessTokenExpiresAt;
}
}, {
key: 'generatePKCECodes',
value: function generatePKCECodes() {
var codeVerifier = crypto.randomBytes(PKCELength);
codeVerifier = codeVerifier.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '').substr(0, 128);
this.codeVerifier = codeVerifier;
var encoder = new TextEncoder();
var codeData = encoder.encode(codeVerifier);
var codeChallenge = crypto.createHash('sha256').update(codeData).digest();
codeChallenge = codeChallenge.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
this.codeChallenge = codeChallenge;
}
/**
* Get a URL that can be used to authenticate users for the Dropbox API.
* @arg {String} redirectUri - A URL to redirect the user to after
* authenticating. This must be added to your app through the admin interface.
* @arg {String} [state] - State that will be returned in the redirect URL to help
* prevent cross site scripting attacks.
* @arg {String} [authType] - auth type, defaults to 'token', other option is 'code'
* @arg {String} [tokenAccessType] - type of token to request. From the following:
* legacy - creates one long-lived token with no expiration
* online - create one short-lived token with an expiration
* offline - create one short-lived token with an expiration with a refresh token
* @arg {Array<String>>} [scope] - scopes to request for the grant
* @arg {String} [includeGrantedScopes] - whether or not to include previously granted scopes.
* From the following:
* user - include user scopes in the grant
* team - include team scopes in the grant
* Note: if this user has never linked the app, include_granted_scopes must be None
* @arg {boolean} [usePKCE] - Whether or not to use Sha256 based PKCE. PKCE should be only use on
* client apps which doesn't call your server. It is less secure than non-PKCE flow but
* can be used if you are unable to safely retrieve your app secret
* @returns {String} Url to send user to for Dropbox API authentication
*/
}, {
key: 'getAuthenticationUrl',
value: function getAuthenticationUrl(redirectUri, state) {
var authType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'token';
var tokenAccessType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'legacy';
var scope = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
var includeGrantedScopes = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'none';
var usePKCE = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
var clientId = this.getClientId();
var baseUrl = BaseAuthorizeUrl;
if (!clientId) {
throw new Error('A client id is required. You can set the client id using .setClientId().');
}
if (authType !== 'code' && !redirectUri) {
throw new Error('A redirect uri is required.');
}
if (!GrantTypes.includes(authType)) {
throw new Error('Authorization type must be code or token');
}
if (!TokenAccessTypes.includes(tokenAccessType)) {
throw new Error('Token Access Type must be legacy, offline, or online');
}
if (scope && !(scope instanceof Array)) {
throw new Error('Scope must be an array of strings');
}
if (!IncludeGrantedScopes.includes(includeGrantedScopes)) {
throw new Error('includeGrantedScopes must be none, user, or team');
}
var authUrl = void 0;
if (authType === 'code') {
authUrl = baseUrl + '?response_type=code&client_id=' + clientId;
} else {
authUrl = baseUrl + '?response_type=token&client_id=' + clientId;
}
if (redirectUri) {
authUrl += '&redirect_uri=' + redirectUri;
}
if (state) {
authUrl += '&state=' + state;
}
if (tokenAccessType !== 'legacy') {
authUrl += '&token_access_type=' + tokenAccessType;
}
if (scope) {
authUrl += '&scope=' + scope.join(' ');
}
if (includeGrantedScopes !== 'none') {
authUrl += '&include_granted_scopes=' + includeGrantedScopes;
}
if (usePKCE) {
this.generatePKCECodes();
authUrl += '&code_challenge_method=S256';
authUrl += '&code_challenge=' + this.codeChallenge;
}
return authUrl;
}
/**
* Get an OAuth2 access token from an OAuth2 Code.
* @arg {String} redirectUri - A URL to redirect the user to after
* authenticating. This must be added to your app through the admin interface.
* @arg {String} code - An OAuth2 code.
*/
}, {
key: 'getAccessTokenFromCode',
value: function getAccessTokenFromCode(redirectUri, code) {
var clientId = this.getClientId();
var clientSecret = this.getClientSecret();
if (!clientId) {
throw new Error('A client id is required. You can set the client id using .setClientId().');
}
var path = BaseTokenUrl;
path += '?grant_type=authorization_code';
path += '&code=' + code;
path += '&client_id=' + clientId;
if (clientSecret) {
path += '&client_secret=' + clientSecret;
} else {
if (!this.codeChallenge) {
throw new Error('You must use PKCE when generating the authorization URL to not include a client secret');
}
path += '&code_verifier=' + this.codeVerifier;
}
if (redirectUri) {
path += '&redirect_uri=' + redirectUri;
}
var fetchOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
};
return this.fetch(path, fetchOptions).then(function (res) {
return parseBodyToType$2(res);
}).then(function (_ref) {
var _ref2 = slicedToArray(_ref, 2),
res = _ref2[0],
data = _ref2[1];
// maintaining existing API for error codes not equal to 200 range
if (!res.ok) {
// eslint-disable-next-line no-throw-literal
throw {
error: data,
response: res,
status: res.status
};
}
if (data.refresh_token) {
return {
accessToken: data.access_token,
refreshToken: data.refresh_token,
accessTokenExpiresAt: getTokenExpiresAt(data.expires_in)
};
}
return data.access_token;
});
}
/**
* Checks if a token is needed, can be refreshed and if the token is expired.
* If so, attempts to refresh access token
* @returns {Promise<*>}
*/
}, {
key: 'checkAndRefreshAccessToken',
value: function checkAndRefreshAccessToken() {
var canRefresh = this.getRefreshToken() && this.getClientId();
var needsRefresh = this.getAccessTokenExpiresAt() && new Date(Date.now() + TokenExpirationBuffer) >= this.getAccessTokenExpiresAt();
var needsToken = !this.getAccessToken();
if ((needsRefresh || needsToken) && canRefresh) {
return this.refreshAccessToken();
}
return Promise.resolve();
}
/**
* Refreshes the access token using the refresh token, if available
* @arg {List} scope - a subset of scopes from the original
* refresh to acquire with an access token
* @returns {Promise<*>}
*/
}, {
key: 'refreshAccessToken',
value: function refreshAccessToken() {
var _this = this;
var scope = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
var refreshUrl = BaseTokenUrl;
var clientId = this.getClientId();
var clientSecret = this.getClientSecret();
if (!clientId) {
throw new Error('A client id is required. You can set the client id using .setClientId().');
}
if (scope && !(scope instanceof Array)) {
throw new Error('Scope must be an array of strings');
}
var headers = {};
headers['Content-Type'] = 'application/json';
refreshUrl += '?grant_type=refresh_token&refresh_token=' + this.getRefreshToken();
refreshUrl += '&client_id=' + clientId;
if (clientSecret) {
refreshUrl += '&client_secret=' + clientSecret;
}
if (scope) {
refreshUrl += '&scope=' + scope.join(' ');
}
var fetchOptions = {
method: 'POST'
};
fetchOptions.headers = headers;
return this.fetch(refreshUrl, fetchOptions).then(function (res) {
return parseBodyToType$2(res);
}).then(function (_ref3) {
var _ref4 = slicedToArray(_ref3, 2),
res = _ref4[0],
data = _ref4[1];
// maintaining existing API for error codes not equal to 200 range
if (!res.ok) {
// eslint-disable-next-line no-throw-literal
throw {
error: data,
response: res,
status: res.status
};
}
_this.setAccessToken(data.access_token);
_this.setAccessTokenExpiresAt(getTokenExpiresAt(data.expires_in));
});
}
/**
* Called when the authentication succeed
* @callback successCallback
* @param {string} access_token The application's access token
*/
/**
* Called when the authentication failed.
* @callback errorCallback
*/
/**
* An authentication process that works with cordova applications.
* @param {successCallback} successCallback
* @param {errorCallback} errorCallback
*/
}, {
key: 'authenticateWithCordova',
value: function authenticateWithCordova(successCallback, errorCallback) {
var redirectUrl = 'https://www.dropbox.com/1/oauth2/redirect_receiver';
var url = this.getAuthenticationUrl(redirectUrl);
var removed = false;
var browser = window.open(url, '_blank');
function onLoadError(event) {
if (event.code !== -999) {
// Workaround to fix wrong behavior on cordova-plugin-inappbrowser
// Try to avoid a browser crash on browser.close().
window.setTimeout(function () {
browser.close();
}, 10);
errorCallback();
}
}
function onLoadStop(event) {
var errorLabel = '&error=';
var errorIndex = event.url.indexOf(errorLabel);
if (errorIndex > -1) {
// Try to avoid a browser crash on browser.close().
window.setTimeout(function () {
browser.close();
}, 10);
errorCallback();
} else {
var tokenLabel = '#access_token=';
var tokenIndex = event.url.indexOf(tokenLabel);
var tokenTypeIndex = event.url.indexOf('&token_type=');
if (tokenIndex > -1) {
tokenIndex += tokenLabel.length;
// Try to avoid a browser crash on browser.close().
window.setTimeout(function () {
browser.close();
}, 10);
var accessToken = event.url.substring(tokenIndex, tokenTypeIndex);
successCallback(accessToken);
}
}
}
function onExit() {
if (removed) {
return;
}
browser.removeEventListener('loaderror', onLoadError);
browser.removeEventListener('loadstop', onLoadStop);
browser.removeEventListener('exit', onExit);
removed = true;
}
browser.addEventListener('loaderror', onLoadError);
browser.addEventListener('loadstop', onLoadStop);
browser.addEventListener('exit', onExit);
}
}, {
key: 'request',
value: function request(path, args, auth, host, style) {
var request = null;
switch (style) {
case RPC:
request = this.getRpcRequest();
break;
case DOWNLOAD:
request = this.getDownloadRequest();
break;
case UPLOAD:
request = this.getUploadRequest();
break;
default:
throw new Error('Invalid request style: ' + style);
}
var options = {
selectUser: this.selectUser,
selectAdmin: this.selectAdmin,
clientId: this.getClientId(),
clientSecret: this.getClientSecret(),
pathRoot: this.pathRoot
};
return request(path, args, auth, host, this, options);
}
}, {
key: 'setRpcRequest',
value: function setRpcRequest(newRpcRequest) {
this.rpcRequest = newRpcRequest;
}
}, {
key: 'getRpcRequest',
value: function getRpcRequest() {
if (this.rpcRequest === undefined) {
this.rpcRequest = rpcRequest(this.fetch);
}
return this.rpcRequest;
}
}, {
key: 'setDownloadRequest',
value: function setDownloadRequest(newDownloadRequest) {
this.downloadRequest = newDownloadRequest;
}
}, {
key: 'getDownloadRequest',
value: function getDownloadRequest() {
if (this.downloadRequest === undefined) {
this.downloadRequest = downloadRequest(this.fetch);
}
return this.downloadRequest;
}
}, {
key: 'setUploadRequest',
value: function setUploadRequest(newUploadRequest) {
this.uploadRequest = newUploadRequest;
}
}, {
key: 'getUploadRequest',
value: function getUploadRequest() {
if (this.uploadRequest === undefined) {
this.uploadRequest = uploadRequest(this.fetch);
}
return this.uploadRequest;
}
}]);
return DropboxBase;
}();
/**
* @class Dropbox
* @extends DropboxBase
* @classdesc The Dropbox SDK class that provides methods to read, write and
* create files or folders in a user's Dropbox.
* @arg {Object} options
* @arg {Function} [options.fetch] - fetch library for making requests.
* @arg {String} [options.accessToken] - An access token for making authenticated
* requests.
* @arg {String} [options.clientId] - The client id for your app. Used to create
* authentication URL.
* @arg {String} [options.selectUser] - Select user is only used by DropboxTeam.
* It specifies which user the team access token should be acting as.
* @arg {String} [options.pathRoot] - root pass to access other namespaces
* Use to access team folders for example
* @arg {String} [options.refreshToken] - A refresh token for retrieving access tokens
* @arg {Date} [options.AccessTokenExpiresAt] - Date of the current access token's
* expiration (if available)
*/
var Dropbox = function (_DropboxBase) {
inherits(Dropbox, _DropboxBase);
function Dropbox(options) {
classCallCheck(this, Dropbox);
var _this = possibleConstructorReturn(this, (Dropbox.__proto__ || Object.getPrototypeOf(Dropbox)).call(this, options));
Object.assign(_this, routes);
return _this;
}
createClass(Dropbox, [{
key: 'filesGetSharedLinkFile',
value: function filesGetSharedLinkFile(arg) {
return this.request('sharing/get_shared_link_file', arg, 'api', 'download');
}
}]);
return Dropbox;
}(DropboxBase);
var dropbox = /*#__PURE__*/Object.freeze({
__proto__: null,
Dropbox: Dropbox
});
// Auto-generated by Stone, do not modify.
var routes$1 = {};
/**
* List all device sessions of a team's member.
* @function DropboxTeam#teamDevicesListMemberDevices
* @arg {TeamListMemberDevicesArg} arg - The request parameters.
* @returns {Promise.<TeamListMemberDevicesResult, Error.<TeamListMemberDevicesError>>}
*/
routes$1.teamDevicesListMemberDevices = function (arg) {
return this.request('team/devices/list_member_devices', arg, 'team', 'api', 'rpc');
};
/**
* List all device sessions of a team. Permission : Team member file access.
* @function DropboxTeam#teamDevicesListMembersDevices
* @arg {TeamListMembersDevicesArg} arg - The request parameters.
* @returns {Promise.<TeamListMembersDevicesResult, Error.<TeamListMembersDevicesError>>}
*/
routes$1.teamDevicesListMembersDevices = function (arg) {
return this.request('team/devices/list_members_devices', arg, 'team', 'api', 'rpc');
};
/**
* List all device sessions of a team. Permission : Team member file access.
* @function DropboxTeam#teamDevicesListTeamDevices
* @deprecated
* @arg {TeamListTeamDevicesArg} arg - The request parameters.
* @returns {Promise.<TeamListTeamDevicesResult, Error.<TeamListTeamDevicesError>>}
*/
routes$1.teamDevicesListTeamDevices = function (arg) {
return this.request('team/devices/list_team_devices', arg, 'team', 'api', 'rpc');
};
/**
* Revoke a device session of a team's member.
* @function DropboxTeam#teamDevicesRevokeDeviceSession
* @arg {TeamRevokeDeviceSessionArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamRevokeDeviceSessionError>>}
*/
routes$1.teamDevicesRevokeDeviceSession = function (arg) {
return this.request('team/devices/revoke_device_session', arg, 'team', 'api', 'rpc');
};
/**
* Revoke a list of device sessions of team members.
* @function DropboxTeam#teamDevicesRevokeDeviceSessionBatch
* @arg {TeamRevokeDeviceSessionBatchArg} arg - The request parameters.
* @returns {Promise.<TeamRevokeDeviceSessionBatchResult, Error.<TeamRevokeDeviceSessionBatchError>>}
*/
routes$1.teamDevicesRevokeDeviceSessionBatch = function (arg) {
return this.request('team/devices/revoke_device_session_batch', arg, 'team', 'api', 'rpc');
};
/**
* Get the values for one or more featues. This route allows you to check your
* account's capability for what feature you can access or what value you have
* for certain features. Permission : Team information.
* @function DropboxTeam#teamFeaturesGetValues
* @arg {TeamFeaturesGetValuesBatchArg} arg - The request parameters.
* @returns {Promise.<TeamFeaturesGetValuesBatchResult, Error.<TeamFeaturesGetValuesBatchError>>}
*/
routes$1.teamFeaturesGetValues = function (arg) {
return this.request('team/features/get_values', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves information about a team.
* @function DropboxTeam#teamGetInfo
* @arg {void} arg - The request parameters.
* @returns {Promise.<TeamTeamGetInfoResult, Error.<void>>}
*/
routes$1.teamGetInfo = function (arg) {
return this.request('team/get_info', arg, 'team', 'api', 'rpc');
};
/**
* Creates a new, empty group, with a requested name. Permission : Team member
* management.
* @function DropboxTeam#teamGroupsCreate
* @arg {TeamGroupCreateArg} arg - The request parameters.
* @returns {Promise.<TeamGroupFullInfo, Error.<TeamGroupCreateError>>}
*/
routes$1.teamGroupsCreate = function (arg) {
return this.request('team/groups/create', arg, 'team', 'api', 'rpc');
};
/**
* Deletes a group. The group is deleted immediately. However the revoking of
* group-owned resources may take additional time. Use the groups/job_status/get
* to determine whether this process has completed. Permission : Team member
* management.
* @function DropboxTeam#teamGroupsDelete
* @arg {TeamGroupSelector} arg - The request parameters.
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<TeamGroupDeleteError>>}
*/
routes$1.teamGroupsDelete = function (arg) {
return this.request('team/groups/delete', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves information about one or more groups. Note that the optional field
* GroupFullInfo.members is not returned for system-managed groups. Permission :
* Team Information.
* @function DropboxTeam#teamGroupsGetInfo
* @arg {TeamGroupsSelector} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamGroupsGetInfoError>>}
*/
routes$1.teamGroupsGetInfo = function (arg) {
return this.request('team/groups/get_info', arg, 'team', 'api', 'rpc');
};
/**
* Once an async_job_id is returned from groups/delete, groups/members/add , or
* groups/members/remove use this method to poll the status of granting/revoking
* group members' access to group-owned resources. Permission : Team member
* management.
* @function DropboxTeam#teamGroupsJobStatusGet
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<AsyncPollEmptyResult, Error.<TeamGroupsPollError>>}
*/
routes$1.teamGroupsJobStatusGet = function (arg) {
return this.request('team/groups/job_status/get', arg, 'team', 'api', 'rpc');
};
/**
* Lists groups on a team. Permission : Team Information.
* @function DropboxTeam#teamGroupsList
* @arg {TeamGroupsListArg} arg - The request parameters.
* @returns {Promise.<TeamGroupsListResult, Error.<void>>}
*/
routes$1.teamGroupsList = function (arg) {
return this.request('team/groups/list', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from groups/list, use this to paginate
* through all groups. Permission : Team Information.
* @function DropboxTeam#teamGroupsListContinue
* @arg {TeamGroupsListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamGroupsListResult, Error.<TeamGroupsListContinueError>>}
*/
routes$1.teamGroupsListContinue = function (arg) {
return this.request('team/groups/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Adds members to a group. The members are added immediately. However the
* granting of group-owned resources may take additional time. Use the
* groups/job_status/get to determine whether this process has completed.
* Permission : Team member management.
* @function DropboxTeam#teamGroupsMembersAdd
* @arg {TeamGroupMembersAddArg} arg - The request parameters.
* @returns {Promise.<TeamGroupMembersChangeResult, Error.<TeamGroupMembersAddError>>}
*/
routes$1.teamGroupsMembersAdd = function (arg) {
return this.request('team/groups/members/add', arg, 'team', 'api', 'rpc');
};
/**
* Lists members of a group. Permission : Team Information.
* @function DropboxTeam#teamGroupsMembersList
* @arg {TeamGroupsMembersListArg} arg - The request parameters.
* @returns {Promise.<TeamGroupsMembersListResult, Error.<TeamGroupSelectorError>>}
*/
routes$1.teamGroupsMembersList = function (arg) {
return this.request('team/groups/members/list', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from groups/members/list, use this to
* paginate through all members of the group. Permission : Team information.
* @function DropboxTeam#teamGroupsMembersListContinue
* @arg {TeamGroupsMembersListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamGroupsMembersListResult, Error.<TeamGroupsMembersListContinueError>>}
*/
routes$1.teamGroupsMembersListContinue = function (arg) {
return this.request('team/groups/members/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Removes members from a group. The members are removed immediately. However
* the revoking of group-owned resources may take additional time. Use the
* groups/job_status/get to determine whether this process has completed. This
* method permits removing the only owner of a group, even in cases where this
* is not possible via the web client. Permission : Team member management.
* @function DropboxTeam#teamGroupsMembersRemove
* @arg {TeamGroupMembersRemoveArg} arg - The request parameters.
* @returns {Promise.<TeamGroupMembersChangeResult, Error.<TeamGroupMembersRemoveError>>}
*/
routes$1.teamGroupsMembersRemove = function (arg) {
return this.request('team/groups/members/remove', arg, 'team', 'api', 'rpc');
};
/**
* Sets a member's access type in a group. Permission : Team member management.
* @function DropboxTeam#teamGroupsMembersSetAccessType
* @arg {TeamGroupMembersSetAccessTypeArg} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamGroupMemberSetAccessTypeError>>}
*/
routes$1.teamGroupsMembersSetAccessType = function (arg) {
return this.request('team/groups/members/set_access_type', arg, 'team', 'api', 'rpc');
};
/**
* Updates a group's name and/or external ID. Permission : Team member
* management.
* @function DropboxTeam#teamGroupsUpdate
* @arg {TeamGroupUpdateArgs} arg - The request parameters.
* @returns {Promise.<TeamGroupFullInfo, Error.<TeamGroupUpdateError>>}
*/
routes$1.teamGroupsUpdate = function (arg) {
return this.request('team/groups/update', arg, 'team', 'api', 'rpc');
};
/**
* Creates new legal hold policy. Permission : Team member file access.
* @function DropboxTeam#teamLegalHoldsCreatePolicy
* @arg {TeamLegalHoldsPolicyCreateArg} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamLegalHoldsPolicyCreateError>>}
*/
routes$1.teamLegalHoldsCreatePolicy = function (arg) {
return this.request('team/legal_holds/create_policy', arg, 'team', 'api', 'rpc');
};
/**
* Gets a legal hold by Id. Permission : Team member file access.
* @function DropboxTeam#teamLegalHoldsGetPolicy
* @arg {TeamLegalHoldsGetPolicyArg} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamLegalHoldsGetPolicyError>>}
*/
routes$1.teamLegalHoldsGetPolicy = function (arg) {
return this.request('team/legal_holds/get_policy', arg, 'team', 'api', 'rpc');
};
/**
* @function DropboxTeam#teamLegalHoldsListHeldRevisions
* @arg {TeamLegalHoldsListHeldRevisionsArg} arg - The request parameters.
* @returns {Promise.<TeamLegalHoldsListHeldRevisionResult, Error.<TeamLegalHoldsListHeldRevisionsError>>}
*/
routes$1.teamLegalHoldsListHeldRevisions = function (arg) {
return this.request('team/legal_holds/list_held_revisions', arg, 'team', 'api', 'rpc');
};
/**
* @function DropboxTeam#teamLegalHoldsListHeldRevisionsContinue
* @arg {TeamLegalHoldsListHeldRevisionsContinueArg} arg - The request parameters.
* @returns {Promise.<TeamLegalHoldsListHeldRevisionResult, Error.<TeamLegalHoldsListHeldRevisionsError>>}
*/
routes$1.teamLegalHoldsListHeldRevisionsContinue = function (arg) {
return this.request('team/legal_holds/list_held_revisions_continue', arg, 'team', 'api', 'rpc');
};
/**
* Lists legal holds on a team. Permission : Team member file access.
* @function DropboxTeam#teamLegalHoldsListPolicies
* @arg {TeamLegalHoldsListPoliciesArg} arg - The request parameters.
* @returns {Promise.<TeamLegalHoldsListPoliciesResult, Error.<TeamLegalHoldsListPoliciesError>>}
*/
routes$1.teamLegalHoldsListPolicies = function (arg) {
return this.request('team/legal_holds/list_policies', arg, 'team', 'api', 'rpc');
};
/**
* Releases a legal hold by Id. Permission : Team member file access.
* @function DropboxTeam#teamLegalHoldsReleasePolicy
* @arg {TeamLegalHoldsPolicyReleaseArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamLegalHoldsPolicyReleaseError>>}
*/
routes$1.teamLegalHoldsReleasePolicy = function (arg) {
return this.request('team/legal_holds/release_policy', arg, 'team', 'api', 'rpc');
};
/**
* Updates a legal hold. Permission : Team member file access.
* @function DropboxTeam#teamLegalHoldsUpdatePolicy
* @arg {TeamLegalHoldsPolicyUpdateArg} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamLegalHoldsPolicyUpdateError>>}
*/
routes$1.teamLegalHoldsUpdatePolicy = function (arg) {
return this.request('team/legal_holds/update_policy', arg, 'team', 'api', 'rpc');
};
/**
* List all linked applications of the team member. Note, this endpoint does not
* list any team-linked applications.
* @function DropboxTeam#teamLinkedAppsListMemberLinkedApps
* @arg {TeamListMemberAppsArg} arg - The request parameters.
* @returns {Promise.<TeamListMemberAppsResult, Error.<TeamListMemberAppsError>>}
*/
routes$1.teamLinkedAppsListMemberLinkedApps = function (arg) {
return this.request('team/linked_apps/list_member_linked_apps', arg, 'team', 'api', 'rpc');
};
/**
* List all applications linked to the team members' accounts. Note, this
* endpoint does not list any team-linked applications.
* @function DropboxTeam#teamLinkedAppsListMembersLinkedApps
* @arg {TeamListMembersAppsArg} arg - The request parameters.
* @returns {Promise.<TeamListMembersAppsResult, Error.<TeamListMembersAppsError>>}
*/
routes$1.teamLinkedAppsListMembersLinkedApps = function (arg) {
return this.request('team/linked_apps/list_members_linked_apps', arg, 'team', 'api', 'rpc');
};
/**
* List all applications linked to the team members' accounts. Note, this
* endpoint doesn't list any team-linked applications.
* @function DropboxTeam#teamLinkedAppsListTeamLinkedApps
* @deprecated
* @arg {TeamListTeamAppsArg} arg - The request parameters.
* @returns {Promise.<TeamListTeamAppsResult, Error.<TeamListTeamAppsError>>}
*/
routes$1.teamLinkedAppsListTeamLinkedApps = function (arg) {
return this.request('team/linked_apps/list_team_linked_apps', arg, 'team', 'api', 'rpc');
};
/**
* Revoke a linked application of the team member.
* @function DropboxTeam#teamLinkedAppsRevokeLinkedApp
* @arg {TeamRevokeLinkedApiAppArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamRevokeLinkedAppError>>}
*/
routes$1.teamLinkedAppsRevokeLinkedApp = function (arg) {
return this.request('team/linked_apps/revoke_linked_app', arg, 'team', 'api', 'rpc');
};
/**
* Revoke a list of linked applications of the team members.
* @function DropboxTeam#teamLinkedAppsRevokeLinkedAppBatch
* @arg {TeamRevokeLinkedApiAppBatchArg} arg - The request parameters.
* @returns {Promise.<TeamRevokeLinkedAppBatchResult, Error.<TeamRevokeLinkedAppBatchError>>}
*/
routes$1.teamLinkedAppsRevokeLinkedAppBatch = function (arg) {
return this.request('team/linked_apps/revoke_linked_app_batch', arg, 'team', 'api', 'rpc');
};
/**
* Add users to member space limits excluded users list.
* @function DropboxTeam#teamMemberSpaceLimitsExcludedUsersAdd
* @arg {TeamExcludedUsersUpdateArg} arg - The request parameters.
* @returns {Promise.<TeamExcludedUsersUpdateResult, Error.<TeamExcludedUsersUpdateError>>}
*/
routes$1.teamMemberSpaceLimitsExcludedUsersAdd = function (arg) {
return this.request('team/member_space_limits/excluded_users/add', arg, 'team', 'api', 'rpc');
};
/**
* List member space limits excluded users.
* @function DropboxTeam#teamMemberSpaceLimitsExcludedUsersList
* @arg {TeamExcludedUsersListArg} arg - The request parameters.
* @returns {Promise.<TeamExcludedUsersListResult, Error.<TeamExcludedUsersListError>>}
*/
routes$1.teamMemberSpaceLimitsExcludedUsersList = function (arg) {
return this.request('team/member_space_limits/excluded_users/list', arg, 'team', 'api', 'rpc');
};
/**
* Continue listing member space limits excluded users.
* @function DropboxTeam#teamMemberSpaceLimitsExcludedUsersListContinue
* @arg {TeamExcludedUsersListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamExcludedUsersListResult, Error.<TeamExcludedUsersListContinueError>>}
*/
routes$1.teamMemberSpaceLimitsExcludedUsersListContinue = function (arg) {
return this.request('team/member_space_limits/excluded_users/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Remove users from member space limits excluded users list.
* @function DropboxTeam#teamMemberSpaceLimitsExcludedUsersRemove
* @arg {TeamExcludedUsersUpdateArg} arg - The request parameters.
* @returns {Promise.<TeamExcludedUsersUpdateResult, Error.<TeamExcludedUsersUpdateError>>}
*/
routes$1.teamMemberSpaceLimitsExcludedUsersRemove = function (arg) {
return this.request('team/member_space_limits/excluded_users/remove', arg, 'team', 'api', 'rpc');
};
/**
* Get users custom quota. Returns none as the custom quota if none was set. A
* maximum of 1000 members can be specified in a single call.
* @function DropboxTeam#teamMemberSpaceLimitsGetCustomQuota
* @arg {TeamCustomQuotaUsersArg} arg - The request parameters.
* @returns {Promise.<Array.<TeamCustomQuotaResult>, Error.<TeamCustomQuotaError>>}
*/
routes$1.teamMemberSpaceLimitsGetCustomQuota = function (arg) {
return this.request('team/member_space_limits/get_custom_quota', arg, 'team', 'api', 'rpc');
};
/**
* Remove users custom quota. A maximum of 1000 members can be specified in a
* single call.
* @function DropboxTeam#teamMemberSpaceLimitsRemoveCustomQuota
* @arg {TeamCustomQuotaUsersArg} arg - The request parameters.
* @returns {Promise.<Array.<TeamRemoveCustomQuotaResult>, Error.<TeamCustomQuotaError>>}
*/
routes$1.teamMemberSpaceLimitsRemoveCustomQuota = function (arg) {
return this.request('team/member_space_limits/remove_custom_quota', arg, 'team', 'api', 'rpc');
};
/**
* Set users custom quota. Custom quota has to be at least 15GB. A maximum of
* 1000 members can be specified in a single call.
* @function DropboxTeam#teamMemberSpaceLimitsSetCustomQuota
* @arg {TeamSetCustomQuotaArg} arg - The request parameters.
* @returns {Promise.<Array.<TeamCustomQuotaResult>, Error.<TeamSetCustomQuotaError>>}
*/
routes$1.teamMemberSpaceLimitsSetCustomQuota = function (arg) {
return this.request('team/member_space_limits/set_custom_quota', arg, 'team', 'api', 'rpc');
};
/**
* Adds members to a team. Permission : Team member management A maximum of 20
* members can be specified in a single call. If no Dropbox account exists with
* the email address specified, a new Dropbox account will be created with the
* given email address, and that account will be invited to the team. If a
* personal Dropbox account exists with the email address specified in the call,
* this call will create a placeholder Dropbox account for the user on the team
* and send an email inviting the user to migrate their existing personal
* account onto the team. Team member management apps are required to set an
* initial given_name and surname for a user to use in the team invitation and
* for 'Perform as team member' actions taken on the user before they become
* 'active'.
* @function DropboxTeam#teamMembersAdd
* @arg {TeamMembersAddArg} arg - The request parameters.
* @returns {Promise.<TeamMembersAddLaunch, Error.<void>>}
*/
routes$1.teamMembersAdd = function (arg) {
return this.request('team/members/add', arg, 'team', 'api', 'rpc');
};
/**
* Once an async_job_id is returned from members/add , use this to poll the
* status of the asynchronous request. Permission : Team member management.
* @function DropboxTeam#teamMembersAddJobStatusGet
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<TeamMembersAddJobStatus, Error.<AsyncPollError>>}
*/
routes$1.teamMembersAddJobStatusGet = function (arg) {
return this.request('team/members/add/job_status/get', arg, 'team', 'api', 'rpc');
};
/**
* Deletes a team member's profile photo. Permission : Team member management.
* @function DropboxTeam#teamMembersDeleteProfilePhoto
* @arg {TeamMembersDeleteProfilePhotoArg} arg - The request parameters.
* @returns {Promise.<TeamTeamMemberInfo, Error.<TeamMembersDeleteProfilePhotoError>>}
*/
routes$1.teamMembersDeleteProfilePhoto = function (arg) {
return this.request('team/members/delete_profile_photo', arg, 'team', 'api', 'rpc');
};
/**
* Returns information about multiple team members. Permission : Team
* information This endpoint will return MembersGetInfoItem.id_not_found, for
* IDs (or emails) that cannot be matched to a valid team member.
* @function DropboxTeam#teamMembersGetInfo
* @arg {TeamMembersGetInfoArgs} arg - The request parameters.
* @returns {Promise.<Object, Error.<TeamMembersGetInfoError>>}
*/
routes$1.teamMembersGetInfo = function (arg) {
return this.request('team/members/get_info', arg, 'team', 'api', 'rpc');
};
/**
* Lists members of a team. Permission : Team information.
* @function DropboxTeam#teamMembersList
* @arg {TeamMembersListArg} arg - The request parameters.
* @returns {Promise.<TeamMembersListResult, Error.<TeamMembersListError>>}
*/
routes$1.teamMembersList = function (arg) {
return this.request('team/members/list', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from members/list, use this to paginate
* through all team members. Permission : Team information.
* @function DropboxTeam#teamMembersListContinue
* @arg {TeamMembersListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamMembersListResult, Error.<TeamMembersListContinueError>>}
*/
routes$1.teamMembersListContinue = function (arg) {
return this.request('team/members/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Moves removed member's files to a different member. This endpoint initiates
* an asynchronous job. To obtain the final result of the job, the client should
* periodically poll members/move_former_member_files/job_status/check.
* Permission : Team member management.
* @function DropboxTeam#teamMembersMoveFormerMemberFiles
* @arg {TeamMembersDataTransferArg} arg - The request parameters.
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<TeamMembersTransferFormerMembersFilesError>>}
*/
routes$1.teamMembersMoveFormerMemberFiles = function (arg) {
return this.request('team/members/move_former_member_files', arg, 'team', 'api', 'rpc');
};
/**
* Once an async_job_id is returned from members/move_former_member_files , use
* this to poll the status of the asynchronous request. Permission : Team member
* management.
* @function DropboxTeam#teamMembersMoveFormerMemberFilesJobStatusCheck
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<AsyncPollEmptyResult, Error.<AsyncPollError>>}
*/
routes$1.teamMembersMoveFormerMemberFilesJobStatusCheck = function (arg) {
return this.request('team/members/move_former_member_files/job_status/check', arg, 'team', 'api', 'rpc');
};
/**
* Recover a deleted member. Permission : Team member management Exactly one of
* team_member_id, email, or external_id must be provided to identify the user
* account.
* @function DropboxTeam#teamMembersRecover
* @arg {TeamMembersRecoverArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamMembersRecoverError>>}
*/
routes$1.teamMembersRecover = function (arg) {
return this.request('team/members/recover', arg, 'team', 'api', 'rpc');
};
/**
* Removes a member from a team. Permission : Team member management Exactly one
* of team_member_id, email, or external_id must be provided to identify the
* user account. Accounts can be recovered via members/recover for a 7 day
* period or until the account has been permanently deleted or transferred to
* another account (whichever comes first). Calling members/add while a user is
* still recoverable on your team will return with
* MemberAddResult.user_already_on_team. Accounts can have their files
* transferred via the admin console for a limited time, based on the version
* history length associated with the team (180 days for most teams). This
* endpoint may initiate an asynchronous job. To obtain the final result of the
* job, the client should periodically poll members/remove/job_status/get.
* @function DropboxTeam#teamMembersRemove
* @arg {TeamMembersRemoveArg} arg - The request parameters.
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<TeamMembersRemoveError>>}
*/
routes$1.teamMembersRemove = function (arg) {
return this.request('team/members/remove', arg, 'team', 'api', 'rpc');
};
/**
* Once an async_job_id is returned from members/remove , use this to poll the
* status of the asynchronous request. Permission : Team member management.
* @function DropboxTeam#teamMembersRemoveJobStatusGet
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<AsyncPollEmptyResult, Error.<AsyncPollError>>}
*/
routes$1.teamMembersRemoveJobStatusGet = function (arg) {
return this.request('team/members/remove/job_status/get', arg, 'team', 'api', 'rpc');
};
/**
* Add secondary emails to users. Permission : Team member management. Emails
* that are on verified domains will be verified automatically. For each email
* address not on a verified domain a verification email will be sent.
* @function DropboxTeam#teamMembersSecondaryEmailsAdd
* @arg {TeamAddSecondaryEmailsArg} arg - The request parameters.
* @returns {Promise.<TeamAddSecondaryEmailsResult, Error.<TeamAddSecondaryEmailsError>>}
*/
routes$1.teamMembersSecondaryEmailsAdd = function (arg) {
return this.request('team/members/secondary_emails/add', arg, 'team', 'api', 'rpc');
};
/**
* Delete secondary emails from users Permission : Team member management. Users
* will be notified of deletions of verified secondary emails at both the
* secondary email and their primary email.
* @function DropboxTeam#teamMembersSecondaryEmailsDelete
* @arg {TeamDeleteSecondaryEmailsArg} arg - The request parameters.
* @returns {Promise.<TeamDeleteSecondaryEmailsResult, Error.<void>>}
*/
routes$1.teamMembersSecondaryEmailsDelete = function (arg) {
return this.request('team/members/secondary_emails/delete', arg, 'team', 'api', 'rpc');
};
/**
* Resend secondary email verification emails. Permission : Team member
* management.
* @function DropboxTeam#teamMembersSecondaryEmailsResendVerificationEmails
* @arg {TeamResendVerificationEmailArg} arg - The request parameters.
* @returns {Promise.<TeamResendVerificationEmailResult, Error.<void>>}
*/
routes$1.teamMembersSecondaryEmailsResendVerificationEmails = function (arg) {
return this.request('team/members/secondary_emails/resend_verification_emails', arg, 'team', 'api', 'rpc');
};
/**
* Sends welcome email to pending team member. Permission : Team member
* management Exactly one of team_member_id, email, or external_id must be
* provided to identify the user account. No-op if team member is not pending.
* @function DropboxTeam#teamMembersSendWelcomeEmail
* @arg {TeamUserSelectorArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamMembersSendWelcomeError>>}
*/
routes$1.teamMembersSendWelcomeEmail = function (arg) {
return this.request('team/members/send_welcome_email', arg, 'team', 'api', 'rpc');
};
/**
* Updates a team member's permissions. Permission : Team member management.
* @function DropboxTeam#teamMembersSetAdminPermissions
* @arg {TeamMembersSetPermissionsArg} arg - The request parameters.
* @returns {Promise.<TeamMembersSetPermissionsResult, Error.<TeamMembersSetPermissionsError>>}
*/
routes$1.teamMembersSetAdminPermissions = function (arg) {
return this.request('team/members/set_admin_permissions', arg, 'team', 'api', 'rpc');
};
/**
* Updates a team member's profile. Permission : Team member management.
* @function DropboxTeam#teamMembersSetProfile
* @arg {TeamMembersSetProfileArg} arg - The request parameters.
* @returns {Promise.<TeamTeamMemberInfo, Error.<TeamMembersSetProfileError>>}
*/
routes$1.teamMembersSetProfile = function (arg) {
return this.request('team/members/set_profile', arg, 'team', 'api', 'rpc');
};
/**
* Updates a team member's profile photo. Permission : Team member management.
* @function DropboxTeam#teamMembersSetProfilePhoto
* @arg {TeamMembersSetProfilePhotoArg} arg - The request parameters.
* @returns {Promise.<TeamTeamMemberInfo, Error.<TeamMembersSetProfilePhotoError>>}
*/
routes$1.teamMembersSetProfilePhoto = function (arg) {
return this.request('team/members/set_profile_photo', arg, 'team', 'api', 'rpc');
};
/**
* Suspend a member from a team. Permission : Team member management Exactly one
* of team_member_id, email, or external_id must be provided to identify the
* user account.
* @function DropboxTeam#teamMembersSuspend
* @arg {TeamMembersDeactivateArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamMembersSuspendError>>}
*/
routes$1.teamMembersSuspend = function (arg) {
return this.request('team/members/suspend', arg, 'team', 'api', 'rpc');
};
/**
* Unsuspend a member from a team. Permission : Team member management Exactly
* one of team_member_id, email, or external_id must be provided to identify the
* user account.
* @function DropboxTeam#teamMembersUnsuspend
* @arg {TeamMembersUnsuspendArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamMembersUnsuspendError>>}
*/
routes$1.teamMembersUnsuspend = function (arg) {
return this.request('team/members/unsuspend', arg, 'team', 'api', 'rpc');
};
/**
* Returns a list of all team-accessible namespaces. This list includes team
* folders, shared folders containing team members, team members' home
* namespaces, and team members' app folders. Home namespaces and app folders
* are always owned by this team or members of the team, but shared folders may
* be owned by other users or other teams. Duplicates may occur in the list.
* @function DropboxTeam#teamNamespacesList
* @arg {TeamTeamNamespacesListArg} arg - The request parameters.
* @returns {Promise.<TeamTeamNamespacesListResult, Error.<TeamTeamNamespacesListError>>}
*/
routes$1.teamNamespacesList = function (arg) {
return this.request('team/namespaces/list', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from namespaces/list, use this to paginate
* through all team-accessible namespaces. Duplicates may occur in the list.
* @function DropboxTeam#teamNamespacesListContinue
* @arg {TeamTeamNamespacesListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamTeamNamespacesListResult, Error.<TeamTeamNamespacesListContinueError>>}
*/
routes$1.teamNamespacesListContinue = function (arg) {
return this.request('team/namespaces/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Permission : Team member file access.
* @function DropboxTeam#teamPropertiesTemplateAdd
* @deprecated
* @arg {FilePropertiesAddTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesAddTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes$1.teamPropertiesTemplateAdd = function (arg) {
return this.request('team/properties/template/add', arg, 'team', 'api', 'rpc');
};
/**
* Permission : Team member file access.
* @function DropboxTeam#teamPropertiesTemplateGet
* @deprecated
* @arg {FilePropertiesGetTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesGetTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes$1.teamPropertiesTemplateGet = function (arg) {
return this.request('team/properties/template/get', arg, 'team', 'api', 'rpc');
};
/**
* Permission : Team member file access.
* @function DropboxTeam#teamPropertiesTemplateList
* @deprecated
* @arg {void} arg - The request parameters.
* @returns {Promise.<FilePropertiesListTemplateResult, Error.<FilePropertiesTemplateError>>}
*/
routes$1.teamPropertiesTemplateList = function (arg) {
return this.request('team/properties/template/list', arg, 'team', 'api', 'rpc');
};
/**
* Permission : Team member file access.
* @function DropboxTeam#teamPropertiesTemplateUpdate
* @deprecated
* @arg {FilePropertiesUpdateTemplateArg} arg - The request parameters.
* @returns {Promise.<FilePropertiesUpdateTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
*/
routes$1.teamPropertiesTemplateUpdate = function (arg) {
return this.request('team/properties/template/update', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves reporting data about a team's user activity.
* @function DropboxTeam#teamReportsGetActivity
* @arg {TeamDateRange} arg - The request parameters.
* @returns {Promise.<TeamGetActivityReport, Error.<TeamDateRangeError>>}
*/
routes$1.teamReportsGetActivity = function (arg) {
return this.request('team/reports/get_activity', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves reporting data about a team's linked devices.
* @function DropboxTeam#teamReportsGetDevices
* @arg {TeamDateRange} arg - The request parameters.
* @returns {Promise.<TeamGetDevicesReport, Error.<TeamDateRangeError>>}
*/
routes$1.teamReportsGetDevices = function (arg) {
return this.request('team/reports/get_devices', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves reporting data about a team's membership.
* @function DropboxTeam#teamReportsGetMembership
* @arg {TeamDateRange} arg - The request parameters.
* @returns {Promise.<TeamGetMembershipReport, Error.<TeamDateRangeError>>}
*/
routes$1.teamReportsGetMembership = function (arg) {
return this.request('team/reports/get_membership', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves reporting data about a team's storage usage.
* @function DropboxTeam#teamReportsGetStorage
* @arg {TeamDateRange} arg - The request parameters.
* @returns {Promise.<TeamGetStorageReport, Error.<TeamDateRangeError>>}
*/
routes$1.teamReportsGetStorage = function (arg) {
return this.request('team/reports/get_storage', arg, 'team', 'api', 'rpc');
};
/**
* Sets an archived team folder's status to active. Permission : Team member
* file access.
* @function DropboxTeam#teamTeamFolderActivate
* @arg {TeamTeamFolderIdArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderActivateError>>}
*/
routes$1.teamTeamFolderActivate = function (arg) {
return this.request('team/team_folder/activate', arg, 'team', 'api', 'rpc');
};
/**
* Sets an active team folder's status to archived and removes all folder and
* file members. Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderArchive
* @arg {TeamTeamFolderArchiveArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderArchiveLaunch, Error.<TeamTeamFolderArchiveError>>}
*/
routes$1.teamTeamFolderArchive = function (arg) {
return this.request('team/team_folder/archive', arg, 'team', 'api', 'rpc');
};
/**
* Returns the status of an asynchronous job for archiving a team folder.
* Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderArchiveCheck
* @arg {AsyncPollArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderArchiveJobStatus, Error.<AsyncPollError>>}
*/
routes$1.teamTeamFolderArchiveCheck = function (arg) {
return this.request('team/team_folder/archive/check', arg, 'team', 'api', 'rpc');
};
/**
* Creates a new, active, team folder with no members. Permission : Team member
* file access.
* @function DropboxTeam#teamTeamFolderCreate
* @arg {TeamTeamFolderCreateArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderCreateError>>}
*/
routes$1.teamTeamFolderCreate = function (arg) {
return this.request('team/team_folder/create', arg, 'team', 'api', 'rpc');
};
/**
* Retrieves metadata for team folders. Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderGetInfo
* @arg {TeamTeamFolderIdListArg} arg - The request parameters.
* @returns {Promise.<Array.<TeamTeamFolderGetInfoItem>, Error.<void>>}
*/
routes$1.teamTeamFolderGetInfo = function (arg) {
return this.request('team/team_folder/get_info', arg, 'team', 'api', 'rpc');
};
/**
* Lists all team folders. Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderList
* @arg {TeamTeamFolderListArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderListResult, Error.<TeamTeamFolderListError>>}
*/
routes$1.teamTeamFolderList = function (arg) {
return this.request('team/team_folder/list', arg, 'team', 'api', 'rpc');
};
/**
* Once a cursor has been retrieved from team_folder/list, use this to paginate
* through all team folders. Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderListContinue
* @arg {TeamTeamFolderListContinueArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderListResult, Error.<TeamTeamFolderListContinueError>>}
*/
routes$1.teamTeamFolderListContinue = function (arg) {
return this.request('team/team_folder/list/continue', arg, 'team', 'api', 'rpc');
};
/**
* Permanently deletes an archived team folder. Permission : Team member file
* access.
* @function DropboxTeam#teamTeamFolderPermanentlyDelete
* @arg {TeamTeamFolderIdArg} arg - The request parameters.
* @returns {Promise.<void, Error.<TeamTeamFolderPermanentlyDeleteError>>}
*/
routes$1.teamTeamFolderPermanentlyDelete = function (arg) {
return this.request('team/team_folder/permanently_delete', arg, 'team', 'api', 'rpc');
};
/**
* Changes an active team folder's name. Permission : Team member file access.
* @function DropboxTeam#teamTeamFolderRename
* @arg {TeamTeamFolderRenameArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderRenameError>>}
*/
routes$1.teamTeamFolderRename = function (arg) {
return this.request('team/team_folder/rename', arg, 'team', 'api', 'rpc');
};
/**
* Updates the sync settings on a team folder or its contents. Use of this
* endpoint requires that the team has team selective sync enabled.
* @function DropboxTeam#teamTeamFolderUpdateSyncSettings
* @arg {TeamTeamFolderUpdateSyncSettingsArg} arg - The request parameters.
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderUpdateSyncSettingsError>>}
*/
routes$1.teamTeamFolderUpdateSyncSettings = function (arg) {
return this.request('team/team_folder/update_sync_settings', arg, 'team', 'api', 'rpc');
};
/**
* Returns the member profile of the admin who generated the team access token
* used to make the call.
* @function DropboxTeam#teamTokenGetAuthenticatedAdmin
* @arg {void} arg - The request parameters.
* @returns {Promise.<TeamTokenGetAuthenticatedAdminResult, Error.<TeamTokenGetAuthenticatedAdminError>>}
*/
routes$1.teamTokenGetAuthenticatedAdmin = function (arg) {
return this.request('team/token/get_authenticated_admin', arg, 'team', 'api', 'rpc');
};
/**
* @class DropboxTeam
* @extends DropboxBase
* @classdesc The Dropbox SDK class that provides access to team endpoints.
* @arg {Object} options
* @arg {String} [options.accessToken] - An access token for making authenticated
* requests.
* @arg {String} [options.clientId] - The client id for your app. Used to create
* authentication URL.
*/
var DropboxTeam = function (_DropboxBase) {
inherits(DropboxTeam, _DropboxBase);
function DropboxTeam(options) {
classCallCheck(this, DropboxTeam);
var _this = possibleConstructorReturn(this, (DropboxTeam.__proto__ || Object.getPrototypeOf(DropboxTeam)).call(this, options));
Object.assign(_this, routes$1);
return _this;
}
/**
* Returns an instance of Dropbox that can make calls to user api endpoints on
* behalf of the passed user id, using the team access token.
* @arg {String} userId - The user id to use the Dropbox class as
* @returns {Dropbox} An instance of Dropbox used to make calls to user api
* endpoints
*/
createClass(DropboxTeam, [{
key: 'actAsUser',
value: function actAsUser(userId) {
return new Dropbox({
accessToken: this.accessToken,
clientId: this.clientId,
selectUser: userId
});
}
}]);
return DropboxTeam;
}(DropboxBase);
var dropboxTeam = /*#__PURE__*/Object.freeze({
__proto__: null,
DropboxTeam: DropboxTeam
});
var dropbox$1 = ( dropbox && undefined ) || dropbox;
var dropboxTeam$1 = ( dropboxTeam && undefined ) || dropboxTeam;
var src = {
Dropbox: dropbox$1.Dropbox,
DropboxTeam: dropboxTeam$1.DropboxTeam
};
var src_1 = src.Dropbox;
var src_2 = src.DropboxTeam;
exports.Dropbox = src_1;
exports.DropboxTeam = src_2;
exports.default = src;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=Dropbox-sdk.js.map
|
cdnjs/cdnjs
|
ajax/libs/dropbox.js/5.1.0/Dropbox-sdk.js
|
JavaScript
|
mit
| 236,211
|
/*jshint eqeqeq:false, eqnull:true, devel:true */
/*global jQuery, define */
(function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([
"jquery",
"./grid.base",
"./grid.common"
], factory );
} else {
// Browser globals
factory( jQuery );
}
}(function( $ ) {
"use strict";
//module begin
var rp_ge = {};
$.jgrid.extend({
editGridRow : function(rowid, p){
var regional = $.jgrid.getRegional(this[0], 'edit'),
currstyle = this[0].p.styleUI,
styles = $.jgrid.styleUI[currstyle].formedit,
commonstyle = $.jgrid.styleUI[currstyle].common;
p = $.extend(true, {
top : 0,
left: 0,
width: '500',
datawidth: 'auto',
height: 'auto',
dataheight: 'auto',
modal: false,
overlay : 30,
drag: true,
resize: true,
url: null,
mtype : "POST",
clearAfterAdd :true,
closeAfterEdit : false,
reloadAfterSubmit : true,
onInitializeForm: null,
beforeInitData: null,
beforeShowForm: null,
afterShowForm: null,
beforeSubmit: null,
afterSubmit: null,
onclickSubmit: null,
afterComplete: null,
onclickPgButtons : null,
afterclickPgButtons: null,
editData : {},
recreateForm : false,
jqModal : true,
closeOnEscape : false,
addedrow : "first",
topinfo : '',
bottominfo: '',
saveicon : [],
closeicon : [],
savekey: [false,13],
navkeys: [false,38,40],
checkOnSubmit : false,
checkOnUpdate : false,
processing : false,
onClose : null,
ajaxEditOptions : {},
serializeEditData : null,
viewPagerButtons : true,
overlayClass : commonstyle.overlay,
removemodal : true,
form: 'edit',
template : null,
focusField : true,
editselected : false,
html5Check : false,
buttons : []
}, regional, p || {});
rp_ge[$(this)[0].p.id] = p;
return this.each(function(){
var $t = this;
if (!$t.grid || !rowid) {return;}
$t.p.savedData = {};
var gID = $t.p.id,
frmgr = "FrmGrid_"+gID, frmtborg = "TblGrid_"+gID, frmtb = "#"+$.jgrid.jqID(frmtborg), frmtb2,
IDs = {themodal:'editmod'+gID,modalhead:'edithd'+gID,modalcontent:'editcnt'+gID, scrollelm : frmgr},
showFrm = true, maxCols = 1, maxRows=0, postdata, diff, frmoper,
templ = typeof rp_ge[$t.p.id].template === "string" && rp_ge[$t.p.id].template.length > 0,
errors =$.jgrid.getRegional(this, 'errors');
rp_ge[$t.p.id].styleUI = $t.p.styleUI || 'jQueryUI';
if($.jgrid.isMobile()) {
rp_ge[$t.p.id].resize = false;
}
if (rowid === "new") {
rowid = "_empty";
frmoper = "add";
p.caption=rp_ge[$t.p.id].addCaption;
} else {
p.caption=rp_ge[$t.p.id].editCaption;
frmoper = "edit";
}
if(!p.recreateForm) {
if( $($t).data("formProp") ) {
$.extend(rp_ge[$(this)[0].p.id], $($t).data("formProp"));
}
}
var closeovrl = true;
if(p.checkOnUpdate && p.jqModal && !p.modal) {
closeovrl = false;
}
function getFormData(){
var a2 ={}, i;
$(frmtb).find(".FormElement").each(function() {
var celm = $(".customelement", this);
if (celm.length) {
var elem = celm[0], nm = $(elem).attr('name');
$.each($t.p.colModel, function(){
if(this.name === nm && this.editoptions && $.jgrid.isFunction(this.editoptions.custom_value)) {
try {
postdata[nm] = this.editoptions.custom_value.call($t, $("#"+$.jgrid.jqID(nm),frmtb),'get');
if (postdata[nm] === undefined) {throw "e1";}
} catch (e) {
if (e==="e1") {$.jgrid.info_dialog(errors.errcap,"function 'custom_value' "+rp_ge[$(this)[0]].p.msg.novalue,rp_ge[$(this)[0]].p.bClose, {styleUI : rp_ge[$(this)[0]].p.styleUI });}
else {$.jgrid.info_dialog(errors.errcap,e.message,rp_ge[$(this)[0]].p.bClose, {styleUI : rp_ge[$(this)[0]].p.styleUI });}
}
return true;
}
});
} else {
switch ($(this).get(0).type) {
case "checkbox":
if($(this).is(":checked")) {
postdata[this.name]= $(this).val();
} else {
var ofv = $(this).attr("offval");
postdata[this.name]= ofv;
}
break;
case "select-one":
postdata[this.name]= $(this).val();
break;
case "select-multiple":
postdata[this.name]= $(this).val();
postdata[this.name] = postdata[this.name] ? postdata[this.name].join(",") : "";
break;
case "radio" :
if(a2.hasOwnProperty(this.name)) {
return true;
} else {
a2[this.name] = ($(this).attr("offval") === undefined) ? "off" : $(this).attr("offval");
}
break;
default:
postdata[this.name] = $(this).val();
}
if($t.p.autoencode) {
postdata[this.name] = $.jgrid.htmlEncode(postdata[this.name]);
}
}
});
for(i in a2 ) {
if( a2.hasOwnProperty(i)) {
var val = $('input[name="'+i+'"]:checked',frmtb).val();
postdata[i] = (val !== undefined) ? val : a2[i];
if($t.p.autoencode) {
postdata[i] = $.jgrid.htmlEncode(postdata[i]);
}
}
}
return true;
}
function createData(rowid,obj,tb,maxcols){
var nm, hc,trdata, cnt=0,tmp, dc,elc, retpos=[], ind=false,
tdtmpl = "<td class='CaptionTD'></td><td class='DataTD'></td>", tmpl="", i, ffld; //*2
for (i =1; i<=maxcols;i++) {
tmpl += tdtmpl;
}
if(rowid !== '_empty') {
ind = $(obj).jqGrid("getInd",rowid);
}
$(obj.p.colModel).each( function(i) {
nm = this.name;
// hidden fields are included in the form
if(this.editrules && this.editrules.edithidden === true) {
hc = false;
} else {
hc = this.hidden === true ? true : false;
}
dc = hc ? "style='display:none'" : "";
if ( nm !== 'cb' && nm !== 'subgrid' && this.editable===true && nm !== 'rn') {
if(ind === false) {
tmp = "";
} else {
if(nm === obj.p.ExpandColumn && obj.p.treeGrid === true) {
tmp = $("td[role='gridcell']",obj.rows[ind]).eq( i ).text();
} else {
try {
tmp = $.unformat.call(obj, $("td[role='gridcell']",obj.rows[ind]).eq( i ),{rowId:rowid, colModel:this},i);
} catch (_) {
tmp = (this.edittype && this.edittype === "textarea") ? $("td[role='gridcell']",obj.rows[ind]).eq( i ).text() : $("td[role='gridcell']",obj.rows[ind]).eq( i ).html();
}
if(!tmp || tmp === " " || tmp === " " || (tmp.length===1 && tmp.charCodeAt(0)===160) ) {tmp='';}
}
}
var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm, rowId: rowid, oper:'edit', module : 'form', checkUpdate : rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate}),
frmopt = $.extend({}, {elmprefix:'',elmsuffix:'',rowabove:false,rowcontent:''}, this.formoptions || {}),
rp = parseInt(frmopt.rowpos,10) || cnt+1,
cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
if(rowid === "_empty" && opt.defaultValue ) {
tmp = $.jgrid.isFunction(opt.defaultValue) ? opt.defaultValue.call($t) : opt.defaultValue;
}
if(!this.edittype) {
this.edittype = "text";
}
if($t.p.autoencode) {
tmp = $.jgrid.htmlDecode(tmp);
}
elc = $.jgrid.createEl.call($t,this.edittype,opt,tmp,false,$.extend({},$.jgrid.ajaxOptions,obj.p.ajaxSelectOptions || {}));
//if(tmp === "" && this.edittype == "checkbox") {tmp = $(elc).attr("offval");}
//if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
if(this.edittype === "select") {
tmp = $(elc).val();
if($(elc).get(0).type === 'select-multiple' && tmp) {
tmp = tmp.join(",");
}
}
if(this.edittype === 'checkbox') {
if($(elc).is(":checked")) {
tmp= $(elc).val();
} else {
tmp = $(elc).attr("offval");
}
}
$(elc).addClass("FormElement");
if( $.inArray(this.edittype,
['text','textarea','password','select',
'color', 'date', 'datetime', 'datetime-local','email','month',
'number','range', 'search', 'tel', 'time', 'url','week'] ) > -1) {
$(elc).addClass( styles.inputClass );
}
ffld = true;
if(templ) {
var ftmplfld = $(frm).find("#"+nm);
if(ftmplfld.length){
ftmplfld.replaceWith( elc );
} else {
ffld = false;
}
} else {
//--------------------
trdata = $(tb).find("tr[rowpos="+rp+"]");
if(frmopt.rowabove) {
var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
$(tb).append(newdata);
newdata[0].rp = rp;
}
if ( trdata.length===0 ) {
if(maxcols > 1) {
trdata = $("<tr rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","tr_"+nm);
} else {
trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","tr_"+nm);
}
$(trdata).append(tmpl);
$(tb).append(trdata);
trdata[0].rp = rp;
}
$("td",trdata[0]).eq( cp-2 ).html("<label for='"+nm+"'>"+ (frmopt.label === undefined ? obj.p.colNames[i]: frmopt.label) + "</label>");
$("td",trdata[0]).eq( cp-1 ).append(frmopt.elmprefix).append(elc).append(frmopt.elmsuffix);
if( maxcols > 1 && hc) {
$("td",trdata[0]).eq( cp-2 ).hide();
$("td",trdata[0]).eq( cp-1 ).hide();
}
//-------------------------
}
if( (rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) && ffld) {
$t.p.savedData[nm] = tmp;
}
if(this.edittype==='custom' && $.jgrid.isFunction(opt.custom_value) ) {
opt.custom_value.call($t, $("#"+nm, frmgr),'set',tmp);
}
$.jgrid.bindEv.call($t, elc, opt);
retpos[cnt] = i;
cnt++;
}
});
if( cnt > 0) {
var idrow;
if(templ) {
idrow = "<div class='FormData' style='display:none'><input class='FormElement' id='id_g' type='text' name='"+obj.p.id+"_id' value='"+rowid+"'/>";
$(frm).append(idrow);
} else {
idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+obj.p.id+"_id' value='"+rowid+"'/></td></tr>");
idrow[0].rp = cnt+999;
$(tb).append(idrow);
}
//$(tb).append(idrow);
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {
$t.p.savedData[obj.p.id+"_id"] = rowid;
}
}
return retpos;
}
function fillData(rowid,obj,fmid){
var nm,cnt=0,tmp, fld,opt,vl,vlc;
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {
$t.p.savedData = {};
$t.p.savedData[obj.p.id+"_id"]=rowid;
}
var cm = obj.p.colModel;
if(rowid === '_empty') {
$(cm).each(function(){
nm = this.name;
opt = $.extend({}, this.editoptions || {} );
fld = $("#"+$.jgrid.jqID(nm),fmid);
if(fld && fld.length && fld[0] !== null) {
vl = "";
if(this.edittype === 'custom' && $.jgrid.isFunction(opt.custom_value)) {
opt.custom_value.call($t, $("#"+nm,fmid),'set',vl);
} else if(opt.defaultValue ) {
vl = $.jgrid.isFunction(opt.defaultValue) ? opt.defaultValue.call($t) : opt.defaultValue;
if(fld[0].type==='checkbox') {
vlc = vl.toLowerCase();
if(vlc.search(/(false|f|0|no|n|off|undefined)/i)<0 && vlc!=="") {
fld[0].checked = true;
fld[0].defaultChecked = true;
fld[0].value = vl;
} else {
fld[0].checked = false;
fld[0].defaultChecked = false;
}
} else {fld.val(vl);}
} else {
if( fld[0].type==='checkbox' ) {
fld[0].checked = false;
fld[0].defaultChecked = false;
vl = $(fld).attr("offval");
} else if (fld[0].type && fld[0].type.substr(0,6)==='select') {
fld[0].selectedIndex = 0;
} else {
fld.val(vl);
}
}
if(rp_ge[$t.p.id].checkOnSubmit===true || rp_ge[$t.p.id].checkOnUpdate) {
$t.p.savedData[nm] = vl;
}
}
});
$("#id_g",fmid).val(rowid);
return;
}
var tre = $(obj).jqGrid("getInd",rowid,true);
if(!tre) {return;}
$('td[role="gridcell"]',tre).each( function(i) {
nm = cm[i].name;
// hidden fields are included in the form
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && cm[i].editable===true) {
if(nm === obj.p.ExpandColumn && obj.p.treeGrid === true) {
tmp = $(this).text();
} else {
try {
tmp = $.unformat.call(obj, $(this),{rowId:rowid, colModel:cm[i]},i);
} catch (_) {
tmp = cm[i].edittype==="textarea" ? $(this).text() : $(this).html();
}
}
if($t.p.autoencode) {tmp = $.jgrid.htmlDecode(tmp);}
if(rp_ge[$t.p.id].checkOnSubmit===true || rp_ge[$t.p.id].checkOnUpdate) {
$t.p.savedData[nm] = tmp;
}
nm = $.jgrid.jqID(nm);
switch (cm[i].edittype) {
case "select":
var opv = tmp.split(",");
opv = $.map(opv,function(n){return $.jgrid.trim(n);});
$("#"+nm+" option",fmid).each(function(){
if (!cm[i].editoptions.multiple && ($.jgrid.trim(tmp) === $.jgrid.trim($(this).text()) || opv[0] === $.jgrid.trim($(this).text()) || opv[0] === $.jgrid.trim($(this).val())) ){
this.selected= true;
} else if (cm[i].editoptions.multiple){
if( $.inArray($.jgrid.trim($(this).text()), opv ) > -1 || $.inArray($.jgrid.trim($(this).val()), opv ) > -1 ){
this.selected = true;
}else{
this.selected = false;
}
} else {
this.selected = false;
}
});
if(rp_ge[$t.p.id].checkOnSubmit===true || rp_ge[$t.p.id].checkOnUpdate) {
tmp = $("#"+nm,fmid).val();
if(cm[i].editoptions.multiple) {
tmp = tmp.join(",");
}
$t.p.savedData[nm] = tmp;
}
break;
case "checkbox":
tmp = String(tmp);
if(cm[i].editoptions && cm[i].editoptions.value) {
var cb = cm[i].editoptions.value.split(":");
if(cb[0] === tmp) {
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']({"checked":true, "defaultChecked" : true});
} else {
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']({"checked":false, "defaultChecked" : false});
}
} else {
tmp = tmp.toLowerCase();
if(tmp.search(/(false|f|0|no|n|off|undefined)/i)<0 && tmp!=="") {
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']("checked",true);
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']("defaultChecked",true); //ie
} else {
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']("checked", false);
$("#"+nm, fmid)[$t.p.useProp ? 'prop': 'attr']("defaultChecked", false); //ie
}
}
if(rp_ge[$t.p.id].checkOnSubmit===true || rp_ge[$t.p.id].checkOnUpdate) {
if($("#"+nm, fmid).is(":checked")) {
tmp = $("#"+nm, fmid).val();
} else {
tmp = $("#"+nm, fmid).attr("offval");
}
$t.p.savedData[nm] = tmp;
}
break;
case 'custom' :
try {
if(cm[i].editoptions && $.jgrid.isFunction(cm[i].editoptions.custom_value)) {
cm[i].editoptions.custom_value.call($t, $("#"+nm, fmid),'set',tmp);
} else {throw "e1";}
} catch (e) {
if (e==="e1") {$.jgrid.info_dialog(errors.errcap,"function 'custom_value' "+rp_ge[$(this)[0]].p.msg.nodefined,$.rp_ge[$(this)[0]].p.bClose, {styleUI : rp_ge[$(this)[0]].p.styleUI });}
else {$.jgrid.info_dialog(errors.errcap,e.message,$.rp_ge[$(this)[0]].p.bClose, {styleUI : rp_ge[$(this)[0]].p.styleUI });}
}
break;
default :
if(tmp === " " || tmp === " " || (tmp.length===1 && tmp.charCodeAt(0)===160) ) {tmp='';}
$("#"+nm,fmid).val(tmp);
}
cnt++;
}
});
if(cnt>0) {
$("#id_g",frmtb).val(rowid);
if( rp_ge[$t.p.id].checkOnSubmit===true || rp_ge[$t.p.id].checkOnUpdate ) {
$t.p.savedData[obj.p.id+"_id"] = rowid;
}
}
}
function setNulls() {
$.each($t.p.colModel, function(i,n){
if(n.editoptions && n.editoptions.NullIfEmpty === true) {
if(postdata.hasOwnProperty(n.name) && postdata[n.name] === "") {
postdata[n.name] = 'null';
}
}
});
}
function postIt() {
var copydata, ret=[true,"",""], onCS = {}, opers = $t.p.prmNames, idname, oper, key, selr, i, url;
var retvals = $($t).triggerHandler("jqGridAddEditBeforeCheckValues", [postdata, $(frmgr), frmoper]);
if(retvals && typeof retvals === 'object') {postdata = retvals;}
if($.jgrid.isFunction(rp_ge[$t.p.id].beforeCheckValues)) {
retvals = rp_ge[$t.p.id].beforeCheckValues.call($t, postdata, $(frmgr),frmoper);
if(retvals && typeof retvals === 'object') {postdata = retvals;}
}
if(rp_ge[$t.p.id].html5Check) {
if( !$.jgrid.validateForm(frm[0]) ) {
return false;
}
}
for( key in postdata ){
if(postdata.hasOwnProperty(key)) {
ret = $.jgrid.checkValues.call($t,postdata[key],key);
if(ret[0] === false) {break;}
}
}
setNulls();
if(ret[0]) {
onCS = $($t).triggerHandler("jqGridAddEditClickSubmit", [rp_ge[$t.p.id], postdata, frmoper]);
if( onCS === undefined && $.jgrid.isFunction( rp_ge[$t.p.id].onclickSubmit)) {
onCS = rp_ge[$t.p.id].onclickSubmit.call($t, rp_ge[$t.p.id], postdata, frmoper) || {};
}
ret = $($t).triggerHandler("jqGridAddEditBeforeSubmit", [postdata, $(frmgr), frmoper]);
if(ret === undefined) {
ret = [true,"",""];
}
if( ret[0] && $.jgrid.isFunction(rp_ge[$t.p.id].beforeSubmit)) {
ret = rp_ge[$t.p.id].beforeSubmit.call($t,postdata,$(frmgr), frmoper);
}
}
if(ret[0] && !rp_ge[$t.p.id].processing) {
rp_ge[$t.p.id].processing = true;
$("#sData", frmtb+"_2").addClass( commonstyle.active );
url = rp_ge[$t.p.id].url || $($t).jqGrid('getGridParam','editurl');
oper = opers.oper;
idname = url === 'clientArray' ? $t.p.keyName : opers.id;
// we add to pos data array the action - the name is oper
postdata[oper] = ($.jgrid.trim(postdata[$t.p.id+"_id"]) === "_empty") ? opers.addoper : opers.editoper;
if(postdata[oper] !== opers.addoper) {
postdata[idname] = postdata[$t.p.id+"_id"];
} else {
// check to see if we have allredy this field in the form and if yes lieve it
if( postdata[idname] === undefined ) {postdata[idname] = postdata[$t.p.id+"_id"];}
}
delete postdata[$t.p.id+"_id"];
postdata = $.extend(postdata,rp_ge[$t.p.id].editData,onCS);
if($t.p.treeGrid === true) {
if(postdata[oper] === opers.addoper) {
selr = $($t).jqGrid("getGridParam", 'selrow');
var tr_par_id = $t.p.treeGridModel === 'adjacency' ? $t.p.treeReader.parent_id_field : 'parent_id';
postdata[tr_par_id] = selr;
}
for(i in $t.p.treeReader){
if($t.p.treeReader.hasOwnProperty(i)) {
var itm = $t.p.treeReader[i];
if(postdata.hasOwnProperty(itm)) {
if(postdata[oper] === opers.addoper && i === 'parent_id_field') {continue;}
delete postdata[itm];
}
}
}
}
postdata[idname] = $.jgrid.stripPref($t.p.idPrefix, postdata[idname]);
var ajaxOptions = $.extend({
url: url,
type: rp_ge[$t.p.id].mtype,
data: $.jgrid.isFunction(rp_ge[$t.p.id].serializeEditData) ? rp_ge[$t.p.id].serializeEditData.call($t,postdata) : postdata,
complete:function(data,status){
var key;
$("#sData", frmtb+"_2").removeClass( commonstyle.active );
postdata[idname] = $t.p.idPrefix + postdata[idname];
if(data.status >= 300 && data.status !== 304) {
ret[0] = false;
ret[1] = $($t).triggerHandler("jqGridAddEditErrorTextFormat", [data, frmoper]);
if ($.jgrid.isFunction(rp_ge[$t.p.id].errorTextFormat)) {
ret[1] = rp_ge[$t.p.id].errorTextFormat.call($t, data, frmoper);
} else {
ret[1] = status + " Status: '" + data.statusText + "'. Error code: " + data.status;
}
} else {
// data is posted successful
// execute aftersubmit with the returned data from server
ret = $($t).triggerHandler("jqGridAddEditAfterSubmit", [data, postdata, frmoper]);
if(ret === undefined) {
ret = [true,"",""];
}
if( ret[0] && $.jgrid.isFunction(rp_ge[$t.p.id].afterSubmit) ) {
ret = rp_ge[$t.p.id].afterSubmit.call($t, data,postdata, frmoper);
}
}
if(ret[0] === false) {
$(".FormError",frmgr).html(ret[1]);
$(".FormError",frmgr).show();
} else {
if($t.p.autoencode) {
$.each(postdata,function(n,v){
postdata[n] = $.jgrid.htmlDecode(v);
});
}
//rp_ge[$t.p.id].reloadAfterSubmit = rp_ge[$t.p.id].reloadAfterSubmit && $t.p.datatype != "local";
// the action is add
if(postdata[oper] === opers.addoper ) {
//id processing
// user not set the id ret[2]
if(!ret[2]) {ret[2] = $.jgrid.randId();}
if(postdata[idname] == null || postdata[idname] === ($t.p.idPrefix + "_empty") || postdata[idname] === ""){
postdata[idname] = ret[2];
} else {
ret[2] = postdata[idname];
}
if(rp_ge[$t.p.id].reloadAfterSubmit) {
$($t).trigger("reloadGrid");
} else {
if($t.p.treeGrid === true){
$($t).jqGrid("addChildNode",ret[2],selr,postdata );
} else {
$($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);
}
}
if(rp_ge[$t.p.id].closeAfterAdd) {
if($t.p.treeGrid !== true){
$($t).jqGrid("setSelection",ret[2]);
}
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
} else if (rp_ge[$t.p.id].clearAfterAdd) {
fillData("_empty", $t, frmgr);
}
} else {
// the action is update
if(rp_ge[$t.p.id].reloadAfterSubmit) {
$($t).trigger("reloadGrid");
if( !rp_ge[$t.p.id].closeAfterEdit ) {setTimeout(function(){$($t).jqGrid("setSelection",postdata[idname]);},1000);}
} else {
if($t.p.treeGrid === true) {
$($t).jqGrid("setTreeRow", postdata[idname],postdata);
} else {
$($t).jqGrid("setRowData", postdata[idname],postdata);
}
}
if(rp_ge[$t.p.id].closeAfterEdit) {$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});}
}
if( $.jgrid.isFunction(rp_ge[$t.p.id].afterComplete) || Object.prototype.hasOwnProperty.call($._data( $($t)[0], 'events' ), 'jqGridAddEditAfterComplete') ) {
copydata = data;
setTimeout(function(){
$($t).triggerHandler("jqGridAddEditAfterComplete", [copydata, postdata, $(frmgr), frmoper]);
try {
rp_ge[$t.p.id].afterComplete.call($t, copydata, postdata, $(frmgr), frmoper);
} catch(excacmp) {
//do nothing
}
copydata=null;
},500);
}
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {
$(frmgr).data("disabled",false);
if($t.p.savedData[$t.p.id+"_id"] !== "_empty"){
for(key in $t.p.savedData) {
if($t.p.savedData.hasOwnProperty(key) && postdata[key]) {
$t.p.savedData[key] = postdata[key];
}
}
}
}
}
rp_ge[$t.p.id].processing=false;
try{$(':input:visible',frmgr)[0].focus();} catch (e){}
}
}, $.jgrid.ajaxOptions, rp_ge[$t.p.id].ajaxEditOptions );
if (!ajaxOptions.url && !rp_ge[$t.p.id].useDataProxy) {
if ($.jgrid.isFunction($t.p.dataProxy)) {
rp_ge[$t.p.id].useDataProxy = true;
} else {
ret[0]=false;ret[1] += " "+errors.nourl;
}
}
if (ret[0]) {
if (rp_ge[$t.p.id].useDataProxy) {
var dpret = $t.p.dataProxy.call($t, ajaxOptions, "set_"+$t.p.id);
if(dpret === undefined) {
dpret = [true, ""];
}
if(dpret[0] === false ) {
ret[0] = false;
ret[1] = dpret[1] || "Error deleting the selected row!" ;
} else {
if(ajaxOptions.data.oper === opers.addoper && rp_ge[$t.p.id].closeAfterAdd ) {
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
}
if(ajaxOptions.data.oper === opers.editoper && rp_ge[$t.p.id].closeAfterEdit ) {
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
}
}
} else {
if(ajaxOptions.url === "clientArray") {
rp_ge[$t.p.id].reloadAfterSubmit = false;
postdata = ajaxOptions.data;
ajaxOptions.complete({status:200, statusText:''},'');
} else {
$.ajax(ajaxOptions);
}
}
}
}
if(ret[0] === false) {
$(".FormError",frmgr).html(ret[1]);
$(".FormError",frmgr).show();
// return;
}
}
function compareData(nObj, oObj ) {
var ret = false,key;
ret = !( $.isPlainObject(nObj) && $.isPlainObject(oObj) && Object.getOwnPropertyNames(nObj).length === Object.getOwnPropertyNames(oObj).length);
if(!ret) {
for (key in oObj) {
if(oObj.hasOwnProperty(key) ) {
if(nObj.hasOwnProperty(key) ) {
if( nObj[key] !== oObj[key] ) {
ret = true;
break;
}
} else {
ret = true;
break;
}
}
}
}
return ret;
}
function checkUpdates () {
var stat = true;
$(".FormError",frmgr).hide();
if(rp_ge[$t.p.id].checkOnUpdate) {
postdata = {};
getFormData();
diff = compareData(postdata, $t.p.savedData);
if(diff) {
$(frmgr).data("disabled",true);
$(".confirm","#"+IDs.themodal).show();
stat = false;
}
}
return stat;
}
function restoreInline() {
var i;
if (rowid !== "_empty" && $t.p.savedRow !== undefined && $t.p.savedRow.length > 0 && $.jgrid.isFunction($.fn.jqGrid.restoreRow)) {
for (i=0;i<$t.p.savedRow.length;i++) {
if ($t.p.savedRow[i].id === rowid) {
$($t).jqGrid('restoreRow',rowid);
break;
}
}
}
}
function updateNav(cr, posarr){
var totr = posarr[1].length-1;
if (cr===0) {
$("#pData",frmtb2).addClass( commonstyle.disabled );
} else if( posarr[1][cr-1] !== undefined && $("#"+$.jgrid.jqID(posarr[1][cr-1])).hasClass( commonstyle.disabled )) {
$("#pData",frmtb2).addClass( commonstyle.disabled );
} else {
$("#pData",frmtb2).removeClass( commonstyle.disabled );
}
if (cr===totr) {
$("#nData",frmtb2).addClass( commonstyle.disabled );
} else if( posarr[1][cr+1] !== undefined && $("#"+$.jgrid.jqID(posarr[1][cr+1])).hasClass( commonstyle.disabled )) {
$("#nData",frmtb2).addClass( commonstyle.disabled );
} else {
$("#nData",frmtb2).removeClass( commonstyle.disabled );
}
}
function getCurrPos() {
var rowsInGrid = $($t).jqGrid("getDataIDs"),
selrow = $("#id_g",frmtb).val(), pos;
if($t.p.multiselect && rp_ge[$t.p.id].editselected) {
var arr = [];
for(var i=0, len = rowsInGrid.length;i<len;i++) {
if($.inArray(rowsInGrid[i],$t.p.selarrrow) !== -1) {
arr.push(rowsInGrid[i]);
}
}
pos = $.inArray(selrow,arr);
return [pos, arr];
} else {
pos = $.inArray(selrow,rowsInGrid);
}
return [pos,rowsInGrid];
}
function parseTemplate ( template ){
var tmpl ="";
if(typeof template === "string") {
tmpl = template.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g, function(m,i){
return '<span id="'+ i+ '" ></span>';
});
}
return tmpl;
}
function syncSavedData () {
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {
var a1=[], a2={};
a1 = $.map($t.p.savedData, function(v, i){
return i;
});
$(".FormElement", frm ).each(function(){
if( $.jgrid.trim(this.name) !== "" && a1.indexOf(this.name) === -1 ) {
var tv = $(this).val(), tt = $(this).get(0).type;
if( tt === 'checkbox') {
if(!$(this).is(":checked")) {
tv = $(this).attr("offval");
}
} else if(tt === 'select-multiple') {
tv = tv.join(",");
} else if(tt === 'radio') {
if(a2.hasOwnProperty(this.name)) {
return true;
} else {
a2[this.name] = ($(this).attr("offval") === undefined) ? "off" : $(this).attr("offval");
}
}
$t.p.savedData[this.name] = tv;
}
});
for(var i in a2 ) {
if( a2.hasOwnProperty(i)) {
var val = $('input[name="'+i+'"]:checked',frm).val();
$t.p.savedData[i] = (val !== undefined) ? val : a2[i];
}
}
}
}
var dh = isNaN(rp_ge[$(this)[0].p.id].dataheight) ? rp_ge[$(this)[0].p.id].dataheight : rp_ge[$(this)[0].p.id].dataheight+"px",
dw = isNaN(rp_ge[$(this)[0].p.id].datawidth) ? rp_ge[$(this)[0].p.id].datawidth : rp_ge[$(this)[0].p.id].datawidth+"px",
frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:"+dw+";height:"+dh+";'></form>").data("disabled",false),
tbl;
if(templ) {
tbl = parseTemplate( rp_ge[$(this)[0].p.id].template );
frmtb2 = frmtb;
} else {
tbl = $("<table id='"+frmtborg+"' class='EditTable ui-common-table'><tbody></tbody></table>");
frmtb2 = frmtb+"_2";
}
frmgr = "#"+ $.jgrid.jqID(frmgr);
// errors
$(frm).append("<div class='FormError " + commonstyle.error + "' style='display:none;'></div>" );
// topinfo
$(frm).append("<div class='tinfo topinfo'>"+rp_ge[$t.p.id].topinfo+"</div>");
$($t.p.colModel).each( function() {
var fmto = this.formoptions;
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
});
$(frm).append(tbl);
showFrm = $($t).triggerHandler("jqGridAddEditBeforeInitData", [frm, frmoper]);
if(showFrm === undefined) {
showFrm = true;
}
if(showFrm && $.jgrid.isFunction(rp_ge[$t.p.id].beforeInitData)) {
showFrm = rp_ge[$t.p.id].beforeInitData.call($t,frm, frmoper);
}
if(showFrm === false) {return;}
restoreInline();
// set the id.
// use carefull only to change here colproperties.
// create data
createData(rowid,$t,tbl,maxCols);
// buttons at footer
var rtlb = $t.p.direction === "rtl" ? true :false,
bp = rtlb ? "nData" : "pData",
bn = rtlb ? "pData" : "nData";
var bP = "<a id='"+bp+"' class='fm-button " + commonstyle.button + "'><span class='" + commonstyle.icon_base + " " + styles.icon_prev+ "'></span></a>",
bN = "<a id='"+bn+"' class='fm-button " + commonstyle.button + "'><span class='" + commonstyle.icon_base + " " + styles.icon_next+ "'></span></a>",
bS ="<a id='sData' class='fm-button " + commonstyle.button + "'>"+p.bSubmit+"</a>",
bC ="<a id='cData' class='fm-button " + commonstyle.button + "'>"+p.bCancel+"</a>",
user_buttons = ( Array.isArray( rp_ge[$t.p.id].buttons ) ? $.jgrid.buildButtons( rp_ge[$t.p.id].buttons, bS + bC, commonstyle ) : bS + bC );
var bt = "<table style='height:auto' class='EditTable ui-common-table' id='"+frmtborg+"_2'><tbody><tr><td colspan='2'><hr class='"+commonstyle.content+"' style='margin:1px'/></td></tr><tr id='Act_Buttons'><td class='navButton'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton'>"+ user_buttons +"</td></tr>";
//bt += "<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+rp_ge[$t.p.id].bottominfo+"</td></tr>";
bt += "</tbody></table>";
if(maxRows > 0) {
var sd=[];
$.each($(tbl)[0].rows,function(i,r){
sd[i] = r;
});
sd.sort(function(a,b){
if(a.rp > b.rp) {return 1;}
if(a.rp < b.rp) {return -1;}
return 0;
});
$.each(sd, function(index, row) {
$('tbody',tbl).append(row);
});
}
p.gbox = "#gbox_"+$.jgrid.jqID(gID);
var cle = false;
if(p.closeOnEscape===true){
p.closeOnEscape = false;
cle = true;
}
var tms;
if(templ) {
$(frm).find("#pData").replaceWith( bP );
$(frm).find("#nData").replaceWith( bN );
$(frm).find("#sData").replaceWith( bS );
$(frm).find("#cData").replaceWith( bC );
tms = $("<div id="+frmtborg+"></div>").append(frm);
} else {
tms = $("<div></div>").append(frm).append(bt);
}
$(frm).append("<div class='binfo topinfo bottominfo'>"+rp_ge[$t.p.id].bottominfo+"</div>");
var fs = $('.ui-jqgrid').css('font-size') || '11px';
$.jgrid.createModal(IDs, tms, rp_ge[$(this)[0].p.id], "#gview_"+$.jgrid.jqID($t.p.id), $("#gbox_"+$.jgrid.jqID($t.p.id))[0], null, {"font-size": fs});
if(rtlb) {
$("#pData, #nData",frmtb+"_2").css("float","right");
$(".EditButton",frmtb+"_2").css("text-align","left");
}
if(rp_ge[$t.p.id].topinfo) {$(".tinfo", frmgr).show();}
if(rp_ge[$t.p.id].bottominfo) {$(".binfo",frmgr).show();}
tms = null;bt=null;
$("#"+$.jgrid.jqID(IDs.themodal)).keydown( function( e ) {
var wkey = e.target;
if ($(frmgr).data("disabled")===true ) {return false;}//??
if(rp_ge[$t.p.id].savekey[0] === true && e.which === rp_ge[$t.p.id].savekey[1]) { // save
if(wkey.tagName !== "TEXTAREA") {
$("#sData", frmtb+"_2").trigger("click");
return false;
}
}
if(e.which === 27) {
if(!checkUpdates()) {return false;}
if(cle) {$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:p.gbox,jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});}
return false;
}
if(rp_ge[$t.p.id].navkeys[0]===true) {
if($("#id_g",frmtb).val() === "_empty") {return true;}
if(e.which === rp_ge[$t.p.id].navkeys[1]){ //up
$("#pData", frmtb2).trigger("click");
return false;
}
if(e.which === rp_ge[$t.p.id].navkeys[2]){ //down
$("#nData", frmtb2).trigger("click");
return false;
}
}
});
if(p.checkOnUpdate) {
$("a.ui-jqdialog-titlebar-close span","#"+$.jgrid.jqID(IDs.themodal)).removeClass("jqmClose");
$("a.ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(IDs.themodal)).off("click")
.click(function(){
if(!checkUpdates()) {return false;}
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
return false;
});
}
p.saveicon = $.extend([true,"left", styles.icon_save ],p.saveicon);
p.closeicon = $.extend([true,"left", styles.icon_close ],p.closeicon);
// beforeinitdata after creation of the form
if(p.saveicon[0]===true) {
$("#sData",frmtb2).addClass(p.saveicon[1] === "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
.append("<span class='"+commonstyle.icon_base + " " +p.saveicon[2]+"'></span>");
}
if(p.closeicon[0]===true) {
$("#cData",frmtb2).addClass(p.closeicon[1] === "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
.append("<span class='" + commonstyle.icon_base +" "+p.closeicon[2]+"'></span>");
}
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {
bS ="<a id='sNew' class='fm-button "+commonstyle.button + "' style='z-index:1002'>"+p.bYes+"</a>";
bN ="<a id='nNew' class='fm-button "+commonstyle.button + "' style='z-index:1002;margin-left:5px'>"+p.bNo+"</a>";
bC ="<a id='cNew' class='fm-button "+commonstyle.button + "' style='z-index:1002;margin-left:5px;'>"+p.bExit+"</a>";
var zI = p.zIndex || 999;zI ++;
$("#"+IDs.themodal).append("<div class='"+ p.overlayClass+" jqgrid-overlay confirm' style='z-index:"+zI+";display:none;position:absolute;'> "+"</div><div class='confirm ui-jqconfirm "+commonstyle.content+"' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>");
$("#sNew","#"+$.jgrid.jqID(IDs.themodal)).click(function(){
postIt();
$(frmgr).data("disabled",false);
$(".confirm","#"+$.jgrid.jqID(IDs.themodal)).hide();
return false;
});
$("#nNew","#"+$.jgrid.jqID(IDs.themodal)).click(function(){
$(".confirm","#"+$.jgrid.jqID(IDs.themodal)).hide();
$(frmgr).data("disabled",false);
setTimeout(function(){$(":input:visible",frmgr)[0].focus();},0);
return false;
});
$("#cNew","#"+$.jgrid.jqID(IDs.themodal)).click(function(){
$(".confirm","#"+$.jgrid.jqID(IDs.themodal)).hide();
$(frmgr).data("disabled",false);
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
return false;
});
}
// here initform
$($t).triggerHandler("jqGridAddEditInitializeForm", [$(frmgr), frmoper]);
if($.jgrid.isFunction(rp_ge[$t.p.id].onInitializeForm)) { rp_ge[$t.p.id].onInitializeForm.call($t,$(frmgr), frmoper);}
if(rowid==="_empty" || !rp_ge[$t.p.id].viewPagerButtons) {$("#pData,#nData",frmtb2).hide();} else {$("#pData,#nData",frmtb2).show();}
$($t).triggerHandler("jqGridAddEditBeforeShowForm", [$(frmgr), frmoper]);
if($.jgrid.isFunction(rp_ge[$t.p.id].beforeShowForm)) { rp_ge[$t.p.id].beforeShowForm.call($t, $(frmgr), frmoper);}
syncSavedData();
$("#"+$.jgrid.jqID(IDs.themodal)).data("onClose",rp_ge[$t.p.id].onClose);
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{
gbox:"#gbox_"+$.jgrid.jqID(gID),
jqm:p.jqModal,
overlay: p.overlay,
modal:p.modal,
overlayClass: p.overlayClass,
focusField : p.focusField,
onHide : function(h) {
var fh = $('#editmod'+gID)[0].style.height,
fw = $('#editmod'+gID)[0].style.width,
rtlsup = $("#gbox_"+$.jgrid.jqID(gID)).attr("dir") === "rtl" ? true : false;
if(fh.indexOf("px") > -1 ) {
fh = parseFloat(fh);
}
if(fw.indexOf("px") > -1 ) {
fw = parseFloat(fw);
}
$($t).data("formProp", {
top:parseFloat($(h.w).css("top")),
left : rtlsup ? ( $("#gbox_"+$.jgrid.jqID(gID)).outerWidth() - fw - parseFloat($(h.w).css("left")) + 12 ) : parseFloat($(h.w).css("left")),
width : fw,
height : fh,
dataheight : $(frmgr).height(),
datawidth: $(frmgr).width()
});
h.w.remove();
if(h.o) {h.o.remove();}
}
});
if(!closeovrl) {
$("." + $.jgrid.jqID(p.overlayClass)).click(function(){
if(!checkUpdates()) {return false;}
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
return false;
});
}
$(".fm-button","#"+$.jgrid.jqID(IDs.themodal)).hover(
function(){$(this).addClass( commonstyle.hover );},
function(){$(this).removeClass( commonstyle.hover );}
);
$("#sData", frmtb2).click(function(){
postdata = {};
$(".FormError",frmgr).hide();
// all depend on ret array
//ret[0] - succes
//ret[1] - msg if not succes
//ret[2] - the id that will be set if reload after submit false
getFormData();
if(postdata[$t.p.id+"_id"] === "_empty") {
postIt();
} else if(p.checkOnSubmit===true ) {
diff = compareData(postdata, $t.p.savedData);
if(diff) {
$(frmgr).data("disabled",true);
$(".confirm","#"+$.jgrid.jqID(IDs.themodal)).show();
} else {
postIt();
}
} else {
postIt();
}
return false;
});
$("#cData", frmtb2).click(function(){
if(!checkUpdates()) {return false;}
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal,onClose: rp_ge[$t.p.id].onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
return false;
});
// user buttons bind
$(frmtb2).find("[data-index]").each(function(){
var index = parseInt($(this).attr('data-index'),10);
if(index >=0 ) {
if( p.buttons[index].hasOwnProperty('click')) {
$(this).on('click', function(e) {
p.buttons[index].click.call($t, $(frmgr)[0], rp_ge[$t.p.id], e);
});
}
}
});
$("#nData", frmtb2).click(function(){
if(!checkUpdates()) {return false;}
$(".FormError",frmgr).hide();
var npos = getCurrPos();
npos[0] = parseInt(npos[0],10);
if(npos[0] !== -1 && npos[1][npos[0]+1]) {
$($t).triggerHandler("jqGridAddEditClickPgButtons", ['next',$(frmgr),npos[1][npos[0]]]);
var nposret;
if($.jgrid.isFunction(p.onclickPgButtons)) {
nposret = p.onclickPgButtons.call($t, 'next',$(frmgr),npos[1][npos[0]]);
if( nposret !== undefined && nposret === false ) {return false;}
}
if( $("#"+$.jgrid.jqID(npos[1][npos[0]+1])).hasClass( commonstyle.disabled )) {return false;}
fillData(npos[1][npos[0]+1],$t,frmgr);
if(!($t.p.multiselect && rp_ge[$t.p.id].editselected)) {
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
}
$($t).triggerHandler("jqGridAddEditAfterClickPgButtons", ['next',$(frmgr),npos[1][npos[0]]]);
if($.jgrid.isFunction(p.afterclickPgButtons)) {
p.afterclickPgButtons.call($t, 'next',$(frmgr),npos[1][npos[0]+1]);
}
syncSavedData();
updateNav(npos[0]+1,npos);
}
return false;
});
$("#pData", frmtb2).click(function(){
if(!checkUpdates()) {return false;}
$(".FormError",frmgr).hide();
var ppos = getCurrPos();
if(ppos[0] !== -1 && ppos[1][ppos[0]-1]) {
$($t).triggerHandler("jqGridAddEditClickPgButtons", ['prev',$(frmgr),ppos[1][ppos[0]]]);
var pposret;
if($.jgrid.isFunction(p.onclickPgButtons)) {
pposret = p.onclickPgButtons.call($t, 'prev',$(frmgr),ppos[1][ppos[0]]);
if( pposret !== undefined && pposret === false ) {return false;}
}
if( $("#"+$.jgrid.jqID(ppos[1][ppos[0]-1])).hasClass( commonstyle.disabled )) {return false;}
fillData(ppos[1][ppos[0]-1],$t,frmgr);
if(!($t.p.multiselect && rp_ge[$t.p.id].editselected)) {
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
}
$($t).triggerHandler("jqGridAddEditAfterClickPgButtons", ['prev',$(frmgr),ppos[1][ppos[0]]]);
if($.jgrid.isFunction(p.afterclickPgButtons)) {
p.afterclickPgButtons.call($t, 'prev',$(frmgr),ppos[1][ppos[0]-1]);
}
syncSavedData();
updateNav(ppos[0]-1,ppos);
}
return false;
});
$($t).triggerHandler("jqGridAddEditAfterShowForm", [$(frmgr), frmoper]);
if($.jgrid.isFunction(rp_ge[$t.p.id].afterShowForm)) { rp_ge[$t.p.id].afterShowForm.call($t, $(frmgr), frmoper); }
var posInit =getCurrPos();
updateNav(posInit[0],posInit);
});
},
viewGridRow : function(rowid, p){
var regional = $.jgrid.getRegional(this[0], 'view'),
currstyle = this[0].p.styleUI,
styles = $.jgrid.styleUI[currstyle].formedit,
commonstyle = $.jgrid.styleUI[currstyle].common;
p = $.extend(true, {
top : 0,
left: 0,
width: 500,
datawidth: 'auto',
height: 'auto',
dataheight: 'auto',
modal: false,
overlay: 30,
drag: true,
resize: true,
jqModal: true,
closeOnEscape : false,
labelswidth: 'auto',
closeicon: [],
navkeys: [false,38,40],
onClose: null,
beforeShowForm : null,
beforeInitData : null,
viewPagerButtons : true,
recreateForm : false,
removemodal: true,
form: 'view',
buttons : []
}, regional, p || {});
rp_ge[$(this)[0].p.id] = p;
return this.each(function(){
var $t = this;
if (!$t.grid || !rowid) {return;}
var gID = $t.p.id,
frmgr = "ViewGrid_"+$.jgrid.jqID( gID ), frmtb = "ViewTbl_" + $.jgrid.jqID( gID ),
frmgr_id = "ViewGrid_"+gID, frmtb_id = "ViewTbl_"+gID,
IDs = {themodal:'viewmod'+gID,modalhead:'viewhd'+gID,modalcontent:'viewcnt'+gID, scrollelm : frmgr},
showFrm = true,
maxCols = 1, maxRows=0;
rp_ge[$t.p.id].styleUI = $t.p.styleUI || 'jQueryUI';
if(!p.recreateForm) {
if( $($t).data("viewProp") ) {
$.extend(rp_ge[$(this)[0].p.id], $($t).data("viewProp"));
}
}
function focusaref(){ //Sfari 3 issues
if(rp_ge[$t.p.id].closeOnEscape===true || rp_ge[$t.p.id].navkeys[0]===true) {
setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(IDs.modalhead)).attr("tabindex", "-1").focus();},0);
}
}
function createData(rowid,obj,tb,maxcols){
var nm, hc,trdata, cnt=0,tmp, dc, retpos=[], ind=false, i,
tdtmpl = "<td class='CaptionTD form-view-label " + commonstyle.content + "' width='"+p.labelswidth+"'></td><td class='DataTD form-view-data ui-helper-reset " + commonstyle.content +"'></td>", tmpl="",
tdtmpl2 = "<td class='CaptionTD form-view-label " + commonstyle.content +"'></td><td class='DataTD form-view-data " + commonstyle.content +"'></td>",
fmtnum = ['integer','number','currency'],max1 =0, max2=0 ,maxw,setme, viewfld;
for (i=1;i<=maxcols;i++) {
tmpl += i === 1 ? tdtmpl : tdtmpl2;
}
// find max number align rigth with property formatter
$(obj.p.colModel).each( function() {
if(this.editrules && this.editrules.edithidden === true) {
hc = false;
} else {
hc = this.hidden === true ? true : false;
}
if(!hc && this.align==='right') {
if(this.formatter && $.inArray(this.formatter,fmtnum) !== -1 ) {
max1 = Math.max(max1,parseInt(this.width,10));
} else {
max2 = Math.max(max2,parseInt(this.width,10));
}
}
});
maxw = max1 !==0 ? max1 : max2 !==0 ? max2 : 0;
ind = $(obj).jqGrid("getInd",rowid);
$(obj.p.colModel).each( function(i) {
nm = this.name;
setme = false;
// hidden fields are included in the form
if(this.editrules && this.editrules.edithidden === true) {
hc = false;
} else {
hc = this.hidden === true ? true : false;
}
dc = hc ? "style='display:none'" : "";
viewfld = (typeof this.viewable !== 'boolean') ? true : this.viewable;
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && viewfld) {
if(ind === false) {
tmp = "";
} else {
if(nm === obj.p.ExpandColumn && obj.p.treeGrid === true) {
tmp = $("td",obj.rows[ind]).eq( i ).text();
} else {
tmp = $("td",obj.rows[ind]).eq( i ).html();
}
}
setme = this.align === 'right' && maxw !==0 ? true : false;
var frmopt = $.extend({},{rowabove:false,rowcontent:''}, this.formoptions || {}),
rp = parseInt(frmopt.rowpos,10) || cnt+1,
cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
if(frmopt.rowabove) {
var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
$(tb).append(newdata);
newdata[0].rp = rp;
}
trdata = $(tb).find("tr[rowpos="+rp+"]");
if ( trdata.length===0 ) {
trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","trv_"+nm);
$(trdata).append(tmpl);
$(tb).append(trdata);
trdata[0].rp = rp;
}
$("td",trdata[0]).eq( cp-2 ).html('<b>'+ (frmopt.label === undefined ? obj.p.colNames[i]: frmopt.label)+'</b>');
$("td",trdata[0]).eq( cp-1 ).append("<span>"+tmp+"</span>").attr("id","v_"+nm);
if(setme){
$("td",trdata[0]).eq( cp-1 ).find('span').css({ 'text-align':'right',width:maxw+"px" });
}
retpos[cnt] = i;
cnt++;
}
});
if( cnt > 0) {
var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+rowid+"'/></td></tr>");
idrow[0].rp = cnt+99;
$(tb).append(idrow);
}
return retpos;
}
function fillData(rowid,obj){
var nm, hc,cnt=0,tmp,trv;
trv = $(obj).jqGrid("getInd",rowid,true);
if(!trv) {return;}
$('td',trv).each( function(i) {
nm = obj.p.colModel[i].name;
// hidden fields are included in the form
if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden === true) {
hc = false;
} else {
hc = obj.p.colModel[i].hidden === true ? true : false;
}
if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn') {
if(nm === obj.p.ExpandColumn && obj.p.treeGrid === true) {
tmp = $(this).text();
} else {
tmp = $(this).html();
}
nm = $.jgrid.jqID("v_"+nm);
$("#"+nm+" span","#"+frmtb).html(tmp);
if (hc) {$("#"+nm,"#"+frmtb).parents("tr").first().hide();}
cnt++;
}
});
if(cnt>0) {$("#id_g","#"+frmtb).val(rowid);}
}
function updateNav(cr,posarr){
var totr = posarr[1].length-1;
if (cr===0) {
$("#pData","#"+frmtb+"_2").addClass( commonstyle.disabled );
} else if( posarr[1][cr-1] !== undefined && $("#"+$.jgrid.jqID(posarr[1][cr-1])).hasClass(commonstyle.disabled)) {
$("#pData",frmtb+"_2").addClass( commonstyle.disabled );
} else {
$("#pData","#"+frmtb+"_2").removeClass( commonstyle.disabled );
}
if (cr===totr) {
$("#nData","#"+frmtb+"_2").addClass( commonstyle.disabled );
} else if( posarr[1][cr+1] !== undefined && $("#"+$.jgrid.jqID(posarr[1][cr+1])).hasClass( commonstyle.disabled )) {
$("#nData",frmtb+"_2").addClass( commonstyle.disabled );
} else {
$("#nData","#"+frmtb+"_2").removeClass( commonstyle.disabled );
}
}
function getCurrPos() {
var rowsInGrid = $($t).jqGrid("getDataIDs"),
selrow = $("#id_g","#"+frmtb).val(), pos;
if($t.p.multiselect && rp_ge[$t.p.id].viewselected) {
var arr = [];
for(var i=0, len = rowsInGrid.length;i<len;i++) {
if($.inArray(rowsInGrid[i],$t.p.selarrrow) !== -1) {
arr.push(rowsInGrid[i]);
}
}
pos = $.inArray(selrow,arr);
return [pos, arr];
} else {
pos = $.inArray(selrow,rowsInGrid);
}
return [pos,rowsInGrid];
}
var dh = isNaN(rp_ge[$(this)[0].p.id].dataheight) ? rp_ge[$(this)[0].p.id].dataheight : rp_ge[$(this)[0].p.id].dataheight+"px",
dw = isNaN(rp_ge[$(this)[0].p.id].datawidth) ? rp_ge[$(this)[0].p.id].datawidth : rp_ge[$(this)[0].p.id].datawidth+"px",
frm = $("<form name='FormPost' id='"+frmgr_id+"' class='FormGrid' style='width:"+dw+";height:"+dh+";'></form>"),
tbl =$("<table id='"+frmtb_id+"' class='EditTable ViewTable'><tbody></tbody></table>");
$($t.p.colModel).each( function() {
var fmto = this.formoptions;
maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
});
// set the id.
$(frm).append(tbl);
showFrm = $($t).triggerHandler("jqGridViewRowBeforeInitData", [frm]);
if(showFrm === undefined) {
showFrm = true;
}
if(showFrm && $.jgrid.isFunction(rp_ge[$t.p.id].beforeInitData)) {
showFrm = rp_ge[$t.p.id].beforeInitData.call($t, frm);
}
if(showFrm === false) {return;}
createData(rowid, $t, tbl, maxCols);
var rtlb = $t.p.direction === "rtl" ? true :false,
bp = rtlb ? "nData" : "pData",
bn = rtlb ? "pData" : "nData",
// buttons at footer
bP = "<a id='"+bp+"' class='fm-button " + commonstyle.button + "'><span class='" + commonstyle.icon_base + " " + styles.icon_prev+ "'></span></a>",
bN = "<a id='"+bn+"' class='fm-button " + commonstyle.button + "'><span class='" + commonstyle.icon_base + " " + styles.icon_next+ "'></span></a>",
bC ="<a id='cData' class='fm-button " + commonstyle.button + "'>"+p.bClose+"</a>",
user_buttons = ( Array.isArray( rp_ge[$t.p.id].buttons ) ? $.jgrid.buildButtons( rp_ge[$t.p.id].buttons, bC, commonstyle ) : bC );
if(maxRows > 0) {
var sd=[];
$.each($(tbl)[0].rows,function(i,r){
sd[i] = r;
});
sd.sort(function(a,b){
if(a.rp > b.rp) {return 1;}
if(a.rp < b.rp) {return -1;}
return 0;
});
$.each(sd, function(index, row) {
$('tbody',tbl).append(row);
});
}
p.gbox = "#gbox_"+$.jgrid.jqID(gID);
var bt = $("<div></div>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton'>"+ user_buttons+"</td></tr></tbody></table>"),
fs = $('.ui-jqgrid').css('font-size') || '11px';
$.jgrid.createModal(IDs,bt, rp_ge[$(this)[0].p.id],"#gview_"+$.jgrid.jqID($t.p.id),$("#gview_"+$.jgrid.jqID($t.p.id))[0], null, {"font-size":fs});
if(rtlb) {
$("#pData, #nData","#"+frmtb+"_2").css("float","right");
$(".EditButton","#"+frmtb+"_2").css("text-align","left");
}
if(!p.viewPagerButtons) {$("#pData, #nData","#"+frmtb+"_2").hide();}
bt = null;
$("#"+IDs.themodal).keydown( function( e ) {
if(e.which === 27) {
if(rp_ge[$t.p.id].closeOnEscape) {$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:p.gbox,jqm:p.jqModal, onClose: p.onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});}
return false;
}
if(p.navkeys[0]===true) {
if(e.which === p.navkeys[1]){ //up
$("#pData", "#"+frmtb+"_2").trigger("click");
return false;
}
if(e.which === p.navkeys[2]){ //down
$("#nData", "#"+frmtb+"_2").trigger("click");
return false;
}
}
});
p.closeicon = $.extend([true,"left", styles.icon_close ],p.closeicon);
if(p.closeicon[0]===true) {
$("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] === "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
.append("<span class='" + commonstyle.icon_base+ " " +p.closeicon[2]+"'></span>");
}
$($t).triggerHandler("jqGridViewRowBeforeShowForm", [$("#"+frmgr)]);
if($.jgrid.isFunction(p.beforeShowForm)) {p.beforeShowForm.call($t,$("#"+frmgr));}
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{
gbox:"#gbox_"+$.jgrid.jqID(gID),
jqm:p.jqModal,
overlay: p.overlay,
modal:p.modal,
onHide : function(h) {
var rtlsup = $("#gbox_"+$.jgrid.jqID(gID)).attr("dir") === "rtl" ? true : false,
fw = parseFloat($('#viewmod'+gID)[0].style.width);
$($t).data("viewProp", {
top:parseFloat($(h.w).css("top")),
left : rtlsup ? ( $("#gbox_"+$.jgrid.jqID(gID)).outerWidth() - fw - parseFloat($(h.w).css("left")) + 12 ) : parseFloat($(h.w).css("left")),
width : $(h.w).width(),
height : $(h.w).height(),
dataheight : $("#"+frmgr).height(),
datawidth: $("#"+frmgr).width()
});
h.w.remove();
if(h.o) {h.o.remove();}
}
});
$(".fm-button:not(." + commonstyle.disabled + ")","#"+frmtb+"_2").hover(
function(){$(this).addClass( commonstyle.hover );},
function(){$(this).removeClass( commonstyle.hover );}
);
focusaref();
$("#cData", "#"+frmtb+"_2").click(function(){
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: p.onClose, removemodal: rp_ge[$t.p.id].removemodal, formprop: !rp_ge[$t.p.id].recreateForm, form: rp_ge[$t.p.id].form});
return false;
});
$("#"+frmtb+"_2").find("[data-index]").each(function(){
var index = parseInt($(this).attr('data-index'),10);
if(index >=0 ) {
if( p.buttons[index].hasOwnProperty('click')) {
$(this).on('click', function(e) {
p.buttons[index].click.call($t, $("#"+frmgr_id)[0], rp_ge[$t.p.id], e);
});
}
}
});
$("#nData", "#"+frmtb+"_2").click(function(){
$("#FormError","#"+frmtb).hide();
var npos = getCurrPos();
npos[0] = parseInt(npos[0],10);
if(npos[0] !== -1 && npos[1][npos[0]+1]) {
$($t).triggerHandler("jqGridViewRowClickPgButtons", ['next',$("#"+frmgr),npos[1][npos[0]]]);
if($.jgrid.isFunction(p.onclickPgButtons)) {
p.onclickPgButtons.call($t,'next',$("#"+frmgr),npos[1][npos[0]]);
}
fillData(npos[1][npos[0]+1],$t);
if(!($t.p.multiselect && rp_ge[$t.p.id].viewselected)) {
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
}
$($t).triggerHandler("jqGridViewRowAfterClickPgButtons", ['next',$("#"+frmgr),npos[1][npos[0]+1]]);
if($.jgrid.isFunction(p.afterclickPgButtons)) {
p.afterclickPgButtons.call($t,'next',$("#"+frmgr),npos[1][npos[0]+1]);
}
updateNav(npos[0]+1,npos);
}
focusaref();
return false;
});
$("#pData", "#"+frmtb+"_2").click(function(){
$("#FormError","#"+frmtb).hide();
var ppos = getCurrPos();
if(ppos[0] !== -1 && ppos[1][ppos[0]-1]) {
$($t).triggerHandler("jqGridViewRowClickPgButtons", ['prev',$("#"+frmgr),ppos[1][ppos[0]]]);
if($.jgrid.isFunction(p.onclickPgButtons)) {
p.onclickPgButtons.call($t,'prev',$("#"+frmgr),ppos[1][ppos[0]]);
}
fillData(ppos[1][ppos[0]-1],$t);
if(!($t.p.multiselect && rp_ge[$t.p.id].viewselected)) {
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
}
$($t).triggerHandler("jqGridViewRowAfterClickPgButtons", ['prev',$("#"+frmgr),ppos[1][ppos[0]-1]]);
if($.jgrid.isFunction(p.afterclickPgButtons)) {
p.afterclickPgButtons.call($t,'prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
}
updateNav(ppos[0]-1,ppos);
}
focusaref();
return false;
});
var posInit =getCurrPos();
updateNav(posInit[0],posInit);
});
},
delGridRow : function(rowids,p) {
var regional = $.jgrid.getRegional(this[0], 'del'),
currstyle = this[0].p.styleUI,
styles = $.jgrid.styleUI[currstyle].formedit,
commonstyle = $.jgrid.styleUI[currstyle].common;
p = $.extend(true, {
top : 0,
left: 0,
width: 240,
height: 'auto',
dataheight : 'auto',
modal: false,
overlay: 30,
drag: true,
resize: true,
url : '',
mtype : "POST",
reloadAfterSubmit: true,
beforeShowForm: null,
beforeInitData : null,
afterShowForm: null,
beforeSubmit: null,
onclickSubmit: null,
afterSubmit: null,
jqModal : true,
closeOnEscape : false,
delData: {},
delicon : [],
cancelicon : [],
onClose : null,
ajaxDelOptions : {},
processing : false,
serializeDelData : null,
useDataProxy : false
}, regional, p ||{});
rp_ge[$(this)[0].p.id] = p;
return this.each(function(){
var $t = this;
if (!$t.grid ) {return;}
if(!rowids) {return;}
var gID = $t.p.id, onCS = {},
showFrm = true,
dtbl = "DelTbl_"+$.jgrid.jqID(gID),postd, idname, opers, oper,
dtbl_id = "DelTbl_" + gID,
IDs = {themodal:'delmod'+gID,modalhead:'delhd'+gID,modalcontent:'delcnt'+gID, scrollelm: dtbl};
rp_ge[$t.p.id].styleUI = $t.p.styleUI || 'jQueryUI';
if (Array.isArray(rowids)) {rowids = rowids.join();}
if ( $("#"+$.jgrid.jqID(IDs.themodal))[0] !== undefined ) {
showFrm = $($t).triggerHandler("jqGridDelRowBeforeInitData", [$("#"+dtbl)]);
if(showFrm === undefined) {
showFrm = true;
}
if(showFrm && $.jgrid.isFunction(rp_ge[$t.p.id].beforeInitData)) {
showFrm = rp_ge[$t.p.id].beforeInitData.call($t, $("#"+dtbl));
}
if(showFrm === false) {return;}
$("#DelData>td","#"+dtbl).text(rowids);
$("#DelError","#"+dtbl).hide();
if( rp_ge[$t.p.id].processing === true) {
rp_ge[$t.p.id].processing=false;
$("#dData", "#"+dtbl).removeClass( commonstyle.active );
}
$($t).triggerHandler("jqGridDelRowBeforeShowForm", [$("#"+dtbl)]);
if($.jgrid.isFunction( rp_ge[$t.p.id].beforeShowForm )) {
rp_ge[$t.p.id].beforeShowForm.call($t,$("#"+dtbl));
}
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:rp_ge[$t.p.id].jqModal, overlay: rp_ge[$t.p.id].overlay, modal:rp_ge[$t.p.id].modal});
$($t).triggerHandler("jqGridDelRowAfterShowForm", [$("#"+dtbl)]);
if($.jgrid.isFunction( rp_ge[$t.p.id].afterShowForm )) {
rp_ge[$t.p.id].afterShowForm.call($t, $("#"+dtbl));
}
} else {
var dh = isNaN(rp_ge[$t.p.id].dataheight) ? rp_ge[$t.p.id].dataheight : rp_ge[$t.p.id].dataheight+"px",
dw = isNaN(p.datawidth) ? p.datawidth : p.datawidth+"px",
tbl = "<div id='"+dtbl_id+"' class='formdata' style='width:"+dw+";overflow:auto;position:relative;height:"+dh+";'>";
tbl += "<table class='DelTable'><tbody>";
// error data
tbl += "<tr id='DelError' style='display:none'><td class='" + commonstyle.error +"'></td></tr>";
tbl += "<tr id='DelData' style='display:none'><td >"+rowids+"</td></tr>";
tbl += "<tr><td class=\"delmsg\" style=\"white-space:pre;\">"+rp_ge[$t.p.id].msg+"</td></tr><tr><td > </td></tr>";
// buttons at footer
tbl += "</tbody></table></div>";
var bS = "<a id='dData' class='fm-button " + commonstyle.button + "'>"+p.bSubmit+"</a>",
bC = "<a id='eData' class='fm-button " + commonstyle.button + "'>"+p.bCancel+"</a>",
user_buttons = ( Array.isArray( rp_ge[$t.p.id].buttons ) ? $.jgrid.buildButtons( rp_ge[$t.p.id].buttons, bS + bC, commonstyle ) : bS + bC ),
fs = $('.ui-jqgrid').css('font-size') || '11px';
tbl += "<table class='EditTable ui-common-table' id='"+dtbl+"_2'><tbody><tr><td><hr class='" + commonstyle.content + "' style='margin:1px'/></td></tr><tr><td class='DelButton EditButton'>"+ user_buttons +"</td></tr></tbody></table>";
p.gbox = "#gbox_"+$.jgrid.jqID(gID);
$.jgrid.createModal(IDs,tbl, rp_ge[$t.p.id] ,"#gview_"+$.jgrid.jqID($t.p.id),$("#gview_"+$.jgrid.jqID($t.p.id))[0], null, {"font-size": fs});
$(".fm-button","#"+dtbl+"_2").hover(
function(){$(this).addClass( commonstyle.hover );},
function(){$(this).removeClass( commonstyle.hover );}
);
p.delicon = $.extend([true,"left", styles.icon_del ],rp_ge[$t.p.id].delicon);
p.cancelicon = $.extend([true,"left", styles.icon_cancel ],rp_ge[$t.p.id].cancelicon);
if(p.delicon[0]===true) {
$("#dData","#"+dtbl+"_2").addClass(p.delicon[1] === "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
.append("<span class='" + commonstyle.icon_base + " " + p.delicon[2]+"'></span>");
}
if(p.cancelicon[0]===true) {
$("#eData","#"+dtbl+"_2").addClass(p.cancelicon[1] === "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
.append("<span class='" + commonstyle.icon_base + " " + p.cancelicon[2]+"'></span>");
}
$("#dData","#"+dtbl+"_2").click(function(){
var ret=[true,""], pk,
postdata = $("#DelData>td","#"+dtbl).text(); //the pair is name=val1,val2,...
onCS = {};
onCS = $($t).triggerHandler("jqGridDelRowClickSubmit", [rp_ge[$t.p.id], postdata]);
if(onCS === undefined && $.jgrid.isFunction( rp_ge[$t.p.id].onclickSubmit ) ) {
onCS = rp_ge[$t.p.id].onclickSubmit.call($t, rp_ge[$t.p.id], postdata) || {};
}
ret = $($t).triggerHandler("jqGridDelRowBeforeSubmit", [postdata]);
if(ret === undefined) {
ret = [true,"",""];
}
if( ret[0] && $.jgrid.isFunction(rp_ge[$t.p.id].beforeSubmit)) {
ret = rp_ge[$t.p.id].beforeSubmit.call($t, postdata);
}
if(ret[0] && !rp_ge[$t.p.id].processing) {
rp_ge[$t.p.id].processing = true;
opers = $t.p.prmNames;
postd = $.extend({},rp_ge[$t.p.id].delData, onCS);
oper = opers.oper;
postd[oper] = opers.deloper;
idname = opers.id;
postdata = String(postdata).split(",");
if(!postdata.length) { return false; }
for(pk in postdata) {
if(postdata.hasOwnProperty(pk)) {
postdata[pk] = $.jgrid.stripPref($t.p.idPrefix, postdata[pk]);
}
}
postd[idname] = postdata.join();
$(this).addClass( commonstyle.active );
var ajaxOptions = $.extend({
url: rp_ge[$t.p.id].url || $($t).jqGrid('getGridParam','editurl'),
type: rp_ge[$t.p.id].mtype,
data: $.jgrid.isFunction(rp_ge[$t.p.id].serializeDelData) ? rp_ge[$t.p.id].serializeDelData.call($t,postd) : postd,
complete:function(data,status){
var i;
$("#dData", "#"+dtbl+"_2").removeClass( commonstyle.active );
if(data.status >= 300 && data.status !== 304) {
ret[0] = false;
ret[1] = $($t).triggerHandler("jqGridDelRowErrorTextFormat", [data]);
if ($.jgrid.isFunction(rp_ge[$t.p.id].errorTextFormat)) {
ret[1] = rp_ge[$t.p.id].errorTextFormat.call($t, data);
}
if(ret[1] === undefined) {
ret[1] = status + " Status: '" + data.statusText + "'. Error code: " + data.status;
}
} else {
// data is posted successful
// execute aftersubmit with the returned data from server
ret = $($t).triggerHandler("jqGridDelRowAfterSubmit", [data, postd]);
if(ret === undefined) {
ret = [true,"",""];
}
if( ret[0] && $.jgrid.isFunction(rp_ge[$t.p.id].afterSubmit) ) {
ret = rp_ge[$t.p.id].afterSubmit.call($t, data, postd);
}
}
if(ret[0] === false) {
$("#DelError>td","#"+dtbl).html(ret[1]);
$("#DelError","#"+dtbl).show();
} else {
if(rp_ge[$t.p.id].reloadAfterSubmit && $t.p.datatype !== "local") {
$($t).trigger("reloadGrid");
} else {
if($t.p.treeGrid===true){
try {$($t).jqGrid("delTreeNode",$t.p.idPrefix+postdata[0]);} catch(e){}
} else {
for(i=0;i<postdata.length;i++) {
$($t).jqGrid("delRowData",$t.p.idPrefix+ postdata[i]);
}
}
$t.p.selrow = null;
$t.p.selarrrow = [];
}
if($.jgrid.isFunction(rp_ge[$t.p.id].afterComplete) || Object.prototype.hasOwnProperty.call($._data( $($t)[0], 'events' ), 'jqGridDelRowAfterComplete')) {
var copydata = data;
setTimeout(function(){
$($t).triggerHandler("jqGridDelRowAfterComplete", [copydata, postd]);
try {
rp_ge[$t.p.id].afterComplete.call($t, copydata, postd);
} catch(eacg) {
// do nothing
}
},500);
}
}
rp_ge[$t.p.id].processing=false;
if(ret[0]) {$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose});}
}
}, $.jgrid.ajaxOptions, rp_ge[$t.p.id].ajaxDelOptions);
if (!ajaxOptions.url && !rp_ge[$t.p.id].useDataProxy) {
if ($.jgrid.isFunction($t.p.dataProxy)) {
rp_ge[$t.p.id].useDataProxy = true;
} else {
ret[0]=false;ret[1] += " "+$.jgrid.getRegional($t, 'errors.nourl');
}
}
if (ret[0]) {
if (rp_ge[$t.p.id].useDataProxy) {
var dpret = $t.p.dataProxy.call($t, ajaxOptions, "del_"+$t.p.id);
if(dpret === undefined) {
dpret = [true, ""];
}
if(dpret[0] === false ) {
ret[0] = false;
ret[1] = dpret[1] || "Error deleting the selected row!" ;
} else {
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:p.jqModal, onClose: rp_ge[$t.p.id].onClose});
}
}
else {
if(ajaxOptions.url === "clientArray") {
postd = ajaxOptions.data;
ajaxOptions.complete({status:200, statusText:''},'');
} else {
$.ajax(ajaxOptions);
}
}
}
}
if(ret[0] === false) {
$("#DelError>td","#"+dtbl).html(ret[1]);
$("#DelError","#"+dtbl).show();
}
return false;
});
$("#eData", "#"+dtbl+"_2").click(function(){
$.jgrid.hideModal("#"+$.jgrid.jqID(IDs.themodal),{gb:"#gbox_"+$.jgrid.jqID(gID),jqm:rp_ge[$t.p.id].jqModal, onClose: rp_ge[$t.p.id].onClose});
return false;
});
$("#"+dtbl+"_2").find("[data-index]").each(function(){
var index = parseInt($(this).attr('data-index'),10);
if(index >=0 ) {
if( p.buttons[index].hasOwnProperty('click')) {
$(this).on('click', function(e) {
p.buttons[index].click.call($t, $("#"+dtbl_id)[0], rp_ge[$t.p.id], e);
});
}
}
});
showFrm = $($t).triggerHandler("jqGridDelRowBeforeInitData", [$("#"+dtbl)]);
if(showFrm === undefined) {
showFrm = true;
}
if(showFrm && $.jgrid.isFunction(rp_ge[$t.p.id].beforeInitData)) {
showFrm = rp_ge[$t.p.id].beforeInitData.call($t, $("#"+dtbl));
}
if(showFrm === false) {return;}
$($t).triggerHandler("jqGridDelRowBeforeShowForm", [$("#"+dtbl)]);
if($.jgrid.isFunction( rp_ge[$t.p.id].beforeShowForm )) {
rp_ge[$t.p.id].beforeShowForm.call($t,$("#"+dtbl));
}
$.jgrid.viewModal("#"+$.jgrid.jqID(IDs.themodal),{gbox:"#gbox_"+$.jgrid.jqID(gID),jqm:rp_ge[$t.p.id].jqModal, overlay: rp_ge[$t.p.id].overlay, modal:rp_ge[$t.p.id].modal});
$($t).triggerHandler("jqGridDelRowAfterShowForm", [$("#"+dtbl)]);
if($.jgrid.isFunction( rp_ge[$t.p.id].afterShowForm )) {
rp_ge[$t.p.id].afterShowForm.call($t,$("#"+dtbl));
}
}
if(rp_ge[$t.p.id].closeOnEscape===true) {
setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(IDs.modalhead)).attr("tabindex","-1").focus();},0);
}
});
},
navGrid : function (elem, p, pEdit, pAdd, pDel, pSearch, pView) {
var regional = $.jgrid.getRegional(this[0], 'nav'),
currstyle = this[0].p.styleUI,
styles = $.jgrid.styleUI[currstyle].navigator,
commonstyle = $.jgrid.styleUI[currstyle].common;
p = $.extend({
edit: true,
editicon: styles.icon_edit_nav,
add: true,
addicon: styles.icon_add_nav,
del: true,
delicon: styles.icon_del_nav,
search: true,
searchicon: styles.icon_search_nav,
refresh: true,
refreshicon: styles.icon_refresh_nav,
refreshstate: 'firstpage',
view: false,
viewicon : styles.icon_view_nav,
position : "left",
closeOnEscape : true,
beforeRefresh : null,
afterRefresh : null,
cloneToTop : false,
alertwidth : 200,
alertheight : 'auto',
alerttop: null,
alertleft: null,
alertzIndex : null,
dropmenu : false,
navButtonText : ''
}, regional, p ||{});
return this.each(function() {
if(this.p.navGrid) {return;}
var alertIDs = {themodal: 'alertmod_' + this.p.id, modalhead: 'alerthd_' + this.p.id,modalcontent: 'alertcnt_' + this.p.id},
$t = this, twd, tdw, o;
if(!$t.grid || typeof elem !== 'string') {return;}
if(!$($t).data('navGrid')) {
$($t).data('navGrid',p);
}
// speedoverhead, but usefull for future
o = $($t).data('navGrid');
if($t.p.force_regional) {
o = $.extend(o, regional);
}
if ($("#"+alertIDs.themodal)[0] === undefined) {
if(!o.alerttop && !o.alertleft) {
var pos=$.jgrid.findPos(this);
pos[0]=Math.round(pos[0]);
pos[1]=Math.round(pos[1]);
o.alertleft = pos[0] + (this.p.width/2)-parseInt(o.alertwidth,10)/2;
o.alerttop = pos[1] + (this.p.height/2)-25;
}
var fs = $('.ui-jqgrid').css('font-size') || '11px';
$.jgrid.createModal(alertIDs,
"<div>"+o.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",
{
gbox:"#gbox_"+$.jgrid.jqID($t.p.id),
jqModal:true,
drag:true,
resize:true,
caption:o.alertcap,
top:o.alerttop,
left:o.alertleft,
width:o.alertwidth,
height: o.alertheight,
closeOnEscape:o.closeOnEscape,
zIndex: o.alertzIndex,
styleUI: $t.p.styleUI
},
"#gview_"+$.jgrid.jqID($t.p.id),
$("#gbox_"+$.jgrid.jqID($t.p.id))[0],
true,
{"font-size": fs}
);
}
var clone = 1, i,
onHoverIn = function () {
if (!$(this).hasClass(commonstyle.disabled)) {
$(this).addClass(commonstyle.hover);
}
},
onHoverOut = function () {
$(this).removeClass(commonstyle.hover);
};
if(o.cloneToTop && $t.p.toppager) {clone = 2;}
for(i = 0; i<clone; i++) {
var tbd,
navtbl = $("<table class='ui-pg-table navtable ui-common-table'><tbody><tr></tr></tbody></table>"),
sep = "<td class='ui-pg-button " +commonstyle.disabled + "' style='width:4px;'><span class='ui-separator'></span></td>",
pgid, elemids;
if(i===0) {
pgid = elem;
if(pgid.indexOf("#") === 0 ) {
pgid = pgid.substring(1);
pgid = "#"+ $.jgrid.jqID( pgid );
}
elemids = $t.p.id;
if(pgid === $t.p.toppager) {
elemids += "_top";
clone = 1;
}
} else {
pgid = $t.p.toppager;
elemids = $t.p.id+"_top";
}
if($t.p.direction === "rtl") {
$(navtbl).attr("dir","rtl").css("float","right");
}
pAdd = pAdd || {};
if (o.add) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base +" " +o.addicon+"'></span>"+o.addtext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
$.jgrid.setSelNavIndex( $t, this);
if ($.jgrid.isFunction( o.addfunc )) {
o.addfunc.call($t);
} else {
$($t).jqGrid("editGridRow","new",pAdd);
}
}
return false;
}).hover(onHoverIn, onHoverOut);
tbd = null;
}
pEdit = pEdit || {};
if (o.edit) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base+" "+o.editicon+"'></span>"+o.edittext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var sr = $t.p.selrow;
if (sr) {
$.jgrid.setSelNavIndex( $t, this);
if($.jgrid.isFunction( o.editfunc ) ) {
o.editfunc.call($t, sr);
} else {
$($t).jqGrid("editGridRow",sr,pEdit);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});
$("#jqg_alrt").focus();
}
}
return false;
}).hover(onHoverIn, onHoverOut);
tbd = null;
}
pView = pView || {};
if (o.view) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base+" "+o.viewicon+"'></span>"+o.viewtext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var sr = $t.p.selrow;
if (sr) {
$.jgrid.setSelNavIndex( $t, this);
if($.jgrid.isFunction( o.viewfunc ) ) {
o.viewfunc.call($t, sr);
} else {
$($t).jqGrid("viewGridRow",sr,pView);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});
$("#jqg_alrt").focus();
}
}
return false;
}).hover(onHoverIn, onHoverOut);
tbd = null;
}
pDel = pDel || {};
if (o.del) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base+" "+o.delicon+"'></span>"+o.deltext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var dr;
if($t.p.multiselect) {
dr = $t.p.selarrrow;
if(dr.length===0) {dr = null;}
} else {
dr = $t.p.selrow;
}
if(dr){
$.jgrid.setSelNavIndex( $t, this);
if($.jgrid.isFunction( o.delfunc )){
o.delfunc.call($t, dr);
}else{
$($t).jqGrid("delGridRow",dr,pDel);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});$("#jqg_alrt").focus();
}
}
return false;
}).hover(onHoverIn, onHoverOut);
tbd = null;
}
if(o.add || o.edit || o.del || o.view) {$("tr",navtbl).append(sep);}
pSearch = pSearch || {};
if (o.search) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base+" "+o.searchicon+"'></span>"+o.searchtext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
$.jgrid.setSelNavIndex( $t, this);
if($.jgrid.isFunction( o.searchfunc )) {
o.searchfunc.call($t, pSearch);
} else {
$($t).jqGrid("searchGrid",pSearch);
}
}
return false;
}).hover(onHoverIn, onHoverOut);
if (pSearch.showOnLoad && pSearch.showOnLoad === true) {
$(tbd,navtbl).click();
}
tbd = null;
}
if (o.refresh) {
tbd = $("<td class='ui-pg-button "+commonstyle.cornerall+"'></td>");
$(tbd).append("<div class='ui-pg-div'><span class='"+commonstyle.icon_base+" "+o.refreshicon+"'></span>"+o.refreshtext+"</div>");
$("tr",navtbl).append(tbd);
$(tbd,navtbl)
.attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
.click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
if($.jgrid.isFunction(o.beforeRefresh)) {o.beforeRefresh.call($t);}
$t.p.search = false;
$t.p.resetsearch = true;
try {
if( o.refreshstate !== 'currentfilter') {
var gID = $t.p.id;
$t.p.postData.filters ="";
try {
$("#fbox_"+$.jgrid.jqID(gID)).jqFilter('resetFilter');
} catch(ef) {}
if($.jgrid.isFunction($t.clearToolbar)) {$t.clearToolbar.call($t,false);}
}
} catch (e) {}
switch (o.refreshstate) {
case 'firstpage':
$($t).trigger("reloadGrid", [{page:1}]);
break;
case 'current':
case 'currentfilter':
$($t).trigger("reloadGrid", [{current:true}]);
break;
}
if($.jgrid.isFunction(o.afterRefresh)) {o.afterRefresh.call($t);}
$.jgrid.setSelNavIndex( $t, this);
}
return false;
}).hover(onHoverIn, onHoverOut);
tbd = null;
}
tdw = $(".ui-jqgrid").css("font-size") || "11px";
$('body').append("<div id='testpg2' class='ui-jqgrid "+$.jgrid.styleUI[currstyle].base.entrieBox+"' style='font-size:"+tdw+";visibility:hidden;' ></div>");
twd = $(navtbl).clone().appendTo("#testpg2").width();
$("#testpg2").remove();
if($t.p._nvtd) {
if(o.dropmenu) {
navtbl = null;
$($t).jqGrid('_buildNavMenu', pgid, elemids, p, pEdit, pAdd, pDel, pSearch, pView );
} else if(twd > $t.p._nvtd[0] ) {
if($t.p.responsive) {
navtbl = null;
$($t).jqGrid('_buildNavMenu', pgid, elemids, p, pEdit, pAdd, pDel, pSearch, pView );
} else {
$(pgid+"_"+o.position,pgid).append(navtbl).width(twd);
}
$t.p._nvtd[0] = twd;
} else {
$(pgid+"_"+o.position,pgid).append(navtbl);
}
$t.p._nvtd[1] = twd;
}
$t.p.navGrid = true;
}
if($t.p.storeNavOptions) {
$t.p.navOptions = o;
$t.p.editOptions = pEdit;
$t.p.addOptions = pAdd;
$t.p.delOptions = pDel;
$t.p.searchOptions = pSearch;
$t.p.viewOptions = pView;
$t.p.navButtons =[];
}
});
},
navButtonAdd : function (elem, p) {
var currstyle = this[0].p.styleUI,
styles = $.jgrid.styleUI[currstyle].navigator;
p = $.extend({
caption : "newButton",
title: '',
buttonicon : styles.icon_newbutton_nav,
onClickButton: null,
position : "last",
cursor : 'pointer',
internal : false
}, p ||{});
return this.each(function() {
if(!this.grid || typeof elem !== 'string') {return;}
if( elem.indexOf("#") === 0 ) {
elem = elem.substring(1);
}
elem = "#" + $.jgrid.jqID(elem);
var findnav = $(".navtable",elem)[0], $t = this,
//getstyle = $.jgrid.getMethod("getStyleUI"),
disabled = $.jgrid.styleUI[currstyle].common.disabled,
hover = $.jgrid.styleUI[currstyle].common.hover,
cornerall = $.jgrid.styleUI[currstyle].common.cornerall,
iconbase = $.jgrid.styleUI[currstyle].common.icon_base;
if ($t.p.storeNavOptions && !p.internal) {
$t.p.navButtons.push([elem,p]);
}
if (findnav) {
if( p.id && $("#"+$.jgrid.jqID(p.id), findnav)[0] !== undefined ) {return;}
var tbd = $("<td></td>");
if(p.buttonicon.toString().toUpperCase() === "NONE") {
$(tbd).addClass('ui-pg-button '+cornerall).append("<div class='ui-pg-div'>"+p.caption+"</div>");
} else {
$(tbd).addClass('ui-pg-button '+cornerall).append("<div class='ui-pg-div'><span class='"+iconbase+" "+p.buttonicon+"'></span>"+p.caption+"</div>");
}
if(p.id) {$(tbd).attr("id",p.id);}
if(p.position==='first'){
if(findnav.rows[0].cells.length ===0 ) {
$("tr",findnav).append(tbd);
} else {
$("tr td",findnav).eq( 0 ).before(tbd);
}
} else {
$("tr",findnav).append(tbd);
}
$(tbd,findnav)
.attr("title",p.title || "")
.click(function(e){
if (!$(this).hasClass(disabled)) {
$.jgrid.setSelNavIndex( $t, this);
if ($.jgrid.isFunction(p.onClickButton) ) {p.onClickButton.call($t,e);}
}
return false;
})
.hover(
function () {
if (!$(this).hasClass(disabled)) {
$(this).addClass(hover);
}
},
function () {$(this).removeClass(hover);}
);
} else {
findnav = $(".dropdownmenu",elem)[0];
if (findnav) {
var id = $(findnav).val(),
eid = p.id || $.jgrid.randId(),
item = $('<li class="ui-menu-item" role="presentation"><a class="'+ cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.caption || p.title)+'</a></li>');
if(id) {
if(p.position === 'first') {
$("#"+id).prepend( item );
} else {
$("#"+id).append( item );
}
$(item).on("click", function(e){
if (!$(this).hasClass(disabled)) {
$("#"+id).hide();
if ($.jgrid.isFunction(p.onClickButton) ) {
p.onClickButton.call($t,e);
}
}
return false;
}).find("a")
.hover(
function () {
if (!$(this).hasClass(disabled)) {
$(this).addClass(hover);
}
},
function () {$(this).removeClass(hover);}
);
}
}
}
});
},
navSeparatorAdd:function (elem,p) {
var currstyle = this[0].p.styleUI,
commonstyle = $.jgrid.styleUI[currstyle].common;
p = $.extend({
sepclass : "ui-separator",
sepcontent: '',
position : "last"
}, p ||{});
return this.each(function() {
if( !this.grid) {return;}
if( typeof elem === "string" && elem.indexOf("#") !== 0) {elem = "#"+$.jgrid.jqID(elem);}
var findnav = $(".navtable",elem)[0], sep, id;
if ( this.p.storeNavOptions ) {
this.p.navButtons.push([elem,p]);
}
if(findnav) {
sep = "<td class='ui-pg-button "+ commonstyle.disabled +"' style='width:4px;'><span class='"+p.sepclass+"'></span>"+p.sepcontent+"</td>";
if (p.position === 'first') {
if (findnav.rows[0].cells.length === 0) {
$("tr", findnav).append(sep);
} else {
$("tr td", findnav).eq( 0 ).before(sep);
}
} else {
$("tr", findnav).append(sep);
}
} else {
findnav = $(".dropdownmenu",elem)[0];
sep = "<li class='ui-menu-item " +commonstyle.disabled + "' style='width:100%' role='presentation'><hr class='ui-separator-li'></li>";
if(findnav) {
id = $(findnav).val();
if(id) {
if(p.position === "first") {
$("#"+id).prepend( sep );
} else {
$("#"+id).append( sep );
}
}
}
}
});
},
_buildNavMenu : function ( elem, elemids, p, pEdit, pAdd, pDel, pSearch, pView ) {
return this.each(function() {
var $t = this,
//actions = ['add','edit', 'del', 'view', 'search','refresh'],
regional = $.jgrid.getRegional($t, 'nav'),
currstyle = $t.p.styleUI,
styles = $.jgrid.styleUI[currstyle].navigator,
classes = $.jgrid.styleUI[currstyle].filter,
commonstyle = $.jgrid.styleUI[currstyle].common,
mid = "form_menu_"+$.jgrid.randId(),
bt = p.navButtonText ? p.navButtonText : regional.selectcaption || 'Actions',
act = "<button class='dropdownmenu "+commonstyle.button+"' value='"+mid+"'>" + bt +"</button>";
$(elem+"_"+p.position, elem).append( act );
var alertIDs = {themodal: 'alertmod_' + this.p.id, modalhead: 'alerthd_' + this.p.id,modalcontent: 'alertcnt_' + this.p.id},
_buildMenu = function() {
var fs = $('.ui-jqgrid').css('font-size') || '11px',
eid, itm,
str = $('<ul id="'+mid+'" class="ui-nav-menu modal-content" role="menu" tabindex="0" style="display:none;font-size:'+fs+'"></ul>');
if( p.add ) {
pAdd = pAdd || {};
eid = pAdd.id || "add_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.addtext || p.addtitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
if ($.jgrid.isFunction( p.addfunc )) {
p.addfunc.call($t);
} else {
$($t).jqGrid("editGridRow","new",pAdd);
}
$(str).hide();
}
return false;
});
$(str).append(itm);
}
if( p.edit ) {
pEdit = pEdit || {};
eid = pEdit.id || "edit_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.edittext || p.edittitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var sr = $t.p.selrow;
if (sr) {
if($.jgrid.isFunction( p.editfunc ) ) {
p.editfunc.call($t, sr);
} else {
$($t).jqGrid("editGridRow",sr,pEdit);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});
$("#jqg_alrt").focus();
}
$(str).hide();
}
return false;
});
$(str).append(itm);
}
if( p.view ) {
pView = pView || {};
eid = pView.id || "view_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.viewtext || p.viewtitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var sr = $t.p.selrow;
if (sr) {
if($.jgrid.isFunction( p.editfunc ) ) {
p.viewfunc.call($t, sr);
} else {
$($t).jqGrid("viewGridRow",sr,pView);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});
$("#jqg_alrt").focus();
}
$(str).hide();
}
return false;
});
$(str).append(itm);
}
if( p.del ) {
pDel = pDel || {};
eid = pDel.id || "del_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.deltext || p.deltitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
var dr;
if($t.p.multiselect) {
dr = $t.p.selarrrow;
if(dr.length===0) {dr = null;}
} else {
dr = $t.p.selrow;
}
if(dr){
if($.jgrid.isFunction( p.delfunc )){
p.delfunc.call($t, dr);
}else{
$($t).jqGrid("delGridRow",dr,pDel);
}
} else {
$.jgrid.viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$.jgrid.jqID($t.p.id),jqm:true});$("#jqg_alrt").focus();
}
$(str).hide();
}
return false;
});
$(str).append(itm);
}
if(p.add || p.edit || p.del || p.view) {
$(str).append("<li class='ui-menu-item " +commonstyle.disabled + "' style='width:100%' role='presentation'><hr class='ui-separator-li'></li>");
}
if( p.search ) {
pSearch = pSearch || {};
eid = pSearch.id || "search_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.searchtext || p.searchtitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
if($.jgrid.isFunction( p.searchfunc )) {
p.searchfunc.call($t, pSearch);
} else {
$($t).jqGrid("searchGrid",pSearch);
}
$(str).hide();
}
return false;
});
$(str).append(itm);
if (pSearch.showOnLoad && pSearch.showOnLoad === true) {
$( itm ).click();
}
}
if( p.refresh ) {
eid = pSearch.id || "search_"+elemids;
itm = $('<li class="ui-menu-item" role="presentation"><a class="'+ commonstyle.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+eid+'">'+(p.refreshtext || p.refreshtitle)+'</a></li>').click(function(){
if (!$(this).hasClass( commonstyle.disabled )) {
if($.jgrid.isFunction(p.beforeRefresh)) {p.beforeRefresh.call($t);}
$t.p.search = false;
$t.p.resetsearch = true;
try {
if( p.refreshstate !== 'currentfilter') {
var gID = $t.p.id;
$t.p.postData.filters ="";
try {
$("#fbox_"+$.jgrid.jqID(gID)).jqFilter('resetFilter');
} catch(ef) {}
if($.jgrid.isFunction($t.clearToolbar)) {$t.clearToolbar.call($t,false);}
}
} catch (e) {}
switch (p.refreshstate) {
case 'firstpage':
$($t).trigger("reloadGrid", [{page:1}]);
break;
case 'current':
case 'currentfilter':
$($t).trigger("reloadGrid", [{current:true}]);
break;
}
if($.jgrid.isFunction(p.afterRefresh)) {p.afterRefresh.call($t);}
$(str).hide();
}
return false;
});
$(str).append(itm);
}
$(str).hide();
$('body').append(str);
$("#"+mid).addClass("ui-menu " + classes.menu_widget);
$("#"+mid+" > li > a").hover(
function(){ $(this).addClass(commonstyle.hover); },
function(){ $(this).removeClass(commonstyle.hover); }
);
};
_buildMenu();
$(".dropdownmenu", elem+"_"+p.position).on("click", function( e ){
var offset = $(this).offset(),
left = ( offset.left ),
top = parseInt( offset.top),
bid =$(this).val();
//if( $("#"+mid)[0] === undefined) {
//_buildMenu();
//}
$("#"+bid).show().css({"top":top - ($("#"+bid).height() +10)+"px", "left":left+"px"});
e.stopPropagation();
});
$("body").on('click', function(e){
if(!$(e.target).hasClass("dropdownmenu")) {
$("#"+mid).hide();
}
});
});
},
GridToForm : function( rowid, formid ) {
return this.each(function(){
var $t = this, i;
if (!$t.grid) {return;}
var rowdata = $($t).jqGrid("getRowData",rowid);
if (rowdata) {
for(i in rowdata) {
if(rowdata.hasOwnProperty(i)) {
if ( $("[name="+$.jgrid.jqID(i)+"]",formid).is("input:radio") || $("[name="+$.jgrid.jqID(i)+"]",formid).is("input:checkbox")) {
$("[name="+$.jgrid.jqID(i)+"]",formid).each( function() {
if( $(this).val() == rowdata[i] ) {
$(this)[$t.p.useProp ? 'prop': 'attr']("checked",true);
} else {
$(this)[$t.p.useProp ? 'prop': 'attr']("checked", false);
}
});
} else {
// this is very slow on big table and form.
$("[name="+$.jgrid.jqID(i)+"]",formid).val(rowdata[i]);
}
}
}
}
});
},
FormToGrid : function(rowid, formid, mode, position){
return this.each(function() {
var $t = this;
if(!$t.grid) {return;}
if(!mode) {mode = 'set';}
if(!position) {position = 'first';}
var fields = $(formid).serializeArray();
var griddata = {};
$.each(fields, function(i, field){
griddata[field.name] = field.value;
});
if(mode==='add') {$($t).jqGrid("addRowData",rowid,griddata, position);}
else if(mode==='set') {$($t).jqGrid("setRowData",rowid,griddata);}
});
}
});
//module end
}));
|
cdnjs/cdnjs
|
ajax/libs/jqgrid/5.5.4/js/grid.formedit.js
|
JavaScript
|
mit
| 93,444
|
function createBrowserLocalStorageCache(options) {
const namespaceKey = `algoliasearch-client-js-${options.key}`;
// eslint-disable-next-line functional/no-let
let storage;
const getStorage = () => {
if (storage === undefined) {
storage = options.localStorage || window.localStorage;
}
return storage;
};
const getNamespace = () => {
return JSON.parse(getStorage().getItem(namespaceKey) || '{}');
};
return {
get(key, defaultValue, events = {
miss: () => Promise.resolve(),
}) {
return Promise.resolve()
.then(() => {
const keyAsString = JSON.stringify(key);
const value = getNamespace()[keyAsString];
return Promise.all([value || defaultValue(), value !== undefined]);
})
.then(([value, exists]) => {
return Promise.all([value, exists || events.miss(value)]);
})
.then(([value]) => value);
},
set(key, value) {
return Promise.resolve().then(() => {
const namespace = getNamespace();
// eslint-disable-next-line functional/immutable-data
namespace[JSON.stringify(key)] = value;
getStorage().setItem(namespaceKey, JSON.stringify(namespace));
return value;
});
},
delete(key) {
return Promise.resolve().then(() => {
const namespace = getNamespace();
// eslint-disable-next-line functional/immutable-data
delete namespace[JSON.stringify(key)];
getStorage().setItem(namespaceKey, JSON.stringify(namespace));
});
},
clear() {
return Promise.resolve().then(() => {
getStorage().removeItem(namespaceKey);
});
},
};
}
// @todo Add logger on options to debug when caches go wrong.
function createFallbackableCache(options) {
const caches = [...options.caches];
const current = caches.shift(); // eslint-disable-line functional/immutable-data
if (current === undefined) {
return createNullCache();
}
return {
get(key, defaultValue, events = {
miss: () => Promise.resolve(),
}) {
return current.get(key, defaultValue, events).catch(() => {
return createFallbackableCache({ caches }).get(key, defaultValue, events);
});
},
set(key, value) {
return current.set(key, value).catch(() => {
return createFallbackableCache({ caches }).set(key, value);
});
},
delete(key) {
return current.delete(key).catch(() => {
return createFallbackableCache({ caches }).delete(key);
});
},
clear() {
return current.clear().catch(() => {
return createFallbackableCache({ caches }).clear();
});
},
};
}
function createNullCache() {
return {
get(_key, defaultValue, events = {
miss: () => Promise.resolve(),
}) {
const value = defaultValue();
return value
.then(result => Promise.all([result, events.miss(result)]))
.then(([result]) => result);
},
set(_key, value) {
return Promise.resolve(value);
},
delete(_key) {
return Promise.resolve();
},
clear() {
return Promise.resolve();
},
};
}
function createInMemoryCache(options = { serializable: true }) {
// eslint-disable-next-line functional/no-let
let cache = {};
return {
get(key, defaultValue, events = {
miss: () => Promise.resolve(),
}) {
const keyAsString = JSON.stringify(key);
if (keyAsString in cache) {
return Promise.resolve(options.serializable ? JSON.parse(cache[keyAsString]) : cache[keyAsString]);
}
const promise = defaultValue();
const miss = (events && events.miss) || (() => Promise.resolve());
return promise.then((value) => miss(value)).then(() => promise);
},
set(key, value) {
// eslint-disable-next-line functional/immutable-data
cache[JSON.stringify(key)] = options.serializable ? JSON.stringify(value) : value;
return Promise.resolve(value);
},
delete(key) {
// eslint-disable-next-line functional/immutable-data
delete cache[JSON.stringify(key)];
return Promise.resolve();
},
clear() {
cache = {};
return Promise.resolve();
},
};
}
function createAuth(authMode, appId, apiKey) {
const credentials = {
'x-algolia-api-key': apiKey,
'x-algolia-application-id': appId,
};
return {
headers() {
return authMode === AuthMode.WithinHeaders ? credentials : {};
},
queryParameters() {
return authMode === AuthMode.WithinQueryParameters ? credentials : {};
},
};
}
// eslint-disable-next-line functional/prefer-readonly-type
function shuffle(array) {
let c = array.length - 1; // eslint-disable-line functional/no-let
// eslint-disable-next-line functional/no-loop-statement
for (c; c > 0; c--) {
const b = Math.floor(Math.random() * (c + 1));
const a = array[c];
array[c] = array[b]; // eslint-disable-line functional/immutable-data, no-param-reassign
array[b] = a; // eslint-disable-line functional/immutable-data, no-param-reassign
}
return array;
}
function addMethods(base, methods) {
if (!methods) {
return base;
}
Object.keys(methods).forEach(key => {
// eslint-disable-next-line functional/immutable-data, no-param-reassign
base[key] = methods[key](base);
});
return base;
}
function encode(format, ...args) {
// eslint-disable-next-line functional/no-let
let i = 0;
return format.replace(/%s/g, () => encodeURIComponent(args[i++]));
}
const version = '4.12.1';
const AuthMode = {
/**
* If auth credentials should be in query parameters.
*/
WithinQueryParameters: 0,
/**
* If auth credentials should be in headers.
*/
WithinHeaders: 1,
};
function createMappedRequestOptions(requestOptions, timeout) {
const options = requestOptions || {};
const data = options.data || {};
Object.keys(options).forEach(key => {
if (['timeout', 'headers', 'queryParameters', 'data', 'cacheable'].indexOf(key) === -1) {
data[key] = options[key]; // eslint-disable-line functional/immutable-data
}
});
return {
data: Object.entries(data).length > 0 ? data : undefined,
timeout: options.timeout || timeout,
headers: options.headers || {},
queryParameters: options.queryParameters || {},
cacheable: options.cacheable,
};
}
const CallEnum = {
/**
* If the host is read only.
*/
Read: 1,
/**
* If the host is write only.
*/
Write: 2,
/**
* If the host is both read and write.
*/
Any: 3,
};
const HostStatusEnum = {
Up: 1,
Down: 2,
Timeouted: 3,
};
// By default, API Clients at Algolia have expiration delay
// of 5 mins. In the JavaScript client, we have 2 mins.
const EXPIRATION_DELAY = 2 * 60 * 1000;
function createStatefulHost(host, status = HostStatusEnum.Up) {
return {
...host,
status,
lastUpdate: Date.now(),
};
}
function isStatefulHostUp(host) {
return host.status === HostStatusEnum.Up || Date.now() - host.lastUpdate > EXPIRATION_DELAY;
}
function isStatefulHostTimeouted(host) {
return (host.status === HostStatusEnum.Timeouted && Date.now() - host.lastUpdate <= EXPIRATION_DELAY);
}
function createStatelessHost(options) {
if (typeof options === 'string') {
return {
protocol: 'https',
url: options,
accept: CallEnum.Any,
};
}
return {
protocol: options.protocol || 'https',
url: options.url,
accept: options.accept || CallEnum.Any,
};
}
const MethodEnum = {
Delete: 'DELETE',
Get: 'GET',
Post: 'POST',
Put: 'PUT',
};
function createRetryableOptions(hostsCache, statelessHosts) {
return Promise.all(statelessHosts.map(statelessHost => {
return hostsCache.get(statelessHost, () => {
return Promise.resolve(createStatefulHost(statelessHost));
});
})).then(statefulHosts => {
const hostsUp = statefulHosts.filter(host => isStatefulHostUp(host));
const hostsTimeouted = statefulHosts.filter(host => isStatefulHostTimeouted(host));
/**
* Note, we put the hosts that previously timeouted on the end of the list.
*/
const hostsAvailable = [...hostsUp, ...hostsTimeouted];
const statelessHostsAvailable = hostsAvailable.length > 0
? hostsAvailable.map(host => createStatelessHost(host))
: statelessHosts;
return {
getTimeout(timeoutsCount, baseTimeout) {
/**
* Imagine that you have 4 hosts, if timeouts will increase
* on the following way: 1 (timeouted) > 4 (timeouted) > 5 (200)
*
* Note that, the very next request, we start from the previous timeout
*
* 5 (timeouted) > 6 (timeouted) > 7 ...
*
* This strategy may need to be reviewed, but is the strategy on the our
* current v3 version.
*/
const timeoutMultiplier = hostsTimeouted.length === 0 && timeoutsCount === 0
? 1
: hostsTimeouted.length + 3 + timeoutsCount;
return timeoutMultiplier * baseTimeout;
},
statelessHosts: statelessHostsAvailable,
};
});
}
const isNetworkError = ({ isTimedOut, status }) => {
return !isTimedOut && ~~status === 0;
};
const isRetryable = (response) => {
const status = response.status;
const isTimedOut = response.isTimedOut;
return (isTimedOut || isNetworkError(response) || (~~(status / 100) !== 2 && ~~(status / 100) !== 4));
};
const isSuccess = ({ status }) => {
return ~~(status / 100) === 2;
};
const retryDecision = (response, outcomes) => {
if (isRetryable(response)) {
return outcomes.onRetry(response);
}
if (isSuccess(response)) {
return outcomes.onSuccess(response);
}
return outcomes.onFail(response);
};
function retryableRequest(transporter, statelessHosts, request, requestOptions) {
const stackTrace = []; // eslint-disable-line functional/prefer-readonly-type
/**
* First we prepare the payload that do not depend from hosts.
*/
const data = serializeData(request, requestOptions);
const headers = serializeHeaders(transporter, requestOptions);
const method = request.method;
// On `GET`, the data is proxied to query parameters.
const dataQueryParameters = request.method !== MethodEnum.Get
? {}
: {
...request.data,
...requestOptions.data,
};
const queryParameters = {
'x-algolia-agent': transporter.userAgent.value,
...transporter.queryParameters,
...dataQueryParameters,
...requestOptions.queryParameters,
};
let timeoutsCount = 0; // eslint-disable-line functional/no-let
const retry = (hosts, // eslint-disable-line functional/prefer-readonly-type
getTimeout) => {
/**
* We iterate on each host, until there is no host left.
*/
const host = hosts.pop(); // eslint-disable-line functional/immutable-data
if (host === undefined) {
throw createRetryError(stackTraceWithoutCredentials(stackTrace));
}
const payload = {
data,
headers,
method,
url: serializeUrl(host, request.path, queryParameters),
connectTimeout: getTimeout(timeoutsCount, transporter.timeouts.connect),
responseTimeout: getTimeout(timeoutsCount, requestOptions.timeout),
};
/**
* The stackFrame is pushed to the stackTrace so we
* can have information about onRetry and onFailure
* decisions.
*/
const pushToStackTrace = (response) => {
const stackFrame = {
request: payload,
response,
host,
triesLeft: hosts.length,
};
// eslint-disable-next-line functional/immutable-data
stackTrace.push(stackFrame);
return stackFrame;
};
const decisions = {
onSuccess: response => deserializeSuccess(response),
onRetry(response) {
const stackFrame = pushToStackTrace(response);
/**
* If response is a timeout, we increaset the number of
* timeouts so we can increase the timeout later.
*/
if (response.isTimedOut) {
timeoutsCount++;
}
return Promise.all([
/**
* Failures are individually send the logger, allowing
* the end user to debug / store stack frames even
* when a retry error does not happen.
*/
transporter.logger.info('Retryable failure', stackFrameWithoutCredentials(stackFrame)),
/**
* We also store the state of the host in failure cases. If the host, is
* down it will remain down for the next 2 minutes. In a timeout situation,
* this host will be added end of the list of hosts on the next request.
*/
transporter.hostsCache.set(host, createStatefulHost(host, response.isTimedOut ? HostStatusEnum.Timeouted : HostStatusEnum.Down)),
]).then(() => retry(hosts, getTimeout));
},
onFail(response) {
pushToStackTrace(response);
throw deserializeFailure(response, stackTraceWithoutCredentials(stackTrace));
},
};
return transporter.requester.send(payload).then(response => {
return retryDecision(response, decisions);
});
};
/**
* Finally, for each retryable host perform request until we got a non
* retryable response. Some notes here:
*
* 1. The reverse here is applied so we can apply a `pop` later on => more performant.
* 2. We also get from the retryable options a timeout multiplier that is tailored
* for the current context.
*/
return createRetryableOptions(transporter.hostsCache, statelessHosts).then(options => {
return retry([...options.statelessHosts].reverse(), options.getTimeout);
});
}
function createTransporter(options) {
const { hostsCache, logger, requester, requestsCache, responsesCache, timeouts, userAgent, hosts, queryParameters, headers, } = options;
const transporter = {
hostsCache,
logger,
requester,
requestsCache,
responsesCache,
timeouts,
userAgent,
headers,
queryParameters,
hosts: hosts.map(host => createStatelessHost(host)),
read(request, requestOptions) {
/**
* First, we compute the user request options. Now, keep in mind,
* that using request options the user is able to modified the intire
* payload of the request. Such as headers, query parameters, and others.
*/
const mappedRequestOptions = createMappedRequestOptions(requestOptions, transporter.timeouts.read);
const createRetryableRequest = () => {
/**
* Then, we prepare a function factory that contains the construction of
* the retryable request. At this point, we may *not* perform the actual
* request. But we want to have the function factory ready.
*/
return retryableRequest(transporter, transporter.hosts.filter(host => (host.accept & CallEnum.Read) !== 0), request, mappedRequestOptions);
};
/**
* Once we have the function factory ready, we need to determine of the
* request is "cacheable" - should be cached. Note that, once again,
* the user can force this option.
*/
const cacheable = mappedRequestOptions.cacheable !== undefined
? mappedRequestOptions.cacheable
: request.cacheable;
/**
* If is not "cacheable", we immediatly trigger the retryable request, no
* need to check cache implementations.
*/
if (cacheable !== true) {
return createRetryableRequest();
}
/**
* If the request is "cacheable", we need to first compute the key to ask
* the cache implementations if this request is on progress or if the
* response already exists on the cache.
*/
const key = {
request,
mappedRequestOptions,
transporter: {
queryParameters: transporter.queryParameters,
headers: transporter.headers,
},
};
/**
* With the computed key, we first ask the responses cache
* implemention if this request was been resolved before.
*/
return transporter.responsesCache.get(key, () => {
/**
* If the request has never resolved before, we actually ask if there
* is a current request with the same key on progress.
*/
return transporter.requestsCache.get(key, () => {
return (transporter.requestsCache
/**
* Finally, if there is no request in progress with the same key,
* this `createRetryableRequest()` will actually trigger the
* retryable request.
*/
.set(key, createRetryableRequest())
.then(response => Promise.all([transporter.requestsCache.delete(key), response]), err => Promise.all([transporter.requestsCache.delete(key), Promise.reject(err)]))
.then(([_, response]) => response));
});
}, {
/**
* Of course, once we get this response back from the server, we
* tell response cache to actually store the received response
* to be used later.
*/
miss: response => transporter.responsesCache.set(key, response),
});
},
write(request, requestOptions) {
/**
* On write requests, no cache mechanisms are applied, and we
* proxy the request immediately to the requester.
*/
return retryableRequest(transporter, transporter.hosts.filter(host => (host.accept & CallEnum.Write) !== 0), request, createMappedRequestOptions(requestOptions, transporter.timeouts.write));
},
};
return transporter;
}
function createUserAgent(version) {
const userAgent = {
value: `Algolia for JavaScript (${version})`,
add(options) {
const addedUserAgent = `; ${options.segment}${options.version !== undefined ? ` (${options.version})` : ''}`;
if (userAgent.value.indexOf(addedUserAgent) === -1) {
// eslint-disable-next-line functional/immutable-data
userAgent.value = `${userAgent.value}${addedUserAgent}`;
}
return userAgent;
},
};
return userAgent;
}
function deserializeSuccess(response) {
// eslint-disable-next-line functional/no-try-statement
try {
return JSON.parse(response.content);
}
catch (e) {
throw createDeserializationError(e.message, response);
}
}
function deserializeFailure({ content, status }, stackFrame) {
// eslint-disable-next-line functional/no-let
let message = content;
// eslint-disable-next-line functional/no-try-statement
try {
message = JSON.parse(content).message;
}
catch (e) {
// ..
}
return createApiError(message, status, stackFrame);
}
function serializeUrl(host, path, queryParameters) {
const queryParametersAsString = serializeQueryParameters(queryParameters);
// eslint-disable-next-line functional/no-let
let url = `${host.protocol}://${host.url}/${path.charAt(0) === '/' ? path.substr(1) : path}`;
if (queryParametersAsString.length) {
url += `?${queryParametersAsString}`;
}
return url;
}
function serializeQueryParameters(parameters) {
const isObjectOrArray = (value) => Object.prototype.toString.call(value) === '[object Object]' ||
Object.prototype.toString.call(value) === '[object Array]';
return Object.keys(parameters)
.map(key => encode('%s=%s', key, isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]))
.join('&');
}
function serializeData(request, requestOptions) {
if (request.method === MethodEnum.Get ||
(request.data === undefined && requestOptions.data === undefined)) {
return undefined;
}
const data = Array.isArray(request.data)
? request.data
: { ...request.data, ...requestOptions.data };
return JSON.stringify(data);
}
function serializeHeaders(transporter, requestOptions) {
const headers = {
...transporter.headers,
...requestOptions.headers,
};
const serializedHeaders = {};
Object.keys(headers).forEach(header => {
const value = headers[header];
// @ts-ignore
// eslint-disable-next-line functional/immutable-data
serializedHeaders[header.toLowerCase()] = value;
});
return serializedHeaders;
}
function stackTraceWithoutCredentials(stackTrace) {
return stackTrace.map(stackFrame => stackFrameWithoutCredentials(stackFrame));
}
function stackFrameWithoutCredentials(stackFrame) {
const modifiedHeaders = stackFrame.request.headers['x-algolia-api-key']
? { 'x-algolia-api-key': '*****' }
: {};
return {
...stackFrame,
request: {
...stackFrame.request,
headers: {
...stackFrame.request.headers,
...modifiedHeaders,
},
},
};
}
function createApiError(message, status, transporterStackTrace) {
return {
name: 'ApiError',
message,
status,
transporterStackTrace,
};
}
function createDeserializationError(message, response) {
return {
name: 'DeserializationError',
message,
response,
};
}
function createRetryError(transporterStackTrace) {
return {
name: 'RetryError',
message: 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.',
transporterStackTrace,
};
}
const createSearchClient = options => {
const appId = options.appId;
const auth = createAuth(options.authMode !== undefined ? options.authMode : AuthMode.WithinHeaders, appId, options.apiKey);
const transporter = createTransporter({
hosts: [
{ url: `${appId}-dsn.algolia.net`, accept: CallEnum.Read },
{ url: `${appId}.algolia.net`, accept: CallEnum.Write },
].concat(shuffle([
{ url: `${appId}-1.algolianet.com` },
{ url: `${appId}-2.algolianet.com` },
{ url: `${appId}-3.algolianet.com` },
])),
...options,
headers: {
...auth.headers(),
...{ 'content-type': 'application/x-www-form-urlencoded' },
...options.headers,
},
queryParameters: {
...auth.queryParameters(),
...options.queryParameters,
},
});
const base = {
transporter,
appId,
addAlgoliaAgent(segment, version) {
transporter.userAgent.add({ segment, version });
},
clearCache() {
return Promise.all([
transporter.requestsCache.clear(),
transporter.responsesCache.clear(),
]).then(() => undefined);
},
};
return addMethods(base, options.methods);
};
const customRequest = (base) => {
return (request, requestOptions) => {
if (request.method === MethodEnum.Get) {
return base.transporter.read(request, requestOptions);
}
return base.transporter.write(request, requestOptions);
};
};
const initIndex = (base) => {
return (indexName, options = {}) => {
const searchIndex = {
transporter: base.transporter,
appId: base.appId,
indexName,
};
return addMethods(searchIndex, options.methods);
};
};
const multipleQueries = (base) => {
return (queries, requestOptions) => {
const requests = queries.map(query => {
return {
...query,
params: serializeQueryParameters(query.params || {}),
};
});
return base.transporter.read({
method: MethodEnum.Post,
path: '1/indexes/*/queries',
data: {
requests,
},
cacheable: true,
}, requestOptions);
};
};
const multipleSearchForFacetValues = (base) => {
return (queries, requestOptions) => {
return Promise.all(queries.map(query => {
const { facetName, facetQuery, ...params } = query.params;
return initIndex(base)(query.indexName, {
methods: { searchForFacetValues },
}).searchForFacetValues(facetName, facetQuery, {
...requestOptions,
...params,
});
}));
};
};
const findAnswers = (base) => {
return (query, queryLanguages, requestOptions) => {
return base.transporter.read({
method: MethodEnum.Post,
path: encode('1/answers/%s/prediction', base.indexName),
data: {
query,
queryLanguages,
},
cacheable: true,
}, requestOptions);
};
};
const search = (base) => {
return (query, requestOptions) => {
return base.transporter.read({
method: MethodEnum.Post,
path: encode('1/indexes/%s/query', base.indexName),
data: {
query,
},
cacheable: true,
}, requestOptions);
};
};
const searchForFacetValues = (base) => {
return (facetName, facetQuery, requestOptions) => {
return base.transporter.read({
method: MethodEnum.Post,
path: encode('1/indexes/%s/facets/%s/query', base.indexName, facetName),
data: {
facetQuery,
},
cacheable: true,
}, requestOptions);
};
};
const LogLevelEnum = {
Debug: 1,
Info: 2,
Error: 3,
};
/* eslint no-console: 0 */
function createConsoleLogger(logLevel) {
return {
debug(message, args) {
if (LogLevelEnum.Debug >= logLevel) {
console.debug(message, args);
}
return Promise.resolve();
},
info(message, args) {
if (LogLevelEnum.Info >= logLevel) {
console.info(message, args);
}
return Promise.resolve();
},
error(message, args) {
console.error(message, args);
return Promise.resolve();
},
};
}
function createBrowserXhrRequester() {
return {
send(request) {
return new Promise((resolve) => {
const baseRequester = new XMLHttpRequest();
baseRequester.open(request.method, request.url, true);
Object.keys(request.headers).forEach(key => baseRequester.setRequestHeader(key, request.headers[key]));
const createTimeout = (timeout, content) => {
return setTimeout(() => {
baseRequester.abort();
resolve({
status: 0,
content,
isTimedOut: true,
});
}, timeout * 1000);
};
const connectTimeout = createTimeout(request.connectTimeout, 'Connection timeout');
// eslint-disable-next-line functional/no-let
let responseTimeout;
// eslint-disable-next-line functional/immutable-data
baseRequester.onreadystatechange = () => {
if (baseRequester.readyState > baseRequester.OPENED && responseTimeout === undefined) {
clearTimeout(connectTimeout);
responseTimeout = createTimeout(request.responseTimeout, 'Socket timeout');
}
};
// eslint-disable-next-line functional/immutable-data
baseRequester.onerror = () => {
// istanbul ignore next
if (baseRequester.status === 0) {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({
content: baseRequester.responseText || 'Network request failed',
status: baseRequester.status,
isTimedOut: false,
});
}
};
// eslint-disable-next-line functional/immutable-data
baseRequester.onload = () => {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({
content: baseRequester.responseText,
status: baseRequester.status,
isTimedOut: false,
});
};
baseRequester.send(request.data);
});
},
};
}
function algoliasearch(appId, apiKey, options) {
const commonOptions = {
appId,
apiKey,
timeouts: {
connect: 1,
read: 2,
write: 30,
},
requester: createBrowserXhrRequester(),
logger: createConsoleLogger(LogLevelEnum.Error),
responsesCache: createInMemoryCache(),
requestsCache: createInMemoryCache({ serializable: false }),
hostsCache: createFallbackableCache({
caches: [
createBrowserLocalStorageCache({ key: `${version}-${appId}` }),
createInMemoryCache(),
],
}),
userAgent: createUserAgent(version).add({
segment: 'Browser',
version: 'lite',
}),
authMode: AuthMode.WithinQueryParameters,
};
return createSearchClient({
...commonOptions,
...options,
methods: {
search: multipleQueries,
searchForFacetValues: multipleSearchForFacetValues,
multipleQueries,
multipleSearchForFacetValues,
customRequest,
initIndex: base => (indexName) => {
return initIndex(base)(indexName, {
methods: { search, searchForFacetValues, findAnswers },
});
},
},
});
}
// eslint-disable-next-line functional/immutable-data
algoliasearch.version = version;
export default algoliasearch;
|
cdnjs/cdnjs
|
ajax/libs/algoliasearch/4.12.1/algoliasearch-lite.esm.browser.js
|
JavaScript
|
mit
| 33,346
|
@charset "UTF-8";
:root {
--surface-a:#1f2d40;
--surface-b:#17212f;
--surface-c:rgba(255, 255, 255, 0.03);
--surface-d:#304562;
--surface-e:#1f2d40;
--surface-f:#1f2d40;
--text-color:rgba(255, 255, 255, 0.87);
--text-color-secondary:rgba(255, 255, 255, 0.6);
--primary-color:#BA68C8;
--primary-color-text:#ffffff;
--font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
--surface-0: #17212f;
--surface-50: #1d2734;
--surface-100: #232c39;
--surface-200: #28323f;
--surface-300: #2e3744;
--surface-400: #343d49;
--surface-500: #3a424e;
--surface-600: #404853;
--surface-700: #454d59;
--surface-800: #4b535e;
--surface-900: #515963;
--content-padding:1rem;
--inline-spacing:0.5rem; }
* {
box-sizing: border-box; }
.p-component {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: normal; }
.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4);
transition-duration: 0.2s; }
.p-disabled, .p-component:disabled {
opacity: 0.4; }
.p-error {
color: #ef9a9a; }
.p-text-secondary {
color: rgba(255, 255, 255, 0.6); }
.pi {
font-size: 1rem; }
.p-link {
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
border-radius: 3px; }
.p-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
:root {
--blue-50:#f4fafe;
--blue-100:#cae6fc;
--blue-200:#a0d2fa;
--blue-300:#75bef8;
--blue-400:#4baaf5;
--blue-500:#2196f3;
--blue-600:#1c80cf;
--blue-700:#1769aa;
--blue-800:#125386;
--blue-900:#0d3c61;
--green-50:#f6fbf6;
--green-100:#d4ecd5;
--green-200:#b2ddb4;
--green-300:#90cd93;
--green-400:#6ebe71;
--green-500:#4caf50;
--green-600:#419544;
--green-700:#357b38;
--green-800:#2a602c;
--green-900:#1e4620;
--yellow-50:#fffcf5;
--yellow-100:#fef0cd;
--yellow-200:#fde4a5;
--yellow-300:#fdd87d;
--yellow-400:#fccc55;
--yellow-500:#fbc02d;
--yellow-600:#d5a326;
--yellow-700:#b08620;
--yellow-800:#8a6a19;
--yellow-900:#644d12;
--cyan-50:#f2fcfd;
--cyan-100:#c2eff5;
--cyan-200:#91e2ed;
--cyan-300:#61d5e4;
--cyan-400:#30c9dc;
--cyan-500:#00bcd4;
--cyan-600:#00a0b4;
--cyan-700:#008494;
--cyan-800:#006775;
--cyan-900:#004b55;
--pink-50:#fef4f7;
--pink-100:#fac9da;
--pink-200:#f69ebc;
--pink-300:#f1749e;
--pink-400:#ed4981;
--pink-500:#e91e63;
--pink-600:#c61a54;
--pink-700:#a31545;
--pink-800:#801136;
--pink-900:#5d0c28;
--indigo-50:#f5f6fb;
--indigo-100:#d1d5ed;
--indigo-200:#acb4df;
--indigo-300:#8893d1;
--indigo-400:#6372c3;
--indigo-500:#3f51b5;
--indigo-600:#36459a;
--indigo-700:#2c397f;
--indigo-800:#232d64;
--indigo-900:#192048;
--teal-50:#f2faf9;
--teal-100:#c2e6e2;
--teal-200:#91d2cc;
--teal-300:#61beb5;
--teal-400:#30aa9f;
--teal-500:#009688;
--teal-600:#008074;
--teal-700:#00695f;
--teal-800:#00534b;
--teal-900:#003c36;
--orange-50:#fff8f2;
--orange-100:#fde0c2;
--orange-200:#fbc791;
--orange-300:#f9ae61;
--orange-400:#f79530;
--orange-500:#f57c00;
--orange-600:#d06900;
--orange-700:#ac5700;
--orange-800:#874400;
--orange-900:#623200;
--bluegray-50:#f7f9f9;
--bluegray-100:#d9e0e3;
--bluegray-200:#bbc7cd;
--bluegray-300:#9caeb7;
--bluegray-400:#7e96a1;
--bluegray-500:#607d8b;
--bluegray-600:#526a76;
--bluegray-700:#435861;
--bluegray-800:#35454c;
--bluegray-900:#263238;
--purple-50:#faf4fb;
--purple-100:#e7cbec;
--purple-200:#d4a2dd;
--purple-300:#c279ce;
--purple-400:#af50bf;
--purple-500:#9c27b0;
--purple-600:#852196;
--purple-700:#6d1b7b;
--purple-800:#561561;
--purple-900:#3e1046; }
.p-autocomplete .p-autocomplete-loader {
right: 0.5rem; }
.p-autocomplete.p-autocomplete-dd .p-autocomplete-loader {
right: 2.857rem; }
.p-autocomplete .p-autocomplete-multiple-container {
padding: 0.25rem 0.5rem; }
.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token {
padding: 0.25rem 0; }
.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token input {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0; }
.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon {
margin-left: 0.5rem; }
.p-autocomplete.p-invalid.p-component > .p-inputtext {
border-color: #ef9a9a; }
.p-autocomplete-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-autocomplete-panel .p-autocomplete-items {
padding: 0.5rem 0; }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item-group {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600; }
.p-calendar.p-invalid.p-component > .p-inputtext {
border-color: #ef9a9a; }
.p-datepicker {
padding: 0.5rem;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px; }
.p-datepicker:not(.p-datepicker-inline) {
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {
background: #1f2d40; }
.p-datepicker .p-datepicker-header {
padding: 0.5rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
margin: 0;
border-bottom: 1px solid #304562;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-datepicker .p-datepicker-header .p-datepicker-prev,
.p-datepicker .p-datepicker-header .p-datepicker-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,
.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,
.p-datepicker .p-datepicker-header .p-datepicker-next:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 2rem; }
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
margin-right: 0.5rem; }
.p-datepicker table {
font-size: 1rem;
margin: 0.5rem 0; }
.p-datepicker table th {
padding: 0.5rem; }
.p-datepicker table th > span {
width: 2.5rem;
height: 2.5rem; }
.p-datepicker table td {
padding: 0.5rem; }
.p-datepicker table td > span {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
transition: box-shadow 0.2s;
border: 1px solid transparent; }
.p-datepicker table td > span.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-datepicker table td > span:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datepicker table td.p-datepicker-today > span {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-datepicker table td.p-datepicker-today > span.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-datepicker .p-datepicker-buttonbar {
padding: 1rem 0;
border-top: 1px solid #304562; }
.p-datepicker .p-datepicker-buttonbar .p-button {
width: auto; }
.p-datepicker .p-timepicker {
border-top: 1px solid #304562;
padding: 0.5rem; }
.p-datepicker .p-timepicker button {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datepicker .p-timepicker button:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datepicker .p-timepicker button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datepicker .p-timepicker button:last-child {
margin-top: .2em; }
.p-datepicker .p-timepicker span {
font-size: 1.25rem; }
.p-datepicker .p-timepicker > div {
padding: 0 0.5rem; }
.p-datepicker.p-datepicker-timeonly .p-timepicker {
border-top: 0 none; }
.p-datepicker .p-monthpicker {
margin: 0.5rem 0; }
.p-datepicker .p-monthpicker .p-monthpicker-month {
padding: 0.5rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
border-right: 1px solid #304562;
padding-right: 0.5rem;
padding-left: 0.5rem;
padding-top: 0;
padding-bottom: 0; }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
padding-left: 0; }
.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
padding-right: 0;
border-right: 0 none; }
.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datepicker-mask.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
@media screen and (max-width: 769px) {
.p-datepicker table th, .p-datepicker table td {
padding: 0; } }
.p-cascadeselect {
background: #17212f;
border: 1px solid #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-cascadeselect:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-cascadeselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-cascadeselect .p-cascadeselect-label {
background: transparent;
border: 0 none;
padding: 0.5rem 0.5rem; }
.p-cascadeselect .p-cascadeselect-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-cascadeselect .p-cascadeselect-label:enabled:focus {
outline: 0 none;
box-shadow: none; }
.p-cascadeselect .p-cascadeselect-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-cascadeselect.p-invalid.p-component {
border-color: #ef9a9a; }
.p-cascadeselect-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-cascadeselect-panel .p-cascadeselect-items {
padding: 0.5rem 0; }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item {
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content {
padding: 0.5rem 1rem; }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-group-icon {
font-size: 0.875rem; }
.p-input-filled .p-cascadeselect {
background: #304562; }
.p-input-filled .p-cascadeselect:not(.p-disabled):hover {
background-color: #304562; }
.p-input-filled .p-cascadeselect:not(.p-disabled).p-focus {
background-color: #304562; }
.p-checkbox {
width: 20px;
height: 20px; }
.p-checkbox .p-checkbox-box {
border: 2px solid #304562;
background: #17212f;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-checkbox .p-checkbox-box .p-checkbox-icon {
transition-duration: 0.2s;
color: #ffffff;
font-size: 14px; }
.p-checkbox .p-checkbox-box.p-highlight {
border-color: #BA68C8;
background: #BA68C8; }
.p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover {
border-color: #a241b2;
background: #a241b2;
color: #ffffff; }
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {
border-color: #BA68C8; }
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {
border-color: #a241b2;
background: #a241b2;
color: #ffffff; }
.p-checkbox.p-invalid > .p-checkbox-box {
border-color: #ef9a9a; }
.p-input-filled .p-checkbox .p-checkbox-box {
background-color: #304562; }
.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {
background: #BA68C8; }
.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {
background-color: #304562; }
.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {
background: #a241b2; }
.p-chips .p-chips-multiple-container {
padding: 0.25rem 0.5rem; }
.p-chips .p-chips-multiple-container:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-chips .p-chips-multiple-container:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-chips .p-chips-multiple-container .p-chips-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
margin-left: 0.5rem; }
.p-chips .p-chips-multiple-container .p-chips-input-token {
padding: 0.25rem 0; }
.p-chips .p-chips-multiple-container .p-chips-input-token input {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0; }
.p-chips.p-invalid.p-component > .p-inputtext {
border-color: #ef9a9a; }
.p-colorpicker-preview {
width: 2rem;
height: 2rem; }
.p-colorpicker-panel {
background: #1f2d40;
border-color: #304562; }
.p-colorpicker-panel .p-colorpicker-color-handle,
.p-colorpicker-panel .p-colorpicker-hue-handle {
border-color: #ffffff; }
.p-colorpicker-overlay-panel {
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-dropdown {
background: #17212f;
border: 1px solid #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-dropdown:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-dropdown:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-dropdown.p-dropdown-clearable .p-dropdown-label {
padding-right: 1.5rem; }
.p-dropdown .p-dropdown-label {
background: transparent;
border: 0 none; }
.p-dropdown .p-dropdown-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-dropdown .p-dropdown-label:enabled:focus {
outline: 0 none;
box-shadow: none; }
.p-dropdown .p-dropdown-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-dropdown .p-dropdown-clear-icon {
color: rgba(255, 255, 255, 0.6);
right: 2.357rem; }
.p-dropdown.p-invalid.p-component {
border-color: #ef9a9a; }
.p-dropdown-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-dropdown-panel .p-dropdown-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {
padding-right: 1.5rem; }
.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-dropdown-panel .p-dropdown-header .p-dropdown-clearable-filter .p-dropdown-filter {
padding-right: 3rem; }
.p-dropdown-panel .p-dropdown-header .p-dropdown-clearable-filter .p-dropdown-filter-clear-icon {
right: 2rem; }
.p-dropdown-panel .p-dropdown-items {
padding: 0.5rem 0; }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600; }
.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-input-filled .p-dropdown {
background: #304562; }
.p-input-filled .p-dropdown:not(.p-disabled):hover {
background-color: #304562; }
.p-input-filled .p-dropdown:not(.p-disabled).p-focus {
background-color: #304562; }
.p-editor-container .p-editor-toolbar {
background: #1f2d40;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-editor-container .p-editor-toolbar.ql-snow {
border: 1px solid #304562; }
.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {
stroke: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {
fill: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {
border: 0 none;
color: rgba(255, 255, 255, 0.6); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px;
padding: 0.5rem 0; }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {
padding: 0.5rem 1rem; }
.p-editor-container .p-editor-content {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-editor-container .p-editor-content.ql-snow {
border: 1px solid #304562; }
.p-editor-container .p-editor-content .ql-editor {
background: #17212f;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-editor-container .ql-snow.ql-toolbar button:hover,
.p-editor-container .ql-snow.ql-toolbar button:focus {
color: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {
stroke: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {
fill: rgba(255, 255, 255, 0.87); }
.p-editor-container .ql-snow.ql-toolbar button.ql-active,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
color: #BA68C8; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {
stroke: #BA68C8; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {
fill: #BA68C8; }
.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,
.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {
color: #BA68C8; }
.p-inputgroup-addon {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border-top: 1px solid #304562;
border-left: 1px solid #304562;
border-bottom: 1px solid #304562;
padding: 0.5rem 0.5rem;
min-width: 2.357rem; }
.p-inputgroup-addon:last-child {
border-right: 1px solid #304562; }
.p-inputgroup > .p-component,
.p-inputgroup > .p-inputwrapper > .p-inputtext,
.p-inputgroup > .p-float-label > .p-component {
border-radius: 0;
margin: 0; }
.p-inputgroup > .p-component + .p-inputgroup-addon,
.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,
.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {
border-left: 0 none; }
.p-inputgroup > .p-component:focus,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,
.p-inputgroup > .p-float-label > .p-component:focus {
z-index: 1; }
.p-inputgroup > .p-component:focus ~ label,
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label,
.p-inputgroup > .p-float-label > .p-component:focus ~ label {
z-index: 1; }
.p-inputgroup-addon:first-child,
.p-inputgroup button:first-child,
.p-inputgroup input:first-child,
.p-inputgroup > .p-inputwrapper:first-child,
.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-inputgroup .p-float-label:first-child input {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-inputgroup-addon:last-child,
.p-inputgroup button:last-child,
.p-inputgroup input:last-child,
.p-inputgroup > .p-inputwrapper:last-child,
.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-inputgroup .p-float-label:last-child input {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-fluid .p-inputgroup .p-button {
width: auto; }
.p-fluid .p-inputgroup .p-button.p-button-icon-only {
width: 2.357rem; }
.p-inputnumber.p-invalid.p-component > .p-inputtext {
border-color: #ef9a9a; }
.p-inputswitch {
width: 3rem;
height: 1.75rem; }
.p-inputswitch .p-inputswitch-slider {
background: #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 30px; }
.p-inputswitch .p-inputswitch-slider:before {
background: rgba(255, 255, 255, 0.6);
width: 1.25rem;
height: 1.25rem;
left: 0.25rem;
margin-top: -0.625rem;
border-radius: 50%;
transition-duration: 0.2s; }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
transform: translateX(1.25rem); }
.p-inputswitch.p-focus .p-inputswitch-slider {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {
background: rgba(255, 255, 255, 0.03); }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {
background: #BA68C8; }
.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {
background: rgba(255, 255, 255, 0.87); }
.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
background: #b052c0; }
.p-inputswitch.p-invalid {
border-color: #ef9a9a; }
.p-inputtext {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
color: rgba(255, 255, 255, 0.87);
background: #17212f;
padding: 0.5rem 0.5rem;
border: 1px solid #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
appearance: none;
border-radius: 3px; }
.p-inputtext:enabled:hover {
border-color: #BA68C8; }
.p-inputtext:enabled:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-inputtext.p-invalid.p-component {
border-color: #ef9a9a; }
.p-inputtext.p-inputtext-sm {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem; }
.p-inputtext.p-inputtext-lg {
font-size: 1.25rem;
padding: 0.625rem 0.625rem; }
.p-float-label > label {
left: 0.5rem;
color: rgba(255, 255, 255, 0.6);
transition-duration: 0.2s; }
.p-float-label > label.p-error {
color: #ef9a9a; }
.p-input-icon-left > i:first-of-type,
.p-input-icon-left > svg:first-of-type,
.p-input-icon-left > .p-input-prefix {
left: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-input-icon-left > .p-inputtext {
padding-left: 2rem; }
.p-input-icon-left.p-float-label > label {
left: 2rem; }
.p-input-icon-right > i:last-of-type,
.p-input-icon-right > svg:last-of-type,
.p-input-icon-right > .p-input-suffix {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-input-icon-right > .p-inputtext {
padding-right: 2rem; }
::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.6); }
:-moz-placeholder {
color: rgba(255, 255, 255, 0.6); }
::-moz-placeholder {
color: rgba(255, 255, 255, 0.6); }
:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-input-filled .p-inputtext {
background-color: #304562; }
.p-input-filled .p-inputtext:enabled:hover {
background-color: #304562; }
.p-input-filled .p-inputtext:enabled:focus {
background-color: #304562; }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem; }
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem; }
.p-listbox {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px; }
.p-listbox .p-listbox-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-listbox .p-listbox-header .p-listbox-filter {
padding-right: 1.5rem; }
.p-listbox .p-listbox-header .p-listbox-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-listbox .p-listbox-list {
padding: 0.5rem 0; }
.p-listbox .p-listbox-list .p-listbox-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
border-radius: 0; }
.p-listbox .p-listbox-list .p-listbox-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-listbox .p-listbox-list .p-listbox-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-listbox .p-listbox-list .p-listbox-item-group {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600; }
.p-listbox .p-listbox-list .p-listbox-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-listbox.p-invalid {
border-color: #ef9a9a; }
.p-multiselect {
background: #17212f;
border: 1px solid #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-multiselect:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-multiselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-multiselect.p-multiselect-clearable .p-multiselect-label {
padding-right: 1.5rem; }
.p-multiselect .p-multiselect-label {
padding: 0.5rem 0.5rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-multiselect .p-multiselect-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-multiselect.p-multiselect-chip .p-multiselect-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
margin-left: 0.5rem; }
.p-multiselect .p-multiselect-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-multiselect .p-multiselect-clear-icon {
color: rgba(255, 255, 255, 0.6);
right: 2.357rem; }
.p-multiselect.p-invalid.p-component {
border-color: #ef9a9a; }
.p-inputwrapper-filled.p-multiselect.p-multiselect-chip .p-multiselect-label {
padding: 0.25rem 0.5rem; }
.p-inputwrapper-filled.p-multiselect.p-multiselect-clearable .p-multiselect-label {
padding-right: 1.5rem; }
.p-multiselect-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-multiselect-panel .p-multiselect-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {
padding-right: 1.5rem; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-multiselect-panel .p-multiselect-header .p-checkbox {
margin-right: 0.5rem; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close {
margin-left: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-multiselect-panel .p-multiselect-items {
padding: 0.5rem 0; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item {
margin: 0;
padding: 0.5rem 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.2s;
border-radius: 0; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {
margin-right: 0.5rem; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-item-group {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600; }
.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-input-filled .p-multiselect {
background: #304562; }
.p-input-filled .p-multiselect:not(.p-disabled):hover {
background-color: #304562; }
.p-input-filled .p-multiselect:not(.p-disabled).p-focus {
background-color: #304562; }
.p-password.p-invalid.p-component > .p-inputtext {
border-color: #ef9a9a; }
.p-password-panel {
padding: 1rem;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-password-panel .p-password-meter {
margin-bottom: 0.5rem;
background: #304562; }
.p-password-panel .p-password-meter .p-password-strength.weak {
background: #F48FB1; }
.p-password-panel .p-password-meter .p-password-strength.medium {
background: #FFE082; }
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5; }
.p-radiobutton {
width: 20px;
height: 20px; }
.p-radiobutton .p-radiobutton-box {
border: 2px solid #304562;
background: #17212f;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {
border-color: #BA68C8; }
.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {
width: 12px;
height: 12px;
transition-duration: 0.2s;
background-color: #ffffff; }
.p-radiobutton .p-radiobutton-box.p-highlight {
border-color: #BA68C8;
background: #BA68C8; }
.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
border-color: #a241b2;
background: #a241b2;
color: #ffffff; }
.p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; }
.p-radiobutton:focus {
outline: 0 none; }
.p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #304562; }
.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {
background-color: #304562; }
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {
background: #BA68C8; }
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
background: #a241b2; }
.p-rating .p-rating-icon {
color: rgba(255, 255, 255, 0.87);
margin-left: 0.5rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
font-size: 1.143rem; }
.p-rating .p-rating-icon.p-rating-cancel {
color: #F48FB1; }
.p-rating .p-rating-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-rating .p-rating-icon:first-child {
margin-left: 0; }
.p-rating .p-rating-icon.pi-star {
color: #BA68C8; }
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {
color: #BA68C8; }
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {
color: #F48FB1; }
.p-selectbutton .p-button {
background: #1f2d40;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-selectbutton .p-button .p-button-icon-left,
.p-selectbutton .p-button .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-selectbutton .p-button.p-highlight {
background: #BA68C8;
border-color: #BA68C8;
color: #ffffff; }
.p-selectbutton .p-button.p-highlight .p-button-icon-left,
.p-selectbutton .p-button.p-highlight .p-button-icon-right {
color: #ffffff; }
.p-selectbutton .p-button.p-highlight:hover {
background: #b052c0;
border-color: #b052c0;
color: #ffffff; }
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {
color: #ffffff; }
.p-selectbutton.p-invalid > .p-button {
border-color: #ef9a9a; }
.p-slider {
background: #304562;
border: 0 none;
border-radius: 3px; }
.p-slider.p-slider-horizontal {
height: 0.286rem; }
.p-slider.p-slider-horizontal .p-slider-handle {
margin-top: -0.5715rem;
margin-left: -0.5715rem; }
.p-slider.p-slider-vertical {
width: 0.286rem; }
.p-slider.p-slider-vertical .p-slider-handle {
margin-left: -0.5715rem;
margin-bottom: -0.5715rem; }
.p-slider .p-slider-handle {
height: 1.143rem;
width: 1.143rem;
background: #304562;
border: 2px solid #BA68C8;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-slider .p-slider-handle:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-slider .p-slider-range {
background: #BA68C8; }
.p-slider:not(.p-disabled) .p-slider-handle:hover {
background: #BA68C8;
border-color: #BA68C8; }
.p-treeselect {
background: #17212f;
border: 1px solid #304562;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-treeselect:not(.p-disabled):hover {
border-color: #BA68C8; }
.p-treeselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
border-color: #BA68C8; }
.p-treeselect .p-treeselect-label {
padding: 0.5rem 0.5rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-treeselect .p-treeselect-label.p-placeholder {
color: rgba(255, 255, 255, 0.6); }
.p-treeselect.p-treeselect-chip .p-treeselect-token {
padding: 0.25rem 0.5rem;
margin-right: 0.5rem;
background: #304562;
color: rgba(255, 255, 255, 0.87);
border-radius: 16px; }
.p-treeselect .p-treeselect-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-treeselect.p-invalid.p-component {
border-color: #ef9a9a; }
.p-inputwrapper-filled.p-treeselect.p-treeselect-chip .p-treeselect-label {
padding: 0.25rem 0.5rem; }
.p-treeselect-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-treeselect-panel .p-treeselect-header {
padding: 0.5rem 1rem;
border-bottom: 0 none;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
margin: 0;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-filter-container {
margin-right: 0.5rem; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-filter-container .p-treeselect-filter {
padding-right: 1.5rem; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-filter-container .p-treeselect-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-treeselect-panel .p-treeselect-header .p-treeselect-filter-container.p-treeselect-clearable-filter .p-treeselect-filter {
padding-right: 3rem; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-filter-container.p-treeselect-clearable-filter .p-treeselect-filter-clear-icon {
right: 2rem; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-close {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-treeselect-panel .p-treeselect-header .p-treeselect-close:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-treeselect-panel .p-treeselect-header .p-treeselect-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-treeselect-panel .p-treeselect-items-wrapper .p-tree {
border: 0 none; }
.p-treeselect-panel .p-treeselect-items-wrapper .p-treeselect-empty-message {
padding: 0.5rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: transparent; }
.p-input-filled .p-treeselect {
background: #304562; }
.p-input-filled .p-treeselect:not(.p-disabled):hover {
background-color: #304562; }
.p-input-filled .p-treeselect:not(.p-disabled).p-focus {
background-color: #304562; }
.p-togglebutton.p-button {
background: #1f2d40;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-togglebutton.p-button .p-button-icon-left,
.p-togglebutton.p-button .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {
color: rgba(255, 255, 255, 0.6); }
.p-togglebutton.p-button.p-highlight {
background: #BA68C8;
border-color: #BA68C8;
color: #ffffff; }
.p-togglebutton.p-button.p-highlight .p-button-icon-left,
.p-togglebutton.p-button.p-highlight .p-button-icon-right {
color: #ffffff; }
.p-togglebutton.p-button.p-highlight:hover {
background: #b052c0;
border-color: #b052c0;
color: #ffffff; }
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {
color: #ffffff; }
.p-togglebutton.p-button.p-invalid > .p-button {
border-color: #ef9a9a; }
.p-button {
color: #ffffff;
background: #BA68C8;
border: 1px solid #BA68C8;
padding: 0.5rem 1rem;
font-size: 1rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px; }
.p-buttonbutton:enabled:hover {
background: #b052c0;
color: #ffffff;
border-color: #b052c0; }
.p-buttonbutton:enabled:active {
background: #a241b2;
color: #ffffff;
border-color: #a241b2; }
.p-button:not(button):not(.p-disabled):hover {
background: #b052c0;
color: #ffffff;
border-color: #b052c0; }
.p-button:not(button):not(.p-disabled):active {
background: #a241b2;
color: #ffffff;
border-color: #a241b2; }
.p-buttona:enabled:hover {
background: #b052c0;
color: #ffffff;
border-color: #b052c0; }
.p-buttona:enabled:active {
background: #a241b2;
color: #ffffff;
border-color: #a241b2; }
.p-button:not(a):not(.p-disabled):hover {
background: #b052c0;
color: #ffffff;
border-color: #b052c0; }
.p-button:not(a):not(.p-disabled):active {
background: #a241b2;
color: #ffffff;
border-color: #a241b2; }
.p-button.p-button-outlined {
background-color: transparent;
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlinedbutton:enabled:hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlinedbutton:enabled:active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlineda:enabled:hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlineda:enabled:active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border: 1px solid; }
.p-button.p-button-outlined.p-button-plain {
color: rgba(255, 255, 255, 0.6);
border-color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plainbutton:enabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plainbutton:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plain:not(button):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plain:not(button):not(.p-disabled):active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plaina:enabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plaina:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plain:not(a):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-outlined.p-button-plain:not(a):not(.p-disabled):active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text {
background-color: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-textbutton:enabled:hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-textbutton:enabled:active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-text:not(button):not(.p-disabled):active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-texta:enabled:hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-texta:enabled:active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(186, 104, 200, 0.04);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-text:not(a):not(.p-disabled):active {
background: rgba(186, 104, 200, 0.16);
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-text.p-button-plain {
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plainbutton:enabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plainbutton:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:not(button):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:not(button):not(.p-disabled):active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plaina:enabled:hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plaina:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:not(a):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.6); }
.p-button.p-button-text.p-button-plain:not(a):not(.p-disabled):active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6); }
.p-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-button .p-button-icon-left {
margin-right: 0.5rem; }
.p-button .p-button-icon-right {
margin-left: 0.5rem; }
.p-button .p-button-icon-bottom {
margin-top: 0.5rem; }
.p-button .p-button-icon-top {
margin-bottom: 0.5rem; }
.p-button .p-badge {
margin-left: 0.5rem;
min-width: 1rem;
height: 1rem;
line-height: 1rem;
color: #BA68C8;
background-color: #ffffff; }
.p-button.p-button-raised {
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); }
.p-button.p-button-rounded {
border-radius: 2rem; }
.p-button.p-button-icon-only {
width: 2.357rem;
padding: 0.5rem 0; }
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
margin: 0; }
.p-button.p-button-icon-only.p-button-rounded {
border-radius: 50%;
height: 2.357rem; }
.p-button.p-button-sm {
font-size: 0.875rem;
padding: 0.4375rem 0.875rem; }
.p-button.p-button-sm .p-button-icon {
font-size: 0.875rem; }
.p-button.p-button-lg {
font-size: 1.25rem;
padding: 0.625rem 1.25rem; }
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; }
.p-button.p-button-loading-label-only.p-button-loading-left .p-button-label {
margin-left: 0.5rem; }
.p-button.p-button-loading-label-only.p-button-loading-right .p-button-label {
margin-right: 0.5rem; }
.p-button.p-button-loading-label-only.p-button-loading-top .p-button-label {
margin-top: 0.5rem; }
.p-button.p-button-loading-label-only.p-button-loading-bottom .p-button-label {
margin-bottom: 0.5rem; }
.p-button.p-button-loading-label-only .p-button-loading-icon {
margin: 0; }
.p-fluid .p-button {
width: 100%; }
.p-fluid .p-button-icon-only {
width: 2.357rem; }
.p-fluid .p-buttonset {
display: flex; }
.p-fluid .p-buttonset .p-button {
flex: 1; }
.p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button, .p-fileupload-choose.p-button-secondary {
color: #ffffff;
background: #78909C;
border: 1px solid #78909C; }
.p-button.p-button-secondarybutton:enabled:hover, .p-buttonset.p-button-secondary > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-secondary > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-secondarybutton:enabled:hover {
background: #69838f;
color: #ffffff;
border-color: #69838f; }
.p-button.p-button-secondarybutton:enabled:focus, .p-buttonset.p-button-secondary > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-secondary > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-secondarybutton:enabled:focus {
box-shadow: 0 0 0 1px #a1b1ba; }
.p-button.p-button-secondarybutton:enabled:active, .p-buttonset.p-button-secondary > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-secondary > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-secondarybutton:enabled:active {
background: #5d747f;
color: #ffffff;
border-color: #5d747f; }
.p-button.p-button-secondary:not(button):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary:not(button):not(.p-disabled):hover {
background: #69838f;
color: #ffffff;
border-color: #69838f; }
.p-button.p-button-secondary:not(button):not(.p-disabled):focus, .p-buttonset.p-button-secondary > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-secondary > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-secondary:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #a1b1ba; }
.p-button.p-button-secondary:not(button):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary:not(button):not(.p-disabled):active {
background: #5d747f;
color: #ffffff;
border-color: #5d747f; }
.p-button.p-button-secondarya:enabled:hover, .p-buttonset.p-button-secondary > .p-buttona:enabled:hover, .p-splitbutton.p-button-secondary > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-secondarya:enabled:hover {
background: #69838f;
color: #ffffff;
border-color: #69838f; }
.p-button.p-button-secondarya:enabled:focus, .p-buttonset.p-button-secondary > .p-buttona:enabled:focus, .p-splitbutton.p-button-secondary > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-secondarya:enabled:focus {
box-shadow: 0 0 0 1px #a1b1ba; }
.p-button.p-button-secondarya:enabled:active, .p-buttonset.p-button-secondary > .p-buttona:enabled:active, .p-splitbutton.p-button-secondary > .p-buttona:enabled:active, .p-fileupload-choose.p-button-secondarya:enabled:active {
background: #5d747f;
color: #ffffff;
border-color: #5d747f; }
.p-button.p-button-secondary:not(a):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary:not(a):not(.p-disabled):hover {
background: #69838f;
color: #ffffff;
border-color: #69838f; }
.p-button.p-button-secondary:not(a):not(.p-disabled):focus, .p-buttonset.p-button-secondary > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-secondary > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-secondary:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #a1b1ba; }
.p-button.p-button-secondary:not(a):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary:not(a):not(.p-disabled):active {
background: #5d747f;
color: #ffffff;
border-color: #5d747f; }
.p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined, .p-fileupload-choose.p-button-secondary.p-button-outlined {
background-color: transparent;
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-secondary.p-button-outlinedbutton:enabled:hover {
background: rgba(120, 144, 156, 0.04);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-secondary.p-button-outlinedbutton:enabled:active {
background: rgba(120, 144, 156, 0.16);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(120, 144, 156, 0.04);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(120, 144, 156, 0.16);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlineda:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-secondary.p-button-outlineda:enabled:hover {
background: rgba(120, 144, 156, 0.04);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlineda:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-secondary.p-button-outlineda:enabled:active {
background: rgba(120, 144, 156, 0.16);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(120, 144, 156, 0.04);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(120, 144, 156, 0.16);
color: #78909C;
border: 1px solid; }
.p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text, .p-fileupload-choose.p-button-secondary.p-button-text {
background-color: transparent;
color: #78909C;
border-color: transparent; }
.p-button.p-button-secondary.p-button-textbutton:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-secondary.p-button-textbutton:enabled:hover {
background: rgba(120, 144, 156, 0.04);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-textbutton:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-secondary.p-button-textbutton:enabled:active {
background: rgba(120, 144, 156, 0.16);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(120, 144, 156, 0.04);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary.p-button-text:not(button):not(.p-disabled):active {
background: rgba(120, 144, 156, 0.16);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-texta:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-secondary.p-button-texta:enabled:hover {
background: rgba(120, 144, 156, 0.04);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-texta:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-secondary.p-button-texta:enabled:active {
background: rgba(120, 144, 156, 0.16);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-secondary.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(120, 144, 156, 0.04);
border-color: transparent;
color: #78909C; }
.p-button.p-button-secondary.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-secondary > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-secondary.p-button-text:not(a):not(.p-disabled):active {
background: rgba(120, 144, 156, 0.16);
border-color: transparent;
color: #78909C; }
.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button, .p-fileupload-choose.p-button-info {
color: #121212;
background: #81D4FA;
border: 1px solid #81D4FA; }
.p-button.p-button-infobutton:enabled:hover, .p-buttonset.p-button-info > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-info > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-infobutton:enabled:hover {
background: #5dc8f9;
color: #121212;
border-color: #5dc8f9; }
.p-button.p-button-infobutton:enabled:focus, .p-buttonset.p-button-info > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-info > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-infobutton:enabled:focus {
box-shadow: 0 0 0 1px #a7e1fc; }
.p-button.p-button-infobutton:enabled:active, .p-buttonset.p-button-info > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-info > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-infobutton:enabled:active {
background: #38bbf7;
color: #121212;
border-color: #38bbf7; }
.p-button.p-button-info:not(button):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-info:not(button):not(.p-disabled):hover {
background: #5dc8f9;
color: #121212;
border-color: #5dc8f9; }
.p-button.p-button-info:not(button):not(.p-disabled):focus, .p-buttonset.p-button-info > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-info > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-info:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #a7e1fc; }
.p-button.p-button-info:not(button):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-info:not(button):not(.p-disabled):active {
background: #38bbf7;
color: #121212;
border-color: #38bbf7; }
.p-button.p-button-infoa:enabled:hover, .p-buttonset.p-button-info > .p-buttona:enabled:hover, .p-splitbutton.p-button-info > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-infoa:enabled:hover {
background: #5dc8f9;
color: #121212;
border-color: #5dc8f9; }
.p-button.p-button-infoa:enabled:focus, .p-buttonset.p-button-info > .p-buttona:enabled:focus, .p-splitbutton.p-button-info > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-infoa:enabled:focus {
box-shadow: 0 0 0 1px #a7e1fc; }
.p-button.p-button-infoa:enabled:active, .p-buttonset.p-button-info > .p-buttona:enabled:active, .p-splitbutton.p-button-info > .p-buttona:enabled:active, .p-fileupload-choose.p-button-infoa:enabled:active {
background: #38bbf7;
color: #121212;
border-color: #38bbf7; }
.p-button.p-button-info:not(a):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-info:not(a):not(.p-disabled):hover {
background: #5dc8f9;
color: #121212;
border-color: #5dc8f9; }
.p-button.p-button-info:not(a):not(.p-disabled):focus, .p-buttonset.p-button-info > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-info > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-info:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #a7e1fc; }
.p-button.p-button-info:not(a):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-info:not(a):not(.p-disabled):active {
background: #38bbf7;
color: #121212;
border-color: #38bbf7; }
.p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined, .p-fileupload-choose.p-button-info.p-button-outlined {
background-color: transparent;
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-info.p-button-outlinedbutton:enabled:hover {
background: rgba(129, 212, 250, 0.04);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-info.p-button-outlinedbutton:enabled:active {
background: rgba(129, 212, 250, 0.16);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-info.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(129, 212, 250, 0.04);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-info.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(129, 212, 250, 0.16);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlineda:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-info.p-button-outlineda:enabled:hover {
background: rgba(129, 212, 250, 0.04);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlineda:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-info.p-button-outlineda:enabled:active {
background: rgba(129, 212, 250, 0.16);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-info.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(129, 212, 250, 0.04);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-info.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(129, 212, 250, 0.16);
color: #81D4FA;
border: 1px solid; }
.p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text, .p-fileupload-choose.p-button-info.p-button-text {
background-color: transparent;
color: #81D4FA;
border-color: transparent; }
.p-button.p-button-info.p-button-textbutton:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-info.p-button-textbutton:enabled:hover {
background: rgba(129, 212, 250, 0.04);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-textbutton:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-info.p-button-textbutton:enabled:active {
background: rgba(129, 212, 250, 0.16);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-info.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(129, 212, 250, 0.04);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-info.p-button-text:not(button):not(.p-disabled):active {
background: rgba(129, 212, 250, 0.16);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-texta:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-info.p-button-texta:enabled:hover {
background: rgba(129, 212, 250, 0.04);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-texta:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-info.p-button-texta:enabled:active {
background: rgba(129, 212, 250, 0.16);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-info > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-info > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-info.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(129, 212, 250, 0.04);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-info.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-info > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-info > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-info.p-button-text:not(a):not(.p-disabled):active {
background: rgba(129, 212, 250, 0.16);
border-color: transparent;
color: #81D4FA; }
.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button, .p-fileupload-choose.p-button-success {
color: #121212;
background: #C5E1A5;
border: 1px solid #C5E1A5; }
.p-button.p-button-successbutton:enabled:hover, .p-buttonset.p-button-success > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-success > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-successbutton:enabled:hover {
background: #b2d788;
color: #121212;
border-color: #b2d788; }
.p-button.p-button-successbutton:enabled:focus, .p-buttonset.p-button-success > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-success > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-successbutton:enabled:focus {
box-shadow: 0 0 0 1px #d6eac0; }
.p-button.p-button-successbutton:enabled:active, .p-buttonset.p-button-success > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-success > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-successbutton:enabled:active {
background: #9fce6b;
color: #121212;
border-color: #9fce6b; }
.p-button.p-button-success:not(button):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-success:not(button):not(.p-disabled):hover {
background: #b2d788;
color: #121212;
border-color: #b2d788; }
.p-button.p-button-success:not(button):not(.p-disabled):focus, .p-buttonset.p-button-success > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-success > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-success:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #d6eac0; }
.p-button.p-button-success:not(button):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-success:not(button):not(.p-disabled):active {
background: #9fce6b;
color: #121212;
border-color: #9fce6b; }
.p-button.p-button-successa:enabled:hover, .p-buttonset.p-button-success > .p-buttona:enabled:hover, .p-splitbutton.p-button-success > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-successa:enabled:hover {
background: #b2d788;
color: #121212;
border-color: #b2d788; }
.p-button.p-button-successa:enabled:focus, .p-buttonset.p-button-success > .p-buttona:enabled:focus, .p-splitbutton.p-button-success > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-successa:enabled:focus {
box-shadow: 0 0 0 1px #d6eac0; }
.p-button.p-button-successa:enabled:active, .p-buttonset.p-button-success > .p-buttona:enabled:active, .p-splitbutton.p-button-success > .p-buttona:enabled:active, .p-fileupload-choose.p-button-successa:enabled:active {
background: #9fce6b;
color: #121212;
border-color: #9fce6b; }
.p-button.p-button-success:not(a):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-success:not(a):not(.p-disabled):hover {
background: #b2d788;
color: #121212;
border-color: #b2d788; }
.p-button.p-button-success:not(a):not(.p-disabled):focus, .p-buttonset.p-button-success > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-success > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-success:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #d6eac0; }
.p-button.p-button-success:not(a):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-success:not(a):not(.p-disabled):active {
background: #9fce6b;
color: #121212;
border-color: #9fce6b; }
.p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined, .p-fileupload-choose.p-button-success.p-button-outlined {
background-color: transparent;
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-success.p-button-outlinedbutton:enabled:hover {
background: rgba(197, 225, 165, 0.04);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-success.p-button-outlinedbutton:enabled:active {
background: rgba(197, 225, 165, 0.16);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-success.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(197, 225, 165, 0.04);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-success.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(197, 225, 165, 0.16);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlineda:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-success.p-button-outlineda:enabled:hover {
background: rgba(197, 225, 165, 0.04);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlineda:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-success.p-button-outlineda:enabled:active {
background: rgba(197, 225, 165, 0.16);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-success.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(197, 225, 165, 0.04);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-success.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(197, 225, 165, 0.16);
color: #C5E1A5;
border: 1px solid; }
.p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text, .p-fileupload-choose.p-button-success.p-button-text {
background-color: transparent;
color: #C5E1A5;
border-color: transparent; }
.p-button.p-button-success.p-button-textbutton:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-success.p-button-textbutton:enabled:hover {
background: rgba(197, 225, 165, 0.04);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-textbutton:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-success.p-button-textbutton:enabled:active {
background: rgba(197, 225, 165, 0.16);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-success.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(197, 225, 165, 0.04);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-success.p-button-text:not(button):not(.p-disabled):active {
background: rgba(197, 225, 165, 0.16);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-texta:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-success.p-button-texta:enabled:hover {
background: rgba(197, 225, 165, 0.04);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-texta:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-success.p-button-texta:enabled:active {
background: rgba(197, 225, 165, 0.16);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-success > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-success > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-success.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(197, 225, 165, 0.04);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-success.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-success > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-success > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-success.p-button-text:not(a):not(.p-disabled):active {
background: rgba(197, 225, 165, 0.16);
border-color: transparent;
color: #C5E1A5; }
.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button, .p-fileupload-choose.p-button-warning {
color: #121212;
background: #FFE082;
border: 1px solid #FFE082; }
.p-button.p-button-warningbutton:enabled:hover, .p-buttonset.p-button-warning > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-warning > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-warningbutton:enabled:hover {
background: #ffd65c;
color: #121212;
border-color: #ffd65c; }
.p-button.p-button-warningbutton:enabled:focus, .p-buttonset.p-button-warning > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-warning > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-warningbutton:enabled:focus {
box-shadow: 0 0 0 1px #ffe9a8; }
.p-button.p-button-warningbutton:enabled:active, .p-buttonset.p-button-warning > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-warning > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-warningbutton:enabled:active {
background: #ffcd35;
color: #121212;
border-color: #ffcd35; }
.p-button.p-button-warning:not(button):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning:not(button):not(.p-disabled):hover {
background: #ffd65c;
color: #121212;
border-color: #ffd65c; }
.p-button.p-button-warning:not(button):not(.p-disabled):focus, .p-buttonset.p-button-warning > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-warning > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-warning:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #ffe9a8; }
.p-button.p-button-warning:not(button):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-warning:not(button):not(.p-disabled):active {
background: #ffcd35;
color: #121212;
border-color: #ffcd35; }
.p-button.p-button-warninga:enabled:hover, .p-buttonset.p-button-warning > .p-buttona:enabled:hover, .p-splitbutton.p-button-warning > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-warninga:enabled:hover {
background: #ffd65c;
color: #121212;
border-color: #ffd65c; }
.p-button.p-button-warninga:enabled:focus, .p-buttonset.p-button-warning > .p-buttona:enabled:focus, .p-splitbutton.p-button-warning > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-warninga:enabled:focus {
box-shadow: 0 0 0 1px #ffe9a8; }
.p-button.p-button-warninga:enabled:active, .p-buttonset.p-button-warning > .p-buttona:enabled:active, .p-splitbutton.p-button-warning > .p-buttona:enabled:active, .p-fileupload-choose.p-button-warninga:enabled:active {
background: #ffcd35;
color: #121212;
border-color: #ffcd35; }
.p-button.p-button-warning:not(a):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning:not(a):not(.p-disabled):hover {
background: #ffd65c;
color: #121212;
border-color: #ffd65c; }
.p-button.p-button-warning:not(a):not(.p-disabled):focus, .p-buttonset.p-button-warning > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-warning > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-warning:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #ffe9a8; }
.p-button.p-button-warning:not(a):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-warning:not(a):not(.p-disabled):active {
background: #ffcd35;
color: #121212;
border-color: #ffcd35; }
.p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined, .p-fileupload-choose.p-button-warning.p-button-outlined {
background-color: transparent;
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-warning.p-button-outlinedbutton:enabled:hover {
background: rgba(255, 224, 130, 0.04);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-warning.p-button-outlinedbutton:enabled:active {
background: rgba(255, 224, 130, 0.16);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(255, 224, 130, 0.04);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-warning.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(255, 224, 130, 0.16);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlineda:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-warning.p-button-outlineda:enabled:hover {
background: rgba(255, 224, 130, 0.04);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlineda:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-warning.p-button-outlineda:enabled:active {
background: rgba(255, 224, 130, 0.16);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(255, 224, 130, 0.04);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-warning.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(255, 224, 130, 0.16);
color: #FFE082;
border: 1px solid; }
.p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text, .p-fileupload-choose.p-button-warning.p-button-text {
background-color: transparent;
color: #FFE082;
border-color: transparent; }
.p-button.p-button-warning.p-button-textbutton:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-warning.p-button-textbutton:enabled:hover {
background: rgba(255, 224, 130, 0.04);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-textbutton:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-warning.p-button-textbutton:enabled:active {
background: rgba(255, 224, 130, 0.16);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(255, 224, 130, 0.04);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-warning.p-button-text:not(button):not(.p-disabled):active {
background: rgba(255, 224, 130, 0.16);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-texta:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-warning.p-button-texta:enabled:hover {
background: rgba(255, 224, 130, 0.04);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-texta:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-warning.p-button-texta:enabled:active {
background: rgba(255, 224, 130, 0.16);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-warning > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-warning.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(255, 224, 130, 0.04);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-warning.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-warning > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-warning > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-warning.p-button-text:not(a):not(.p-disabled):active {
background: rgba(255, 224, 130, 0.16);
border-color: transparent;
color: #FFE082; }
.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button, .p-fileupload-choose.p-button-help {
color: #121212;
background: #CE93D8;
border: 1px solid #CE93D8; }
.p-button.p-button-helpbutton:enabled:hover, .p-buttonset.p-button-help > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-help > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-helpbutton:enabled:hover {
background: #c278ce;
color: #121212;
border-color: #c278ce; }
.p-button.p-button-helpbutton:enabled:focus, .p-buttonset.p-button-help > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-help > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-helpbutton:enabled:focus {
box-shadow: 0 0 0 1px #ddb3e4; }
.p-button.p-button-helpbutton:enabled:active, .p-buttonset.p-button-help > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-help > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-helpbutton:enabled:active {
background: #b65ec5;
color: #121212;
border-color: #b65ec5; }
.p-button.p-button-help:not(button):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-help:not(button):not(.p-disabled):hover {
background: #c278ce;
color: #121212;
border-color: #c278ce; }
.p-button.p-button-help:not(button):not(.p-disabled):focus, .p-buttonset.p-button-help > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-help > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-help:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #ddb3e4; }
.p-button.p-button-help:not(button):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-help:not(button):not(.p-disabled):active {
background: #b65ec5;
color: #121212;
border-color: #b65ec5; }
.p-button.p-button-helpa:enabled:hover, .p-buttonset.p-button-help > .p-buttona:enabled:hover, .p-splitbutton.p-button-help > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-helpa:enabled:hover {
background: #c278ce;
color: #121212;
border-color: #c278ce; }
.p-button.p-button-helpa:enabled:focus, .p-buttonset.p-button-help > .p-buttona:enabled:focus, .p-splitbutton.p-button-help > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-helpa:enabled:focus {
box-shadow: 0 0 0 1px #ddb3e4; }
.p-button.p-button-helpa:enabled:active, .p-buttonset.p-button-help > .p-buttona:enabled:active, .p-splitbutton.p-button-help > .p-buttona:enabled:active, .p-fileupload-choose.p-button-helpa:enabled:active {
background: #b65ec5;
color: #121212;
border-color: #b65ec5; }
.p-button.p-button-help:not(a):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-help:not(a):not(.p-disabled):hover {
background: #c278ce;
color: #121212;
border-color: #c278ce; }
.p-button.p-button-help:not(a):not(.p-disabled):focus, .p-buttonset.p-button-help > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-help > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-help:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #ddb3e4; }
.p-button.p-button-help:not(a):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-help:not(a):not(.p-disabled):active {
background: #b65ec5;
color: #121212;
border-color: #b65ec5; }
.p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined, .p-fileupload-choose.p-button-help.p-button-outlined {
background-color: transparent;
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-help.p-button-outlinedbutton:enabled:hover {
background: rgba(206, 147, 216, 0.04);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-help.p-button-outlinedbutton:enabled:active {
background: rgba(206, 147, 216, 0.16);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-help.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(206, 147, 216, 0.04);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-help.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(206, 147, 216, 0.16);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlineda:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-help.p-button-outlineda:enabled:hover {
background: rgba(206, 147, 216, 0.04);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlineda:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-help.p-button-outlineda:enabled:active {
background: rgba(206, 147, 216, 0.16);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-help.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(206, 147, 216, 0.04);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-help.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(206, 147, 216, 0.16);
color: #CE93D8;
border: 1px solid; }
.p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text, .p-fileupload-choose.p-button-help.p-button-text {
background-color: transparent;
color: #CE93D8;
border-color: transparent; }
.p-button.p-button-help.p-button-textbutton:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-help.p-button-textbutton:enabled:hover {
background: rgba(206, 147, 216, 0.04);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-textbutton:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-help.p-button-textbutton:enabled:active {
background: rgba(206, 147, 216, 0.16);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-help.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(206, 147, 216, 0.04);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-help.p-button-text:not(button):not(.p-disabled):active {
background: rgba(206, 147, 216, 0.16);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-texta:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-help.p-button-texta:enabled:hover {
background: rgba(206, 147, 216, 0.04);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-texta:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-help.p-button-texta:enabled:active {
background: rgba(206, 147, 216, 0.16);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-help > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-help > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-help.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(206, 147, 216, 0.04);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-help.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-help > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-help > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-help.p-button-text:not(a):not(.p-disabled):active {
background: rgba(206, 147, 216, 0.16);
border-color: transparent;
color: #CE93D8; }
.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button, .p-fileupload-choose.p-button-danger {
color: #121212;
background: #F48FB1;
border: 1px solid #F48FB1; }
.p-button.p-button-dangerbutton:enabled:hover, .p-buttonset.p-button-danger > .p-buttonbutton:enabled:hover, .p-splitbutton.p-button-danger > .p-buttonbutton:enabled:hover, .p-fileupload-choose.p-button-dangerbutton:enabled:hover {
background: #f16c98;
color: #121212;
border-color: #f16c98; }
.p-button.p-button-dangerbutton:enabled:focus, .p-buttonset.p-button-danger > .p-buttonbutton:enabled:focus, .p-splitbutton.p-button-danger > .p-buttonbutton:enabled:focus, .p-fileupload-choose.p-button-dangerbutton:enabled:focus {
box-shadow: 0 0 0 1px #f7b1c8; }
.p-button.p-button-dangerbutton:enabled:active, .p-buttonset.p-button-danger > .p-buttonbutton:enabled:active, .p-splitbutton.p-button-danger > .p-buttonbutton:enabled:active, .p-fileupload-choose.p-button-dangerbutton:enabled:active {
background: #ed4980;
color: #121212;
border-color: #ed4980; }
.p-button.p-button-danger:not(button):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger:not(button):not(.p-disabled):hover {
background: #f16c98;
color: #121212;
border-color: #f16c98; }
.p-button.p-button-danger:not(button):not(.p-disabled):focus, .p-buttonset.p-button-danger > .p-button:not(button):not(.p-disabled):focus, .p-splitbutton.p-button-danger > .p-button:not(button):not(.p-disabled):focus, .p-fileupload-choose.p-button-danger:not(button):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #f7b1c8; }
.p-button.p-button-danger:not(button):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button:not(button):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-danger:not(button):not(.p-disabled):active {
background: #ed4980;
color: #121212;
border-color: #ed4980; }
.p-button.p-button-dangera:enabled:hover, .p-buttonset.p-button-danger > .p-buttona:enabled:hover, .p-splitbutton.p-button-danger > .p-buttona:enabled:hover, .p-fileupload-choose.p-button-dangera:enabled:hover {
background: #f16c98;
color: #121212;
border-color: #f16c98; }
.p-button.p-button-dangera:enabled:focus, .p-buttonset.p-button-danger > .p-buttona:enabled:focus, .p-splitbutton.p-button-danger > .p-buttona:enabled:focus, .p-fileupload-choose.p-button-dangera:enabled:focus {
box-shadow: 0 0 0 1px #f7b1c8; }
.p-button.p-button-dangera:enabled:active, .p-buttonset.p-button-danger > .p-buttona:enabled:active, .p-splitbutton.p-button-danger > .p-buttona:enabled:active, .p-fileupload-choose.p-button-dangera:enabled:active {
background: #ed4980;
color: #121212;
border-color: #ed4980; }
.p-button.p-button-danger:not(a):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger:not(a):not(.p-disabled):hover {
background: #f16c98;
color: #121212;
border-color: #f16c98; }
.p-button.p-button-danger:not(a):not(.p-disabled):focus, .p-buttonset.p-button-danger > .p-button:not(a):not(.p-disabled):focus, .p-splitbutton.p-button-danger > .p-button:not(a):not(.p-disabled):focus, .p-fileupload-choose.p-button-danger:not(a):not(.p-disabled):focus {
box-shadow: 0 0 0 1px #f7b1c8; }
.p-button.p-button-danger:not(a):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button:not(a):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-danger:not(a):not(.p-disabled):active {
background: #ed4980;
color: #121212;
border-color: #ed4980; }
.p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined, .p-fileupload-choose.p-button-danger.p-button-outlined {
background-color: transparent;
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlinedbutton:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlinedbutton:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlinedbutton:enabled:hover, .p-fileupload-choose.p-button-danger.p-button-outlinedbutton:enabled:hover {
background: rgba(244, 143, 177, 0.04);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlinedbutton:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlinedbutton:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlinedbutton:enabled:active, .p-fileupload-choose.p-button-danger.p-button-outlinedbutton:enabled:active {
background: rgba(244, 143, 177, 0.16);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:not(button):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger.p-button-outlined:not(button):not(.p-disabled):hover {
background: rgba(244, 143, 177, 0.04);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:not(button):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-danger.p-button-outlined:not(button):not(.p-disabled):active {
background: rgba(244, 143, 177, 0.16);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlineda:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlineda:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlineda:enabled:hover, .p-fileupload-choose.p-button-danger.p-button-outlineda:enabled:hover {
background: rgba(244, 143, 177, 0.04);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlineda:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlineda:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlineda:enabled:active, .p-fileupload-choose.p-button-danger.p-button-outlineda:enabled:active {
background: rgba(244, 143, 177, 0.16);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:not(a):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger.p-button-outlined:not(a):not(.p-disabled):hover {
background: rgba(244, 143, 177, 0.04);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-outlined:not(a):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-danger.p-button-outlined:not(a):not(.p-disabled):active {
background: rgba(244, 143, 177, 0.16);
color: #F48FB1;
border: 1px solid; }
.p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text, .p-fileupload-choose.p-button-danger.p-button-text {
background-color: transparent;
color: #F48FB1;
border-color: transparent; }
.p-button.p-button-danger.p-button-textbutton:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-textbutton:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-textbutton:enabled:hover, .p-fileupload-choose.p-button-danger.p-button-textbutton:enabled:hover {
background: rgba(244, 143, 177, 0.04);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-textbutton:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-textbutton:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-textbutton:enabled:active, .p-fileupload-choose.p-button-danger.p-button-textbutton:enabled:active {
background: rgba(244, 143, 177, 0.16);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-text:not(button):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:not(button):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger.p-button-text:not(button):not(.p-disabled):hover {
background: rgba(244, 143, 177, 0.04);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-text:not(button):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button.p-button-text:not(button):not(.p-disabled):active, .p-fileupload-choose.p-button-danger.p-button-text:not(button):not(.p-disabled):active {
background: rgba(244, 143, 177, 0.16);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-texta:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-texta:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-texta:enabled:hover, .p-fileupload-choose.p-button-danger.p-button-texta:enabled:hover {
background: rgba(244, 143, 177, 0.04);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-texta:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-texta:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-texta:enabled:active, .p-fileupload-choose.p-button-danger.p-button-texta:enabled:active {
background: rgba(244, 143, 177, 0.16);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-text:not(a):not(.p-disabled):hover, .p-buttonset.p-button-danger > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:not(a):not(.p-disabled):hover, .p-fileupload-choose.p-button-danger.p-button-text:not(a):not(.p-disabled):hover {
background: rgba(244, 143, 177, 0.04);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-danger.p-button-text:not(a):not(.p-disabled):active, .p-buttonset.p-button-danger > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-splitbutton.p-button-danger > .p-button.p-button-text:not(a):not(.p-disabled):active, .p-fileupload-choose.p-button-danger.p-button-text:not(a):not(.p-disabled):active {
background: rgba(244, 143, 177, 0.16);
border-color: transparent;
color: #F48FB1; }
.p-button.p-button-link {
color: #BA68C8;
background: transparent;
border: transparent; }
.p-button.p-button-linkbutton:enabled:hover {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-linkbutton:enabled:hover .p-button-label {
text-decoration: underline; }
.p-button.p-button-linkbutton:enabled:focus {
background: transparent;
box-shadow: 0 0 0 0.1rem #cf95d9;
border-color: transparent; }
.p-button.p-button-linkbutton:enabled:active {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-link:not(button):not(.p-disabled):hover {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-link:not(button):not(.p-disabled):hover .p-button-label {
text-decoration: underline; }
.p-button.p-button-link:not(button):not(.p-disabled):focus {
background: transparent;
box-shadow: 0 0 0 0.1rem #cf95d9;
border-color: transparent; }
.p-button.p-button-link:not(button):not(.p-disabled):active {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-linka:enabled:hover {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-linka:enabled:hover .p-button-label {
text-decoration: underline; }
.p-button.p-button-linka:enabled:focus {
background: transparent;
box-shadow: 0 0 0 0.1rem #cf95d9;
border-color: transparent; }
.p-button.p-button-linka:enabled:active {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-link:not(a):not(.p-disabled):hover {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-button.p-button-link:not(a):not(.p-disabled):hover .p-button-label {
text-decoration: underline; }
.p-button.p-button-link:not(a):not(.p-disabled):focus {
background: transparent;
box-shadow: 0 0 0 0.1rem #cf95d9;
border-color: transparent; }
.p-button.p-button-link:not(a):not(.p-disabled):active {
background: transparent;
color: #BA68C8;
border-color: transparent; }
.p-carousel .p-carousel-content .p-carousel-prev,
.p-carousel .p-carousel-content .p-carousel-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin: 0.5rem; }
.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,
.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-carousel .p-carousel-content .p-carousel-prev:focus,
.p-carousel .p-carousel-content .p-carousel-next:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-carousel .p-carousel-indicators {
padding: 1rem; }
.p-carousel .p-carousel-indicators .p-carousel-indicator {
margin-right: 0.5rem;
margin-bottom: 0.5rem; }
.p-carousel .p-carousel-indicators .p-carousel-indicator button {
background-color: #304562;
width: 2rem;
height: 0.5rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 0; }
.p-carousel .p-carousel-indicators .p-carousel-indicator button:hover {
background: rgba(255, 255, 255, 0.03); }
.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-datatable .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-datatable .p-datatable-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datatable .p-datatable-footer {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datatable .p-datatable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #304562;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
transition: box-shadow 0.2s; }
.p-datatable .p-datatable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #304562;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40; }
.p-datatable .p-sortable-column .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-datatable .p-sortable-column .p-sortable-column-badge {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16);
margin-left: 0.5rem; }
.p-datatable .p-sortable-column:not(.p-highlight):not(.p-sortable-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-sortable-column:not(.p-highlight):not(.p-sortable-disabled):hover .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-sortable-column.p-highlight {
background: #1f2d40;
color: #BA68C8; }
.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {
color: #BA68C8; }
.p-datatable .p-sortable-column.p-highlight:not(.p-sortable-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: #BA68C8; }
.p-datatable .p-sortable-column.p-highlight:not(.p-sortable-disabled):hover .p-sortable-column-icon {
color: #BA68C8; }
.p-datatable .p-sortable-column:focus {
box-shadow: inset 0 0 0 1px #cf95d9;
outline: 0 none; }
.p-datatable .p-datatable-tbody > tr {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
outline-color: #cf95d9; }
.p-datatable .p-datatable-tbody > tr > td {
text-align: left;
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
outline-color: #cf95d9; }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus,
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; }
.p-datatable .p-datatable-tbody > tr > td.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
box-shadow: inset 0 2px 0 0 rgba(186, 104, 200, 0.16); }
.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {
box-shadow: inset 0 -2px 0 0 rgba(186, 104, 200, 0.16); }
.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-datatable .p-column-resizer-helper {
background: #BA68C8; }
.p-datatable .p-datatable-scrollable-header,
.p-datatable .p-datatable-scrollable-footer {
background: #1f2d40; }
.p-datatable .p-datatable-loading-icon {
font-size: 2rem; }
.p-datatable.p-datatable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-footer {
border-width: 0 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-paginator-top {
border-width: 0 1px 0 1px; }
.p-datatable.p-datatable-gridlines .p-paginator-bottom {
border-width: 0 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
border-width: 1px 1px 1px 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {
border-width: 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {
border-width: 1px; }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd {
background: rgba(255, 255, 255, 0.01); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-highlight .p-row-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-highlight .p-row-toggler:hover {
color: rgba(255, 255, 255, 0.87); }
.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd + .p-row-expanded {
background: rgba(255, 255, 255, 0.01); }
.p-datatable.p-datatable-sm .p-datatable-header {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-sm .p-datatable-footer {
padding: 0.5rem 0.5rem; }
.p-datatable.p-datatable-lg .p-datatable-header {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {
padding: 1.25rem 1.25rem; }
.p-datatable.p-datatable-lg .p-datatable-footer {
padding: 1.25rem 1.25rem; }
.p-datatable-drag-selection-helper {
background: rgba(186, 104, 200, 0.16); }
.p-dataview .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-dataview .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-dataview .p-dataview-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-dataview .p-dataview-content {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0; }
.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {
border: solid #304562;
border-width: 0 0 1px 0; }
.p-dataview .p-dataview-footer {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.p-dataview .p-dataview-loading-icon {
font-size: 2rem; }
.p-datascroller .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-datascroller .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-datascroller .p-datascroller-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-datascroller .p-datascroller-content {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0; }
.p-datascroller.p-datascroller-inline .p-datascroller-list > li {
border: solid #304562;
border-width: 0 0 1px 0; }
.p-datascroller .p-datascroller-footer {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.fc .fc-view-container th {
background: #1f2d40;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-view-container td.fc-widget-content {
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-view-container td.fc-head-container {
border: 1px solid #304562; }
.fc .fc-view-container .fc-view {
background: #1f2d40; }
.fc .fc-view-container .fc-row {
border-right: 1px solid #304562; }
.fc .fc-view-container .fc-event {
background: #b052c0;
border: 1px solid #b052c0;
color: #ffffff; }
.fc .fc-view-container .fc-divider {
background: #1f2d40;
border: 1px solid #304562; }
.fc .fc-toolbar .fc-button {
color: #ffffff;
background: #BA68C8;
border: 1px solid #BA68C8;
font-size: 1rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 3px;
display: flex;
align-items: center; }
.fc .fc-toolbar .fc-button:enabled:hover {
background: #b052c0;
color: #ffffff;
border-color: #b052c0; }
.fc .fc-toolbar .fc-button:enabled:active {
background: #a241b2;
color: #ffffff;
border-color: #a241b2; }
.fc .fc-toolbar .fc-button:enabled:active:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-left {
font-family: 'PrimeIcons' !important;
text-indent: 0;
font-size: 1rem; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-left:before {
content: ""; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-right {
font-family: 'PrimeIcons' !important;
text-indent: 0;
font-size: 1rem; }
.fc .fc-toolbar .fc-button .fc-icon-chevron-right:before {
content: ""; }
.fc .fc-toolbar .fc-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc .fc-toolbar .fc-button.fc-timeGridDay-button {
background: #1f2d40;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {
background: #BA68C8;
border-color: #BA68C8;
color: #ffffff; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {
background: #b052c0;
border-color: #b052c0;
color: #ffffff; }
.fc .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9;
z-index: 1; }
.fc .fc-toolbar .fc-button-group .fc-button {
border-radius: 0; }
.fc .fc-toolbar .fc-button-group .fc-button:first-child {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.fc .fc-toolbar .fc-button-group .fc-button:last-child {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-orderlist .p-orderlist-controls {
padding: 1rem; }
.p-orderlist .p-orderlist-controls .p-button {
margin-bottom: 0.5rem; }
.p-orderlist .p-orderlist-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
padding: 1rem;
font-weight: 600;
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-orderlist .p-orderlist-list {
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-orderlist .p-orderlist-list .p-orderlist-item {
padding: 0.5rem 1rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.2s, box-shadow 0.2s; }
.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-orderlist .p-orderlist-list .p-orderlist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
@media screen and (max-width: 960px) {
.p-orderlist {
flex-direction: column; }
.p-orderlist .p-orderlist-controls {
padding: 1rem;
flex-direction: row; }
.p-orderlist .p-orderlist-controls .p-button {
margin-right: 0.5rem;
margin-bottom: 0; }
.p-orderlist .p-orderlist-controls .p-button:last-child {
margin-right: 0; } }
.p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-organizationchart .p-organizationchart-node-content.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i {
color: rgba(117, 47, 129, 0.16); }
.p-organizationchart .p-organizationchart-line-down {
background: rgba(255, 255, 255, 0.6); }
.p-organizationchart .p-organizationchart-line-left {
border-right: 1px solid #304562;
border-color: rgba(255, 255, 255, 0.6); }
.p-organizationchart .p-organizationchart-line-top {
border-top: 1px solid #304562;
border-color: rgba(255, 255, 255, 0.6); }
.p-organizationchart .p-organizationchart-node-content {
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 1rem; }
.p-organizationchart .p-organizationchart-node-content .p-node-toggler {
background: inherit;
color: inherit;
border-radius: 50%; }
.p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-paginator {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border: solid #304562;
border-width: 1px;
padding: 0.5rem 1rem;
border-radius: 3px; }
.p-paginator .p-paginator-first,
.p-paginator .p-paginator-prev,
.p-paginator .p-paginator-next,
.p-paginator .p-paginator-last {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,
.p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: transparent;
color: rgba(255, 255, 255, 0.87); }
.p-paginator .p-paginator-first {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.p-paginator .p-paginator-last {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.p-paginator .p-dropdown {
margin-left: 0.5rem;
height: 2.286em; }
.p-paginator .p-dropdown .p-dropdown-label {
padding-right: 0; }
.p-paginator .p-paginator-current {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
padding: 0 0.5rem; }
.p-paginator .p-paginator-pages .p-paginator-page {
background-color: transparent;
border: 0 none;
color: rgba(255, 255, 255, 0.6);
min-width: 2.286em;
height: 2.286em;
margin: 0.143rem;
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {
background: rgba(186, 104, 200, 0.16);
border-color: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
border-color: transparent;
color: rgba(255, 255, 255, 0.87); }
.p-picklist .p-picklist-buttons {
padding: 1rem; }
.p-picklist .p-picklist-buttons .p-button {
margin-bottom: 0.5rem; }
.p-picklist .p-picklist-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
padding: 1rem;
font-weight: 600;
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-picklist .p-picklist-list {
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-picklist .p-picklist-list .p-picklist-item {
padding: 0.5rem 1rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.2s, box-shadow 0.2s; }
.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-picklist .p-picklist-list .p-picklist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-picklist .p-picklist-list .p-picklist-item.p-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16); }
@media screen and (max-width: 960px) {
.p-picklist {
flex-direction: column; }
.p-picklist .p-picklist-buttons {
padding: 1rem;
flex-direction: row; }
.p-picklist .p-picklist-buttons .p-button {
margin-right: 0.5rem;
margin-bottom: 0; }
.p-picklist .p-picklist-buttons .p-button:last-child {
margin-right: 0; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-right:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-double-right:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-left:before {
content: ""; }
.p-picklist .p-picklist-transfer-buttons .pi-angle-double-left:before {
content: ""; } }
.p-tree {
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
border-radius: 3px; }
.p-tree .p-tree-container .p-treenode {
padding: 0.143rem; }
.p-tree .p-tree-container .p-treenode .p-treenode-content {
border-radius: 3px;
transition: box-shadow 0.2s;
padding: 0; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {
margin-right: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {
margin-right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox {
margin-right: 0.5rem; }
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler,
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler:hover,
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon:hover {
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-tree .p-tree-filter-container {
margin-bottom: 0.5rem; }
.p-tree .p-tree-filter-container .p-tree-filter {
width: 100%;
padding-right: 1.5rem; }
.p-tree .p-tree-filter-container .p-tree-filter-icon {
right: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-tree .p-treenode-children {
padding: 0 0 0 1rem; }
.p-tree .p-tree-loading-icon {
font-size: 2rem; }
.p-treetable .p-paginator-top {
border-width: 1px 0 1px 0;
border-radius: 0; }
.p-treetable .p-paginator-bottom {
border-width: 0 0 1px 0;
border-radius: 0; }
.p-treetable .p-treetable-header {
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-treetable .p-treetable-footer {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem;
font-weight: 600; }
.p-treetable .p-treetable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #304562;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
transition: box-shadow 0.2s; }
.p-treetable .p-treetable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #304562;
border-width: 0 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40; }
.p-treetable .p-sortable-column {
outline-color: #cf95d9; }
.p-treetable .p-sortable-column .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-treetable .p-sortable-column .p-sortable-column-badge {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: rgba(255, 255, 255, 0.87);
background: rgba(186, 104, 200, 0.16);
margin-left: 0.5rem; }
.p-treetable .p-sortable-column:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-sortable-column.p-highlight {
background: #1f2d40;
color: #BA68C8; }
.p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon {
color: #BA68C8; }
.p-treetable .p-treetable-tbody > tr {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.2s;
outline-color: #cf95d9; }
.p-treetable .p-treetable-tbody > tr > td {
text-align: left;
border: 1px solid #304562;
border-width: 0 0 1px 0;
padding: 1rem 1rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin-right: 0.5rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox {
margin-right: 0.5rem; }
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {
color: rgba(255, 255, 255, 0.87); }
.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {
color: rgba(255, 255, 255, 0.87); }
.p-treetable .p-column-resizer-helper {
background: #BA68C8; }
.p-treetable .p-treetable-scrollable-header,
.p-treetable .p-treetable-scrollable-footer {
background: #1f2d40; }
.p-treetable .p-treetable-loading-icon {
font-size: 2rem; }
.p-treetable.p-treetable-gridlines .p-datatable-header {
border-width: 1px 1px 0 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-footer {
border-width: 0 1px 1px 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-top {
border-width: 0 1px 0 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-bottom {
border-width: 0 1px 1px 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {
border-width: 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {
border-width: 1px; }
.p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {
border-width: 1px; }
.p-treetable.p-treetable-sm .p-treetable-header {
padding: 0.875rem 0.875rem; }
.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-sm .p-treetable-footer {
padding: 0.5rem 0.5rem; }
.p-treetable.p-treetable-lg .p-treetable-header {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {
padding: 1.25rem 1.25rem; }
.p-treetable.p-treetable-lg .p-treetable-footer {
padding: 1.25rem 1.25rem; }
.p-timeline .p-timeline-event-marker {
border: 2px solid #BA68C8;
border-radius: 50%;
width: 1rem;
height: 1rem;
background-color: #1f2d40; }
.p-timeline .p-timeline-event-connector {
background-color: #304562; }
.p-timeline.p-timeline-vertical .p-timeline-event-opposite,
.p-timeline.p-timeline-vertical .p-timeline-event-content {
padding: 0 1rem; }
.p-timeline.p-timeline-vertical .p-timeline-event-connector {
width: 2px; }
.p-timeline.p-timeline-horizontal .p-timeline-event-opposite,
.p-timeline.p-timeline-horizontal .p-timeline-event-content {
padding: 1rem 0; }
.p-timeline.p-timeline-horizontal .p-timeline-event-connector {
height: 2px; }
.p-accordion .p-accordion-header .p-accordion-header-link {
padding: 1rem;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon {
margin-right: 0.5rem; }
.p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {
background: #1f2d40;
border-color: #304562;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {
border-color: #304562;
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-accordion .p-accordion-content {
padding: 1rem;
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-accordion .p-accordion-tab {
margin-bottom: 0; }
.p-accordion .p-accordion-tab .p-accordion-header .p-accordion-header-link {
border-radius: 0; }
.p-accordion .p-accordion-tab .p-accordion-content {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header .p-accordion-header-link {
border-top: 0 none; }
.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link, .p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {
border-top: 0 none; }
.p-accordion .p-accordion-tab:first-child .p-accordion-header .p-accordion-header-link {
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-header-link {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-content {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-card {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-card .p-card-body {
padding: 1rem; }
.p-card .p-card-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem; }
.p-card .p-card-subtitle {
font-weight: 700;
margin-bottom: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-card .p-card-content {
padding: 1rem 0; }
.p-card .p-card-footer {
padding: 1rem 0 0 0; }
.p-fieldset {
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px; }
.p-fieldset .p-fieldset-legend {
padding: 1rem;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
border-radius: 3px; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {
padding: 0;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {
padding: 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {
margin-right: 0.5rem; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.p-fieldset .p-fieldset-content {
padding: 1rem; }
.p-divider .p-divider-content {
background-color: #1f2d40; }
.p-divider.p-divider-horizontal {
margin: 1rem 0;
padding: 0 1rem; }
.p-divider.p-divider-horizontal:before {
border-top: 1px #304562; }
.p-divider.p-divider-horizontal .p-divider-content {
padding: 0 0.5rem; }
.p-divider.p-divider-vertical {
margin: 0 1rem;
padding: 1rem 0; }
.p-divider.p-divider-vertical:before {
border-left: 1px #304562; }
.p-divider.p-divider-vertical .p-divider-content {
padding: 0.5rem 0; }
.p-panel .p-panel-header {
border: 1px solid #304562;
padding: 1rem;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-panel .p-panel-header .p-panel-title {
font-weight: 600; }
.p-panel .p-panel-header .p-panel-header-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-panel .p-panel-header .p-panel-header-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-panel.p-panel-toggleable .p-panel-header {
padding: 0.5rem 1rem; }
.p-panel .p-panel-content {
padding: 1rem;
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
border-top: 0 none; }
.p-panel .p-panel-footer {
padding: 0.5rem 1rem;
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border-top: 0 none; }
.p-splitter {
border: 1px solid #304562;
background: #1f2d40;
border-radius: 3px;
color: rgba(255, 255, 255, 0.87); }
.p-splitter .p-splitter-gutter {
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
background: rgba(255, 255, 255, 0.03); }
.p-splitter .p-splitter-gutter .p-splitter-gutter-handle {
background: #304562; }
.p-splitter .p-splitter-gutter-resizing {
background: #304562; }
.p-scrollpanel .p-scrollpanel-bar {
background: #304562;
border: 0 none; }
.p-tabview .p-tabview-nav {
background: transparent;
border: 1px solid #304562;
border-width: 0 0 2px 0; }
.p-tabview .p-tabview-nav li {
margin-right: 0; }
.p-tabview .p-tabview-nav li .p-tabview-nav-link {
border: solid #304562;
border-width: 0 0 2px 0;
border-color: transparent transparent #304562 transparent;
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
padding: 1rem;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
transition: box-shadow 0.2s;
margin: 0 0 -2px 0; }
.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {
background: #1f2d40;
border-color: #BA68C8;
color: rgba(255, 255, 255, 0.87); }
.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {
background: #1f2d40;
border-color: #BA68C8;
color: #BA68C8; }
.p-tabview .p-tabview-panels {
background: #1f2d40;
padding: 1rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-toolbar {
background: #1f2d40;
border: 1px solid #304562;
padding: 1rem;
border-radius: 3px; }
.p-toolbar .p-toolbar-separator {
margin: 0 0.5rem; }
.p-confirm-popup {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); }
.p-confirm-popup .p-confirm-popup-content {
padding: 1rem; }
.p-confirm-popup .p-confirm-popup-footer {
text-align: right;
padding: 0 1rem 1rem 1rem; }
.p-confirm-popup .p-confirm-popup-footer button {
margin: 0 0.5rem 0 0;
width: auto; }
.p-confirm-popup .p-confirm-popup-footer button:last-child {
margin: 0; }
.p-confirm-popup:after {
border: solid transparent;
border-color: rgba(31, 45, 64, 0);
border-bottom-color: #1f2d40; }
.p-confirm-popup:before {
border: solid transparent;
border-color: rgba(48, 69, 98, 0);
border-bottom-color: #304562; }
.p-confirm-popup.p-confirm-popup-flipped:after {
border-top-color: #1f2d40; }
.p-confirm-popup.p-confirm-popup-flipped:before {
border-top-color: #304562; }
.p-confirm-popup .p-confirm-popup-icon {
font-size: 1.5rem; }
.p-confirm-popup .p-confirm-popup-message {
margin-left: 1rem; }
.p-dialog {
border-radius: 3px;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
border: 1px solid #304562; }
.p-dialog .p-dialog-header {
border-bottom: 0 none;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 1.5rem;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-dialog .p-dialog-header .p-dialog-title {
font-weight: 600;
font-size: 1.25rem; }
.p-dialog .p-dialog-header .p-dialog-header-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin-right: 0.5rem; }
.p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-dialog .p-dialog-header .p-dialog-header-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-dialog .p-dialog-header .p-dialog-header-icon:last-child {
margin-right: 0; }
.p-dialog .p-dialog-content {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 0 1.5rem 2rem 1.5rem; }
.p-dialog .p-dialog-footer {
border-top: 0 none;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 0 1.5rem 1.5rem 1.5rem;
text-align: right;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-dialog .p-dialog-footer button {
margin: 0 0.5rem 0 0;
width: auto; }
.p-dialog.p-confirm-dialog .p-confirm-dialog-icon {
font-size: 2rem; }
.p-dialog.p-confirm-dialog .p-confirm-dialog-message {
margin-left: 1rem; }
.p-dialog-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4); }
.p-overlaypanel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); }
.p-overlaypanel .p-overlaypanel-content {
padding: 1rem; }
.p-overlaypanel .p-overlaypanel-close {
background: #BA68C8;
color: #ffffff;
width: 2rem;
height: 2rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%;
position: absolute;
top: -1rem;
right: -1rem; }
.p-overlaypanel .p-overlaypanel-close:enabled:hover {
background: #b052c0;
color: #ffffff; }
.p-overlaypanel:after {
border: solid transparent;
border-color: rgba(31, 45, 64, 0);
border-bottom-color: #1f2d40; }
.p-overlaypanel:before {
border: solid transparent;
border-color: rgba(48, 69, 98, 0);
border-bottom-color: #304562; }
.p-overlaypanel.p-overlaypanel-flipped:after {
border-top-color: #1f2d40; }
.p-overlaypanel.p-overlaypanel-flipped:before {
border-top-color: #304562; }
.p-sidebar {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
border: 1px solid #304562;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); }
.p-sidebar .p-sidebar-close,
.p-sidebar .p-sidebar-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-sidebar .p-sidebar-close:enabled:hover,
.p-sidebar .p-sidebar-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: rgba(255, 255, 255, 0.03); }
.p-sidebar .p-sidebar-close:focus,
.p-sidebar .p-sidebar-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-sidebar-mask.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
.p-tooltip .p-tooltip-text {
background: #304562;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0.5rem;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
border-radius: 3px; }
.p-tooltip.p-tooltip-right .p-tooltip-arrow {
border-right-color: #304562; }
.p-tooltip.p-tooltip-left .p-tooltip-arrow {
border-left-color: #304562; }
.p-tooltip.p-tooltip-top .p-tooltip-arrow {
border-top-color: #304562; }
.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {
border-bottom-color: #304562; }
.p-fileupload .p-fileupload-buttonbar {
background: #1f2d40;
padding: 1rem;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
border-bottom: 0 none;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-fileupload .p-fileupload-buttonbar .p-button {
margin-right: 0.5rem; }
.p-fileupload .p-fileupload-content {
background: #1f2d40;
padding: 2rem 1rem;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-fileupload .p-progressbar {
height: 0.25rem; }
.p-fileupload .p-fileupload-row > div {
padding: 1rem 1rem; }
.p-fileupload.p-fileupload-advanced .p-message {
margin-top: 0; }
.p-breadcrumb {
background: #1f2d40;
border: 1px solid #304562;
border-radius: 3px;
padding: 1rem; }
.p-breadcrumb ul li .p-menuitem-link {
transition: box-shadow 0.2s;
border-radius: 3px; }
.p-breadcrumb ul li .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6); }
.p-breadcrumb ul li.p-breadcrumb-chevron {
margin: 0 0.5rem 0 0.5rem;
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li:last-child .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-breadcrumb ul li:last-child .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6); }
.p-contextmenu {
padding: 0.25rem 0;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 12.5rem; }
.p-contextmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-contextmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-contextmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-contextmenu .p-submenu-list {
padding: 0.25rem 0;
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #17212f; }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-contextmenu .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-contextmenu .p-submenu-icon {
font-size: 0.875rem; }
.p-megamenu {
padding: 0.5rem;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s;
user-select: none; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {
background: #17212f; }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,
.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-megamenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-megamenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-megamenu .p-megamenu-panel {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-megamenu .p-megamenu-submenu-header {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-megamenu .p-megamenu-submenu {
padding: 0.25rem 0;
width: 12.5rem; }
.p-megamenu .p-megamenu-submenu .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #17212f; }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-megamenu.p-megamenu-vertical {
width: 12.5rem;
padding: 0.25rem 0; }
.p-menu {
padding: 0.25rem 0;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
width: 12.5rem; }
.p-menu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-menu.p-menu-overlay {
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-menu .p-submenu-header {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
border-top-right-radius: 0;
border-top-left-radius: 0; }
.p-menu .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-menubar {
padding: 0.5rem;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px; }
.p-menubar .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 3px;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {
background: #17212f; }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-submenu-list {
padding: 0.25rem 0;
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 12.5rem; }
.p-menubar .p-submenu-list .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-menubar .p-submenu-list .p-submenu-icon {
font-size: 0.875rem; }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #17212f; }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
@media screen and (max-width: 960px) {
.p-menubar {
position: relative; }
.p-menubar .p-menubar-button {
display: flex;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-menubar .p-menubar-button:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-menubar .p-menubar-root-list {
position: absolute;
display: none;
padding: 0.25rem 0;
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
width: 100%; }
.p-menubar .p-menubar-root-list .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-menubar .p-menubar-root-list .p-submenu-icon {
font-size: 0.875rem; }
.p-menubar .p-menubar-root-list > .p-menuitem {
width: 100%;
position: static; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {
margin-left: auto;
transition: transform 0.2s; }
.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon {
transform: rotate(-180deg); }
.p-menubar .p-menubar-root-list .p-submenu-list {
width: 100%;
position: static;
box-shadow: none;
border: 0 none; }
.p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon {
transition: transform 0.2s;
transform: rotate(90deg); }
.p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {
transform: rotate(-90deg); }
.p-menubar .p-menubar-root-list .p-menuitem {
width: 100%;
position: static; }
.p-menubar .p-menubar-root-list ul li a {
padding-left: 2.25rem; }
.p-menubar .p-menubar-root-list ul li ul li a {
padding-left: 3.75rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li a {
padding-left: 5.25rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li ul li a {
padding-left: 6.75rem; }
.p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {
padding-left: 8.25rem; }
.p-menubar.p-menubar-mobile-active .p-menubar-root-list {
display: flex;
flex-direction: column;
top: 100%;
left: 0;
z-index: 1; } }
.p-panelmenu .p-panelmenu-header > a {
padding: 1rem;
border: 1px solid #304562;
color: rgba(255, 255, 255, 0.87);
background: #1f2d40;
font-weight: 600;
border-radius: 3px;
transition: box-shadow 0.2s; }
.p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-header > a .p-menuitem-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-header > a:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {
background: rgba(255, 255, 255, 0.03);
border-color: #304562;
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-header.p-highlight {
margin-bottom: 0; }
.p-panelmenu .p-panelmenu-header.p-highlight > a {
background: #1f2d40;
border-color: #304562;
color: rgba(255, 255, 255, 0.87);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {
border-color: #304562;
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content {
padding: 0.25rem 0;
border: 1px solid #304562;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
margin-bottom: 0;
border-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon {
margin-right: 0.5rem; }
.p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) {
padding: 0 0 0 1rem; }
.p-panelmenu .p-panelmenu-panel {
margin-bottom: 0; }
.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {
border-radius: 0; }
.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {
border-radius: 0; }
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {
border-top: 0 none; }
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {
border-top: 0 none; }
.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {
border-top-right-radius: 3px;
border-top-left-radius: 3px; }
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; }
.p-slidemenu {
padding: 0.25rem 0;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
width: 12.5rem; }
.p-slidemenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-slidemenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-slidemenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-slidemenu.p-slidemenu-overlay {
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-slidemenu .p-slidemenu-list {
padding: 0.25rem 0;
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link {
background: #17212f; }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-text {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon, .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-slidemenu .p-slidemenu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-slidemenu .p-slidemenu-icon {
font-size: 0.875rem; }
.p-slidemenu .p-slidemenu-backward {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item .p-menuitem-link {
background: transparent;
transition: box-shadow 0.2s;
border-radius: 3px;
background: transparent; }
.p-steps .p-steps-item .p-menuitem-link .p-steps-number {
color: rgba(255, 255, 255, 0.87);
border: 0 none;
background: transparent;
min-width: 2rem;
height: 2rem;
line-height: 2rem;
font-size: 1.143rem;
z-index: 1;
border-radius: 50%; }
.p-steps .p-steps-item .p-menuitem-link .p-steps-title {
margin-top: 0.5rem;
color: rgba(255, 255, 255, 0.6); }
.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-steps .p-steps-item.p-highlight .p-steps-number {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item.p-highlight .p-steps-title {
font-weight: 600;
color: rgba(255, 255, 255, 0.87); }
.p-steps .p-steps-item:before {
content: ' ';
border-top: 1px solid #304562;
width: 100%;
top: 50%;
left: 0;
display: block;
position: absolute;
margin-top: -1rem; }
.p-tabmenu .p-tabmenu-nav {
background: transparent;
border: 1px solid #304562;
border-width: 0 0 2px 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {
margin-right: 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {
border: solid #304562;
border-width: 0 0 2px 0;
border-color: transparent transparent #304562 transparent;
background: #1f2d40;
color: rgba(255, 255, 255, 0.6);
padding: 1rem;
font-weight: 600;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
transition: box-shadow 0.2s;
margin: 0 0 -2px 0; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon {
margin-right: 0.5rem; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {
background: #1f2d40;
border-color: #BA68C8;
color: rgba(255, 255, 255, 0.87); }
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {
background: #1f2d40;
border-color: #BA68C8;
color: #BA68C8; }
.p-tieredmenu {
padding: 0.25rem 0;
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
border-radius: 3px;
width: 12.5rem; }
.p-tieredmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.2s;
user-select: none; }
.p-tieredmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem; }
.p-tieredmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 1px #cf95d9; }
.p-tieredmenu.p-tieredmenu-overlay {
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-tieredmenu .p-submenu-list {
padding: 0.25rem 0;
background: #1f2d40;
border: 1px solid #304562;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #17212f; }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.87); }
.p-tieredmenu .p-menu-separator {
border-top: 1px solid #304562;
margin: 0.25rem 0; }
.p-tieredmenu .p-submenu-icon {
font-size: 0.875rem; }
.p-inline-message {
padding: 0.5rem 0.5rem;
margin: 0;
border-radius: 3px; }
.p-inline-message.p-inline-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 1px;
color: #044868; }
.p-inline-message.p-inline-message-info .p-inline-message-icon {
color: #044868; }
.p-inline-message.p-inline-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 1px;
color: #224a23; }
.p-inline-message.p-inline-message-success .p-inline-message-icon {
color: #224a23; }
.p-inline-message.p-inline-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 1px;
color: #6d5100; }
.p-inline-message.p-inline-message-warn .p-inline-message-icon {
color: #6d5100; }
.p-inline-message.p-inline-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 1px;
color: #73000c; }
.p-inline-message.p-inline-message-error .p-inline-message-icon {
color: #73000c; }
.p-inline-message .p-inline-message-icon {
font-size: 1rem;
margin-right: 0.5rem; }
.p-inline-message .p-inline-message-text {
font-size: 1rem; }
.p-inline-message.p-inline-message-icon-only .p-inline-message-icon {
margin-right: 0; }
.p-message {
margin: 1rem 0;
border-radius: 3px; }
.p-message .p-message-wrapper {
padding: 1rem 1.5rem; }
.p-message .p-message-close {
width: 2rem;
height: 2rem;
border-radius: 50%;
background: transparent;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-message .p-message-close:hover {
background: rgba(255, 255, 255, 0.3); }
.p-message .p-message-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-message.p-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 0 0 0 6px;
color: #044868; }
.p-message.p-message-info .p-message-icon {
color: #044868; }
.p-message.p-message-info .p-message-close {
color: #044868; }
.p-message.p-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 0 0 0 6px;
color: #224a23; }
.p-message.p-message-success .p-message-icon {
color: #224a23; }
.p-message.p-message-success .p-message-close {
color: #224a23; }
.p-message.p-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 0 0 0 6px;
color: #6d5100; }
.p-message.p-message-warn .p-message-icon {
color: #6d5100; }
.p-message.p-message-warn .p-message-close {
color: #6d5100; }
.p-message.p-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 0 0 0 6px;
color: #73000c; }
.p-message.p-message-error .p-message-icon {
color: #73000c; }
.p-message.p-message-error .p-message-close {
color: #73000c; }
.p-message .p-message-text {
font-size: 1rem;
font-weight: 500; }
.p-message .p-message-icon {
font-size: 1.5rem;
margin-right: 0.5rem; }
.p-toast {
opacity: 0.9; }
.p-toast .p-toast-message {
margin: 0 0 1rem 0;
box-shadow: none;
border-radius: 3px; }
.p-toast .p-toast-message .p-toast-message-content {
padding: 1rem;
border-width: 0 0 0 6px; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {
margin: 0 0 0 1rem; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon {
font-size: 2rem; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-summary {
font-weight: 700; }
.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {
margin: 0.5rem 0 0 0; }
.p-toast .p-toast-message .p-toast-icon-close {
width: 2rem;
height: 2rem;
border-radius: 50%;
background: transparent;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-toast .p-toast-message .p-toast-icon-close:hover {
background: rgba(255, 255, 255, 0.3); }
.p-toast .p-toast-message .p-toast-icon-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-toast .p-toast-message.p-toast-message-info {
background: #B3E5FC;
border: solid #0891cf;
border-width: 0 0 0 6px;
color: #044868; }
.p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close {
color: #044868; }
.p-toast .p-toast-message.p-toast-message-success {
background: #C8E6C9;
border: solid #439446;
border-width: 0 0 0 6px;
color: #224a23; }
.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close {
color: #224a23; }
.p-toast .p-toast-message.p-toast-message-warn {
background: #FFECB3;
border: solid #d9a300;
border-width: 0 0 0 6px;
color: #6d5100; }
.p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close {
color: #6d5100; }
.p-toast .p-toast-message.p-toast-message-error {
background: #FFCDD2;
border: solid #e60017;
border-width: 0 0 0 6px;
color: #73000c; }
.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon,
.p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close {
color: #73000c; }
.p-galleria .p-galleria-close {
margin: 0.5rem;
background: transparent;
color: #f8f9fa;
width: 4rem;
height: 4rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-close .p-galleria-close-icon {
font-size: 2rem; }
.p-galleria .p-galleria-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-item-nav {
background: transparent;
color: #f8f9fa;
width: 4rem;
height: 4rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 3px;
margin: 0 0.5rem; }
.p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon,
.p-galleria .p-galleria-item-nav .p-galleria-item-next-icon {
font-size: 2rem; }
.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-caption {
background: rgba(0, 0, 0, 0.5);
color: #f8f9fa;
padding: 1rem; }
.p-galleria .p-galleria-indicators {
padding: 1rem; }
.p-galleria .p-galleria-indicators .p-galleria-indicator button {
background-color: #304562;
width: 1rem;
height: 1rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-indicators .p-galleria-indicator button:hover {
background: rgba(255, 255, 255, 0.1); }
.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator {
margin-right: 0.5rem; }
.p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator {
margin-bottom: 0.5rem; }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators {
background: rgba(0, 0, 0, 0.5); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button {
background: rgba(255, 255, 255, 0.4); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover {
background: rgba(255, 255, 255, 0.6); }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); }
.p-galleria .p-galleria-thumbnail-container {
background: rgba(0, 0, 0, 0.9);
padding: 1rem 0.25rem; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev,
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next {
margin: 0.5rem;
background-color: transparent;
color: #f8f9fa;
width: 2rem;
height: 2rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
border-radius: 50%; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover,
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover {
background: rgba(255, 255, 255, 0.1);
color: #f8f9fa; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content {
transition: box-shadow 0.2s; }
.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-galleria-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.9); }
.p-avatar {
background-color: #304562;
border-radius: 3px; }
.p-avatar.p-avatar-lg {
width: 3rem;
height: 3rem;
font-size: 1.5rem; }
.p-avatar.p-avatar-lg .p-avatar-icon {
font-size: 1.5rem; }
.p-avatar.p-avatar-xl {
width: 4rem;
height: 4rem;
font-size: 2rem; }
.p-avatar.p-avatar-xl .p-avatar-icon {
font-size: 2rem; }
.p-avatar-group .p-avatar {
border: 2px solid #1f2d40; }
.p-chip {
background-color: #304562;
color: rgba(255, 255, 255, 0.87);
border-radius: 16px;
padding: 0 0.5rem; }
.p-chip .p-chip-text {
line-height: 1.5;
margin-top: 0.25rem;
margin-bottom: 0.25rem; }
.p-chip .p-chip-icon {
margin-right: 0.5rem; }
.p-chip img {
width: 2rem;
height: 2rem;
margin-left: -0.5rem;
margin-right: 0.5rem; }
.p-chip .p-chip-remove-icon {
border-radius: 3px;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
margin-left: 0.5rem; }
.p-chip .p-chip-remove-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-scrolltop {
width: 3rem;
height: 3rem;
border-radius: 50%;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.p-scrolltop.p-link {
background: rgba(186, 104, 200, 0.16); }
.p-scrolltop.p-link:hover {
background: rgba(186, 104, 200, 0.3616); }
.p-scrolltop .p-scrolltop-icon {
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.87); }
.p-skeleton {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 3px; }
.p-skeleton:after {
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)); }
.p-tag {
background: #BA68C8;
color: #ffffff;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.4rem;
border-radius: 3px; }
.p-tag.p-tag-success {
background-color: #C5E1A5;
color: #121212; }
.p-tag.p-tag-info {
background-color: #81D4FA;
color: #121212; }
.p-tag.p-tag-warning {
background-color: #FFE082;
color: #121212; }
.p-tag.p-tag-danger {
background-color: #F48FB1;
color: #121212; }
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem; }
.p-inplace .p-inplace-display {
padding: 0.5rem 0.5rem;
border-radius: 3px;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.p-inplace .p-inplace-display:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.03);
color: rgba(255, 255, 255, 0.87); }
.p-inplace .p-inplace-display:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #cf95d9; }
.p-progressbar {
border: 0 none;
height: 1.5rem;
background: #304562;
border-radius: 3px; }
.p-progressbar .p-progressbar-value {
border: 0 none;
margin: 0;
background: #BA68C8; }
.p-progressbar .p-progressbar-label {
color: rgba(255, 255, 255, 0.87);
line-height: 1.5rem; }
.p-terminal {
background: #1f2d40;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #304562;
padding: 1rem; }
.p-terminal .p-terminal-input {
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
.p-blockui.p-component-overlay {
background: rgba(0, 0, 0, 0.4); }
.p-badge {
background: #BA68C8;
color: #ffffff;
font-size: 0.75rem;
font-weight: 700;
min-width: 1.5rem;
height: 1.5rem;
line-height: 1.5rem; }
.p-badge.p-badge-secondary {
background-color: #78909C;
color: #ffffff; }
.p-badge.p-badge-success {
background-color: #C5E1A5;
color: #121212; }
.p-badge.p-badge-info {
background-color: #81D4FA;
color: #121212; }
.p-badge.p-badge-warning {
background-color: #FFE082;
color: #121212; }
.p-badge.p-badge-danger {
background-color: #F48FB1;
color: #121212; }
.p-badge.p-badge-lg {
font-size: 1.125rem;
min-width: 2.25rem;
height: 2.25rem;
line-height: 2.25rem; }
.p-badge.p-badge-xl {
font-size: 1.5rem;
min-width: 3rem;
height: 3rem;
line-height: 3rem; }
.p-tag {
background: #BA68C8;
color: #ffffff;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.4rem;
border-radius: 3px; }
.p-tag.p-tag-success {
background-color: #C5E1A5;
color: #121212; }
.p-tag.p-tag-info {
background-color: #81D4FA;
color: #121212; }
.p-tag.p-tag-warning {
background-color: #FFE082;
color: #121212; }
.p-tag.p-tag-danger {
background-color: #F48FB1;
color: #121212; }
/* Customizations to the designer theme should be defined here */
.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {
background-color: #BA68C8; }
.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background-color: #BA68C8; }
.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {
background: #BA68C8; }
|
cdnjs/cdnjs
|
ajax/libs/primereact/6.3.2/resources/themes/vela-purple/theme.css
|
CSS
|
mit
| 217,603
|
/*
Highcharts JS v9.1.1 (2021-06-03)
(c) 2010-2021 Highsoft AS
Author: Sebastian Domas
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/histogram-bellcurve",["highcharts"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,c,b,t){a.hasOwnProperty(c)||(a[c]=t.apply(null,b))}a=a?a._modules:{};g(a,"Mixins/DerivedSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,
c,b){var f=b.addEvent,g=b.defined;return{hasDerivedData:!0,init:function(){c.prototype.init.apply(this,arguments);this.initialised=!1;this.baseSeries=null;this.eventRemovers=[];this.addEvents()},setDerivedData:a.noop,setBaseSeries:function(){var a=this.chart,b=this.options.baseSeries;this.baseSeries=g(b)&&(a.series[b]||a.get(b))||null},addEvents:function(){var a=this;var b=f(this.chart,"afterLinkSeries",function(){a.setBaseSeries();a.baseSeries&&!a.initialised&&(a.setDerivedData(),a.addBaseSeriesEvents(),
a.initialised=!0)});this.eventRemovers.push(b)},addBaseSeriesEvents:function(){var a=this;var b=f(a.baseSeries,"updatedData",function(){a.setDerivedData()});var c=f(a.baseSeries,"destroy",function(){a.baseSeries=null;a.initialised=!1});a.eventRemovers.push(b,c)},destroy:function(){this.eventRemovers.forEach(function(a){a()});c.prototype.destroy.apply(this,arguments)}}});g(a,"Series/Histogram/HistogramSeries.js",[a["Mixins/DerivedSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
function(a,c,b){function g(a){return function(b){for(var e=1;a[e]<=b;)e++;return a[--e]}}var f=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return a(b,e)};return function(b,e){function d(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(d.prototype=e.prototype,new d)}}(),l=c.seriesTypes.column,n=b.arrayMax,p=b.arrayMin,h=b.correctFloat,
q=b.extend,r=b.isNumber,d=b.merge,u=b.objectEach,k={"square-root":function(a){return Math.ceil(Math.sqrt(a.options.data.length))},sturges:function(a){return Math.ceil(Math.log(a.options.data.length)*Math.LOG2E)},rice:function(a){return Math.ceil(2*Math.pow(a.options.data.length,1/3))}};b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.userOptions=void 0;return b}f(b,a);b.prototype.binsNumber=function(){var a=this.options.binsNumber,
b=k[a]||"function"===typeof a&&a;return Math.ceil(b&&b(this.baseSeries)||(r(a)?a:k["square-root"](this.baseSeries)))};b.prototype.derivedData=function(a,b,d){var e=h(n(a)),k=h(p(a)),c=[],m={},f=[];d=this.binWidth=h(r(d)?d||1:(e-k)/b);this.options.pointRange=Math.max(d,0);for(b=k;b<e&&(this.userOptions.binWidth||h(e-b)>=d||0>=h(h(k+c.length*d)-b));b=h(b+d))c.push(b),m[b]=0;0!==m[k]&&(c.push(k),m[k]=0);var q=g(c.map(function(a){return parseFloat(a)}));a.forEach(function(a){a=h(q(a));m[a]++});u(m,function(a,
b){f.push({x:Number(b),y:a,x2:h(Number(b)+d)})});f.sort(function(a,b){return a.x-b.x});f[f.length-1].x2=e;return f};b.prototype.setDerivedData=function(){var a=this.baseSeries.yData;a.length?(a=this.derivedData(a,this.binsNumber(),this.options.binWidth),this.setData(a,!1)):this.setData([])};b.defaultOptions=d(l.defaultOptions,{binsNumber:"square-root",binWidth:void 0,pointPadding:0,groupPadding:0,grouping:!1,pointPlacement:"between",tooltip:{headerFormat:"",pointFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/><span style="color:{point.color}">\u25cf</span> {series.name} <b>{point.y}</b><br/>'}});
return b}(l);q(b.prototype,{addBaseSeriesEvents:a.addBaseSeriesEvents,addEvents:a.addEvents,destroy:a.destroy,hasDerivedData:a.hasDerivedData,init:a.init,setBaseSeries:a.setBaseSeries});c.registerSeriesType("histogram",b);"";return b});g(a,"Series/Bellcurve/BellcurveSeries.js",[a["Mixins/DerivedSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,c,b){var g=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),f=c.seriesTypes.areaspline,l=b.correctFloat,n=b.extend,p=b.isNumber,h=b.merge;b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.mean=function(a){var b=a.length;a=a.reduce(function(a,
b){return a+b},0);return 0<b&&a/b};b.standardDeviation=function(a,c){var d=a.length;c=p(c)?c:b.mean(a);a=a.reduce(function(a,b){b-=c;return a+b*b},0);return 1<d&&Math.sqrt(a/(d-1))};b.normalDensity=function(a,b,c){a-=b;return Math.exp(-(a*a)/(2*c*c))/(c*Math.sqrt(2*Math.PI))};b.prototype.derivedData=function(a,c){var d=this.options.intervals,f=this.options.pointsInInterval,g=a-d*c;d=d*f*2+1;f=c/f;var e=[],h;for(h=0;h<d;h++)e.push([g,b.normalDensity(g,a,c)]),g+=f;return e};b.prototype.setDerivedData=
function(){1<this.baseSeries.yData.length&&(this.setMean(),this.setStandardDeviation(),this.setData(this.derivedData(this.mean,this.standardDeviation),!1))};b.prototype.setMean=function(){this.mean=l(b.mean(this.baseSeries.yData))};b.prototype.setStandardDeviation=function(){this.standardDeviation=l(b.standardDeviation(this.baseSeries.yData,this.mean))};b.defaultOptions=h(f.defaultOptions,{intervals:3,pointsInInterval:3,marker:{enabled:!1}});return b}(f);n(b.prototype,{addBaseSeriesEvents:a.addBaseSeriesEvents,
addEvents:a.addEvents,destroy:a.destroy,init:a.init,setBaseSeries:a.setBaseSeries});c.registerSeriesType("bellcurve",b);"";return b});g(a,"masters/modules/histogram-bellcurve.src.js",[],function(){})});
//# sourceMappingURL=histogram-bellcurve.js.map
|
cdnjs/cdnjs
|
ajax/libs/highcharts/9.1.1/modules/histogram-bellcurve.js
|
JavaScript
|
mit
| 6,105
|
/*!
* chartjs-plugin-annotation v1.3.1
* https://www.chartjs.org/chartjs-plugin-annotation/index
* (c) 2022 chartjs-plugin-annotation Contributors
* Released under the MIT License
*/
import { Element, defaults, Chart, Animations } from 'chart.js';
import { defined, distanceBetweenPoints, callback, isFinite, valueOrDefault, isObject, toRadians, toFont, isArray, addRoundedRectPath, toTRBLCorners, toPadding, PI, drawPoint, RAD_PER_DEG, clipArea, unclipArea } from 'chart.js/helpers';
const clickHooks = ['click', 'dblclick'];
const moveHooks = ['enter', 'leave'];
const hooks = clickHooks.concat(moveHooks);
function updateListeners(chart, state, options) {
state.listened = false;
state.moveListened = false;
hooks.forEach(hook => {
if (typeof options[hook] === 'function') {
state.listened = true;
state.listeners[hook] = options[hook];
} else if (defined(state.listeners[hook])) {
delete state.listeners[hook];
}
});
moveHooks.forEach(hook => {
if (typeof options[hook] === 'function') {
state.moveListened = true;
}
});
if (!state.listened || !state.moveListened) {
state.annotations.forEach(scope => {
if (!state.listened) {
clickHooks.forEach(hook => {
if (typeof scope[hook] === 'function') {
state.listened = true;
}
});
}
if (!state.moveListened) {
moveHooks.forEach(hook => {
if (typeof scope[hook] === 'function') {
state.listened = true;
state.moveListened = true;
}
});
}
});
}
}
function handleEvent(state, event, options) {
if (state.listened) {
switch (event.type) {
case 'mousemove':
case 'mouseout':
handleMoveEvents(state, event);
break;
case 'click':
handleClickEvents(state, event, options);
break;
}
}
}
function handleMoveEvents(state, event) {
if (!state.moveListened) {
return;
}
let element;
if (event.type === 'mousemove') {
element = getNearestItem(state.elements, event);
}
const previous = state.hovered;
state.hovered = element;
dispatchMoveEvents(state, {previous, element}, event);
}
function dispatchMoveEvents(state, elements, event) {
const {previous, element} = elements;
if (previous && previous !== element) {
dispatchEvent(previous.options.leave || state.listeners.leave, previous, event);
}
if (element && element !== previous) {
dispatchEvent(element.options.enter || state.listeners.enter, element, event);
}
}
function handleClickEvents(state, event, options) {
const listeners = state.listeners;
const element = getNearestItem(state.elements, event);
if (element) {
const elOpts = element.options;
const dblclick = elOpts.dblclick || listeners.dblclick;
const click = elOpts.click || listeners.click;
if (element.clickTimeout) {
// 2nd click before timeout, so its a double click
clearTimeout(element.clickTimeout);
delete element.clickTimeout;
dispatchEvent(dblclick, element, event);
} else if (dblclick) {
// if there is a dblclick handler, wait for dblClickSpeed ms before deciding its a click
element.clickTimeout = setTimeout(() => {
delete element.clickTimeout;
dispatchEvent(click, element, event);
}, options.dblClickSpeed);
} else {
// no double click handler, just call the click handler directly
dispatchEvent(click, element, event);
}
}
}
function dispatchEvent(handler, element, event) {
callback(handler, [element.$context, event]);
}
function getNearestItem(elements, position) {
let minDistance = Number.POSITIVE_INFINITY;
return elements
.filter((element) => element.options.display && element.inRange(position.x, position.y))
.reduce((nearestItems, element) => {
const center = element.getCenterPoint();
const distance = distanceBetweenPoints(position, center);
if (distance < minDistance) {
nearestItems = [element];
minDistance = distance;
} else if (distance === minDistance) {
// Can have multiple items at the same distance in which case we sort by size
nearestItems.push(element);
}
return nearestItems;
}, [])
.sort((a, b) => a._index - b._index)
.slice(0, 1)[0]; // return only the top item
}
function adjustScaleRange(chart, scale, annotations) {
const range = getScaleLimits(scale, annotations);
let changed = changeScaleLimit(scale, range, 'min', 'suggestedMin');
changed = changeScaleLimit(scale, range, 'max', 'suggestedMax') || changed;
if (changed && typeof scale.handleTickRangeOptions === 'function') {
scale.handleTickRangeOptions();
}
}
function verifyScaleOptions(annotations, scales) {
for (const annotation of annotations) {
verifyScaleIDs(annotation, scales);
}
}
function changeScaleLimit(scale, range, limit, suggestedLimit) {
if (isFinite(range[limit]) && !scaleLimitDefined(scale.options, limit, suggestedLimit)) {
const changed = scale[limit] !== range[limit];
scale[limit] = range[limit];
return changed;
}
}
function scaleLimitDefined(scaleOptions, limit, suggestedLimit) {
return defined(scaleOptions[limit]) || defined(scaleOptions[suggestedLimit]);
}
function verifyScaleIDs(annotation, scales) {
for (const key of ['scaleID', 'xScaleID', 'yScaleID']) {
if (annotation[key] && !scales[annotation[key]] && verifyProperties(annotation, key)) {
console.warn(`No scale found with id '${annotation[key]}' for annotation '${annotation.id}'`);
}
}
}
function verifyProperties(annotation, key) {
if (key === 'scaleID') {
return true;
}
const axis = key.charAt(0);
for (const prop of ['Min', 'Max', 'Value']) {
if (defined(annotation[axis + prop])) {
return true;
}
}
return false;
}
function getScaleLimits(scale, annotations) {
const axis = scale.axis;
const scaleID = scale.id;
const scaleIDOption = axis + 'ScaleID';
const limits = {
min: valueOrDefault(scale.min, Number.NEGATIVE_INFINITY),
max: valueOrDefault(scale.max, Number.POSITIVE_INFINITY)
};
for (const annotation of annotations) {
if (annotation.scaleID === scaleID) {
updateLimits(annotation, scale, ['value', 'endValue'], limits);
} else if (annotation[scaleIDOption] === scaleID) {
updateLimits(annotation, scale, [axis + 'Min', axis + 'Max', axis + 'Value'], limits);
}
}
return limits;
}
function updateLimits(annotation, scale, props, limits) {
for (const prop of props) {
const raw = annotation[prop];
if (defined(raw)) {
const value = scale.parse(raw);
limits.min = Math.min(limits.min, value);
limits.max = Math.max(limits.max, value);
}
}
}
const clamp = (x, from, to) => Math.min(to, Math.max(from, x));
function clampAll(obj, from, to) {
for (const key of Object.keys(obj)) {
obj[key] = clamp(obj[key], from, to);
}
return obj;
}
function inPointRange(point, center, radius, borderWidth) {
if (!point || !center || radius <= 0) {
return false;
}
const hBorderWidth = borderWidth / 2 || 0;
return (Math.pow(point.x - center.x, 2) + Math.pow(point.y - center.y, 2)) <= Math.pow(radius + hBorderWidth, 2);
}
function inBoxRange(mouseX, mouseY, {x, y, width, height}, borderWidth) {
const hBorderWidth = borderWidth / 2 || 0;
return mouseX >= x - hBorderWidth &&
mouseX <= x + width + hBorderWidth &&
mouseY >= y - hBorderWidth &&
mouseY <= y + height + hBorderWidth;
}
function getElementCenterPoint(element, useFinalPosition) {
const {x, y} = element.getProps(['x', 'y'], useFinalPosition);
return {x, y};
}
const isOlderPart = (act, req) => req > act || (act.length > req.length && act.substr(0, req.length) === req);
function requireVersion(pkg, min, ver, strict = true) {
const parts = ver.split('.');
let i = 0;
for (const req of min.split('.')) {
const act = parts[i++];
if (parseInt(req, 10) < parseInt(act, 10)) {
break;
}
if (isOlderPart(act, req)) {
if (strict) {
throw new Error(`${pkg} v${ver} is not supported. v${min} or newer is required.`);
} else {
return false;
}
}
}
return true;
}
const isPercentString = (s) => typeof s === 'string' && s.endsWith('%');
const toPercent = (s) => clamp(parseFloat(s) / 100, 0, 1);
function getRelativePosition(size, positionOption) {
if (positionOption === 'start') {
return 0;
}
if (positionOption === 'end') {
return size;
}
if (isPercentString(positionOption)) {
return toPercent(positionOption) * size;
}
return size / 2;
}
function getSize(size, value) {
if (typeof value === 'number') {
return value;
} else if (isPercentString(value)) {
return toPercent(value) * size;
}
return size;
}
function calculateTextAlignment(size, options) {
const {x, width} = size;
const textAlign = options.textAlign;
if (textAlign === 'center') {
return x + width / 2;
} else if (textAlign === 'end' || textAlign === 'right') {
return x + width;
}
return x;
}
function toPosition(value) {
if (isObject(value)) {
return {
x: valueOrDefault(value.x, 'center'),
y: valueOrDefault(value.y, 'center'),
};
}
value = valueOrDefault(value, 'center');
return {
x: value,
y: value
};
}
function isBoundToPoint(options) {
return options && (defined(options.xValue) || defined(options.yValue));
}
const widthCache = new Map();
function isImageOrCanvas(content) {
return content instanceof Image || content instanceof HTMLCanvasElement;
}
/**
* Set the translation on the canvas if the rotation must be applied.
* @param {CanvasRenderingContext2D} ctx - chart canvas context
* @param {Element} element - annotation element to use for applying the translation
* @param {number} rotation - rotation (in degrees) to apply
*/
function translate(ctx, element, rotation) {
if (rotation) {
const center = element.getCenterPoint();
ctx.translate(center.x, center.y);
ctx.rotate(toRadians(rotation));
ctx.translate(-center.x, -center.y);
}
}
/**
* Apply border options to the canvas context before drawing a shape
* @param {CanvasRenderingContext2D} ctx - chart canvas context
* @param {Object} options - options with border configuration
* @returns {boolean} true is the border options have been applied
*/
function setBorderStyle(ctx, options) {
if (options && options.borderWidth) {
ctx.lineCap = options.borderCapStyle;
ctx.setLineDash(options.borderDash);
ctx.lineDashOffset = options.borderDashOffset;
ctx.lineJoin = options.borderJoinStyle;
ctx.lineWidth = options.borderWidth;
ctx.strokeStyle = options.borderColor;
return true;
}
}
/**
* Apply shadow options to the canvas context before drawing a shape
* @param {CanvasRenderingContext2D} ctx - chart canvas context
* @param {Object} options - options with shadow configuration
*/
function setShadowStyle(ctx, options) {
ctx.shadowColor = options.backgroundShadowColor;
ctx.shadowBlur = options.shadowBlur;
ctx.shadowOffsetX = options.shadowOffsetX;
ctx.shadowOffsetY = options.shadowOffsetY;
}
/**
* Measure the label size using the label options.
* @param {CanvasRenderingContext2D} ctx - chart canvas context
* @param {Object} options - options to configure the label
* @returns {{width: number, height: number}} the measured size of the label
*/
function measureLabelSize(ctx, options) {
const content = options.content;
if (isImageOrCanvas(content)) {
return {
width: getSize(content.width, options.width),
height: getSize(content.height, options.height)
};
}
const font = toFont(options.font);
const lines = isArray(content) ? content : [content];
const mapKey = lines.join() + font.string + (ctx._measureText ? '-spriting' : '');
if (!widthCache.has(mapKey)) {
ctx.save();
ctx.font = font.string;
const count = lines.length;
let width = 0;
for (let i = 0; i < count; i++) {
const text = lines[i];
width = Math.max(width, ctx.measureText(text).width);
}
ctx.restore();
const height = count * font.lineHeight;
widthCache.set(mapKey, {width, height});
}
return widthCache.get(mapKey);
}
/**
* Draw a box with the size and the styling options.
* @param {CanvasRenderingContext2D} ctx - chart canvas context
* @param {{x: number, y: number, width: number, height: number}} rect - rect to draw
* @param {Object} options - options to style the box
* @returns {undefined}
*/
function drawBox(ctx, rect, options) {
const {x, y, width, height} = rect;
ctx.save();
setShadowStyle(ctx, options);
const stroke = setBorderStyle(ctx, options);
ctx.fillStyle = options.backgroundColor;
ctx.beginPath();
addRoundedRectPath(ctx, {
x, y, w: width, h: height,
// TODO: v2 remove support for cornerRadius
radius: clampAll(toTRBLCorners(valueOrDefault(options.cornerRadius, options.borderRadius)), 0, Math.min(width, height) / 2)
});
ctx.closePath();
ctx.fill();
if (stroke) {
ctx.shadowColor = options.borderShadowColor;
ctx.stroke();
}
ctx.restore();
}
function drawLabel(ctx, rect, options) {
const content = options.content;
if (isImageOrCanvas(content)) {
ctx.drawImage(content, rect.x, rect.y, rect.width, rect.height);
return;
}
const labels = isArray(content) ? content : [content];
const font = toFont(options.font);
const lh = font.lineHeight;
const x = calculateTextAlignment(rect, options);
const y = rect.y + (lh / 2);
ctx.font = font.string;
ctx.textBaseline = 'middle';
ctx.textAlign = options.textAlign;
ctx.fillStyle = options.color;
labels.forEach((l, i) => ctx.fillText(l, x, y + (i * lh)));
}
/**
* @typedef {import('chart.js').Point} Point
*/
/**
* @param {{x: number, y: number, width: number, height: number}} rect
* @returns {Point}
*/
function getRectCenterPoint(rect) {
const {x, y, width, height} = rect;
return {
x: x + width / 2,
y: y + height / 2
};
}
/**
* Rotate a `point` relative to `center` point by `angle`
* @param {Point} point - the point to rotate
* @param {Point} center - center point for rotation
* @param {number} angle - angle for rotation, in radians
* @returns {Point} rotated point
*/
function rotated(point, center, angle) {
const cos = Math.cos(angle);
const sin = Math.sin(angle);
const cx = center.x;
const cy = center.y;
return {
x: cx + cos * (point.x - cx) - sin * (point.y - cy),
y: cy + sin * (point.x - cx) + cos * (point.y - cy)
};
}
/**
* @typedef { import("chart.js").Chart } Chart
* @typedef { import("chart.js").Scale } Scale
* @typedef { import("chart.js").Point } Point
* @typedef { import('../../types/options').CoreAnnotationOptions } CoreAnnotationOptions
* @typedef { import('../../types/options').PointAnnotationOptions } PointAnnotationOptions
*/
/**
* @param {Scale} scale
* @param {number|string} value
* @param {number} fallback
* @returns {number}
*/
function scaleValue(scale, value, fallback) {
value = typeof value === 'number' ? value : scale.parse(value);
return isFinite(value) ? scale.getPixelForValue(value) : fallback;
}
/**
* @param {Scale} scale
* @param {{start: number, end: number}} options
* @returns {{start: number, end: number}}
*/
function getChartDimensionByScale(scale, options) {
if (scale) {
const min = scaleValue(scale, options.min, options.start);
const max = scaleValue(scale, options.max, options.end);
return {
start: Math.min(min, max),
end: Math.max(min, max)
};
}
return {
start: options.start,
end: options.end
};
}
/**
* @param {Chart} chart
* @param {CoreAnnotationOptions} options
* @returns {Point}
*/
function getChartPoint(chart, options) {
const {chartArea, scales} = chart;
const xScale = scales[options.xScaleID];
const yScale = scales[options.yScaleID];
let x = chartArea.width / 2;
let y = chartArea.height / 2;
if (xScale) {
x = scaleValue(xScale, options.xValue, x);
}
if (yScale) {
y = scaleValue(yScale, options.yValue, y);
}
return {x, y};
}
/**
* @param {Chart} chart
* @param {CoreAnnotationOptions} options
* @returns {{x?:number, y?: number, x2?: number, y2?: number, width?: number, height?: number}}
*/
function getChartRect(chart, options) {
const xScale = chart.scales[options.xScaleID];
const yScale = chart.scales[options.yScaleID];
let {top: y, left: x, bottom: y2, right: x2} = chart.chartArea;
if (!xScale && !yScale) {
return {};
}
const xDim = getChartDimensionByScale(xScale, {min: options.xMin, max: options.xMax, start: x, end: x2});
x = xDim.start;
x2 = xDim.end;
const yDim = getChartDimensionByScale(yScale, {min: options.yMin, max: options.yMax, start: y, end: y2});
y = yDim.start;
y2 = yDim.end;
return {
x,
y,
x2,
y2,
width: x2 - x,
height: y2 - y
};
}
/**
* @param {Chart} chart
* @param {PointAnnotationOptions} options
*/
function getChartCircle(chart, options) {
const point = getChartPoint(chart, options);
return {
x: point.x + options.xAdjust,
y: point.y + options.yAdjust,
width: options.radius * 2,
height: options.radius * 2
};
}
/**
* @param {Chart} chart
* @param {PointAnnotationOptions} options
* @returns
*/
function resolvePointPosition(chart, options) {
if (!isBoundToPoint(options)) {
const box = getChartRect(chart, options);
const point = getRectCenterPoint(box);
let radius = options.radius;
if (!radius || isNaN(radius)) {
radius = Math.min(box.width, box.height) / 2;
options.radius = radius;
}
return {
x: point.x + options.xAdjust,
y: point.y + options.yAdjust,
width: radius * 2,
height: radius * 2
};
}
return getChartCircle(chart, options);
}
class BoxAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
return inBoxRange(mouseX, mouseY, this.getProps(['x', 'y', 'width', 'height'], useFinalPosition), this.options.borderWidth);
}
getCenterPoint(useFinalPosition) {
return getRectCenterPoint(this.getProps(['x', 'y', 'width', 'height'], useFinalPosition));
}
draw(ctx) {
ctx.save();
drawBox(ctx, this, this.options);
ctx.restore();
}
drawLabel(ctx) {
const {x, y, width, height, options} = this;
const {label, borderWidth} = options;
const halfBorder = borderWidth / 2;
const position = toPosition(label.position);
const padding = toPadding(label.padding);
const labelSize = measureLabelSize(ctx, label);
const labelRect = {
x: calculateX(this, labelSize, position, padding),
y: calculateY(this, labelSize, position, padding),
width: labelSize.width,
height: labelSize.height
};
ctx.save();
ctx.beginPath();
ctx.rect(x + halfBorder + padding.left, y + halfBorder + padding.top,
width - borderWidth - padding.width, height - borderWidth - padding.height);
ctx.clip();
drawLabel(ctx, labelRect, label);
ctx.restore();
}
resolveElementProperties(chart, options) {
return getChartRect(chart, options);
}
}
BoxAnnotation.id = 'boxAnnotation';
BoxAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderRadius: 0,
borderShadowColor: 'transparent',
borderWidth: 1,
cornerRadius: undefined, // TODO: v2 remove support for cornerRadius
display: true,
label: {
borderWidth: undefined,
color: 'black',
content: null,
drawTime: undefined,
enabled: false,
font: {
family: undefined,
lineHeight: undefined,
size: undefined,
style: undefined,
weight: 'bold'
},
height: undefined,
padding: 6,
position: 'center',
textAlign: 'start',
xAdjust: 0,
yAdjust: 0,
width: undefined
},
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
yMax: undefined,
yMin: undefined,
yScaleID: 'y'
};
BoxAnnotation.defaultRoutes = {
borderColor: 'color',
backgroundColor: 'color'
};
BoxAnnotation.descriptors = {
label: {
_fallback: true
}
};
function calculateX(box, labelSize, position, padding) {
const {x: start, x2: end, width: size, options} = box;
const {xAdjust: adjust, borderWidth} = options.label;
return calculatePosition$1({start, end, size}, {
position: position.x,
padding: {start: padding.left, end: padding.right},
adjust, borderWidth,
size: labelSize.width
});
}
function calculateY(box, labelSize, position, padding) {
const {y: start, y2: end, height: size, options} = box;
const {yAdjust: adjust, borderWidth} = options.label;
return calculatePosition$1({start, end, size}, {
position: position.y,
padding: {start: padding.top, end: padding.bottom},
adjust, borderWidth,
size: labelSize.height
});
}
function calculatePosition$1(boxOpts, labelOpts) {
const {start, end} = boxOpts;
const {position, padding: {start: padStart, end: padEnd}, adjust, borderWidth} = labelOpts;
const availableSize = end - borderWidth - start - padStart - padEnd - labelOpts.size;
return start + borderWidth / 2 + adjust + padStart + getRelativePosition(availableSize, position);
}
const pointInLine = (p1, p2, t) => ({x: p1.x + t * (p2.x - p1.x), y: p1.y + t * (p2.y - p1.y)});
const interpolateX = (y, p1, p2) => pointInLine(p1, p2, Math.abs((y - p1.y) / (p2.y - p1.y))).x;
const interpolateY = (x, p1, p2) => pointInLine(p1, p2, Math.abs((x - p1.x) / (p2.x - p1.x))).y;
const sqr = v => v * v;
const defaultEpsilon = 0.001;
function isLineInArea({x, y, x2, y2}, {top, right, bottom, left}) {
return !(
(x < left && x2 < left) ||
(x > right && x2 > right) ||
(y < top && y2 < top) ||
(y > bottom && y2 > bottom)
);
}
function limitPointToArea({x, y}, p2, {top, right, bottom, left}) {
if (x < left) {
y = interpolateY(left, {x, y}, p2);
x = left;
}
if (x > right) {
y = interpolateY(right, {x, y}, p2);
x = right;
}
if (y < top) {
x = interpolateX(top, {x, y}, p2);
y = top;
}
if (y > bottom) {
x = interpolateX(bottom, {x, y}, p2);
y = bottom;
}
return {x, y};
}
function limitLineToArea(p1, p2, area) {
const {x, y} = limitPointToArea(p1, p2, area);
const {x: x2, y: y2} = limitPointToArea(p2, p1, area);
return {x, y, x2, y2, width: Math.abs(x2 - x), height: Math.abs(y2 - y)};
}
class LineAnnotation extends Element {
// TODO: make private in v2
intersects(x, y, epsilon = defaultEpsilon, useFinalPosition) {
// Adapted from https://stackoverflow.com/a/6853926/25507
const {x: x1, y: y1, x2, y2} = this.getProps(['x', 'y', 'x2', 'y2'], useFinalPosition);
const dx = x2 - x1;
const dy = y2 - y1;
const lenSq = sqr(dx) + sqr(dy);
const t = lenSq === 0 ? -1 : ((x - x1) * dx + (y - y1) * dy) / lenSq;
let xx, yy;
if (t < 0) {
xx = x1;
yy = y1;
} else if (t > 1) {
xx = x2;
yy = y2;
} else {
xx = x1 + t * dx;
yy = y1 + t * dy;
}
return (sqr(x - xx) + sqr(y - yy)) <= epsilon;
}
/**
* @todo make private in v2
* @param {boolean} useFinalPosition - use the element's animation target instead of current position
* @param {top, right, bottom, left} [chartArea] - optional, area of the chart
* @returns {boolean} true if the label is visible
*/
labelIsVisible(useFinalPosition, chartArea) {
const labelOpts = this.options.label;
if (!labelOpts || !labelOpts.enabled) {
return false;
}
return !chartArea || isLineInArea(this.getProps(['x', 'y', 'x2', 'y2'], useFinalPosition), chartArea);
}
// TODO: make private in v2
isOnLabel(mouseX, mouseY, useFinalPosition) {
if (!this.labelIsVisible(useFinalPosition)) {
return false;
}
const {labelX, labelY, labelWidth, labelHeight, labelRotation} = this.getProps(['labelX', 'labelY', 'labelWidth', 'labelHeight', 'labelRotation'], useFinalPosition);
const {x, y} = rotated({x: mouseX, y: mouseY}, {x: labelX, y: labelY}, -labelRotation);
const hBorderWidth = this.options.label.borderWidth / 2 || 0;
const w2 = labelWidth / 2 + hBorderWidth;
const h2 = labelHeight / 2 + hBorderWidth;
return x >= labelX - w2 - defaultEpsilon && x <= labelX + w2 + defaultEpsilon &&
y >= labelY - h2 - defaultEpsilon && y <= labelY + h2 + defaultEpsilon;
}
inRange(mouseX, mouseY, useFinalPosition) {
const epsilon = sqr(this.options.borderWidth / 2);
return this.intersects(mouseX, mouseY, epsilon, useFinalPosition) || this.isOnLabel(mouseX, mouseY, useFinalPosition);
}
getCenterPoint() {
return {
x: (this.x2 + this.x) / 2,
y: (this.y2 + this.y) / 2
};
}
draw(ctx) {
const {x, y, x2, y2, options} = this;
ctx.save();
if (!setBorderStyle(ctx, options)) {
// no border width, then line is not drawn
return ctx.restore();
}
setShadowStyle(ctx, options);
const angle = Math.atan2(y2 - y, x2 - x);
const length = Math.sqrt(Math.pow(x2 - x, 2) + Math.pow(y2 - y, 2));
const {startOpts, endOpts, startAdjust, endAdjust} = getArrowHeads(this);
ctx.translate(x, y);
ctx.rotate(angle);
ctx.beginPath();
ctx.moveTo(0 + startAdjust, 0);
ctx.lineTo(length - endAdjust, 0);
ctx.shadowColor = options.borderShadowColor;
ctx.stroke();
drawArrowHead(ctx, 0, startAdjust, startOpts);
drawArrowHead(ctx, length, -endAdjust, endOpts);
ctx.restore();
}
drawLabel(ctx, chartArea) {
if (!this.labelIsVisible(false, chartArea)) {
return;
}
const {labelX, labelY, labelWidth, labelHeight, labelRotation, labelPadding, labelTextSize, options: {label}} = this;
ctx.save();
ctx.translate(labelX, labelY);
ctx.rotate(labelRotation);
const boxRect = {
x: -(labelWidth / 2),
y: -(labelHeight / 2),
width: labelWidth,
height: labelHeight
};
drawBox(ctx, boxRect, label);
const labelTextRect = {
x: -(labelWidth / 2) + labelPadding.left + label.borderWidth / 2,
y: -(labelHeight / 2) + labelPadding.top + label.borderWidth / 2,
width: labelTextSize.width,
height: labelTextSize.height
};
drawLabel(ctx, labelTextRect, label);
ctx.restore();
}
resolveElementProperties(chart, options) {
const scale = chart.scales[options.scaleID];
let {top: y, left: x, bottom: y2, right: x2} = chart.chartArea;
let min, max;
if (scale) {
min = scaleValue(scale, options.value, NaN);
max = scaleValue(scale, options.endValue, min);
if (scale.isHorizontal()) {
x = min;
x2 = max;
} else {
y = min;
y2 = max;
}
} else {
const xScale = chart.scales[options.xScaleID];
const yScale = chart.scales[options.yScaleID];
if (xScale) {
x = scaleValue(xScale, options.xMin, x);
x2 = scaleValue(xScale, options.xMax, x2);
}
if (yScale) {
y = scaleValue(yScale, options.yMin, y);
y2 = scaleValue(yScale, options.yMax, y2);
}
}
const inside = isLineInArea({x, y, x2, y2}, chart.chartArea);
const properties = inside
? limitLineToArea({x, y}, {x: x2, y: y2}, chart.chartArea)
: {x, y, x2, y2, width: Math.abs(x2 - x), height: Math.abs(y2 - y)};
const label = options.label;
if (label && label.content) {
return loadLabelRect(properties, chart, label);
}
return properties;
}
}
LineAnnotation.id = 'lineAnnotation';
const arrowHeadsDefaults = {
backgroundColor: undefined,
backgroundShadowColor: undefined,
borderColor: undefined,
borderDash: undefined,
borderDashOffset: undefined,
borderShadowColor: undefined,
borderWidth: undefined,
enabled: undefined,
fill: undefined,
length: undefined,
shadowBlur: undefined,
shadowOffsetX: undefined,
shadowOffsetY: undefined,
width: undefined
};
LineAnnotation.defaults = {
adjustScaleRange: true,
arrowHeads: {
enabled: false,
end: Object.assign({}, arrowHeadsDefaults),
fill: false,
length: 12,
start: Object.assign({}, arrowHeadsDefaults),
width: 6
},
borderDash: [],
borderDashOffset: 0,
borderShadowColor: 'transparent',
borderWidth: 2,
display: true,
endValue: undefined,
label: {
backgroundColor: 'rgba(0,0,0,0.8)',
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderColor: 'black',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderRadius: 6,
borderShadowColor: 'transparent',
borderWidth: 0,
color: '#fff',
content: null,
cornerRadius: undefined, // TODO: v2 remove support for cornerRadius
drawTime: undefined,
enabled: false,
font: {
family: undefined,
lineHeight: undefined,
size: undefined,
style: undefined,
weight: 'bold'
},
height: undefined,
padding: 6,
position: 'center',
rotation: 0,
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
textAlign: 'center',
width: undefined,
xAdjust: 0,
xPadding: undefined, // TODO: v2 remove support for xPadding
yAdjust: 0,
yPadding: undefined, // TODO: v2 remove support for yPadding
},
scaleID: undefined,
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
value: undefined,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
yMax: undefined,
yMin: undefined,
yScaleID: 'y'
};
LineAnnotation.descriptors = {
arrowHeads: {
start: {
_fallback: true
},
end: {
_fallback: true
},
_fallback: true
}
};
LineAnnotation.defaultRoutes = {
borderColor: 'color'
};
function loadLabelRect(line, chart, options) {
// TODO: v2 remove support for xPadding and yPadding
const {padding: lblPadding, xPadding, yPadding, borderWidth} = options;
const padding = getPadding(lblPadding, xPadding, yPadding);
const textSize = measureLabelSize(chart.ctx, options);
const width = textSize.width + padding.width + borderWidth;
const height = textSize.height + padding.height + borderWidth;
const labelRect = calculateLabelPosition(line, options, {width, height, padding}, chart.chartArea);
line.labelX = labelRect.x;
line.labelY = labelRect.y;
line.labelWidth = labelRect.width;
line.labelHeight = labelRect.height;
line.labelRotation = labelRect.rotation;
line.labelPadding = padding;
line.labelTextSize = textSize;
return line;
}
function calculateAutoRotation(line) {
const {x, y, x2, y2} = line;
const rotation = Math.atan2(y2 - y, x2 - x);
// Flip the rotation if it goes > PI/2 or < -PI/2, so label stays upright
return rotation > PI / 2 ? rotation - PI : rotation < PI / -2 ? rotation + PI : rotation;
}
// TODO: v2 remove support for xPadding and yPadding
function getPadding(padding, xPadding, yPadding) {
let tempPadding = padding;
if (xPadding || yPadding) {
tempPadding = {x: xPadding || 6, y: yPadding || 6};
}
return toPadding(tempPadding);
}
function calculateLabelPosition(line, label, sizes, chartArea) {
const {width, height, padding} = sizes;
const {xAdjust, yAdjust} = label;
const p1 = {x: line.x, y: line.y};
const p2 = {x: line.x2, y: line.y2};
const rotation = label.rotation === 'auto' ? calculateAutoRotation(line) : toRadians(label.rotation);
const size = rotatedSize(width, height, rotation);
const t = calculateT(line, label, {labelSize: size, padding}, chartArea);
const pt = pointInLine(p1, p2, t);
const xCoordinateSizes = {size: size.w, min: chartArea.left, max: chartArea.right, padding: padding.left};
const yCoordinateSizes = {size: size.h, min: chartArea.top, max: chartArea.bottom, padding: padding.top};
return {
x: adjustLabelCoordinate(pt.x, xCoordinateSizes) + xAdjust,
y: adjustLabelCoordinate(pt.y, yCoordinateSizes) + yAdjust,
width,
height,
rotation
};
}
function rotatedSize(width, height, rotation) {
const cos = Math.cos(rotation);
const sin = Math.sin(rotation);
return {
w: Math.abs(width * cos) + Math.abs(height * sin),
h: Math.abs(width * sin) + Math.abs(height * cos)
};
}
function calculateT(line, label, sizes, chartArea) {
let t;
const space = spaceAround(line, chartArea);
if (label.position === 'start') {
t = calculateTAdjust({w: line.x2 - line.x, h: line.y2 - line.y}, sizes, label, space);
} else if (label.position === 'end') {
t = 1 - calculateTAdjust({w: line.x - line.x2, h: line.y - line.y2}, sizes, label, space);
} else {
t = getRelativePosition(1, label.position);
}
return t;
}
function calculateTAdjust(lineSize, sizes, label, space) {
const {labelSize, padding} = sizes;
const lineW = lineSize.w * space.dx;
const lineH = lineSize.h * space.dy;
const x = (lineW > 0) && ((labelSize.w / 2 + padding.left - space.x) / lineW);
const y = (lineH > 0) && ((labelSize.h / 2 + padding.top - space.y) / lineH);
return clamp(Math.max(x, y), 0, 0.25);
}
function spaceAround(line, chartArea) {
const {x, x2, y, y2} = line;
const t = Math.min(y, y2) - chartArea.top;
const l = Math.min(x, x2) - chartArea.left;
const b = chartArea.bottom - Math.max(y, y2);
const r = chartArea.right - Math.max(x, x2);
return {
x: Math.min(l, r),
y: Math.min(t, b),
dx: l <= r ? 1 : -1,
dy: t <= b ? 1 : -1
};
}
function adjustLabelCoordinate(coordinate, labelSizes) {
const {size, min, max, padding} = labelSizes;
const halfSize = size / 2;
if (size > max - min) {
// if it does not fit, display as much as possible
return (max + min) / 2;
}
if (min >= (coordinate - padding - halfSize)) {
coordinate = min + padding + halfSize;
}
if (max <= (coordinate + padding + halfSize)) {
coordinate = max - padding - halfSize;
}
return coordinate;
}
function getArrowHeads(line) {
const options = line.options;
const arrowStartOpts = options.arrowHeads && options.arrowHeads.start;
const arrowEndOpts = options.arrowHeads && options.arrowHeads.end;
return {
startOpts: arrowStartOpts,
endOpts: arrowEndOpts,
startAdjust: getLineAdjust(line, arrowStartOpts),
endAdjust: getLineAdjust(line, arrowEndOpts)
};
}
function getLineAdjust(line, arrowOpts) {
if (!arrowOpts || !arrowOpts.enabled) {
return 0;
}
const {length, width} = arrowOpts;
const adjust = line.options.borderWidth / 2;
const p1 = {x: length, y: width + adjust};
const p2 = {x: 0, y: adjust};
return Math.abs(interpolateX(0, p1, p2));
}
function drawArrowHead(ctx, offset, adjust, arrowOpts) {
if (!arrowOpts || !arrowOpts.enabled) {
return;
}
const {length, width, fill, backgroundColor, borderColor} = arrowOpts;
const arrowOffsetX = Math.abs(offset - length) + adjust;
ctx.beginPath();
setShadowStyle(ctx, arrowOpts);
setBorderStyle(ctx, arrowOpts);
ctx.moveTo(arrowOffsetX, -width);
ctx.lineTo(offset + adjust, 0);
ctx.lineTo(arrowOffsetX, width);
if (fill === true) {
ctx.fillStyle = backgroundColor || borderColor;
ctx.closePath();
ctx.fill();
ctx.shadowColor = 'transparent';
} else {
ctx.shadowColor = arrowOpts.borderShadowColor;
}
ctx.stroke();
}
class EllipseAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
return pointInEllipse({x: mouseX, y: mouseY}, this.getProps(['width', 'height'], useFinalPosition), this.options.rotation, this.options.borderWidth);
}
getCenterPoint(useFinalPosition) {
return getRectCenterPoint(this.getProps(['x', 'y', 'width', 'height'], useFinalPosition));
}
draw(ctx) {
const {width, height, options} = this;
const center = this.getCenterPoint();
ctx.save();
translate(ctx, this, options.rotation);
setShadowStyle(ctx, this.options);
ctx.beginPath();
ctx.fillStyle = options.backgroundColor;
const stroke = setBorderStyle(ctx, options);
ctx.ellipse(center.x, center.y, height / 2, width / 2, PI / 2, 0, 2 * PI);
ctx.fill();
if (stroke) {
ctx.shadowColor = options.borderShadowColor;
ctx.stroke();
}
ctx.restore();
}
resolveElementProperties(chart, options) {
return getChartRect(chart, options);
}
}
EllipseAnnotation.id = 'ellipseAnnotation';
EllipseAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderDash: [],
borderDashOffset: 0,
borderShadowColor: 'transparent',
borderWidth: 1,
display: true,
rotation: 0,
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
yMax: undefined,
yMin: undefined,
yScaleID: 'y'
};
EllipseAnnotation.defaultRoutes = {
borderColor: 'color',
backgroundColor: 'color'
};
function pointInEllipse(p, ellipse, rotation, borderWidth) {
const {width, height} = ellipse;
const center = ellipse.getCenterPoint(true);
const xRadius = width / 2;
const yRadius = height / 2;
if (xRadius <= 0 || yRadius <= 0) {
return false;
}
// https://stackoverflow.com/questions/7946187/point-and-ellipse-rotated-position-test-algorithm
const angle = toRadians(rotation || 0);
const hBorderWidth = borderWidth / 2 || 0;
const cosAngle = Math.cos(angle);
const sinAngle = Math.sin(angle);
const a = Math.pow(cosAngle * (p.x - center.x) + sinAngle * (p.y - center.y), 2);
const b = Math.pow(sinAngle * (p.x - center.x) - cosAngle * (p.y - center.y), 2);
return (a / Math.pow(xRadius + hBorderWidth, 2)) + (b / Math.pow(yRadius + hBorderWidth, 2)) <= 1.0001;
}
class LabelAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
return inBoxRange(mouseX, mouseY, this.getProps(['x', 'y', 'width', 'height'], useFinalPosition), this.options.borderWidth);
}
getCenterPoint(useFinalPosition) {
return getRectCenterPoint(this.getProps(['x', 'y', 'width', 'height'], useFinalPosition));
}
draw(ctx) {
if (!this.options.content) {
return;
}
const {labelX, labelY, labelWidth, labelHeight, options} = this;
drawCallout(ctx, this);
drawBox(ctx, this, options);
drawLabel(ctx, {x: labelX, y: labelY, width: labelWidth, height: labelHeight}, options);
}
// TODO: make private in v2
resolveElementProperties(chart, options) {
const point = !isBoundToPoint(options) ? getRectCenterPoint(getChartRect(chart, options)) : getChartPoint(chart, options);
const padding = toPadding(options.padding);
const labelSize = measureLabelSize(chart.ctx, options);
const boxSize = measureRect(point, labelSize, options, padding);
const hBorderWidth = options.borderWidth / 2;
const properties = {
pointX: point.x,
pointY: point.y,
...boxSize,
labelX: boxSize.x + padding.left + hBorderWidth,
labelY: boxSize.y + padding.top + hBorderWidth,
labelWidth: labelSize.width,
labelHeight: labelSize.height
};
properties.calloutPosition = options.callout.enabled && resolveCalloutPosition(properties, options.callout);
return properties;
}
}
LabelAnnotation.id = 'labelAnnotation';
LabelAnnotation.defaults = {
adjustScaleRange: true,
backgroundColor: 'transparent',
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderRadius: 0,
borderShadowColor: 'transparent',
borderWidth: 0,
callout: {
borderCapStyle: 'butt',
borderColor: undefined,
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderWidth: 1,
enabled: false,
margin: 5,
position: 'auto',
side: 5,
start: '50%',
},
color: 'black',
content: null,
display: true,
font: {
family: undefined,
lineHeight: undefined,
size: undefined,
style: undefined,
weight: undefined
},
height: undefined,
padding: 6,
position: 'center',
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
textAlign: 'center',
width: undefined,
xAdjust: 0,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
xValue: undefined,
yAdjust: 0,
yMax: undefined,
yMin: undefined,
yScaleID: 'y',
yValue: undefined
};
LabelAnnotation.defaultRoutes = {
borderColor: 'color'
};
function measureRect(point, size, options, padding) {
const width = size.width + padding.width + options.borderWidth;
const height = size.height + padding.height + options.borderWidth;
const position = toPosition(options.position);
return {
x: calculatePosition(point.x, width, options.xAdjust, position.x),
y: calculatePosition(point.y, height, options.yAdjust, position.y),
width,
height
};
}
function calculatePosition(start, size, adjust = 0, position) {
return start - getRelativePosition(size, position) + adjust;
}
function drawCallout(ctx, element) {
const {pointX, pointY, calloutPosition, options} = element;
if (!calloutPosition) {
return;
}
const callout = options.callout;
ctx.save();
ctx.beginPath();
const stroke = setBorderStyle(ctx, callout);
if (!stroke) {
return ctx.restore();
}
const {separatorStart, separatorEnd} = getCalloutSeparatorCoord(element, calloutPosition);
const {sideStart, sideEnd} = getCalloutSideCoord(element, calloutPosition, separatorStart);
if (callout.margin > 0 || options.borderWidth === 0) {
ctx.moveTo(separatorStart.x, separatorStart.y);
ctx.lineTo(separatorEnd.x, separatorEnd.y);
}
ctx.moveTo(sideStart.x, sideStart.y);
ctx.lineTo(sideEnd.x, sideEnd.y);
ctx.lineTo(pointX, pointY);
ctx.stroke();
ctx.restore();
}
function getCalloutSeparatorCoord(element, position) {
const {x, y, width, height} = element;
const adjust = getCalloutSeparatorAdjust(element, position);
let separatorStart, separatorEnd;
if (position === 'left' || position === 'right') {
separatorStart = {x: x + adjust, y};
separatorEnd = {x: separatorStart.x, y: separatorStart.y + height};
} else {
// position 'top' or 'bottom'
separatorStart = {x, y: y + adjust};
separatorEnd = {x: separatorStart.x + width, y: separatorStart.y};
}
return {separatorStart, separatorEnd};
}
function getCalloutSeparatorAdjust(element, position) {
const {width, height, options} = element;
const adjust = options.callout.margin + options.borderWidth / 2;
if (position === 'right') {
return width + adjust;
} else if (position === 'bottom') {
return height + adjust;
}
return -adjust;
}
function getCalloutSideCoord(element, position, separatorStart) {
const {y, width, height, options} = element;
const start = options.callout.start;
const side = getCalloutSideAdjust(position, options.callout);
let sideStart, sideEnd;
if (position === 'left' || position === 'right') {
sideStart = {x: separatorStart.x, y: y + getSize(height, start)};
sideEnd = {x: sideStart.x + side, y: sideStart.y};
} else {
// position 'top' or 'bottom'
sideStart = {x: separatorStart.x + getSize(width, start), y: separatorStart.y};
sideEnd = {x: sideStart.x, y: sideStart.y + side};
}
return {sideStart, sideEnd};
}
function getCalloutSideAdjust(position, options) {
const side = options.side;
if (position === 'left' || position === 'top') {
return -side;
}
return side;
}
function resolveCalloutPosition(element, options) {
const position = options.position;
if (position === 'left' || position === 'right' || position === 'top' || position === 'bottom') {
return position;
}
return resolveCalloutAutoPosition(element, options);
}
function resolveCalloutAutoPosition(element, options) {
const {x, y, width, height, pointX, pointY} = element;
const {margin, side} = options;
const adjust = margin + side;
if (pointX < (x - adjust)) {
return 'left';
} else if (pointX > (x + width + adjust)) {
return 'right';
} else if (pointY < (y - adjust)) {
return 'top';
} else if (pointY > (y + height + adjust)) {
return 'bottom';
}
}
class PointAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
const {width} = this.getProps(['width'], useFinalPosition);
return inPointRange({x: mouseX, y: mouseY}, this.getCenterPoint(useFinalPosition), width / 2, this.options.borderWidth);
}
getCenterPoint(useFinalPosition) {
return getElementCenterPoint(this, useFinalPosition);
}
draw(ctx) {
const options = this.options;
const borderWidth = options.borderWidth;
if (options.radius < 0.1) {
return;
}
ctx.save();
ctx.fillStyle = options.backgroundColor;
setShadowStyle(ctx, options);
const stroke = setBorderStyle(ctx, options);
options.borderWidth = 0;
drawPoint(ctx, options, this.x, this.y);
if (stroke && !isImageOrCanvas(options.pointStyle)) {
ctx.shadowColor = options.borderShadowColor;
ctx.stroke();
}
ctx.restore();
options.borderWidth = borderWidth;
}
resolveElementProperties(chart, options) {
return resolvePointPosition(chart, options);
}
}
PointAnnotation.id = 'pointAnnotation';
PointAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderDash: [],
borderDashOffset: 0,
borderShadowColor: 'transparent',
borderWidth: 1,
display: true,
pointStyle: 'circle',
radius: 10,
rotation: 0,
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
xAdjust: 0,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
xValue: undefined,
yAdjust: 0,
yMax: undefined,
yMin: undefined,
yScaleID: 'y',
yValue: undefined
};
PointAnnotation.defaultRoutes = {
borderColor: 'color',
backgroundColor: 'color'
};
class PolygonAnnotation extends Element {
inRange(mouseX, mouseY, useFinalPosition) {
return this.options.radius >= 0.1 && this.elements.length > 1 && pointIsInPolygon(this.elements, mouseX, mouseY, useFinalPosition);
}
getCenterPoint(useFinalPosition) {
return getElementCenterPoint(this, useFinalPosition);
}
draw(ctx) {
const {elements, options} = this;
ctx.save();
ctx.beginPath();
ctx.fillStyle = options.backgroundColor;
setShadowStyle(ctx, options);
const stroke = setBorderStyle(ctx, options);
let first = true;
for (const el of elements) {
if (first) {
ctx.moveTo(el.x, el.y);
first = false;
} else {
ctx.lineTo(el.x, el.y);
}
}
ctx.closePath();
ctx.fill();
// If no border, don't draw it
if (stroke) {
ctx.shadowColor = options.borderShadowColor;
ctx.stroke();
}
ctx.restore();
}
resolveElementProperties(chart, options) {
const {x, y, width, height} = resolvePointPosition(chart, options);
const {sides, radius, rotation, borderWidth} = options;
const halfBorder = borderWidth / 2;
const elements = [];
const angle = (2 * PI) / sides;
let rad = rotation * RAD_PER_DEG;
for (let i = 0; i < sides; i++, rad += angle) {
const sin = Math.sin(rad);
const cos = Math.cos(rad);
elements.push({
type: 'point',
optionScope: 'point',
properties: {
x: x + sin * radius,
y: y - cos * radius,
bX: x + sin * (radius + halfBorder),
bY: y - cos * (radius + halfBorder)
}
});
}
return {x, y, width, height, elements, initProperties: {x, y}};
}
}
PolygonAnnotation.id = 'polygonAnnotation';
PolygonAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderShadowColor: 'transparent',
borderWidth: 1,
display: true,
point: {
radius: 0
},
radius: 10,
rotation: 0,
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
sides: 3,
xAdjust: 0,
xMax: undefined,
xMin: undefined,
xScaleID: 'x',
xValue: undefined,
yAdjust: 0,
yMax: undefined,
yMin: undefined,
yScaleID: 'y',
yValue: undefined
};
PolygonAnnotation.defaultRoutes = {
borderColor: 'color',
backgroundColor: 'color'
};
function pointIsInPolygon(points, x, y, useFinalPosition) {
let isInside = false;
let A = points[points.length - 1].getProps(['bX', 'bY'], useFinalPosition);
for (const point of points) {
const B = point.getProps(['bX', 'bY'], useFinalPosition);
if ((B.bY > y) !== (A.bY > y) && x < (A.bX - B.bX) * (y - B.bY) / (A.bY - B.bY) + B.bX) {
isInside = !isInside;
}
A = B;
}
return isInside;
}
const annotationTypes = {
box: BoxAnnotation,
ellipse: EllipseAnnotation,
label: LabelAnnotation,
line: LineAnnotation,
point: PointAnnotation,
polygon: PolygonAnnotation
};
/**
* Register fallback for annotation elements
* For example lineAnnotation options would be looked through:
* - the annotation object (options.plugins.annotation.annotations[id])
* - element options (options.elements.lineAnnotation)
* - element defaults (defaults.elements.lineAnnotation)
* - annotation plugin defaults (defaults.plugins.annotation, this is what we are registering here)
*/
Object.keys(annotationTypes).forEach(key => {
defaults.describe(`elements.${annotationTypes[key].id}`, {
_fallback: 'plugins.annotation'
});
});
var name = "chartjs-plugin-annotation";
var version = "1.3.1";
const chartStates = new Map();
var annotation = {
id: 'annotation',
version,
/* TODO: enable in v2
beforeRegister() {
requireVersion('chart.js', '3.7', Chart.version);
},
*/
afterRegister() {
Chart.register(annotationTypes);
// TODO: Remove this check, warning and workaround in v2
if (!requireVersion('chart.js', '3.7', Chart.version, false)) {
console.warn(`${name} has known issues with chart.js versions prior to 3.7, please consider upgrading.`);
// Workaround for https://github.com/chartjs/chartjs-plugin-annotation/issues/572
Chart.defaults.set('elements.lineAnnotation', {
callout: {},
font: {},
padding: 6
});
}
},
afterUnregister() {
Chart.unregister(annotationTypes);
},
beforeInit(chart) {
chartStates.set(chart, {
annotations: [],
elements: [],
visibleElements: [],
listeners: {},
listened: false,
moveListened: false
});
},
beforeUpdate(chart, args, options) {
const state = chartStates.get(chart);
const annotations = state.annotations = [];
let annotationOptions = options.annotations;
if (isObject(annotationOptions)) {
Object.keys(annotationOptions).forEach(key => {
const value = annotationOptions[key];
if (isObject(value)) {
value.id = key;
annotations.push(value);
}
});
} else if (isArray(annotationOptions)) {
annotations.push(...annotationOptions);
}
verifyScaleOptions(annotations, chart.scales);
},
afterDataLimits(chart, args) {
const state = chartStates.get(chart);
adjustScaleRange(chart, args.scale, state.annotations.filter(a => a.display && a.adjustScaleRange));
},
afterUpdate(chart, args, options) {
const state = chartStates.get(chart);
updateListeners(chart, state, options);
updateElements(chart, state, options, args.mode);
state.visibleElements = state.elements.filter(el => !el.skip && el.options.display);
},
beforeDatasetsDraw(chart, _args, options) {
draw(chart, 'beforeDatasetsDraw', options.clip);
},
afterDatasetsDraw(chart, _args, options) {
draw(chart, 'afterDatasetsDraw', options.clip);
},
beforeDraw(chart, _args, options) {
draw(chart, 'beforeDraw', options.clip);
},
afterDraw(chart, _args, options) {
draw(chart, 'afterDraw', options.clip);
},
beforeEvent(chart, args, options) {
const state = chartStates.get(chart);
handleEvent(state, args.event, options);
},
destroy(chart) {
chartStates.delete(chart);
},
_getState(chart) {
return chartStates.get(chart);
},
defaults: {
animations: {
numbers: {
properties: ['x', 'y', 'x2', 'y2', 'width', 'height', 'pointX', 'pointY', 'labelX', 'labelY', 'labelWidth', 'labelHeight', 'radius'],
type: 'number'
},
},
clip: true,
dblClickSpeed: 350, // ms
drawTime: 'afterDatasetsDraw',
label: {
drawTime: null
}
},
descriptors: {
_indexable: false,
_scriptable: (prop) => !hooks.includes(prop),
annotations: {
_allKeys: false,
_fallback: (prop, opts) => `elements.${annotationTypes[resolveType(opts.type)].id}`,
},
},
additionalOptionScopes: ['']
};
const directUpdater = {
update: Object.assign
};
function resolveAnimations(chart, animOpts, mode) {
if (mode === 'reset' || mode === 'none' || mode === 'resize') {
return directUpdater;
}
return new Animations(chart, animOpts);
}
function resolveType(type = 'line') {
if (annotationTypes[type]) {
return type;
}
console.warn(`Unknown annotation type: '${type}', defaulting to 'line'`);
return 'line';
}
function updateElements(chart, state, options, mode) {
const animations = resolveAnimations(chart, options.animations, mode);
const annotations = state.annotations;
const elements = resyncElements(state.elements, annotations);
for (let i = 0; i < annotations.length; i++) {
const annotationOptions = annotations[i];
const element = getOrCreateElement(elements, i, annotationOptions.type);
const resolver = annotationOptions.setContext(getContext(chart, element, annotationOptions));
const properties = element.resolveElementProperties(chart, resolver);
properties.skip = isNaN(properties.x) || isNaN(properties.y);
if ('elements' in properties) {
updateSubElements(element, properties, resolver, animations);
// Remove the sub-element definitions from properties, so the actual elements
// are not overwritten by their definitions
delete properties.elements;
}
if (!defined(element.x)) {
// If the element is newly created, assing the properties directly - to
// make them readily awailable to any scriptable options. If we do not do this,
// the properties retruned by `resolveElementProperties` are available only
// after options resolution.
Object.assign(element, properties);
}
properties.options = resolveAnnotationOptions(resolver);
animations.update(element, properties);
}
}
function updateSubElements(mainElement, {elements, initProperties}, resolver, animations) {
const subElements = mainElement.elements || (mainElement.elements = []);
subElements.length = elements.length;
for (let i = 0; i < elements.length; i++) {
const definition = elements[i];
const properties = definition.properties;
const subElement = getOrCreateElement(subElements, i, definition.type, initProperties);
const subResolver = resolver[definition.optionScope].override(definition);
properties.options = resolveAnnotationOptions(subResolver);
animations.update(subElement, properties);
}
}
function getOrCreateElement(elements, index, type, initProperties) {
const elementClass = annotationTypes[resolveType(type)];
let element = elements[index];
if (!element || !(element instanceof elementClass)) {
element = elements[index] = new elementClass();
if (isObject(initProperties)) {
Object.assign(element, initProperties);
}
}
return element;
}
function resolveAnnotationOptions(resolver) {
const elementClass = annotationTypes[resolveType(resolver.type)];
const result = {};
result.id = resolver.id;
result.type = resolver.type;
result.drawTime = resolver.drawTime;
Object.assign(result,
resolveObj(resolver, elementClass.defaults),
resolveObj(resolver, elementClass.defaultRoutes));
for (const hook of hooks) {
result[hook] = resolver[hook];
}
return result;
}
function resolveObj(resolver, defs) {
const result = {};
for (const prop of Object.keys(defs)) {
const optDefs = defs[prop];
const value = resolver[prop];
result[prop] = isObject(optDefs) ? resolveObj(value, optDefs) : value;
}
return result;
}
function getContext(chart, element, annotation) {
return element.$context || (element.$context = Object.assign(Object.create(chart.getContext()), {
element,
id: annotation.id,
type: 'annotation'
}));
}
function resyncElements(elements, annotations) {
const count = annotations.length;
const start = elements.length;
if (start < count) {
const add = count - start;
elements.splice(start, 0, ...new Array(add));
} else if (start > count) {
elements.splice(count, start - count);
}
return elements;
}
function draw(chart, caller, clip) {
const {ctx, chartArea} = chart;
const {visibleElements} = chartStates.get(chart);
if (clip) {
clipArea(ctx, chartArea);
}
drawElements(ctx, visibleElements, caller);
drawSubElements(ctx, visibleElements, caller);
if (clip) {
unclipArea(ctx);
}
visibleElements.forEach(el => {
if (!('drawLabel' in el)) {
return;
}
const label = el.options.label;
if (label && label.enabled && label.content && (label.drawTime || el.options.drawTime) === caller) {
el.drawLabel(ctx, chartArea);
}
});
}
function drawElements(ctx, elements, caller) {
for (const el of elements) {
if (el.options.drawTime === caller) {
el.draw(ctx);
}
}
}
function drawSubElements(ctx, elements, caller) {
for (const el of elements) {
if (isArray(el.elements)) {
drawElements(ctx, el.elements, caller);
}
}
}
export { annotation as default };
|
cdnjs/cdnjs
|
ajax/libs/chartjs-plugin-annotation/1.3.1/chartjs-plugin-annotation.esm.js
|
JavaScript
|
mit
| 57,862
|
/**
* @license Highstock JS v8.0.2 (2020-03-03)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Paweł Fus
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define('highcharts/indicators/bollinger-bands', ['highcharts', 'highcharts/modules/stock'], function (Highcharts) {
factory(Highcharts);
factory.Highcharts = Highcharts;
return factory;
});
} else {
factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
}
}(function (Highcharts) {
var _modules = Highcharts ? Highcharts._modules : {};
function _registerModule(obj, path, args, fn) {
if (!obj.hasOwnProperty(path)) {
obj[path] = fn.apply(null, args);
}
}
_registerModule(_modules, 'mixins/multipe-lines.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {
/**
*
* (c) 2010-2020 Wojciech Chmiel
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
var defined = U.defined,
error = U.error,
merge = U.merge;
var each = H.each,
SMA = H.seriesTypes.sma;
/**
* Mixin useful for all indicators that have more than one line.
* Merge it with your implementation where you will provide
* getValues method appropriate to your indicator and pointArrayMap,
* pointValKey, linesApiNames properites. Notice that pointArrayMap
* should be consistent with amount of lines calculated in getValues method.
*
* @private
* @mixin multipleLinesMixin
*/
var multipleLinesMixin = {
/* eslint-disable valid-jsdoc */
/**
* Lines ids. Required to plot appropriate amount of lines.
* Notice that pointArrayMap should have more elements than
* linesApiNames, because it contains main line and additional lines ids.
* Also it should be consistent with amount of lines calculated in
* getValues method from your implementation.
*
* @private
* @name multipleLinesMixin.pointArrayMap
* @type {Array<string>}
*/
pointArrayMap: ['top', 'bottom'],
/**
* Main line id.
*
* @private
* @name multipleLinesMixin.pointValKey
* @type {string}
*/
pointValKey: 'top',
/**
* Additional lines DOCS names. Elements of linesApiNames array should
* be consistent with DOCS line names defined in your implementation.
* Notice that linesApiNames should have decreased amount of elements
* relative to pointArrayMap (without pointValKey).
*
* @private
* @name multipleLinesMixin.linesApiNames
* @type {Array<string>}
*/
linesApiNames: ['bottomLine'],
/**
* Create translatedLines Collection based on pointArrayMap.
*
* @private
* @function multipleLinesMixin.getTranslatedLinesNames
* @param {string} [excludedValue]
* Main line id
* @return {Array<string>}
* Returns translated lines names without excluded value.
*/
getTranslatedLinesNames: function (excludedValue) {
var translatedLines = [];
each(this.pointArrayMap, function (propertyName) {
if (propertyName !== excludedValue) {
translatedLines.push('plot' +
propertyName.charAt(0).toUpperCase() +
propertyName.slice(1));
}
});
return translatedLines;
},
/**
* @private
* @function multipleLinesMixin.toYData
* @param {Highcharts.Point} point
* Indicator point
* @return {Array<number>}
* Returns point Y value for all lines
*/
toYData: function (point) {
var pointColl = [];
each(this.pointArrayMap, function (propertyName) {
pointColl.push(point[propertyName]);
});
return pointColl;
},
/**
* Add lines plot pixel values.
*
* @private
* @function multipleLinesMixin.translate
* @return {void}
*/
translate: function () {
var indicator = this,
pointArrayMap = indicator.pointArrayMap,
LinesNames = [],
value;
LinesNames = indicator.getTranslatedLinesNames();
SMA.prototype.translate.apply(indicator, arguments);
each(indicator.points, function (point) {
each(pointArrayMap, function (propertyName, i) {
value = point[propertyName];
if (value !== null) {
point[LinesNames[i]] = indicator.yAxis.toPixels(value, true);
}
});
});
},
/**
* Draw main and additional lines.
*
* @private
* @function multipleLinesMixin.drawGraph
* @return {void}
*/
drawGraph: function () {
var indicator = this,
pointValKey = indicator.pointValKey,
linesApiNames = indicator.linesApiNames,
mainLinePoints = indicator.points,
pointsLength = mainLinePoints.length,
mainLineOptions = indicator.options,
mainLinePath = indicator.graph,
gappedExtend = {
options: {
gapSize: mainLineOptions.gapSize
}
},
// additional lines point place holders:
secondaryLines = [],
secondaryLinesNames = indicator.getTranslatedLinesNames(pointValKey),
point;
// Generate points for additional lines:
each(secondaryLinesNames, function (plotLine, index) {
// create additional lines point place holders
secondaryLines[index] = [];
while (pointsLength--) {
point = mainLinePoints[pointsLength];
secondaryLines[index].push({
x: point.x,
plotX: point.plotX,
plotY: point[plotLine],
isNull: !defined(point[plotLine])
});
}
pointsLength = mainLinePoints.length;
});
// Modify options and generate additional lines:
each(linesApiNames, function (lineName, i) {
if (secondaryLines[i]) {
indicator.points = secondaryLines[i];
if (mainLineOptions[lineName]) {
indicator.options = merge(mainLineOptions[lineName].styles, gappedExtend);
}
else {
error('Error: "There is no ' + lineName +
' in DOCS options declared. Check if linesApiNames' +
' are consistent with your DOCS line names."' +
' at mixin/multiple-line.js:34');
}
indicator.graph = indicator['graph' + lineName];
SMA.prototype.drawGraph.call(indicator);
// Now save lines:
indicator['graph' + lineName] = indicator.graph;
}
else {
error('Error: "' + lineName + ' doesn\'t have equivalent ' +
'in pointArrayMap. To many elements in linesApiNames ' +
'relative to pointArrayMap."');
}
});
// Restore options and draw a main line:
indicator.points = mainLinePoints;
indicator.options = mainLineOptions;
indicator.graph = mainLinePath;
SMA.prototype.drawGraph.call(indicator);
}
};
return multipleLinesMixin;
});
_registerModule(_modules, 'indicators/bollinger-bands.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js'], _modules['mixins/multipe-lines.js']], function (H, U, multipleLinesMixin) {
/**
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
var isArray = U.isArray,
merge = U.merge,
seriesType = U.seriesType;
var SMA = H.seriesTypes.sma;
/* eslint-disable valid-jsdoc */
// Utils:
/**
* @private
*/
function getStandardDeviation(arr, index, isOHLC, mean) {
var variance = 0,
arrLen = arr.length,
std = 0,
i = 0,
value;
for (; i < arrLen; i++) {
value = (isOHLC ? arr[i][index] : arr[i]) - mean;
variance += value * value;
}
variance = variance / (arrLen - 1);
std = Math.sqrt(variance);
return std;
}
/* eslint-enable valid-jsdoc */
/**
* Bollinger Bands series type.
*
* @private
* @class
* @name Highcharts.seriesTypes.bb
*
* @augments Highcharts.Series
*/
seriesType('bb', 'sma',
/**
* Bollinger bands (BB). This series requires the `linkedTo` option to be
* set and should be loaded after the `stock/indicators/indicators.js` file.
*
* @sample stock/indicators/bollinger-bands
* Bollinger bands
*
* @extends plotOptions.sma
* @since 6.0.0
* @product highstock
* @requires stock/indicators/indicators
* @requires stock/indicators/bollinger-bands
* @optionparent plotOptions.bb
*/
{
params: {
period: 20,
/**
* Standard deviation for top and bottom bands.
*/
standardDeviation: 2,
index: 3
},
/**
* Bottom line options.
*/
bottomLine: {
/**
* Styles for a bottom line.
*/
styles: {
/**
* Pixel width of the line.
*/
lineWidth: 1,
/**
* Color of the line. If not set, it's inherited from
* [plotOptions.bb.color](#plotOptions.bb.color).
*
* @type {Highcharts.ColorString}
*/
lineColor: void 0
}
},
/**
* Top line options.
*
* @extends plotOptions.bb.bottomLine
*/
topLine: {
styles: {
lineWidth: 1,
/**
* @type {Highcharts.ColorString}
*/
lineColor: void 0
}
},
tooltip: {
pointFormat: '<span style="color:{point.color}">\u25CF</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'
},
marker: {
enabled: false
},
dataGrouping: {
approximation: 'averages'
}
},
/**
* @lends Highcharts.Series#
*/
merge(multipleLinesMixin, {
pointArrayMap: ['top', 'middle', 'bottom'],
pointValKey: 'middle',
nameComponents: ['period', 'standardDeviation'],
linesApiNames: ['topLine', 'bottomLine'],
init: function () {
SMA.prototype.init.apply(this, arguments);
// Set default color for lines:
this.options = merge({
topLine: {
styles: {
lineColor: this.color
}
},
bottomLine: {
styles: {
lineColor: this.color
}
}
}, this.options);
},
getValues: function (series, params) {
var period = params.period,
standardDeviation = params.standardDeviation,
xVal = series.xData,
yVal = series.yData,
yValLen = yVal ? yVal.length : 0,
// 0- date, 1-middle line, 2-top line, 3-bottom line
BB = [],
// middle line, top line and bottom line
ML,
TL,
BL,
date,
xData = [],
yData = [],
slicedX,
slicedY,
stdDev,
isOHLC,
point,
i;
if (xVal.length < period) {
return;
}
isOHLC = isArray(yVal[0]);
for (i = period; i <= yValLen; i++) {
slicedX = xVal.slice(i - period, i);
slicedY = yVal.slice(i - period, i);
point = SMA.prototype.getValues.call(this, {
xData: slicedX,
yData: slicedY
}, params);
date = point.xData[0];
ML = point.yData[0];
stdDev = getStandardDeviation(slicedY, params.index, isOHLC, ML);
TL = ML + standardDeviation * stdDev;
BL = ML - standardDeviation * stdDev;
BB.push([date, TL, ML, BL]);
xData.push(date);
yData.push([TL, ML, BL]);
}
return {
values: BB,
xData: xData,
yData: yData
};
}
}));
/**
* A bollinger bands indicator. If the [type](#series.bb.type) option is not
* specified, it is inherited from [chart.type](#chart.type).
*
* @extends series,plotOptions.bb
* @since 6.0.0
* @excluding dataParser, dataURL
* @product highstock
* @requires stock/indicators/indicators
* @requires stock/indicators/bollinger-bands
* @apioption series.bb
*/
''; // to include the above in the js output
});
_registerModule(_modules, 'masters/indicators/bollinger-bands.src.js', [], function () {
});
}));
|
cdnjs/cdnjs
|
ajax/libs/highcharts/8.0.2/indicators/bollinger-bands.src.js
|
JavaScript
|
mit
| 16,410
|
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
declare class GlobalError extends Error {}
//!! generated by clutz.
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka {
class Player extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_Player : any;
constructor (mediaElement ? : HTMLMediaElement | null , dependencyInjector ? : (a : shaka.Player | null ) => any ) ;
/**
* Adds the given text track to the loaded manifest. <code>load()</code> must
* resolve before calling. The presentation must have a duration.
* This returns the created track, which can immediately be selected by the
* application. The track will not be automatically selected.
*/
addTextTrack (uri : string , language : string , kind : string , mimeType ? : string , codec ? : string , label ? : string , forced ? : boolean ) : shaka.extern.Track ;
/**
* Adds the given text track to the loaded manifest. <code>load()</code> must
* resolve before calling. The presentation must have a duration.
* This returns the created track, which can immediately be selected by the
* application. The track will not be automatically selected.
*/
addTextTrackAsync (uri : string , language : string , kind : string , mimeType ? : string , codec ? : string , label ? : string , forced ? : boolean ) : Promise < shaka.extern.Track > ;
/**
* Tell the player to use <code>mediaElement</code> for all <code>load</code>
* requests until <code>detach</code> or <code>destroy</code> are called.
* <p>
* Calling <code>attach</code> with <code>initializedMediaSource=true</code>
* will tell the player to take the initial load step and initialize media
* source.
* <p>
* Calls to <code>attach</code> will interrupt any in-progress calls to
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
* <code>detach</code>, or <code>unload</code>.
*/
attach (mediaElement : HTMLMediaElement , initializeMediaSource ? : boolean ) : Promise < any > ;
/**
* Cancel trick-play. If the player has not loaded content or is still loading
* content this will be a no-op.
*/
cancelTrickPlay ( ) : any ;
/**
* Changes configuration settings on the Player. This checks the names of
* keys and the types of values to avoid coding errors. If there are errors,
* this logs them to the console and returns false. Correct fields are still
* applied even if there are other errors. You can pass an explicit
* <code>undefined</code> value to restore the default value. This has two
* modes of operation:
* <p>
* First, this can be passed a single "plain" object. This object should
* follow the {@link shaka.extern.PlayerConfiguration} object. Not all fields
* need to be set; unset fields retain their old values.
* <p>
* Second, this can be passed two arguments. The first is the name of the key
* to set. This should be a '.' separated path to the key. For example,
* <code>'streaming.alwaysStreamText'</code>. The second argument is the
* value to set.
* @param config This should either be a field name or an object.
* @param value In the second mode, this is the value to set.
*/
configure (config : string | object , value ? : any ) : boolean ;
/**
* After destruction, a Player object cannot be used again.
*/
destroy ( ) : Promise < any > ;
/**
* Tell the player to stop using its current media element. If the player is:
* <ul>
* <li>detached, this will do nothing,
* <li>attached, this will release the media element,
* <li>loading, this will abort loading, unload, and release the media
* element,
* <li>playing content, this will stop playback, unload, and release the
* media element.
* </ul>
* <p>
* Calls to <code>detach</code> will interrupt any in-progress calls to
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
* <code>detach</code>, or <code>unload</code>.
*/
detach ( ) : Promise < any > ;
/**
* Get the drm info used to initialize EME. If EME is not being used, this
* will return <code>null</code>. If the player is idle or has not initialized
* EME yet, this will return <code>null</code>.
*/
drmInfo ( ) : shaka.extern.DrmInfo | null ;
/**
* Returns a shaka.ads.AdManager instance, responsible for Dynamic
* Ad Insertion functionality.
*/
getAdManager ( ) : shaka.extern.IAdManager | null ;
/**
* Get the uri to the asset that the player has loaded. If the player has not
* loaded content, this will return <code>null</code>.
*/
getAssetUri ( ) : string | null ;
/**
* Return a list of audio languages available. If the player has not loaded
* any content, this will return an empty list.
*/
getAudioLanguages ( ) : string [] ;
/**
* Return a list of audio language-role combinations available. If the
* player has not loaded any content, this will return an empty list.
*/
getAudioLanguagesAndRoles ( ) : shaka.extern.LanguageRole [] ;
/**
* Get information about what the player has buffered. If the player has not
* loaded content or is currently loading content, the buffered content will
* be empty.
*/
getBufferedInfo ( ) : shaka.extern.BufferedInfo ;
/**
* Return a copy of the current configuration. Modifications of the returned
* value will not affect the Player's active configuration. You must call
* <code>player.configure()</code> to make changes.
*/
getConfiguration ( ) : shaka.extern.PlayerConfiguration ;
/**
* Get the next known expiration time for any EME session. If the session
* never expires, this will return <code>Infinity</code>. If there are no EME
* sessions, this will return <code>Infinity</code>. If the player has not
* loaded content, this will return <code>Infinity</code>.
*/
getExpiration ( ) : number ;
/**
* Return a list of image tracks that can be switched to.
* If the player has not loaded content, this will return an empty list.
*/
getImageTracks ( ) : shaka.extern.TrackList ;
/**
* Gets a map of EME key ID to the current key status.
*/
getKeyStatuses ( ) : { [ key: string ]: string } ;
/**
* Get the current load mode.
*/
getLoadMode ( ) : shaka.Player.LoadMode ;
/**
* Get the manifest that the player has loaded. If the player has not loaded
* any content, this will return <code>null</code>.
* NOTE: This structure is NOT covered by semantic versioning compatibility
* guarantees. It may change at any time!
* This is marked as deprecated to warn Closure Compiler users at compile-time
* to avoid using this method.
*/
getManifest ( ) : shaka.extern.Manifest | null ;
/**
* Get the type of manifest parser that the player is using. If the player has
* not loaded any content, this will return <code>null</code>.
*/
getManifestParserFactory ( ) : ( shaka.extern.ManifestParser.Factory ) | null ;
/**
* Get the media element that the player is currently using to play loaded
* content. If the player has not loaded content, this will return
* <code>null</code>.
*/
getMediaElement ( ) : HTMLMediaElement | null ;
getNetworkingEngine ( ) : shaka.net.NetworkingEngine | null ;
/**
* Get the playback rate of what is playing right now. If we are using trick
* play, this will return the trick play rate.
* If no content is playing, this will return 0.
* If content is buffering, this will return the expected playback rate once
* the video starts playing.
* <p>
* If the player has not loaded content, this will return a playback rate of
* 0.
*/
getPlaybackRate ( ) : number ;
/**
* Get the current playhead position as a date. This should only be called
* when the player has loaded a live stream. If the player has not loaded a
* live stream, this will return <code>null</code>.
*/
getPlayheadTimeAsDate ( ) : Date | null ;
/**
* Get the presentation start time as a date. This should only be called when
* the player has loaded a live stream. If the player has not loaded a live
* stream, this will return <code>null</code>.
*/
getPresentationStartTimeAsDate ( ) : Date | null ;
/**
* Get statistics for the current playback session. If the player is not
* playing content, this will return an empty stats object.
*/
getStats ( ) : shaka.extern.Stats ;
/**
* Return a list of text languages available. If the player has not loaded
* any content, this will return an empty list.
*/
getTextLanguages ( ) : string [] ;
/**
* Return a list of text language-role combinations available. If the player
* has not loaded any content, this will be return an empty list.
*/
getTextLanguagesAndRoles ( ) : shaka.extern.LanguageRole [] ;
/**
* Return a list of text tracks that can be switched to.
* <p>
* If the player has not loaded content, this will return an empty list.
*/
getTextTracks ( ) : shaka.extern.TrackList ;
/**
* Return a Thumbnail object from a image track Id and time.
* If the player has not loaded content, this will return a null.
*/
getThumbnails (trackId : number , time : number ) : Promise < shaka.extern.Thumbnail | null > ;
/**
* Return a list of variant tracks that can be switched to.
* <p>
* If the player has not loaded content, this will return an empty list.
*/
getVariantTracks ( ) : shaka.extern.TrackList ;
/**
* Check if the manifest contains only audio-only content. If the player has
* not loaded content, this will return <code>false</code>.
* <p>
* The player does not support content that contain more than one type of
* variants (i.e. mixing audio-only, video-only, audio-video). Content will be
* filtered to only contain one type of variant.
*/
isAudioOnly ( ) : boolean ;
/**
* Check if the player is currently in a buffering state (has too little
* content to play smoothly). If the player has not loaded content, this will
* return <code>false</code>.
*/
isBuffering ( ) : boolean ;
/**
* Get if the player is playing in-progress content. If the player has not
* loaded content, this will return <code>false</code>.
*/
isInProgress ( ) : boolean ;
/**
* Get if the player is playing live content. If the player has not loaded
* content, this will return <code>false</code>.
*/
isLive ( ) : boolean ;
/**
* Check if the text displayer is enabled.
*/
isTextTrackVisible ( ) : boolean ;
/**
* Get the key system currently used by EME. If EME is not being used, this
* will return an empty string. If the player has not loaded content, this
* will return an empty string.
*/
keySystem ( ) : string ;
/**
* Tell the player to load the content at <code>assetUri</code> and start
* playback at <code>startTime</code>. Before calling <code>load</code>,
* a call to <code>attach</code> must have succeeded.
* <p>
* Calls to <code>load</code> will interrupt any in-progress calls to
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
* <code>detach</code>, or <code>unload</code>.
* @param startTime When <code>startTime</code> is <code>null</code> or <code>undefined</code>, playback will start at the default start time (0 for VOD and liveEdge for LIVE).
*/
load (assetUri : string , startTime ? : number | null , mimeType ? : string ) : Promise < any > ;
/**
* Reset configuration to default.
*/
resetConfiguration ( ) : any ;
/**
* Retry streaming after a streaming failure has occurred. When the player has
* not loaded content or is loading content, this will be a no-op and will
* return <code>false</code>.
* <p>
* If the player has loaded content, and streaming has not seen an error, this
* will return <code>false</code>.
* <p>
* If the player has loaded content, and streaming seen an error, but the
* could not resume streaming, this will return <code>false</code>.
*/
retryStreaming ( ) : boolean ;
/**
* Get the range of time (in seconds) that seeking is allowed. If the player
* has not loaded content, this will return a range from 0 to 0.
*/
seekRange ( ) : shaka.extern.BufferedRange ;
/**
* Sets the current audio language and current variant role to the selected
* language and role, and chooses a new variant if need be. If the player has
* not loaded any content, this will be a no-op.
*/
selectAudioLanguage (language : string , role ? : string ) : any ;
/**
* Sets the current text language and current text role to the selected
* language and role, and chooses a new variant if need be. If the player has
* not loaded any content, this will be a no-op.
*/
selectTextLanguage (language : string , role ? : string , forced ? : boolean ) : any ;
/**
* Select a specific text track. <code>track</code> should come from a call to
* <code>getTextTracks</code>. If the track is not found, this will be a
* no-op. If the player has not loaded content, this will be a no-op.
* <p>
* Note that <code>AdaptationEvents</code> are not fired for manual track
* selections.
*/
selectTextTrack (track : shaka.extern.Track ) : any ;
/**
* Select a specific variant track to play. <code>track</code> should come
* from a call to <code>getVariantTracks</code>. If <code>track</code> cannot
* be found, this will be a no-op. If the player has not loaded content, this
* will be a no-op.
* <p>
* Changing variants will take effect once the currently buffered content has
* been played. To force the change to happen sooner, use
* <code>clearBuffer</code> with <code>safeMargin</code>. Setting
* <code>clearBuffer</code> to <code>true</code> will clear all buffered
* content after <code>safeMargin</code>, allowing the new variant to start
* playing sooner.
* <p>
* Note that <code>AdaptationEvents</code> are not fired for manual track
* selections.
* @param safeMargin Optional amount of buffer (in seconds) to retain when clearing the buffer. Useful for switching variant quickly without causing a buffering event. Defaults to 0 if not provided. Ignored if clearBuffer is false. Can cause hiccups on some browsers if chosen too small, e.g. The amount of two segments is a fair minimum to consider as safeMargin value.
*/
selectVariantTrack (track : shaka.extern.Track , clearBuffer ? : boolean , safeMargin ? : number ) : any ;
/**
* Select variant tracks that have a given label. This assumes the
* label uniquely identifies an audio stream, so all the variants
* are expected to have the same variant.audio.
*/
selectVariantsByLabel (label : string ) : any ;
/**
* Set the maximum resolution that the platform's hardware can handle.
* This will be called automatically by <code>shaka.cast.CastReceiver</code>
* to enforce limitations of the Chromecast hardware.
*/
setMaxHardwareResolution (width : number , height : number ) : any ;
/**
* Enable or disable the text displayer. If the player is in an unloaded
* state, the request will be applied next time content is loaded.
*/
setTextTrackVisibility (isVisible : boolean ) : any ;
/**
* Set the videoContainer to construct UITextDisplayer.
*/
setVideoContainer (videoContainer : HTMLElement | null ) : any ;
/**
* Enable trick play to skip through content without playing by repeatedly
* seeking. For example, a rate of 2.5 would result in 2.5 seconds of content
* being skipped every second. A negative rate will result in moving
* backwards.
* <p>
* If the player has not loaded content or is still loading content this will
* be a no-op. Wait until <code>load</code> has completed before calling.
* <p>
* Trick play will be canceled automatically if the playhead hits the
* beginning or end of the seekable range for the content.
*/
trickPlay (rate : number ) : any ;
/**
* Tell the player to either return to:
* <ul>
* <li>detached (when it does not have a media element),
* <li>attached (when it has a media element and
* <code>initializedMediaSource=false</code>)
* <li>media source initialized (when it has a media element and
* <code>initializedMediaSource=true</code>)
* </ul>
* <p>
* Calls to <code>unload</code> will interrupt any in-progress calls to
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
* <code>detach</code>, or <code>unload</code>.
*/
unload (initializeMediaSource ? : boolean ) : Promise < any > ;
/**
* Return whether the browser provides basic support. If this returns false,
* Shaka Player cannot be used at all. In this case, do not construct a
* Player instance and do not use the library.
*/
static isBrowserSupported ( ) : boolean ;
/**
* Probes the browser to determine what features are supported. This makes a
* number of requests to EME/MSE/etc which may result in user prompts. This
* should only be used for diagnostics.
* <p>
* NOTE: This may show a request to the user for permission.
*/
static probeSupport (promptsOkay ? : boolean ) : Promise < shaka.extern.SupportType > ;
/**
* Registers a plugin callback that will be called with
* <code>support()</code>. The callback will return the value that will be
* stored in the return value from <code>support()</code>.
*/
static registerSupportPlugin (name : string , callback : ( ) => any ) : any ;
/**
* Set a factory to create an ad manager during player construction time.
* This method needs to be called bafore instantiating the Player class.
*/
static setAdManagerFactory (factory : shaka.extern.IAdManager.Factory ) : any ;
static version : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.Player {
/**
* In order to know what method of loading the player used for some content, we
* have this enum. It lets us know if content has not been loaded, loaded with
* media source, or loaded with src equals.
* This enum has a low resolution, because it is only meant to express the
* outer limits of the various states that the player is in. For example, when
* someone calls a public method on player, it should not matter if they have
* initialized drm engine, it should only matter if they finished loading
* content.
*/
/**
* In order to know what method of loading the player used for some content, we
* have this enum. It lets us know if content has not been loaded, loaded with
* media source, or loaded with src equals.
* This enum has a low resolution, because it is only meant to express the
* outer limits of the various states that the player is in. For example, when
* someone calls a public method on player, it should not matter if they have
* initialized drm engine, it should only matter if they finished loading
* content.
*/
enum LoadMode {
DESTROYED = 0.0 ,
MEDIA_SOURCE = 2.0 ,
NOT_LOADED = 1.0 ,
SRC_EQUALS = 3.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.abr {
class SimpleAbrManager implements shaka.extern.AbrManager {
private noStructuralTyping_shaka_abr_SimpleAbrManager : any;
chooseVariant ( ) : any ;
configure (config : any ) : any ;
disable ( ) : any ;
enable ( ) : any ;
getBandwidthEstimate ( ) : any ;
init (switchCallback : any ) : any ;
playbackRateChanged (rate : any ) : any ;
segmentDownloaded (deltaTimeMs : any , numBytes : any ) : any ;
setVariants (variants : any ) : any ;
stop ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ads {
/**
* A class responsible for ad-related interactions.
*/
class AdManager extends shaka.util.FakeEventTarget implements shaka.extern.IAdManager , shaka.util.IReleasable {
private noStructuralTyping_shaka_ads_AdManager : any;
getStats ( ) : shaka.extern.AdsStats ;
initClientSide (adContainer : any , video : any ) : any ;
initServerSide (adContainer : any , video : any ) : any ;
onAssetUnload ( ) : any ;
onCueMetadataChange (value : any ) : any ;
onDashTimedMetadata (region : any ) : any ;
onHlsTimedMetadata (metadata : any , timestamp : any ) : any ;
release ( ) : any ;
replaceServerSideAdTagParameters (adTagParameters : any ) : any ;
requestClientSideAds (imaRequest : any ) : any ;
requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
setLocale (locale : any ) : any ;
/**
* The event name for when a sequence of ads has been loaded.
*/
static ADS_LOADED : string ;
/**
* The event name for when the client side SDK signalled its readiness
* to play a VPAID ad or an ad rule.
*/
static AD_BREAK_READY : string ;
/**
* The event name for when the ad is buffering.
*/
static AD_BUFFERING : string ;
/**
* The event name for when the ad was clicked.
*/
static AD_CLICKED : string ;
/**
* The event name for when the ad was closed by the user.
*/
static AD_CLOSED : string ;
/**
* The event name for when an ad has completed playing.
*/
static AD_COMPLETE : string ;
/**
* The event name for when the ad's duration changed.
*/
static AD_DURATION_CHANGED : string ;
/**
* The event name for when an ad playhead crosses first quartile.
*/
static AD_FIRST_QUARTILE : string ;
/**
* The event name for when the ad's URL was hit.
*/
static AD_IMPRESSION : string ;
/**
* The event name for when the interaction callback for the ad was
* triggered.
*/
static AD_INTERACTION : string ;
/**
* The event name for when the ad changes from or to linear.
*/
static AD_LINEAR_CHANGED : string ;
/**
* The event name for when the ad data becomes available.
*/
static AD_LOADED : string ;
/**
* The event name for when the ad's metadata becomes available.
*/
static AD_METADATA : string ;
/**
* The event name for when an ad playhead crosses midpoint.
*/
static AD_MIDPOINT : string ;
/**
* The event name for when the ad was muted.
*/
static AD_MUTED : string ;
/**
* The event name for when the ad was paused.
*/
static AD_PAUSED : string ;
/**
* The event name for when there is an update to the current ad's progress.
*/
static AD_PROGRESS : string ;
/**
* The event name for when the ad display encountered a recoverable
* error.
*/
static AD_RECOVERABLE_ERROR : string ;
/**
* The event name for when the ad was resumed after a pause.
*/
static AD_RESUMED : string ;
/**
* The event name for when an ad is skipped by the user..
*/
static AD_SKIPPED : string ;
/**
* The event name for when the ad's skip status changes
* (usually it becomes skippable when it wasn't before).
*/
static AD_SKIP_STATE_CHANGED : string ;
/**
* The event name for when an ad has started playing.
*/
static AD_STARTED : string ;
/**
* The event name for when an ad has finished playing
* (played all the way through, was skipped, or was unable to proceed
* due to an error).
*/
static AD_STOPPED : string ;
/**
* The event name for when an ad playhead crosses third quartile.
*/
static AD_THIRD_QUARTILE : string ;
/**
* The event name for when the ad volume has changed.
*/
static AD_VOLUME_CHANGED : string ;
/**
* The event name for when all the ads were completed.
*/
static ALL_ADS_COMPLETED : string ;
/**
* The event name for when the ad's cue points (start/end markers)
* have changed.
*/
static CUEPOINTS_CHANGED : string ;
/**
* The event name for when the native IMA ad manager object has
* loaded and become available.
*/
static IMA_AD_MANAGER_LOADED : string ;
/**
* The event name for when the native IMA stream manager object has
* loaded and become available.
*/
static IMA_STREAM_MANAGER_LOADED : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ads {
class ClientSideAd implements shaka.extern.IAd {
private noStructuralTyping_shaka_ads_ClientSideAd : any;
constructor (imaAd : google.ima.Ad , imaAdManager : google.ima.AdsManager ) ;
canSkipNow ( ) : any ;
getDuration ( ) : any ;
getMinSuggestedDuration ( ) : any ;
getPositionInSequence ( ) : any ;
getRemainingTime ( ) : any ;
getSequenceLength ( ) : any ;
getTimeUntilSkippable ( ) : any ;
getVolume ( ) : any ;
isMuted ( ) : any ;
isPaused ( ) : any ;
isSkippable ( ) : any ;
pause ( ) : any ;
play ( ) : any ;
release ( ) : any ;
resize (width : any , height : any ) : any ;
setMuted (muted : any ) : any ;
setVolume (volume : any ) : any ;
skip ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ads {
class ServerSideAd implements shaka.extern.IAd {
private noStructuralTyping_shaka_ads_ServerSideAd : any;
constructor (imaAd : google.ima.dai.api.Ad | null , video : HTMLMediaElement | null ) ;
canSkipNow ( ) : any ;
getDuration ( ) : any ;
getMinSuggestedDuration ( ) : any ;
getPositionInSequence ( ) : any ;
getRemainingTime ( ) : any ;
getSequenceLength ( ) : any ;
getTimeUntilSkippable ( ) : any ;
getVolume ( ) : any ;
isMuted ( ) : any ;
isPaused ( ) : any ;
isSkippable ( ) : any ;
pause ( ) : any ;
play ( ) : any ;
release ( ) : any ;
resize (width : any , height : any ) : any ;
setMuted (muted : any ) : any ;
setVolume (volume : any ) : any ;
skip ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.cast {
class CastProxy extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_cast_CastProxy : any;
constructor (video : HTMLMediaElement , player : shaka.Player , receiverAppId : string ) ;
canCast ( ) : boolean ;
cast ( ) : Promise < any > ;
changeReceiverId (newAppId : string ) : any ;
/**
* Destroys the proxy and the underlying local Player.
* @param forceDisconnect If true, force the receiver app to shut down by disconnecting. Does nothing if not connected.
*/
destroy (forceDisconnect ? : boolean ) : Promise < any > ;
/**
* Force the receiver app to shut down by disconnecting.
*/
forceDisconnect ( ) : any ;
/**
* Get a proxy for the Player that delegates to local and remote Player
* objects as appropriate.
*/
getPlayer ( ) : shaka.Player ;
/**
* Get a proxy for the video element that delegates to local and remote video
* elements as appropriate.
*/
getVideo ( ) : HTMLMediaElement ;
isCasting ( ) : boolean ;
receiverName ( ) : string ;
/**
* Set application-specific data.
* @param appData Application-specific data to relay to the receiver.
*/
setAppData (appData : object | null ) : any ;
/**
* Show a dialog where user can choose to disconnect from the cast connection.
*/
suggestDisconnect ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.cast {
/**
* A receiver to communicate between the Chromecast-hosted player and the
* sender application.
*/
class CastReceiver extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_cast_CastReceiver : any;
/**
* A receiver to communicate between the Chromecast-hosted player and the
* sender application.
*/
constructor (video : HTMLMediaElement , player : shaka.Player , appDataCallback ? : (a : object | null ) => any , contentIdCallback ? : (a : string ) => string ) ;
/**
* Clear all Cast content metadata.
* Should be called from an appDataCallback.
*/
clearContentMetadata ( ) : any ;
/**
* Destroys the underlying Player, then terminates the cast receiver app.
*/
destroy ( ) : Promise < any > ;
isConnected ( ) : boolean ;
isIdle ( ) : boolean ;
/**
* Set the Cast content's artist.
* Also sets the metadata type to music.
* Should be called from an appDataCallback.
*/
setContentArtist (artist : string ) : any ;
/**
* Set the Cast content's thumbnail image.
* Should be called from an appDataCallback.
*/
setContentImage (imageUrl : string ) : any ;
/**
* Set all Cast content metadata, as defined by the Cast SDK.
* Should be called from an appDataCallback.
* For a simpler way to set basic metadata, see:
* - setContentTitle()
* - setContentImage()
* - setContentArtist()
* @param metadata A Cast metadata object, one of: - https://developers.google.com/cast/docs/reference/messages#GenericMediaMetadata - https://developers.google.com/cast/docs/reference/messages#MovieMediaMetadata - https://developers.google.com/cast/docs/reference/messages#TvShowMediaMetadata - https://developers.google.com/cast/docs/reference/messages#MusicTrackMediaMetadata
*/
setContentMetadata (metadata : object | null ) : any ;
/**
* Set the Cast content's title.
* Should be called from an appDataCallback.
*/
setContentTitle (title : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.dash {
/**
* Creates a new DASH parser.
*/
class DashParser implements shaka.extern.ManifestParser {
private noStructuralTyping_shaka_dash_DashParser : any;
configure (config : any ) : any ;
onExpirationUpdated (sessionId : any , expiration : any ) : any ;
start (uri : any , playerInterface : any ) : any ;
stop ( ) : any ;
update ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka {
class dependencies {
private noStructuralTyping_shaka_dependencies : any;
/**
* Registers a new dependency.
* @param key which is used for retrieving a dependency
* @param dep a dependency
*/
static add (key : shaka.dependencies.Allowed , dep : any ) : any ;
/**
* Check if we have a dependency for the key.
* @param key key
*/
static has (key : shaka.dependencies.Allowed ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.dependencies {
enum Allowed {
muxjs = 'muxjs' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.hls {
/**
* HLS parser.
*/
class HlsParser implements shaka.extern.ManifestParser {
private noStructuralTyping_shaka_hls_HlsParser : any;
configure (config : any ) : any ;
onExpirationUpdated (sessionId : any , expiration : any ) : any ;
start (uri : any , playerInterface : any ) : any ;
stop ( ) : any ;
update ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* Creates an InitSegmentReference, which provides the location to an
* initialization segment.
*/
class InitSegmentReference {
private noStructuralTyping_shaka_media_InitSegmentReference : any;
constructor (uris : ( ) => string [] , startByte : number , endByte : number | null ) ;
/**
* Returns the offset from the start of the resource to the end of the
* segment, inclusive. A value of null indicates that the segment extends
* to the end of the resource.
*/
getEndByte ( ) : number | null ;
/**
* Returns the offset from the start of the resource to the
* start of the segment.
*/
getStartByte ( ) : number ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
class ManifestParser {
private noStructuralTyping_shaka_media_ManifestParser : any;
/**
* Registers a manifest parser by file extension.
* @param extension The file extension of the manifest.
* @param parserFactory The factory used to create parser instances.
*/
static registerParserByExtension (extension : string , parserFactory : shaka.extern.ManifestParser.Factory ) : any ;
/**
* Registers a manifest parser by MIME type.
* @param mimeType The MIME type of the manifest.
* @param parserFactory The factory used to create parser instances.
*/
static registerParserByMime (mimeType : string , parserFactory : shaka.extern.ManifestParser.Factory ) : any ;
/**
* Unregisters a manifest parser by MIME type.
* @param mimeType The MIME type of the manifest.
*/
static unregisterParserByMime (mimeType : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* A meta-SegmentIndex composed of multiple other SegmentIndexes.
* Used in constructing multi-Period Streams for DASH.
*/
class MetaSegmentIndex extends shaka.media.SegmentIndex implements Iterable < shaka.media.SegmentReference > {
private noStructuralTyping_shaka_media_MetaSegmentIndex : any;
/**
* A meta-SegmentIndex composed of multiple other SegmentIndexes.
* Used in constructing multi-Period Streams for DASH.
*/
constructor ( ) ;
//!! Symbol.iterator inserted by Clutz for Iterable subtype
[Symbol.iterator](): Iterator < shaka.media.SegmentReference > ;
evict (time : number ) : any ;
find (time : number ) : number | null ;
fit (windowStart : number , windowEnd : number | null , c ? : boolean ) : any ;
get (position : number ) : shaka.media.SegmentReference | null ;
merge (references : shaka.media.SegmentReference [] ) : any ;
mergeAndEvict (references : shaka.media.SegmentReference [] , windowStart : number ) : any ;
offset (offset : number ) : any ;
release ( ) : any ;
updateEvery (interval : number , updateCallback : ( ) => ( shaka.media.SegmentReference | null ) [] | null ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* PresentationTimeline.
*/
class PresentationTimeline {
private noStructuralTyping_shaka_media_PresentationTimeline : any;
constructor (presentationStartTime : number | null , presentationDelay : number , autoCorrectDrift ? : boolean ) ;
/**
* Gets the presentation delay in seconds.
*/
getDelay ( ) : number ;
getDuration ( ) : number ;
getMaxSegmentDuration ( ) : number ;
getPresentationStartTime ( ) : number | null ;
/**
* Gets the seek range start time, offset by the given amount. This is used
* to ensure that we don't "fall" back out of the seek window while we are
* buffering.
* @param offset The offset to add to the start time for live streams.
*/
getSafeSeekRangeStart (offset : number ) : number ;
/**
* Gets the seek range end.
*/
getSeekRangeEnd ( ) : number ;
/**
* Gets the seek range start time.
*/
getSeekRangeStart ( ) : number ;
/**
* Gets the presentation's current segment availability end time. Segments
* starting after this time should be assumed to be unavailable.
*/
getSegmentAvailabilityEnd ( ) : number ;
/**
* Gets the presentation's current segment availability start time. Segments
* ending at or before this time should be assumed to be unavailable.
*/
getSegmentAvailabilityStart ( ) : number ;
isInProgress ( ) : boolean ;
isLive ( ) : boolean ;
/**
* Gives PresentationTimeline a Stream's maximum segment duration so it can
* size and position the segment availability window. This function should be
* called once for each Stream (no more, no less), but does not have to be
* called if notifySegments() is called instead for a particular stream.
* @param maxSegmentDuration The maximum segment duration for a particular stream.
*/
notifyMaxSegmentDuration (maxSegmentDuration : number ) : any ;
/**
* Gives PresentationTimeline a Stream's minimum segment start time.
*/
notifyMinSegmentStartTime (startTime : number ) : any ;
/**
* Gives PresentationTimeline a Stream's segments so it can size and position
* the segment availability window, and account for missing segment
* information. This function should be called once for each Stream (no more,
* no less).
*/
notifySegments (references : shaka.media.SegmentReference [] ) : any ;
/**
* Offsets the segment times by the given amount.
* @param offset The number of seconds to offset by. A positive number adjusts the segment times forward.
*/
offset (offset : number ) : any ;
/**
* Sets the presentation's segment availability time offset. This should be
* only set for Low Latency Dash.
* The segments are available earlier for download than the availability start
* time, so we can move closer to the live edge.
*/
setAvailabilityTimeOffset (offset : number ) : any ;
/**
* Sets the clock offset, which is the difference between the client's clock
* and the server's clock, in milliseconds (i.e., serverTime = Date.now() +
* clockOffset).
* @param offset The clock offset, in ms.
*/
setClockOffset (offset : number ) : any ;
/**
* Sets the presentation delay in seconds.
*/
setDelay (delay : number ) : any ;
/**
* Sets the presentation's duration.
* @param duration The presentation's duration in seconds. Infinity indicates that the presentation continues indefinitely.
*/
setDuration (duration : number ) : any ;
/**
* Sets the presentation's segment availability duration. The segment
* availability duration should only be set for live.
* @param segmentAvailabilityDuration The presentation's new segment availability duration in seconds.
*/
setSegmentAvailabilityDuration (segmentAvailabilityDuration : number ) : any ;
/**
* Sets the presentation's static flag.
* @param isStatic If true, the presentation is static, meaning all segments are available at once.
*/
setStatic (isStatic : boolean ) : any ;
/**
* Sets the start time of the user-defined seek range. This is only used for
* VOD content.
*/
setUserSeekStart (time : number ) : any ;
/**
* True if the presentation start time is being used to calculate the live
* edge.
* Using the presentation start time means that the stream may be subject to
* encoder drift. At runtime, we will avoid using the presentation start time
* whenever possible.
*/
usingPresentationStartTime ( ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* SegmentIndex.
*/
class SegmentIndex implements Iterable < shaka.media.SegmentReference > {
private noStructuralTyping_shaka_media_SegmentIndex : any;
/**
* SegmentIndex.
*/
constructor (references : shaka.media.SegmentReference [] ) ;
//!! Symbol.iterator inserted by Clutz for Iterable subtype
[Symbol.iterator](): Iterator < shaka.media.SegmentReference > ;
/**
* SegmentIndex used to be an IDestroyable. Now it is an IReleasable.
* This method is provided for backward compatibility.
*/
destroy ( ) : Promise < any > ;
/**
* Removes all SegmentReferences that end before the given time.
* @param time The time in seconds.
*/
evict (time : number ) : any ;
/**
* Finds the position of the segment for the given time, in seconds, relative
* to the start of the presentation. Returns the position of the segment
* with the largest end time if more than one segment is known for the given
* time.
*/
find (time : number ) : number | null ;
/**
* Drops references that start after windowEnd, or end before windowStart,
* and contracts the last reference so that it ends at windowEnd.
* Do not call on the last period of a live presentation (unknown duration).
* It is okay to call on the other periods of a live presentation, where the
* duration is known and another period has been added.
* @param isNew Whether this is a new SegmentIndex and we shouldn't update the number of evicted elements.
*/
fit (windowStart : number , windowEnd : number | null , isNew ? : boolean ) : any ;
/**
* Gets the SegmentReference for the segment at the given position.
* @param position The position of the segment as returned by find().
*/
get (position : number ) : shaka.media.SegmentReference | null ;
/**
* Returns a new iterator that initially points to the segment that contains
* the given time. Like the normal iterator, next() must be called first to
* get to the first element. Returns null if we do not find a segment at the
* requested time.
*/
getIteratorForTime (time : number ) : shaka.media.SegmentIterator | null ;
/**
* Marks the index as immutable. Segments cannot be added or removed after
* this point. This doesn't affect the references themselves. This also
* makes the destroy/release methods do nothing.
* This is mainly for testing.
*/
markImmutable ( ) : any ;
/**
* Merges the given SegmentReferences. Supports extending the original
* references only. Will replace old references with equivalent new ones, and
* keep any unique old ones.
* Used, for example, by the DASH and HLS parser, where manifests may not list
* all available references, so we must keep available references in memory to
* fill the availability window.
* @param references The list of SegmentReferences, which must be sorted first by their start times (ascending) and second by their end times (ascending).
*/
merge (references : shaka.media.SegmentReference [] ) : any ;
/**
* Merges the given SegmentReferences and evicts the ones that end before the
* given time. Supports extending the original references only.
* Will not replace old references or interleave new ones.
* Used, for example, by the DASH and HLS parser, where manifests may not list
* all available references, so we must keep available references in memory to
* fill the availability window.
* @param references The list of SegmentReferences, which must be sorted first by their start times (ascending) and second by their end times (ascending).
* @param windowStart The start of the availability window to filter out the references that are no longer available.
*/
mergeAndEvict (references : shaka.media.SegmentReference [] , windowStart : number ) : any ;
/**
* Offset all segment references by a fixed amount.
* @param offset The amount to add to each segment's start and end times.
*/
offset (offset : number ) : any ;
release ( ) : any ;
/**
* Updates the references every so often. Stops when the references list
* returned by the callback is null.
* @param interval The interval in seconds.
*/
updateEvery (interval : number , updateCallback : ( ) => ( shaka.media.SegmentReference | null ) [] | null ) : any ;
/**
* Create a SegmentIndex for a single segment of the given start time and
* duration at the given URIs.
*/
static forSingleSegment (startTime : number , duration : number , uris : string [] ) : shaka.media.SegmentIndex ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* An iterator over a SegmentIndex's references.
*/
class SegmentIterator implements Iterator < shaka.media.SegmentReference | null > {
private noStructuralTyping_shaka_media_SegmentIterator : any;
/**
* An iterator over a SegmentIndex's references.
*/
constructor (segmentIndex : shaka.media.SegmentIndex | null , index : number , partialSegmentIndex : number ) ;
current ( ) : shaka.media.SegmentReference | null ;
next ( ) : any ;
/**
* Move the iterator to a given timestamp in the underlying SegmentIndex.
*/
seek (time : number ) : shaka.media.SegmentReference | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.media {
/**
* SegmentReference provides the start time, end time, and location to a media
* segment.
*/
class SegmentReference {
private noStructuralTyping_shaka_media_SegmentReference : any;
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] ) ;
/**
* Returns the offset from the start of the resource to the end of the
* segment, inclusive. A value of null indicates that the segment extends to
* the end of the resource.
*/
getEndByte ( ) : number | null ;
/**
* Returns the segment's end time in seconds.
*/
getEndTime ( ) : number ;
/**
* Returns the offset from the start of the resource to the
* start of the segment.
*/
getStartByte ( ) : number ;
/**
* Returns the segment's start time in seconds.
*/
getStartTime ( ) : number ;
/**
* Creates and returns the URIs of the resource containing the segment.
*/
getUris ( ) : string [] ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net {
class DataUriPlugin {
private noStructuralTyping_shaka_net_DataUriPlugin : any;
static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net {
class HttpFetchPlugin {
private noStructuralTyping_shaka_net_HttpFetchPlugin : any;
/**
* Determine if the Fetch API is supported in the browser. Note: this is
* deliberately exposed as a method to allow the client app to use the same
* logic as Shaka when determining support.
*/
static isSupported ( ) : boolean ;
static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net {
class HttpXHRPlugin {
private noStructuralTyping_shaka_net_HttpXHRPlugin : any;
static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net {
/**
* NetworkingEngine wraps all networking operations. This accepts plugins that
* handle the actual request. A plugin is registered using registerScheme.
* Each scheme has at most one plugin to handle the request.
*/
class NetworkingEngine extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_net_NetworkingEngine : any;
/**
* NetworkingEngine wraps all networking operations. This accepts plugins that
* handle the actual request. A plugin is registered using registerScheme.
* Each scheme has at most one plugin to handle the request.
*/
constructor (onProgressUpdated ? : (a : number , b : number ) => any ) ;
/**
* Clears all request filters.
*/
clearAllRequestFilters ( ) : any ;
/**
* Clears all response filters.
*/
clearAllResponseFilters ( ) : any ;
destroy ( ) : Promise < any > ;
/**
* Registers a new request filter. All filters are applied in the order they
* are registered.
*/
registerRequestFilter (filter : shaka.extern.RequestFilter ) : any ;
/**
* Registers a new response filter. All filters are applied in the order they
* are registered.
*/
registerResponseFilter (filter : shaka.extern.ResponseFilter ) : any ;
/**
* Makes a network request and returns the resulting data.
*/
request (type : shaka.net.NetworkingEngine.RequestType , request : shaka.extern.Request ) : shaka.net.NetworkingEngine.PendingRequest ;
setForceHTTPS (forceHTTPS : boolean ) : any ;
/**
* Removes a request filter.
*/
unregisterRequestFilter (filter : shaka.extern.RequestFilter ) : any ;
/**
* Removes a response filter.
*/
unregisterResponseFilter (filter : shaka.extern.ResponseFilter ) : any ;
/**
* Gets a copy of the default retry parameters.
*/
static defaultRetryParameters ( ) : shaka.extern.RetryParameters ;
/**
* Makes a simple network request for the given URIs.
*/
static makeRequest (uris : string [] , retryParams : shaka.extern.RetryParameters , streamDataCallback ? : ( (a : ArrayBuffer | ArrayBufferView ) => Promise < any > ) | null ) : shaka.extern.Request ;
/**
* Registers a scheme plugin. This plugin will handle all requests with the
* given scheme. If a plugin with the same scheme already exists, it is
* replaced, unless the existing plugin is of higher priority.
* If no priority is provided, this defaults to the highest priority of
* APPLICATION.
*/
static registerScheme (scheme : string , plugin : shaka.extern.SchemePlugin , priority ? : number , progressSupport ? : boolean ) : any ;
/**
* Removes a scheme plugin.
*/
static unregisterScheme (scheme : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net.NetworkingEngine {
/**
* A wrapper class for the number of bytes remaining to be downloaded for the
* request.
* Instead of using PendingRequest directly, this class is needed to be sent to
* plugin as a parameter, and a Promise is returned, before PendingRequest is
* created.
*/
class NumBytesRemainingClass {
private noStructuralTyping_shaka_net_NetworkingEngine_NumBytesRemainingClass : any;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net.NetworkingEngine {
/**
* A pending network request. This can track the current progress of the
* download, and allows the request to be aborted if the network is slow.
*/
class PendingRequest extends shaka.util.AbortableOperation < any > implements shaka.extern.IAbortableOperation < any > {
private noStructuralTyping_shaka_net_NetworkingEngine_PendingRequest : any;
/**
* A pending network request. This can track the current progress of the
* download, and allows the request to be aborted if the network is slow.
*/
constructor (promise : Promise < any > , onAbort : shaka.extern.CreateSegmentIndexFunction , numBytesRemainingObj : shaka.net.NetworkingEngine.NumBytesRemainingClass | null ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net.NetworkingEngine {
/**
* Priority level for network scheme plugins.
* If multiple plugins are provided for the same scheme, only the
* highest-priority one is used.
*/
/**
* Priority level for network scheme plugins.
* If multiple plugins are provided for the same scheme, only the
* highest-priority one is used.
*/
enum PluginPriority {
APPLICATION = 3.0 ,
FALLBACK = 1.0 ,
PREFERRED = 2.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.net.NetworkingEngine {
/**
* Request types. Allows a filter to decide which requests to read/alter.
*/
/**
* Request types. Allows a filter to decide which requests to read/alter.
*/
enum RequestType {
APP = 3.0 ,
LICENSE = 2.0 ,
MANIFEST = 0.0 ,
SEGMENT = 1.0 ,
TIMING = 4.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.offline {
class OfflineScheme {
private noStructuralTyping_shaka_offline_OfflineScheme : any;
static plugin (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.offline {
class Storage implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_offline_Storage : any;
constructor (player ? : shaka.Player ) ;
/**
* Sets configuration values for Storage. This is associated with
* Player.configure and will change the player instance given at
* initialization.
* @param config This should either be a field name or an object following the form of {@link shaka.extern.PlayerConfiguration}, where you may omit any field you do not wish to change.
* @param value This should be provided if the previous parameter was a string field name.
*/
configure (config : string | object , value ? : any ) : boolean ;
destroy ( ) : Promise < any > ;
/**
* Return a copy of the current configuration. Modifications of the returned
* value will not affect the Storage instance's active configuration. You
* must call storage.configure() to make changes.
*/
getConfiguration ( ) : shaka.extern.PlayerConfiguration ;
/**
* Return the networking engine that storage is using. If storage was
* initialized with a player instance, then the networking engine returned
* will be the same as |player.getNetworkingEngine()|.
* The returned value will only be null if |destroy| was called before
* |getNetworkingEngine|.
*/
getNetworkingEngine ( ) : shaka.net.NetworkingEngine | null ;
/**
* Returns true if an asset is currently downloading.
*/
getStoreInProgress ( ) : boolean ;
/**
* Lists all the stored content available.
*/
list ( ) : Promise < shaka.extern.StoredContent [] > ;
/**
* Removes the given stored content. This will also attempt to release the
* licenses, if any.
*/
remove (contentUri : string ) : Promise < any > ;
/**
* Removes any EME sessions that were not successfully removed before. This
* returns whether all the sessions were successfully removed.
*/
removeEmeSessions ( ) : Promise < boolean > ;
/**
* Stores the given manifest. If the content is encrypted, and encrypted
* content cannot be stored on this platform, the Promise will be rejected
* with error code 6001, REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE.
* Multiple assets can be downloaded at the same time, but note that since
* the storage instance has a single networking engine, multiple storage
* objects will be necessary if some assets require unique network filters.
* This snapshots the storage config at the time of the call, so it will not
* honor any changes to config mid-store operation.
* @param uri The URI of the manifest to store.
* @param appMetadata An arbitrary object from the application that will be stored along-side the offline content. Use this for any application-specific metadata you need associated with the stored content. For details on the data types that can be stored here, please refer to {@link https://bit.ly/StructClone}
* @param mimeType The mime type for the content |manifestUri| points to.
*/
store (uri : string , appMetadata ? : object , mimeType ? : string ) : shaka.extern.IAbortableOperation < any > ;
/**
* Delete the on-disk storage and all the content it contains. This should not
* be done in normal circumstances. Only do it when storage is rendered
* unusable, such as by a version mismatch. No business logic will be run, and
* licenses will not be released.
*/
static deleteAll ( ) : Promise < any > ;
/**
* Gets whether offline storage is supported. Returns true if offline storage
* is supported for clear content. Support for offline storage of encrypted
* content will not be determined until storage is attempted.
*/
static support ( ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.offline {
/**
* StorageMuxer is responsible for managing StorageMechanisms and addressing
* cells. The primary purpose of the muxer is to give the caller the correct
* cell for the operations they want to perform.
* |findActive| will be used when the caller wants a cell that supports
* add-operations. This will be used when saving new content to storage.
* |findAll| will be used when the caller want to look at all the content
* in storage.
* |resolvePath| will be used to convert a path (from |findActive| and
* |findAll|) into a cell, which it then returns.
*/
class StorageMuxer implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_offline_StorageMuxer : any;
/**
* Free all resources used by the muxer, mechanisms, and cells. This should
* not affect the stored content.
*/
destroy ( ) : Promise < any > ;
/**
* Register a storage mechanism for use with the default storage muxer. This
* will have no effect on any storage muxer already in main memory.
*/
static register (name : string , factory : ( ) => shaka.extern.StorageMechanism | null ) : any ;
/**
* Unregister a storage mechanism for use with the default storage muxer. This
* will have no effect on any storage muxer already in main memory.
* @param name The name that the storage mechanism was registered under.
*/
static unregister (name : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka {
class polyfill {
private noStructuralTyping_shaka_polyfill : any;
/**
* Install all polyfills.
*/
static installAll ( ) : any ;
/**
* Registers a new polyfill to be installed.
* @param priority An optional number priority. Higher priorities will be executed before lower priority ones. Default is 0.
*/
static register (polyfill : ( ) => any , priority ? : number ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class EncryptionScheme {
private noStructuralTyping_shaka_polyfill_EncryptionScheme : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class Fullscreen {
private noStructuralTyping_shaka_polyfill_Fullscreen : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class MathRound {
private noStructuralTyping_shaka_polyfill_MathRound : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class MediaCapabilities {
private noStructuralTyping_shaka_polyfill_MediaCapabilities : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
/**
* A copy of the MediaCapabilities instance, to prevent Safari from
* garbage-collecting the polyfilled method on it. We make it public and export
* it to ensure that it is not stripped out by the compiler.
*/
static originalMcap : any | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class MediaSource {
private noStructuralTyping_shaka_polyfill_MediaSource : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class Orientation {
private noStructuralTyping_shaka_polyfill_Orientation : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class PatchedMediaKeysApple {
private noStructuralTyping_shaka_polyfill_PatchedMediaKeysApple : any;
/**
* Installs the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class PatchedMediaKeysMs {
private noStructuralTyping_shaka_polyfill_PatchedMediaKeysMs : any;
/**
* Installs the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class PatchedMediaKeysNop {
private noStructuralTyping_shaka_polyfill_PatchedMediaKeysNop : any;
/**
* Installs the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class PatchedMediaKeysWebkit {
private noStructuralTyping_shaka_polyfill_PatchedMediaKeysWebkit : any;
/**
* Installs the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class PiPWebkit {
private noStructuralTyping_shaka_polyfill_PiPWebkit : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class StorageEstimate {
private noStructuralTyping_shaka_polyfill_StorageEstimate : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class VTTCue {
private noStructuralTyping_shaka_polyfill_VTTCue : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class VideoPlayPromise {
private noStructuralTyping_shaka_polyfill_VideoPlayPromise : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.polyfill {
class VideoPlaybackQuality {
private noStructuralTyping_shaka_polyfill_VideoPlaybackQuality : any;
/**
* Install the polyfill if needed.
*/
static install ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class Cue implements shaka.extern.Cue {
private noStructuralTyping_shaka_text_Cue : any;
constructor (startTime : number , endTime : number , payload : string ) ;
backgroundColor : any ;
backgroundImage : any ;
border : any ;
cellResolution : any ;
color : any ;
direction : any ;
/**
* Set the captions at the bottom of the text container by default.
*/
displayAlign : any ;
endTime : any ;
fontFamily : any ;
fontSize : any ;
fontStyle : any ;
fontWeight : any ;
id : any ;
isContainer : any ;
letterSpacing : any ;
line : any ;
/**
* Line Alignment is set to start by default.
*/
lineAlign : any ;
lineBreak : any ;
lineHeight : any ;
lineInterpretation : any ;
linePadding : any ;
nestedCues : any ;
opacity : any ;
payload : string ;
position : any ;
positionAlign : any ;
region : any ;
size : any ;
spacer : any ;
startTime : any ;
textAlign : any ;
textDecoration : any ;
wrapLine : any ;
writingMode : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
/**
* Default text background color according to
* https://w3c.github.io/webvtt/#default-text-background
*/
/**
* Default text background color according to
* https://w3c.github.io/webvtt/#default-text-background
*/
enum defaultTextBackgroundColor {
bg_black = '#000' ,
bg_blue = '#00F' ,
bg_cyan = '#0FF' ,
bg_lime = '#0F0' ,
bg_magenta = '#F0F' ,
bg_red = '#F00' ,
bg_white = '#FFF' ,
bg_yellow = '#FF0' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
/**
* Default text color according to
* https://w3c.github.io/webvtt/#default-text-color
*/
/**
* Default text color according to
* https://w3c.github.io/webvtt/#default-text-color
*/
enum defaultTextColor {
black = '#000' ,
blue = '#00F' ,
cyan = '#0FF' ,
lime = '#0F0' ,
magenta = '#F0F' ,
red = '#F00' ,
white = '#FFF' ,
yellow = '#FF0' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum direction {
HORIZONTAL_LEFT_TO_RIGHT = 'ltr' ,
HORIZONTAL_RIGHT_TO_LEFT = 'rtl' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
/**
* Vertical alignments of the cues within their extents.
* 'BEFORE' means displaying at the top of the captions container box, 'CENTER'
* means in the middle, 'AFTER' means at the bottom.
*/
/**
* Vertical alignments of the cues within their extents.
* 'BEFORE' means displaying at the top of the captions container box, 'CENTER'
* means in the middle, 'AFTER' means at the bottom.
*/
enum displayAlign {
AFTER = 'after' ,
BEFORE = 'before' ,
CENTER = 'center' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum fontStyle {
ITALIC = 'italic' ,
NORMAL = 'normal' ,
OBLIQUE = 'oblique' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
/**
* In CSS font weight can be a number, where 400 is normal and 700 is bold.
* Use these values for the enum for consistency.
*/
/**
* In CSS font weight can be a number, where 400 is normal and 700 is bold.
* Use these values for the enum for consistency.
*/
enum fontWeight {
BOLD = 700.0 ,
NORMAL = 400.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum lineAlign {
CENTER = 'center' ,
END = 'end' ,
START = 'start' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum lineInterpretation {
LINE_NUMBER = 0.0 ,
PERCENTAGE = 1.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum positionAlign {
AUTO = 'auto' ,
CENTER = 'center' ,
LEFT = 'line-left' ,
RIGHT = 'line-right' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum textAlign {
CENTER = 'center' ,
END = 'end' ,
LEFT = 'left' ,
RIGHT = 'right' ,
START = 'start' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum textDecoration {
LINE_THROUGH = 'lineThrough' ,
OVERLINE = 'overline' ,
UNDERLINE = 'underline' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.Cue {
enum writingMode {
HORIZONTAL_TOP_TO_BOTTOM = 'horizontal-tb' ,
VERTICAL_LEFT_TO_RIGHT = 'vertical-lr' ,
VERTICAL_RIGHT_TO_LEFT = 'vertical-rl' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class CueRegion implements shaka.extern.CueRegion {
private noStructuralTyping_shaka_text_CueRegion : any;
height : any ;
heightUnits : any ;
id : any ;
regionAnchorX : any ;
regionAnchorY : any ;
scroll : any ;
viewportAnchorUnits : any ;
viewportAnchorX : any ;
viewportAnchorY : any ;
width : any ;
widthUnits : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.CueRegion {
enum scrollMode {
NONE = '' ,
UP = 'up' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text.CueRegion {
enum units {
LINES = 2.0 ,
PERCENTAGE = 1.0 ,
PX = 0.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
/**
* LRC file format: https://en.wikipedia.org/wiki/LRC_(file_format)
*/
class LrcTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_LrcTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class Mp4TtmlParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_Mp4TtmlParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class Mp4VttParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_Mp4VttParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class SbvTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_SbvTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
/**
* A text displayer plugin using the browser's native VTTCue interface.
*/
class SimpleTextDisplayer implements shaka.extern.TextDisplayer {
private noStructuralTyping_shaka_text_SimpleTextDisplayer : any;
/**
* A text displayer plugin using the browser's native VTTCue interface.
*/
constructor (video : HTMLMediaElement | null ) ;
append (cues : any ) : any ;
destroy ( ) : any ;
isTextVisible ( ) : any ;
remove (start : any , end : any ) : any ;
setTextVisibility (on : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class SrtTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_SrtTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
/**
* Convert a SRT format to WebVTT
*/
static srt2webvtt (data : string ) : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
/**
* Documentation: http://moodub.free.fr/video/ass-specs.doc
* https://en.wikipedia.org/wiki/SubStation_Alpha
*/
class SsaTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_SsaTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class TextEngine implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_text_TextEngine : any;
constructor (displayer : shaka.extern.TextDisplayer | null ) ;
destroy ( ) : Promise < any > ;
static findParser (mimeType : any ) : ( shaka.extern.TextParserPlugin ) | null ;
static registerParser (mimeType : string , plugin : shaka.extern.TextParserPlugin ) : any ;
static unregisterParser (mimeType : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class TtmlTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_TtmlTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
/**
* The text displayer plugin for the Shaka Player UI. Can also be used directly
* by providing an appropriate container element.
*/
class UITextDisplayer implements shaka.extern.TextDisplayer {
private noStructuralTyping_shaka_text_UITextDisplayer : any;
/**
* The text displayer plugin for the Shaka Player UI. Can also be used directly
* by providing an appropriate container element.
*/
constructor (video : HTMLMediaElement | null , videoContainer : HTMLElement | null ) ;
append (cues : any ) : any ;
destroy ( ) : any ;
isTextVisible ( ) : any ;
remove (start : any , end : any ) : any ;
setTextVisibility (on : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class VttTextParser implements shaka.extern.TextParser {
private noStructuralTyping_shaka_text_VttTextParser : any;
parseInit (data : any ) : any ;
parseMedia (data : any , time : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.text {
class WebVttGenerator {
private noStructuralTyping_shaka_text_WebVttGenerator : any;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class AdCounter extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_AdCounter : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class AdPosition extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_AdPosition : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class AirPlayButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_AirPlayButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class AudioLanguageSelection extends shaka.ui.SettingsMenu {
private noStructuralTyping_shaka_ui_AudioLanguageSelection : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class BigPlayButton extends shaka.ui.PlayButton {
private noStructuralTyping_shaka_ui_BigPlayButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class CastButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_CastButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
/**
* A container for custom video controls.
*/
class Controls extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_ui_Controls : any;
/**
* A container for custom video controls.
*/
constructor (player : shaka.Player , videoContainer : HTMLElement , video : HTMLMediaElement , config : shaka.extern.UIConfiguration ) ;
/**
* This allows the application to inhibit casting.
*/
allowCast (allow : boolean ) : any ;
anySettingsMenusAreOpen ( ) : boolean ;
configure (config : shaka.extern.UIConfiguration ) : any ;
destroy ( ) : Promise < any > ;
getAd ( ) : shaka.extern.IAd | null ;
getCastProxy ( ) : shaka.cast.CastProxy | null ;
getClientSideAdContainer ( ) : HTMLElement ;
getConfig ( ) : shaka.extern.UIConfiguration ;
getControlsContainer ( ) : HTMLElement ;
getDisplayTime ( ) : number ;
getLocalPlayer ( ) : shaka.Player | null ;
getLocalVideo ( ) : HTMLMediaElement | null ;
getLocalization ( ) : shaka.ui.Localization | null ;
getPlayer ( ) : shaka.Player | null ;
getServerSideAdContainer ( ) : HTMLElement ;
getVideo ( ) : HTMLMediaElement | null ;
getVideoContainer ( ) : HTMLElement ;
hideAdUI ( ) : any ;
hideSettingsMenus ( ) : any ;
isCastAllowed ( ) : boolean ;
isOpaque ( ) : boolean ;
isSeeking ( ) : boolean ;
/**
* Used by the application to notify the controls that a load operation is
* complete. This allows the controls to recalculate play/paused state, which
* is important for platforms like Android where autoplay is disabled.
*/
loadComplete ( ) : any ;
/**
* Enable or disable native browser controls. Enabling disables shaka
* controls.
*/
setEnabledNativeControls (enabled : boolean ) : any ;
/**
* Enable or disable the custom controls. Enabling disables native
* browser controls.
*/
setEnabledShakaControls (enabled : boolean ) : any ;
setLastTouchEventTime (time : number | null ) : any ;
setSeeking (seeking : boolean ) : any ;
showAdUI ( ) : any ;
toggleFullScreen ( ) : any ;
static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
static registerSeekBar (factory : shaka.extern.IUISeekBar.Factory ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
abstract class Element implements shaka.extern.IUIElement {
private noStructuralTyping_shaka_ui_Element : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
ad : shaka.extern.IAd | null ;
adManager : shaka.extern.IAdManager | null ;
controls : shaka.ui.Controls | null ;
eventManager : shaka.util.EventManager | null ;
localization : shaka.ui.Localization | null ;
parent : HTMLElement | null ;
player : shaka.Player | null ;
release ( ) : any ;
video : HTMLMediaElement | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class FastForwardButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_FastForwardButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class FullscreenButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_FullscreenButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
/**
* Localization system provided by the shaka ui library.
* It can be used to store the various localized forms of
* strings that are expected to be displayed to the user.
* If a string is not available, it will return the localized
* form in the closest related locale.
*/
class Localization extends shaka.util.FakeEventTarget {
private noStructuralTyping_shaka_ui_Localization : any;
constructor (fallbackLocale : string ) ;
/**
* Request the localization system to change which locale it serves. If any of
* of the preferred locales cannot be found, the localization system will fire
* an event identifying which locales it does not know. The localization
* system will then continue to operate using the closest matches it has.
* @param locales The locale codes for the requested locales in order of preference.
*/
changeLocale (locales : Iterable < string > ) : any ;
/**
* Insert a set of localizations for a single locale. This will amend the
* existing localizations for the given locale.
* @param locale The locale that the localizations should be added to.
* @param localizations A mapping of id to localized text that should used to modify the internal collection of localizations.
* @param conflictResolution The strategy used to resolve conflicts when the id of an existing entry matches the id of a new entry. Default to |USE_NEW|, where the new entry will replace the old entry.
*/
insert (locale : string , localizations : Map < string , string > , conflictResolution ? : shaka.ui.Localization.ConflictResolution ) : shaka.ui.Localization ;
release ( ) : any ;
/**
* Request the localized string under the given id. If there is no localized
* version of the string, then the fallback localization will be given
* ("en" version). If there is no fallback localization, a non-null empty
* string will be returned.
* @param id The id for the localization entry.
*/
resolve (id : string ) : string ;
/**
* Set the value under each key in |dictionary| to the resolved value.
* Convenient for apps with some kind of data binding system.
* Equivalent to:
* for (const key of dictionary.keys()) {
* dictionary.set(key, localization.resolve(key));
* }
*/
resolveDictionary (dictionary : Map < string , string > ) : any ;
/**
* The event name for when a new locale has been requested and any previously
* resolved values should be updated.
*/
static LOCALE_CHANGED : string ;
/**
* The event name for when |insert| was called and it changed entries that could
* affect previously resolved values.
*/
static LOCALE_UPDATED : string ;
/**
* The event name for when entries are missing from the user's preferred
* locale, but we were able to find an entry in a related locale or the fallback
* locale.
*/
static MISSING_LOCALIZATIONS : string ;
/**
* The event name for when locales were requested, but we could not find any
* entries for them. The localization system will continue to use the closest
* matches it has.
*/
static UNKNOWN_LOCALES : string ;
/**
* The event name for when an entry could not be found in the preferred locale,
* related locales, or the fallback locale.
*/
static UNKNOWN_LOCALIZATION : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui.Localization {
/**
* An enum for how the localization system should resolve conflicts between old
* translations and new translations.
*/
/**
* An enum for how the localization system should resolve conflicts between old
* translations and new translations.
*/
enum ConflictResolution {
USE_NEW = 1.0 ,
USE_OLD = 0.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class LoopButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_LoopButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class MuteButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_MuteButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class OverflowMenu extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_OverflowMenu : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class Overlay implements shaka.util.IDestroyable {
private noStructuralTyping_shaka_ui_Overlay : any;
constructor (player : shaka.Player , videoContainer : HTMLElement , video : HTMLMediaElement ) ;
configure (config : string | object , value ? : any ) : any ;
destroy ( ) : Promise < any > ;
getConfiguration ( ) : shaka.extern.UIConfiguration ;
getControls ( ) : shaka.ui.Controls | null ;
/**
* Detects if this is a mobile platform, in case you want to choose a
* different UI configuration on mobile devices.
*/
isMobile ( ) : boolean ;
/**
* Enable or disable the custom controls.
*/
setEnabled (enabled : boolean ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui.Overlay {
/**
* Describes the possible reasons that the UI might fail to load.
*/
/**
* Describes the possible reasons that the UI might fail to load.
*/
enum FailReasonCode {
NO_BROWSER_SUPPORT = 0.0 ,
PLAYER_FAILED_TO_LOAD = 1.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui.Overlay {
/**
* Describes what information should show up in labels for selecting audio
* variants and text tracks.
*/
/**
* Describes what information should show up in labels for selecting audio
* variants and text tracks.
*/
enum TrackLabelFormat {
LABEL = 3.0 ,
LANGUAGE = 0.0 ,
LANGUAGE_ROLE = 2.0 ,
ROLE = 1.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class PipButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_PipButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class PlayButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_PlayButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class PlaybackRateSelection extends shaka.ui.SettingsMenu {
private noStructuralTyping_shaka_ui_PlaybackRateSelection : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class PresentationTimeTracker extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_PresentationTimeTracker : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
/**
* A range element, built to work across browsers.
* In particular, getting styles to work right on IE requires a specific
* structure.
* This also handles the case where the range element is being manipulated and
* updated at the same time. This can happen when seeking during playback or
* when casting.
*/
class RangeElement extends shaka.ui.Element implements shaka.extern.IUIRangeElement {
private noStructuralTyping_shaka_ui_RangeElement : any;
/**
* A range element, built to work across browsers.
* In particular, getting styles to work right on IE requires a specific
* structure.
* This also handles the case where the range element is being manipulated and
* updated at the same time. This can happen when seeking during playback or
* when casting.
*/
constructor (parent : HTMLElement , controls : shaka.ui.Controls , containerClassNames : string [] , barClassNames : string [] ) ;
bar : HTMLInputElement ;
/**
* Called to implement keyboard-based changes, where this is no clear "end".
* This will simulate events like onChangeStart(), onChange(), and
* onChangeEnd() as appropriate.
*/
changeTo (value : any ) : any ;
container : HTMLElement ;
getValue ( ) : any ;
/**
* Called when a new value is set by user interaction.
* To be overridden by subclasses.
*/
onChange ( ) : any ;
/**
* Called when user interaction ends.
* To be overridden by subclasses.
*/
onChangeEnd ( ) : any ;
/**
* Called when user interaction begins.
* To be overridden by subclasses.
*/
onChangeStart ( ) : any ;
setRange (min : any , max : any ) : any ;
setValue (value : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class ResolutionSelection extends shaka.ui.SettingsMenu {
private noStructuralTyping_shaka_ui_ResolutionSelection : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class RewindButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_RewindButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class SeekBar extends shaka.ui.RangeElement implements shaka.extern.IUISeekBar {
private noStructuralTyping_shaka_ui_SeekBar : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
isShowing ( ) : boolean ;
update ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui.SeekBar {
class Factory implements shaka.extern.IUISeekBar.Factory {
private noStructuralTyping_shaka_ui_SeekBar_Factory : any;
create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUISeekBar ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class SettingsMenu extends shaka.ui.Element implements shaka.extern.IUISettingsMenu {
private noStructuralTyping_shaka_ui_SettingsMenu : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls , iconText : string ) ;
backButton : HTMLButtonElement ;
backSpan : HTMLElement ;
button : HTMLButtonElement ;
currentSelection : HTMLElement ;
icon : HTMLElement ;
menu : HTMLElement ;
nameSpan : HTMLElement ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class SkipAdButton extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_SkipAdButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class SmallPlayButton extends shaka.ui.PlayButton {
private noStructuralTyping_shaka_ui_SmallPlayButton : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class Spacer extends shaka.ui.Element {
private noStructuralTyping_shaka_ui_Spacer : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class TextSelection extends shaka.ui.SettingsMenu {
private noStructuralTyping_shaka_ui_TextSelection : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.ui {
class VolumeBar extends shaka.ui.RangeElement {
private noStructuralTyping_shaka_ui_VolumeBar : any;
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
/**
* A utility to wrap abortable operations. Note that these are not cancelable.
* Cancelation implies undoing what has been done so far, whereas aborting only
* means that further work is stopped.
*/
class AbortableOperation < T > implements shaka.extern.IAbortableOperation < T > {
private noStructuralTyping_shaka_util_AbortableOperation : any;
/**
* A utility to wrap abortable operations. Note that these are not cancelable.
* Cancelation implies undoing what has been done so far, whereas aborting only
* means that further work is stopped.
*/
constructor (promise : Promise < T > , onAbort : shaka.extern.CreateSegmentIndexFunction ) ;
abort ( ) : any ;
chain < U > (onSuccess : undefined | Function , onError ? : (a : any ) => any ) : shaka.util.AbortableOperation < U > ;
finally (onFinal : any ) : any ;
promise : Promise < T > ;
static aborted ( ) : shaka.util.AbortableOperation < any > ;
static all (operations : shaka.util.AbortableOperation < any > [] ) : shaka.util.AbortableOperation < any > ;
static completed < U > (value : U ) : shaka.util.AbortableOperation < U > ;
static failed (error : shaka.util.Error ) : shaka.util.AbortableOperation < any > ;
static notAbortable < U > (promise : Promise < U > ) : shaka.util.AbortableOperation < U > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class BufferUtils {
private noStructuralTyping_shaka_util_BufferUtils : any;
/**
* Compare two buffers for equality. For buffers of different types, this
* compares the underlying buffers as binary data.
*/
static equal (arr1 : ArrayBuffer | ArrayBufferView | null , arr2 : ArrayBuffer | ArrayBufferView | null ) : boolean ;
/**
* Gets an ArrayBuffer that contains the data from the given TypedArray. Note
* this will allocate a new ArrayBuffer if the object is a partial view of
* the data.
*/
static toArrayBuffer (view : ArrayBuffer | ArrayBufferView ) : ArrayBuffer ;
/**
* Creates a DataView over the given buffer.
*/
static toDataView (buffer : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : DataView ;
/**
* Creates a new Uint8Array view on the same buffer. This clamps the values
* to be within the same view (i.e. you can't use this to move past the end
* of the view, even if the underlying buffer is larger). However, you can
* pass a negative offset to access the data before the view.
* @param offset The offset from the beginning of this data's view to start the new view at.
* @param length The byte length of the new view.
*/
static toUint8 (data : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : Uint8Array ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class ConfigUtils {
private noStructuralTyping_shaka_util_ConfigUtils : any;
/**
* Convert config from ('fieldName', value) format to a partial config object.
* E. g. from ('manifest.retryParameters.maxAttempts', 1) to
* { manifest: { retryParameters: { maxAttempts: 1 }}}.
*/
static convertToConfigObject (fieldName : string , value : any ) : object ;
static mergeConfigObjects (destination : object , source : object , template : object , overrides : object , path : string ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class DataViewReader {
private noStructuralTyping_shaka_util_DataViewReader : any;
constructor (data : ArrayBuffer | ArrayBufferView , endianness : shaka.util.DataViewReader.Endianness ) ;
/**
* Gets the byte length of the DataView.
*/
getLength ( ) : number ;
/**
* Gets the current byte position.
*/
getPosition ( ) : number ;
hasMoreData ( ) : boolean ;
/**
* Reads the specified number of raw bytes.
* @param bytes The number of bytes to read.
*/
readBytes (bytes : number ) : Uint8Array ;
/**
* Reads a signed 32 bit integer, and advances the reader.
*/
readInt32 ( ) : number ;
/**
* Keeps reading until it reaches a byte that equals to zero. The text is
* assumed to be UTF-8.
*/
readTerminatedString ( ) : string ;
/**
* Reads an unsigned 16 bit integer, and advances the reader.
*/
readUint16 ( ) : number ;
/**
* Reads an unsigned 32 bit integer, and advances the reader.
*/
readUint32 ( ) : number ;
/**
* Reads an unsigned 64 bit integer, and advances the reader.
*/
readUint64 ( ) : number ;
/**
* Reads an unsigned 8 bit integer, and advances the reader.
*/
readUint8 ( ) : number ;
/**
* Rewinds the specified number of bytes.
* @param bytes The number of bytes to rewind.
*/
rewind (bytes : number ) : any ;
/**
* Seeks to a specified position.
* @param position The desired byte position within the DataView.
*/
seek (position : number ) : any ;
/**
* Skips the specified number of bytes.
* @param bytes The number of bytes to skip.
*/
skip (bytes : number ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.DataViewReader {
/**
* Endianness.
*/
/**
* Endianness.
*/
enum Endianness {
BIG_ENDIAN = 0.0 ,
LITTLE_ENDIAN = 1.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class Dom {
private noStructuralTyping_shaka_util_Dom : any;
/**
* Remove all of the child nodes of an element.
*/
static removeAllChildren (element : Element ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class Error extends GlobalError implements shaka.extern.Error {
private noStructuralTyping_shaka_util_Error : any;
constructor (severity : shaka.util.Error.Severity , category : shaka.util.Error.Category , code : shaka.util.Error.Code , ...varArgs : any [] ) ;
category : any ;
code : any ;
data : any ;
handled : any ;
severity : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.Error {
enum Category {
ADS = 10.0 ,
CAST = 8.0 ,
DRM = 6.0 ,
MANIFEST = 4.0 ,
MEDIA = 3.0 ,
NETWORK = 1.0 ,
PLAYER = 7.0 ,
STORAGE = 9.0 ,
STREAMING = 5.0 ,
TEXT = 2.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.Error {
enum Code {
ALREADY_CASTING = 8002.0 ,
ATTEMPTS_EXHAUSTED = 1010.0 ,
BAD_ENCODING = 2004.0 ,
BAD_HTTP_STATUS = 1001.0 ,
BUFFER_READ_OUT_OF_BOUNDS = 3000.0 ,
CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM = 4033.0 ,
CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS = 2012.0 ,
CANNOT_STORE_LIVE_OFFLINE = 9005.0 ,
CAST_API_UNAVAILABLE = 8000.0 ,
CAST_CANCELED_BY_USER = 8004.0 ,
CAST_CONNECTION_TIMED_OUT = 8005.0 ,
CAST_RECEIVER_APP_UNAVAILABLE = 8006.0 ,
CONTENT_NOT_LOADED = 7004.0 ,
CONTENT_TRANSFORMATION_FAILED = 3019.0 ,
CONTENT_UNSUPPORTED_BY_BROWSER = 4032.0 ,
CS_AD_MANAGER_NOT_INITIALIZED = 10001.0 ,
CS_IMA_SDK_MISSING = 10000.0 ,
CURRENT_DAI_REQUEST_NOT_FINISHED = 10004.0 ,
DASH_CONFLICTING_KEY_IDS = 4010.0 ,
DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
DASH_EMPTY_PERIOD = 4004.0 ,
DASH_INVALID_XML = 4001.0 ,
DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED = 4009.0 ,
DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
DASH_NO_SEGMENT_INFO = 4002.0 ,
DASH_PSSH_BAD_ENCODING = 4007.0 ,
DASH_UNSUPPORTED_CONTAINER = 4006.0 ,
DASH_UNSUPPORTED_XLINK_ACTUATE = 4027.0 ,
DASH_WEBM_MISSING_INIT = 4005.0 ,
DASH_XLINK_DEPTH_LIMIT = 4028.0 ,
DEPRECATED_OPERATION_ABORTED = 9002.0 ,
DOWNLOAD_SIZE_CALLBACK_ERROR = 9015.0 ,
EBML_BAD_FLOATING_POINT_SIZE = 3003.0 ,
EBML_OVERFLOW = 3002.0 ,
ENCRYPTED_CONTENT_WITHOUT_DRM_INFO = 6010.0 ,
EXPIRED = 6014.0 ,
FAILED_TO_ATTACH_TO_VIDEO = 6003.0 ,
FAILED_TO_CREATE_CDM = 6002.0 ,
FAILED_TO_CREATE_SESSION = 6005.0 ,
FAILED_TO_GENERATE_LICENSE_REQUEST = 6006.0 ,
HLS_AES_128_ENCRYPTION_NOT_SUPPORTED = 4034.0 ,
HLS_COULD_NOT_GUESS_CODECS = 4025.0 ,
HLS_COULD_NOT_PARSE_SEGMENT_START_TIME = 4030.0 ,
HLS_INTERNAL_SKIP_STREAM = 4035.0 ,
HLS_INVALID_PLAYLIST_HIERARCHY = 4017.0 ,
HLS_KEYFORMATS_NOT_SUPPORTED = 4026.0 ,
HLS_MASTER_PLAYLIST_NOT_PROVIDED = 4022.0 ,
HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND = 4020.0 ,
HLS_PLAYLIST_HEADER_MISSING = 4015.0 ,
HLS_REQUIRED_ATTRIBUTE_MISSING = 4023.0 ,
HLS_REQUIRED_TAG_MISSING = 4024.0 ,
HLS_VARIABLE_NOT_FOUND = 4039.0 ,
HTTP_ERROR = 1002.0 ,
INCONSISTENT_DRM_ACROSS_PERIODS = 4038.0 ,
INDEXED_DB_ERROR = 9001.0 ,
INIT_DATA_TRANSFORM_ERROR = 6016.0 ,
INVALID_HLS_TAG = 4016.0 ,
INVALID_MP4_CEA = 2010.0 ,
INVALID_MP4_TTML = 2007.0 ,
INVALID_MP4_VTT = 2008.0 ,
INVALID_SERVER_CERTIFICATE = 6004.0 ,
INVALID_TEXT_CUE = 2001.0 ,
INVALID_TEXT_HEADER = 2000.0 ,
INVALID_XML = 2005.0 ,
JS_INTEGER_OVERFLOW = 3001.0 ,
KEY_NOT_FOUND = 9012.0 ,
LICENSE_REQUEST_FAILED = 6007.0 ,
LICENSE_RESPONSE_REJECTED = 6008.0 ,
LOAD_INTERRUPTED = 7000.0 ,
LOCAL_PLAYER_INSTANCE_REQUIRED = 9008.0 ,
MALFORMED_DATA_URI = 1004.0 ,
MALFORMED_OFFLINE_URI = 9004.0 ,
MALFORMED_TEST_URI = 1008.0 ,
MEDIA_SOURCE_OPERATION_FAILED = 3014.0 ,
MEDIA_SOURCE_OPERATION_THREW = 3015.0 ,
MISSING_STORAGE_CELL = 9013.0 ,
MISSING_TEXT_PLUGIN = 2014.0 ,
MP4_SIDX_INVALID_TIMESCALE = 3005.0 ,
MP4_SIDX_TYPE_NOT_SUPPORTED = 3006.0 ,
MP4_SIDX_WRONG_BOX_TYPE = 3004.0 ,
NEW_KEY_OPERATION_NOT_SUPPORTED = 9011.0 ,
NO_CAST_RECEIVERS = 8001.0 ,
NO_INIT_DATA_FOR_OFFLINE = 9007.0 ,
NO_LICENSE_SERVER_GIVEN = 6012.0 ,
NO_RECOGNIZED_KEY_SYSTEMS = 6000.0 ,
NO_VARIANTS = 4036.0 ,
NO_VIDEO_ELEMENT = 7002.0 ,
OBJECT_DESTROYED = 7003.0 ,
OFFLINE_SESSION_REMOVED = 6013.0 ,
OPERATION_ABORTED = 7001.0 ,
PERIOD_FLATTENING_FAILED = 4037.0 ,
QUOTA_EXCEEDED_ERROR = 3017.0 ,
REQUESTED_ITEM_NOT_FOUND = 9003.0 ,
REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE = 6001.0 ,
REQUEST_FILTER_ERROR = 1006.0 ,
RESPONSE_FILTER_ERROR = 1007.0 ,
RESTRICTIONS_CANNOT_BE_MET = 4012.0 ,
SERVER_CERTIFICATE_REQUIRED = 6015.0 ,
SS_AD_MANAGER_NOT_INITIALIZED = 10003.0 ,
SS_IMA_SDK_MISSING = 10002.0 ,
STORAGE_LIMIT_REACHED = 9014.0 ,
STORAGE_NOT_SUPPORTED = 9000.0 ,
STREAMING_ENGINE_STARTUP_INVALID_STATE = 5006.0 ,
TEXT_COULD_NOT_GUESS_MIME_TYPE = 2011.0 ,
TEXT_ONLY_WEBVTT_SRC_EQUALS = 2013.0 ,
TIMEOUT = 1003.0 ,
TRANSMUXING_FAILED = 3018.0 ,
UNABLE_TO_DETECT_ENCODING = 2003.0 ,
UNABLE_TO_EXTRACT_CUE_START_TIME = 2009.0 ,
UNABLE_TO_GUESS_MANIFEST_TYPE = 4000.0 ,
UNEXPECTED_CAST_ERROR = 8003.0 ,
UNEXPECTED_TEST_REQUEST = 1009.0 ,
UNSUPPORTED_SCHEME = 1000.0 ,
VIDEO_ERROR = 3016.0 ,
WEBM_CUES_ELEMENT_MISSING = 3007.0 ,
WEBM_CUE_TIME_ELEMENT_MISSING = 3013.0 ,
WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING = 3012.0 ,
WEBM_DURATION_ELEMENT_MISSING = 3011.0 ,
WEBM_EBML_HEADER_ELEMENT_MISSING = 3008.0 ,
WEBM_INFO_ELEMENT_MISSING = 3010.0 ,
WEBM_SEGMENT_ELEMENT_MISSING = 3009.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.Error {
enum Severity {
CRITICAL = 2.0 ,
RECOVERABLE = 1.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class EventManager implements shaka.util.IReleasable {
private noStructuralTyping_shaka_util_EventManager : any;
/**
* Attaches an event listener to an event target.
* @param target The event target.
* @param type The event type.
* @param listener The event listener.
* @param options An object that specifies characteristics about the event listener. The passive option, if true, indicates that this function will never call preventDefault(), which improves scrolling performance.
*/
listen (target : EventTarget | null , type : string , listener : shaka.util.EventManager.ListenerType , options ? : boolean | AddEventListenerOptions ) : any ;
/**
* Attaches an event listener to an event target. The listener will be
* removed when the first instance of the event is fired.
* @param target The event target.
* @param type The event type.
* @param listener The event listener.
* @param options An object that specifies characteristics about the event listener. The passive option, if true, indicates that this function will never call preventDefault(), which improves scrolling performance.
*/
listenOnce (target : EventTarget | null , type : string , listener : shaka.util.EventManager.ListenerType , options ? : boolean | AddEventListenerOptions ) : any ;
/**
* Detaches all event listeners.
*/
release ( ) : any ;
/**
* Detaches all event listeners from all targets.
*/
removeAll ( ) : any ;
/**
* Detaches an event listener from an event target.
* @param target The event target.
* @param type The event type.
* @param listener The event listener.
*/
unlisten (target : EventTarget | null , type : string , listener ? : shaka.util.EventManager.ListenerType ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.EventManager {
type ListenerType = (a : Event ) => any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class FairPlayUtils {
private noStructuralTyping_shaka_util_FairPlayUtils : any;
/**
* Using the default method, extract a content ID from the init data. This is
* based on the FairPlay example documentation.
*/
static defaultGetContentId (initData : ArrayBuffer | ArrayBufferView ) : string ;
/**
* Transforms the init data buffer using the given data. The format is:
* <pre>
* [4 bytes] initDataSize
* [initDataSize bytes] initData
* [4 bytes] contentIdSize
* [contentIdSize bytes] contentId
* [4 bytes] certSize
* [certSize bytes] cert
* </pre>
* @param cert The server certificate; this will throw if not provided.
*/
static initDataTransform (initData : ArrayBuffer | ArrayBufferView , contentId : ArrayBuffer | ArrayBufferView | string , cert : ArrayBuffer | ArrayBufferView | null ) : Uint8Array ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class FakeEvent extends Event {
private noStructuralTyping_shaka_util_FakeEvent : any;
constructor (type : string , dict ? : Map < string , object | null > | null ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class FakeEventTarget implements EventTarget , shaka.util.IReleasable {
private noStructuralTyping_shaka_util_FakeEventTarget : any;
/**
* Add an event listener to this object.
* @param type The event type to listen for.
* @param listener The callback or listener object to invoke.
* @param options Ignored.
*/
addEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , options ? : AddEventListenerOptions | boolean ) : any ;
/**
* Dispatch an event from this object.
* @param event The event to be dispatched from this object.
*/
dispatchEvent (event : Event ) : boolean ;
/**
* Add an event listener to this object that is invoked for all events types
* the object fires.
* @param listener The callback or listener object to invoke.
*/
listenToAllEvents (listener : EventListener | null | ( (a : Event ) => any ) ) : any ;
release ( ) : any ;
/**
* Remove an event listener from this object.
* @param type The event type for which you wish to remove a listener.
* @param listener The callback or listener object to remove.
* @param options Ignored.
*/
removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , options ? : EventListenerOptions | null | boolean ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.FakeEventTarget {
/**
* These are the listener types defined in the closure extern for EventTarget.
*/
type ListenerType = EventListener | null | ( (a : Event ) => any ) ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
/**
* An interface to standardize how objects are destroyed.
*/
interface IDestroyable {
/**
* Request that this object be destroyed, releasing all resources and shutting
* down all operations. Returns a Promise which is resolved when destruction
* is complete. This Promise should never be rejected.
*/
destroy ( ) : Promise < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
/**
* An interface to standardize how objects release internal references
* synchronously. If an object needs to asynchronously release references, then
* it should use 'shaka.util.IDestroyable'.
*/
interface IReleasable {
/**
* Request that this object release all internal references.
*/
release ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class Mp4Parser {
private noStructuralTyping_shaka_util_Mp4Parser : any;
/**
* Declare a box type as a Box.
*/
box (type : string , definition : shaka.util.Mp4Parser.CallbackType ) : shaka.util.Mp4Parser ;
/**
* Declare a box type as a Full Box.
*/
fullBox (type : string , definition : shaka.util.Mp4Parser.CallbackType ) : shaka.util.Mp4Parser ;
/**
* Parse the given data using the added callbacks.
* @param partialOkay If true, allow reading partial payloads from some boxes. If the goal is a child box, we can sometimes find it without enough data to find all child boxes.
* @param stopOnPartial If true, stop reading if an incomplete box is detected.
*/
parse (data : ArrayBuffer | ArrayBufferView , partialOkay ? : boolean , stopOnPartial ? : boolean ) : any ;
/**
* Parse the next box on the current level.
* @param absStart The absolute start position in the original byte array.
* @param partialOkay If true, allow reading partial payloads from some boxes. If the goal is a child box, we can sometimes find it without enough data to find all child boxes.
* @param stopOnPartial If true, stop reading if an incomplete box is detected.
*/
parseNext (absStart : number , reader : shaka.util.DataViewReader , partialOkay ? : boolean , stopOnPartial ? : boolean ) : any ;
/**
* Stop parsing. Useful for extracting information from partial segments and
* avoiding an out-of-bounds error once you find what you are looking for.
*/
stop ( ) : any ;
/**
* Create a callback that tells the Mp4 parser to treat the body of a box as a
* binary blob and to parse the body's contents using the provided callback.
*/
static allData (callback : (a : Uint8Array ) => any ) : shaka.util.Mp4Parser.CallbackType ;
/**
* A callback that tells the Mp4 parser to treat the body of a box as a series
* of boxes. The number of boxes is limited by the size of the parent box.
*/
static children (box : shaka.extern.ParsedBox ) : any ;
/**
* Find the header size of the box.
* Useful for modifying boxes in place or finding the exact offset of a field.
*/
static headerSize (box : shaka.extern.ParsedBox ) : number ;
/**
* A callback that tells the Mp4 parser to treat the body of a box as a sample
* description. A sample description box has a fixed number of children. The
* number of children is represented by a 4 byte unsigned integer. Each child
* is a box.
*/
static sampleDescription (box : shaka.extern.ParsedBox ) : any ;
/**
* Convert an integer type from a box into an ascii string name.
* Useful for debugging.
* @param type The type of the box, a uint32.
*/
static typeToString (type : number ) : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util.Mp4Parser {
type CallbackType = (a : shaka.extern.ParsedBox ) => any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class PlayerConfiguration {
private noStructuralTyping_shaka_util_PlayerConfiguration : any;
/**
* Merges the given configuration changes into the given destination. This
* uses the default Player configurations as the template.
*/
static mergeConfigObjects (destination : shaka.extern.PlayerConfiguration , updates : object , template ? : shaka.extern.PlayerConfiguration ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class StringUtils {
private noStructuralTyping_shaka_util_StringUtils : any;
/**
* Creates a string from the given buffer, auto-detecting the encoding that is
* being used. If it cannot detect the encoding, it will throw an exception.
*/
static fromBytesAutoDetect (data : ArrayBuffer | ArrayBufferView | null ) : string ;
/**
* Creates a string from the given buffer as UTF-16 encoding.
* @param littleEndian true to read little endian, false to read big.
* @param noThrow true to avoid throwing in cases where we may expect invalid input. If noThrow is true and the data has an odd length,it will be truncated.
*/
static fromUTF16 (data : ArrayBuffer | ArrayBufferView | null , littleEndian : boolean , noThrow ? : boolean ) : string ;
/**
* Creates a string from the given buffer as UTF-8 encoding.
*/
static fromUTF8 (data : ArrayBuffer | ArrayBufferView | null ) : string ;
/**
* Resets the fromCharCode method's implementation.
* For debug use.
*/
static resetFromCharCode ( ) : any ;
/**
* Creates a ArrayBuffer from the given string, converting to UTF-16 encoding.
*/
static toUTF16 (str : string , littleEndian : boolean ) : ArrayBuffer ;
/**
* Creates a ArrayBuffer from the given string, converting to UTF-8 encoding.
*/
static toUTF8 (str : string ) : ArrayBuffer ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
/**
* A timer allows a single function to be executed at a later time or at
* regular intervals.
*/
class Timer {
private noStructuralTyping_shaka_util_Timer : any;
constructor (onTick : ( ) => any ) ;
/**
* Stop the timer and clear the previous behaviour. The timer is still usable
* after calling |stop|.
*/
stop ( ) : any ;
/**
* Have the timer call |onTick| after |seconds| has elapsed unless |stop| is
* called first.
*/
tickAfter (seconds : number ) : shaka.util.Timer ;
/**
* Have the timer call |onTick| every |seconds| until |stop| is called.
*/
tickEvery (seconds : number ) : shaka.util.Timer ;
/**
* Have the timer call |onTick| now.
*/
tickNow ( ) : shaka.util.Timer ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
declare namespace shaka.util {
class Uint8ArrayUtils {
private noStructuralTyping_shaka_util_Uint8ArrayUtils : any;
/**
* Concatenate buffers.
*/
static concat ( ...varArgs : ( ArrayBuffer | ArrayBufferView ) [] ) : Uint8Array ;
/**
* Compare two Uint8Arrays for equality.
*/
static equal (arr1 : Uint8Array | null , arr2 : Uint8Array | null ) : boolean ;
/**
* Convert a base64 string to a Uint8Array. Accepts either the standard
* alphabet or the alternate "base64url" alphabet.
*/
static fromBase64 (str : string ) : Uint8Array ;
/**
* Convert a hex string to a Uint8Array.
*/
static fromHex (str : string ) : Uint8Array ;
/**
* Convert a buffer to a base64 string. The output will always use the
* alternate encoding/alphabet also known as "base64url".
* @param padding If true, pad the output with equals signs. Defaults to true.
*/
static toBase64 (data : ArrayBuffer | ArrayBufferView , padding ? : boolean ) : string ;
/**
* Convert a buffer to a hex string.
*/
static toHex (data : ArrayBuffer | ArrayBufferView ) : string ;
/**
* Convert a buffer to a base64 string. The output will be standard
* alphabet as opposed to base64url safe alphabet.
*/
static toStandardBase64 (data : ArrayBuffer | ArrayBufferView ) : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/airplay.js
declare namespace ಠ_ಠ.clutz {
class AirPlayEvent extends Event {
private noStructuralTyping_AirPlayEvent : any;
constructor ( ...a : any [] ) ;
availability : String | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/awesomplete.js
declare namespace ಠ_ಠ.clutz {
class Awesomplete {
private noStructuralTyping_Awesomplete : any;
constructor (input : Element ) ;
list : string [] ;
minChars : number ;
evaluate ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace ಠ_ಠ.clutz {
function __onGCastApiAvailable (a : boolean ) : any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver {
class CastChannel {
private noStructuralTyping_cast_receiver_CastChannel : any;
send (message : any ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver {
class CastMessageBus {
private noStructuralTyping_cast_receiver_CastMessageBus : any;
broadcast (message : any ) : any ;
getCastChannel (senderId : string ) : cast.receiver.CastChannel ;
onMessage : Function | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver.CastMessageBus {
class Event {
private noStructuralTyping_cast_receiver_CastMessageBus_Event : any;
data : any ;
senderId : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver {
class CastReceiverManager {
private noStructuralTyping_cast_receiver_CastReceiverManager : any;
onSenderConnected : Function | null ;
onSenderDisconnected : Function | null ;
onSystemVolumeChanged : Function | null ;
getCastMessageBus (namespace : string , messageType ? : string ) : cast.receiver.CastMessageBus | null ;
getSenders ( ) : string [] | null ;
getSystemVolume ( ) : cast.receiver.system.SystemVolumeData | null ;
isSystemReady ( ) : boolean ;
setSystemVolumeLevel (level : number ) : any ;
setSystemVolumeMuted (muted : number ) : any ;
start ( ) : any ;
stop ( ) : any ;
static getInstance ( ) : cast.receiver.CastReceiverManager | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver.media {
enum MetadataType {
GENERIC = 0.0 ,
MOVIE = 1.0 ,
MUSIC_TRACK = 3.0 ,
PHOTO = 4.0 ,
TV_SHOW = 2.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace cast.receiver.system {
class SystemVolumeData {
private noStructuralTyping_cast_receiver_system_SystemVolumeData : any;
level : number ;
muted : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
class ApiConfig {
private noStructuralTyping_chrome_cast_ApiConfig : any;
constructor (sessionRequest : chrome.cast.SessionRequest | null , sessionListener : Function | null , receiverListener : Function | null , autoJoinPolicy ? : string , defaultActionPolicy ? : string ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
class Error {
private noStructuralTyping_chrome_cast_Error : any;
constructor (code : string , description ? : string , details ? : object | null ) ;
code : string ;
description : string | null ;
details : object | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
class Receiver {
private noStructuralTyping_chrome_cast_Receiver : any;
friendlyName : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
class Session {
private noStructuralTyping_chrome_cast_Session : any;
receiver : chrome.cast.Receiver | null ;
sessionId : string ;
status : string ;
addMessageListener (namespace : string , listener : Function | null ) : any ;
addUpdateListener (listener : Function | null ) : any ;
leave (successCallback : Function | null , errorCallback : Function | null ) : any ;
removeMessageListener (namespace : string , listener : Function | null ) : any ;
removeUpdateListener (listener : Function | null ) : any ;
sendMessage (namespace : string , message : object | string , successCallback : Function | null , errorCallback : Function | null ) : any ;
stop (successCallback : Function | null , errorCallback : Function | null ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
class SessionRequest {
private noStructuralTyping_chrome_cast_SessionRequest : any;
constructor (appId : string ) ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast.SessionStatus {
let STOPPED : string ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/chromecast.js
declare namespace chrome.cast {
let isAvailable : boolean ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.AdErrorEvent {
enum Type {
AD_ERROR = 'AD_ERROR' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.AdEvent {
enum Type {
AD_BREAK_READY = 'AD_BREAK_READY' ,
AD_BUFFERING = 'AD_BUFFERING' ,
AD_ERROR = 'AD_ERROR' ,
AD_METADATA = 'AD_METADATA' ,
AD_PROGRESS = 'AD_PROGRESS' ,
ALL_ADS_COMPLETED = 'ALL_ADS_COMPLETED' ,
CLICK = 'CLICK' ,
COMPLETE = 'COMPLETE' ,
CONTENT_PAUSE_REQUESTED = 'CONTENT_PAUSE_REQUESTED' ,
CONTENT_RESUME_REQUESTED = 'CONTENT_RESUME_REQUESTED' ,
DURATION_CHANGE = 'DURATION_CHANGE' ,
FIRST_QUARTILE = 'FIRST_QUARTILE' ,
IMPRESSION = 'IMPRESSION' ,
INTERACTION = 'INTERACTION' ,
LINEAR_CHANGED = 'LINEAR_CHANGED' ,
LOADED = 'LOADED' ,
LOG = 'LOG' ,
MIDPOINT = 'MIDPOINT' ,
PAUSED = 'PAUSED' ,
RESUMED = 'RESUMED' ,
SKIPPABLE_STATE_CHANGED = 'SKIPPABLE_STATE_CHANGED' ,
SKIPPED = 'SKIPPED' ,
STARTED = 'STARTED' ,
THIRD_QUARTILE = 'THIRD_QUARTILE' ,
USER_CLOSE = 'USER_CLOSE' ,
VOLUME_CHANGED = 'VOLUME_CHANGED' ,
VOLUME_MUTED = 'VOLUME_MUTED' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima {
class AdsLoader implements EventTarget {
private noStructuralTyping_google_ima_AdsLoader : any;
constructor (container : google.ima.AdDisplayContainer ) ;
addEventListener ( ) : any ;
contentComplete ( ) : any ;
destroy ( ) : any ;
dispatchEvent ( ) : any ;
getSettings ( ) : google.ima.ImaSdkSettings | null ;
removeEventListener ( ) : any ;
requestAds (request : google.ima.AdsRequest ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima {
class AdsManager implements EventTarget {
private noStructuralTyping_google_ima_AdsManager : any;
addEventListener ( ) : any ;
destroy ( ) : any ;
dispatchEvent ( ) : any ;
getAdSkippableState ( ) : boolean ;
getCuePoints ( ) : number [] ;
getRemainingTime ( ) : number ;
getVolume ( ) : any ;
init (width : number , height : number , viewMode : google.ima.ViewMode ) : any ;
pause ( ) : any ;
removeEventListener ( ) : any ;
resize (width : number , height : number , viewMode : google.ima.ViewMode ) : any ;
resume ( ) : any ;
setVolume (volume : number ) : any ;
skip ( ) : any ;
start ( ) : any ;
stop ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.AdsManagerLoadedEvent {
enum Type {
ADS_MANAGER_LOADED = 'ADS_MANAGER_LOADED' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima {
type AdsRequest = { adTagUrl ? : string , adsResponse ? : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.ImaSdkSettings {
enum VpaidMode {
DISABLED = 0.0 ,
ENABLED = 1.0 ,
INSECURE = 2.0 ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima {
enum ViewMode {
FULLSCREEN = 'FULLSCREEN' ,
NORMAL = 'NORMAL' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.dai.api.StreamEvent {
enum Type {
AD_BREAK_ENDED = 'adBreakEnded' ,
AD_BREAK_STARTED = 'adBreakStarted' ,
AD_PERIOD_ENDED = 'adPeriodEnded' ,
AD_PERIOD_STARTED = 'adPeriodStarted' ,
AD_PROGRESS = 'adProgress' ,
CLICK = 'click' ,
COMPLETE = 'complete' ,
CUEPOINTS_CHANGED = 'cuepointsChanged' ,
ERROR = 'error' ,
FIRST_QUARTILE = 'firstquartile' ,
LOADED = 'loaded' ,
MIDPOINT = 'midpoint' ,
SKIPPABLE_STATE_CHANGED = 'skippableStateChanged' ,
SKIPPED = 'skip' ,
STARTED = 'started' ,
STREAM_INITIALIZED = 'streamInitialized' ,
THIRD_QUARTILE = 'thirdquartile' ,
VIDEO_CLICKED = 'videoClicked' ,
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima.dai.api {
class StreamManager implements EventTarget {
private noStructuralTyping_google_ima_dai_api_StreamManager : any;
constructor (videoElement : HTMLMediaElement | null , adUiElement ? : HTMLElement | null , uiSettings ? : google.ima.dai.api.UiSettings | null ) ;
addEventListener (type : string | any [] | null , handler : null | object , capture ? : boolean | AddEventListenerOptions , handlerScope ? : object | null ) : any ;
contentTimeForStreamTime (streamTime : number ) : any ;
dispatchEvent ( ) : any ;
onTimedMetadata (metadata : object | null ) : any ;
previousCuePointForStreamTime (streamTime : number ) : any ;
processMetadata (type : string , data : Uint8Array | null | string , timestamp : number ) : any ;
removeEventListener ( ) : any ;
replaceAdTagParameters (adTagParameters : object | null ) : any ;
requestStream (streamRequest : google.ima.dai.api.StreamRequest | null ) : any ;
reset ( ) : any ;
setClickElement (clickElement : Element | null ) : any ;
streamTimeForContentTime (contentTime : number ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/ima.js
declare namespace google.ima {
let settings : google.ima.ImaSdkSettings ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/jwk_set.js
declare namespace ಠ_ಠ.clutz {
/**
* A JSON Web Key.
*/
class JWK {
private noStructuralTyping_JWK : any;
/**
* A key in base 64. Used with kty="oct".
*/
k : string ;
/**
* A key ID. Any ASCII string.
*/
kid : string ;
/**
* A key type. One of:
* 1. "oct" (symmetric key octect sequence)
* 2. "RSA" (RSA key)
* 3. "EC" (elliptical curve key)
* Use "oct" for clearkey.
*/
kty : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/jwk_set.js
declare namespace ಠ_ಠ.clutz {
/**
* A JSON Web Key set.
*/
class JWKSet {
private noStructuralTyping_JWKSet : any;
keys : ( JWK | null ) [] | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mdl.js
declare namespace ಠ_ಠ.clutz {
class MaterialLayout {
private noStructuralTyping_MaterialLayout : any;
Constant_ : { MENU_ICON : string } ;
toggleDrawer ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mediasession.js
declare namespace ಠ_ಠ.clutz {
class MediaMetadata {
private noStructuralTyping_MediaMetadata : any;
constructor (options : any ) ;
artist : string ;
artwork : object ;
title : string ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mediasession.js
declare namespace ಠ_ಠ.clutz {
class MediaSession {
private noStructuralTyping_MediaSession : any;
metadata : MediaMetadata | null ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
class CaptionParser {
private noStructuralTyping_muxjs_mp4_CaptionParser : any;
/**
* Clear the parsed closed captions data for new data.
*/
clearParsedCaptions ( ) : any ;
/**
* Initializes the closed caption parser.
*/
init ( ) : any ;
/**
* Return true if a new video track is selected or if the timescale is
* changed.
* @param videoTrackIds A list of video tracks found in the init segment.
* @param timescales The map of track Ids and the tracks' timescales in the init segment.
*/
isNewInit (videoTrackIds : number [] , timescales : { [ key: number ]: number } ) : boolean ;
/**
* Parses embedded CEA closed captions and interacts with the underlying
* CaptionStream, and return the parsed captions.
* @param segment The fmp4 segment containing embedded captions
* @param videoTrackIds A list of video tracks found in the init segment.
* @param timescales The timescales found in the init segment.
*/
parse (segment : Uint8Array , videoTrackIds : number [] , timescales : { [ key: number ]: number } ) : muxjs.mp4.ParsedClosedCaptions ;
/**
* Reset the captions stream.
*/
resetCaptionStream ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
type ClosedCaption = { endPts : number , endTime : number , startPts : number , startTime : number , stream : string , text : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
type Metadata = { cueTime : number , data : Uint8Array , dispatchType : string , dts : number , frames : muxjs.mp4.MetadataFrame [] , pts : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
type MetadataFrame = { data : string , description : string , id : string , key : string , value : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
type ParsedClosedCaptions = { captionStreams : { [ key: string ]: boolean } | null , captions : muxjs.mp4.ClosedCaption [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4 {
class Transmuxer {
private noStructuralTyping_muxjs_mp4_Transmuxer : any;
constructor (options ? : object | null ) ;
/**
* Remove all handlers and clean up.
*/
dispose ( ) : any ;
flush ( ) : any ;
/**
* Remove a handler for a specified event type.
* @param type Event name
* @param listener The callback to be removed
*/
off (type : string , listener : Function | null ) : any ;
/**
* Add a handler for a specified event type.
* @param type Event name
* @param listener The callback to be invoked
*/
on (type : string , listener : Function | null ) : any ;
push (data : Uint8Array ) : any ;
setBaseMediaDecodeTime (time : number ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/mux.js
declare namespace muxjs.mp4.Transmuxer {
type Segment = { captions : any [] , data : Uint8Array , initSegment : Uint8Array , metadata : any [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/prefixed_eme.js
declare namespace ಠ_ಠ.clutz {
class MediaKeyError {
private noStructuralTyping_MediaKeyError : any;
code : number ;
systemCode : number ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/prefixed_eme.js
declare namespace ಠ_ಠ.clutz {
class MediaKeyEvent extends Event {
private noStructuralTyping_MediaKeyEvent : any;
constructor (type : string , eventInitDict ? : object | null ) ;
defaultURL : string ;
errorCode : MediaKeyError | null ;
initData : Uint8Array ;
keySystem : string ;
message : Uint8Array ;
sessionId : string ;
systemCode : number ;
target : HTMLMediaElement ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/abortable.js
declare namespace shaka.extern {
/**
* A representation of an abortable operation. Note that these are not
* cancelable. Cancelation implies undoing what has been done so far,
* whereas aborting only means that further work is stopped.
*/
interface IAbortableOperation < T > {
/**
* Can be called by anyone holding this object to abort the underlying
* operation. This is not cancelation, and will not necessarily result in
* any work being undone. abort() should return a Promise which is resolved
* when the underlying operation has been aborted. The returned Promise
* should never be rejected.
*/
abort ( ) : Promise < any > ;
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
/**
* A Promise which represents the underlying operation. It is resolved when
* the operation is complete, and rejected if the operation fails or is
* aborted. Aborted operations should be rejected with a shaka.util.Error
* object using the error code OPERATION_ABORTED.
*/
promise : Promise < T > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/abr_manager.js
declare namespace shaka.extern {
/**
* An object which selects Streams from a set of possible choices. This also
* watches for system changes to automatically adapt for the current streaming
* requirements. For example, when the network slows down, this class is in
* charge of telling the Player which streams to switch to in order to reduce
* the required bandwidth.
*
* This class is given a set of streams to choose from when the Player starts
* up. This class should store these and use them to make future decisions
* about ABR. It is up to this class how those decisions are made. All the
* Player will do is tell this class what streams to choose from.
*/
interface AbrManager {
/**
* Chooses one variant to switch to. Called by the Player.
*/
chooseVariant ( ) : shaka.extern.Variant ;
/**
* Sets the ABR configuration.
*
* It is the responsibility of the AbrManager implementation to implement the
* restrictions behavior described in shaka.extern.AbrConfiguration.
*/
configure (config : shaka.extern.AbrConfiguration ) : any ;
/**
* Disables automatic Stream suggestions. After this, the AbrManager may not
* call switchCallback().
*/
disable ( ) : any ;
/**
* Enables automatic Variant choices from the last ones passed to setVariants.
* After this, the AbrManager may call switchCallback() at any time.
*/
enable ( ) : any ;
/**
* Gets an estimate of the current bandwidth in bit/sec. This is used by the
* Player to generate stats.
*/
getBandwidthEstimate ( ) : number ;
/**
* Initializes the AbrManager.
*/
init (switchCallback : shaka.extern.AbrManager.SwitchCallback ) : any ;
/**
* Updates manager playback rate.
*/
playbackRateChanged (rate : number ) : any ;
/**
* Notifies the AbrManager that a segment has been downloaded (includes MP4
* SIDX data, WebM Cues data, initialization segments, and media segments).
* @param deltaTimeMs The duration, in milliseconds, that the request took to complete.
* @param numBytes The total number of bytes transferred.
*/
segmentDownloaded (deltaTimeMs : number , numBytes : number ) : any ;
/**
* Updates manager's variants collection.
*/
setVariants (variants : shaka.extern.Variant [] ) : any ;
/**
* Stops any background timers and frees any objects held by this instance.
* This will only be called after a call to init.
*/
stop ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/abr_manager.js
declare namespace shaka.extern.AbrManager {
/**
* A factory for creating the abr manager.
*/
type Factory = ( ) => shaka.extern.AbrManager ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/abr_manager.js
declare namespace shaka.extern.AbrManager {
/**
* A callback into the Player that should be called when the AbrManager decides
* it's time to change to a different variant.
*
* The first argument is a variant to switch to.
*
* The second argument is an optional boolean. If true, all data will be removed
* from the buffer, which will result in a buffering event. Unless a third
* argument is passed.
*
* The third argument in an optional number that specifies how much data (in
* seconds) should be retained when clearing the buffer. This can help achieve
* a fast switch that doesn't involve a buffering event. A minimum of two video
* segments should always be kept buffered to avoid temporary hiccups.
*/
type SwitchCallback = (a : shaka.extern.Variant , b ? : boolean , c ? : number ) => any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
declare namespace shaka.extern {
type AdsStats = { loadTimes : number [] , playedCompletely : number , skipped : number , started : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
declare namespace shaka.extern {
/**
* Interface for Ad objects.
*/
interface IAd extends shaka.util.IReleasable {
canSkipNow ( ) : boolean ;
getDuration ( ) : number ;
/**
* Gets the minimum suggested duration. Defaults to being equivalent to
* getDuration() for server-side ads.
*/
getMinSuggestedDuration ( ) : number ;
getPositionInSequence ( ) : number ;
getRemainingTime ( ) : number ;
getSequenceLength ( ) : number ;
getTimeUntilSkippable ( ) : number ;
getVolume ( ) : number ;
isMuted ( ) : boolean ;
isPaused ( ) : boolean ;
isSkippable ( ) : boolean ;
pause ( ) : any ;
play ( ) : any ;
resize (width : number , height : number ) : any ;
setMuted (muted : boolean ) : any ;
setVolume (volume : number ) : any ;
skip ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
declare namespace shaka.extern {
/**
* An object that's responsible for all the ad-related logic
* in the player.
*/
interface IAdManager extends EventTarget {
/**
* Get statistics for the current playback session. If the player is not
* playing content, this will return an empty stats object.
*/
getStats ( ) : any ;
initClientSide (adContainer : HTMLElement , video : HTMLMediaElement ) : any ;
initServerSide (adContainer : HTMLElement , video : HTMLMediaElement ) : any ;
onAssetUnload ( ) : any ;
onCueMetadataChange (value : shaka.extern.ID3Metadata ) : any ;
onDashTimedMetadata (region : shaka.extern.TimelineRegionInfo ) : any ;
onHlsTimedMetadata (metadata : shaka.extern.ID3Metadata , timestampOffset : number ) : any ;
release ( ) : any ;
replaceServerSideAdTagParameters (adTagParameters : object | null ) : any ;
requestClientSideAds (imaRequest : google.ima.AdsRequest ) : any ;
requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
setLocale (locale : string ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
declare namespace shaka.extern.IAdManager {
/**
* A factory for creating the ad manager.
*/
type Factory = ( ) => shaka.extern.IAdManager ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/error.js
declare namespace shaka.extern {
interface Error {
category : shaka.util.Error.Category ;
code : shaka.util.Error.Code ;
data : any [] ;
handled : boolean ;
severity : shaka.util.Error.Severity ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/error.js
declare namespace shaka.extern {
type RestrictionInfo = { hasAppRestrictions : boolean , missingKeys : string [] , restrictedKeyStatuses : string [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
/**
* Creates a SegmentIndex; returns a Promise that resolves after the
* SegmentIndex has been created.
*/
type CreateSegmentIndexFunction = ( ) => Promise < any > ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
type InitDataOverride = { initData : Uint8Array , initDataType : string , keyId : string | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
type Manifest = { imageStreams : shaka.extern.Stream [] , minBufferTime : number , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , textStreams : shaka.extern.Stream [] , variants : shaka.extern.Variant [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
type Stream = { audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , forced : boolean , frameRate ? : number , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , width ? : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
declare namespace shaka.extern {
type Variant = { allowedByApplication : boolean , allowedByKeySystem : boolean , audio : shaka.extern.Stream | null , bandwidth : number , decodingInfos : ( any | null ) [] , id : number , language : string , primary : boolean , video : shaka.extern.Stream | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest_parser.js
declare namespace shaka.extern {
/**
* Parses media manifests and handles manifest updates.
*
* Given a URI where the initial manifest is found, a parser will request the
* manifest, parse it, and return the resulting Manifest object.
*
* If the manifest requires updates (e.g. for live media), the parser will use
* background timers to update the same Manifest object.
*
* There are many ways for |start| and |stop| to be called. Implementations
* should support all cases:
*
* BASIC
* await parser.start(uri, playerInterface);
* await parser.stop();
*
* INTERRUPTING
* const p = parser.start(uri, playerInterface);
* await parser.stop();
* await p;
*
* |p| should be rejected with an OPERATION_ABORTED error.
*
* STOPPED BEFORE STARTING
* await parser.stop();
*/
interface ManifestParser {
/**
* Called by the Player to provide an updated configuration any time the
* configuration changes. Will be called at least once before start().
*/
configure (config : shaka.extern.ManifestConfiguration ) : any ;
/**
* Tells the parser that the expiration time of an EME session has changed.
* Implementing this is optional.
*/
onExpirationUpdated (sessionId : string , expiration : number ) : any ;
/**
* Initialize and start the parser. When |start| resolves, it should return
* the initial version of the manifest. |start| will only be called once. If
* |stop| is called while |start| is pending, |start| should reject.
* @param uri The URI of the manifest.
* @param playerInterface The player interface contains the callbacks and members that the parser can use to communicate with the player and outside world.
*/
start (uri : string , playerInterface : shaka.extern.ManifestParser.PlayerInterface ) : Promise < shaka.extern.Manifest > ;
/**
* Tell the parser that it must stop and free all internal resources as soon
* as possible. Only once all internal resources are stopped and freed will
* the promise resolve. Once stopped a parser will not be started again.
*
* The parser should support having |stop| called multiple times and the
* promise should always resolve.
*/
stop ( ) : Promise < any > ;
/**
* Tells the parser to do a manual manifest update. Implementing this is
* optional. This is only called when 'emsg' boxes are present.
*/
update ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest_parser.js
declare namespace shaka.extern.ManifestParser {
/**
* A factory for creating the manifest parser. This function is registered with
* shaka.media.ManifestParser to create parser instances.
*/
type Factory = ( ) => shaka.extern.ManifestParser ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest_parser.js
declare namespace shaka.extern.ManifestParser {
type PlayerInterface = { enableLowLatencyMode : ( ) => any , filter : (a : shaka.extern.Manifest ) => Promise < any > , isAutoLowLatencyMode : ( ) => boolean , isLowLatencyMode : ( ) => boolean , makeTextStreamsForClosedCaptions : (a : shaka.extern.Manifest ) => any , networkingEngine : shaka.net.NetworkingEngine , onError : (a : shaka.util.Error ) => any , onEvent : shaka.util.EventManager.ListenerType , onTimelineRegionAdded : (a : shaka.extern.TimelineRegionInfo ) => any } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/mp4_parser.js
declare namespace shaka.extern {
type ParsedBox = { flags : number | null , has64BitSize : boolean , parser : shaka.util.Mp4Parser , partialOkay : boolean , reader : shaka.util.DataViewReader , size : number , start : number , version : number | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
type ProgressUpdated = (a : number , b : number , c : number ) => any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
type Request = { allowCrossSiteCredentials : boolean , body : ArrayBuffer | ArrayBufferView | null , headers : { [ key: string ]: string } , licenseRequestType : string | null , method : string , retryParameters : shaka.extern.RetryParameters , sessionId : string | null , streamDataCallback : ( (a : ArrayBuffer | ArrayBufferView ) => Promise < any > ) | null , uris : string [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
/**
* Defines a filter for requests. This filter takes the request and modifies
* it before it is sent to the scheme plugin.
* A request filter can run asynchronously by returning a promise; in this case,
* the request will not be sent until the promise is resolved.
*/
type RequestFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Request ) => Promise < any > | void ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
type Response = { data : ArrayBuffer | ArrayBufferView , fromCache ? : boolean , headers : { [ key: string ]: string } , timeMs ? : number , uri : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
/**
* Defines a filter for responses. This filter takes the response and modifies
* it before it is returned.
* A response filter can run asynchronously by returning a promise.
*/
type ResponseFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Response ) => Promise < any > | void ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
type RetryParameters = { backoffFactor : number , baseDelay : number , connectionTimeout : number , fuzzFactor : number , maxAttempts : number , stallTimeout : number , timeout : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/net.js
declare namespace shaka.extern {
type SchemePlugin = (a : string , b : shaka.extern.Request , c : shaka.net.NetworkingEngine.RequestType , d : shaka.extern.ProgressUpdated ) => shaka.extern.IAbortableOperation < shaka.extern.Response > ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type EmeSessionDB = { audioCapabilities : { contentType : string , robustness : string } [] , keySystem : string , licenseUri : string , serverCertificate : Uint8Array | null , sessionId : string , videoCapabilities : { contentType : string , robustness : string } [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
/**
* Similar to storage cells (shaka.extern.StorageCell), an EmeSessionStorageCell
* stores data persistently. This only stores the license's session info, not
* the license itself. The license itself is stored using EME.
*/
interface EmeSessionStorageCell {
/**
* Adds the given sessions to the store.
*/
add (sessions : shaka.extern.EmeSessionDB [] ) : Promise < any > ;
/**
* Free all resources used by this cell. This won't affect the stored content.
*/
destroy ( ) : Promise < any > ;
/**
* Gets the currently stored sessions.
*/
getAll ( ) : Promise < shaka.extern.EmeSessionDB [] > ;
/**
* Removes the given session IDs from the store.
*/
remove (sessionIds : string [] ) : Promise < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type ManifestDB = { appMetadata : object | null , creationTime : number , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , originalManifestUri : string , sessionIds : string [] , size : number , streams : shaka.extern.StreamDB [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type OfflineSupport = { basic : boolean , encrypted : { [ key: string ]: boolean } } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , startTime : number , timestampOffset : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type SegmentDataDB = { data : ArrayBuffer } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
/**
* An interface that defines access to collection of segments and manifests. All
* methods are designed to be batched operations allowing the implementations to
* optimize their operations based on how they store data.
*
* The storage cell is one of two exposed APIs used to control where and how
* offline content is saved. The storage cell is responsible for converting
* information between its internal structures and the external (library)
* structures.
*/
interface StorageCell {
/**
* Add a group of manifests. Will return a promise that resolves with a list
* of keys for each manifest. If one manifest fails to be added, all manifests
* should fail to be added.
*/
addManifests (manifests : shaka.extern.ManifestDB [] ) : Promise < number [] > ;
/**
* Add a group of segments. Will return a promise that resolves with a list
* of keys for each segment. If one segment fails to be added, all segments
* should fail to be added.
*/
addSegments (segments : shaka.extern.SegmentDataDB [] ) : Promise < number [] > ;
/**
* Free all resources used by this cell. This should not affect the stored
* content.
*/
destroy ( ) : Promise < any > ;
/**
* Get all manifests stored in this cell. Since manifests are small compared
* to the asset they describe, it is assumed that it is feasible to have them
* all in main memory at one time.
*/
getAllManifests ( ) : Promise < Map < number , shaka.extern.ManifestDB > > ;
/**
* Get a group of manifests using their keys to identify them. If any key is
* not found, the promise chain will be rejected.
*/
getManifests (keys : number [] ) : Promise < shaka.extern.ManifestDB [] > ;
/**
* Get a group of segments using their keys to identify them. If any key is
* not found, the promise chain will be rejected.
*/
getSegments (keys : number [] ) : Promise < shaka.extern.SegmentDataDB [] > ;
/**
* Check if the cell can support new keys. If a cell has a fixed key space,
* then all add-operations will fail as no new keys can be added. All
* remove-operations and update-operations should still work.
*/
hasFixedKeySpace ( ) : boolean ;
/**
* Remove a group of manifests using their keys to identify them. If a key
* is not found, then that removal should be considered successful.
* @param onRemove A callback for when a manifest is removed from the cell. The key of the manifest will be passed to the callback.
*/
removeManifests (keys : number [] , onRemove : (a : number ) => any ) : Promise < any > ;
/**
* Remove a group of segments using their keys to identify them. If a key
* is not found, then that removal should be considered successful.
* @param onRemove A callback for when a segment is removed from the cell. The key of the segment will be passed to the callback.
*/
removeSegments (keys : number [] , onRemove : (a : number ) => any ) : Promise < any > ;
/**
* Replace the expiration time of the manifest stored under |key| with
* |newExpiration|. If no manifest is found under |key| then this should
* act as a no-op.
*/
updateManifestExpiration (key : number , expiration : number ) : Promise < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
/**
* Storage mechanisms are one of two exported storage APIs. Storage mechanisms
* are groups of storage cells (shaka.extern.StorageCell). Storage mechanisms
* are responsible for managing the life cycle of resources shared between
* storage cells in the same block.
*
* For example, a storage mechanism may manage a single database connection
* while each cell would manage different tables in the database via the same
* connection.
*/
interface StorageMechanism {
/**
* Free all resources used by the storage mechanism and its cells. This should
* not affect the stored content.
*/
destroy ( ) : Promise < any > ;
/**
* Erase all content from storage and leave storage in an empty state. Erase
* may be called with or without |init|. This allows for storage to be wiped
* in case of a version mismatch.
*
* After calling |erase|, the mechanism will be in an initialized state.
*/
erase ( ) : Promise < any > ;
/**
* Get a map of all the cells managed by the storage mechanism. Editing the
* map should have no effect on the storage mechanism. The map key is the
* cell's address in the mechanism and should be consistent between calls to
* |getCells|.
*/
getCells ( ) : Map < string , shaka.extern.StorageCell > ;
/**
* Get the current EME session storage cell.
*/
getEmeSessionCell ( ) : shaka.extern.EmeSessionStorageCell ;
/**
* Initialize the storage mechanism for first use. This should only be called
* once. Calling |init| multiple times has an undefined behaviour.
*/
init ( ) : Promise < any > ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type StoredContent = { appMetadata : object | null , duration : number , expiration : number , offlineUri : string | null , originalManifestUri : string , size : number , tracks : shaka.extern.TrackList } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
declare namespace shaka.extern {
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , forced : boolean , frameRate ? : number , hdr ? : string , height : number | null , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , width : number | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v1.js
declare namespace shaka.extern {
type ManifestDBV1 = { appMetadata : object | null , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , key : number , originalManifestUri : string , periods : shaka.extern.PeriodDBV1 [] , sessionIds : string [] , size : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v1.js
declare namespace shaka.extern {
type PeriodDBV1 = { startTime : number , streams : shaka.extern.StreamDBV1 [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v1.js
declare namespace shaka.extern {
type SegmentDBV1 = { endTime : number , startTime : number , uri : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v1.js
declare namespace shaka.extern {
type SegmentDataDBV1 = { data : ArrayBuffer , key : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v1.js
declare namespace shaka.extern {
type StreamDBV1 = { codecs : string , contentType : string , encrypted : boolean , frameRate ? : number , height : number | null , id : number , initSegmentUri : string | null , keyId : string | null , kind ? : string , label : string | null , language : string , mimeType : string , presentationTimeOffset : number , primary : boolean , segments : shaka.extern.SegmentDBV1 [] , variantIds : number [] , width : number | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v2.js
declare namespace shaka.extern {
type ManifestDBV2 = { appMetadata : object | null , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , originalManifestUri : string , periods : shaka.extern.PeriodDBV2 [] , sessionIds : string [] , size : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v2.js
declare namespace shaka.extern {
type PeriodDBV2 = { startTime : number , streams : shaka.extern.StreamDBV2 [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v2.js
declare namespace shaka.extern {
type SegmentDBV2 = { dataKey : number , endTime : number , startTime : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v2.js
declare namespace shaka.extern {
type SegmentDataDBV2 = { data : ArrayBuffer } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline_compat_v2.js
declare namespace shaka.extern {
type StreamDBV2 = { codecs : string , contentType : string , encrypted : boolean , frameRate ? : number , height : number | null , id : number , initSegmentKey : number | null , keyId : string | null , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , pixelAspectRatio ? : string , presentationTimeOffset : number , primary : boolean , segments : shaka.extern.SegmentDBV2 [] , variantIds : number [] , width : number | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type AbrConfiguration = { bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , defaultBandwidthEstimate : number , enabled : boolean , restrictions : shaka.extern.Restrictions , switchInterval : number , useNetworkInformation : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type BufferedInfo = { audio : shaka.extern.BufferedRange [] , text : shaka.extern.BufferedRange [] , total : shaka.extern.BufferedRange [] , video : shaka.extern.BufferedRange [] } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type BufferedRange = { end : number , start : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , xlinkFailGracefully : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type DrmSupportType = { persistentState : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type EmsgInfo = { endTime : number , eventDuration : number , id : number , messageData : Uint8Array | null , presentationTimeDelta : number , schemeIdUri : string , startTime : number , timescale : number , value : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type HlsManifestConfiguration = { ignoreTextStreamFailures : boolean , useFullSegmentsForStartTime : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type ID3Metadata = { [ key: string ]: any } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type LanguageRole = { label : string | null , language : string , role : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type ManifestConfiguration = { availabilityWindowOverride : number , dash : shaka.extern.DashManifestConfiguration , defaultPresentationDelay : number , disableAudio : boolean , disableText : boolean , disableThumbnails : boolean , disableVideo : boolean , hls : shaka.extern.HlsManifestConfiguration , retryParameters : shaka.extern.RetryParameters } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type OfflineConfiguration = { downloadSizeCallback : (a : number ) => Promise < boolean > , progressCallback : (a : shaka.extern.StoredContent , b : number ) => any , trackSelectionCallback : (a : shaka.extern.TrackList ) => Promise < shaka.extern.TrackList > , usePersistentLicense : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , drm : shaka.extern.DrmConfiguration , manifest : shaka.extern.ManifestConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioLanguage : string , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory , useMediaCapabilities : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type Restrictions = { maxBandwidth : number , maxFrameRate : number , maxHeight : number , maxPixels : number , maxWidth : number , minBandwidth : number , minFrameRate : number , minHeight : number , minPixels : number , minWidth : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type StateChange = { duration : number , state : string , timestamp : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type Stats = { bufferingTime : number , completionPercent : number , corruptedFrames : number , decodedFrames : number , drmTimeSeconds : number , droppedFrames : number , estimatedBandwidth : number , height : number , licenseTime : number , liveLatency : number , loadLatency : number , manifestTimeSeconds : number , maxSegmentDuration : number , pauseTime : number , playTime : number , stateHistory : shaka.extern.StateChange [] , streamBandwidth : number , switchHistory : shaka.extern.TrackChoice [] , width : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , forceTransmuxTS : boolean , gapDetectionThreshold : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , jumpLargeGaps : boolean , lowLatencyMode : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , smallGapLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , useNativeHlsOnSafari : boolean } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type Thumbnail = { duration : number , height : number , positionX : number , positionY : number , startTime : number , uris : string [] , width : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type TimelineRegionInfo = { endTime : number , eventElement : Element | null , id : string , schemeIdUri : string , startTime : number , value : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type Track = { active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , width : number | null } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type TrackChoice = { bandwidth : number | null , fromAdaptation : boolean , id : number , timestamp : number , type : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
declare namespace shaka.extern {
type TrackList = shaka.extern.Track [] ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern {
interface Cue {
/**
* Text background color as a CSS color, e.g. "#FFFFFF" or "white".
*/
backgroundColor : string ;
/**
* The URL of the background image, e.g. "data:[mime type];base64,[data]".
*/
backgroundImage : string ;
/**
* The border around this cue as a CSS border.
*/
border : string ;
/**
* The number of horizontal and vertical cells into which the Root Container
* Region area is divided.
*/
cellResolution : { columns : number , rows : number } ;
/**
* Text color as a CSS color, e.g. "#FFFFFF" or "white".
*/
color : string ;
/**
* Text direction of the cue.
*/
direction : shaka.text.Cue.direction ;
/**
* Vertical alignments of the cues within their extents.
* 'BEFORE' means displaying the captions at the top of the text display
* container box, 'CENTER' means in the middle, 'AFTER' means at the bottom.
*/
displayAlign : shaka.text.Cue.displayAlign ;
/**
* The end time of the cue in seconds, relative to the start of the
* presentation.
*/
endTime : number ;
/**
* Text font family.
*/
fontFamily : string ;
/**
* Text font size in px or em (e.g. '100px'/'100em').
*/
fontSize : string ;
/**
* Text font style. Normal, italic or oblique.
*/
fontStyle : shaka.text.Cue.fontStyle ;
/**
* Text font weight. Either normal or bold.
*/
fontWeight : shaka.text.Cue.fontWeight ;
/**
* Id of the cue.
*/
id : string ;
/**
* If true, this represents a container element that is "above" the main
* cues. For example, the <body> and <div> tags that contain the <p> tags
* in a TTML file. This controls the flow of the final cues; any nested cues
* within an "isContainer" cue will be laid out as separate lines.
*/
isContainer : boolean ;
/**
* Text letter spacing as a CSS letter-spacing value.
*/
letterSpacing : string ;
/**
* The offset from the display box in either number of lines or
* percentage depending on the value of lineInterpretation.
*/
line : number | null ;
/**
* Line alignment of the cue box.
* Start alignment means the cue box’s top side (for horizontal cues), left
* side (for vertical growing right), or right side (for vertical growing
* left) is aligned at the line.
* Center alignment means the cue box is centered at the line.
* End alignment The cue box’s bottom side (for horizontal cues), right side
* (for vertical growing right), or left side (for vertical growing left) is
* aligned at the line.
*/
lineAlign : shaka.text.Cue.lineAlign ;
/**
* Whether or not the cue only acts as a line break between two nested cues.
* Should only appear in nested cues.
*/
lineBreak : boolean ;
/**
* Separation between line areas inside the cue box in px or em
* (e.g. '100px'/'100em'). If not specified, this should be no less than
* the largest font size applied to the text in the cue.
*/
lineHeight : string ;
/**
* The way to interpret line field. (Either as an integer line number or
* percentage from the display box).
*/
lineInterpretation : shaka.text.Cue.lineInterpretation ;
/**
* Text line padding as a CSS line-padding value.
*/
linePadding : string ;
/**
* Nested cues, which should be laid out horizontally in one block.
* Top-level cues are blocks, and nested cues are inline elements.
* Cues can be nested arbitrarily deeply.
*/
nestedCues : shaka.extern.Cue [] ;
/**
* Opacity of the cue element, from 0-1.
*/
opacity : number ;
/**
* The text payload of the cue. If nestedCues is non-empty, this should be
* empty. Top-level block containers should have no payload of their own.
*/
payload : string ;
/**
* The indent (in percent) of the cue box in the direction defined by the
* writing direction.
*/
position : number | null ;
/**
* Position alignment of the cue.
*/
positionAlign : shaka.text.Cue.positionAlign ;
/**
* The region to render the cue into. Only supported on top-level cues,
* because nested cues are inline elements.
*/
region : shaka.extern.CueRegion | null ;
/**
* Size of the cue box (in percents), where 0 means "auto".
*/
size : number ;
spacer : boolean ;
/**
* The start time of the cue in seconds, relative to the start of the
* presentation.
*/
startTime : number ;
/**
* Alignment of the text inside the cue box.
*/
textAlign : shaka.text.Cue.textAlign ;
/**
* Text decoration. A combination of underline, overline
* and line through. Empty array means no decoration.
*/
textDecoration : shaka.text.Cue.textDecoration [] ;
/**
* Whether or not line wrapping should be applied to the cue.
*/
wrapLine : boolean ;
/**
* Text writing mode of the cue.
*/
writingMode : shaka.text.Cue.writingMode ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern {
interface CueRegion {
/**
* The width of the rendering area in heightUnits.
*/
height : number ;
/**
* The units (percentage, pixels or lines) the region height is in.
*/
heightUnits : shaka.text.CueRegion.units ;
/**
* Region identifier.
*/
id : string ;
/**
* The X offset to start the rendering area in percentage (0-100) of this
* region width.
*/
regionAnchorX : number ;
/**
* The Y offset to start the rendering area in percentage (0-100) of the
* region height.
*/
regionAnchorY : number ;
/**
* If scroll=UP, it means that cues in the region will be added to the
* bottom of the region and will push any already displayed cues in the
* region up. Otherwise (scroll=NONE) cues will stay fixed at the location
* they were first painted in.
*/
scroll : shaka.text.CueRegion.scrollMode ;
/**
* The units (percentage or pixels) the region viewportAnchors are in.
*/
viewportAnchorUnits : shaka.text.CueRegion.units ;
/**
* The X offset to start the rendering area in viewportAnchorUnits of the
* video width.
*/
viewportAnchorX : number ;
/**
* The X offset to start the rendering area in viewportAnchorUnits of the
* video height.
*/
viewportAnchorY : number ;
/**
* The width of the rendering area in widthUnits.
*/
width : number ;
/**
* The units (percentage or pixels) the region width is in.
*/
widthUnits : shaka.text.CueRegion.units ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern {
interface TextDisplayer extends shaka.util.IDestroyable {
/**
* Append given text cues to the list of cues to be displayed.
* @param cues Text cues to be appended.
*/
append (cues : shaka.text.Cue [] ) : any ;
destroy ( ) : Promise < any > ;
/**
* Returns true if text is currently visible.
*/
isTextVisible ( ) : boolean ;
/**
* Remove all cues that are fully contained by the given time range (relative
* to the presentation). <code>endTime</code> will be greater to equal to
* <code>startTime</code>. <code>remove</code> should only return
* <code>false</code> if the displayer has been destroyed. If the displayer
* has not been destroyed <code>remove</code> should return <code>true</code>.
*/
remove (startTime : number , endTime : number ) : boolean ;
/**
* Set text visibility.
*/
setTextVisibility (on : boolean ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern.TextDisplayer {
/**
* A factory for creating a TextDisplayer.
*/
type Factory = ( ) => shaka.extern.TextDisplayer ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern {
/**
* An interface for plugins that parse text tracks.
*/
interface TextParser {
/**
* Parse an initialization segment. Some formats do not have init
* segments so this won't always be called.
* @param data The data that makes up the init segment.
*/
parseInit (data : Uint8Array ) : any ;
/**
* Parse a media segment and return the cues that make up the segment.
* @param data The next section of buffer.
* @param timeContext The time information that should be used to adjust the times values for each cue.
*/
parseMedia (data : Uint8Array , timeContext : shaka.extern.TextParser.TimeContext ) : shaka.extern.Cue [] ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern.TextParser {
/**
* A collection of time offsets used to adjust text cue times.
*/
type TimeContext = { periodStart : number , segmentEnd : number , segmentStart : number } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/text.js
declare namespace shaka.extern {
type TextParserPlugin = ( ) => shaka.extern.TextParser ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/tippy.js
declare namespace ಠ_ಠ.clutz {
/**
* This is the subset of this method that we use in our demo code.
*/
function tippy (element : Element , config : object ) : any ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/webkitmediakeys.js
declare namespace ಠ_ಠ.clutz {
class WebKitMediaKeyError {
private noStructuralTyping_WebKitMediaKeyError : any;
code : number ;
systemCode : number ;
static MEDIA_KEYERR_CLIENT : number ;
static MEDIA_KEYERR_DOMAIN : number ;
static MEDIA_KEYERR_HARDWARECHANGE : number ;
static MEDIA_KEYERR_OUTPUT : number ;
static MEDIA_KEYERR_SERVICE : number ;
static MEDIA_KEYERR_UNKNOWN : number ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/webkitmediakeys.js
declare namespace ಠ_ಠ.clutz {
interface WebKitMediaKeySession extends EventTarget {
addEventListener (type : any , listener : any , useCapture : any ) : any ;
close ( ) : any ;
dispatchEvent (evt : any ) : any ;
error : WebKitMediaKeyError | null ;
removeEventListener (type : any , listener : any , useCapture : any ) : any ;
sessionId : string ;
update (message : Uint8Array | null ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/webkitmediakeys.js
declare namespace ಠ_ಠ.clutz {
class WebKitMediaKeys {
private noStructuralTyping_WebKitMediaKeys : any;
constructor (keySystem : string ) ;
createSession (contentType : string , initData : Uint8Array | null ) : WebKitMediaKeySession ;
static isTypeSupported (keySystem : string , contentType : string ) : boolean ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
/**
* Interface for UI elements. UI elements should inherit from the concrete base
* class shaka.ui.Element. The members defined in this extern's constructor are
* all available from the base class, and are defined here to keep the compiler
* from renaming them.
*/
interface IUIElement extends shaka.util.IReleasable {
ad : shaka.extern.IAd | null ;
adManager : shaka.extern.IAdManager | null ;
controls : shaka.ui.Controls | null ;
eventManager : shaka.util.EventManager | null ;
localization : shaka.ui.Localization | null ;
parent : HTMLElement | null ;
player : shaka.Player | null ;
video : HTMLMediaElement | null ;
release ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern.IUIElement {
/**
* A factory for creating a UI element.
*/
interface Factory {
create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUIElement ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
/**
* Interface for UI range elements. UI range elements should inherit from the
* concrete base class shaka.ui.RangeElement. The members defined in this
* extern's constructor are all available from the base class, and are defined
* here to keep the compiler from renaming them.
*/
interface IUIRangeElement extends shaka.extern.IUIElement {
bar : HTMLInputElement ;
container : HTMLElement ;
changeTo (value : number ) : any ;
getValue ( ) : number ;
/**
* Called when a new value is set by user interaction.
* To be overridden by subclasses.
*/
onChange ( ) : any ;
/**
* Called when user interaction ends.
* To be overridden by subclasses.
*/
onChangeEnd ( ) : any ;
/**
* Called when user interaction begins.
* To be overridden by subclasses.
*/
onChangeStart ( ) : any ;
setRange (min : number , max : number ) : any ;
setValue (value : number ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
/**
* Interface for SeekBars. SeekBars should inherit from the concrete base
* class shaka.ui.Element. If you do not need to totaly rebuild the
* SeekBar, you should consider using shaka.ui.RangeElement or
* shaka.ui.SeekBar as your base class.
*/
interface IUISeekBar extends shaka.extern.IUIRangeElement {
getValue ( ) : number ;
isShowing ( ) : boolean ;
setValue (value : number ) : any ;
/**
* Called by Controls on a timer to update the state of the seek bar.
* Also called internally when the user interacts with the input element.
*/
update ( ) : any ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern.IUISeekBar {
/**
* A factory for creating a SeekBar element.
*/
interface Factory {
create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUISeekBar ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
/**
* Interface for UI settings menus. UI settings menus should inherit from the
* concrete base class shaka.ui.SettingsMenu. The members defined in this
* extern's constructor are all available from the base class, and are defined
* here to keep the compiler from renaming them.
*/
interface IUISettingsMenu extends shaka.extern.IUIElement {
backButton : HTMLButtonElement ;
backSpan : HTMLElement ;
button : HTMLButtonElement ;
currentSelection : HTMLElement ;
icon : HTMLElement ;
menu : HTMLElement ;
nameSpan : HTMLElement ;
}
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
type UIConfiguration = { addBigPlayButton : boolean , addSeekBar : boolean , castReceiverAppId : string , clearBufferOnQualityChange : boolean , controlPanelElements : string [] , doubleClickForFullscreen : boolean , enableFullscreenOnRotation : boolean , enableKeyboardPlaybackControls : boolean , fadeDelay : number , forceLandscapeOnFullscreen : boolean , overflowMenuButtons : string [] , seekBarColors : shaka.extern.UISeekBarColors , showUnbufferedStart : boolean , trackLabelFormat : shaka.ui.Overlay.TrackLabelFormat , volumeBarColors : shaka.extern.UIVolumeBarColors } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
type UISeekBarColors = { adBreaks : string , base : string , buffered : string , played : string } ;
}
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/ui/externs/ui.js
declare namespace shaka.extern {
type UIVolumeBarColors = { base : string , level : string } ;
}
|
cdnjs/cdnjs
|
ajax/libs/shaka-player/3.1.6/shaka-player.ui.d.ts
|
TypeScript
|
mit
| 198,161
|
package csc426.ast;
import org.beryx.textio.TextTerminal;
import csc426.parser.Position;
import csc426.semantics.LookupException;
import csc426.semantics.SymbolTable;
import csc426.semantics.Value;
import csc426.semantics.VoidValue;
public final class IdExpr extends Expr {
public final String id;
public IdExpr(String id, Position position) {
super(position);
this.id = id;
}
@Override
public String toString() {
return "Variable " + id + " at " + position;
}
public String render(String indent) {
return indent + "Id " + id + "\n";
}
@Override
public Value interpret(TextTerminal<?> terminal, SymbolTable<Value> t) {
try {
return t.lookup(id);
} catch (LookupException e) {
terminal.println(e.getMessage());
}
return VoidValue.INSTANCE;
}
}
|
bhoward/CSC426
|
Demo3/src/main/java/csc426/ast/IdExpr.java
|
Java
|
cc0-1.0
| 785
|
wcn.view.view = (function() {
var views = {};
class view extends whitecrow.control {
initialize() {
super.initialize();
}
static register(name,layoutName){
if(!views[name]){
views[name] = this;
this.layoutName = layoutName;
return this;
}
else
throw new Error("View with the name '"+name+"' is already registered");
}
static resolve(name){
return views[name];
}
}
return view;
})();
|
kanaxz/video-station
|
project/lib/whitecrow/namespace/view/view.js
|
JavaScript
|
cc0-1.0
| 473
|
jsonp({"cep":"57035390","logradouro":"Rua Jos\u00e9 J\u00falio Sawer","bairro":"Ponta Verde","cidade":"Macei\u00f3","uf":"AL","estado":"Alagoas"});
|
lfreneda/cepdb
|
api/v1/57035390.jsonp.js
|
JavaScript
|
cc0-1.0
| 148
|
jsonp({"cep":"13218872","logradouro":"Travessa Deolinda Navile Fontebasso","bairro":"Roseira","cidade":"Jundia\u00ed","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/13218872.jsonp.js
|
JavaScript
|
cc0-1.0
| 157
|
jsonp({"cep":"90250148","logradouro":"Beco Um A","bairro":"Humait\u00e1","cidade":"Porto Alegre","uf":"RS","estado":"Rio Grande do Sul"});
|
lfreneda/cepdb
|
api/v1/90250148.jsonp.js
|
JavaScript
|
cc0-1.0
| 139
|
jsonp({"cep":"64064280","logradouro":"Rua Vereador Albino Alencar","bairro":"Zoobot\u00e2nico","cidade":"Teresina","uf":"PI","estado":"Piau\u00ed"});
|
lfreneda/cepdb
|
api/v1/64064280.jsonp.js
|
JavaScript
|
cc0-1.0
| 150
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45-internal) on Sat Jul 25 18:14:29 BST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.apache.jena.sparql.modify.request (Apache Jena ARQ)</title>
<meta name="date" content="2015-07-25">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.jena.sparql.modify.request (Apache Jena ARQ)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/jena/sparql/modify/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../org/apache/jena/sparql/path/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/jena/sparql/modify/request/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package org.apache.jena.sparql.modify.request</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateSerializer.html" title="interface in org.apache.jena.sparql.modify.request">UpdateSerializer</a></td>
<td class="colLast">
<div class="block">Interface for update serializers which may be registered indirectly with the
<a href="../../../../../../org/apache/jena/sparql/serializer/SerializerRegistry.html" title="class in org.apache.jena.sparql.serializer"><code>SerializerRegistry</code></a> via a <a href="../../../../../../org/apache/jena/sparql/serializer/UpdateSerializerFactory.html" title="interface in org.apache.jena.sparql.serializer"><code>UpdateSerializerFactory</code></a> thus
allowing the customisation of update serialization.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateVisitor.html" title="interface in org.apache.jena.sparql.modify.request">UpdateVisitor</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/QuadAcc.html" title="class in org.apache.jena.sparql.modify.request">QuadAcc</a></td>
<td class="colLast">
<div class="block">Accumulate quads (including allowing variables) during parsing.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/QuadAccSink.html" title="class in org.apache.jena.sparql.modify.request">QuadAccSink</a></td>
<td class="colLast">
<div class="block">Accumulate quads into a Sink (including allowing variables) during parsing.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/QuadDataAcc.html" title="class in org.apache.jena.sparql.modify.request">QuadDataAcc</a></td>
<td class="colLast">
<div class="block">Accumulate quads (excluding allowing variables) during parsing.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/QuadDataAccSink.html" title="class in org.apache.jena.sparql.modify.request">QuadDataAccSink</a></td>
<td class="colLast">
<div class="block">Accumulate quads (excluding allowing variables) during parsing.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/Target.html" title="class in org.apache.jena.sparql.modify.request">Target</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateAdd.html" title="class in org.apache.jena.sparql.modify.request">UpdateAdd</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateBinaryOp.html" title="class in org.apache.jena.sparql.modify.request">UpdateBinaryOp</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateClear.html" title="class in org.apache.jena.sparql.modify.request">UpdateClear</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateCopy.html" title="class in org.apache.jena.sparql.modify.request">UpdateCopy</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateCreate.html" title="class in org.apache.jena.sparql.modify.request">UpdateCreate</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateData.html" title="class in org.apache.jena.sparql.modify.request">UpdateData</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDataDelete.html" title="class in org.apache.jena.sparql.modify.request">UpdateDataDelete</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDataInsert.html" title="class in org.apache.jena.sparql.modify.request">UpdateDataInsert</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDataWriter.html" title="class in org.apache.jena.sparql.modify.request">UpdateDataWriter</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDeleteInsert.html" title="class in org.apache.jena.sparql.modify.request">UpdateDeleteInsert</a></td>
<td class="colLast">
<div class="block">Convenience class - renames UpdateModify so it follows the SPARQL Update spec.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDeleteWhere.html" title="class in org.apache.jena.sparql.modify.request">UpdateDeleteWhere</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDrop.html" title="class in org.apache.jena.sparql.modify.request">UpdateDrop</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDropClear.html" title="class in org.apache.jena.sparql.modify.request">UpdateDropClear</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateLoad.html" title="class in org.apache.jena.sparql.modify.request">UpdateLoad</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateModify.html" title="class in org.apache.jena.sparql.modify.request">UpdateModify</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateMove.html" title="class in org.apache.jena.sparql.modify.request">UpdateMove</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateWithUsing.html" title="class in org.apache.jena.sparql.modify.request">UpdateWithUsing</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateWriter.html" title="class in org.apache.jena.sparql.modify.request">UpdateWriter</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateWriterVisitor.html" title="class in org.apache.jena.sparql.modify.request">UpdateWriterVisitor</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
<caption><span>Enum Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../org/apache/jena/sparql/modify/request/UpdateDataWriter.UpdateMode.html" title="enum in org.apache.jena.sparql.modify.request">UpdateDataWriter.UpdateMode</a></td>
<td class="colLast">
<div class="block">The mode an UpdateDataWriter is in.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/jena/sparql/modify/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../org/apache/jena/sparql/path/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/jena/sparql/modify/request/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Licenced under the Apache License, Version 2.0</small></p>
</body>
</html>
|
slennie12/SOR-Onderzoek
|
apache-jena-3.0.0/javadoc-arq/org/apache/jena/sparql/modify/request/package-summary.html
|
HTML
|
cc0-1.0
| 13,438
|
#ifndef KRIPTO_BLOCK_XTEA_H
#define KRIPTO_BLOCK_XTEA_H
extern const kripto_block_desc *const kripto_block_xtea;
#endif
|
LightBit/libkripto
|
include/kripto/block/xtea.h
|
C
|
cc0-1.0
| 122
|
jsonp({"cep":"87505510","logradouro":"Rua Tim\u00f3teo Polo Gimenis","bairro":"Jardim Imperial I","cidade":"Umuarama","uf":"PR","estado":"Paran\u00e1"});
|
lfreneda/cepdb
|
api/v1/87505510.jsonp.js
|
JavaScript
|
cc0-1.0
| 154
|
jsonp({"cep":"13056344","logradouro":"Rua Ant\u00f4nio Nunes","bairro":"Dic I (Conjunto Habitacional Monsenhor Luiz Fernando Abreu)","cidade":"Campinas","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/13056344.jsonp.js
|
JavaScript
|
cc0-1.0
| 192
|
jsonp({"cep":"93520150","logradouro":"Rua S\u00e3o Carlos","bairro":"Guarani","cidade":"Novo Hamburgo","uf":"RS","estado":"Rio Grande do Sul"});
|
lfreneda/cepdb
|
api/v1/93520150.jsonp.js
|
JavaScript
|
cc0-1.0
| 145
|
# IonicFramework
Presentación del proyecto Ionic Framework de la mano de nuestro compañero Manuel Sánchez.
|
betabeersMLG/IonicFramework
|
README.md
|
Markdown
|
cc0-1.0
| 110
|
Telemeta-locales
================
Language translations and locales for Telemeta based projects
|
Parisson/Telemeta-locales
|
README.md
|
Markdown
|
cc0-1.0
| 97
|
jsonp({"cep":"66040640","logradouro":"Vila Silva","bairro":"Crema\u00e7\u00e3o","cidade":"Bel\u00e9m","uf":"PA","estado":"Par\u00e1"});
|
lfreneda/cepdb
|
api/v1/66040640.jsonp.js
|
JavaScript
|
cc0-1.0
| 136
|
jsonp({"cep":"38445212","logradouro":"Travessa Vinte e Seis","bairro":"Sibipiruna","cidade":"Araguari","uf":"MG","estado":"Minas Gerais"});
|
lfreneda/cepdb
|
api/v1/38445212.jsonp.js
|
JavaScript
|
cc0-1.0
| 140
|
---
layout: post
title: Cheesy Hasselback Potatoes
---
Hasselback Potatoes are of Sweddish origin, although not a traditional Swedish meal,
one created by Chef Leif Elisson at the Hasselbacken restaurant in Stockholm.
The gist of the recipes is cutting potatoes in thin slices,
while still leaving them connected,
baking them, stuffing it with cheese,
and then baking them again to melt the cheese.

It wasn't bad, wasn't great either.
Maybe my cheddar was not strong enough.
## Recipe
The base or the recipes comes from [Just A Taste](https://www.justataste.com/easy-cheesy-hasselback-potatoes-recipe/),
however based on Reddit recommendations I added bacon bits on top.
### Ingredients
* 4 Russet potatoes - medium (? about 6" long)
* 2 Tablespoons butter, melted
* 4-8 ounces of sliced cheddar, further sliced into 1-inch squares
* 1/3 cup of shredded Parmesan cheese
* 2-4 tablespoons of bacon bits
* 1/8 - 1/4 cup of chopped fresh chives or green onions.
I'm intentionally vague on the cheese quantities because
it's dependent on the number of cuts made in the potato
(1 cut - 1 square of cheese).
Mathematically speaking, if we cut the potato in 1/8 inch
slices, that's 8 slices per inch * 6 inches potato = 64 slices;
divide that by 4 typical quarters per big slice of cheddar,
you end up with 16 big slices of cheddar per potato.
At 1 oz per cheddar slice, sliced #2 at the deli,
or 1 oz per 2 slices, if sliced #1, that's a good
16 or 8 ounces of cheddar per potato, which is not
only ridiculous and also, likely, heart-attack inducing.
So obviously math is useless, check-mate mathematicians...
Instead I would say that 8 ounces is probably enough
for all 4 potatoes.
The bacon bits and the chives are more according to taste.
I like bacon.
### Preparation
1. Preheat the oven to 450F.
2. Don't peel the potato -- this is important -- we want that skin.
The trick here is to place two wooden chopsticks
on either side of the potato,
as we make cuts every 1/8-inch from one end to another.
The chopsticks are going to keep the knife from going
all the way through and thus keep the bottom of
the potato slices connected.
3. Put the potatoes on a baking sheet
and brush them with the melted butter.
I don't know if necessary, but I tried
to get the butter into the cuts as well.
Season with salt and pepper.
4. Bake for 55-60 minutes (until tender).
5. Remove from the oven, but don't turn the oven off.
Insert the 1-inch squares into the cuts.
Sprinkle the top with the shredded Parmesan
and half of the bacon bits.
6. Bake for 3-5 minutes until the cheese is melted.
7. Remove potatoes from oven, sprinkle the rest of the bacon
and the chives/green onion and
serve immediately.
Serving size: 1 potato, serves 4.
* calories: depending on the amount of cheese, but probably 200-400 per serving.
* fat: way too much
* cholesterol: I don't even wanna know.
* carbs: potato - need I say more?
### Variants
Using less cheese (or even not stuffing them with cheese
but only sprinkling on top),
sprinkling bread crumbs or even roasted almond slices on top. Sour cream on top was good too.
|
AYearOf/ayearof.github.io
|
_posts/2018-10-11-cheesy_hasselback_potatoes.md
|
Markdown
|
cc0-1.0
| 3,216
|
jsonp({"cep":"56325690","logradouro":"Rua Equador","bairro":"Top\u00e1zio","cidade":"Petrolina","uf":"PE","estado":"Pernambuco"});
|
lfreneda/cepdb
|
api/v1/56325690.jsonp.js
|
JavaScript
|
cc0-1.0
| 131
|
jsonp({"cep":"24933530","logradouro":"Rua Manoel Camilo da Silva","bairro":"Jardim Atl\u00e2ntico Leste (Itaipua\u00e7u)","cidade":"Maric\u00e1","uf":"RJ","estado":"Rio de Janeiro"});
|
lfreneda/cepdb
|
api/v1/24933530.jsonp.js
|
JavaScript
|
cc0-1.0
| 184
|
jsonp({"cep":"65635468","logradouro":"Avenida Luis Firmino de Sousa","bairro":"Mutir\u00e3o","cidade":"Timon","uf":"MA","estado":"Maranh\u00e3o"});
|
lfreneda/cepdb
|
api/v1/65635468.jsonp.js
|
JavaScript
|
cc0-1.0
| 148
|
jsonp({"cep":"03985140","logradouro":"Rua Hermilo Alves","bairro":"Jardim \u00c2ngela (Zona Leste)","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/03985140.jsonp.js
|
JavaScript
|
cc0-1.0
| 165
|
jsonp({"cep":"45077400","logradouro":"Rua Dezesseis","bairro":"Zabel\u00ea","cidade":"Vit\u00f3ria da Conquista","uf":"BA","estado":"Bahia"});
|
lfreneda/cepdb
|
api/v1/45077400.jsonp.js
|
JavaScript
|
cc0-1.0
| 143
|
jsonp({"cep":"29176599","logradouro":"Rua Leonor Miguel Feu Rosa","bairro":"Palmeiras","cidade":"Serra","uf":"ES","estado":"Esp\u00edrito Santo"});
|
lfreneda/cepdb
|
api/v1/29176599.jsonp.js
|
JavaScript
|
cc0-1.0
| 148
|
jsonp({"cep":"65068639","logradouro":"Rua S\u00e3o Jos\u00e9","bairro":"Vila Luiz\u00e3o","cidade":"S\u00e3o Lu\u00eds","uf":"MA","estado":"Maranh\u00e3o"});
|
lfreneda/cepdb
|
api/v1/65068639.jsonp.js
|
JavaScript
|
cc0-1.0
| 158
|
jsonp({"cep":"02277010","logradouro":"Rua C\u00e2ndido Freire","bairro":"Vila Nilo","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/02277010.jsonp.js
|
JavaScript
|
cc0-1.0
| 149
|
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
public class TelaNotas extends JFrame {
private JPanel painelPrincipal;
private JPanel painelTopo;
private JPanel painelSearch;
private JTable tabela;
private JPanel painelBotoes;
private JScrollPane barraRolagem;
private JButton btImprimir;
private JButton btVoltar;
private JLabel lblNomeCliente;
private DefaultTableModel modelo = new DefaultTableModel();
public TelaNotas() {
super(" Relatorio de Notas ");
painelSearch = new JPanel();
painelPrincipal = new JPanel();
painelTopo = new JPanel();
criaJTable();
criaJanela();
}
public void criaJanela() {
painelPrincipal.setLayout(new BorderLayout());
painelTopo.setLayout(new FlowLayout(FlowLayout.LEFT));
lblNomeCliente = new JLabel("<Nome do Cliente>");
painelTopo.add(lblNomeCliente);
painelTopo.add(BorderLayout.CENTER,painelSearch);
//painelSearch.setAlignmentX(LEFT_ALIGNMENT);
barraRolagem = new JScrollPane(tabela);
painelBotoes= new JPanel();
painelBotoes.setLayout(new FlowLayout(FlowLayout.RIGHT));
btImprimir = new JButton("Imprimir");
btVoltar = new JButton("Voltar");
painelBotoes.add(btImprimir);
painelBotoes.add(btVoltar);
painelPrincipal.add(BorderLayout.NORTH,painelTopo);
painelPrincipal.add(BorderLayout.SOUTH,painelBotoes);
painelPrincipal.add(BorderLayout.CENTER,barraRolagem);
getContentPane().add(painelPrincipal);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(500, 320);
setVisible(true);
}
private void criaJTable() {
tabela = new JTable(modelo);
modelo.addColumn(" Nota ");
modelo.addColumn(" Quantidade ");
tabela.getColumnModel().getColumn(0).setPreferredWidth(120);
tabela.getColumnModel().getColumn(1).setPreferredWidth(120);
}
public static void main(String[] args) {
TelaNotas lc = new TelaNotas();
lc.setVisible(true);
lc.pack();
}
}
|
JulioCesarMelo/ProjetoIntegrado
|
Interface/TelaNotas.java
|
Java
|
cc0-1.0
| 2,095
|
jsonp({"cep":"09764340","logradouro":"Passagem Padre \u00c2ngelo","bairro":"Nova Baeta","cidade":"S\u00e3o Bernardo do Campo","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/09764340.jsonp.js
|
JavaScript
|
cc0-1.0
| 165
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>The Page Title - Edit this</title>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="/open-source-program-template/assets/img/usa_logo.png?v=1.2">
<link rel="stylesheet" href="/open-source-program-template/assets/css/normalize.css">
<link rel="stylesheet" href="/open-source-program-template/assets/css/main.css">
<link rel="stylesheet" href="/open-source-program-template/assets/css/syntax.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="/open-source-program-template/assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<header role="banner">
<!-- Fork Me at GitHub banner. Remove, of course -->
<a href="https://github.com/virtix/open-source-program-template"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="wrap">
<h1><a class="title-link" href="/open-source-program-template/">A Government Open Source Program</a></h1>
<div style="float:right">
<!-- This should be a configurable item in data/ -->
<a href="/open-source-program-template/index.html" class="title-link">
<img height="52" src="/open-source-program-template/assets/img/usa_logo.png" alt="Your agency logo">
</a>
</div>
</div>
</header>
<div class="wrap content">
<aside>
<p class="intro">A set of templates and artifacts to support open source programs</p>
<a class="skip-link visuallyhidden focusable" href="#main">Skip to Main Content</a>
<nav role="navigation">
<ul>
<li><a href="/open-source-program-template/index.html">Home</a></li>
<li><a href="/open-source-program-template/pages/guiding_principles.html">Guiding Principles</a></li>
<li><a href="/open-source-program-template/pages/oss_policy.html">Open Source Policy</a></li>
<li><a href="/open-source-program-template/pages/news.html">News</a></li>
<li><a href="/open-source-program-template/pages/open_by_default.html">Open By Default</a></li>
<li><a href="/open-source-program-template/pages/faq.html">FAQs</a></li>
<li><a href="/open-source-program-template/pages/workflows.html">Processes & Procedures</a></li>
<li><a href="/open-source-program-template/pages/references.html">References</a></li>
<li><a href="/open-source-program-template/pages/howto.html">How to configure this site</a></li>
<!-- Prose.io edit link -->
<li><a href="http://prose.io#virtix/open-source-program-template/edit/gh-pages/pages/page_template.md" target="_blank">Edit this page on prose.io</a>
</li>
</ul>
</nav>
</aside>
<section id="main" class="main-content" role="main">
<h2 class="page-title">The Page Title - Edit this</h2>
<hr/>
</section>
<footer role="contentinfo">
<p>This project is maintained by <a href="mailto:tj@monticello.gov">Thomas Jefferson</a></p>
<p>Hosted on Github Pages</p>
</footer>
</div><!-- /.wrap -->
</body>
</html>
|
virtix/open-source-program-template
|
_site/pages/page_template.html
|
HTML
|
cc0-1.0
| 3,757
|
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeT.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_2.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le main-le-current" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>區域立法委員選舉 臺北市 第5選舉區 候選人得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> <img src="../images/nav.gif" alt="候選人數" title="候選人數"> 候選人數:7 <img src="../images/nav.gif" alt="應選人數" title="應選人數"> <img src="../images/nav.gif" alt="應選人數" title="應選人數"> 應選人數:1
<!--<img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> <img src="../images/nav.gif" alt="應有婦女當選名額" title="應有婦女當選名額"> 應有婦女當選名額:0-->
</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td>姓名</td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>推薦之政黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>林郁方</td>
<td>男</td>
<td class="tdAlignRight">76,079</td>
<td class="tdAlignRight">45.5849</td>
<td>中國國民黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td>李家幸</td>
<td>女</td>
<td class="tdAlignRight">885</td>
<td class="tdAlignRight">0.5303</td>
<td>台灣獨立黨</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>黃福卿</td>
<td>男</td>
<td class="tdAlignRight">587</td>
<td class="tdAlignRight">0.3517</td>
<td>無</td>
</tr>
<tr class="trT">
<td> </td>
<td>4</td>
<td>洪顯政</td>
<td>男</td>
<td class="tdAlignRight">478</td>
<td class="tdAlignRight">0.2864</td>
<td>大愛憲改聯盟</td>
</tr>
<tr class="trT">
<td> </td>
<td>5</td>
<td>龔偉綸</td>
<td>男</td>
<td class="tdAlignRight">1,710</td>
<td class="tdAlignRight">1.0246</td>
<td>無</td>
</tr>
<tr class="trT">
<td>◎</td>
<td>6</td>
<td>林昶佐</td>
<td>男</td>
<td class="tdAlignRight">82,650</td>
<td class="tdAlignRight">49.5222</td>
<td>時代力量</td>
</tr>
<tr class="trT">
<td> </td>
<td>7</td>
<td>尤瑞敏</td>
<td>女</td>
<td class="tdAlignRight">4,506</td>
<td class="tdAlignRight">2.6999</td>
<td>樹黨</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 177/177 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>當選註記</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 22:15:11 +0800" title="Sat, 16 Jan 2016 22:15:11 +0800"> 資料更新時間:01/16 22:15:07 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter">[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
|
gugod/vote-watch-2016
|
data/TPE-5/n100050000000000/20160116141722/page.html
|
HTML
|
cc0-1.0
| 7,815
|
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeP1.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_1.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe main-pvpe-current" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>總統副總統選舉 候選人在 桃園市 大溪區得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> 候選組數:3 <img src="../images/nav.gif" alt="應選組數" title="應選組數"> <img src="../images/nav.gif" alt="應選組數" title="應選組數"> 應選組數:1</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td><table><tr><td>總統</td><td rowspan=2> 候選人姓名</td></tr><td>副總統</td></table></td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>登記方式</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>朱立倫<br>王如玄</td>
<td>男<br>女</td>
<td class="tdAlignRight">15,669</td>
<td class="tdAlignRight">32.2156</td>
<td>中國國民黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td>蔡英文<br>陳建仁</td>
<td>女<br>男</td>
<td class="tdAlignRight">26,959</td>
<td class="tdAlignRight">55.4279</td>
<td>民主進步黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>宋楚瑜<br>徐欣瑩</td>
<td>男<br>女</td>
<td class="tdAlignRight">6,010</td>
<td class="tdAlignRight">12.3566</td>
<td>親民黨 推薦</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 58/58 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>自然當選</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 21:51:10 +0800" title="Sat, 16 Jan 2016 21:51:10 +0800"> 資料更新時間: 01/16 21:51:06 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter" align=center>[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
|
gugod/vote-watch-2016
|
data/president/n300001200000000/20160116135147/page.html
|
HTML
|
cc0-1.0
| 6,579
|
jsonp({"cep":"69316464","logradouro":"Rua HC-05","bairro":"Senador H\u00e9lio Campos","cidade":"Boa Vista","uf":"RR","estado":"Roraima"});
|
lfreneda/cepdb
|
api/v1/69316464.jsonp.js
|
JavaScript
|
cc0-1.0
| 139
|
jsonp({"cep":"58300490","logradouro":"Rua Frei Martinho","bairro":"Liberdade","cidade":"Santa Rita","uf":"PB","estado":"Para\u00edba"});
|
lfreneda/cepdb
|
api/v1/58300490.jsonp.js
|
JavaScript
|
cc0-1.0
| 137
|
jsonp({"cep":"41510856","logradouro":"1\u00aa Travessa Adutora","bairro":"S\u00e3o Crist\u00f3v\u00e3o","cidade":"Salvador","uf":"BA","estado":"Bahia"});
|
lfreneda/cepdb
|
api/v1/41510856.jsonp.js
|
JavaScript
|
cc0-1.0
| 154
|
jsonp({"cep":"09790490","logradouro":"Rua Augusto D\u00e1rio Tonizza","bairro":"Ferraz\u00f3polis","cidade":"S\u00e3o Bernardo do Campo","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/09790490.jsonp.js
|
JavaScript
|
cc0-1.0
| 176
|
jsonp({"cep":"60337240","logradouro":"Vila Amaraji","bairro":"\u00c1lvaro Weyne","cidade":"Fortaleza","uf":"CE","estado":"Cear\u00e1"});
|
lfreneda/cepdb
|
api/v1/60337240.jsonp.js
|
JavaScript
|
cc0-1.0
| 137
|
jsonp({"cep":"13339320","logradouro":"Rua Itu","bairro":"Vila Furlan","cidade":"Indaiatuba","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/13339320.jsonp.js
|
JavaScript
|
cc0-1.0
| 131
|
jsonp({"cep":"16022034","logradouro":"Rua Gentil Mazarin","bairro":"Morada dos Nobres","cidade":"Ara\u00e7atuba","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/16022034.jsonp.js
|
JavaScript
|
cc0-1.0
| 152
|
jsonp({"cep":"70043900","logradouro":"Esplanada dos Minist\u00e9rios","bairro":"Zona C\u00edvico-Administrativa","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
lfreneda/cepdb
|
api/v1/70043900.jsonp.js
|
JavaScript
|
cc0-1.0
| 179
|
jsonp({"cep":"68627494","logradouro":"Avenida Pasteur","bairro":"La\u00e9rcio Cabeline","cidade":"Paragominas","uf":"PA","estado":"Par\u00e1"});
|
lfreneda/cepdb
|
api/v1/68627494.jsonp.js
|
JavaScript
|
cc0-1.0
| 145
|
jsonp({"cep":"69318040","logradouro":"Rua CC-09","bairro":"Senador H\u00e9lio Campos","cidade":"Boa Vista","uf":"RR","estado":"Roraima"});
|
lfreneda/cepdb
|
api/v1/69318040.jsonp.js
|
JavaScript
|
cc0-1.0
| 139
|
jsonp({"cep":"23016030","logradouro":"Pra\u00e7a Catulle Mendes","bairro":"Campo Grande","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
|
lfreneda/cepdb
|
api/v1/23016030.jsonp.js
|
JavaScript
|
cc0-1.0
| 154
|
jsonp({"cep":"77815060","logradouro":"Rua 66","bairro":"Loteamento Nova Aragua\u00edna","cidade":"Aragua\u00edna","uf":"TO","estado":"Tocantins"});
|
lfreneda/cepdb
|
api/v1/77815060.jsonp.js
|
JavaScript
|
cc0-1.0
| 148
|
jsonp({"cep":"72003635","logradouro":"Rua Rua 8 Ch\u00e1cara 296","bairro":"Vila S\u00e3o Jos\u00e9 (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
lfreneda/cepdb
|
api/v1/72003635.jsonp.js
|
JavaScript
|
cc0-1.0
| 180
|
jsonp({"cep":"16012581","logradouro":"Rua Francisco Fel\u00edcio Batagelo","bairro":"Conjunto Habitacional Ivo Tozzi","cidade":"Ara\u00e7atuba","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/16012581.jsonp.js
|
JavaScript
|
cc0-1.0
| 183
|
jsonp({"cep":"13218783","logradouro":"Rua Vereador Du\u00edlio Garbatti","bairro":"Ivoturucaia","cidade":"Jundia\u00ed","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/13218783.jsonp.js
|
JavaScript
|
cc0-1.0
| 159
|
# coding: utf-8
import copy
import json
import gzip
from cStringIO import StringIO
from datetime import datetime
import arrow
import iso8601
from dateutil import tz
import ML
from ML import operation
__author__ = 'czhou <czhou@ilegendsoft.com>'
def get_dumpable_types():
return (
operation.BaseOp,
)
def encode(value, disallow_objects=False):
if isinstance(value, datetime):
tzinfo = value.tzinfo
if tzinfo is None:
tzinfo = tz.tzlocal()
return {
'__type': 'Date',
'iso': arrow.get(value, tzinfo).to('utc').format('YYYY-MM-DDTHH:mm:ss.SSS') + 'Z',
}
if isinstance(value, ML.Object):
if disallow_objects:
raise ValueError('ML.Object not allowed')
return value._to_pointer()
if isinstance(value, get_dumpable_types()):
return value.dump()
if isinstance(value, (tuple, list)):
return [encode(x, disallow_objects) for x in value]
if isinstance(value, dict):
return dict([(k, encode(v, disallow_objects)) for k, v in value.iteritems()])
return value
def decode(key, value):
if isinstance(value, get_dumpable_types()):
return value
if isinstance(value, (tuple, list)):
return [decode(key, x) for x in value]
if not isinstance(value, dict):
return value
if '__type' not in value:
return dict([(k, decode(k, v)) for k, v in value.iteritems()])
_type = value['__type']
if _type == 'Pointer':
value = copy.deepcopy(value)
class_name = value['className']
pointer = ML.Object.create(class_name)
if 'createdAt' in value:
value.pop('__type')
value.pop('className')
pointer._finish_fetch(value, True)
else:
pointer._finish_fetch({'objectId': value['objectId']}, False)
return pointer
if _type == 'Object':
value = copy.deepcopy(value)
class_name = value['className']
value.pop('__type')
value.pop('class_name')
obj = ML.Object.create(class_name)
obj._finish_fetch(value, True)
return obj
if _type == 'Date':
return arrow.get(iso8601.parse_date(value['iso'])).to('local').datetime
if _type == 'Relation':
relation = ML.Relation(None, key)
relation.target_class_name = value['className']
return relation
def traverse_object(obj, callback, seen=None):
seen = seen or set()
if isinstance(obj, ML.Object):
if obj in seen:
return
seen.add(obj)
traverse_object(obj.attributes, callback, seen)
return callback(obj)
if isinstance(obj, (ML.Relation )):
return callback(obj)
if isinstance(obj, (list, tuple)):
for idx, child in enumerate(obj):
new_child = traverse_object(child, callback, seen)
if new_child:
obj[idx] = new_child
return callback(obj)
if isinstance(obj, dict):
for key, child in obj.iteritems():
new_child = traverse_object(child, callback, seen)
if new_child:
obj[key] = new_child
return callback(obj)
return callback(obj)
def response_to_json(response):
"""
hack for requests in python 2.6
"""
if isinstance(response, ML.Response):
return json.loads(response.data)
content = response.content
# hack for requests in python 2.6
if 'application/json' in response.headers.get('Content-Type',''):
if content[:2] == '\x1f\x8b':
f = StringIO(content)
g = gzip.GzipFile(fileobj=f)
content = g.read()
g.close()
f.close()
return json.loads(content)
|
MaxLeap/SDK-CloudCode-Python
|
ML/utils.py
|
Python
|
cc0-1.0
| 3,771
|
#!/usr/bin/python
import os
import time
import moveServo
import os.path
from multiprocessing import Process
my_dir = os.path.dirname(__file__)
def main():
moveServo.init_candy()
moveServo.move_servo_ext(0, 180, 25)
print "sleep 5"
# time.sleep(1)
moveServo.move_servo_ext(180, 90, 25)
print "sleep 5"
# time.sleep(1)
moveServo.move_servo_ext(90, 0, 25)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print "Keyboard interrupt received. Cleaning up..."
moveServo.del_all_servos()
print "Keyboard interrupt Clean up done"
|
intelmakers/candy_machine
|
Python/test_servo.py
|
Python
|
cc0-1.0
| 625
|
jsonp({"cep":"58045150","logradouro":"Rua Desportista Jos\u00e9 Eduardo de Holanda","bairro":"Cabo Branco","cidade":"Jo\u00e3o Pessoa","uf":"PB","estado":"Para\u00edba"});
|
lfreneda/cepdb
|
api/v1/58045150.jsonp.js
|
JavaScript
|
cc0-1.0
| 172
|
jsonp({"cep":"18046360","logradouro":"Rua Comendador Ant\u00f4nio Soares Regal","bairro":"Jardim S\u00e3o Carlos","cidade":"Sorocaba","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/18046360.jsonp.js
|
JavaScript
|
cc0-1.0
| 173
|
from RebotConfig import RebotConfig
from Log import Log
from exchange.huobi.HuobiUtil import *
from exchange.huobi.HuobiService import *
import json
import time
import math
'''{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }'''
PERIOD2TYPE = {
1 : '1min',
5 : '5min',
15 : '15min',
30 : '30min',
60 : '60min',
}
def PERIOD(period):
if period >= 60:
return '60min';
return PERIOD2TYPE.get(period);
def TIMEHOUR(timestamp):
return float(time.strftime("%H", time.localtime(timestamp)));
def CreateDefalutKline():
return {
'id' : 0,
'open' : 0,
'high' : 0,
'low' : 999999999,
'close' : 0,
'amount': 0,
'vol' : 0, }
def SortCompare(a, b):
return a['id'] < b['id'];
def Cut(num, c):
s = '{:.9f}'.format(num);
pos = s.find('.');
if pos > 0:
return float(s[0:pos+c+1]);
else:
return num;
def ConvertData(preiod1, data, period2):
ndata = [];
kcount = period2 / preiod1;
datalenght = len(data);
nk = None;
for key in range(1, datalenght):
k = data[datalenght - 1 - key];
prek = data[datalenght - key];
h = TIMEHOUR(k['id']);
idx = h % kcount;
if idx == 0:
if nk != None:
nk['close'] = prek['close'];
nk['high'] = max(nk['high'], prek['high']);
nk['low'] = min(nk['low'], prek['low']);
nk['amount']= nk['amount'] + nk['preamount'];
nk['vol'] = nk['vol'] + nk['prevol'];
nk = CreateDefalutKline();
ndata.append(nk);
nk['id'] = k['id'];
nk['open'] = k['open'];
nk['preamount'] = 0;
nk['prevol'] = 0;
nk['idx'] = idx;
if nk != None:
nk['close'] = k['close'];
nk['high'] = max(nk['high'], k['high']);
nk['low'] = min(nk['low'], k['low']);
if nk['idx'] != idx:
nk['preamount'] += prek['amount'];
nk['prevol'] += prek['vol'];
nk['idx'] = idx;
nk['amount'] = nk['preamount'] + k['amount'];
nk['vol'] = nk['prevol'] + k['vol'];
ndata.reverse();
#for k,v in enumerate(ndata):
# print v, time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(v['id']));
return ndata;
def ConvertKlineData(data):
ndata = [];
lendatadata = len(data);
for k in range(0, lendatadata):
v = data[lendatadata - 1 - k];
d = [0,1,2,3,4,5,6];
d[0] = v['id'];
d[1] = v['open'];
d[2] = v['high'];
d[3] = v['low'];
d[4] = v['close'];
d[5] = v['amount'];
d[6] = v['vol'];
ndata.append(d);
return ndata;
class huobiEX():
def set(self, access, secret):
set_user_key(access, secret);
self.orders = {};
self.marketOrders = {};
self.precisions = {};
def createOrder(self, id, market, side, time, price, volume, ext):
o = {
'id':id,
'side':side, # sell, buy
'price':price,
'avg_price':price,
'state':'wait', # wait, done, cancel
'market':market,
'created_at':time,
'volume':volume,
'remaining_volume':volume,
'executed_volume':0,
'ext':ext,
}
self.orders[id] = o;
d = self.marketOrders.get(market);
if d==None:
self.marketOrders[market] = [];
d = self.marketOrders.get(market);
d.append(o);
return id;
def getPrice(self, market, price):
d = self.precisions[market];
if d != None:
return round(price, int(d['price-precision']));
else :
return round(price, 0);
def getVolume(self, market, vol):
d = self.precisions[market];
if d != None:
return Cut(vol, int(d['amount-precision']));
else :
return Cut(vol, 0);
# function
def loadData(self, period, timestamp):
return None;
def prepare(self, period, timestamp):
d = get_symbols();
markets = [];
for k,v in enumerate(d['data']):
if v['quote-currency'] == 'usdt':
key = v['base-currency'] + 'usdt';
if key != 'venusdt':
self.precisions[key] = v;
markets.append({'id':key});
self.markets = markets;
def getServerTimestamp(self):
return time.time();
def getUser(self):
data = get_balance();
nndata = [];
if data['status'] != 'ok':
return {'accounts':nndata};
if data['data']['state'] != 'working':
return {'accounts':nndata};
listdata = data['data']['list'];
ndata = {};
for k,v in enumerate(listdata):
currency = v['currency'];
c = ndata.get(currency);
if c == None:
c = {'currency': currency};
ndata[currency] = c;
if v['type'] == 'trade':
c['balance'] = float(v['balance']);
if v['type'] == 'frozen':
c['locked'] = float(v['balance']);
for k,v in enumerate(ndata):
d = ndata.get(v);
if d['balance'] > 0 or d['locked'] > 0:
nndata.append(d);
return {'accounts':nndata};
def getMarkets(self):
if len(RebotConfig.rebot_trade_markets) > 0:
return RebotConfig.rebot_trade_markets;
return self.markets;
def getK(self, market, limit, period, timestamp=None):
data = None;
if period > 60:
data = get_kline(market, PERIOD(period), limit * period / 60);
else:
data = get_kline(market, PERIOD(period), limit);
if data['status'] != 'ok':
return [];
datadata = data['data'];
if period > 60 :
datadata = ConvertData(60, datadata, period);
return ConvertKlineData(datadata);
def getOrder(self, market):
'''
ret = self.marketOrders.get(market);
if ret == None:
return [];
'remaining_volume':volume,
'executed_volume':0,
for k, o in enumerate(ret):
data = order_info(o['id']);
if data['status'] == 'ok':
data = data['data'];
o['remaining_volume'] = float(data['amount']) - float(data['field-amount']);
o['executed_volume'] = float(data['field-amount']);
o['averageprice'] = float(data['field-cash-amount']) / float(data['field-amount']);
'''
data = orders_list(market, "pre-submitted,submitted,partial-filled,partial-canceled,filled,canceled");
if data['status'] != 'ok':
return [];
ret = data['data'];
for k, o in enumerate(data['data']):
o['id'] = int(o['id']);
o['created_at'] = float(o['created-at'])/1000;
o['side'] = o['type'][0:3];
if o['side'] != 'buy':
o['side'] = 'sell';
o['price'] = float(o['price']);
o['market'] = o['symbol'];
o['volume'] = float(o['amount']);
o['remaining_volume'] = float(o['amount']) - float(o['field-amount']);
o['executed_volume'] = float(o['field-amount']);
if o['executed_volume'] > 0:
o['avg_price'] = float(o['field-cash-amount']) / float(o['field-amount']);
else:
o['avg_price'] = 0;
# pre-submitted,submitted,partial-filled,partial-canceled,filled,canceled
if o['state'] == "canceled" or o['state'] == 'partial-canceled':
o['state'] = "cancel";
if o['state'] == 'filled':
o['state'] = 'compelete';
return ret;
def doOrder(self, market, side, price, volume, time=None, ext=None):
volume = self.getVolume(market, volume);
price = self.getPrice(market, price);
if volume <= 0:
Log.d("\t\tvolume in precision is nil");
return True, price, volume;
nside = 'buy-limit';
if side == 'sell':
nside = 'sell-limit';
result = send_order(volume, 'api', market, nside, price);
if result['status'] != 'ok':
Log.d('\t\tdo order result {0}'.format(result));
return False, price, volume;
# self.createOrder(result['data'], market, side, price, volume, time, ext);
return True, price, volume;
def doOrderCancel(self, orderID, market):
data = cancel_order(orderID);
if data['status'] != "ok":
return False;
return True;
class huobiEXLocal():
def set(self, access, secret):
set_user_key(access, secret)
self.accounts = {
'usdt' : {'currency':'usdt', 'balance':'%d' % RebotConfig.user_initamount, 'locked':'0.0'},
};
self.orders = {};
self.marketOrders = {};
self.ORDERID = 0;
self.kss = {};
self.allMarkets = None;
self.currentMarkets = None;
self.poundage = 0;#0.0001;
self.precisions = {};
def getPrice(self, market, price):
d = self.precisions[market];
if d != None:
return round(price, int(d['price-precision']));
else :
return round(price, 0);
def getVolume(self, market, vol):
d = self.precisions[market];
if d != None:
return Cut(vol, int(d['amount-precision']));
else :
return Cut(vol, 0);
def createOrder(self, market, side, time, price, volume, ext):
if volume<=0:
return None;
self.ORDERID += 1;
id = self.ORDERID;
o = {
'id':id,
'side':side, # sell, buy
'price':price,
'avg_price':price,
'state':'wait', # wait, done, cancel
'market':market,
'created_at':time,
'volume':volume,
'remaining_volume':volume,
'executed_volume':0,
'ext':ext
}
self.orders[id] = o;
d = self.marketOrders.get(market);
if d==None:
self.marketOrders[market] = [];
d = self.marketOrders.get(market);
d.append(o);
return id;
def compeleteOrder(self, id):
o = self.orders.get(id);
if o==None:
return;
market = o['market'];
currency = market[0:len(market) - len(RebotConfig.base_currency)];
o['remaining_volume']=0;
o['executed_volume']=o['volume'];
o['state']='done';
if o['side'] == 'sell':
c = self.accounts.get(currency);
balance = float(c['balance']);
c['balance'] = str(balance - o['executed_volume']);
ccny = self.accounts.get(RebotConfig.base_currency);
ccny['balance'] = str(float(ccny['balance']) + o['executed_volume'] * o['avg_price'] * (1 - self.poundage) );
print '\t\tsell', market, balance, c['balance']
if o['side'] == 'buy':
c = self.accounts.get(currency);
if c==None:
self.accounts[currency] = {'currency':currency, 'balance':'0.0', 'locked':'0.0', 'price':0.0};
c = self.accounts.get(currency);
balance = float(c['balance']);
price = c['price'];
addbalance = o['executed_volume'] * (1 - self.poundage);
addprice = o['avg_price'];
print '\t\tbuy',market, balance, addbalance
c['balance'] = str(balance + addbalance);
c['price'] = (balance)/(balance+addbalance)*price + addbalance/(balance+addbalance)*addprice;
ccny = self.accounts.get(RebotConfig.base_currency);
ccny['balance'] = str(float(ccny['balance']) - addbalance*addprice);
# function
def loadData(self, period, timestamp):
return None;
def prepare(self, period, timestamp):
d = get_symbols();
markets = []
for k,v in enumerate(d['data']):
if v['quote-currency'] == 'usdt':
key = v['base-currency'] + 'usdt';
self.precisions[v['base-currency'] + 'usdt'] = v;
markets.append({'id':key});
self.markets = markets;
def getServerTimestamp(self):
return time.time();
def getUser(self):
d = {}
accounts = [];
for k,v in self.accounts.items():
accounts.append(v);
d['accounts']=accounts;
return d;
def getMarkets(self):
if len(RebotConfig.rebot_trade_markets) > 0:
return RebotConfig.rebot_trade_markets;
return self.markets;
#return [{'id':'anscny'},{'id':'btccny'}, {'id':'ethcny'}, {'id':'zeccny'}, {'id':'qtumcny'}, {'id':'gxscny'}, {'id':'eoscny'}, {'id':'sccny'}, {'id':'dgdcny'}, {'id':'1stcny'}, {'id':'btscny'}, {'id':'gntcny'}, {'id':'repcny'}, {'id':'etccny'}];
#return [{'id':'anscny'}];
def getK(self, market, limit, period, timestamp=None):
if RebotConfig.rebot_is_test == False:
data = None;
if period > 60:
data = get_kline(market, PERIOD(period), limit * period / 60);
else:
data = get_kline(market, PERIOD(period), limit);
if data['status'] != 'ok':
return [];
datadata = data['data'];
if period > 60 :
datadata = ConvertData(60, datadata, period);
return ConvertKlineData(datadata);
ks = self.kss.get(market);
if ks==None:
data = None;
if period > 60:
data = get_kline(market, PERIOD(period), RebotConfig.rebot_test_k_count * period / 60);
else:
data = get_kline(market, PERIOD(period), RebotConfig.rebot_test_k_count);
datadata = data['data'];
if period > 60 :
datadata = ConvertData(60, datadata, period);
# print "kline length", len(datadata), RebotConfig.rebot_test_k_count * period / 60, 'xxxxxxxxxxxxxxxxx';
self.kss[market] = ConvertKlineData(datadata);
ks = self.kss.get(market);
# time.sleep(0.01);
# print timestamp, len(ks), ks[-1][0], limit
if ks == None or len(ks) == 0:
print '%s do not find kline' % market
if timestamp > ks[-1][0]:
print '{0} k line is over'.format(market);
return [];
ret = [];
for k,v in enumerate(ks):
if v[0] >= timestamp:
ret.append(v);
if len(ret) >= limit:
return ret;
return ret;
def getOrder(self, market):
ret = self.marketOrders.get(market);
if ret==None:
return [];
return ret;
def doOrder(self, market, side, price, volume, time=None, ext=None):
price = self.getPrice(market, price);
volume = self.getVolume(market, volume);
id = self.createOrder(market, side, time, price, volume, ext)
if id:
self.compeleteOrder(id);
return True, price, volume;
def doOrderCancel(self, orderID, market):
return None;
|
WaitGodot/peatio-client-python
|
exchange/huobiEX.py
|
Python
|
cc0-1.0
| 15,480
|
jsonp({"cep":"72220026","logradouro":"Quadra QNN 2 Conjunto F","bairro":"Ceil\u00e2ndia Sul (Ceil\u00e2ndia)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
lfreneda/cepdb
|
api/v1/72220026.jsonp.js
|
JavaScript
|
cc0-1.0
| 176
|
jsonp({"cep":"58410762","logradouro":"Travessa Pedro Arag\u00e3o","bairro":"Sandra Cavalcante","cidade":"Campina Grande","uf":"PB","estado":"Para\u00edba"});
|
lfreneda/cepdb
|
api/v1/58410762.jsonp.js
|
JavaScript
|
cc0-1.0
| 158
|
jsonp({"cep":"88110684","logradouro":"Rua Jos\u00e9 Em\u00edlio de Souza","bairro":"Nossa Senhora do Ros\u00e1rio","cidade":"S\u00e3o Jos\u00e9","uf":"SC","estado":"Santa Catarina"});
|
lfreneda/cepdb
|
api/v1/88110684.jsonp.js
|
JavaScript
|
cc0-1.0
| 184
|
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeP1.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_1.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe main-pvpe-current" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>總統副總統選舉 候選人在 臺南市 鹽水區得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> 候選組數:3 <img src="../images/nav.gif" alt="應選組數" title="應選組數"> <img src="../images/nav.gif" alt="應選組數" title="應選組數"> 應選組數:1</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td><table><tr><td>總統</td><td rowspan=2> 候選人姓名</td></tr><td>副總統</td></table></td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>登記方式</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>朱立倫<br>王如玄</td>
<td>男<br>女</td>
<td class="tdAlignRight">2,530</td>
<td class="tdAlignRight">18.8426</td>
<td>中國國民黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td>蔡英文<br>陳建仁</td>
<td>女<br>男</td>
<td class="tdAlignRight">9,726</td>
<td class="tdAlignRight">72.4361</td>
<td>民主進步黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>宋楚瑜<br>徐欣瑩</td>
<td>男<br>女</td>
<td class="tdAlignRight">1,171</td>
<td class="tdAlignRight">8.7212</td>
<td>親民黨 推薦</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 31/31 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>自然當選</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 23:00:10 +0800" title="Sat, 16 Jan 2016 23:00:10 +0800"> 資料更新時間: 01/16 23:00:06 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter" align=center>[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
|
gugod/vote-watch-2016
|
data/president/n500000500000000/20160116150057/page.html
|
HTML
|
cc0-1.0
| 6,576
|
---
layout: post
title: doto from clojure in python
date: 2014-09-18 12:32:18
keywords: python, clojure, macros, doto, method chaining
---
When i writing code in clojure i can use good macro – [doto](http://clojuredocs.org/clojure_core/1.3.0/clojure.core/doto).
With whom python code like:
~~~python
window = QMainWindow()
window.setTitle(TITLE)
window.setWindowFlags(Qt.FramelessWindowHint)
window.setAttribute(Qt.WA_TransparentForMouseEvents, True)
window.show()
~~~
can be translated in clojure code like:
~~~clojure
(doto (QMainWindow.)
(.setTitle title)
(.setWindowFlags Qt/FramelessWindowHint)
(.setAttribute Qt/WA_TransparentForMouseEvents True)
(.show))
~~~
And i wrote hackish class for doing something similar in python.
~~~python
from functools import partial
class DoTo(object):
def __init__(self, obj):
self._obj = obj
def _do(self, name, *args, **kwargs):
getattr(self._obj, name)(*args, **kwargs)
return self
def __getattr__(self, item):
return partial(self._do, item)
~~~
With method chaining we can emulate behavior of clojure `doto`:
~~~python
window = QMainWindow()
DoTo(window)\
.setTitle(TITLE)\
.setWindowFlags(Qt.FramelessWindowHint)\
.setAttribute(Qt.WA_TransparentForMouseEvents, True)\
.show()
~~~
|
nvbn/nvbn.github.io
|
_posts/2014-09-18-doto-in-python.md
|
Markdown
|
cc0-1.0
| 1,347
|
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.scripts.tap2rpm}.
"""
import os
from twisted.trial.unittest import TestCase, SkipTest
from twisted.python import procutils
from twisted.python.failure import Failure
from twisted.internet import utils
from twisted.scripts import tap2rpm
# When we query the RPM metadata, we get back a string we'll have to parse, so
# we'll use suitably rare delimiter characters to split on. Luckily, ASCII
# defines some for us!
RECORD_SEPARATOR = "\x1E"
UNIT_SEPARATOR = "\x1F"
def _makeRPMs(tapfile=None, maintainer=None, protocol=None, description=None,
longDescription=None, setVersion=None, rpmfile=None, type_=None):
"""
Helper function to invoke tap2rpm with the given parameters.
"""
args = []
if not tapfile:
tapfile = "dummy-tap-file"
handle = open(tapfile, "w")
handle.write("# Dummy TAP file\n")
handle.close()
args.extend(["--quiet", "--tapfile", tapfile])
if maintainer:
args.extend(["--maintainer", maintainer])
if protocol:
args.extend(["--protocol", protocol])
if description:
args.extend(["--description", description])
if longDescription:
args.extend(["--long_description", longDescription])
if setVersion:
args.extend(["--set-version", setVersion])
if rpmfile:
args.extend(["--rpmfile", rpmfile])
if type_:
args.extend(["--type", type_])
return tap2rpm.run(args)
def _queryRPMTags(rpmfile, taglist):
"""
Helper function to read the given header tags from the given RPM file.
Returns a Deferred that fires with dictionary mapping a tag name to a list
of the associated values in the RPM header. If a tag has only a single
value in the header (like NAME or VERSION), it will be returned as a 1-item
list.
Run "rpm --querytags" to see what tags can be queried.
"""
# Build a query format string that will return appropriately delimited
# results. Every field is treated as an array field, so single-value tags
# like VERSION will be returned as 1-item lists.
queryFormat = RECORD_SEPARATOR.join([
"[%%{%s}%s]" % (tag, UNIT_SEPARATOR) for tag in taglist
])
def parseTagValues(output):
res = {}
for tag, values in zip(taglist, output.split(RECORD_SEPARATOR)):
values = values.strip(UNIT_SEPARATOR).split(UNIT_SEPARATOR)
res[tag] = values
return res
def checkErrorResult(failure):
# The current rpm packages on Debian and Ubuntu don't properly set up
# the RPM database, which causes rpm to print a harmless warning to
# stderr. Unfortunately, .getProcessOutput() assumes all warnings are
# catastrophic and panics whenever it sees one.
#
# See also:
# http://twistedmatrix.com/trac/ticket/3292#comment:42
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551669
# http://rpm.org/ticket/106
failure.trap(IOError)
# Depending on kernel scheduling, we might read the whole error
# message, or only the first few bytes.
if str(failure.value).startswith("got stderr: 'error: "):
newFailure = Failure(SkipTest("rpm is missing its package "
"database. Run 'sudo rpm -qa > /dev/null' to create one."))
else:
# Not the exception we were looking for; we should report the
# original failure.
newFailure = failure
# We don't want to raise the exception right away; we want to wait for
# the process to exit, otherwise we'll get extra useless errors
# reported.
d = failure.value.processEnded
d.addBoth(lambda _: newFailure)
return d
d = utils.getProcessOutput("rpm",
("-q", "--queryformat", queryFormat, "-p", rpmfile))
d.addCallbacks(parseTagValues, checkErrorResult)
return d
class TestTap2RPM(TestCase):
def setUp(self):
return self._checkForRpmbuild()
def _checkForRpmbuild(self):
"""
tap2rpm requires rpmbuild; skip tests if rpmbuild is not present.
"""
if not procutils.which("rpmbuild"):
raise SkipTest("rpmbuild must be present to test tap2rpm")
def _makeTapFile(self, basename="dummy"):
"""
Make a temporary .tap file and returns the absolute path.
"""
path = basename + ".tap"
handle = open(path, "w")
handle.write("# Dummy .tap file")
handle.close()
return path
def _verifyRPMTags(self, rpmfile, **tags):
"""
Check the given file has the given tags set to the given values.
"""
d = _queryRPMTags(rpmfile, tags.keys())
d.addCallback(self.assertEqual, tags)
return d
def test_optionDefaults(self):
"""
Commandline options should default to sensible values.
"sensible" here is defined as "the same values that previous versions
defaulted to".
"""
config = tap2rpm.MyOptions()
config.parseOptions([])
self.assertEqual(config['tapfile'], 'twistd.tap')
self.assertEqual(config['maintainer'], 'tap2rpm')
self.assertEqual(config['protocol'], 'twistd')
self.assertEqual(config['description'], 'A TCP server for twistd')
self.assertEqual(config['long_description'],
'Automatically created by tap2rpm')
self.assertEqual(config['set-version'], '1.0')
self.assertEqual(config['rpmfile'], 'twisted-twistd')
self.assertEqual(config['type'], 'tap')
self.assertEqual(config['quiet'], False)
self.assertEqual(config['twistd_option'], 'file')
self.assertEqual(config['release-name'], 'twisted-twistd-1.0')
def test_protocolCalculatedFromTapFile(self):
"""
The protocol name defaults to a value based on the tapfile value.
"""
config = tap2rpm.MyOptions()
config.parseOptions(['--tapfile', 'pancakes.tap'])
self.assertEqual(config['tapfile'], 'pancakes.tap')
self.assertEqual(config['protocol'], 'pancakes')
def test_optionsDefaultToProtocolValue(self):
"""
Many options default to a value calculated from the protocol name.
"""
config = tap2rpm.MyOptions()
config.parseOptions([
'--tapfile', 'sausages.tap',
'--protocol', 'eggs',
])
self.assertEqual(config['tapfile'], 'sausages.tap')
self.assertEqual(config['maintainer'], 'tap2rpm')
self.assertEqual(config['protocol'], 'eggs')
self.assertEqual(config['description'], 'A TCP server for eggs')
self.assertEqual(config['long_description'],
'Automatically created by tap2rpm')
self.assertEqual(config['set-version'], '1.0')
self.assertEqual(config['rpmfile'], 'twisted-eggs')
self.assertEqual(config['type'], 'tap')
self.assertEqual(config['quiet'], False)
self.assertEqual(config['twistd_option'], 'file')
self.assertEqual(config['release-name'], 'twisted-eggs-1.0')
def test_releaseNameDefaultsToRpmfileValue(self):
"""
The release-name option is calculated from rpmfile and set-version.
"""
config = tap2rpm.MyOptions()
config.parseOptions([
"--rpmfile", "beans",
"--set-version", "1.2.3",
])
self.assertEqual(config['release-name'], 'beans-1.2.3')
def test_basicOperation(self):
"""
Calling tap2rpm should produce an RPM and SRPM with default metadata.
"""
basename = "frenchtoast"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(basename))
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
NAME=["twisted-%s" % (basename,)],
VERSION=["1.0"],
RELEASE=["1"],
SUMMARY=["A TCP server for %s" % (basename,)],
DESCRIPTION=["Automatically created by tap2rpm"],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
NAME=["twisted-%s" % (basename,)],
VERSION=["1.0"],
RELEASE=["1"],
SUMMARY=["A TCP server for %s" % (basename,)],
DESCRIPTION=["Automatically created by tap2rpm"],
))
return d
def test_protocolOverride(self):
"""
Setting 'protocol' should change the name of the resulting package.
"""
basename = "acorn"
protocol = "banana"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(basename),
protocol=protocol)
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
NAME=["twisted-%s" % (protocol,)],
SUMMARY=["A TCP server for %s" % (protocol,)],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
NAME=["twisted-%s" % (protocol,)],
SUMMARY=["A TCP server for %s" % (protocol,)],
))
return d
def test_rpmfileOverride(self):
"""
Setting 'rpmfile' should change the name of the resulting package.
"""
basename = "cherry"
rpmfile = "donut"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(basename),
rpmfile=rpmfile)
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
NAME=[rpmfile],
SUMMARY=["A TCP server for %s" % (basename,)],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
NAME=[rpmfile],
SUMMARY=["A TCP server for %s" % (basename,)],
))
return d
def test_descriptionOverride(self):
"""
Setting 'description' should change the SUMMARY tag.
"""
description = "eggplant"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(),
description=description)
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
SUMMARY=[description],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
SUMMARY=[description],
))
return d
def test_longDescriptionOverride(self):
"""
Setting 'longDescription' should change the DESCRIPTION tag.
"""
longDescription = "fig"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(),
longDescription=longDescription)
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
DESCRIPTION=[longDescription],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
DESCRIPTION=[longDescription],
))
return d
def test_setVersionOverride(self):
"""
Setting 'setVersion' should change the RPM's version info.
"""
version = "123.456"
# Create RPMs based on a TAP file with this name.
rpm, srpm = _makeRPMs(tapfile=self._makeTapFile(),
setVersion=version)
# Verify the resulting RPMs have the correct tags.
d = self._verifyRPMTags(rpm,
VERSION=["123.456"],
RELEASE=["1"],
)
d.addCallback(lambda _: self._verifyRPMTags(srpm,
VERSION=["123.456"],
RELEASE=["1"],
))
return d
def test_tapInOtherDirectory(self):
"""
tap2rpm handles tapfiles outside the current directory.
"""
# Make a tapfile outside the current directory.
tempdir = self.mktemp()
os.mkdir(tempdir)
tapfile = self._makeTapFile(os.path.join(tempdir, "bacon"))
# Try and make an RPM from that tapfile.
_makeRPMs(tapfile=tapfile)
|
Kagami/kisa
|
lib/twisted/scripts/test/test_tap2rpm.py
|
Python
|
cc0-1.0
| 12,453
|
jsonp({"cep":"72333405","logradouro":"Quadra QR 625 Conjunto 4","bairro":"Samambaia Norte (Samambaia)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
lfreneda/cepdb
|
api/v1/72333405.jsonp.js
|
JavaScript
|
cc0-1.0
| 169
|
'use strict';
var gulp = require( 'gulp' );
gulp.task( 'build', ['scripts', 'lint', 'test'] );
|
sebworks/AtomicComponent
|
gulp/build.js
|
JavaScript
|
cc0-1.0
| 97
|
可以通过搭建反向代理的方式,访问 Google 搜索和维基百科。如访问 `https://so.example.com` 时会代理 Google,访问 `https://wiki.example.com` 时会代理维基百科。
## 系统环境
ubuntu 16.04 64位, nginx, [ezgoo](https://github.com/Lafeng/ezgoo), supervisor
## 搭建 Google 反向代理
**安装 ezgoo**
下载及安装, 参考 [ezgoo](https://github.com/Lafeng/ezgoo) 或者使用如下命令下载二进制文件
```shell
mkdir /var/www/ezgoo
cd /var/www/ezgoo
wget https://github.com/freedocs/binary/raw/master/ezgoo/ezgoo.tar.gz
tar xf ezgoo.tar.gz
rm ezgoo.tar.gz
```
运行测试 `./ezgoo -dir=dist`
**使用 `supervisor` 管理服务**
```shell
apt-get install supervisor
service supervisor start
update-rc.d supervisor enable
```
```shell
cd /etc/supervisor/conf.d
wget https://raw.githubusercontent.com/freedocs/binary/master/ezgoo/supervisor/ezgoo.conf
supervisorctl update
```
**配置 Nginx**
注意替换 `example.com` 为你的域名
需要签署证书的域名 `so.example.com`
`vi /etc/nginx/sites-available/so.example.com`
```shell
proxy_cache_path /var/cache/ggcc levels=1:2 keys_zone=ggcc:256m inactive=10d;
server {
listen 80;
listen 443 ssl http2;
server_name so.example.com;
ssl_certificate certs/so.example.com/fullchain.pem;
ssl_certificate_key certs/so.example.com/privkey.pem;
access_log /var/log/nginx/$host.access.log;
if ($ssl_protocol = "") {
return 302 https://$http_host$request_uri;
}
location / {
#auth_basic "Contact the web master for password";
#auth_basic_user_file .sopasswd;
# using cache
proxy_cache ggcc; # 前面定义的key_zone name
proxy_cache_lock on;
proxy_cache_key $host$uri;
proxy_cache_valid 200 5d;
proxy_cache_use_stale error timeout updating;
# add cache status header
add_header X-Cache $upstream_cache_status;
# back-end
# 下面的三个header非常重要
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $http_host;
proxy_http_version 1.1;
proxy_redirect off;
# Your AirGoo address:port
proxy_pass http://127.0.0.1:18080;
}
}
```
```shell
cd /etc/nginx/sites-enabled
ln -s ../sites-available/so.exmaple.com
```
重启服务 `service nginx restart`,访问 `https://so.example.com` 测试。
## 搭建维基百科反向代理
注意需要 `nginx` 编译 `ngx_http_substitutions_filter_module` 模块
注意替换 `example.com` 为你的域名
需要签署证书的域名 `m-wiki.example.com` `up-wiki.example.com` `wiki.example.com`
`vi /etc/nginx/sites-available/wiki.example.com`
```shell
server {
server_name wiki.example.com;
listen 80;
rewrite ^/(.*) https://$server_name/$1 permanent;
}
server {
server_name wiki.example.com;
listen 443 ssl;
ssl_certificate certs/wiki.example.com/fullchain.pem;
ssl_certificate_key certs/wiki.example.com/privkey.pem;
location / {
proxy_pass https://zh.wikipedia.org;
proxy_buffering off;
proxy_cookie_domain zh.wikipedia.org wiki.example.com;
proxy_redirect https://zh.wikipedia.org/ /;
proxy_redirect https://zh.m.wikipedia.org/ https://m-wiki.example.com/;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Accept-Encoding '';
proxy_set_header referer "https://zh.wikipedia.org$request_uri";
subs_filter_types text/css text/xml text/javascript;
subs_filter '维基百科' '维基百科镜像';
subs_filter zh.wikipedia.org wiki.example.com;
subs_filter upload.wikimedia.org up-wiki.example.com;
subs_filter zh.m.wikipedia.org m-wiki.example.com;
}
location https://zh.m.wikipedia.org/{
rewrite ^/(.*) https://m-wiki.example.com/$1 permanent;
}
}
server {
server_name m-wiki.example.com;
listen 80;
rewrite ^/(.*) https://$server_name/$1 permanent;
}
server {
server_name m-wiki.example.com;
listen 443 ssl;
ssl_certificate certs/wiki.example.com/fullchain.pem;
ssl_certificate_key certs/wiki.example.com/privkey.pem;
location / {
proxy_pass https://zh.m.wikipedia.org;
proxy_buffering off;
proxy_redirect https://zh.m.wikipedia.org/ /;
proxy_cookie_domain zh.m.wikipedia.org m-wiki.example.com;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Accept-Encoding '';
proxy_set_header referer "https://zh.m.wikipedia.org$request_uri";
subs_filter_types text/css text/xml text/javascript;
subs_filter '维基百科' '维基百科镜像';
subs_filter zh.wikipedia.org wiki.example.com;
subs_filter zh.m.wikipedia.org m-wiki.example.com;
subs_filter upload.wikimedia.org up-wiki.example.com;
}
}
server {
server_name up-wiki.example.com;
listen 80;
rewrite ^/(.*) https://$server_name/$1 permanent;
}
server {
server_name up-wiki.example.com;
listen 443 ssl;
ssl_certificate certs/wiki.example.com/fullchain.pem;
ssl_certificate_key certs/wiki.example.com/privkey.pem;
location / {
proxy_pass https://upload.wikimedia.org;
proxy_cookie_domain upload.wikimedia.org up-wiki.example.com;
proxy_buffering off;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header referer "https://upload.wikimedia.org$request_uri";
}
}
```
```shell
cd /etc/nginx/sites-enabled
ln -s ../sites-available/wiki.exmaple.com
```
重启服务 `service nginx restart`,访问 `https://wiki.example.com` 测试效果
|
freedocs/docs
|
搭建谷歌和维基百科反向代理.md
|
Markdown
|
cc0-1.0
| 5,792
|
## Help 命令
### 作用
用来显示所有可用的命令或某个命令的帮助说明。
### 用法
```
$ {YII_PATH}/yiic help [command name]
```
如果不给命令名称,则显示所有可用命令。
### 类别名
```
system.console.CHelpCommand
```
### run
1. 不给命令名称或无效命令名称,则显示所有可用命令;
2. 提供有效命令名称则显示命令的帮助说明。
|
phplaber/Yii-note
|
cli/command/help.md
|
Markdown
|
cc0-1.0
| 411
|
jsonp({"cep":"72809060","logradouro":"Quadra Quadra 12","bairro":"Mans\u00f5es de Recreio Estrela Dalva VI","cidade":"Luzi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"});
|
lfreneda/cepdb
|
api/v1/72809060.jsonp.js
|
JavaScript
|
cc0-1.0
| 168
|
jsonp({"cep":"41390807","logradouro":"Alameda Vila das Palmeiras","bairro":"Vila Can\u00e1ria","cidade":"Salvador","uf":"BA","estado":"Bahia"});
|
lfreneda/cepdb
|
api/v1/41390807.jsonp.js
|
JavaScript
|
cc0-1.0
| 145
|
jsonp({"cep":"72155607","logradouro":"Quadra QNL 6 Conjunto G","bairro":"Taguatinga Norte (Taguatinga)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
|
lfreneda/cepdb
|
api/v1/72155607.jsonp.js
|
JavaScript
|
cc0-1.0
| 170
|
jsonp({"cep":"88136331","logradouro":"Rua das Laranjeiras","bairro":"S\u00e3o Sebasti\u00e3o","cidade":"Palho\u00e7a","uf":"SC","estado":"Santa Catarina"});
|
lfreneda/cepdb
|
api/v1/88136331.jsonp.js
|
JavaScript
|
cc0-1.0
| 157
|
jsonp({"cep":"09190380","logradouro":"Rua Kugler","bairro":"Vila Gilda","cidade":"Santo Andr\u00e9","uf":"SP","estado":"S\u00e3o Paulo"});
|
lfreneda/cepdb
|
api/v1/09190380.jsonp.js
|
JavaScript
|
cc0-1.0
| 139
|