Skip to content

Commit

Permalink
Pre-release para version 2.6.4 de TSComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeciavirella committed Oct 7, 2019
1 parent ac76564 commit 99da721
Show file tree
Hide file tree
Showing 14 changed files with 145 additions and 58 deletions.
97 changes: 92 additions & 5 deletions dist/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,103 @@
font-size: 13px;
}

/* tooltip overlaps other elements */
.highcharts-container, svg:not(:root) {
/* Tooltip styles for iframing or third-party pages */

div.highcharts-tooltip-box span table {
border-radius: 0 !important;
border-collapse: collapse;
background-color: rgba(0, 0, 0, 0);
box-shadow: none !important;
display: table !important;
font-feature-settings: normal;
font-size: 13px !important;
line-height: 15px;
max-width: none !important;
overflow: visible !important;
text-align: start;
white-space: normal;
}

/* show tooltip over other elements. Without this, tooltip has full transparency */
.highcharts-container:hover {
div.highcharts-tooltip-box:hover {
z-index: 99 !important;
}

div.highcharts-tooltip-box span br {
font-feature-settings: normal;
margin-top: 0 !important;
}

div.highcharts-tooltip-box span table tbody {
border-collapse: collapse;
display: table-row-group;
font-feature-settings: normal;
font-size: 13px;
line-height: 15px;
max-width: none;
text-align: start;
white-space: normal;
}

div.highcharts-tooltip-box span table tbody tr {
background-color: transparent;
border-collapse: collapse;
font-feature-settings: normal;
font-size: 13px;
line-height: 15px;
text-align: start;
transition-duration: 0s !important;
transition-property: all !important;
white-space: normal;
}

div.highcharts-tooltip-box span table tbody tr td {
border-collapse: collapse;
border-top-width: medium !important;
font-feature-settings: normal;
font-size: 13px;
font-weight: 400 !important;
line-height: 15px;
padding: 0 !important;
text-align: start !important;
white-space: normal;
}

div.highcharts-tooltip-box span table tbody tr td div.tooltip-content {
border-collapse: collapse;
font-feature-settings: normal;
font-size: 13px;
font-weight: 400;
max-height: 30px;
line-height: 15px;
text-align: start;
white-space: normal !important;
}

div.highcharts-tooltip-box span table tbody tr td div.tooltip-content span {
border-collapse: collapse;
font-feature-settings: normal;
font-size: 13px;
font-weight: 400;
line-height: 15px;
text-align: start;
white-space: normal;
}

div.highcharts-tooltip-box span table tbody tr td span.tooltip-value {
border-collapse: collapse;
font-feature-settings: normal;
font-size: 13px;
font-weight: 700;
line-height: 15px;
text-align: right;
white-space: normal;
}

/* tooltip overlaps other elements */
.highcharts-container, svg:not(:root) {
overflow: visible !important;
}

.highcharts-subtitle {
width: 70% !important;
white-space: pre-wrap !important;
Expand Down Expand Up @@ -630,4 +717,4 @@ main a[href^="https://"][target^="_blank"]::after {
color: #0072BB;
}

/*---Fin Iconos---*/
/*---Fin Iconos---*/
4 changes: 2 additions & 2 deletions dist/js/components.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/reference/ts-components.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# TSComponents

**Versión**: 2.6.3
**Versión**: 2.6.4

El objeto `TSComponents` contiene distintos componentes exportables que se pueden utilizar dentro de una experiencia web.

Está en el archivo llamado `components.js` y se aloja versionado en el CDN: https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js
Está en el archivo llamado `components.js` y se aloja versionado en el CDN: https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js

## Componentes

Expand All @@ -19,13 +19,13 @@ Todos los componentes se usan de la misma manera.
* Importar librería JS:

```html
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>
```

* Importar hoja de estilos CSS:

```html
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css'/>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css'/>
```

* Definir dónde se va a dibujar:
Expand Down
12 changes: 6 additions & 6 deletions docs/reference/ts-components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
El componente `card` permite embeber tarjetas con información de la serie, y un gráfico incluído dentro de la misma, en sitios web.

<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" media="all" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>

<style>
.row {
Expand All @@ -22,17 +22,17 @@ El componente `card` permite embeber tarjetas con información de la serie, y un


## Ejemplo base
Ver online: [https://jsfiddle.net/op9sx67w/](https://jsfiddle.net/op9sx67w/)
Ver online: [https://jsfiddle.net/nxz1rmua/](https://jsfiddle.net/nxz1rmua/)

```html
<!-- importa íconos de FontAwesome -->
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" media="all" />

<!-- importa librería JS -->
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>

<!-- importa hoja de estilos CSS -->
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css'/>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css'/>

<!-- código HTML donde ubicar un div con una tarjeta -->
<div id="tmi"></div>
Expand Down Expand Up @@ -214,7 +214,7 @@ Ver online: [https://jsfiddle.net/op9sx67w/](https://jsfiddle.net/op9sx67w/)
```

## Demo online
[https://jsfiddle.net/oz9ch2br/](https://jsfiddle.net/oz9ch2br/)
[https://jsfiddle.net/nxz1rmua/](https://jsfiddle.net/nxz1rmua/)

## Variantes de tarjetas

Expand Down
12 changes: 6 additions & 6 deletions docs/reference/ts-components/card/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@
<h1 id="componente-card"><a class="toclink" href="#componente-card">Componente: card</a><a class="headerlink" href="#componente-card" title="Permanent link">&#128279;</a></h1>
<p>El componente <code>card</code> permite embeber tarjetas con información de la serie, y un gráfico incluído dentro de la misma, en sitios web.</p>
<p><link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" media="all" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script></p>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script></p>
<style>
.row {
width: 90%;
Expand All @@ -710,15 +710,15 @@ <h1 id="componente-card"><a class="toclink" href="#componente-card">Componente:
</div>

<h2 id="ejemplo-base"><a class="toclink" href="#ejemplo-base">Ejemplo base</a><a class="headerlink" href="#ejemplo-base" title="Permanent link">&#128279;</a></h2>
<p>Ver online: <a href="https://jsfiddle.net/op9sx67w/">https://jsfiddle.net/op9sx67w/</a></p>
<p>Ver online: <a href="https://jsfiddle.net/nxz1rmua/">https://jsfiddle.net/nxz1rmua/</a></p>
<div class="codehilite"><pre><span></span><span class="c">&lt;!-- importa íconos de FontAwesome --&gt;</span>
<span class="p">&lt;</span><span class="nt">link</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;text/css&quot;</span> <span class="na">rel</span><span class="o">=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css&quot;</span> <span class="na">media</span><span class="o">=</span><span class="s">&quot;all&quot;</span> <span class="p">/&gt;</span>

<span class="c">&lt;!-- importa librería JS --&gt;</span>
<span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&#39;text/javascript&#39;</span> <span class="na">src</span><span class="o">=</span><span class="s">&#39;https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js&#39;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&#39;text/javascript&#39;</span> <span class="na">src</span><span class="o">=</span><span class="s">&#39;https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js&#39;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>

<span class="c">&lt;!-- importa hoja de estilos CSS --&gt;</span>
<span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#39;stylesheet&#39;</span> <span class="na">type</span><span class="o">=</span><span class="s">&#39;text/css&#39;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#39;https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css&#39;</span><span class="p">/&gt;</span>
<span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#39;stylesheet&#39;</span> <span class="na">type</span><span class="o">=</span><span class="s">&#39;text/css&#39;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#39;https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css&#39;</span><span class="p">/&gt;</span>

<span class="c">&lt;!-- código HTML donde ubicar un div con una tarjeta --&gt;</span>
<span class="p">&lt;</span><span class="nt">div</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;tmi&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
Expand Down Expand Up @@ -899,7 +899,7 @@ <h2 id="ejemplo-completo"><a class="toclink" href="#ejemplo-completo">Ejemplo co


<h2 id="demo-online"><a class="toclink" href="#demo-online">Demo online</a><a class="headerlink" href="#demo-online" title="Permanent link">&#128279;</a></h2>
<p><a href="https://jsfiddle.net/oz9ch2br/">https://jsfiddle.net/oz9ch2br/</a></p>
<p><a href="https://jsfiddle.net/nxz1rmua/">https://jsfiddle.net/nxz1rmua/</a></p>
<h2 id="variantes-de-tarjetas"><a class="toclink" href="#variantes-de-tarjetas">Variantes de tarjetas</a><a class="headerlink" href="#variantes-de-tarjetas" title="Permanent link">&#128279;</a></h2>
<h3 id="card-default"><a class="toclink" href="#card-default">Card: default</a><a class="headerlink" href="#card-default" title="Permanent link">&#128279;</a></h3>
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/ts-components/examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" media="all" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>

<style>
.row {
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/ts-components/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,8 @@


<p><link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" media="all" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script></p>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css" type="text/css">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script></p>
<style>
.row {
width: 90%;
Expand Down
14 changes: 7 additions & 7 deletions docs/reference/ts-components/graphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
El componente `graphic` permite embeber gráficos de líneas, áreas o barras en experiencias web. Permite elegir distintos elementos de filtro de fechas, personalizar los textos, etc.

## Ejemplo base
Ver online: [https://jsfiddle.net/1h6omdnc/](https://jsfiddle.net/1h6omdnc/)
Ver online: [https://jsfiddle.net/sykqpztb/](https://jsfiddle.net/sykqpztb/)

<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css'/>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css'/>

<div id="tmi"></div>

Expand All @@ -27,10 +27,10 @@ Este gráfico se genera a partir del siguiente código:

```html
<!-- importa librería JS -->
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>

<!-- importa hoja de estilos CSS -->
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css'/>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css'/>

<!-- código HTML donde ubicar un div con un gráfico -->
<div id="tmi"></div>
Expand Down Expand Up @@ -266,8 +266,8 @@ Varios componentes del gráfico se muestran/ocultan dinámicamente dependiendo d
```html
<html>
<body>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/js/components.js'></script>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.3/dist/css/components.css'/>
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/js/components.js'></script>
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/datosgobar/series-tiempo-ar-explorer@ts_components_2.6.4/dist/css/components.css'/>
<div id="root"></div>
<script>
window.onload = function () {
Expand Down
Loading

0 comments on commit 99da721

Please sign in to comment.