Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Préparation de la release 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakarim committed Mar 26, 2019
1 parent dce5725 commit ffc74dd
Show file tree
Hide file tree
Showing 67 changed files with 928 additions and 415 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

root.AppSharedProps = {
"appName": "hornet-showroom-online",
"appVersion": "5.2.4",
"appVersion": "5.3.0",
"appDescription": "Application documentaire du Framework hornet",
"appAuthor": "MEAE - Ministère de l'Europe et des Affaires étrangères",
"welcomePageUrl": "\u002Faccueil"
Expand Down
139 changes: 139 additions & 0 deletions static/css/_sass-image.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
// =================================================================
// This file is dynamically generated by gulp-compass-imagehelper
// Do NOT edit!
// =================================================================

// Returns if the image is accessible for these image-helpers
// Note: Not part of the official compass functions, but still useful
@function image-exists($image) {
@return map-has-key($compass-imagehelper-imagesmap, $image);
}

// Embeds the contents of an image directly inside your stylesheet, eliminating the need for another HTTP request. For small images, this can be a performance
// benefit at the cost of a larger generated CSS file.
@function inline-image($image) {
@if image-exists($image) {
$list: map-get($compass-imagehelper-imagesmap, $image);
@return unquote(map-get($list, 'data'));
}
@warn "Image '#{$image}' not found.";
@return null;
}

// Returns the width of the image found at the path supplied by $image relative to your project's images directory.
@function image-width($image) {
@if image-exists($image) {
$list: map-get($compass-imagehelper-imagesmap, $image);
$width: unquote(map-get($list, 'width'));
@if ($width and str-length($width) > 0) {
@return number($width) * 1px;
}
}
@warn "Image '#{$image}' not found.";
@return null;
}

// Returns the height of the image found at the path supplied by $image relative to your project's images directory.
@function image-height($image) {
@if image-exists($image) {
$list: map-get($compass-imagehelper-imagesmap, $image);
$height: unquote(map-get($list, 'height'));
@if ($height and str-length($height) > 0) {
@return number($height) * 1px;
}
}
@warn "Image '#{$image}' not found.";
@return null;
}

// Generates a path to an asset found relative to the project's images directory.
// Passing a true value as the second argument will cause only the path to be returned instead of a url() function
// The third argument is used to control the cache buster on a per-use basis. When set to false no cache buster will be used.
// When true a md5-hash of the file is appended to the url. When a string, that value will be used as the cache buster.
@function image-url($image, $only-path: false, $cache-buster: false) {
$result: $compass-imagehelper-path-prefix + $image;


@if (type-of($cache-buster) == string) {
$result: $result + '?' + $cache-buster;
}

@if ($cache-buster == true) {
$list: map-get($compass-imagehelper-imagesmap, $image);
$hash: map-get($list, 'hash');
$result: $result + '?' + $hash;
}


$result: quote($result);

@if ($only-path == false) {
$result: url($result);
}

@return $result;
}

// Two helper functions for casting string to number by Hugo Giraudel
// http://hugogiraudel.com/2014/01/15/sass-string-to-number/
// http://sassmeister.com/gist/9647408
@function _length($number, $unit) {
$strings: 'px' 'cm' 'mm' '%' 'ch' 'pica' 'in' 'em' 'rem' 'pt' 'pc' 'ex' 'vw' 'vh' 'vmin' 'vmax';
$units: 1px 1cm 1mm 1% 1ch 1 pica 1in 1em 1rem 1pt 1pc 1ex 1vw 1vh 1vmin 1vmax;
$index: index($strings, $unit);

@if not ($index) {
@warn "Unknown unit `#{$unit}`.";
@return false;
}

@return $number * nth($units, $index);
}

@function number($string) {
// Matrices
$strings: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
$numbers: 0 1 2 3 4 5 6 7 8 9;

// Result
$result: 0;
$divider: 0;
$minus: false;

// Looping through all characters
@for $i from 1 through str-length($string) {
$character: str-slice($string, $i, $i);
$index: index($strings, $character);

@if $character == '-' {
$minus: true;
} @else if $character == '.' {
$divider: 1;
} @else {
@if not ($index) {
$result: if($minus, $result * -1, $result);
@return _length($result, str-slice($string, $i));
}

$number: nth($numbers, $index);

@if $divider == 0 {
$result: $result * 10;
} @else {
// Move the decimal dot to the left
$divider: $divider * 10;
$number: $number / $divider;
}

$result: $result + $number;
}
}

@return if($minus, $result * -1, $result);
}

$compass-imagehelper-path-prefix: 'static/img/';

$compass-imagehelper-imagesmap: (
);

15 changes: 15 additions & 0 deletions static/hornet-themes-intranet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# hornet-themes-intranet 5.3.0

- 8ccb34e EVOL - [s362] - AutocompleteMultiple : mise en place du composant Chips
- e110931 FIX - [m73198] - Correction du style des titres de messages d'erreur lors des validations
- adc1df8 FIX - AutocompleteMultiple : Ajout des borders sur le dropdown des items
- df0f817 FIX - AutocompleteMultiple : Suppression de la border top sur le dropdown des items
- 0d9fb6b FIX - AutocompleteMultiple : Ajout du comportement focus sur le multifield container
- ef9cdd3 FIX - [t1192] - corrections style diverses
- 948772b FIX - AutocompleteMultiple : Ajout de la position absolute sur le dropdown des items
- 041b201 EVOL - [S249] - Switch : Relecture du style du composant switch
- 4877110 EVOL - [s249] - Switch : Mise à jour du style du composant switch
- 30f2e12 FIX - [s422] - Accessibilite - upload file field
- 8a4af4a FIX - [s426] - Accessibilite: message alert ligne selectionnée ou déselectionnée dans le table
- 2a1d13c PROJ - AutocompleteMultiple : Adaptation css input multifield

# hornet-themes-intranet 5.2.4

- 07fe877 FIX - label tab long : la croix de suppression passe au dessus
Expand Down
4 changes: 2 additions & 2 deletions static/hornet-themes-intranet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ hb package

Le livrable est disponible dans le répertoire :

`target\hornet-themes-5.2.X.zip`
`target\hornet-themes-5.3.X.zip`

## Intégration dans une application Hornet.js

Expand Down Expand Up @@ -78,7 +78,7 @@ L'arborescence obtenue doit ressembler à ceci :
```
[DocumentRoot ou Alias]
/hornet
/5.2.X
/5.3.X
/theme_name
```

Expand Down
2 changes: 1 addition & 1 deletion static/hornet-themes-intranet/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
* hornet-themes-intranet - Thème Hornet.js
*
* @author MEAE - Ministère de l'Europe et des Affaires étrangères
* @version v5.2.4
* @version v5.3.0
* @link git+https://github.com/diplomatiegouvfr/hornet-themes-intranet.git
* @license CECILL-2.1
*/
Expand Down
2 changes: 1 addition & 1 deletion static/hornet-themes-intranet/css/theme-min.css

Large diffs are not rendered by default.

Loading

0 comments on commit ffc74dd

Please sign in to comment.