These files should not be added
This commit is contained in:
985
build/javascript/node_modules/autoprefixer/CHANGELOG.md
generated
vendored
985
build/javascript/node_modules/autoprefixer/CHANGELOG.md
generated
vendored
@@ -1,985 +0,0 @@
|
||||
# Change Log
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## 9.8.6
|
||||
* Fixed `env` option.
|
||||
|
||||
## 9.8.5
|
||||
* Improved Grid Layout warnings (by Daniel Tonon).
|
||||
* Fixed `align-self` and `justify-self` with `display: flex` (by Daniel Tonon).
|
||||
|
||||
## 9.8.4
|
||||
* Replace color output library.
|
||||
|
||||
## 9.8.3
|
||||
* Return old non-LTS Node.js versions to avoid breaking changes.
|
||||
|
||||
## 9.8.2
|
||||
* Remove Node.js 13.0-13.7 from supported engines, because of buggy ESM support.
|
||||
|
||||
## 9.8.1
|
||||
* Replace `chalk` to `kleur` (by Luke Edwards).
|
||||
* Update docs (by @mbomb007).
|
||||
|
||||
## 9.8 “Vigilo Confido”
|
||||
* Add `:placeholder-shown` support (by Tanguy Krotoff).
|
||||
|
||||
## 9.7.6
|
||||
* Revert `-webkit-stretch` fix.
|
||||
|
||||
## 9.7.5
|
||||
* Fix `-webkit-stretch` support.
|
||||
|
||||
## 9.7.4
|
||||
* Fix warning text (by Dmitry Ishkov).
|
||||
|
||||
## 9.7.3
|
||||
* Fix compatibility with PostCSS Modules.
|
||||
|
||||
## 9.7.2
|
||||
* Add `-ms-user-select: element` support.
|
||||
* Add funding link for `npm fund`.
|
||||
|
||||
## 9.7.1
|
||||
* Avoid unnecessary transitions in prefixed selectors (by Andrey Alexandrov).
|
||||
* Fix `fit-content` for Firefox.
|
||||
|
||||
## 9.7 “Ad Victoriam”
|
||||
* Add `AUTOPREFIXER_GRID` env variable to enable Grid Layout polyfill for IE.
|
||||
* Fix `Cannot read property 'grid' of undefined` error.
|
||||
|
||||
## 9.6.5
|
||||
* Fix selector prefixing (by Andrey Alexandrov).
|
||||
|
||||
## 9.6.4
|
||||
* Now the real fix for `'startsWith' of undefined` error.
|
||||
|
||||
## 9.6.3
|
||||
* Fix `Cannot read property 'startsWith' of undefined` error.
|
||||
|
||||
## 9.6.2
|
||||
* Fix false `Replace fill to stretch` warning.
|
||||
|
||||
## 9.6.1
|
||||
* Fix `-webkit-line-clamp` truncating multi-line text support.
|
||||
|
||||
## 9.6 “Nunc id vides, nunc ne vides”
|
||||
* Show warning about Browserslist config on `browser` option.
|
||||
* Add warning-less `overrideBrowserslist` option.
|
||||
* Add `text-orientation` support.
|
||||
* Add `min-resolution: 2x` alias support.
|
||||
* Add `.github/CONTRIBUTING.md` (by Juan Martin Marco).
|
||||
|
||||
## 9.5.1
|
||||
* Fix `backdrop-filter` for Edge (by Oleh Aloshkin).
|
||||
* Fix `min-resolution` media query support in Firefox < 16.
|
||||
|
||||
## 9.5 “Draco dormiens nunquam titillandus”
|
||||
* Add `mask-composite` support (by Semen Levenson).
|
||||
|
||||
## 9.4.10
|
||||
* Add warning for named Grid rows.
|
||||
|
||||
## 9.4.9
|
||||
* Fix `grid-template` and `@media` case (by Bogdan Dolin).
|
||||
|
||||
## 9.4.8
|
||||
* Fix `calc()` support in Grid gap.
|
||||
|
||||
## 9.4.7
|
||||
* Fix infinite loop on mismatched parens.
|
||||
|
||||
## 9.4.6
|
||||
* Fix warning text (by Albert Juhé Lluveras).
|
||||
|
||||
## 9.4.5
|
||||
* Fix `text-decoration-skip-ink` support.
|
||||
|
||||
## 9.4.4
|
||||
* Use `direction` value for `-ms-writing-mode` (by Denys Kniazevych).
|
||||
* Fix warning text (by @zzzzBov).
|
||||
|
||||
## 9.4.3
|
||||
* Add warning to force `flex-start` instead of `start` (by Antoine du Hamel).
|
||||
* Fix docs (by Christian Oliff).
|
||||
|
||||
## 9.4.2
|
||||
* Fix Grid autoplacement warning.
|
||||
|
||||
## 9.4.1
|
||||
* Fix unnecessary Flexbox prefixes in Grid elements.
|
||||
|
||||
## 9.4 “Advance Australia”
|
||||
* Add Grid autoplacement for `-ms-` (by Bogdan Dolin).
|
||||
* Improve docs and warnings (by Daniel Tonon).
|
||||
* Remove some unnecessary warnings for Grid (by Andrey Alexandrov).
|
||||
|
||||
## 9.3.1
|
||||
* Fix Grid prefixes with `repeat()` value (by Bogdan Dolin).
|
||||
|
||||
## 9.3 “Labor omnia vincit”
|
||||
* Add `place-self` support (by Bogdan Dolin).
|
||||
* Fix Grid row/column span inheritance bug (by Bogdan Dolin).
|
||||
|
||||
## 9.2.1
|
||||
* Fix broken AST.
|
||||
|
||||
## 9.2 “Onyi est glavnaya krepost”
|
||||
* Add `/* autoprefixer grid: on */` control comment (by Andrey Alexandrov).
|
||||
* Add duplicate `grid-area` support (by Bogdan Dolin).
|
||||
* Fix `grid-gap` support for rules with different specifity (by Bogdan Dolin).
|
||||
* Disable Grid in `@supports` at-rule with non-supported Grid features.
|
||||
* Improve Grid warnings (by Daniel Tonon).
|
||||
* Improve docs (by Joshua Hall, Mat Gadd, Roy Revelt, and Ivan).
|
||||
|
||||
## 9.1.5
|
||||
* Remove `@babel/register` from dependencies.
|
||||
|
||||
## 9.1.4
|
||||
* Use Babel 7.
|
||||
|
||||
## 9.1.3
|
||||
* Sort properties in `autoprefixer --info` alphabetically.
|
||||
* Fix old Firefox gradient prefix.
|
||||
|
||||
## 9.1.2
|
||||
* Fix `autoprefixer --info` in new Node.js.
|
||||
|
||||
## 9.1.1
|
||||
* Retain `grid-gap` through `@media` (by Bogdan Dolin).
|
||||
* Fix `grid-template` and `@media` (by Bogdan Dolin).
|
||||
* Fix Grid areas searching error (by Bogdan Dolin).
|
||||
* Fix `span X` Grid prefix (by Bogdan Dolin).
|
||||
* Fix docs (by Eduard Kyvenko).
|
||||
|
||||
## 9.1 “Equality before the law”
|
||||
* Add `background-clip: text` support.
|
||||
* Fix adding Grid span for IE (by Bogdan Dolin).
|
||||
|
||||
## 9.0.2
|
||||
* Show warning on Grid area names conflict (by Bogdan Dolin).
|
||||
* Fix documentation (by Sven Wagner).
|
||||
|
||||
## 9.0.1
|
||||
* Fix nested at-rules in Grid prefixes (by Ivan Malov).
|
||||
|
||||
## 9.0 “A Mari Usque Ad Mare”
|
||||
* Remove Node.js 9 and Node.js 4 support.
|
||||
* Remove IE and “dead” browsers from Babel.
|
||||
* Use PostCSS 7.0.
|
||||
* Use Browserslist 4.0.
|
||||
|
||||
## 8.6.5
|
||||
* Do not show Grid warnings if IE was not selected.
|
||||
|
||||
## 8.6.4
|
||||
* Fix `stretch` prefix in Chrome >= 46.
|
||||
|
||||
## 8.6.3
|
||||
* Add warnings for unsupported Grid features.
|
||||
* Add warnings about wrong Grid properties.
|
||||
* Add note about `grid` option for grid properties in `autoprefixer --info`.
|
||||
|
||||
## 8.6.2
|
||||
* Fix error during adding Grid prefixes in `@media` (by Evgeny Petukhov).
|
||||
|
||||
## 8.6.1
|
||||
* Fix `grid-template` with media queries (by Evgeny Petukhov).
|
||||
|
||||
## 8.6 “Follow Reason”
|
||||
* Add `gap` support (by Evgeny Petukhov).
|
||||
* Add two values support for `grid-gap` and `gap` (by Evgeny Petukhov).
|
||||
* Add `ignoreUnknownVersions` option for Browserslist.
|
||||
|
||||
## 8.5.2
|
||||
* Fix `grid-template` support wit auto row sizes (by Yury Timofeev).
|
||||
|
||||
## 8.5.1
|
||||
* Remove unnecessary warning on `-webkit-fill-available`.
|
||||
|
||||
## 8.5 “Muito Nobre e Sempre Leal”
|
||||
* Add `grid-gap` support (by Evgeny Petukhov).
|
||||
* Fix radial gradients direction fix.
|
||||
* Fix docs (by Phani Kandula and Huáng Jùnliàng).
|
||||
|
||||
## 8.4.1
|
||||
* Fix working in old PostCSS versions (by Diablohu).
|
||||
|
||||
## 8.4 “Non in aves, sed in angues”
|
||||
* Add `/* autoprefixer: ignore next */` control comment (by Pavel Vostrikov).
|
||||
|
||||
## 8.3 “Benigno Numine”
|
||||
* Add `@media` support to `grid-template` (by Evgeny Petukhov).
|
||||
* Fix `radial-gradient` direction warning (by Gustavo Real).
|
||||
|
||||
## 8.2 “Ad Astra per Aspera”
|
||||
* Add `color-adjust` (by Sergey Lysenko, Stanislav Botev, and Yuriy Alekseyev).
|
||||
|
||||
## 8.1 “Rex, Familia et Ultio”
|
||||
* Add `overscroll-behavior` support.
|
||||
* Add `grid-template` shortcut support (by Evgeny Petukhov).
|
||||
* Add better `grid-column-end` and `grid-row-end` support (by Evgeny Petukhov).
|
||||
* Fix Grid properties support in `@supports`.
|
||||
|
||||
## 8.0 “Excelsior”
|
||||
* Use Browserslist 3.0.
|
||||
* Rename `autoprefixer-info` CLI tool to `autoprefixer --info`.
|
||||
* Remove `break-*` to `page-break-*` conversion for Firefox.
|
||||
|
||||
## 7.2.6
|
||||
* Fix `-ms-` prefix for grid cells with same `grid-area` (by Evgeny Petukhov).
|
||||
|
||||
## 7.2.5
|
||||
* Fix multiple prefixes in declaration value.
|
||||
|
||||
## 7.2.4
|
||||
* Fix IE 10 support.
|
||||
|
||||
## 7.2.3
|
||||
* Fix `grid-template-areas` in `@media` (by Evgeny Petukhov).
|
||||
|
||||
## 7.2.2
|
||||
* Fix `_autoprefixerDisabled is undefined` issue.
|
||||
|
||||
## 7.2.1
|
||||
* Fix IE and other old JS runtimes support.
|
||||
|
||||
## 7.2 “Ordem e Progresso”
|
||||
* Add `grid-template-areas` support (by Evgeny Petukhov).
|
||||
* Add `grid-template` support (by Evgeny Petukhov).
|
||||
* Add `grid-area` support (by Alexey Komarov).
|
||||
* Add `autoprefixer-info` CLI tool.
|
||||
* Add wrong `radial-gradient` properties warning.
|
||||
* Use current working dir on missed `from` in `info()` (by Phil Dokas).
|
||||
* Fix `grid-row` and `grid-column` support (by Alexey Komarov).
|
||||
* Do not prefix `reverse` animation direction.
|
||||
* Improve test coverage (by Dmitry Semigradsky).
|
||||
|
||||
## 7.1.6
|
||||
* Add warning for using `browserslist` option instead of `browsers`.
|
||||
* Add warning for multiple control comments in the same scope.
|
||||
* Fix `Invalid array length` error during indent changes.
|
||||
|
||||
## 7.1.5
|
||||
* Fix `::placeholder` prefix for Edge.
|
||||
* Fix `inherit`/`initial`/`unset` values for `flex-direction`.
|
||||
* Fix RegExp usage in gradients (by Yet Another Minion).
|
||||
|
||||
## 7.1.4
|
||||
* Fix `radial-gradient` direction conversion.
|
||||
* Fix `image-set` in `cursor`.
|
||||
|
||||
## 7.1.3
|
||||
* Add warning for old `radial-gradient` direction syntax.
|
||||
|
||||
## 7.1.2
|
||||
* Fix `text-decoration` shortcut support.
|
||||
|
||||
## 7.1.1
|
||||
* Remove non-`-webkit-` intrinsic prefixes in Grid Layout (by 一丝).
|
||||
|
||||
## 7.1 “Universitas litterarum”
|
||||
* Add `unicode-bidi` support.
|
||||
* Add `-webkit-appearance` support for Edge.
|
||||
* Add `from` option to `info()`.
|
||||
* Fix intrinsic widths prefixes in Grid Layout.
|
||||
|
||||
## 7.0.1
|
||||
* Fix Autoprefixer for old JS runtimes.
|
||||
|
||||
## 7.0 “Coelestem adspicit lucem”
|
||||
* Remove node.js 0.12 support.
|
||||
* Use PostCSS 6.0.
|
||||
* Use Browserslist 2.
|
||||
* Use `caniuse-lite` instead of `caniuse-db` (by Ben Briggs).
|
||||
* Use `^` for Browserslist dependencies, instead of `~`.
|
||||
* Rewrite project from CoffeeScript to Babel (by Dmitry Semigradsky).
|
||||
* Disable Grid Layout prefixes for IE by default.
|
||||
* Fix `-ms-grid-column-align`.
|
||||
* Move tests to Jest.
|
||||
|
||||
## 6.7.7
|
||||
* Fix `order` for non-digit values.
|
||||
|
||||
## 6.7.6
|
||||
* Fix `font-kerning` (by Chi Vinh Le).
|
||||
|
||||
## 6.7.5
|
||||
* Fix `text-decoration-skip` in iOS (by Chi Vinh Le).
|
||||
* Fix `clip-path` (by Chi Vinh Le).
|
||||
|
||||
## 6.7.4
|
||||
* Improve `browsers` option perfomance.
|
||||
* Update CoffeeScript compiler.
|
||||
|
||||
## 6.7.3
|
||||
* Fix compatibility with “Intrinsic & Extrinsic Sizing” spec update.
|
||||
|
||||
## 6.7.2
|
||||
* Do not prefix grid/flexbox in `@supports` on `grid: false`/`flexbox: false`.
|
||||
|
||||
## 6.7.1
|
||||
* Update Browserslist with `last n version` fix.
|
||||
|
||||
## 6.7 “Krungthep doot thep saang”
|
||||
* Add Electron support in browsers list (by Kilian Valkhof).
|
||||
* Add `flex-flow` partial support for Flexbox 2009 specification.
|
||||
* Fix browsers `0` version issue in some Can I Use data.
|
||||
|
||||
## 6.6.1
|
||||
* Add metadata to use Autoprefixer in JSS tests (by Chi Vinh Le).
|
||||
|
||||
## 6.6 “Kaiyuan”
|
||||
* Add `browserslist` key in `package.json` support.
|
||||
* Add support for separated environments in browserslist config.
|
||||
* Add `browserslist-stats.json` file support to load custom usage statistics.
|
||||
|
||||
## 6.5.4
|
||||
* Fix unitless 0 basis in IE10/IE11 shorthand flex (by Google).
|
||||
|
||||
## 6.5.3
|
||||
* Add error for popular mistake with `browser` option instead of `browsers`.
|
||||
|
||||
## 6.5.2
|
||||
* Clean prefixes data (by Reinaldo Schiehll).
|
||||
|
||||
## 6.5.1
|
||||
* Fix selectors with `:--` prefix support.
|
||||
|
||||
## 6.5 “Einigkeit und Recht und Freiheit”
|
||||
* Add `defaults` keyword to browsers requirements.
|
||||
* Fix CSS Grid Layout support.
|
||||
* Fix `align-self` cleaning.
|
||||
|
||||
## 6.4.1
|
||||
* Fix node cloning after some PostCSS plugins.
|
||||
|
||||
## 6.4 “Hic et ubique terrarum”
|
||||
* Add `:any-link` selector support.
|
||||
* Add `text-decoration-skip` support.
|
||||
* Add `transition: duration property` support.
|
||||
* Fix `-webkit-` prefix for `backface-visibility`.
|
||||
* Fix `rad` unit support in gradients (by 刘祺).
|
||||
* Fix `transition` support in Opera 12.
|
||||
* Removed Safari TP Grid prefixes support.
|
||||
|
||||
## 6.3.7
|
||||
* Fix rare `Cannot read property 'constructor' of null` issue.
|
||||
|
||||
## 6.3.6
|
||||
* Add Safari TP prefix support for Grid Layout.
|
||||
|
||||
## 6.3.5
|
||||
* Fix duplicate prefixes for `-ms-interpolation-mode`.
|
||||
|
||||
## 6.3.4
|
||||
* Show users coverage for selected browsers in `info()`.
|
||||
|
||||
## 6.3.3
|
||||
* Fix transition warning.
|
||||
|
||||
## 6.3.2
|
||||
* Fix jspm support (by Sean Anderson).
|
||||
|
||||
## 6.3.1
|
||||
* Fix compatibility with Flexibility polyfill.
|
||||
|
||||
## 6.3 “Pro rege et lege”
|
||||
* Add Grid Layout support.
|
||||
* Add `text-spacing` support.
|
||||
* Add `> 10% in my stats` browsers query with custom usage statistics.
|
||||
* Add options to disable `@supports`, Flexbox or Grid support.
|
||||
* Fix compatibility with other PostCSS plugins.
|
||||
|
||||
## 6.2.3
|
||||
* Fix error on broken transition with double comma.
|
||||
|
||||
## 6.2.2
|
||||
* Fix issues in broken transitions.
|
||||
|
||||
## 6.2.1
|
||||
* Fix AST error in transition warning (by @jvdanilo).
|
||||
|
||||
## 6.2 “Fluctuat nec mergitur”
|
||||
* Use `fill` instead of `fill-available` according spec changes (by 一丝).
|
||||
* Add `fill` support for logical dimension properties (by 一丝).
|
||||
* Add `text-emphasis` support (by 一丝).
|
||||
* Add prefixes to `@supports` only for compatible browsers.
|
||||
* Add `rad`, `grad` and `turn` units support to linear gradients.
|
||||
* Add some `deg` directions support for old WebKit linear gradients.
|
||||
* Fix `@supports` parenthesis (by @heady).
|
||||
* Add warning when prefixes could not be generated
|
||||
for complicated `transition-property` values.
|
||||
* Add warning for outdated `fill-available` value.
|
||||
* Add warning for wrong `text-emphasis-position` value.
|
||||
* Add “time capsule” warning for prefix-less future.
|
||||
* Normalizes all warning messages.
|
||||
|
||||
## 6.1.2
|
||||
* Fix gradient hack on some parameters (by Alexey Efremov).
|
||||
|
||||
## 6.1.1
|
||||
* Fix `cursor: grab` and `cursor: grabbing` support.
|
||||
|
||||
## 6.1 “Bil-shaʿb wa lil-shaʿb”
|
||||
* Change `transition` support to output more robust CSS.
|
||||
* Add `:read-only` support.
|
||||
* Add support for `appearance` with any values.
|
||||
* Add CSS-in-JS support via `postcss-js`.
|
||||
* Add loud `/*! autoprefixer: off */` control comments support.
|
||||
* Convert `rotateZ` to `rotate` for `-ms-transform`.
|
||||
* Use `postcss-value-parser` to carefully work with gradients.
|
||||
* Remove `-ms-transform-style` and `-o-transform-style` that never existed.
|
||||
|
||||
## 6.0.3
|
||||
* Fix old gradient direction warning.
|
||||
|
||||
## 6.0.2
|
||||
* Remove unnecessary `-khtml-` prefix too.
|
||||
|
||||
## 6.0.1
|
||||
* Fix `cross-fade()` support (by 一丝).
|
||||
|
||||
## 6.0 “Eureka”
|
||||
* CLI was removed from `autoprefixer` package to `autoprefixer-cli`.
|
||||
* `autoprefixer-core` and `autoprefixer` packages was merged back.
|
||||
* Remove `autoprefixer(opt).process(css)`, use `autoprefixer.process(css, opt)`.
|
||||
* Remove `safe` option. Use separated Safe parser from PostCSS.
|
||||
* Remove Opera 12.1 from default query.
|
||||
* Use PostCSS 5.0 API.
|
||||
* Add custom syntaxes support.
|
||||
* Add `image-set` support (by 一丝).
|
||||
* Add `mask-border` support (by 一丝).
|
||||
* Add `filter()` function support (by Vincent De Oliveira).
|
||||
* Add `backdrop-filter` support (by Vincent De Oliveira).
|
||||
* Add `element()` support (by Vincent De Oliveira).
|
||||
* Add CSS Regions support.
|
||||
* Add Scroll Snap Points support.
|
||||
* Add `writing-mode` support.
|
||||
* Add `::backdrop` support.
|
||||
* Add `cross-fade()` support.
|
||||
* Add other `break-` properties support.
|
||||
* Add Microsoft Edge support (by Andrey Polischuk).
|
||||
* Add `not` keyword and exclude browsers by query.
|
||||
* Add version ranges `IE 6-9` (by Ben Briggs).
|
||||
* Fix `filter` in `transition` support on Safari.
|
||||
* Fix `url()` parsing.
|
||||
* Fix `pixelated` cleaning.
|
||||
* Always show old gradient direction warning.
|
||||
|
||||
## 5.2.1
|
||||
* Fix parent-less node issue on some cases (by Josh Gillies).
|
||||
|
||||
## 5.2 “Dont tread on me”
|
||||
* Add `appearance` support.
|
||||
* Warn users on old gradient direction or flexbox syntax.
|
||||
* Add `add: false` option to disable new prefixes adding.
|
||||
* Make Autoprefixer 30% faster.
|
||||
* Use PostCSS 4.1 plugin API.
|
||||
* Add prefixes for `pixelated` instead of `crisp-edges` in `image-rendering`.
|
||||
* Do not add `::placeholder` prefixes for `:placeholder-shown`.
|
||||
* Fix `text-decoration` prefixes.
|
||||
* `autoprefixer.process()` was deprecated. Use PostCSS API.
|
||||
|
||||
## 5.1.11
|
||||
* Update `num2fraction` to fix resolution media query (by 一丝).
|
||||
|
||||
## 5.1.10
|
||||
* Do not generate `-webkit-image-rendering`.
|
||||
|
||||
## 5.1.9
|
||||
* Fix DynJS compatibility (by Nick Howes).
|
||||
|
||||
## 5.1.8
|
||||
* Fix gradients in `mask` and `mask-image` properties.
|
||||
* Fix old webkit prefix on some unsupported gradients.
|
||||
|
||||
## 5.1.7
|
||||
* Fix placeholder selector (by Vincent De Oliveira).
|
||||
|
||||
## 5.1.6
|
||||
* Use official `::placeholder-shown` selector (by Vincent De Oliveira).
|
||||
|
||||
## 5.1.5
|
||||
* Add transition support for CSS Masks properties.
|
||||
|
||||
## 5.1.4
|
||||
* Use `-webkit-` prefix for Opera Mobile 24.
|
||||
|
||||
## 5.1.3
|
||||
* Add IE support for `image-rendering: crisp-edges`.
|
||||
|
||||
## 5.1.2
|
||||
* Add never existed `@-ms-keyframes` to common mistake.
|
||||
|
||||
## 5.1.1
|
||||
* Safer value split in `flex` hack.
|
||||
|
||||
## 5.1 “Jianyuan”
|
||||
* Add support for resolution media query (by 一丝).
|
||||
* Higher accuracy while removing prefixes in values.
|
||||
* Add support for logical properties (by 一丝).
|
||||
* Add `@viewport` support.
|
||||
* Add `text-overflow` support (by 一丝).
|
||||
* Add `text-emphasis` support (by 一丝).
|
||||
* Add `image-rendering: crisp-edges` support.
|
||||
* Add `text-align-last` support.
|
||||
* Return `autoprefixer.defaults` as alias to current `browserslist.defaults`.
|
||||
* Save code style while adding prefixes to `@keyframes` and `@viewport`.
|
||||
* Do not remove `-webkit-background-clip` with non-spec `text` value.
|
||||
* Fix `-webkit-filter` in `transition`.
|
||||
* Better support for browser versions joined on Can I Use
|
||||
like `ios_saf 7.0-7.1` (by Vincent De Oliveira).
|
||||
* Fix compatibility with `postcss-import` (by Jason Kuhrt).
|
||||
* Fix Flexbox prefixes for BlackBerry and UC Browser.
|
||||
* Fix gradient prefixes for old Chrome.
|
||||
|
||||
## 5.0 “Pravda vítězí”
|
||||
* Use PostCSS 4.0.
|
||||
* Use Browserslist to parse browsers queries.
|
||||
* Use global `browserslist` config.
|
||||
* Add `> 5% in US` query to select browsers by usage in some country.
|
||||
* Add `object-fit` and `object-position` properties support.
|
||||
* Add CSS Shape properties support.
|
||||
* Fix UC Browser name in debug info.
|
||||
* Remove `autoprefixer.defaults` and use defaults from Browserslist.
|
||||
|
||||
## 4.0.2
|
||||
* Remove `o-border-radius`, which is common mistake in legacy CSS.
|
||||
|
||||
## 4.0.1
|
||||
* Fix `@supports` support with brackets in values (by Vincent De Oliveira).
|
||||
|
||||
## 4.0 “Indivisibiliter ac Inseparabiliter”
|
||||
* Become 2.5 times fatser by new PostCSS 3.0 parser.
|
||||
* Do not remove outdated prefixes by `remove: false` option.
|
||||
* `map.inline` and `map.sourcesContent` options are now `true` by default.
|
||||
* Add `box-decoration-break` support.
|
||||
* Do not add old `-webkit-` prefix for gradients with `px` units.
|
||||
* Use previous source map to show origin source of CSS syntax error.
|
||||
* Use `from` option from previous source map `file` field.
|
||||
* Set `to` value to `from` if `to` option is missing.
|
||||
* Trim Unicode BOM on source maps parsing.
|
||||
* Parse at-rules without spaces like `@import"file"`.
|
||||
* Better previous `sourceMappingURL` annotation comment cleaning.
|
||||
* Do not remove previous `sourceMappingURL` comment on `map.annotation: false`.
|
||||
|
||||
## 3.1.2
|
||||
* Update Firefox ESR version from 24 to 31.
|
||||
|
||||
## 3.1.1
|
||||
* Use Flexbox 2009 spec for Android stock browser < 4.4.
|
||||
|
||||
## 3.1 “Satyameva Jayate”
|
||||
* Do not remove comments from prefixed values (by Eitan Rousso).
|
||||
* Allow Safari 6.1 to use final Flexbox spec (by John Kreitlow).
|
||||
* Fix `filter` value in `transition` in Webkits.
|
||||
* Show greetings if your browsers don’t require any prefixes.
|
||||
* Add `<=` and `<` browsers requirement (by Andreas Lind).
|
||||
|
||||
## 3.0.1
|
||||
* Fix `autoprefixer.postcss` in callbacks.
|
||||
|
||||
## 3.0 “Liberté, Égalité, Fraternité”
|
||||
* Project was split to autoprefixer (with CLI) and autoprefixer-core.
|
||||
* `autoprefixer()` now receives only `options` object with `browsers` key.
|
||||
* GNU format for syntax error messages from PostCSS 2.2.
|
||||
|
||||
## 2.2 “Mobilis in mobili”
|
||||
* Allow to disable Autoprefixer for some rule by control comment.
|
||||
* Use PostCSS 2.1 with Safe Mode option and broken source line
|
||||
in CSS syntax error messages.
|
||||
|
||||
## 2.1.1
|
||||
* Fix `-webkit-background-size` hack for `contain` and `cover` values.
|
||||
* Don’t add `-webkit-` prefix to `filter` with SVG (by Vincent De Oliveira).
|
||||
|
||||
## 2.1 “Eleftheria i thanatos”
|
||||
* Add support for `clip-path` and `mask` properties.
|
||||
* Return `-webkit-` prefix to `filter` with SVG URI.
|
||||
|
||||
## 2.0.2
|
||||
* Add readable names for new browsers from 2.0 release.
|
||||
* Don’t add `-webkit-` prefix to `filter` with SVG URI.
|
||||
* Don’t add `-o-` prefix 3D transforms.
|
||||
|
||||
## 2.0.1
|
||||
* Save declaration style, when clone declaration to prefix.
|
||||
|
||||
## 2.0 “Hongik Ingan”
|
||||
* Based on PostCSS 1.0.
|
||||
See [options changes](https://github.com/postcss/postcss/releases/tag/1.0.0).
|
||||
* Restore visual cascade after declaration removing.
|
||||
* Enable visual cascade by default.
|
||||
* Prefix declareation in `@supports` at-rule conditions.
|
||||
* Add all browsers from Can I Use: `ie_mob`, `and_chr`, `and_ff`,
|
||||
`op_mob` and `op_mini`.
|
||||
* Allow to use latest Autoprefixer from GitHub by npm.
|
||||
* Add `--no-cascade`, `--annotation` and `--sources-content` options to binary.
|
||||
|
||||
## 1.3.1
|
||||
* Fix gradient hack, when `background` property contains color.
|
||||
|
||||
## 1.3 “Tenka Fubu”
|
||||
* Add `text-size-adjust` support.
|
||||
* Add `background-size` to support Android 2.
|
||||
|
||||
## 1.2 “Meiji”
|
||||
* Use Can I Use data from official `caniuse-db` npm package.
|
||||
* Remove package data update from binary.
|
||||
* Use increment value instead of current date in minor versions.
|
||||
|
||||
## 1.1 “Nutrisco et extingo”
|
||||
* Add source map annotation comment support.
|
||||
* Add inline source map support.
|
||||
* Autodetect previous source map.
|
||||
* Fix source maps support on Windows.
|
||||
* Fix source maps support in subdirectory.
|
||||
* Prefix selector even if it is already prefixed by developer.
|
||||
* Add option `cascade` to create nice visual cascade of prefixes.
|
||||
* Fix flexbox support for IE 10 (by Roland Warmerdam).
|
||||
* Better `break-inside` support.
|
||||
* Fix prefixing, when two same properties are near.
|
||||
|
||||
### 20140222
|
||||
* Add `touch-action` support.
|
||||
|
||||
### 20140226
|
||||
* Chrome 33 is moved to released versions.
|
||||
* Add Chrome 36 data.
|
||||
|
||||
### 20140302
|
||||
* Add `text-decoration-*` properties support.
|
||||
* Update browsers usage statistics.
|
||||
* Use new PostCSS version.
|
||||
|
||||
### 20140319
|
||||
* Check already prefixed properties after current declaration.
|
||||
* Normalize spaces before already prefixed check.
|
||||
* Firefox 28 is moved to released versions.
|
||||
* Add Firefox 31 data.
|
||||
* Add some Blackberry data.
|
||||
|
||||
### 20140327
|
||||
* Don’t use `-ms-transform` in `@keyframes`, because IE 9 doesn’t support
|
||||
animations.
|
||||
* Update BlackBerry 10 data.
|
||||
|
||||
### 20140403
|
||||
* Update browsers usage statistics.
|
||||
* Opera 20 is moved to released versions.
|
||||
* Add Opera 22 data.
|
||||
|
||||
### 20140410
|
||||
* Chrome 34 is moved to released versions.
|
||||
* Add Chrome 37 data.
|
||||
* Fix Chrome 36 data.
|
||||
|
||||
### 20140429
|
||||
* Fix `display: inline-flex` support by 2009 spec.
|
||||
* Fix old WebKit gradient converter (by Sergey Belov).
|
||||
* Fix CSS 3 cursors data (by Nick Schonning).
|
||||
|
||||
### 20140430
|
||||
* Separate 2D and 3D transform prefixes to clean unnecessary `-ms-` prefixes.
|
||||
* Firefox 29 is moved to released versions.
|
||||
* Add Firefox 32 data.
|
||||
|
||||
### 20140510
|
||||
* Do not add `-ms-` prefix for `transform` with 3D functions.
|
||||
* Update browsers global usage statistics.
|
||||
|
||||
### 20140512
|
||||
* Remove unnecessary `-moz-` prefix for `wavy` in `text-decoration`.
|
||||
* Update Safari data for font properties.
|
||||
|
||||
### 20140521
|
||||
* Chrome 36 is moved to released versions.
|
||||
* Add Chrome 38 data.
|
||||
|
||||
### 20140523
|
||||
* Opera 21 is moved to released versions.
|
||||
* Add Opera 23 data.
|
||||
|
||||
### 20140605
|
||||
* Allow to parse gradients without space between color and position.
|
||||
* Add iOS 8, Safari 8 and Android 4.4.3 data.
|
||||
* Update browsers usage statistics.
|
||||
|
||||
## 1.0 “Plus ultra”
|
||||
* Source map support.
|
||||
* Save origin indents and code formatting.
|
||||
* Change CSS parser to PostCSS.
|
||||
* Preserve vendor-prefixed properties put right after unprefixed ones.
|
||||
* Rename `compile()` to `process()` and return result object,
|
||||
instead of CSS string.
|
||||
* Rename `inspect()` to `info()`.
|
||||
* Add in binary `-d` option to specify output directory.
|
||||
* Binary now will not concat output files.
|
||||
* Allow to select last versions for specified browser.
|
||||
* Add full browser names aliases: `firefox`, `explorer` and `blackberry`.
|
||||
* Ignore case in browser names.
|
||||
* Change license to MIT.
|
||||
* Add prefixes inside custom at-rules.
|
||||
* Add only necessary prefixes to selector inside prefixed at-rule.
|
||||
* Safer backgrounds list parser in gradient hack.
|
||||
* Prefix `@keyframes` inside `@media`.
|
||||
* Don’t prefix values for CSS3 PIE properties.
|
||||
* Binary now shows file name in syntax error.
|
||||
* Use browserify to build standalone version.
|
||||
|
||||
### 20131225
|
||||
* Fix deprecated API convertor.
|
||||
* Add `::placeholder` support for Firefix >= 18.
|
||||
* Fix vendor prefixes order.
|
||||
|
||||
### 20140103
|
||||
* Add `-webkit-` prefix for `sticky` position.
|
||||
* Update browsers popularity statistics.
|
||||
|
||||
### 20140109
|
||||
* Add selectors and at-rules sections to debug info.
|
||||
* Fix outdated prefixes cleaning.
|
||||
|
||||
### 20140110
|
||||
* Add `Firefox ESR` browser requirement.
|
||||
* Opera 18 is moved to released versions.
|
||||
* Add Opera 20 data.
|
||||
|
||||
### 20140117
|
||||
* Chrome 32 is moved to released versions.
|
||||
* Add Opera 34 data.
|
||||
|
||||
### 20140130
|
||||
* Fix flexbox properties names in transitions.
|
||||
* Add Chrome 35 and Firefox 29 data.
|
||||
|
||||
### 20140203
|
||||
* Android 4.4 stock browser and Opera 19 are moved to released versions.
|
||||
* Add Opera 21 data.
|
||||
* Update browsers usage statistics.
|
||||
|
||||
### 20140213
|
||||
* Add case insensitive to IE’s filter hack (by Dominik Schilling).
|
||||
* Improve selector prefixing in some rare cases (by Simon Lydell).
|
||||
* Firefox 27 is moved to released versions.
|
||||
* Add Firefox 30 data.
|
||||
|
||||
## 0.8 “Unbowed, Unbent, Unbroken”
|
||||
* Add more browsers to defaults ("> 1%, last 2 versions, ff 17, opera 12.1"
|
||||
instead of just "last 2 browsers").
|
||||
* Keep vendor prefixes without unprefixed version (like vendor-specific hacks).
|
||||
* Convert gradients to old WebKit syntax (actual for Android 2.3).
|
||||
* Better support for several syntaxes with one prefix (like Flexbox and
|
||||
gradients in WebKit).
|
||||
* Add intrinsic and extrinsic sizing values support.
|
||||
* Remove never existed prefixes from common mistakes (like -ms-transition).
|
||||
* Add Opera 17 data.
|
||||
* Fix selector prefixes order.
|
||||
* Fix browser versions order in inspect.
|
||||
|
||||
### 20130903
|
||||
* Fix old WebKit gradients convertor on rgba() colors.
|
||||
* Allow to write old direction syntax in gradients.
|
||||
|
||||
### 20130906
|
||||
* Fix direction syntax in radial gradients.
|
||||
* Don’t prefix IE filter with modern syntax.
|
||||
|
||||
### 20130911
|
||||
* Fix parsing property name with spaces.
|
||||
|
||||
### 20130919
|
||||
* Fix processing custom framework prefixes (by Johannes J. Schmidt).
|
||||
* Concat outputs if several files compiled to one output.
|
||||
* Decrease standalone build size by removing unnecessary Binary class.
|
||||
* iOS 7 is moved to released versions.
|
||||
* Clean up binary code (by Simon Lydell).
|
||||
|
||||
### 20130923
|
||||
* Firefox 24 is moved to released versions.
|
||||
|
||||
### 20131001
|
||||
* Add support for grab, grabbing, zoom-in and zoom-out cursor values.
|
||||
|
||||
### 20131006
|
||||
* Chrome 30 is moved to released versions.
|
||||
|
||||
### 20131007
|
||||
* Don’t add another prefixes in rule with prefixed selector.
|
||||
|
||||
### 20131009
|
||||
* Opera 17 is moved to released versions.
|
||||
|
||||
### 20131015
|
||||
* Fix converting multiple gradients to old webkit syntax (by Aleksei Androsov).
|
||||
|
||||
### 20131017
|
||||
* Fix @host at-rule parsing.
|
||||
|
||||
### 20131020
|
||||
* IE 11 and Andrid 4.3 is moved to released versions.
|
||||
* Add Opera 18 data.
|
||||
* Add @namespace support.
|
||||
* Sort browser versions in data file.
|
||||
|
||||
### 20131029
|
||||
* Add Safari 6.1 data.
|
||||
* Add fx alias for Firefox.
|
||||
|
||||
### 20131104
|
||||
* Update Android future version to 4.4.
|
||||
* Google Chrome 32 added to future versions list.
|
||||
* Firefox 25 now is actual version, 27 and 28 added to future versions.
|
||||
* Browsers statistics are updated.
|
||||
|
||||
### 20131205
|
||||
* Google Chrome 33 added to future releases list.
|
||||
* Google Chrome 31 moved to current releases list.
|
||||
|
||||
### 20131209
|
||||
* Use old webkit gradients for old iOS and Safari (by Chad von Nau).
|
||||
* Fix direction conversion for old webkit gradients (by Chad von Nau).
|
||||
* Update browsers popularity statistics.
|
||||
|
||||
### 20131213
|
||||
* Firefox ESR in default browsers was changed to 24 version.
|
||||
* Firefox 26 was moved to current releases list.
|
||||
* Firefox 28 was added to future releases list.
|
||||
|
||||
## 0.7 “We Do Not Sow”
|
||||
* Add vendor prefixes to selectors.
|
||||
* Add ::selection and ::placeholder selectors support.
|
||||
* Allow to load support data from Can I Use pull requests.
|
||||
* Remove deprecated API.
|
||||
|
||||
### 20130806
|
||||
* Add hyphens support.
|
||||
|
||||
### 20130807
|
||||
* Add tab-size support.
|
||||
* Add :fullscreen support.
|
||||
|
||||
### 20130808
|
||||
* Allow to select browser versions by > and >= operator.
|
||||
* Fix flex properties in transition.
|
||||
|
||||
### 20130810
|
||||
* Add Firefox 25 data.
|
||||
|
||||
### 20130824
|
||||
* Add Chrome 31 and 30 data.
|
||||
* Fix CSS comments parsing (by vladkens).
|
||||
|
||||
## 0.6 “As High As Honor”
|
||||
* New faster API, which cache preprocessed data. Old API is deprecated.
|
||||
* A lot of perfomance improvements.
|
||||
* Add Opera 15 -webkit- prefix support.
|
||||
* Update Chrome 29 and Safari 7 prefixes data.
|
||||
* Add minor browsers in popularity select.
|
||||
* Better syntax error messages.
|
||||
|
||||
### 20130721
|
||||
* Add Chrome 30 data.
|
||||
|
||||
### 20130728
|
||||
* Don’t remove non-standard -webkit-background-clip: text.
|
||||
* Don’t remove IE hack on CSS parse.
|
||||
|
||||
### 20130729
|
||||
* Add Opera 16 data.
|
||||
* Fix “Invalid range in character class” error on Firefox.
|
||||
|
||||
### 20130730
|
||||
* Fix correct clone comments inside keyframes (by Alexey Plutalov).
|
||||
* Fix angle recalculation in gradients (by Roman Komarov).
|
||||
|
||||
### 20130731
|
||||
* Add border-image support.
|
||||
|
||||
## 0.5 “Ours is the Fury”
|
||||
* Rewrite Autoprefixer to be more flexible.
|
||||
* Use css, instead of Rework, to fix CSS parsing errors faster.
|
||||
* Fix a lot of CSS parsing errors.
|
||||
|
||||
### 20130616
|
||||
* More useful message for CSS parsing errors.
|
||||
* Remove old WebKit gradient syntax.
|
||||
* Fix parsing error on comment with braces.
|
||||
|
||||
### 20130617
|
||||
* Remove old Mozilla border-radius.
|
||||
* Don’t prefix old IE filter.
|
||||
* Remove old background-clip, background-size and background-origin prefixes.
|
||||
* Speed up regexps in values.
|
||||
* Allow to hack property declarations.
|
||||
|
||||
### 20130625
|
||||
* Convert flexbox properties to 2009 and 2012 specifications.
|
||||
* Improve messages on syntax errors.
|
||||
|
||||
### 20130626
|
||||
* Add Firefox 24 data.
|
||||
* Add prefixes for font-feature-settings.
|
||||
|
||||
### 20130629
|
||||
* Fix convert flex properties to old box-flex.
|
||||
|
||||
## 0.4 “Winter Is Coming”
|
||||
* Remove outdated prefixes.
|
||||
* Add border-radius and box-shadow properties to database.
|
||||
* Change degrees in webkit gradients.
|
||||
|
||||
### 20130515
|
||||
* Add old syntax in gradient direction.
|
||||
* Add old syntax for display: flex.
|
||||
* Update browser global usage statistics.
|
||||
|
||||
### 20130521
|
||||
* Add Firefox 23 data.
|
||||
|
||||
### 20130524
|
||||
* Add Chrome 29 data.
|
||||
|
||||
### 20130528
|
||||
* Fix compatibilty with Rework from git master.
|
||||
* Add minor browsers to data, which can be selected only directly.
|
||||
|
||||
### 20130530
|
||||
* Add Opera 15 and iOS 6.1 data.
|
||||
* Fix iOS versions in properties and values data.
|
||||
|
||||
### 20130603
|
||||
* Use latest Rework 0.15 with a lot of CSS parsing fixes.
|
||||
* Update browsers usage statistics.
|
||||
|
||||
## 0.3 “Growing Strong”
|
||||
* Rename `autoprefixer.filter()` to `autoprefixer.rework()`.
|
||||
* Use own filters instead of Rework’s `prefix` and `prefixValue`.
|
||||
* Smarter value prefixer without false match “order” in “border”.
|
||||
* 40% faster.
|
||||
* Don’t add unnecessary properties instead of Rework’s `prefixValue`.
|
||||
* Don’t change properties order.
|
||||
* Sort properties and values in inspect output.
|
||||
* Add main to component config (by Jonathan Ong).
|
||||
* Fix documentation (by Sergey Leschina and Mark Vasilkov).
|
||||
|
||||
### 20130424
|
||||
* Fix value override in prefixer.
|
||||
|
||||
### 20130427
|
||||
* Prefix several same values in one property.
|
||||
* Fix Windows support in binary.
|
||||
* Improve print errors in binary.
|
||||
|
||||
### 20130502
|
||||
* Don’t add -webkit- prefix to IE filter.
|
||||
* Don’t duplicate prefixes on second run.
|
||||
|
||||
## 0.2 “Hear Me Roar!”
|
||||
* Update parse libraries.
|
||||
* Use component package manager to build standalone script.
|
||||
* Add inspect to standalone script.
|
||||
|
||||
## 0.1 “Fire and Blood”
|
||||
* Initial release.
|
||||
20
build/javascript/node_modules/autoprefixer/LICENSE
generated
vendored
20
build/javascript/node_modules/autoprefixer/LICENSE
generated
vendored
@@ -1,20 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
1119
build/javascript/node_modules/autoprefixer/README.md
generated
vendored
1119
build/javascript/node_modules/autoprefixer/README.md
generated
vendored
File diff suppressed because it is too large
Load Diff
22
build/javascript/node_modules/autoprefixer/bin/autoprefixer
generated
vendored
22
build/javascript/node_modules/autoprefixer/bin/autoprefixer
generated
vendored
@@ -1,22 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
let mode = process.argv[2]
|
||||
if (mode === '--info') {
|
||||
process.stdout.write(
|
||||
require('../')().info() + '\n')
|
||||
} else if (mode === '--version') {
|
||||
process.stdout.write(
|
||||
'autoprefixer ' + require('../package.json').version + '\n')
|
||||
} else {
|
||||
process.stdout.write(
|
||||
'autoprefix\n' +
|
||||
'\n' +
|
||||
'Options:\n' +
|
||||
' --info Show target browsers and used prefixes\n' +
|
||||
' --version Show version number\n' +
|
||||
' --help Show help\n' +
|
||||
'\n' +
|
||||
'Usage:\n' +
|
||||
' autoprefixer --info\n'
|
||||
)
|
||||
}
|
||||
62
build/javascript/node_modules/autoprefixer/lib/at-rule.js
generated
vendored
62
build/javascript/node_modules/autoprefixer/lib/at-rule.js
generated
vendored
@@ -1,62 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
var Prefixer = require('./prefixer');
|
||||
|
||||
var AtRule = /*#__PURE__*/function (_Prefixer) {
|
||||
_inheritsLoose(AtRule, _Prefixer);
|
||||
|
||||
function AtRule() {
|
||||
return _Prefixer.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AtRule.prototype;
|
||||
|
||||
/**
|
||||
* Clone and add prefixes for at-rule
|
||||
*/
|
||||
_proto.add = function add(rule, prefix) {
|
||||
var prefixed = prefix + rule.name;
|
||||
var already = rule.parent.some(function (i) {
|
||||
return i.name === prefixed && i.params === rule.params;
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var cloned = this.clone(rule, {
|
||||
name: prefixed
|
||||
});
|
||||
return rule.parent.insertBefore(rule, cloned);
|
||||
}
|
||||
/**
|
||||
* Clone node with prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(node) {
|
||||
var parent = this.parentPrefix(node);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(this.prefixes), _step; !(_step = _iterator()).done;) {
|
||||
var prefix = _step.value;
|
||||
|
||||
if (!parent || parent === prefix) {
|
||||
this.add(node, prefix);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return AtRule;
|
||||
}(Prefixer);
|
||||
|
||||
module.exports = AtRule;
|
||||
154
build/javascript/node_modules/autoprefixer/lib/autoprefixer.js
generated
vendored
154
build/javascript/node_modules/autoprefixer/lib/autoprefixer.js
generated
vendored
@@ -1,154 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var browserslist = require('browserslist');
|
||||
|
||||
var colorette = require('colorette');
|
||||
|
||||
var postcss = require('postcss');
|
||||
|
||||
var agents = require('caniuse-lite').agents;
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var Prefixes = require('./prefixes');
|
||||
|
||||
var data = require('../data/prefixes');
|
||||
|
||||
var info = require('./info');
|
||||
|
||||
var WARNING = '\n' + ' Replace Autoprefixer `browsers` option to Browserslist config.\n' + ' Use `browserslist` key in `package.json` or `.browserslistrc` file.\n' + '\n' + ' Using `browsers` option can cause errors. Browserslist config \n' + ' can be used for Babel, Autoprefixer, postcss-normalize and other tools.\n' + '\n' + ' If you really need to use option, rename it to `overrideBrowserslist`.\n' + '\n' + ' Learn more at:\n' + ' https://github.com/browserslist/browserslist#readme\n' + ' https://twitter.com/browserslist\n' + '\n';
|
||||
|
||||
function isPlainObject(obj) {
|
||||
return Object.prototype.toString.apply(obj) === '[object Object]';
|
||||
}
|
||||
|
||||
var cache = {};
|
||||
|
||||
function timeCapsule(result, prefixes) {
|
||||
if (prefixes.browsers.selected.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (prefixes.add.selectors.length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Object.keys(prefixes.add).length > 2) {
|
||||
return;
|
||||
}
|
||||
/* istanbul ignore next */
|
||||
|
||||
|
||||
result.warn('Greetings, time traveller. ' + 'We are in the golden age of prefix-less CSS, ' + 'where Autoprefixer is no longer needed for your stylesheet.');
|
||||
}
|
||||
|
||||
module.exports = postcss.plugin('autoprefixer', function () {
|
||||
for (var _len = arguments.length, reqs = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
reqs[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
var options;
|
||||
|
||||
if (reqs.length === 1 && isPlainObject(reqs[0])) {
|
||||
options = reqs[0];
|
||||
reqs = undefined;
|
||||
} else if (reqs.length === 0 || reqs.length === 1 && !reqs[0]) {
|
||||
reqs = undefined;
|
||||
} else if (reqs.length <= 2 && (Array.isArray(reqs[0]) || !reqs[0])) {
|
||||
options = reqs[1];
|
||||
reqs = reqs[0];
|
||||
} else if (typeof reqs[reqs.length - 1] === 'object') {
|
||||
options = reqs.pop();
|
||||
}
|
||||
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (options.browser) {
|
||||
throw new Error('Change `browser` option to `overrideBrowserslist` in Autoprefixer');
|
||||
} else if (options.browserslist) {
|
||||
throw new Error('Change `browserslist` option to `overrideBrowserslist` in Autoprefixer');
|
||||
}
|
||||
|
||||
if (options.overrideBrowserslist) {
|
||||
reqs = options.overrideBrowserslist;
|
||||
} else if (options.browsers) {
|
||||
if (typeof console !== 'undefined' && console.warn) {
|
||||
if (colorette.red) {
|
||||
console.warn(colorette.red(WARNING.replace(/`[^`]+`/g, function (i) {
|
||||
return colorette.yellow(i.slice(1, -1));
|
||||
})));
|
||||
} else {
|
||||
console.warn(WARNING);
|
||||
}
|
||||
}
|
||||
|
||||
reqs = options.browsers;
|
||||
}
|
||||
|
||||
var brwlstOpts = {
|
||||
ignoreUnknownVersions: options.ignoreUnknownVersions,
|
||||
stats: options.stats,
|
||||
env: options.env
|
||||
};
|
||||
|
||||
function loadPrefixes(opts) {
|
||||
var d = module.exports.data;
|
||||
var browsers = new Browsers(d.browsers, reqs, opts, brwlstOpts);
|
||||
var key = browsers.selected.join(', ') + JSON.stringify(options);
|
||||
|
||||
if (!cache[key]) {
|
||||
cache[key] = new Prefixes(d.prefixes, browsers, options);
|
||||
}
|
||||
|
||||
return cache[key];
|
||||
}
|
||||
|
||||
function plugin(css, result) {
|
||||
var prefixes = loadPrefixes({
|
||||
from: css.source && css.source.input.file,
|
||||
env: options.env
|
||||
});
|
||||
timeCapsule(result, prefixes);
|
||||
|
||||
if (options.remove !== false) {
|
||||
prefixes.processor.remove(css, result);
|
||||
}
|
||||
|
||||
if (options.add !== false) {
|
||||
prefixes.processor.add(css, result);
|
||||
}
|
||||
}
|
||||
|
||||
plugin.options = options;
|
||||
plugin.browsers = reqs;
|
||||
|
||||
plugin.info = function (opts) {
|
||||
opts = opts || {};
|
||||
opts.from = opts.from || process.cwd();
|
||||
return info(loadPrefixes(opts));
|
||||
};
|
||||
|
||||
return plugin;
|
||||
});
|
||||
/**
|
||||
* Autoprefixer data
|
||||
*/
|
||||
|
||||
module.exports.data = {
|
||||
browsers: agents,
|
||||
prefixes: data
|
||||
};
|
||||
/**
|
||||
* Autoprefixer default browsers
|
||||
*/
|
||||
|
||||
module.exports.defaults = browserslist.defaults;
|
||||
/**
|
||||
* Inspect with default Autoprefixer
|
||||
*/
|
||||
|
||||
module.exports.info = function () {
|
||||
return module.exports().info();
|
||||
};
|
||||
64
build/javascript/node_modules/autoprefixer/lib/brackets.js
generated
vendored
64
build/javascript/node_modules/autoprefixer/lib/brackets.js
generated
vendored
@@ -1,64 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function last(array) {
|
||||
return array[array.length - 1];
|
||||
}
|
||||
|
||||
var brackets = {
|
||||
/**
|
||||
* Parse string to nodes tree
|
||||
*/
|
||||
parse: function parse(str) {
|
||||
var current = [''];
|
||||
var stack = [current];
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(str), _step; !(_step = _iterator()).done;) {
|
||||
var sym = _step.value;
|
||||
|
||||
if (sym === '(') {
|
||||
current = [''];
|
||||
last(stack).push(current);
|
||||
stack.push(current);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (sym === ')') {
|
||||
stack.pop();
|
||||
current = last(stack);
|
||||
current.push('');
|
||||
continue;
|
||||
}
|
||||
|
||||
current[current.length - 1] += sym;
|
||||
}
|
||||
|
||||
return stack[0];
|
||||
},
|
||||
|
||||
/**
|
||||
* Generate output string by nodes tree
|
||||
*/
|
||||
stringify: function stringify(ast) {
|
||||
var result = '';
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(ast), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var i = _step2.value;
|
||||
|
||||
if (typeof i === 'object') {
|
||||
result += "(" + brackets.stringify(i) + ")";
|
||||
continue;
|
||||
}
|
||||
|
||||
result += i;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
||||
module.exports = brackets;
|
||||
96
build/javascript/node_modules/autoprefixer/lib/browsers.js
generated
vendored
96
build/javascript/node_modules/autoprefixer/lib/browsers.js
generated
vendored
@@ -1,96 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var browserslist = require('browserslist');
|
||||
|
||||
var agents = require('caniuse-lite').agents;
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var Browsers = /*#__PURE__*/function () {
|
||||
/**
|
||||
* Return all prefixes for default browser data
|
||||
*/
|
||||
Browsers.prefixes = function prefixes() {
|
||||
if (this.prefixesCache) {
|
||||
return this.prefixesCache;
|
||||
}
|
||||
|
||||
this.prefixesCache = [];
|
||||
|
||||
for (var name in agents) {
|
||||
this.prefixesCache.push("-" + agents[name].prefix + "-");
|
||||
}
|
||||
|
||||
this.prefixesCache = utils.uniq(this.prefixesCache).sort(function (a, b) {
|
||||
return b.length - a.length;
|
||||
});
|
||||
return this.prefixesCache;
|
||||
}
|
||||
/**
|
||||
* Check is value contain any possible prefix
|
||||
*/
|
||||
;
|
||||
|
||||
Browsers.withPrefix = function withPrefix(value) {
|
||||
if (!this.prefixesRegexp) {
|
||||
this.prefixesRegexp = new RegExp(this.prefixes().join('|'));
|
||||
}
|
||||
|
||||
return this.prefixesRegexp.test(value);
|
||||
};
|
||||
|
||||
function Browsers(data, requirements, options, browserslistOpts) {
|
||||
this.data = data;
|
||||
this.options = options || {};
|
||||
this.browserslistOpts = browserslistOpts || {};
|
||||
this.selected = this.parse(requirements);
|
||||
}
|
||||
/**
|
||||
* Return browsers selected by requirements
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Browsers.prototype;
|
||||
|
||||
_proto.parse = function parse(requirements) {
|
||||
var opts = {};
|
||||
|
||||
for (var i in this.browserslistOpts) {
|
||||
opts[i] = this.browserslistOpts[i];
|
||||
}
|
||||
|
||||
opts.path = this.options.from;
|
||||
return browserslist(requirements, opts);
|
||||
}
|
||||
/**
|
||||
* Return prefix for selected browser
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefix = function prefix(browser) {
|
||||
var _browser$split = browser.split(' '),
|
||||
name = _browser$split[0],
|
||||
version = _browser$split[1];
|
||||
|
||||
var data = this.data[name];
|
||||
var prefix = data.prefix_exceptions && data.prefix_exceptions[version];
|
||||
|
||||
if (!prefix) {
|
||||
prefix = data.prefix;
|
||||
}
|
||||
|
||||
return "-" + prefix + "-";
|
||||
}
|
||||
/**
|
||||
* Is browser is selected by requirements
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isSelected = function isSelected(browser) {
|
||||
return this.selected.includes(browser);
|
||||
};
|
||||
|
||||
return Browsers;
|
||||
}();
|
||||
|
||||
module.exports = Browsers;
|
||||
243
build/javascript/node_modules/autoprefixer/lib/declaration.js
generated
vendored
243
build/javascript/node_modules/autoprefixer/lib/declaration.js
generated
vendored
@@ -1,243 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
var Prefixer = require('./prefixer');
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var Declaration = /*#__PURE__*/function (_Prefixer) {
|
||||
_inheritsLoose(Declaration, _Prefixer);
|
||||
|
||||
function Declaration() {
|
||||
return _Prefixer.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Declaration.prototype;
|
||||
|
||||
/**
|
||||
* Always true, because we already get prefixer by property name
|
||||
*/
|
||||
_proto.check = function check()
|
||||
/* decl */
|
||||
{
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Return prefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + prop;
|
||||
}
|
||||
/**
|
||||
* Return unprefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop;
|
||||
}
|
||||
/**
|
||||
* Check `value`, that it contain other prefixes, rather than `prefix`
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.otherPrefixes = function otherPrefixes(value, prefix) {
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(Browsers.prefixes()), _step; !(_step = _iterator()).done;) {
|
||||
var other = _step.value;
|
||||
|
||||
if (other === prefix) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (value.includes(other)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Set prefix to declaration
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
decl.prop = this.prefixed(decl.prop, prefix);
|
||||
return decl;
|
||||
}
|
||||
/**
|
||||
* Should we use visual cascade for prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.needCascade = function needCascade(decl) {
|
||||
if (!decl._autoprefixerCascade) {
|
||||
decl._autoprefixerCascade = this.all.options.cascade !== false && decl.raw('before').includes('\n');
|
||||
}
|
||||
|
||||
return decl._autoprefixerCascade;
|
||||
}
|
||||
/**
|
||||
* Return maximum length of possible prefixed property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.maxPrefixed = function maxPrefixed(prefixes, decl) {
|
||||
if (decl._autoprefixerMax) {
|
||||
return decl._autoprefixerMax;
|
||||
}
|
||||
|
||||
var max = 0;
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var prefix = _step2.value;
|
||||
prefix = utils.removeNote(prefix);
|
||||
|
||||
if (prefix.length > max) {
|
||||
max = prefix.length;
|
||||
}
|
||||
}
|
||||
|
||||
decl._autoprefixerMax = max;
|
||||
return decl._autoprefixerMax;
|
||||
}
|
||||
/**
|
||||
* Calculate indentation to create visual cascade
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.calcBefore = function calcBefore(prefixes, decl, prefix) {
|
||||
if (prefix === void 0) {
|
||||
prefix = '';
|
||||
}
|
||||
|
||||
var max = this.maxPrefixed(prefixes, decl);
|
||||
var diff = max - utils.removeNote(prefix).length;
|
||||
var before = decl.raw('before');
|
||||
|
||||
if (diff > 0) {
|
||||
before += Array(diff).fill(' ').join('');
|
||||
}
|
||||
|
||||
return before;
|
||||
}
|
||||
/**
|
||||
* Remove visual cascade
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.restoreBefore = function restoreBefore(decl) {
|
||||
var lines = decl.raw('before').split('\n');
|
||||
var min = lines[lines.length - 1];
|
||||
this.all.group(decl).up(function (prefixed) {
|
||||
var array = prefixed.raw('before').split('\n');
|
||||
var last = array[array.length - 1];
|
||||
|
||||
if (last.length < min.length) {
|
||||
min = last;
|
||||
}
|
||||
});
|
||||
lines[lines.length - 1] = min;
|
||||
decl.raws.before = lines.join('\n');
|
||||
}
|
||||
/**
|
||||
* Clone and insert new declaration
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var cloned = this.set(this.clone(decl), prefix);
|
||||
if (!cloned) return undefined;
|
||||
var already = decl.parent.some(function (i) {
|
||||
return i.prop === cloned.prop && i.value === cloned.value;
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
}
|
||||
/**
|
||||
* Did this declaration has this prefix above
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isAlready = function isAlready(decl, prefixed) {
|
||||
var already = this.all.group(decl).up(function (i) {
|
||||
return i.prop === prefixed;
|
||||
});
|
||||
|
||||
if (!already) {
|
||||
already = this.all.group(decl).down(function (i) {
|
||||
return i.prop === prefixed;
|
||||
});
|
||||
}
|
||||
|
||||
return already;
|
||||
}
|
||||
/**
|
||||
* Clone and add prefixes for declaration
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(decl, prefix, prefixes, result) {
|
||||
var prefixed = this.prefixed(decl.prop, prefix);
|
||||
|
||||
if (this.isAlready(decl, prefixed) || this.otherPrefixes(decl.value, prefix)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return this.insert(decl, prefix, prefixes, result);
|
||||
}
|
||||
/**
|
||||
* Add spaces for visual cascade
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(decl, result) {
|
||||
if (!this.needCascade(decl)) {
|
||||
_Prefixer.prototype.process.call(this, decl, result);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var prefixes = _Prefixer.prototype.process.call(this, decl, result);
|
||||
|
||||
if (!prefixes || !prefixes.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.restoreBefore(decl);
|
||||
decl.raws.before = this.calcBefore(prefixes, decl);
|
||||
}
|
||||
/**
|
||||
* Return list of prefixed properties to clean old prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prop, prefix) {
|
||||
return [this.prefixed(prop, prefix)];
|
||||
};
|
||||
|
||||
return Declaration;
|
||||
}(Prefixer);
|
||||
|
||||
module.exports = Declaration;
|
||||
79
build/javascript/node_modules/autoprefixer/lib/hacks/align-content.js
generated
vendored
79
build/javascript/node_modules/autoprefixer/lib/hacks/align-content.js
generated
vendored
@@ -1,79 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignContent = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignContent, _Declaration);
|
||||
|
||||
function AlignContent() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignContent.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2012 spec
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-line-pack';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-content';
|
||||
}
|
||||
/**
|
||||
* Change value for 2012 spec and ignore prefix for 2009
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2012) {
|
||||
decl.value = AlignContent.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return AlignContent;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignContent, "names", ['align-content', 'flex-line-pack']);
|
||||
|
||||
_defineProperty(AlignContent, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start',
|
||||
'space-between': 'justify',
|
||||
'space-around': 'distribute'
|
||||
});
|
||||
|
||||
module.exports = AlignContent;
|
||||
76
build/javascript/node_modules/autoprefixer/lib/hacks/align-items.js
generated
vendored
76
build/javascript/node_modules/autoprefixer/lib/hacks/align-items.js
generated
vendored
@@ -1,76 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignItems = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignItems, _Declaration);
|
||||
|
||||
function AlignItems() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignItems.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-align';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-align';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-items';
|
||||
}
|
||||
/**
|
||||
* Change value for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 || spec === 2012) {
|
||||
decl.value = AlignItems.oldValues[decl.value] || decl.value;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return AlignItems;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignItems, "names", ['align-items', 'flex-align', 'box-align']);
|
||||
|
||||
_defineProperty(AlignItems, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start'
|
||||
});
|
||||
|
||||
module.exports = AlignItems;
|
||||
84
build/javascript/node_modules/autoprefixer/lib/hacks/align-self.js
generated
vendored
84
build/javascript/node_modules/autoprefixer/lib/hacks/align-self.js
generated
vendored
@@ -1,84 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignSelf = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignSelf, _Declaration);
|
||||
|
||||
function AlignSelf() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignSelf.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.parent && !decl.parent.some(function (i) {
|
||||
return i.prop && i.prop.startsWith('grid-');
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Change property name for 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-item-align';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-self';
|
||||
}
|
||||
/**
|
||||
* Change value for 2012 spec and ignore prefix for 2009
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2012) {
|
||||
decl.value = AlignSelf.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return AlignSelf;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignSelf, "names", ['align-self', 'flex-item-align']);
|
||||
|
||||
_defineProperty(AlignSelf, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start'
|
||||
});
|
||||
|
||||
module.exports = AlignSelf;
|
||||
35
build/javascript/node_modules/autoprefixer/lib/hacks/animation.js
generated
vendored
35
build/javascript/node_modules/autoprefixer/lib/hacks/animation.js
generated
vendored
@@ -1,35 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Animation = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Animation, _Declaration);
|
||||
|
||||
function Animation() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Animation.prototype;
|
||||
|
||||
/**
|
||||
* Don’t add prefixes for modern values.
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.split(/\s+/).some(function (i) {
|
||||
var lower = i.toLowerCase();
|
||||
return lower === 'reverse' || lower === 'alternate-reverse';
|
||||
});
|
||||
};
|
||||
|
||||
return Animation;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Animation, "names", ['animation', 'animation-direction']);
|
||||
|
||||
module.exports = Animation;
|
||||
39
build/javascript/node_modules/autoprefixer/lib/hacks/appearance.js
generated
vendored
39
build/javascript/node_modules/autoprefixer/lib/hacks/appearance.js
generated
vendored
@@ -1,39 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var Appearance = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Appearance, _Declaration);
|
||||
|
||||
function Appearance(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
if (i === '-ms-') {
|
||||
return '-webkit-';
|
||||
}
|
||||
|
||||
return i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return Appearance;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Appearance, "names", ['appearance']);
|
||||
|
||||
module.exports = Appearance;
|
||||
35
build/javascript/node_modules/autoprefixer/lib/hacks/backdrop-filter.js
generated
vendored
35
build/javascript/node_modules/autoprefixer/lib/hacks/backdrop-filter.js
generated
vendored
@@ -1,35 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var BackdropFilter = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackdropFilter, _Declaration);
|
||||
|
||||
function BackdropFilter(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
return i === '-ms-' ? '-webkit-' : i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return BackdropFilter;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackdropFilter, "names", ['backdrop-filter']);
|
||||
|
||||
module.exports = BackdropFilter;
|
||||
41
build/javascript/node_modules/autoprefixer/lib/hacks/background-clip.js
generated
vendored
41
build/javascript/node_modules/autoprefixer/lib/hacks/background-clip.js
generated
vendored
@@ -1,41 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var BackgroundClip = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackgroundClip, _Declaration);
|
||||
|
||||
function BackgroundClip(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
return i === '-ms-' ? '-webkit-' : i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = BackgroundClip.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value.toLowerCase() === 'text';
|
||||
};
|
||||
|
||||
return BackgroundClip;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackgroundClip, "names", ['background-clip']);
|
||||
|
||||
module.exports = BackgroundClip;
|
||||
38
build/javascript/node_modules/autoprefixer/lib/hacks/background-size.js
generated
vendored
38
build/javascript/node_modules/autoprefixer/lib/hacks/background-size.js
generated
vendored
@@ -1,38 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BackgroundSize = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackgroundSize, _Declaration);
|
||||
|
||||
function BackgroundSize() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BackgroundSize.prototype;
|
||||
|
||||
/**
|
||||
* Duplication parameter for -webkit- browsers
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var value = decl.value.toLowerCase();
|
||||
|
||||
if (prefix === '-webkit-' && !value.includes(' ') && value !== 'contain' && value !== 'cover') {
|
||||
decl.value = decl.value + ' ' + decl.value;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return BackgroundSize;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackgroundSize, "names", ['background-size']);
|
||||
|
||||
module.exports = BackgroundSize;
|
||||
48
build/javascript/node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
48
build/javascript/node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
@@ -1,48 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BlockLogical = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BlockLogical, _Declaration);
|
||||
|
||||
function BlockLogical() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BlockLogical.prototype;
|
||||
|
||||
/**
|
||||
* Use old syntax for -moz- and -webkit-
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prop.includes('-start')) {
|
||||
return prefix + prop.replace('-block-start', '-before');
|
||||
}
|
||||
|
||||
return prefix + prop.replace('-block-end', '-after');
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
if (prop.includes('-before')) {
|
||||
return prop.replace('-before', '-block-start');
|
||||
}
|
||||
|
||||
return prop.replace('-after', '-block-end');
|
||||
};
|
||||
|
||||
return BlockLogical;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BlockLogical, "names", ['border-block-start', 'border-block-end', 'margin-block-start', 'margin-block-end', 'padding-block-start', 'padding-block-end', 'border-before', 'border-after', 'margin-before', 'margin-after', 'padding-before', 'padding-after']);
|
||||
|
||||
module.exports = BlockLogical;
|
||||
33
build/javascript/node_modules/autoprefixer/lib/hacks/border-image.js
generated
vendored
33
build/javascript/node_modules/autoprefixer/lib/hacks/border-image.js
generated
vendored
@@ -1,33 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BorderImage = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BorderImage, _Declaration);
|
||||
|
||||
function BorderImage() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BorderImage.prototype;
|
||||
|
||||
/**
|
||||
* Remove fill parameter for prefixed declarations
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
decl.value = decl.value.replace(/\s+fill(\s)/, '$1');
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return BorderImage;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BorderImage, "names", ['border-image']);
|
||||
|
||||
module.exports = BorderImage;
|
||||
62
build/javascript/node_modules/autoprefixer/lib/hacks/border-radius.js
generated
vendored
62
build/javascript/node_modules/autoprefixer/lib/hacks/border-radius.js
generated
vendored
@@ -1,62 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BorderRadius = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BorderRadius, _Declaration);
|
||||
|
||||
function BorderRadius() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BorderRadius.prototype;
|
||||
|
||||
/**
|
||||
* Change syntax, when add Mozilla prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-moz-') {
|
||||
return prefix + (BorderRadius.toMozilla[prop] || prop);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return unprefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return BorderRadius.toNormal[prop] || prop;
|
||||
};
|
||||
|
||||
return BorderRadius;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BorderRadius, "names", ['border-radius']);
|
||||
|
||||
_defineProperty(BorderRadius, "toMozilla", {});
|
||||
|
||||
_defineProperty(BorderRadius, "toNormal", {});
|
||||
|
||||
for (var _i = 0, _arr = ['top', 'bottom']; _i < _arr.length; _i++) {
|
||||
var ver = _arr[_i];
|
||||
|
||||
for (var _i2 = 0, _arr2 = ['left', 'right']; _i2 < _arr2.length; _i2++) {
|
||||
var hor = _arr2[_i2];
|
||||
var normal = "border-" + ver + "-" + hor + "-radius";
|
||||
var mozilla = "border-radius-" + ver + hor;
|
||||
BorderRadius.names.push(normal);
|
||||
BorderRadius.names.push(mozilla);
|
||||
BorderRadius.toMozilla[normal] = mozilla;
|
||||
BorderRadius.toNormal[mozilla] = normal;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BorderRadius;
|
||||
76
build/javascript/node_modules/autoprefixer/lib/hacks/break-props.js
generated
vendored
76
build/javascript/node_modules/autoprefixer/lib/hacks/break-props.js
generated
vendored
@@ -1,76 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BreakProps = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BreakProps, _Declaration);
|
||||
|
||||
function BreakProps() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BreakProps.prototype;
|
||||
|
||||
/**
|
||||
* Change name for -webkit- and -moz- prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + "column-" + prop;
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
if (prop.includes('inside')) {
|
||||
return 'break-inside';
|
||||
}
|
||||
|
||||
if (prop.includes('before')) {
|
||||
return 'break-before';
|
||||
}
|
||||
|
||||
return 'break-after';
|
||||
}
|
||||
/**
|
||||
* Change prefixed value for avoid-column and avoid-page
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.prop === 'break-inside' && decl.value === 'avoid-column' || decl.value === 'avoid-page') {
|
||||
decl.value = 'avoid';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
/**
|
||||
* Don’t prefix some values
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (decl.prop !== 'break-inside') {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
if (/region/i.test(decl.value) || /page/i.test(decl.value)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
};
|
||||
|
||||
return BreakProps;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BreakProps, "names", ['break-inside', 'page-break-inside', 'column-break-inside', 'break-before', 'page-break-before', 'column-break-before', 'break-after', 'page-break-after', 'column-break-after']);
|
||||
|
||||
module.exports = BreakProps;
|
||||
40
build/javascript/node_modules/autoprefixer/lib/hacks/color-adjust.js
generated
vendored
40
build/javascript/node_modules/autoprefixer/lib/hacks/color-adjust.js
generated
vendored
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var ColorAdjust = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(ColorAdjust, _Declaration);
|
||||
|
||||
function ColorAdjust() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ColorAdjust.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for WebKit-based browsers
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'print-color-adjust';
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'color-adjust';
|
||||
};
|
||||
|
||||
return ColorAdjust;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(ColorAdjust, "names", ['color-adjust', 'print-color-adjust']);
|
||||
|
||||
module.exports = ColorAdjust;
|
||||
54
build/javascript/node_modules/autoprefixer/lib/hacks/cross-fade.js
generated
vendored
54
build/javascript/node_modules/autoprefixer/lib/hacks/cross-fade.js
generated
vendored
@@ -1,54 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var CrossFade = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(CrossFade, _Value);
|
||||
|
||||
function CrossFade() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = CrossFade.prototype;
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var _this = this;
|
||||
|
||||
return list.space(string).map(function (value) {
|
||||
if (value.slice(0, +_this.name.length + 1) !== _this.name + '(') {
|
||||
return value;
|
||||
}
|
||||
|
||||
var close = value.lastIndexOf(')');
|
||||
var after = value.slice(close + 1);
|
||||
var args = value.slice(_this.name.length + 1, close);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
var match = args.match(/\d*.?\d+%?/);
|
||||
|
||||
if (match) {
|
||||
args = args.slice(match[0].length).trim();
|
||||
args += ", " + match[0];
|
||||
} else {
|
||||
args += ', 0.5';
|
||||
}
|
||||
}
|
||||
|
||||
return prefix + _this.name + '(' + args + ')' + after;
|
||||
}).join(' ');
|
||||
};
|
||||
|
||||
return CrossFade;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(CrossFade, "names", ['cross-fade']);
|
||||
|
||||
module.exports = CrossFade;
|
||||
94
build/javascript/node_modules/autoprefixer/lib/hacks/display-flex.js
generated
vendored
94
build/javascript/node_modules/autoprefixer/lib/hacks/display-flex.js
generated
vendored
@@ -1,94 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var DisplayFlex = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(DisplayFlex, _Value);
|
||||
|
||||
function DisplayFlex(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'display-flex') {
|
||||
_this.name = 'flex';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* Faster check for flex value
|
||||
*/
|
||||
|
||||
|
||||
var _proto = DisplayFlex.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.prop === 'display' && decl.value === this.name;
|
||||
}
|
||||
/**
|
||||
* Return value by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
var spec, value;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'box';
|
||||
} else {
|
||||
value = 'inline-box';
|
||||
}
|
||||
} else if (spec === 2012) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'flexbox';
|
||||
} else {
|
||||
value = 'inline-flexbox';
|
||||
}
|
||||
} else if (spec === 'final') {
|
||||
value = this.name;
|
||||
}
|
||||
|
||||
return prefix + value;
|
||||
}
|
||||
/**
|
||||
* Add prefix to value depend on flebox spec version
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
return this.prefixed(prefix);
|
||||
}
|
||||
/**
|
||||
* Change value for old specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
var prefixed = this.prefixed(prefix);
|
||||
if (!prefixed) return undefined;
|
||||
return new OldValue(this.name, prefixed);
|
||||
};
|
||||
|
||||
return DisplayFlex;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(DisplayFlex, "names", ['display-flex', 'inline-flex']);
|
||||
|
||||
module.exports = DisplayFlex;
|
||||
41
build/javascript/node_modules/autoprefixer/lib/hacks/display-grid.js
generated
vendored
41
build/javascript/node_modules/autoprefixer/lib/hacks/display-grid.js
generated
vendored
@@ -1,41 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var DisplayGrid = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(DisplayGrid, _Value);
|
||||
|
||||
function DisplayGrid(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'display-grid') {
|
||||
_this.name = 'grid';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* Faster check for flex value
|
||||
*/
|
||||
|
||||
|
||||
var _proto = DisplayGrid.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.prop === 'display' && decl.value === this.name;
|
||||
};
|
||||
|
||||
return DisplayGrid;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(DisplayGrid, "names", ['display-grid', 'inline-grid']);
|
||||
|
||||
module.exports = DisplayGrid;
|
||||
31
build/javascript/node_modules/autoprefixer/lib/hacks/filter-value.js
generated
vendored
31
build/javascript/node_modules/autoprefixer/lib/hacks/filter-value.js
generated
vendored
@@ -1,31 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var FilterValue = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(FilterValue, _Value);
|
||||
|
||||
function FilterValue(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'filter-function') {
|
||||
_this.name = 'filter';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return FilterValue;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(FilterValue, "names", ['filter', 'filter-function']);
|
||||
|
||||
module.exports = FilterValue;
|
||||
33
build/javascript/node_modules/autoprefixer/lib/hacks/filter.js
generated
vendored
33
build/javascript/node_modules/autoprefixer/lib/hacks/filter.js
generated
vendored
@@ -1,33 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Filter = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Filter, _Declaration);
|
||||
|
||||
function Filter() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Filter.prototype;
|
||||
|
||||
/**
|
||||
* Check is it Internet Explorer filter
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
var v = decl.value;
|
||||
return !v.toLowerCase().includes('alpha(') && !v.includes('DXImageTransform.Microsoft') && !v.includes('data:image/svg+xml');
|
||||
};
|
||||
|
||||
return Filter;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Filter, "names", ['filter']);
|
||||
|
||||
module.exports = Filter;
|
||||
72
build/javascript/node_modules/autoprefixer/lib/hacks/flex-basis.js
generated
vendored
72
build/javascript/node_modules/autoprefixer/lib/hacks/flex-basis.js
generated
vendored
@@ -1,72 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexBasis = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexBasis, _Declaration);
|
||||
|
||||
function FlexBasis() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexBasis.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-basis';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-preferred-size';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Ignore 2009 spec and use flex property for 2012
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2012 || spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexBasis;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexBasis, "names", ['flex-basis', 'flex-preferred-size']);
|
||||
|
||||
module.exports = FlexBasis;
|
||||
108
build/javascript/node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
108
build/javascript/node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
@@ -1,108 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexDirection = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexDirection, _Declaration);
|
||||
|
||||
function FlexDirection() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexDirection.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-direction';
|
||||
}
|
||||
/**
|
||||
* Use two properties for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
var already = decl.parent.some(function (i) {
|
||||
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var v = decl.value;
|
||||
var orient, dir;
|
||||
|
||||
if (v === 'inherit' || v === 'initial' || v === 'unset') {
|
||||
orient = v;
|
||||
dir = v;
|
||||
} else {
|
||||
orient = v.includes('row') ? 'horizontal' : 'vertical';
|
||||
dir = v.includes('reverse') ? 'reverse' : 'normal';
|
||||
}
|
||||
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-orient';
|
||||
cloned.value = orient;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-direction';
|
||||
cloned.value = dir;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
}
|
||||
/**
|
||||
* Clean two properties for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return [prefix + 'box-orient', prefix + 'box-direction'];
|
||||
} else {
|
||||
return _Declaration.prototype.old.call(this, prop, prefix);
|
||||
}
|
||||
};
|
||||
|
||||
return FlexDirection;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexDirection, "names", ['flex-direction', 'box-direction', 'box-orient']);
|
||||
|
||||
module.exports = FlexDirection;
|
||||
81
build/javascript/node_modules/autoprefixer/lib/hacks/flex-flow.js
generated
vendored
81
build/javascript/node_modules/autoprefixer/lib/hacks/flex-flow.js
generated
vendored
@@ -1,81 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexFlow = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexFlow, _Declaration);
|
||||
|
||||
function FlexFlow() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexFlow.prototype;
|
||||
|
||||
/**
|
||||
* Use two properties for 2009 spec
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
var values = decl.value.split(/\s+/).filter(function (i) {
|
||||
return i !== 'wrap' && i !== 'nowrap' && 'wrap-reverse';
|
||||
});
|
||||
|
||||
if (values.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var already = decl.parent.some(function (i) {
|
||||
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var value = values[0];
|
||||
var orient = value.includes('row') ? 'horizontal' : 'vertical';
|
||||
var dir = value.includes('reverse') ? 'reverse' : 'normal';
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-orient';
|
||||
cloned.value = orient;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-direction';
|
||||
cloned.value = dir;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
};
|
||||
|
||||
return FlexFlow;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexFlow, "names", ['flex-flow', 'box-direction', 'box-orient']);
|
||||
|
||||
module.exports = FlexFlow;
|
||||
57
build/javascript/node_modules/autoprefixer/lib/hacks/flex-grow.js
generated
vendored
57
build/javascript/node_modules/autoprefixer/lib/hacks/flex-grow.js
generated
vendored
@@ -1,57 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Flex = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Flex, _Declaration);
|
||||
|
||||
function Flex() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Flex.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-flex';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-positive';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
};
|
||||
|
||||
return Flex;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Flex, "names", ['flex-grow', 'flex-positive']);
|
||||
|
||||
module.exports = Flex;
|
||||
72
build/javascript/node_modules/autoprefixer/lib/hacks/flex-shrink.js
generated
vendored
72
build/javascript/node_modules/autoprefixer/lib/hacks/flex-shrink.js
generated
vendored
@@ -1,72 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexShrink = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexShrink, _Declaration);
|
||||
|
||||
function FlexShrink() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexShrink.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-shrink';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-negative';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Ignore 2009 spec and use flex property for 2012
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2012 || spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexShrink;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexShrink, "names", ['flex-shrink', 'flex-negative']);
|
||||
|
||||
module.exports = FlexShrink;
|
||||
22
build/javascript/node_modules/autoprefixer/lib/hacks/flex-spec.js
generated
vendored
22
build/javascript/node_modules/autoprefixer/lib/hacks/flex-spec.js
generated
vendored
@@ -1,22 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Return flexbox spec versions by prefix
|
||||
*/
|
||||
module.exports = function (prefix) {
|
||||
var spec;
|
||||
|
||||
if (prefix === '-webkit- 2009' || prefix === '-moz-') {
|
||||
spec = 2009;
|
||||
} else if (prefix === '-ms-') {
|
||||
spec = 2012;
|
||||
} else if (prefix === '-webkit-') {
|
||||
spec = 'final';
|
||||
}
|
||||
|
||||
if (prefix === '-webkit- 2009') {
|
||||
prefix = '-webkit-';
|
||||
}
|
||||
|
||||
return [spec, prefix];
|
||||
};
|
||||
40
build/javascript/node_modules/autoprefixer/lib/hacks/flex-wrap.js
generated
vendored
40
build/javascript/node_modules/autoprefixer/lib/hacks/flex-wrap.js
generated
vendored
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexWrap = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexWrap, _Declaration);
|
||||
|
||||
function FlexWrap() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexWrap.prototype;
|
||||
|
||||
/**
|
||||
* Don't add prefix for 2009 spec
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexWrap;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexWrap, "names", ['flex-wrap']);
|
||||
|
||||
module.exports = FlexWrap;
|
||||
85
build/javascript/node_modules/autoprefixer/lib/hacks/flex.js
generated
vendored
85
build/javascript/node_modules/autoprefixer/lib/hacks/flex.js
generated
vendored
@@ -1,85 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Flex = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Flex, _Declaration);
|
||||
|
||||
function Flex() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Flex.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 spec
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-flex';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex';
|
||||
}
|
||||
/**
|
||||
* Spec 2009 supports only first argument
|
||||
* Spec 2012 disallows unitless basis
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009) {
|
||||
decl.value = list.space(decl.value)[0];
|
||||
decl.value = Flex.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
var components = list.space(decl.value);
|
||||
|
||||
if (components.length === 3 && components[2] === '0') {
|
||||
decl.value = components.slice(0, 2).concat('0px').join(' ');
|
||||
}
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Flex;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Flex, "names", ['flex', 'box-flex']);
|
||||
|
||||
_defineProperty(Flex, "oldValues", {
|
||||
auto: '1',
|
||||
none: '0'
|
||||
});
|
||||
|
||||
module.exports = Flex;
|
||||
40
build/javascript/node_modules/autoprefixer/lib/hacks/fullscreen.js
generated
vendored
40
build/javascript/node_modules/autoprefixer/lib/hacks/fullscreen.js
generated
vendored
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var Fullscreen = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(Fullscreen, _Selector);
|
||||
|
||||
function Fullscreen() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Fullscreen.prototype;
|
||||
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return ':-webkit-full-screen';
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return ':-moz-full-screen';
|
||||
}
|
||||
|
||||
return ":" + prefix + "fullscreen";
|
||||
};
|
||||
|
||||
return Fullscreen;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(Fullscreen, "names", [':fullscreen']);
|
||||
|
||||
module.exports = Fullscreen;
|
||||
519
build/javascript/node_modules/autoprefixer/lib/hacks/gradient.js
generated
vendored
519
build/javascript/node_modules/autoprefixer/lib/hacks/gradient.js
generated
vendored
@@ -1,519 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var parser = require('postcss-value-parser');
|
||||
|
||||
var range = require('normalize-range');
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var IS_DIRECTION = /top|left|right|bottom/gi;
|
||||
|
||||
var Gradient = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Gradient, _Value);
|
||||
|
||||
function Gradient() {
|
||||
var _this;
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
_this = _Value.call.apply(_Value, [this].concat(args)) || this;
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "directions", {
|
||||
top: 'bottom',
|
||||
left: 'right',
|
||||
bottom: 'top',
|
||||
right: 'left'
|
||||
});
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "oldDirections", {
|
||||
'top': 'left bottom, left top',
|
||||
'left': 'right top, left top',
|
||||
'bottom': 'left top, left bottom',
|
||||
'right': 'left top, right top',
|
||||
'top right': 'left bottom, right top',
|
||||
'top left': 'right bottom, left top',
|
||||
'right top': 'left bottom, right top',
|
||||
'right bottom': 'left top, right bottom',
|
||||
'bottom right': 'left top, right bottom',
|
||||
'bottom left': 'right top, left bottom',
|
||||
'left top': 'right bottom, left top',
|
||||
'left bottom': 'right top, left bottom'
|
||||
});
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = Gradient.prototype;
|
||||
|
||||
/**
|
||||
* Change degrees for webkit prefix
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var ast = parser(string);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(ast.nodes), _step; !(_step = _iterator()).done;) {
|
||||
var node = _step.value;
|
||||
|
||||
if (node.type === 'function' && node.value === this.name) {
|
||||
node.nodes = this.newDirection(node.nodes);
|
||||
node.nodes = this.normalize(node.nodes);
|
||||
|
||||
if (prefix === '-webkit- old') {
|
||||
var changes = this.oldWebkit(node);
|
||||
|
||||
if (!changes) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
node.nodes = this.convertDirection(node.nodes);
|
||||
node.value = prefix + node.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ast.toString();
|
||||
}
|
||||
/**
|
||||
* Replace first token
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replaceFirst = function replaceFirst(params) {
|
||||
for (var _len2 = arguments.length, words = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||
words[_key2 - 1] = arguments[_key2];
|
||||
}
|
||||
|
||||
var prefix = words.map(function (i) {
|
||||
if (i === ' ') {
|
||||
return {
|
||||
type: 'space',
|
||||
value: i
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'word',
|
||||
value: i
|
||||
};
|
||||
});
|
||||
return prefix.concat(params.slice(1));
|
||||
}
|
||||
/**
|
||||
* Convert angle unit to deg
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalizeUnit = function normalizeUnit(str, full) {
|
||||
var num = parseFloat(str);
|
||||
var deg = num / full * 360;
|
||||
return deg + "deg";
|
||||
}
|
||||
/**
|
||||
* Normalize angle
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(nodes) {
|
||||
if (!nodes[0]) return nodes;
|
||||
|
||||
if (/-?\d+(.\d+)?grad/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 400);
|
||||
} else if (/-?\d+(.\d+)?rad/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 2 * Math.PI);
|
||||
} else if (/-?\d+(.\d+)?turn/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 1);
|
||||
} else if (nodes[0].value.includes('deg')) {
|
||||
var num = parseFloat(nodes[0].value);
|
||||
num = range.wrap(0, 360, num);
|
||||
nodes[0].value = num + "deg";
|
||||
}
|
||||
|
||||
if (nodes[0].value === '0deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'top');
|
||||
} else if (nodes[0].value === '90deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'right');
|
||||
} else if (nodes[0].value === '180deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'bottom');
|
||||
} else if (nodes[0].value === '270deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'left');
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
/**
|
||||
* Replace old direction to new
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.newDirection = function newDirection(params) {
|
||||
if (params[0].value === 'to') {
|
||||
return params;
|
||||
}
|
||||
|
||||
IS_DIRECTION.lastIndex = 0; // reset search index of global regexp
|
||||
|
||||
if (!IS_DIRECTION.test(params[0].value)) {
|
||||
return params;
|
||||
}
|
||||
|
||||
params.unshift({
|
||||
type: 'word',
|
||||
value: 'to'
|
||||
}, {
|
||||
type: 'space',
|
||||
value: ' '
|
||||
});
|
||||
|
||||
for (var i = 2; i < params.length; i++) {
|
||||
if (params[i].type === 'div') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (params[i].type === 'word') {
|
||||
params[i].value = this.revertDirection(params[i].value);
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
/**
|
||||
* Look for at word
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isRadial = function isRadial(params) {
|
||||
var state = 'before';
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(params), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var param = _step2.value;
|
||||
|
||||
if (state === 'before' && param.type === 'space') {
|
||||
state = 'at';
|
||||
} else if (state === 'at' && param.value === 'at') {
|
||||
state = 'after';
|
||||
} else if (state === 'after' && param.type === 'space') {
|
||||
return true;
|
||||
} else if (param.type === 'div') {
|
||||
break;
|
||||
} else {
|
||||
state = 'before';
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Change new direction to old
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.convertDirection = function convertDirection(params) {
|
||||
if (params.length > 0) {
|
||||
if (params[0].value === 'to') {
|
||||
this.fixDirection(params);
|
||||
} else if (params[0].value.includes('deg')) {
|
||||
this.fixAngle(params);
|
||||
} else if (this.isRadial(params)) {
|
||||
this.fixRadial(params);
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
/**
|
||||
* Replace `to top left` to `bottom right`
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixDirection = function fixDirection(params) {
|
||||
params.splice(0, 2);
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(params), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var param = _step3.value;
|
||||
|
||||
if (param.type === 'div') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (param.type === 'word') {
|
||||
param.value = this.revertDirection(param.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Add 90 degrees
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixAngle = function fixAngle(params) {
|
||||
var first = params[0].value;
|
||||
first = parseFloat(first);
|
||||
first = Math.abs(450 - first) % 360;
|
||||
first = this.roundFloat(first, 3);
|
||||
params[0].value = first + "deg";
|
||||
}
|
||||
/**
|
||||
* Fix radial direction syntax
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixRadial = function fixRadial(params) {
|
||||
var first = [];
|
||||
var second = [];
|
||||
var a, b, c, i, next;
|
||||
|
||||
for (i = 0; i < params.length - 2; i++) {
|
||||
a = params[i];
|
||||
b = params[i + 1];
|
||||
c = params[i + 2];
|
||||
|
||||
if (a.type === 'space' && b.value === 'at' && c.type === 'space') {
|
||||
next = i + 3;
|
||||
break;
|
||||
} else {
|
||||
first.push(a);
|
||||
}
|
||||
}
|
||||
|
||||
var div;
|
||||
|
||||
for (i = next; i < params.length; i++) {
|
||||
if (params[i].type === 'div') {
|
||||
div = params[i];
|
||||
break;
|
||||
} else {
|
||||
second.push(params[i]);
|
||||
}
|
||||
}
|
||||
|
||||
params.splice.apply(params, [0, i].concat(second, [div], first));
|
||||
};
|
||||
|
||||
_proto.revertDirection = function revertDirection(word) {
|
||||
return this.directions[word.toLowerCase()] || word;
|
||||
}
|
||||
/**
|
||||
* Round float and save digits under dot
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.roundFloat = function roundFloat(_float, digits) {
|
||||
return parseFloat(_float.toFixed(digits));
|
||||
}
|
||||
/**
|
||||
* Convert to old webkit syntax
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.oldWebkit = function oldWebkit(node) {
|
||||
var nodes = node.nodes;
|
||||
var string = parser.stringify(node.nodes);
|
||||
|
||||
if (this.name !== 'linear-gradient') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (nodes[0] && nodes[0].value.includes('deg')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.includes('px') || string.includes('-corner') || string.includes('-side')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var params = [[]];
|
||||
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(nodes), _step4; !(_step4 = _iterator4()).done;) {
|
||||
var i = _step4.value;
|
||||
params[params.length - 1].push(i);
|
||||
|
||||
if (i.type === 'div' && i.value === ',') {
|
||||
params.push([]);
|
||||
}
|
||||
}
|
||||
|
||||
this.oldDirection(params);
|
||||
this.colorStops(params);
|
||||
node.nodes = [];
|
||||
|
||||
for (var _i = 0, _params = params; _i < _params.length; _i++) {
|
||||
var param = _params[_i];
|
||||
node.nodes = node.nodes.concat(param);
|
||||
}
|
||||
|
||||
node.nodes.unshift({
|
||||
type: 'word',
|
||||
value: 'linear'
|
||||
}, this.cloneDiv(node.nodes));
|
||||
node.value = '-webkit-gradient';
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Change direction syntax to old webkit
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.oldDirection = function oldDirection(params) {
|
||||
var div = this.cloneDiv(params[0]);
|
||||
|
||||
if (params[0][0].value !== 'to') {
|
||||
return params.unshift([{
|
||||
type: 'word',
|
||||
value: this.oldDirections.bottom
|
||||
}, div]);
|
||||
} else {
|
||||
var words = [];
|
||||
|
||||
for (var _iterator5 = _createForOfIteratorHelperLoose(params[0].slice(2)), _step5; !(_step5 = _iterator5()).done;) {
|
||||
var node = _step5.value;
|
||||
|
||||
if (node.type === 'word') {
|
||||
words.push(node.value.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
words = words.join(' ');
|
||||
var old = this.oldDirections[words] || words;
|
||||
params[0] = [{
|
||||
type: 'word',
|
||||
value: old
|
||||
}, div];
|
||||
return params[0];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get div token from exists parameters
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.cloneDiv = function cloneDiv(params) {
|
||||
for (var _iterator6 = _createForOfIteratorHelperLoose(params), _step6; !(_step6 = _iterator6()).done;) {
|
||||
var i = _step6.value;
|
||||
|
||||
if (i.type === 'div' && i.value === ',') {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'div',
|
||||
value: ',',
|
||||
after: ' '
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Change colors syntax to old webkit
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.colorStops = function colorStops(params) {
|
||||
var result = [];
|
||||
|
||||
for (var i = 0; i < params.length; i++) {
|
||||
var pos = void 0;
|
||||
var param = params[i];
|
||||
var item = void 0;
|
||||
|
||||
if (i === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var color = parser.stringify(param[0]);
|
||||
|
||||
if (param[1] && param[1].type === 'word') {
|
||||
pos = param[1].value;
|
||||
} else if (param[2] && param[2].type === 'word') {
|
||||
pos = param[2].value;
|
||||
}
|
||||
|
||||
var stop = void 0;
|
||||
|
||||
if (i === 1 && (!pos || pos === '0%')) {
|
||||
stop = "from(" + color + ")";
|
||||
} else if (i === params.length - 1 && (!pos || pos === '100%')) {
|
||||
stop = "to(" + color + ")";
|
||||
} else if (pos) {
|
||||
stop = "color-stop(" + pos + ", " + color + ")";
|
||||
} else {
|
||||
stop = "color-stop(" + color + ")";
|
||||
}
|
||||
|
||||
var div = param[param.length - 1];
|
||||
params[i] = [{
|
||||
type: 'word',
|
||||
value: stop
|
||||
}];
|
||||
|
||||
if (div.type === 'div' && div.value === ',') {
|
||||
item = params[i].push(div);
|
||||
}
|
||||
|
||||
result.push(item);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Remove old WebKit gradient too
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
var type = this.name === 'linear-gradient' ? 'linear' : 'radial';
|
||||
var string = '-gradient';
|
||||
var regexp = utils.regexp("-webkit-(" + type + "-gradient|gradient\\(\\s*" + type + ")", false);
|
||||
return new OldValue(this.name, prefix + this.name, string, regexp);
|
||||
} else {
|
||||
return _Value.prototype.old.call(this, prefix);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Do not add non-webkit prefixes for list-style and object
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(decl, prefix) {
|
||||
var p = decl.prop;
|
||||
|
||||
if (p.includes('mask')) {
|
||||
if (prefix === '-webkit-' || prefix === '-webkit- old') {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
} else if (p === 'list-style' || p === 'list-style-image' || p === 'content') {
|
||||
if (prefix === '-webkit-' || prefix === '-webkit- old') {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
} else {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return Gradient;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Gradient, "names", ['linear-gradient', 'repeating-linear-gradient', 'radial-gradient', 'repeating-radial-gradient']);
|
||||
|
||||
module.exports = Gradient;
|
||||
52
build/javascript/node_modules/autoprefixer/lib/hacks/grid-area.js
generated
vendored
52
build/javascript/node_modules/autoprefixer/lib/hacks/grid-area.js
generated
vendored
@@ -1,52 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var GridArea = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridArea, _Declaration);
|
||||
|
||||
function GridArea() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridArea.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-area to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var values = utils.parse(decl);
|
||||
|
||||
var _utils$translate = utils.translate(values, 0, 2),
|
||||
rowStart = _utils$translate[0],
|
||||
rowSpan = _utils$translate[1];
|
||||
|
||||
var _utils$translate2 = utils.translate(values, 1, 3),
|
||||
columnStart = _utils$translate2[0],
|
||||
columnSpan = _utils$translate2[1];
|
||||
|
||||
[['grid-row', rowStart], ['grid-row-span', rowSpan], ['grid-column', columnStart], ['grid-column-span', columnSpan]].forEach(function (_ref) {
|
||||
var prop = _ref[0],
|
||||
value = _ref[1];
|
||||
utils.insertDecl(decl, prop, value);
|
||||
});
|
||||
utils.warnTemplateSelectorNotFound(decl, result);
|
||||
utils.warnIfGridRowColumnExists(decl, result);
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridArea;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridArea, "names", ['grid-area']);
|
||||
|
||||
module.exports = GridArea;
|
||||
48
build/javascript/node_modules/autoprefixer/lib/hacks/grid-column-align.js
generated
vendored
48
build/javascript/node_modules/autoprefixer/lib/hacks/grid-column-align.js
generated
vendored
@@ -1,48 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridColumnAlign = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridColumnAlign, _Declaration);
|
||||
|
||||
function GridColumnAlign() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridColumnAlign.prototype;
|
||||
|
||||
/**
|
||||
* Do not prefix flexbox values
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.includes('flex-') && decl.value !== 'baseline';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'grid-column-align';
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'justify-self';
|
||||
};
|
||||
|
||||
return GridColumnAlign;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridColumnAlign, "names", ['grid-column-align']);
|
||||
|
||||
module.exports = GridColumnAlign;
|
||||
62
build/javascript/node_modules/autoprefixer/lib/hacks/grid-end.js
generated
vendored
62
build/javascript/node_modules/autoprefixer/lib/hacks/grid-end.js
generated
vendored
@@ -1,62 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridEnd = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridEnd, _Declaration);
|
||||
|
||||
function GridEnd() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridEnd.prototype;
|
||||
|
||||
/**
|
||||
* Change repeating syntax for IE
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var clonedDecl = this.clone(decl);
|
||||
var startProp = decl.prop.replace(/end$/, 'start');
|
||||
var spanProp = prefix + decl.prop.replace(/end$/, 'span');
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === spanProp;
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
clonedDecl.prop = spanProp;
|
||||
|
||||
if (decl.value.includes('span')) {
|
||||
clonedDecl.value = decl.value.replace(/span\s/i, '');
|
||||
} else {
|
||||
var startDecl;
|
||||
decl.parent.walkDecls(startProp, function (d) {
|
||||
startDecl = d;
|
||||
});
|
||||
|
||||
if (startDecl) {
|
||||
var value = Number(decl.value) - Number(startDecl.value) + '';
|
||||
clonedDecl.value = value;
|
||||
} else {
|
||||
decl.warn(result, "Can not prefix " + decl.prop + " (" + startProp + " is not found)");
|
||||
}
|
||||
}
|
||||
|
||||
decl.cloneBefore(clonedDecl);
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridEnd;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridEnd, "names", ['grid-row-end', 'grid-column-end']);
|
||||
|
||||
module.exports = GridEnd;
|
||||
48
build/javascript/node_modules/autoprefixer/lib/hacks/grid-row-align.js
generated
vendored
48
build/javascript/node_modules/autoprefixer/lib/hacks/grid-row-align.js
generated
vendored
@@ -1,48 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridRowAlign = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowAlign, _Declaration);
|
||||
|
||||
function GridRowAlign() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowAlign.prototype;
|
||||
|
||||
/**
|
||||
* Do not prefix flexbox values
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.includes('flex-') && decl.value !== 'baseline';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'grid-row-align';
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-self';
|
||||
};
|
||||
|
||||
return GridRowAlign;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowAlign, "names", ['grid-row-align']);
|
||||
|
||||
module.exports = GridRowAlign;
|
||||
52
build/javascript/node_modules/autoprefixer/lib/hacks/grid-row-column.js
generated
vendored
52
build/javascript/node_modules/autoprefixer/lib/hacks/grid-row-column.js
generated
vendored
@@ -1,52 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var GridRowColumn = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowColumn, _Declaration);
|
||||
|
||||
function GridRowColumn() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowColumn.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-row / grid-column to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var values = utils.parse(decl);
|
||||
|
||||
var _utils$translate = utils.translate(values, 0, 1),
|
||||
start = _utils$translate[0],
|
||||
span = _utils$translate[1];
|
||||
|
||||
var hasStartValueSpan = values[0] && values[0].includes('span');
|
||||
|
||||
if (hasStartValueSpan) {
|
||||
span = values[0].join('').replace(/\D/g, '');
|
||||
}
|
||||
|
||||
[[decl.prop, start], [decl.prop + "-span", span]].forEach(function (_ref) {
|
||||
var prop = _ref[0],
|
||||
value = _ref[1];
|
||||
utils.insertDecl(decl, prop, value);
|
||||
});
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridRowColumn;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowColumn, "names", ['grid-row', 'grid-column']);
|
||||
|
||||
module.exports = GridRowColumn;
|
||||
149
build/javascript/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js
generated
vendored
149
build/javascript/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js
generated
vendored
@@ -1,149 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
prefixTrackProp = _require.prefixTrackProp,
|
||||
prefixTrackValue = _require.prefixTrackValue,
|
||||
autoplaceGridItems = _require.autoplaceGridItems,
|
||||
getGridGap = _require.getGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
var Processor = require('../processor');
|
||||
|
||||
var GridRowsColumns = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowsColumns, _Declaration);
|
||||
|
||||
function GridRowsColumns() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowsColumns.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
});
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace(/^grid-(rows|columns)/, 'grid-template-$1');
|
||||
};
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var parent = decl.parent,
|
||||
prop = decl.prop,
|
||||
value = decl.value;
|
||||
var isRowProp = prop.includes('rows');
|
||||
var isColumnProp = prop.includes('columns');
|
||||
var hasGridTemplate = parent.some(function (i) {
|
||||
return i.prop === 'grid-template' || i.prop === 'grid-template-areas';
|
||||
});
|
||||
/**
|
||||
* Not to prefix rows declaration if grid-template(-areas) is present
|
||||
*/
|
||||
|
||||
if (hasGridTemplate && isRowProp) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var processor = new Processor({
|
||||
options: {}
|
||||
});
|
||||
var status = processor.gridStatus(parent, result);
|
||||
var gap = getGridGap(decl);
|
||||
gap = inheritGridGap(decl, gap) || gap;
|
||||
var gapValue = isRowProp ? gap.row : gap.column;
|
||||
|
||||
if ((status === 'no-autoplace' || status === true) && !hasGridTemplate) {
|
||||
gapValue = null;
|
||||
}
|
||||
|
||||
var prefixValue = prefixTrackValue({
|
||||
value: value,
|
||||
gap: gapValue
|
||||
});
|
||||
/**
|
||||
* Insert prefixes
|
||||
*/
|
||||
|
||||
decl.cloneBefore({
|
||||
prop: prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
}),
|
||||
value: prefixValue
|
||||
});
|
||||
var autoflow = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-auto-flow';
|
||||
});
|
||||
var autoflowValue = 'row';
|
||||
|
||||
if (autoflow && !processor.disabled(autoflow, result)) {
|
||||
autoflowValue = autoflow.value.trim();
|
||||
}
|
||||
|
||||
if (status === 'autoplace') {
|
||||
/**
|
||||
* Show warning if grid-template-rows decl is not found
|
||||
*/
|
||||
var rowDecl = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-template-rows';
|
||||
});
|
||||
|
||||
if (!rowDecl && hasGridTemplate) {
|
||||
return undefined;
|
||||
} else if (!rowDecl && !hasGridTemplate) {
|
||||
decl.warn(result, 'Autoplacement does not work without grid-template-rows property');
|
||||
return undefined;
|
||||
}
|
||||
/**
|
||||
* Show warning if grid-template-columns decl is not found
|
||||
*/
|
||||
|
||||
|
||||
var columnDecl = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-template-columns';
|
||||
});
|
||||
|
||||
if (!columnDecl && !hasGridTemplate) {
|
||||
decl.warn(result, 'Autoplacement does not work without grid-template-columns property');
|
||||
}
|
||||
/**
|
||||
* Autoplace grid items
|
||||
*/
|
||||
|
||||
|
||||
if (isColumnProp && !hasGridTemplate) {
|
||||
autoplaceGridItems(decl, result, gap, autoflowValue);
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridRowsColumns;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowsColumns, "names", ['grid-template-rows', 'grid-template-columns', 'grid-rows', 'grid-columns']);
|
||||
|
||||
module.exports = GridRowsColumns;
|
||||
55
build/javascript/node_modules/autoprefixer/lib/hacks/grid-start.js
generated
vendored
55
build/javascript/node_modules/autoprefixer/lib/hacks/grid-start.js
generated
vendored
@@ -1,55 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridStart = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridStart, _Declaration);
|
||||
|
||||
function GridStart() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridStart.prototype;
|
||||
|
||||
/**
|
||||
* Do not add prefix for unsupported value in IE
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
var value = decl.value;
|
||||
return !value.includes('/') || value.includes('span');
|
||||
}
|
||||
/**
|
||||
* Return a final spec property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace('-start', '');
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
result = result.replace('-start', '');
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return GridStart;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridStart, "names", ['grid-row-start', 'grid-column-start']);
|
||||
|
||||
module.exports = GridStart;
|
||||
101
build/javascript/node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
101
build/javascript/node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
@@ -1,101 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
parseGridAreas = _require.parseGridAreas,
|
||||
warnMissedAreas = _require.warnMissedAreas,
|
||||
prefixTrackProp = _require.prefixTrackProp,
|
||||
prefixTrackValue = _require.prefixTrackValue,
|
||||
getGridGap = _require.getGridGap,
|
||||
warnGridGap = _require.warnGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
function getGridRows(tpl) {
|
||||
return tpl.trim().slice(1, -1).split(/["']\s*["']?/g);
|
||||
}
|
||||
|
||||
var GridTemplateAreas = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridTemplateAreas, _Declaration);
|
||||
|
||||
function GridTemplateAreas() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridTemplateAreas.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-template-areas to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var hasColumns = false;
|
||||
var hasRows = false;
|
||||
var parent = decl.parent;
|
||||
var gap = getGridGap(decl);
|
||||
gap = inheritGridGap(decl, gap) || gap; // remove already prefixed rows
|
||||
// to prevent doubling prefixes
|
||||
|
||||
parent.walkDecls(/-ms-grid-rows/, function (i) {
|
||||
return i.remove();
|
||||
}); // add empty tracks to rows
|
||||
|
||||
parent.walkDecls(/grid-template-(rows|columns)/, function (trackDecl) {
|
||||
if (trackDecl.prop === 'grid-template-rows') {
|
||||
hasRows = true;
|
||||
var prop = trackDecl.prop,
|
||||
value = trackDecl.value;
|
||||
trackDecl.cloneBefore({
|
||||
prop: prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
}),
|
||||
value: prefixTrackValue({
|
||||
value: value,
|
||||
gap: gap.row
|
||||
})
|
||||
});
|
||||
} else {
|
||||
hasColumns = true;
|
||||
}
|
||||
});
|
||||
var gridRows = getGridRows(decl.value);
|
||||
|
||||
if (hasColumns && !hasRows && gap.row && gridRows.length > 1) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-rows',
|
||||
value: prefixTrackValue({
|
||||
value: "repeat(" + gridRows.length + ", auto)",
|
||||
gap: gap.row
|
||||
}),
|
||||
raws: {}
|
||||
});
|
||||
} // warnings
|
||||
|
||||
|
||||
warnGridGap({
|
||||
gap: gap,
|
||||
hasColumns: hasColumns,
|
||||
decl: decl,
|
||||
result: result
|
||||
});
|
||||
var areas = parseGridAreas({
|
||||
rows: gridRows,
|
||||
gap: gap
|
||||
});
|
||||
warnMissedAreas(areas, decl, result);
|
||||
return decl;
|
||||
};
|
||||
|
||||
return GridTemplateAreas;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridTemplateAreas, "names", ['grid-template-areas']);
|
||||
|
||||
module.exports = GridTemplateAreas;
|
||||
90
build/javascript/node_modules/autoprefixer/lib/hacks/grid-template.js
generated
vendored
90
build/javascript/node_modules/autoprefixer/lib/hacks/grid-template.js
generated
vendored
@@ -1,90 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
parseTemplate = _require.parseTemplate,
|
||||
warnMissedAreas = _require.warnMissedAreas,
|
||||
getGridGap = _require.getGridGap,
|
||||
warnGridGap = _require.warnGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
var GridTemplate = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridTemplate, _Declaration);
|
||||
|
||||
function GridTemplate() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridTemplate.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-template to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === '-ms-grid-rows';
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var gap = getGridGap(decl);
|
||||
/**
|
||||
* we must insert inherited gap values in some cases:
|
||||
* if we are inside media query && if we have no grid-gap value
|
||||
*/
|
||||
|
||||
var inheritedGap = inheritGridGap(decl, gap);
|
||||
|
||||
var _parseTemplate = parseTemplate({
|
||||
decl: decl,
|
||||
gap: inheritedGap || gap
|
||||
}),
|
||||
rows = _parseTemplate.rows,
|
||||
columns = _parseTemplate.columns,
|
||||
areas = _parseTemplate.areas;
|
||||
|
||||
var hasAreas = Object.keys(areas).length > 0;
|
||||
var hasRows = Boolean(rows);
|
||||
var hasColumns = Boolean(columns);
|
||||
warnGridGap({
|
||||
gap: gap,
|
||||
hasColumns: hasColumns,
|
||||
decl: decl,
|
||||
result: result
|
||||
});
|
||||
warnMissedAreas(areas, decl, result);
|
||||
|
||||
if (hasRows && hasColumns || hasAreas) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-rows',
|
||||
value: rows,
|
||||
raws: {}
|
||||
});
|
||||
}
|
||||
|
||||
if (hasColumns) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-columns',
|
||||
value: columns,
|
||||
raws: {}
|
||||
});
|
||||
}
|
||||
|
||||
return decl;
|
||||
};
|
||||
|
||||
return GridTemplate;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridTemplate, "names", ['grid-template']);
|
||||
|
||||
module.exports = GridTemplate;
|
||||
1123
build/javascript/node_modules/autoprefixer/lib/hacks/grid-utils.js
generated
vendored
1123
build/javascript/node_modules/autoprefixer/lib/hacks/grid-utils.js
generated
vendored
File diff suppressed because it is too large
Load Diff
71
build/javascript/node_modules/autoprefixer/lib/hacks/image-rendering.js
generated
vendored
71
build/javascript/node_modules/autoprefixer/lib/hacks/image-rendering.js
generated
vendored
@@ -1,71 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var ImageRendering = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(ImageRendering, _Declaration);
|
||||
|
||||
function ImageRendering() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ImageRendering.prototype;
|
||||
|
||||
/**
|
||||
* Add hack only for crisp-edges
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value === 'pixelated';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return '-ms-interpolation-mode';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Change property and value for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
decl.prop = '-ms-interpolation-mode';
|
||||
decl.value = 'nearest-neighbor';
|
||||
return decl;
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'image-rendering';
|
||||
}
|
||||
/**
|
||||
* Warn on old value
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(node, result) {
|
||||
return _Declaration.prototype.process.call(this, node, result);
|
||||
};
|
||||
|
||||
return ImageRendering;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(ImageRendering, "names", ['image-rendering', 'interpolation-mode']);
|
||||
|
||||
module.exports = ImageRendering;
|
||||
38
build/javascript/node_modules/autoprefixer/lib/hacks/image-set.js
generated
vendored
38
build/javascript/node_modules/autoprefixer/lib/hacks/image-set.js
generated
vendored
@@ -1,38 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var ImageSet = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(ImageSet, _Value);
|
||||
|
||||
function ImageSet() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ImageSet.prototype;
|
||||
|
||||
/**
|
||||
* Use non-standard name for WebKit and Firefox
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var fixed = _Value.prototype.replace.call(this, string, prefix);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
fixed = fixed.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi, 'url($1)$2');
|
||||
}
|
||||
|
||||
return fixed;
|
||||
};
|
||||
|
||||
return ImageSet;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(ImageSet, "names", ['image-set']);
|
||||
|
||||
module.exports = ImageSet;
|
||||
40
build/javascript/node_modules/autoprefixer/lib/hacks/inline-logical.js
generated
vendored
40
build/javascript/node_modules/autoprefixer/lib/hacks/inline-logical.js
generated
vendored
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var InlineLogical = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(InlineLogical, _Declaration);
|
||||
|
||||
function InlineLogical() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = InlineLogical.prototype;
|
||||
|
||||
/**
|
||||
* Use old syntax for -moz- and -webkit-
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + prop.replace('-inline', '');
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace(/(margin|padding|border)-(start|end)/, '$1-inline-$2');
|
||||
};
|
||||
|
||||
return InlineLogical;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(InlineLogical, "names", ['border-inline-start', 'border-inline-end', 'margin-inline-start', 'margin-inline-end', 'padding-inline-start', 'padding-inline-end', 'border-start', 'border-end', 'margin-start', 'margin-end', 'padding-start', 'padding-end']);
|
||||
|
||||
module.exports = InlineLogical;
|
||||
74
build/javascript/node_modules/autoprefixer/lib/hacks/intrinsic.js
generated
vendored
74
build/javascript/node_modules/autoprefixer/lib/hacks/intrinsic.js
generated
vendored
@@ -1,74 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
function _regexp(name) {
|
||||
return new RegExp("(^|[\\s,(])(" + name + "($|[\\s),]))", 'gi');
|
||||
}
|
||||
|
||||
var Intrinsic = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Intrinsic, _Value);
|
||||
|
||||
function Intrinsic() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Intrinsic.prototype;
|
||||
|
||||
_proto.regexp = function regexp() {
|
||||
if (!this.regexpCache) this.regexpCache = _regexp(this.name);
|
||||
return this.regexpCache;
|
||||
};
|
||||
|
||||
_proto.isStretch = function isStretch() {
|
||||
return this.name === 'stretch' || this.name === 'fill' || this.name === 'fill-available';
|
||||
};
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
if (prefix === '-moz-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-moz-available$3');
|
||||
}
|
||||
|
||||
if (prefix === '-webkit-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-webkit-fill-available$3');
|
||||
}
|
||||
|
||||
return _Value.prototype.replace.call(this, string, prefix);
|
||||
};
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
var prefixed = prefix + this.name;
|
||||
|
||||
if (this.isStretch()) {
|
||||
if (prefix === '-moz-') {
|
||||
prefixed = '-moz-available';
|
||||
} else if (prefix === '-webkit-') {
|
||||
prefixed = '-webkit-fill-available';
|
||||
}
|
||||
}
|
||||
|
||||
return new OldValue(this.name, prefixed, prefixed, _regexp(prefixed));
|
||||
};
|
||||
|
||||
_proto.add = function add(decl, prefix) {
|
||||
if (decl.prop.includes('grid') && prefix !== '-webkit-') {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Intrinsic;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Intrinsic, "names", ['max-content', 'min-content', 'fit-content', 'fill', 'fill-available', 'stretch']);
|
||||
|
||||
module.exports = Intrinsic;
|
||||
85
build/javascript/node_modules/autoprefixer/lib/hacks/justify-content.js
generated
vendored
85
build/javascript/node_modules/autoprefixer/lib/hacks/justify-content.js
generated
vendored
@@ -1,85 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var JustifyContent = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(JustifyContent, _Declaration);
|
||||
|
||||
function JustifyContent() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = JustifyContent.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-pack';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-pack';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'justify-content';
|
||||
}
|
||||
/**
|
||||
* Change value for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 || spec === 2012) {
|
||||
var value = JustifyContent.oldValues[decl.value] || decl.value;
|
||||
decl.value = value;
|
||||
|
||||
if (spec !== 2009 || value !== 'distribute') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
} else if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return JustifyContent;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(JustifyContent, "names", ['justify-content', 'flex-pack', 'box-pack']);
|
||||
|
||||
_defineProperty(JustifyContent, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start',
|
||||
'space-between': 'justify',
|
||||
'space-around': 'distribute'
|
||||
});
|
||||
|
||||
module.exports = JustifyContent;
|
||||
46
build/javascript/node_modules/autoprefixer/lib/hacks/mask-border.js
generated
vendored
46
build/javascript/node_modules/autoprefixer/lib/hacks/mask-border.js
generated
vendored
@@ -1,46 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var MaskBorder = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(MaskBorder, _Declaration);
|
||||
|
||||
function MaskBorder() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = MaskBorder.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return this.name.replace('box-image', 'border');
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
result = result.replace('border', 'box-image');
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return MaskBorder;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(MaskBorder, "names", ['mask-border', 'mask-border-source', 'mask-border-slice', 'mask-border-width', 'mask-border-outset', 'mask-border-repeat', 'mask-box-image', 'mask-box-image-source', 'mask-box-image-slice', 'mask-box-image-width', 'mask-box-image-outset', 'mask-box-image-repeat']);
|
||||
|
||||
module.exports = MaskBorder;
|
||||
104
build/javascript/node_modules/autoprefixer/lib/hacks/mask-composite.js
generated
vendored
104
build/javascript/node_modules/autoprefixer/lib/hacks/mask-composite.js
generated
vendored
@@ -1,104 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var MaskComposite = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(MaskComposite, _Declaration);
|
||||
|
||||
function MaskComposite() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = MaskComposite.prototype;
|
||||
|
||||
/**
|
||||
* Prefix mask-composite for webkit
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var isCompositeProp = decl.prop === 'mask-composite';
|
||||
var compositeValues;
|
||||
|
||||
if (isCompositeProp) {
|
||||
compositeValues = decl.value.split(',');
|
||||
} else {
|
||||
compositeValues = decl.value.match(MaskComposite.regexp) || [];
|
||||
}
|
||||
|
||||
compositeValues = compositeValues.map(function (el) {
|
||||
return el.trim();
|
||||
}).filter(function (el) {
|
||||
return el;
|
||||
});
|
||||
var hasCompositeValues = compositeValues.length;
|
||||
var compositeDecl;
|
||||
|
||||
if (hasCompositeValues) {
|
||||
compositeDecl = this.clone(decl);
|
||||
compositeDecl.value = compositeValues.map(function (value) {
|
||||
return MaskComposite.oldValues[value] || value;
|
||||
}).join(', ');
|
||||
|
||||
if (compositeValues.includes('intersect')) {
|
||||
compositeDecl.value += ', xor';
|
||||
}
|
||||
|
||||
compositeDecl.prop = prefix + 'mask-composite';
|
||||
}
|
||||
|
||||
if (isCompositeProp) {
|
||||
if (!hasCompositeValues) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
compositeDecl.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, compositeDecl);
|
||||
}
|
||||
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + cloned.prop;
|
||||
|
||||
if (hasCompositeValues) {
|
||||
cloned.value = cloned.value.replace(MaskComposite.regexp, '');
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
|
||||
if (!hasCompositeValues) {
|
||||
return decl;
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
compositeDecl.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, compositeDecl);
|
||||
};
|
||||
|
||||
return MaskComposite;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(MaskComposite, "names", ['mask', 'mask-composite']);
|
||||
|
||||
_defineProperty(MaskComposite, "oldValues", {
|
||||
add: 'source-over',
|
||||
substract: 'source-out',
|
||||
intersect: 'source-in',
|
||||
exclude: 'xor'
|
||||
});
|
||||
|
||||
_defineProperty(MaskComposite, "regexp", new RegExp("\\s+(" + Object.keys(MaskComposite.oldValues).join('|') + ")\\b(?!\\))\\s*(?=[,])", 'ig'));
|
||||
|
||||
module.exports = MaskComposite;
|
||||
72
build/javascript/node_modules/autoprefixer/lib/hacks/order.js
generated
vendored
72
build/javascript/node_modules/autoprefixer/lib/hacks/order.js
generated
vendored
@@ -1,72 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Order = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Order, _Declaration);
|
||||
|
||||
function Order() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Order.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-ordinal-group';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-order';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'order';
|
||||
}
|
||||
/**
|
||||
* Fix value for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 && /\d/.test(decl.value)) {
|
||||
decl.value = (parseInt(decl.value) + 1).toString();
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Order;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Order, "names", ['order', 'flex-order', 'box-ordinal-group']);
|
||||
|
||||
module.exports = Order;
|
||||
54
build/javascript/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js
generated
vendored
54
build/javascript/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js
generated
vendored
@@ -1,54 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var OverscrollBehavior = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(OverscrollBehavior, _Declaration);
|
||||
|
||||
function OverscrollBehavior() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = OverscrollBehavior.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'scroll-chaining';
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'overscroll-behavior';
|
||||
}
|
||||
/**
|
||||
* Change value for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.value === 'auto') {
|
||||
decl.value = 'chained';
|
||||
} else if (decl.value === 'none' || decl.value === 'contain') {
|
||||
decl.value = 'none';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return OverscrollBehavior;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(OverscrollBehavior, "names", ['overscroll-behavior', 'scroll-chaining']);
|
||||
|
||||
module.exports = OverscrollBehavior;
|
||||
58
build/javascript/node_modules/autoprefixer/lib/hacks/pixelated.js
generated
vendored
58
build/javascript/node_modules/autoprefixer/lib/hacks/pixelated.js
generated
vendored
@@ -1,58 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var Pixelated = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Pixelated, _Value);
|
||||
|
||||
function Pixelated() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Pixelated.prototype;
|
||||
|
||||
/**
|
||||
* Use non-standard name for WebKit and Firefox
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return string.replace(this.regexp(), '$1-webkit-optimize-contrast');
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return string.replace(this.regexp(), '$1-moz-crisp-edges');
|
||||
}
|
||||
|
||||
return _Value.prototype.replace.call(this, string, prefix);
|
||||
}
|
||||
/**
|
||||
* Different name for WebKit and Firefox
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return new OldValue(this.name, '-webkit-optimize-contrast');
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return new OldValue(this.name, '-moz-crisp-edges');
|
||||
}
|
||||
|
||||
return _Value.prototype.old.call(this, prefix);
|
||||
};
|
||||
|
||||
return Pixelated;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Pixelated, "names", ['pixelated']);
|
||||
|
||||
module.exports = Pixelated;
|
||||
55
build/javascript/node_modules/autoprefixer/lib/hacks/place-self.js
generated
vendored
55
build/javascript/node_modules/autoprefixer/lib/hacks/place-self.js
generated
vendored
@@ -1,55 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var PlaceSelf = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(PlaceSelf, _Declaration);
|
||||
|
||||
function PlaceSelf() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = PlaceSelf.prototype;
|
||||
|
||||
/**
|
||||
* Translate place-self to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes); // prevent doubling of prefixes
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === '-ms-grid-row-align';
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var _utils$parse = utils.parse(decl),
|
||||
_utils$parse$ = _utils$parse[0],
|
||||
first = _utils$parse$[0],
|
||||
second = _utils$parse$[1];
|
||||
|
||||
if (second) {
|
||||
utils.insertDecl(decl, 'grid-row-align', first);
|
||||
utils.insertDecl(decl, 'grid-column-align', second);
|
||||
} else {
|
||||
utils.insertDecl(decl, 'grid-row-align', first);
|
||||
utils.insertDecl(decl, 'grid-column-align', first);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return PlaceSelf;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(PlaceSelf, "names", ['place-self']);
|
||||
|
||||
module.exports = PlaceSelf;
|
||||
36
build/javascript/node_modules/autoprefixer/lib/hacks/placeholder-shown.js
generated
vendored
36
build/javascript/node_modules/autoprefixer/lib/hacks/placeholder-shown.js
generated
vendored
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var PlaceholderShown = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(PlaceholderShown, _Selector);
|
||||
|
||||
function PlaceholderShown() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = PlaceholderShown.prototype;
|
||||
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return ':-ms-input-placeholder';
|
||||
}
|
||||
|
||||
return ":" + prefix + "placeholder-shown";
|
||||
};
|
||||
|
||||
return PlaceholderShown;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(PlaceholderShown, "names", [':placeholder-shown']);
|
||||
|
||||
module.exports = PlaceholderShown;
|
||||
56
build/javascript/node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
56
build/javascript/node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
@@ -1,56 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var Placeholder = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(Placeholder, _Selector);
|
||||
|
||||
function Placeholder() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Placeholder.prototype;
|
||||
|
||||
/**
|
||||
* Add old mozilla to possible prefixes
|
||||
*/
|
||||
_proto.possible = function possible() {
|
||||
return _Selector.prototype.possible.call(this).concat(['-moz- old', '-ms- old']);
|
||||
}
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return '::-webkit-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
return '::-ms-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-ms- old') {
|
||||
return ':-ms-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-moz- old') {
|
||||
return ':-moz-placeholder';
|
||||
}
|
||||
|
||||
return "::" + prefix + "placeholder";
|
||||
};
|
||||
|
||||
return Placeholder;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(Placeholder, "names", ['::placeholder']);
|
||||
|
||||
module.exports = Placeholder;
|
||||
38
build/javascript/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
38
build/javascript/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
@@ -1,38 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TextDecorationSkipInk = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextDecorationSkipInk, _Declaration);
|
||||
|
||||
function TextDecorationSkipInk() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextDecorationSkipInk.prototype;
|
||||
|
||||
/**
|
||||
* Change prefix for ink value
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
|
||||
decl.prop = prefix + 'text-decoration-skip';
|
||||
decl.value = 'ink';
|
||||
return decl;
|
||||
} else {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
};
|
||||
|
||||
return TextDecorationSkipInk;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextDecorationSkipInk, "names", ['text-decoration-skip-ink', 'text-decoration-skip']);
|
||||
|
||||
module.exports = TextDecorationSkipInk;
|
||||
36
build/javascript/node_modules/autoprefixer/lib/hacks/text-decoration.js
generated
vendored
36
build/javascript/node_modules/autoprefixer/lib/hacks/text-decoration.js
generated
vendored
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BASIC = ['none', 'underline', 'overline', 'line-through', 'blink', 'inherit', 'initial', 'unset'];
|
||||
|
||||
var TextDecoration = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextDecoration, _Declaration);
|
||||
|
||||
function TextDecoration() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextDecoration.prototype;
|
||||
|
||||
/**
|
||||
* Do not add prefixes for basic values.
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value.split(/\s+/).some(function (i) {
|
||||
return !BASIC.includes(i);
|
||||
});
|
||||
};
|
||||
|
||||
return TextDecoration;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextDecoration, "names", ['text-decoration']);
|
||||
|
||||
module.exports = TextDecoration;
|
||||
33
build/javascript/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js
generated
vendored
33
build/javascript/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js
generated
vendored
@@ -1,33 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TextEmphasisPosition = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextEmphasisPosition, _Declaration);
|
||||
|
||||
function TextEmphasisPosition() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextEmphasisPosition.prototype;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
decl.value = decl.value.replace(/\s*(right|left)\s*/i, '');
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return TextEmphasisPosition;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextEmphasisPosition, "names", ['text-emphasis-position']);
|
||||
|
||||
module.exports = TextEmphasisPosition;
|
||||
105
build/javascript/node_modules/autoprefixer/lib/hacks/transform-decl.js
generated
vendored
105
build/javascript/node_modules/autoprefixer/lib/hacks/transform-decl.js
generated
vendored
@@ -1,105 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TransformDecl = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TransformDecl, _Declaration);
|
||||
|
||||
function TransformDecl() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TransformDecl.prototype;
|
||||
|
||||
/**
|
||||
* Recursively check all parents for @keyframes
|
||||
*/
|
||||
_proto.keyframeParents = function keyframeParents(decl) {
|
||||
var parent = decl.parent;
|
||||
|
||||
while (parent) {
|
||||
if (parent.type === 'atrule' && parent.name === 'keyframes') {
|
||||
return true;
|
||||
}
|
||||
|
||||
var _parent = parent;
|
||||
parent = _parent.parent;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Is transform contain 3D commands
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.contain3d = function contain3d(decl) {
|
||||
if (decl.prop === 'transform-origin') {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(TransformDecl.functions3d), _step; !(_step = _iterator()).done;) {
|
||||
var func = _step.value;
|
||||
|
||||
if (decl.value.includes(func + "(")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Replace rotateZ to rotate for IE 9
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
decl = _Declaration.prototype.set.call(this, decl, prefix);
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
decl.value = decl.value.replace(/rotatez/gi, 'rotate');
|
||||
}
|
||||
|
||||
return decl;
|
||||
}
|
||||
/**
|
||||
* Don't add prefix for IE in keyframes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix === '-ms-') {
|
||||
if (!this.contain3d(decl) && !this.keyframeParents(decl)) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
} else if (prefix === '-o-') {
|
||||
if (!this.contain3d(decl)) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
} else {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return TransformDecl;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TransformDecl, "names", ['transform', 'transform-origin']);
|
||||
|
||||
_defineProperty(TransformDecl, "functions3d", ['matrix3d', 'translate3d', 'translateZ', 'scale3d', 'scaleZ', 'rotate3d', 'rotateX', 'rotateY', 'perspective']);
|
||||
|
||||
module.exports = TransformDecl;
|
||||
36
build/javascript/node_modules/autoprefixer/lib/hacks/user-select.js
generated
vendored
36
build/javascript/node_modules/autoprefixer/lib/hacks/user-select.js
generated
vendored
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var UserSelect = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(UserSelect, _Declaration);
|
||||
|
||||
function UserSelect() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = UserSelect.prototype;
|
||||
|
||||
/**
|
||||
* Change prefixed value for IE
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix === '-ms-' && decl.value === 'contain') {
|
||||
decl.value = 'element';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return UserSelect;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(UserSelect, "names", ['user-select']);
|
||||
|
||||
module.exports = UserSelect;
|
||||
59
build/javascript/node_modules/autoprefixer/lib/hacks/writing-mode.js
generated
vendored
59
build/javascript/node_modules/autoprefixer/lib/hacks/writing-mode.js
generated
vendored
@@ -1,59 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var WritingMode = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(WritingMode, _Declaration);
|
||||
|
||||
function WritingMode() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = WritingMode.prototype;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix === '-ms-') {
|
||||
var cloned = this.set(this.clone(decl), prefix);
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
var direction = 'ltr';
|
||||
decl.parent.nodes.forEach(function (i) {
|
||||
if (i.prop === 'direction') {
|
||||
if (i.value === 'rtl' || i.value === 'ltr') direction = i.value;
|
||||
}
|
||||
});
|
||||
cloned.value = WritingMode.msValues[direction][decl.value] || decl.value;
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
};
|
||||
|
||||
return WritingMode;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(WritingMode, "names", ['writing-mode']);
|
||||
|
||||
_defineProperty(WritingMode, "msValues", {
|
||||
ltr: {
|
||||
'horizontal-tb': 'lr-tb',
|
||||
'vertical-rl': 'tb-rl',
|
||||
'vertical-lr': 'tb-lr'
|
||||
},
|
||||
rtl: {
|
||||
'horizontal-tb': 'rl-tb',
|
||||
'vertical-rl': 'bt-rl',
|
||||
'vertical-lr': 'bt-lr'
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = WritingMode;
|
||||
149
build/javascript/node_modules/autoprefixer/lib/info.js
generated
vendored
149
build/javascript/node_modules/autoprefixer/lib/info.js
generated
vendored
@@ -1,149 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var browserslist = require('browserslist');
|
||||
|
||||
function capitalize(str) {
|
||||
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
||||
}
|
||||
|
||||
var NAMES = {
|
||||
ie: 'IE',
|
||||
ie_mob: 'IE Mobile',
|
||||
ios_saf: 'iOS',
|
||||
op_mini: 'Opera Mini',
|
||||
op_mob: 'Opera Mobile',
|
||||
and_chr: 'Chrome for Android',
|
||||
and_ff: 'Firefox for Android',
|
||||
and_uc: 'UC for Android'
|
||||
};
|
||||
|
||||
function prefix(name, prefixes, note) {
|
||||
var out = " " + name;
|
||||
if (note) out += ' *';
|
||||
out += ': ';
|
||||
out += prefixes.map(function (i) {
|
||||
return i.replace(/^-(.*)-$/g, '$1');
|
||||
}).join(', ');
|
||||
out += '\n';
|
||||
return out;
|
||||
}
|
||||
|
||||
module.exports = function (prefixes) {
|
||||
if (prefixes.browsers.selected.length === 0) {
|
||||
return 'No browsers selected';
|
||||
}
|
||||
|
||||
var versions = {};
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(prefixes.browsers.selected), _step; !(_step = _iterator()).done;) {
|
||||
var _browser = _step.value;
|
||||
|
||||
var parts = _browser.split(' ');
|
||||
|
||||
var _name2 = parts[0];
|
||||
var version = parts[1];
|
||||
_name2 = NAMES[_name2] || capitalize(_name2);
|
||||
|
||||
if (versions[_name2]) {
|
||||
versions[_name2].push(version);
|
||||
} else {
|
||||
versions[_name2] = [version];
|
||||
}
|
||||
}
|
||||
|
||||
var out = 'Browsers:\n';
|
||||
|
||||
for (var browser in versions) {
|
||||
var list = versions[browser];
|
||||
list = list.sort(function (a, b) {
|
||||
return parseFloat(b) - parseFloat(a);
|
||||
});
|
||||
out += " " + browser + ": " + list.join(', ') + "\n";
|
||||
}
|
||||
|
||||
var coverage = browserslist.coverage(prefixes.browsers.selected);
|
||||
var round = Math.round(coverage * 100) / 100.0;
|
||||
out += "\nThese browsers account for " + round + "% of all users globally\n";
|
||||
var atrules = [];
|
||||
|
||||
for (var name in prefixes.add) {
|
||||
var data = prefixes.add[name];
|
||||
|
||||
if (name[0] === '@' && data.prefixes) {
|
||||
atrules.push(prefix(name, data.prefixes));
|
||||
}
|
||||
}
|
||||
|
||||
if (atrules.length > 0) {
|
||||
out += "\nAt-Rules:\n" + atrules.sort().join('');
|
||||
}
|
||||
|
||||
var selectors = [];
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes.add.selectors), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var selector = _step2.value;
|
||||
|
||||
if (selector.prefixes) {
|
||||
selectors.push(prefix(selector.name, selector.prefixes));
|
||||
}
|
||||
}
|
||||
|
||||
if (selectors.length > 0) {
|
||||
out += "\nSelectors:\n" + selectors.sort().join('');
|
||||
}
|
||||
|
||||
var values = [];
|
||||
var props = [];
|
||||
var hadGrid = false;
|
||||
|
||||
for (var _name in prefixes.add) {
|
||||
var _data = prefixes.add[_name];
|
||||
|
||||
if (_name[0] !== '@' && _data.prefixes) {
|
||||
var grid = _name.indexOf('grid-') === 0;
|
||||
if (grid) hadGrid = true;
|
||||
props.push(prefix(_name, _data.prefixes, grid));
|
||||
}
|
||||
|
||||
if (!Array.isArray(_data.values)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(_data.values), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var value = _step3.value;
|
||||
|
||||
var _grid = value.name.includes('grid');
|
||||
|
||||
if (_grid) hadGrid = true;
|
||||
var string = prefix(value.name, value.prefixes, _grid);
|
||||
|
||||
if (!values.includes(string)) {
|
||||
values.push(string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (props.length > 0) {
|
||||
out += "\nProperties:\n" + props.sort().join('');
|
||||
}
|
||||
|
||||
if (values.length > 0) {
|
||||
out += "\nValues:\n" + values.sort().join('');
|
||||
}
|
||||
|
||||
if (hadGrid) {
|
||||
out += '\n* - Prefixes will be added only on grid: true option.\n';
|
||||
}
|
||||
|
||||
if (!atrules.length && !selectors.length && !props.length && !values.length) {
|
||||
out += '\nAwesome! Your browsers don\'t require any vendor prefixes.' + '\nNow you can remove Autoprefixer from build steps.';
|
||||
}
|
||||
|
||||
return out;
|
||||
};
|
||||
88
build/javascript/node_modules/autoprefixer/lib/old-selector.js
generated
vendored
88
build/javascript/node_modules/autoprefixer/lib/old-selector.js
generated
vendored
@@ -1,88 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var OldSelector = /*#__PURE__*/function () {
|
||||
function OldSelector(selector, prefix) {
|
||||
this.prefix = prefix;
|
||||
this.prefixed = selector.prefixed(this.prefix);
|
||||
this.regexp = selector.regexp(this.prefix);
|
||||
this.prefixeds = selector.possible().map(function (x) {
|
||||
return [selector.prefixed(x), selector.regexp(x)];
|
||||
});
|
||||
this.unprefixed = selector.name;
|
||||
this.nameRegexp = selector.regexp();
|
||||
}
|
||||
/**
|
||||
* Is rule a hack without unprefixed version bottom
|
||||
*/
|
||||
|
||||
|
||||
var _proto = OldSelector.prototype;
|
||||
|
||||
_proto.isHack = function isHack(rule) {
|
||||
var index = rule.parent.index(rule) + 1;
|
||||
var rules = rule.parent.nodes;
|
||||
|
||||
while (index < rules.length) {
|
||||
var before = rules[index].selector;
|
||||
|
||||
if (!before) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (before.includes(this.unprefixed) && before.match(this.nameRegexp)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var some = false;
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(this.prefixeds), _step; !(_step = _iterator()).done;) {
|
||||
var _step$value = _step.value,
|
||||
string = _step$value[0],
|
||||
regexp = _step$value[1];
|
||||
|
||||
if (before.includes(string) && before.match(regexp)) {
|
||||
some = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!some) {
|
||||
return true;
|
||||
}
|
||||
|
||||
index += 1;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Does rule contain an unnecessary prefixed selector
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.check = function check(rule) {
|
||||
if (!rule.selector.includes(this.prefixed)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!rule.selector.match(this.regexp)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.isHack(rule)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
return OldSelector;
|
||||
}();
|
||||
|
||||
module.exports = OldSelector;
|
||||
30
build/javascript/node_modules/autoprefixer/lib/old-value.js
generated
vendored
30
build/javascript/node_modules/autoprefixer/lib/old-value.js
generated
vendored
@@ -1,30 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var OldValue = /*#__PURE__*/function () {
|
||||
function OldValue(unprefixed, prefixed, string, regexp) {
|
||||
this.unprefixed = unprefixed;
|
||||
this.prefixed = prefixed;
|
||||
this.string = string || prefixed;
|
||||
this.regexp = regexp || utils.regexp(prefixed);
|
||||
}
|
||||
/**
|
||||
* Check, that value contain old value
|
||||
*/
|
||||
|
||||
|
||||
var _proto = OldValue.prototype;
|
||||
|
||||
_proto.check = function check(value) {
|
||||
if (value.includes(this.string)) {
|
||||
return !!value.match(this.regexp);
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
return OldValue;
|
||||
}();
|
||||
|
||||
module.exports = OldValue;
|
||||
167
build/javascript/node_modules/autoprefixer/lib/prefixer.js
generated
vendored
167
build/javascript/node_modules/autoprefixer/lib/prefixer.js
generated
vendored
@@ -1,167 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var vendor = require('postcss').vendor;
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var utils = require('./utils');
|
||||
/**
|
||||
* Recursively clone objects
|
||||
*/
|
||||
|
||||
|
||||
function _clone(obj, parent) {
|
||||
var cloned = new obj.constructor();
|
||||
|
||||
for (var _i = 0, _Object$keys = Object.keys(obj || {}); _i < _Object$keys.length; _i++) {
|
||||
var i = _Object$keys[_i];
|
||||
var value = obj[i];
|
||||
|
||||
if (i === 'parent' && typeof value === 'object') {
|
||||
if (parent) {
|
||||
cloned[i] = parent;
|
||||
}
|
||||
} else if (i === 'source' || i === null) {
|
||||
cloned[i] = value;
|
||||
} else if (Array.isArray(value)) {
|
||||
cloned[i] = value.map(function (x) {
|
||||
return _clone(x, cloned);
|
||||
});
|
||||
} else if (i !== '_autoprefixerPrefix' && i !== '_autoprefixerValues') {
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
value = _clone(value, cloned);
|
||||
}
|
||||
|
||||
cloned[i] = value;
|
||||
}
|
||||
}
|
||||
|
||||
return cloned;
|
||||
}
|
||||
|
||||
var Prefixer = /*#__PURE__*/function () {
|
||||
/**
|
||||
* Add hack to selected names
|
||||
*/
|
||||
Prefixer.hack = function hack(klass) {
|
||||
var _this = this;
|
||||
|
||||
if (!this.hacks) {
|
||||
this.hacks = {};
|
||||
}
|
||||
|
||||
return klass.names.map(function (name) {
|
||||
_this.hacks[name] = klass;
|
||||
return _this.hacks[name];
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Load hacks for some names
|
||||
*/
|
||||
;
|
||||
|
||||
Prefixer.load = function load(name, prefixes, all) {
|
||||
var Klass = this.hacks && this.hacks[name];
|
||||
|
||||
if (Klass) {
|
||||
return new Klass(name, prefixes, all);
|
||||
} else {
|
||||
return new this(name, prefixes, all);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Clone node and clean autprefixer custom caches
|
||||
*/
|
||||
;
|
||||
|
||||
Prefixer.clone = function clone(node, overrides) {
|
||||
var cloned = _clone(node);
|
||||
|
||||
for (var name in overrides) {
|
||||
cloned[name] = overrides[name];
|
||||
}
|
||||
|
||||
return cloned;
|
||||
};
|
||||
|
||||
function Prefixer(name, prefixes, all) {
|
||||
this.prefixes = prefixes;
|
||||
this.name = name;
|
||||
this.all = all;
|
||||
}
|
||||
/**
|
||||
* Find prefix in node parents
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Prefixer.prototype;
|
||||
|
||||
_proto.parentPrefix = function parentPrefix(node) {
|
||||
var prefix;
|
||||
|
||||
if (typeof node._autoprefixerPrefix !== 'undefined') {
|
||||
prefix = node._autoprefixerPrefix;
|
||||
} else if (node.type === 'decl' && node.prop[0] === '-') {
|
||||
prefix = vendor.prefix(node.prop);
|
||||
} else if (node.type === 'root') {
|
||||
prefix = false;
|
||||
} else if (node.type === 'rule' && node.selector.includes(':-') && /:(-\w+-)/.test(node.selector)) {
|
||||
prefix = node.selector.match(/:(-\w+-)/)[1];
|
||||
} else if (node.type === 'atrule' && node.name[0] === '-') {
|
||||
prefix = vendor.prefix(node.name);
|
||||
} else {
|
||||
prefix = this.parentPrefix(node.parent);
|
||||
}
|
||||
|
||||
if (!Browsers.prefixes().includes(prefix)) {
|
||||
prefix = false;
|
||||
}
|
||||
|
||||
node._autoprefixerPrefix = prefix;
|
||||
return node._autoprefixerPrefix;
|
||||
}
|
||||
/**
|
||||
* Clone node with prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(node, result) {
|
||||
if (!this.check(node)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var parent = this.parentPrefix(node);
|
||||
var prefixes = this.prefixes.filter(function (prefix) {
|
||||
return !parent || parent === utils.removeNote(prefix);
|
||||
});
|
||||
var added = [];
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(prefixes), _step; !(_step = _iterator()).done;) {
|
||||
var prefix = _step.value;
|
||||
|
||||
if (this.add(node, prefix, added.concat([prefix]), result)) {
|
||||
added.push(prefix);
|
||||
}
|
||||
}
|
||||
|
||||
return added;
|
||||
}
|
||||
/**
|
||||
* Shortcut for Prefixer.clone
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.clone = function clone(node, overrides) {
|
||||
return Prefixer.clone(node, overrides);
|
||||
};
|
||||
|
||||
return Prefixer;
|
||||
}();
|
||||
|
||||
module.exports = Prefixer;
|
||||
471
build/javascript/node_modules/autoprefixer/lib/prefixes.js
generated
vendored
471
build/javascript/node_modules/autoprefixer/lib/prefixes.js
generated
vendored
@@ -1,471 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var vendor = require('postcss').vendor;
|
||||
|
||||
var Declaration = require('./declaration');
|
||||
|
||||
var Resolution = require('./resolution');
|
||||
|
||||
var Transition = require('./transition');
|
||||
|
||||
var Processor = require('./processor');
|
||||
|
||||
var Supports = require('./supports');
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var Selector = require('./selector');
|
||||
|
||||
var AtRule = require('./at-rule');
|
||||
|
||||
var Value = require('./value');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
Selector.hack(require('./hacks/fullscreen'));
|
||||
Selector.hack(require('./hacks/placeholder'));
|
||||
Selector.hack(require('./hacks/placeholder-shown'));
|
||||
Declaration.hack(require('./hacks/flex'));
|
||||
Declaration.hack(require('./hacks/order'));
|
||||
Declaration.hack(require('./hacks/filter'));
|
||||
Declaration.hack(require('./hacks/grid-end'));
|
||||
Declaration.hack(require('./hacks/animation'));
|
||||
Declaration.hack(require('./hacks/flex-flow'));
|
||||
Declaration.hack(require('./hacks/flex-grow'));
|
||||
Declaration.hack(require('./hacks/flex-wrap'));
|
||||
Declaration.hack(require('./hacks/grid-area'));
|
||||
Declaration.hack(require('./hacks/place-self'));
|
||||
Declaration.hack(require('./hacks/grid-start'));
|
||||
Declaration.hack(require('./hacks/align-self'));
|
||||
Declaration.hack(require('./hacks/appearance'));
|
||||
Declaration.hack(require('./hacks/flex-basis'));
|
||||
Declaration.hack(require('./hacks/mask-border'));
|
||||
Declaration.hack(require('./hacks/mask-composite'));
|
||||
Declaration.hack(require('./hacks/align-items'));
|
||||
Declaration.hack(require('./hacks/user-select'));
|
||||
Declaration.hack(require('./hacks/flex-shrink'));
|
||||
Declaration.hack(require('./hacks/break-props'));
|
||||
Declaration.hack(require('./hacks/color-adjust'));
|
||||
Declaration.hack(require('./hacks/writing-mode'));
|
||||
Declaration.hack(require('./hacks/border-image'));
|
||||
Declaration.hack(require('./hacks/align-content'));
|
||||
Declaration.hack(require('./hacks/border-radius'));
|
||||
Declaration.hack(require('./hacks/block-logical'));
|
||||
Declaration.hack(require('./hacks/grid-template'));
|
||||
Declaration.hack(require('./hacks/inline-logical'));
|
||||
Declaration.hack(require('./hacks/grid-row-align'));
|
||||
Declaration.hack(require('./hacks/transform-decl'));
|
||||
Declaration.hack(require('./hacks/flex-direction'));
|
||||
Declaration.hack(require('./hacks/image-rendering'));
|
||||
Declaration.hack(require('./hacks/backdrop-filter'));
|
||||
Declaration.hack(require('./hacks/background-clip'));
|
||||
Declaration.hack(require('./hacks/text-decoration'));
|
||||
Declaration.hack(require('./hacks/justify-content'));
|
||||
Declaration.hack(require('./hacks/background-size'));
|
||||
Declaration.hack(require('./hacks/grid-row-column'));
|
||||
Declaration.hack(require('./hacks/grid-rows-columns'));
|
||||
Declaration.hack(require('./hacks/grid-column-align'));
|
||||
Declaration.hack(require('./hacks/overscroll-behavior'));
|
||||
Declaration.hack(require('./hacks/grid-template-areas'));
|
||||
Declaration.hack(require('./hacks/text-emphasis-position'));
|
||||
Declaration.hack(require('./hacks/text-decoration-skip-ink'));
|
||||
Value.hack(require('./hacks/gradient'));
|
||||
Value.hack(require('./hacks/intrinsic'));
|
||||
Value.hack(require('./hacks/pixelated'));
|
||||
Value.hack(require('./hacks/image-set'));
|
||||
Value.hack(require('./hacks/cross-fade'));
|
||||
Value.hack(require('./hacks/display-flex'));
|
||||
Value.hack(require('./hacks/display-grid'));
|
||||
Value.hack(require('./hacks/filter-value'));
|
||||
var declsCache = {};
|
||||
|
||||
var Prefixes = /*#__PURE__*/function () {
|
||||
function Prefixes(data, browsers, options) {
|
||||
if (options === void 0) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
this.data = data;
|
||||
this.browsers = browsers;
|
||||
this.options = options;
|
||||
|
||||
var _this$preprocess = this.preprocess(this.select(this.data));
|
||||
|
||||
this.add = _this$preprocess[0];
|
||||
this.remove = _this$preprocess[1];
|
||||
this.transition = new Transition(this);
|
||||
this.processor = new Processor(this);
|
||||
}
|
||||
/**
|
||||
* Return clone instance to remove all prefixes
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Prefixes.prototype;
|
||||
|
||||
_proto.cleaner = function cleaner() {
|
||||
if (this.cleanerCache) {
|
||||
return this.cleanerCache;
|
||||
}
|
||||
|
||||
if (this.browsers.selected.length) {
|
||||
var empty = new Browsers(this.browsers.data, []);
|
||||
this.cleanerCache = new Prefixes(this.data, empty, this.options);
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.cleanerCache;
|
||||
}
|
||||
/**
|
||||
* Select prefixes from data, which is necessary for selected browsers
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.select = function select(list) {
|
||||
var _this = this;
|
||||
|
||||
var selected = {
|
||||
add: {},
|
||||
remove: {}
|
||||
};
|
||||
|
||||
var _loop = function _loop(name) {
|
||||
var data = list[name];
|
||||
var add = data.browsers.map(function (i) {
|
||||
var params = i.split(' ');
|
||||
return {
|
||||
browser: params[0] + " " + params[1],
|
||||
note: params[2]
|
||||
};
|
||||
});
|
||||
var notes = add.filter(function (i) {
|
||||
return i.note;
|
||||
}).map(function (i) {
|
||||
return _this.browsers.prefix(i.browser) + " " + i.note;
|
||||
});
|
||||
notes = utils.uniq(notes);
|
||||
add = add.filter(function (i) {
|
||||
return _this.browsers.isSelected(i.browser);
|
||||
}).map(function (i) {
|
||||
var prefix = _this.browsers.prefix(i.browser);
|
||||
|
||||
if (i.note) {
|
||||
return prefix + " " + i.note;
|
||||
} else {
|
||||
return prefix;
|
||||
}
|
||||
});
|
||||
add = _this.sort(utils.uniq(add));
|
||||
|
||||
if (_this.options.flexbox === 'no-2009') {
|
||||
add = add.filter(function (i) {
|
||||
return !i.includes('2009');
|
||||
});
|
||||
}
|
||||
|
||||
var all = data.browsers.map(function (i) {
|
||||
return _this.browsers.prefix(i);
|
||||
});
|
||||
|
||||
if (data.mistakes) {
|
||||
all = all.concat(data.mistakes);
|
||||
}
|
||||
|
||||
all = all.concat(notes);
|
||||
all = utils.uniq(all);
|
||||
|
||||
if (add.length) {
|
||||
selected.add[name] = add;
|
||||
|
||||
if (add.length < all.length) {
|
||||
selected.remove[name] = all.filter(function (i) {
|
||||
return !add.includes(i);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
selected.remove[name] = all;
|
||||
}
|
||||
};
|
||||
|
||||
for (var name in list) {
|
||||
_loop(name);
|
||||
}
|
||||
|
||||
return selected;
|
||||
}
|
||||
/**
|
||||
* Sort vendor prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.sort = function sort(prefixes) {
|
||||
return prefixes.sort(function (a, b) {
|
||||
var aLength = utils.removeNote(a).length;
|
||||
var bLength = utils.removeNote(b).length;
|
||||
|
||||
if (aLength === bLength) {
|
||||
return b.length - a.length;
|
||||
} else {
|
||||
return bLength - aLength;
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Cache prefixes data to fast CSS processing
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.preprocess = function preprocess(selected) {
|
||||
var add = {
|
||||
'selectors': [],
|
||||
'@supports': new Supports(Prefixes, this)
|
||||
};
|
||||
|
||||
for (var name in selected.add) {
|
||||
var prefixes = selected.add[name];
|
||||
|
||||
if (name === '@keyframes' || name === '@viewport') {
|
||||
add[name] = new AtRule(name, prefixes, this);
|
||||
} else if (name === '@resolution') {
|
||||
add[name] = new Resolution(name, prefixes, this);
|
||||
} else if (this.data[name].selector) {
|
||||
add.selectors.push(Selector.load(name, prefixes, this));
|
||||
} else {
|
||||
var props = this.data[name].props;
|
||||
|
||||
if (props) {
|
||||
var value = Value.load(name, prefixes, this);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done;) {
|
||||
var prop = _step.value;
|
||||
|
||||
if (!add[prop]) {
|
||||
add[prop] = {
|
||||
values: []
|
||||
};
|
||||
}
|
||||
|
||||
add[prop].values.push(value);
|
||||
}
|
||||
} else {
|
||||
var values = add[name] && add[name].values || [];
|
||||
add[name] = Declaration.load(name, prefixes, this);
|
||||
add[name].values = values;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var remove = {
|
||||
selectors: []
|
||||
};
|
||||
|
||||
for (var _name in selected.remove) {
|
||||
var _prefixes = selected.remove[_name];
|
||||
|
||||
if (this.data[_name].selector) {
|
||||
var selector = Selector.load(_name, _prefixes);
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(_prefixes), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var prefix = _step2.value;
|
||||
remove.selectors.push(selector.old(prefix));
|
||||
}
|
||||
} else if (_name === '@keyframes' || _name === '@viewport') {
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(_prefixes), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var _prefix = _step3.value;
|
||||
|
||||
var prefixed = "@" + _prefix + _name.slice(1);
|
||||
|
||||
remove[prefixed] = {
|
||||
remove: true
|
||||
};
|
||||
}
|
||||
} else if (_name === '@resolution') {
|
||||
remove[_name] = new Resolution(_name, _prefixes, this);
|
||||
} else {
|
||||
var _props = this.data[_name].props;
|
||||
|
||||
if (_props) {
|
||||
var _value = Value.load(_name, [], this);
|
||||
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(_prefixes), _step4; !(_step4 = _iterator4()).done;) {
|
||||
var _prefix2 = _step4.value;
|
||||
|
||||
var old = _value.old(_prefix2);
|
||||
|
||||
if (old) {
|
||||
for (var _iterator5 = _createForOfIteratorHelperLoose(_props), _step5; !(_step5 = _iterator5()).done;) {
|
||||
var _prop = _step5.value;
|
||||
|
||||
if (!remove[_prop]) {
|
||||
remove[_prop] = {};
|
||||
}
|
||||
|
||||
if (!remove[_prop].values) {
|
||||
remove[_prop].values = [];
|
||||
}
|
||||
|
||||
remove[_prop].values.push(old);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var _iterator6 = _createForOfIteratorHelperLoose(_prefixes), _step6; !(_step6 = _iterator6()).done;) {
|
||||
var p = _step6.value;
|
||||
var olds = this.decl(_name).old(_name, p);
|
||||
|
||||
if (_name === 'align-self') {
|
||||
var a = add[_name] && add[_name].prefixes;
|
||||
|
||||
if (a) {
|
||||
if (p === '-webkit- 2009' && a.includes('-webkit-')) {
|
||||
continue;
|
||||
} else if (p === '-webkit-' && a.includes('-webkit- 2009')) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (var _iterator7 = _createForOfIteratorHelperLoose(olds), _step7; !(_step7 = _iterator7()).done;) {
|
||||
var _prefixed = _step7.value;
|
||||
|
||||
if (!remove[_prefixed]) {
|
||||
remove[_prefixed] = {};
|
||||
}
|
||||
|
||||
remove[_prefixed].remove = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return [add, remove];
|
||||
}
|
||||
/**
|
||||
* Declaration loader with caching
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.decl = function decl(prop) {
|
||||
var decl = declsCache[prop];
|
||||
|
||||
if (decl) {
|
||||
return decl;
|
||||
} else {
|
||||
declsCache[prop] = Declaration.load(prop);
|
||||
return declsCache[prop];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Return unprefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.unprefixed = function unprefixed(prop) {
|
||||
var value = this.normalize(vendor.unprefixed(prop));
|
||||
|
||||
if (value === 'flex-direction') {
|
||||
value = 'flex-flow';
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* Normalize prefix for remover
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return this.decl(prop).normalize(prop);
|
||||
}
|
||||
/**
|
||||
* Return prefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
prop = vendor.unprefixed(prop);
|
||||
return this.decl(prop).prefixed(prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return values, which must be prefixed in selected property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.values = function values(type, prop) {
|
||||
var data = this[type];
|
||||
var global = data['*'] && data['*'].values;
|
||||
var values = data[prop] && data[prop].values;
|
||||
|
||||
if (global && values) {
|
||||
return utils.uniq(global.concat(values));
|
||||
} else {
|
||||
return global || values || [];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Group declaration by unprefixed property to check them
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.group = function group(decl) {
|
||||
var _this2 = this;
|
||||
|
||||
var rule = decl.parent;
|
||||
var index = rule.index(decl);
|
||||
var length = rule.nodes.length;
|
||||
var unprefixed = this.unprefixed(decl.prop);
|
||||
|
||||
var checker = function checker(step, callback) {
|
||||
index += step;
|
||||
|
||||
while (index >= 0 && index < length) {
|
||||
var other = rule.nodes[index];
|
||||
|
||||
if (other.type === 'decl') {
|
||||
if (step === -1 && other.prop === unprefixed) {
|
||||
if (!Browsers.withPrefix(other.value)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (_this2.unprefixed(other.prop) !== unprefixed) {
|
||||
break;
|
||||
} else if (callback(other) === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (step === +1 && other.prop === unprefixed) {
|
||||
if (!Browsers.withPrefix(other.value)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
index += step;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
return {
|
||||
up: function up(callback) {
|
||||
return checker(-1, callback);
|
||||
},
|
||||
down: function down(callback) {
|
||||
return checker(+1, callback);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
return Prefixes;
|
||||
}();
|
||||
|
||||
module.exports = Prefixes;
|
||||
703
build/javascript/node_modules/autoprefixer/lib/processor.js
generated
vendored
703
build/javascript/node_modules/autoprefixer/lib/processor.js
generated
vendored
@@ -1,703 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var parser = require('postcss-value-parser');
|
||||
|
||||
var Value = require('./value');
|
||||
|
||||
var insertAreas = require('./hacks/grid-utils').insertAreas;
|
||||
|
||||
var OLD_LINEAR = /(^|[^-])linear-gradient\(\s*(top|left|right|bottom)/i;
|
||||
var OLD_RADIAL = /(^|[^-])radial-gradient\(\s*\d+(\w*|%)\s+\d+(\w*|%)\s*,/i;
|
||||
var IGNORE_NEXT = /(!\s*)?autoprefixer:\s*ignore\s+next/i;
|
||||
var GRID_REGEX = /(!\s*)?autoprefixer\s*grid:\s*(on|off|(no-)?autoplace)/i;
|
||||
var SIZES = ['width', 'height', 'min-width', 'max-width', 'min-height', 'max-height', 'inline-size', 'min-inline-size', 'max-inline-size', 'block-size', 'min-block-size', 'max-block-size'];
|
||||
|
||||
function hasGridTemplate(decl) {
|
||||
return decl.parent.some(function (i) {
|
||||
return i.prop === 'grid-template' || i.prop === 'grid-template-areas';
|
||||
});
|
||||
}
|
||||
|
||||
function hasRowsAndColumns(decl) {
|
||||
var hasRows = decl.parent.some(function (i) {
|
||||
return i.prop === 'grid-template-rows';
|
||||
});
|
||||
var hasColumns = decl.parent.some(function (i) {
|
||||
return i.prop === 'grid-template-columns';
|
||||
});
|
||||
return hasRows && hasColumns;
|
||||
}
|
||||
|
||||
var Processor = /*#__PURE__*/function () {
|
||||
function Processor(prefixes) {
|
||||
this.prefixes = prefixes;
|
||||
}
|
||||
/**
|
||||
* Add necessary prefixes
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Processor.prototype;
|
||||
|
||||
_proto.add = function add(css, result) {
|
||||
var _this = this;
|
||||
|
||||
// At-rules
|
||||
var resolution = this.prefixes.add['@resolution'];
|
||||
var keyframes = this.prefixes.add['@keyframes'];
|
||||
var viewport = this.prefixes.add['@viewport'];
|
||||
var supports = this.prefixes.add['@supports'];
|
||||
css.walkAtRules(function (rule) {
|
||||
if (rule.name === 'keyframes') {
|
||||
if (!_this.disabled(rule, result)) {
|
||||
return keyframes && keyframes.process(rule);
|
||||
}
|
||||
} else if (rule.name === 'viewport') {
|
||||
if (!_this.disabled(rule, result)) {
|
||||
return viewport && viewport.process(rule);
|
||||
}
|
||||
} else if (rule.name === 'supports') {
|
||||
if (_this.prefixes.options.supports !== false && !_this.disabled(rule, result)) {
|
||||
return supports.process(rule);
|
||||
}
|
||||
} else if (rule.name === 'media' && rule.params.includes('-resolution')) {
|
||||
if (!_this.disabled(rule, result)) {
|
||||
return resolution && resolution.process(rule);
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}); // Selectors
|
||||
|
||||
css.walkRules(function (rule) {
|
||||
if (_this.disabled(rule, result)) return undefined;
|
||||
return _this.prefixes.add.selectors.map(function (selector) {
|
||||
return selector.process(rule, result);
|
||||
});
|
||||
});
|
||||
|
||||
function insideGrid(decl) {
|
||||
return decl.parent.nodes.some(function (node) {
|
||||
if (node.type !== 'decl') return false;
|
||||
var displayGrid = node.prop === 'display' && /(inline-)?grid/.test(node.value);
|
||||
var gridTemplate = node.prop.startsWith('grid-template');
|
||||
var gridGap = /^grid-([A-z]+-)?gap/.test(node.prop);
|
||||
return displayGrid || gridTemplate || gridGap;
|
||||
});
|
||||
}
|
||||
|
||||
function insideFlex(decl) {
|
||||
return decl.parent.some(function (node) {
|
||||
return node.prop === 'display' && /(inline-)?flex/.test(node.value);
|
||||
});
|
||||
}
|
||||
|
||||
var gridPrefixes = this.gridStatus(css, result) && this.prefixes.add['grid-area'] && this.prefixes.add['grid-area'].prefixes;
|
||||
css.walkDecls(function (decl) {
|
||||
if (_this.disabledDecl(decl, result)) return undefined;
|
||||
var parent = decl.parent;
|
||||
var prop = decl.prop;
|
||||
var value = decl.value;
|
||||
|
||||
if (prop === 'grid-row-span') {
|
||||
result.warn('grid-row-span is not part of final Grid Layout. Use grid-row.', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop === 'grid-column-span') {
|
||||
result.warn('grid-column-span is not part of final Grid Layout. Use grid-column.', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop === 'display' && value === 'box') {
|
||||
result.warn('You should write display: flex by final spec ' + 'instead of display: box', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop === 'text-emphasis-position') {
|
||||
if (value === 'under' || value === 'over') {
|
||||
result.warn('You should use 2 values for text-emphasis-position ' + 'For example, `under left` instead of just `under`.', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
} else if (/^(align|justify|place)-(items|content)$/.test(prop) && insideFlex(decl)) {
|
||||
if (value === 'start' || value === 'end') {
|
||||
result.warn(value + " value has mixed support, consider using " + ("flex-" + value + " instead"), {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
} else if (prop === 'text-decoration-skip' && value === 'ink') {
|
||||
result.warn('Replace text-decoration-skip: ink to ' + 'text-decoration-skip-ink: auto, because spec had been changed', {
|
||||
node: decl
|
||||
});
|
||||
} else {
|
||||
if (gridPrefixes && _this.gridStatus(decl, result)) {
|
||||
if (decl.value === 'subgrid') {
|
||||
result.warn('IE does not support subgrid', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
|
||||
if (/^(align|justify|place)-items$/.test(prop) && insideGrid(decl)) {
|
||||
var fixed = prop.replace('-items', '-self');
|
||||
result.warn("IE does not support " + prop + " on grid containers. " + ("Try using " + fixed + " on child elements instead: ") + (decl.parent.selector + " > * { " + fixed + ": " + decl.value + " }"), {
|
||||
node: decl
|
||||
});
|
||||
} else if (/^(align|justify|place)-content$/.test(prop) && insideGrid(decl)) {
|
||||
result.warn("IE does not support " + decl.prop + " on grid containers", {
|
||||
node: decl
|
||||
});
|
||||
} else if (prop === 'display' && decl.value === 'contents') {
|
||||
result.warn('Please do not use display: contents; ' + 'if you have grid setting enabled', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (decl.prop === 'grid-gap') {
|
||||
var status = _this.gridStatus(decl, result);
|
||||
|
||||
if (status === 'autoplace' && !hasRowsAndColumns(decl) && !hasGridTemplate(decl)) {
|
||||
result.warn('grid-gap only works if grid-template(-areas) is being ' + 'used or both rows and columns have been declared ' + 'and cells have not been manually ' + 'placed inside the explicit grid', {
|
||||
node: decl
|
||||
});
|
||||
} else if ((status === true || status === 'no-autoplace') && !hasGridTemplate(decl)) {
|
||||
result.warn('grid-gap only works if grid-template(-areas) is being used', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
} else if (prop === 'grid-auto-columns') {
|
||||
result.warn('grid-auto-columns is not supported by IE', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop === 'grid-auto-rows') {
|
||||
result.warn('grid-auto-rows is not supported by IE', {
|
||||
node: decl
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop === 'grid-auto-flow') {
|
||||
var hasRows = parent.some(function (i) {
|
||||
return i.prop === 'grid-template-rows';
|
||||
});
|
||||
var hasCols = parent.some(function (i) {
|
||||
return i.prop === 'grid-template-columns';
|
||||
});
|
||||
|
||||
if (hasGridTemplate(decl)) {
|
||||
result.warn('grid-auto-flow is not supported by IE', {
|
||||
node: decl
|
||||
});
|
||||
} else if (value.includes('dense')) {
|
||||
result.warn('grid-auto-flow: dense is not supported by IE', {
|
||||
node: decl
|
||||
});
|
||||
} else if (!hasRows && !hasCols) {
|
||||
result.warn('grid-auto-flow works only if grid-template-rows and ' + 'grid-template-columns are present in the same rule', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
|
||||
return undefined;
|
||||
} else if (value.includes('auto-fit')) {
|
||||
result.warn('auto-fit value is not supported by IE', {
|
||||
node: decl,
|
||||
word: 'auto-fit'
|
||||
});
|
||||
return undefined;
|
||||
} else if (value.includes('auto-fill')) {
|
||||
result.warn('auto-fill value is not supported by IE', {
|
||||
node: decl,
|
||||
word: 'auto-fill'
|
||||
});
|
||||
return undefined;
|
||||
} else if (prop.startsWith('grid-template') && value.includes('[')) {
|
||||
result.warn('Autoprefixer currently does not support line names. ' + 'Try using grid-template-areas instead.', {
|
||||
node: decl,
|
||||
word: '['
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (value.includes('radial-gradient')) {
|
||||
if (OLD_RADIAL.test(decl.value)) {
|
||||
result.warn('Gradient has outdated direction syntax. ' + 'New syntax is like `closest-side at 0 0` ' + 'instead of `0 0, closest-side`.', {
|
||||
node: decl
|
||||
});
|
||||
} else {
|
||||
var ast = parser(value);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(ast.nodes), _step; !(_step = _iterator()).done;) {
|
||||
var i = _step.value;
|
||||
|
||||
if (i.type === 'function' && i.value === 'radial-gradient') {
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(i.nodes), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var word = _step2.value;
|
||||
|
||||
if (word.type === 'word') {
|
||||
if (word.value === 'cover') {
|
||||
result.warn('Gradient has outdated direction syntax. ' + 'Replace `cover` to `farthest-corner`.', {
|
||||
node: decl
|
||||
});
|
||||
} else if (word.value === 'contain') {
|
||||
result.warn('Gradient has outdated direction syntax. ' + 'Replace `contain` to `closest-side`.', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (value.includes('linear-gradient')) {
|
||||
if (OLD_LINEAR.test(value)) {
|
||||
result.warn('Gradient has outdated direction syntax. ' + 'New syntax is like `to left` instead of `right`.', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (SIZES.includes(decl.prop)) {
|
||||
if (!decl.value.includes('-fill-available')) {
|
||||
if (decl.value.includes('fill-available')) {
|
||||
result.warn('Replace fill-available to stretch, ' + 'because spec had been changed', {
|
||||
node: decl
|
||||
});
|
||||
} else if (decl.value.includes('fill')) {
|
||||
var _ast = parser(value);
|
||||
|
||||
if (_ast.nodes.some(function (i) {
|
||||
return i.type === 'word' && i.value === 'fill';
|
||||
})) {
|
||||
result.warn('Replace fill to stretch, because spec had been changed', {
|
||||
node: decl
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var prefixer;
|
||||
|
||||
if (decl.prop === 'transition' || decl.prop === 'transition-property') {
|
||||
// Transition
|
||||
return _this.prefixes.transition.add(decl, result);
|
||||
} else if (decl.prop === 'align-self') {
|
||||
// align-self flexbox or grid
|
||||
var display = _this.displayType(decl);
|
||||
|
||||
if (display !== 'grid' && _this.prefixes.options.flexbox !== false) {
|
||||
prefixer = _this.prefixes.add['align-self'];
|
||||
|
||||
if (prefixer && prefixer.prefixes) {
|
||||
prefixer.process(decl);
|
||||
}
|
||||
}
|
||||
|
||||
if (_this.gridStatus(decl, result) !== false) {
|
||||
prefixer = _this.prefixes.add['grid-row-align'];
|
||||
|
||||
if (prefixer && prefixer.prefixes) {
|
||||
return prefixer.process(decl, result);
|
||||
}
|
||||
}
|
||||
} else if (decl.prop === 'justify-self') {
|
||||
// justify-self flexbox or grid
|
||||
if (_this.gridStatus(decl, result) !== false) {
|
||||
prefixer = _this.prefixes.add['grid-column-align'];
|
||||
|
||||
if (prefixer && prefixer.prefixes) {
|
||||
return prefixer.process(decl, result);
|
||||
}
|
||||
}
|
||||
} else if (decl.prop === 'place-self') {
|
||||
prefixer = _this.prefixes.add['place-self'];
|
||||
|
||||
if (prefixer && prefixer.prefixes && _this.gridStatus(decl, result) !== false) {
|
||||
return prefixer.process(decl, result);
|
||||
}
|
||||
} else {
|
||||
// Properties
|
||||
prefixer = _this.prefixes.add[decl.prop];
|
||||
|
||||
if (prefixer && prefixer.prefixes) {
|
||||
return prefixer.process(decl, result);
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}); // Insert grid-area prefixes. We need to be able to store the different
|
||||
// rules as a data and hack API is not enough for this
|
||||
|
||||
if (this.gridStatus(css, result)) {
|
||||
insertAreas(css, this.disabled);
|
||||
} // Values
|
||||
|
||||
|
||||
return css.walkDecls(function (decl) {
|
||||
if (_this.disabledValue(decl, result)) return;
|
||||
|
||||
var unprefixed = _this.prefixes.unprefixed(decl.prop);
|
||||
|
||||
var list = _this.prefixes.values('add', unprefixed);
|
||||
|
||||
if (Array.isArray(list)) {
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(list), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var value = _step3.value;
|
||||
if (value.process) value.process(decl, result);
|
||||
}
|
||||
}
|
||||
|
||||
Value.save(_this.prefixes, decl);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Remove unnecessary pefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.remove = function remove(css, result) {
|
||||
var _this2 = this;
|
||||
|
||||
// At-rules
|
||||
var resolution = this.prefixes.remove['@resolution'];
|
||||
css.walkAtRules(function (rule, i) {
|
||||
if (_this2.prefixes.remove["@" + rule.name]) {
|
||||
if (!_this2.disabled(rule, result)) {
|
||||
rule.parent.removeChild(i);
|
||||
}
|
||||
} else if (rule.name === 'media' && rule.params.includes('-resolution') && resolution) {
|
||||
resolution.clean(rule);
|
||||
}
|
||||
}); // Selectors
|
||||
|
||||
var _loop = function _loop() {
|
||||
var checker = _step4.value;
|
||||
css.walkRules(function (rule, i) {
|
||||
if (checker.check(rule)) {
|
||||
if (!_this2.disabled(rule, result)) {
|
||||
rule.parent.removeChild(i);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(this.prefixes.remove.selectors), _step4; !(_step4 = _iterator4()).done;) {
|
||||
_loop();
|
||||
}
|
||||
|
||||
return css.walkDecls(function (decl, i) {
|
||||
if (_this2.disabled(decl, result)) return;
|
||||
var rule = decl.parent;
|
||||
|
||||
var unprefixed = _this2.prefixes.unprefixed(decl.prop); // Transition
|
||||
|
||||
|
||||
if (decl.prop === 'transition' || decl.prop === 'transition-property') {
|
||||
_this2.prefixes.transition.remove(decl);
|
||||
} // Properties
|
||||
|
||||
|
||||
if (_this2.prefixes.remove[decl.prop] && _this2.prefixes.remove[decl.prop].remove) {
|
||||
var notHack = _this2.prefixes.group(decl).down(function (other) {
|
||||
return _this2.prefixes.normalize(other.prop) === unprefixed;
|
||||
});
|
||||
|
||||
if (unprefixed === 'flex-flow') {
|
||||
notHack = true;
|
||||
}
|
||||
|
||||
if (decl.prop === '-webkit-box-orient') {
|
||||
var hacks = {
|
||||
'flex-direction': true,
|
||||
'flex-flow': true
|
||||
};
|
||||
if (!decl.parent.some(function (j) {
|
||||
return hacks[j.prop];
|
||||
})) return;
|
||||
}
|
||||
|
||||
if (notHack && !_this2.withHackValue(decl)) {
|
||||
if (decl.raw('before').includes('\n')) {
|
||||
_this2.reduceSpaces(decl);
|
||||
}
|
||||
|
||||
rule.removeChild(i);
|
||||
return;
|
||||
}
|
||||
} // Values
|
||||
|
||||
|
||||
for (var _iterator5 = _createForOfIteratorHelperLoose(_this2.prefixes.values('remove', unprefixed)), _step5; !(_step5 = _iterator5()).done;) {
|
||||
var checker = _step5.value;
|
||||
if (!checker.check) continue;
|
||||
if (!checker.check(decl.value)) continue;
|
||||
unprefixed = checker.unprefixed;
|
||||
|
||||
var _notHack = _this2.prefixes.group(decl).down(function (other) {
|
||||
return other.value.includes(unprefixed);
|
||||
});
|
||||
|
||||
if (_notHack) {
|
||||
rule.removeChild(i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Some rare old values, which is not in standard
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.withHackValue = function withHackValue(decl) {
|
||||
return decl.prop === '-webkit-background-clip' && decl.value === 'text';
|
||||
}
|
||||
/**
|
||||
* Check for grid/flexbox options.
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.disabledValue = function disabledValue(node, result) {
|
||||
if (this.gridStatus(node, result) === false && node.type === 'decl') {
|
||||
if (node.prop === 'display' && node.value.includes('grid')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.prefixes.options.flexbox === false && node.type === 'decl') {
|
||||
if (node.prop === 'display' && node.value.includes('flex')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return this.disabled(node, result);
|
||||
}
|
||||
/**
|
||||
* Check for grid/flexbox options.
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.disabledDecl = function disabledDecl(node, result) {
|
||||
if (this.gridStatus(node, result) === false && node.type === 'decl') {
|
||||
if (node.prop.includes('grid') || node.prop === 'justify-items') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.prefixes.options.flexbox === false && node.type === 'decl') {
|
||||
var other = ['order', 'justify-content', 'align-items', 'align-content'];
|
||||
|
||||
if (node.prop.includes('flex') || other.includes(node.prop)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return this.disabled(node, result);
|
||||
}
|
||||
/**
|
||||
* Check for control comment and global options
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.disabled = function disabled(node, result) {
|
||||
if (!node) return false;
|
||||
|
||||
if (node._autoprefixerDisabled !== undefined) {
|
||||
return node._autoprefixerDisabled;
|
||||
}
|
||||
|
||||
if (node.parent) {
|
||||
var p = node.prev();
|
||||
|
||||
if (p && p.type === 'comment' && IGNORE_NEXT.test(p.text)) {
|
||||
node._autoprefixerDisabled = true;
|
||||
node._autoprefixerSelfDisabled = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
var value = null;
|
||||
|
||||
if (node.nodes) {
|
||||
var status;
|
||||
node.each(function (i) {
|
||||
if (i.type !== 'comment') return;
|
||||
|
||||
if (/(!\s*)?autoprefixer:\s*(off|on)/i.test(i.text)) {
|
||||
if (typeof status !== 'undefined') {
|
||||
result.warn('Second Autoprefixer control comment ' + 'was ignored. Autoprefixer applies control ' + 'comment to whole block, not to next rules.', {
|
||||
node: i
|
||||
});
|
||||
} else {
|
||||
status = /on/i.test(i.text);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (status !== undefined) {
|
||||
value = !status;
|
||||
}
|
||||
}
|
||||
|
||||
if (!node.nodes || value === null) {
|
||||
if (node.parent) {
|
||||
var isParentDisabled = this.disabled(node.parent, result);
|
||||
|
||||
if (node.parent._autoprefixerSelfDisabled === true) {
|
||||
value = false;
|
||||
} else {
|
||||
value = isParentDisabled;
|
||||
}
|
||||
} else {
|
||||
value = false;
|
||||
}
|
||||
}
|
||||
|
||||
node._autoprefixerDisabled = value;
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* Normalize spaces in cascade declaration group
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.reduceSpaces = function reduceSpaces(decl) {
|
||||
var stop = false;
|
||||
this.prefixes.group(decl).up(function () {
|
||||
stop = true;
|
||||
return true;
|
||||
});
|
||||
|
||||
if (stop) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parts = decl.raw('before').split('\n');
|
||||
var prevMin = parts[parts.length - 1].length;
|
||||
var diff = false;
|
||||
this.prefixes.group(decl).down(function (other) {
|
||||
parts = other.raw('before').split('\n');
|
||||
var last = parts.length - 1;
|
||||
|
||||
if (parts[last].length > prevMin) {
|
||||
if (diff === false) {
|
||||
diff = parts[last].length - prevMin;
|
||||
}
|
||||
|
||||
parts[last] = parts[last].slice(0, -diff);
|
||||
other.raws.before = parts.join('\n');
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Is it flebox or grid rule
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.displayType = function displayType(decl) {
|
||||
for (var _iterator6 = _createForOfIteratorHelperLoose(decl.parent.nodes), _step6; !(_step6 = _iterator6()).done;) {
|
||||
var i = _step6.value;
|
||||
|
||||
if (i.prop !== 'display') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (i.value.includes('flex')) {
|
||||
return 'flex';
|
||||
}
|
||||
|
||||
if (i.value.includes('grid')) {
|
||||
return 'grid';
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Set grid option via control comment
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.gridStatus = function gridStatus(node, result) {
|
||||
if (!node) return false;
|
||||
|
||||
if (node._autoprefixerGridStatus !== undefined) {
|
||||
return node._autoprefixerGridStatus;
|
||||
}
|
||||
|
||||
var value = null;
|
||||
|
||||
if (node.nodes) {
|
||||
var status;
|
||||
node.each(function (i) {
|
||||
if (i.type !== 'comment') return;
|
||||
|
||||
if (GRID_REGEX.test(i.text)) {
|
||||
var hasAutoplace = /:\s*autoplace/i.test(i.text);
|
||||
var noAutoplace = /no-autoplace/i.test(i.text);
|
||||
|
||||
if (typeof status !== 'undefined') {
|
||||
result.warn('Second Autoprefixer grid control comment was ' + 'ignored. Autoprefixer applies control comments to the whole ' + 'block, not to the next rules.', {
|
||||
node: i
|
||||
});
|
||||
} else if (hasAutoplace) {
|
||||
status = 'autoplace';
|
||||
} else if (noAutoplace) {
|
||||
status = true;
|
||||
} else {
|
||||
status = /on/i.test(i.text);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (status !== undefined) {
|
||||
value = status;
|
||||
}
|
||||
}
|
||||
|
||||
if (node.type === 'atrule' && node.name === 'supports') {
|
||||
var params = node.params;
|
||||
|
||||
if (params.includes('grid') && params.includes('auto')) {
|
||||
value = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!node.nodes || value === null) {
|
||||
if (node.parent) {
|
||||
var isParentGrid = this.gridStatus(node.parent, result);
|
||||
|
||||
if (node.parent._autoprefixerSelfDisabled === true) {
|
||||
value = false;
|
||||
} else {
|
||||
value = isParentGrid;
|
||||
}
|
||||
} else if (typeof this.prefixes.options.grid !== 'undefined') {
|
||||
value = this.prefixes.options.grid;
|
||||
} else if (typeof process.env.AUTOPREFIXER_GRID !== 'undefined') {
|
||||
if (process.env.AUTOPREFIXER_GRID === 'autoplace') {
|
||||
value = 'autoplace';
|
||||
} else {
|
||||
value = true;
|
||||
}
|
||||
} else {
|
||||
value = false;
|
||||
}
|
||||
}
|
||||
|
||||
node._autoprefixerGridStatus = value;
|
||||
return value;
|
||||
};
|
||||
|
||||
return Processor;
|
||||
}();
|
||||
|
||||
module.exports = Processor;
|
||||
125
build/javascript/node_modules/autoprefixer/lib/resolution.js
generated
vendored
125
build/javascript/node_modules/autoprefixer/lib/resolution.js
generated
vendored
@@ -1,125 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
var n2f = require('num2fraction');
|
||||
|
||||
var Prefixer = require('./prefixer');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var REGEXP = /(min|max)-resolution\s*:\s*\d*\.?\d+(dppx|dpi|x)/gi;
|
||||
var SPLIT = /(min|max)-resolution(\s*:\s*)(\d*\.?\d+)(dppx|dpi|x)/i;
|
||||
|
||||
var Resolution = /*#__PURE__*/function (_Prefixer) {
|
||||
_inheritsLoose(Resolution, _Prefixer);
|
||||
|
||||
function Resolution() {
|
||||
return _Prefixer.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Resolution.prototype;
|
||||
|
||||
/**
|
||||
* Return prefixed query name
|
||||
*/
|
||||
_proto.prefixName = function prefixName(prefix, name) {
|
||||
if (prefix === '-moz-') {
|
||||
return name + '--moz-device-pixel-ratio';
|
||||
} else {
|
||||
return prefix + name + '-device-pixel-ratio';
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Return prefixed query
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixQuery = function prefixQuery(prefix, name, colon, value, units) {
|
||||
if (units === 'dpi') {
|
||||
value = Number(value / 96);
|
||||
}
|
||||
|
||||
if (prefix === '-o-') {
|
||||
value = n2f(value);
|
||||
}
|
||||
|
||||
return this.prefixName(prefix, name) + colon + value;
|
||||
}
|
||||
/**
|
||||
* Remove prefixed queries
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.clean = function clean(rule) {
|
||||
var _this = this;
|
||||
|
||||
if (!this.bad) {
|
||||
this.bad = [];
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(this.prefixes), _step; !(_step = _iterator()).done;) {
|
||||
var prefix = _step.value;
|
||||
this.bad.push(this.prefixName(prefix, 'min'));
|
||||
this.bad.push(this.prefixName(prefix, 'max'));
|
||||
}
|
||||
}
|
||||
|
||||
rule.params = utils.editList(rule.params, function (queries) {
|
||||
return queries.filter(function (query) {
|
||||
return _this.bad.every(function (i) {
|
||||
return !query.includes(i);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add prefixed queries
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(rule) {
|
||||
var _this2 = this;
|
||||
|
||||
var parent = this.parentPrefix(rule);
|
||||
var prefixes = parent ? [parent] : this.prefixes;
|
||||
rule.params = utils.editList(rule.params, function (origin, prefixed) {
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(origin), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var query = _step2.value;
|
||||
|
||||
if (!query.includes('min-resolution') && !query.includes('max-resolution')) {
|
||||
prefixed.push(query);
|
||||
continue;
|
||||
}
|
||||
|
||||
var _loop = function _loop() {
|
||||
var prefix = _step3.value;
|
||||
var processed = query.replace(REGEXP, function (str) {
|
||||
var parts = str.match(SPLIT);
|
||||
return _this2.prefixQuery(prefix, parts[1], parts[2], parts[3], parts[4]);
|
||||
});
|
||||
prefixed.push(processed);
|
||||
};
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(prefixes), _step3; !(_step3 = _iterator3()).done;) {
|
||||
_loop();
|
||||
}
|
||||
|
||||
prefixed.push(query);
|
||||
}
|
||||
|
||||
return utils.uniq(prefixed);
|
||||
});
|
||||
};
|
||||
|
||||
return Resolution;
|
||||
}(Prefixer);
|
||||
|
||||
module.exports = Resolution;
|
||||
198
build/javascript/node_modules/autoprefixer/lib/selector.js
generated
vendored
198
build/javascript/node_modules/autoprefixer/lib/selector.js
generated
vendored
@@ -1,198 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
var _require = require('postcss'),
|
||||
list = _require.list;
|
||||
|
||||
var OldSelector = require('./old-selector');
|
||||
|
||||
var Prefixer = require('./prefixer');
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var Selector = /*#__PURE__*/function (_Prefixer) {
|
||||
_inheritsLoose(Selector, _Prefixer);
|
||||
|
||||
function Selector(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Prefixer.call(this, name, prefixes, all) || this;
|
||||
_this.regexpCache = {};
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* Is rule selectors need to be prefixed
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Selector.prototype;
|
||||
|
||||
_proto.check = function check(rule) {
|
||||
if (rule.selector.includes(this.name)) {
|
||||
return !!rule.selector.match(this.regexp());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Return prefixed version of selector
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
return this.name.replace(/^(\W*)/, "$1" + prefix);
|
||||
}
|
||||
/**
|
||||
* Lazy loadRegExp for name
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.regexp = function regexp(prefix) {
|
||||
if (this.regexpCache[prefix]) {
|
||||
return this.regexpCache[prefix];
|
||||
}
|
||||
|
||||
var name = prefix ? this.prefixed(prefix) : this.name;
|
||||
this.regexpCache[prefix] = new RegExp("(^|[^:\"'=])" + utils.escapeRegexp(name), 'gi');
|
||||
return this.regexpCache[prefix];
|
||||
}
|
||||
/**
|
||||
* All possible prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.possible = function possible() {
|
||||
return Browsers.prefixes();
|
||||
}
|
||||
/**
|
||||
* Return all possible selector prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixeds = function prefixeds(rule) {
|
||||
var _this2 = this;
|
||||
|
||||
if (rule._autoprefixerPrefixeds) {
|
||||
if (rule._autoprefixerPrefixeds[this.name]) {
|
||||
return rule._autoprefixerPrefixeds;
|
||||
}
|
||||
} else {
|
||||
rule._autoprefixerPrefixeds = {};
|
||||
}
|
||||
|
||||
var prefixeds = {};
|
||||
|
||||
if (rule.selector.includes(',')) {
|
||||
var ruleParts = list.comma(rule.selector);
|
||||
var toProcess = ruleParts.filter(function (el) {
|
||||
return el.includes(_this2.name);
|
||||
});
|
||||
|
||||
var _loop = function _loop() {
|
||||
var prefix = _step.value;
|
||||
prefixeds[prefix] = toProcess.map(function (el) {
|
||||
return _this2.replace(el, prefix);
|
||||
}).join(', ');
|
||||
};
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(this.possible()), _step; !(_step = _iterator()).done;) {
|
||||
_loop();
|
||||
}
|
||||
} else {
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(this.possible()), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var prefix = _step2.value;
|
||||
prefixeds[prefix] = this.replace(rule.selector, prefix);
|
||||
}
|
||||
}
|
||||
|
||||
rule._autoprefixerPrefixeds[this.name] = prefixeds;
|
||||
return rule._autoprefixerPrefixeds;
|
||||
}
|
||||
/**
|
||||
* Is rule already prefixed before
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.already = function already(rule, prefixeds, prefix) {
|
||||
var index = rule.parent.index(rule) - 1;
|
||||
|
||||
while (index >= 0) {
|
||||
var before = rule.parent.nodes[index];
|
||||
|
||||
if (before.type !== 'rule') {
|
||||
return false;
|
||||
}
|
||||
|
||||
var some = false;
|
||||
|
||||
for (var key in prefixeds[this.name]) {
|
||||
var prefixed = prefixeds[this.name][key];
|
||||
|
||||
if (before.selector === prefixed) {
|
||||
if (prefix === key) {
|
||||
return true;
|
||||
} else {
|
||||
some = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!some) {
|
||||
return false;
|
||||
}
|
||||
|
||||
index -= 1;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Replace selectors by prefixed one
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replace = function replace(selector, prefix) {
|
||||
return selector.replace(this.regexp(), "$1" + this.prefixed(prefix));
|
||||
}
|
||||
/**
|
||||
* Clone and add prefixes for at-rule
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(rule, prefix) {
|
||||
var prefixeds = this.prefixeds(rule);
|
||||
|
||||
if (this.already(rule, prefixeds, prefix)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var cloned = this.clone(rule, {
|
||||
selector: prefixeds[this.name][prefix]
|
||||
});
|
||||
rule.parent.insertBefore(rule, cloned);
|
||||
}
|
||||
/**
|
||||
* Return function to fast find prefixed selector
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
return new OldSelector(this, prefix);
|
||||
};
|
||||
|
||||
return Selector;
|
||||
}(Prefixer);
|
||||
|
||||
module.exports = Selector;
|
||||
346
build/javascript/node_modules/autoprefixer/lib/supports.js
generated
vendored
346
build/javascript/node_modules/autoprefixer/lib/supports.js
generated
vendored
@@ -1,346 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var postcss = require('postcss');
|
||||
|
||||
var data = require('caniuse-lite').feature(require('caniuse-lite/data/features/css-featurequeries.js'));
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var brackets = require('./brackets');
|
||||
|
||||
var Value = require('./value');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var supported = [];
|
||||
|
||||
for (var browser in data.stats) {
|
||||
var versions = data.stats[browser];
|
||||
|
||||
for (var version in versions) {
|
||||
var support = versions[version];
|
||||
|
||||
if (/y/.test(support)) {
|
||||
supported.push(browser + ' ' + version);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var Supports = /*#__PURE__*/function () {
|
||||
function Supports(Prefixes, all) {
|
||||
this.Prefixes = Prefixes;
|
||||
this.all = all;
|
||||
}
|
||||
/**
|
||||
* Return prefixer only with @supports supported browsers
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Supports.prototype;
|
||||
|
||||
_proto.prefixer = function prefixer() {
|
||||
if (this.prefixerCache) {
|
||||
return this.prefixerCache;
|
||||
}
|
||||
|
||||
var filtered = this.all.browsers.selected.filter(function (i) {
|
||||
return supported.includes(i);
|
||||
});
|
||||
var browsers = new Browsers(this.all.browsers.data, filtered, this.all.options);
|
||||
this.prefixerCache = new this.Prefixes(this.all.data, browsers, this.all.options);
|
||||
return this.prefixerCache;
|
||||
}
|
||||
/**
|
||||
* Parse string into declaration property and value
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.parse = function parse(str) {
|
||||
var parts = str.split(':');
|
||||
var prop = parts[0];
|
||||
var value = parts[1];
|
||||
if (!value) value = '';
|
||||
return [prop.trim(), value.trim()];
|
||||
}
|
||||
/**
|
||||
* Create virtual rule to process it by prefixer
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.virtual = function virtual(str) {
|
||||
var _this$parse = this.parse(str),
|
||||
prop = _this$parse[0],
|
||||
value = _this$parse[1];
|
||||
|
||||
var rule = postcss.parse('a{}').first;
|
||||
rule.append({
|
||||
prop: prop,
|
||||
value: value,
|
||||
raws: {
|
||||
before: ''
|
||||
}
|
||||
});
|
||||
return rule;
|
||||
}
|
||||
/**
|
||||
* Return array of Declaration with all necessary prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(str) {
|
||||
var rule = this.virtual(str);
|
||||
|
||||
if (this.disabled(rule.first)) {
|
||||
return rule.nodes;
|
||||
}
|
||||
|
||||
var result = {
|
||||
warn: function warn() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
var prefixer = this.prefixer().add[rule.first.prop];
|
||||
prefixer && prefixer.process && prefixer.process(rule.first, result);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(rule.nodes), _step; !(_step = _iterator()).done;) {
|
||||
var decl = _step.value;
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(this.prefixer().values('add', rule.first.prop)), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var value = _step2.value;
|
||||
value.process(decl);
|
||||
}
|
||||
|
||||
Value.save(this.all, decl);
|
||||
}
|
||||
|
||||
return rule.nodes;
|
||||
}
|
||||
/**
|
||||
* Return true if brackets node is "not" word
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isNot = function isNot(node) {
|
||||
return typeof node === 'string' && /not\s*/i.test(node);
|
||||
}
|
||||
/**
|
||||
* Return true if brackets node is "or" word
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isOr = function isOr(node) {
|
||||
return typeof node === 'string' && /\s*or\s*/i.test(node);
|
||||
}
|
||||
/**
|
||||
* Return true if brackets node is (prop: value)
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isProp = function isProp(node) {
|
||||
return typeof node === 'object' && node.length === 1 && typeof node[0] === 'string';
|
||||
}
|
||||
/**
|
||||
* Return true if prefixed property has no unprefixed
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isHack = function isHack(all, unprefixed) {
|
||||
var check = new RegExp("(\\(|\\s)" + utils.escapeRegexp(unprefixed) + ":");
|
||||
return !check.test(all);
|
||||
}
|
||||
/**
|
||||
* Return true if we need to remove node
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.toRemove = function toRemove(str, all) {
|
||||
var _this$parse2 = this.parse(str),
|
||||
prop = _this$parse2[0],
|
||||
value = _this$parse2[1];
|
||||
|
||||
var unprefixed = this.all.unprefixed(prop);
|
||||
var cleaner = this.all.cleaner();
|
||||
|
||||
if (cleaner.remove[prop] && cleaner.remove[prop].remove && !this.isHack(all, unprefixed)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(cleaner.values('remove', unprefixed)), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var checker = _step3.value;
|
||||
|
||||
if (checker.check(value)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Remove all unnecessary prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.remove = function remove(nodes, all) {
|
||||
var i = 0;
|
||||
|
||||
while (i < nodes.length) {
|
||||
if (!this.isNot(nodes[i - 1]) && this.isProp(nodes[i]) && this.isOr(nodes[i + 1])) {
|
||||
if (this.toRemove(nodes[i][0], all)) {
|
||||
nodes.splice(i, 2);
|
||||
continue;
|
||||
}
|
||||
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (typeof nodes[i] === 'object') {
|
||||
nodes[i] = this.remove(nodes[i], all);
|
||||
}
|
||||
|
||||
i += 1;
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
/**
|
||||
* Clean brackets with one child
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.cleanBrackets = function cleanBrackets(nodes) {
|
||||
var _this = this;
|
||||
|
||||
return nodes.map(function (i) {
|
||||
if (typeof i !== 'object') {
|
||||
return i;
|
||||
}
|
||||
|
||||
if (i.length === 1 && typeof i[0] === 'object') {
|
||||
return _this.cleanBrackets(i[0]);
|
||||
}
|
||||
|
||||
return _this.cleanBrackets(i);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add " or " between properties and convert it to brackets format
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.convert = function convert(progress) {
|
||||
var result = [''];
|
||||
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(progress), _step4; !(_step4 = _iterator4()).done;) {
|
||||
var i = _step4.value;
|
||||
result.push([i.prop + ": " + i.value]);
|
||||
result.push(' or ');
|
||||
}
|
||||
|
||||
result[result.length - 1] = '';
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Compress value functions into a string nodes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(nodes) {
|
||||
var _this2 = this;
|
||||
|
||||
if (typeof nodes !== 'object') {
|
||||
return nodes;
|
||||
}
|
||||
|
||||
nodes = nodes.filter(function (i) {
|
||||
return i !== '';
|
||||
});
|
||||
|
||||
if (typeof nodes[0] === 'string' && nodes[0].includes(':')) {
|
||||
return [brackets.stringify(nodes)];
|
||||
}
|
||||
|
||||
return nodes.map(function (i) {
|
||||
return _this2.normalize(i);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add prefixes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(nodes, all) {
|
||||
var _this3 = this;
|
||||
|
||||
return nodes.map(function (i) {
|
||||
if (_this3.isProp(i)) {
|
||||
var prefixed = _this3.prefixed(i[0]);
|
||||
|
||||
if (prefixed.length > 1) {
|
||||
return _this3.convert(prefixed);
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
if (typeof i === 'object') {
|
||||
return _this3.add(i, all);
|
||||
}
|
||||
|
||||
return i;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add prefixed declaration
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(rule) {
|
||||
var ast = brackets.parse(rule.params);
|
||||
ast = this.normalize(ast);
|
||||
ast = this.remove(ast, rule.params);
|
||||
ast = this.add(ast, rule.params);
|
||||
ast = this.cleanBrackets(ast);
|
||||
rule.params = brackets.stringify(ast);
|
||||
}
|
||||
/**
|
||||
* Check global options
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.disabled = function disabled(node) {
|
||||
if (!this.all.options.grid) {
|
||||
if (node.prop === 'display' && node.value.includes('grid')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (node.prop.includes('grid') || node.prop === 'justify-items') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.all.options.flexbox === false) {
|
||||
if (node.prop === 'display' && node.value.includes('flex')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var other = ['order', 'justify-content', 'align-items', 'align-content'];
|
||||
|
||||
if (node.prop.includes('flex') || other.includes(node.prop)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
return Supports;
|
||||
}();
|
||||
|
||||
module.exports = Supports;
|
||||
411
build/javascript/node_modules/autoprefixer/lib/transition.js
generated
vendored
411
build/javascript/node_modules/autoprefixer/lib/transition.js
generated
vendored
@@ -1,411 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var parser = require('postcss-value-parser');
|
||||
|
||||
var vendor = require('postcss').vendor;
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
var Browsers = require('./browsers');
|
||||
|
||||
var Transition = /*#__PURE__*/function () {
|
||||
function Transition(prefixes) {
|
||||
_defineProperty(this, "props", ['transition', 'transition-property']);
|
||||
|
||||
this.prefixes = prefixes;
|
||||
}
|
||||
/**
|
||||
* Process transition and add prefixes for all necessary properties
|
||||
*/
|
||||
|
||||
|
||||
var _proto = Transition.prototype;
|
||||
|
||||
_proto.add = function add(decl, result) {
|
||||
var _this = this;
|
||||
|
||||
var prefix, prop;
|
||||
var add = this.prefixes.add[decl.prop];
|
||||
var vendorPrefixes = this.ruleVendorPrefixes(decl);
|
||||
var declPrefixes = vendorPrefixes || add && add.prefixes || [];
|
||||
var params = this.parse(decl.value);
|
||||
var names = params.map(function (i) {
|
||||
return _this.findProp(i);
|
||||
});
|
||||
var added = [];
|
||||
|
||||
if (names.some(function (i) {
|
||||
return i[0] === '-';
|
||||
})) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(params), _step; !(_step = _iterator()).done;) {
|
||||
var param = _step.value;
|
||||
prop = this.findProp(param);
|
||||
if (prop[0] === '-') continue;
|
||||
var prefixer = this.prefixes.add[prop];
|
||||
if (!prefixer || !prefixer.prefixes) continue;
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(prefixer.prefixes), _step3; !(_step3 = _iterator3()).done;) {
|
||||
prefix = _step3.value;
|
||||
|
||||
if (vendorPrefixes && !vendorPrefixes.some(function (p) {
|
||||
return prefix.includes(p);
|
||||
})) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var prefixed = this.prefixes.prefixed(prop, prefix);
|
||||
|
||||
if (prefixed !== '-ms-transform' && !names.includes(prefixed)) {
|
||||
if (!this.disabled(prop, prefix)) {
|
||||
added.push(this.clone(prop, prefixed, param));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
params = params.concat(added);
|
||||
var value = this.stringify(params);
|
||||
var webkitClean = this.stringify(this.cleanFromUnprefixed(params, '-webkit-'));
|
||||
|
||||
if (declPrefixes.includes('-webkit-')) {
|
||||
this.cloneBefore(decl, "-webkit-" + decl.prop, webkitClean);
|
||||
}
|
||||
|
||||
this.cloneBefore(decl, decl.prop, webkitClean);
|
||||
|
||||
if (declPrefixes.includes('-o-')) {
|
||||
var operaClean = this.stringify(this.cleanFromUnprefixed(params, '-o-'));
|
||||
this.cloneBefore(decl, "-o-" + decl.prop, operaClean);
|
||||
}
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(declPrefixes), _step2; !(_step2 = _iterator2()).done;) {
|
||||
prefix = _step2.value;
|
||||
|
||||
if (prefix !== '-webkit-' && prefix !== '-o-') {
|
||||
var prefixValue = this.stringify(this.cleanOtherPrefixes(params, prefix));
|
||||
this.cloneBefore(decl, prefix + decl.prop, prefixValue);
|
||||
}
|
||||
}
|
||||
|
||||
if (value !== decl.value && !this.already(decl, decl.prop, value)) {
|
||||
this.checkForWarning(result, decl);
|
||||
decl.cloneBefore();
|
||||
decl.value = value;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Find property name
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.findProp = function findProp(param) {
|
||||
var prop = param[0].value;
|
||||
|
||||
if (/^\d/.test(prop)) {
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(param.entries()), _step4; !(_step4 = _iterator4()).done;) {
|
||||
var _step4$value = _step4.value,
|
||||
i = _step4$value[0],
|
||||
token = _step4$value[1];
|
||||
|
||||
if (i !== 0 && token.type === 'word') {
|
||||
return token.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return prop;
|
||||
}
|
||||
/**
|
||||
* Does we already have this declaration
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.already = function already(decl, prop, value) {
|
||||
return decl.parent.some(function (i) {
|
||||
return i.prop === prop && i.value === value;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Add declaration if it is not exist
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.cloneBefore = function cloneBefore(decl, prop, value) {
|
||||
if (!this.already(decl, prop, value)) {
|
||||
decl.cloneBefore({
|
||||
prop: prop,
|
||||
value: value
|
||||
});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Show transition-property warning
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.checkForWarning = function checkForWarning(result, decl) {
|
||||
if (decl.prop !== 'transition-property') {
|
||||
return;
|
||||
}
|
||||
|
||||
decl.parent.each(function (i) {
|
||||
if (i.type !== 'decl') {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (i.prop.indexOf('transition-') !== 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (i.prop === 'transition-property') {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (list.comma(i.value).length > 1) {
|
||||
decl.warn(result, 'Replace transition-property to transition, ' + 'because Autoprefixer could not support ' + 'any cases of transition-property ' + 'and other transition-*');
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Process transition and remove all unnecessary properties
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.remove = function remove(decl) {
|
||||
var _this2 = this;
|
||||
|
||||
var params = this.parse(decl.value);
|
||||
params = params.filter(function (i) {
|
||||
var prop = _this2.prefixes.remove[_this2.findProp(i)];
|
||||
|
||||
return !prop || !prop.remove;
|
||||
});
|
||||
var value = this.stringify(params);
|
||||
|
||||
if (decl.value === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (params.length === 0) {
|
||||
decl.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
var _double = decl.parent.some(function (i) {
|
||||
return i.prop === decl.prop && i.value === value;
|
||||
});
|
||||
|
||||
var smaller = decl.parent.some(function (i) {
|
||||
return i !== decl && i.prop === decl.prop && i.value.length > value.length;
|
||||
});
|
||||
|
||||
if (_double || smaller) {
|
||||
decl.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
decl.value = value;
|
||||
}
|
||||
/**
|
||||
* Parse properties list to array
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.parse = function parse(value) {
|
||||
var ast = parser(value);
|
||||
var result = [];
|
||||
var param = [];
|
||||
|
||||
for (var _iterator5 = _createForOfIteratorHelperLoose(ast.nodes), _step5; !(_step5 = _iterator5()).done;) {
|
||||
var node = _step5.value;
|
||||
param.push(node);
|
||||
|
||||
if (node.type === 'div' && node.value === ',') {
|
||||
result.push(param);
|
||||
param = [];
|
||||
}
|
||||
}
|
||||
|
||||
result.push(param);
|
||||
return result.filter(function (i) {
|
||||
return i.length > 0;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Return properties string from array
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.stringify = function stringify(params) {
|
||||
if (params.length === 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
var nodes = [];
|
||||
|
||||
for (var _iterator6 = _createForOfIteratorHelperLoose(params), _step6; !(_step6 = _iterator6()).done;) {
|
||||
var param = _step6.value;
|
||||
|
||||
if (param[param.length - 1].type !== 'div') {
|
||||
param.push(this.div(params));
|
||||
}
|
||||
|
||||
nodes = nodes.concat(param);
|
||||
}
|
||||
|
||||
if (nodes[0].type === 'div') {
|
||||
nodes = nodes.slice(1);
|
||||
}
|
||||
|
||||
if (nodes[nodes.length - 1].type === 'div') {
|
||||
nodes = nodes.slice(0, +-2 + 1 || undefined);
|
||||
}
|
||||
|
||||
return parser.stringify({
|
||||
nodes: nodes
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Return new param array with different name
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.clone = function clone(origin, name, param) {
|
||||
var result = [];
|
||||
var changed = false;
|
||||
|
||||
for (var _iterator7 = _createForOfIteratorHelperLoose(param), _step7; !(_step7 = _iterator7()).done;) {
|
||||
var i = _step7.value;
|
||||
|
||||
if (!changed && i.type === 'word' && i.value === origin) {
|
||||
result.push({
|
||||
type: 'word',
|
||||
value: name
|
||||
});
|
||||
changed = true;
|
||||
} else {
|
||||
result.push(i);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Find or create separator
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.div = function div(params) {
|
||||
for (var _iterator8 = _createForOfIteratorHelperLoose(params), _step8; !(_step8 = _iterator8()).done;) {
|
||||
var param = _step8.value;
|
||||
|
||||
for (var _iterator9 = _createForOfIteratorHelperLoose(param), _step9; !(_step9 = _iterator9()).done;) {
|
||||
var node = _step9.value;
|
||||
|
||||
if (node.type === 'div' && node.value === ',') {
|
||||
return node;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'div',
|
||||
value: ',',
|
||||
after: ' '
|
||||
};
|
||||
};
|
||||
|
||||
_proto.cleanOtherPrefixes = function cleanOtherPrefixes(params, prefix) {
|
||||
var _this3 = this;
|
||||
|
||||
return params.filter(function (param) {
|
||||
var current = vendor.prefix(_this3.findProp(param));
|
||||
return current === '' || current === prefix;
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Remove all non-webkit prefixes and unprefixed params if we have prefixed
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.cleanFromUnprefixed = function cleanFromUnprefixed(params, prefix) {
|
||||
var _this4 = this;
|
||||
|
||||
var remove = params.map(function (i) {
|
||||
return _this4.findProp(i);
|
||||
}).filter(function (i) {
|
||||
return i.slice(0, prefix.length) === prefix;
|
||||
}).map(function (i) {
|
||||
return _this4.prefixes.unprefixed(i);
|
||||
});
|
||||
var result = [];
|
||||
|
||||
for (var _iterator10 = _createForOfIteratorHelperLoose(params), _step10; !(_step10 = _iterator10()).done;) {
|
||||
var param = _step10.value;
|
||||
var prop = this.findProp(param);
|
||||
var p = vendor.prefix(prop);
|
||||
|
||||
if (!remove.includes(prop) && (p === prefix || p === '')) {
|
||||
result.push(param);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Check property for disabled by option
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.disabled = function disabled(prop, prefix) {
|
||||
var other = ['order', 'justify-content', 'align-self', 'align-content'];
|
||||
|
||||
if (prop.includes('flex') || other.includes(prop)) {
|
||||
if (this.prefixes.options.flexbox === false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this.prefixes.options.flexbox === 'no-2009') {
|
||||
return prefix.includes('2009');
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
/**
|
||||
* Check if transition prop is inside vendor specific rule
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.ruleVendorPrefixes = function ruleVendorPrefixes(decl) {
|
||||
var parent = decl.parent;
|
||||
|
||||
if (parent.type !== 'rule') {
|
||||
return false;
|
||||
} else if (!parent.selector.includes(':-')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var selectors = Browsers.prefixes().filter(function (s) {
|
||||
return parent.selector.includes(':' + s);
|
||||
});
|
||||
return selectors.length > 0 ? selectors : false;
|
||||
};
|
||||
|
||||
return Transition;
|
||||
}();
|
||||
|
||||
module.exports = Transition;
|
||||
103
build/javascript/node_modules/autoprefixer/lib/utils.js
generated
vendored
103
build/javascript/node_modules/autoprefixer/lib/utils.js
generated
vendored
@@ -1,103 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Throw special error, to tell beniary,
|
||||
* that this error is from Autoprefixer.
|
||||
*/
|
||||
error: function error(text) {
|
||||
var err = new Error(text);
|
||||
err.autoprefixer = true;
|
||||
throw err;
|
||||
},
|
||||
|
||||
/**
|
||||
* Return array, that doesn’t contain duplicates.
|
||||
*/
|
||||
uniq: function uniq(array) {
|
||||
var filtered = [];
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(array), _step; !(_step = _iterator()).done;) {
|
||||
var i = _step.value;
|
||||
|
||||
if (!filtered.includes(i)) {
|
||||
filtered.push(i);
|
||||
}
|
||||
}
|
||||
|
||||
return filtered;
|
||||
},
|
||||
|
||||
/**
|
||||
* Return "-webkit-" on "-webkit- old"
|
||||
*/
|
||||
removeNote: function removeNote(string) {
|
||||
if (!string.includes(' ')) {
|
||||
return string;
|
||||
}
|
||||
|
||||
return string.split(' ')[0];
|
||||
},
|
||||
|
||||
/**
|
||||
* Escape RegExp symbols
|
||||
*/
|
||||
escapeRegexp: function escapeRegexp(string) {
|
||||
return string.replace(/[$()*+-.?[\\\]^{|}]/g, '\\$&');
|
||||
},
|
||||
|
||||
/**
|
||||
* Return regexp to check, that CSS string contain word
|
||||
*/
|
||||
regexp: function regexp(word, escape) {
|
||||
if (escape === void 0) {
|
||||
escape = true;
|
||||
}
|
||||
|
||||
if (escape) {
|
||||
word = this.escapeRegexp(word);
|
||||
}
|
||||
|
||||
return new RegExp("(^|[\\s,(])(" + word + "($|[\\s(,]))", 'gi');
|
||||
},
|
||||
|
||||
/**
|
||||
* Change comma list
|
||||
*/
|
||||
editList: function editList(value, callback) {
|
||||
var origin = list.comma(value);
|
||||
var changed = callback(origin, []);
|
||||
|
||||
if (origin === changed) {
|
||||
return value;
|
||||
}
|
||||
|
||||
var join = value.match(/,\s*/);
|
||||
join = join ? join[0] : ', ';
|
||||
return changed.join(join);
|
||||
},
|
||||
|
||||
/**
|
||||
* Split the selector into parts.
|
||||
* It returns 3 level deep array because selectors can be comma
|
||||
* separated (1), space separated (2), and combined (3)
|
||||
* @param {String} selector selector string
|
||||
* @return {Array<Array<Array>>} 3 level deep array of split selector
|
||||
* @see utils.test.js for examples
|
||||
*/
|
||||
splitSelector: function splitSelector(selector) {
|
||||
return list.comma(selector).map(function (i) {
|
||||
return list.space(i).map(function (k) {
|
||||
return k.split(/(?=\.|#)/g);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
164
build/javascript/node_modules/autoprefixer/lib/value.js
generated
vendored
164
build/javascript/node_modules/autoprefixer/lib/value.js
generated
vendored
@@ -1,164 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
var vendor = require('postcss').vendor;
|
||||
|
||||
var Prefixer = require('./prefixer');
|
||||
|
||||
var OldValue = require('./old-value');
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var Value = /*#__PURE__*/function (_Prefixer) {
|
||||
_inheritsLoose(Value, _Prefixer);
|
||||
|
||||
function Value() {
|
||||
return _Prefixer.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone decl for each prefixed values
|
||||
*/
|
||||
Value.save = function save(prefixes, decl) {
|
||||
var _this = this;
|
||||
|
||||
var prop = decl.prop;
|
||||
var result = [];
|
||||
|
||||
var _loop = function _loop(prefix) {
|
||||
var value = decl._autoprefixerValues[prefix];
|
||||
|
||||
if (value === decl.value) {
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var item = void 0;
|
||||
var propPrefix = vendor.prefix(prop);
|
||||
|
||||
if (propPrefix === '-pie-') {
|
||||
return "continue";
|
||||
}
|
||||
|
||||
if (propPrefix === prefix) {
|
||||
item = decl.value = value;
|
||||
result.push(item);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var prefixed = prefixes.prefixed(prop, prefix);
|
||||
var rule = decl.parent;
|
||||
|
||||
if (!rule.every(function (i) {
|
||||
return i.prop !== prefixed;
|
||||
})) {
|
||||
result.push(item);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var trimmed = value.replace(/\s+/, ' ');
|
||||
var already = rule.some(function (i) {
|
||||
return i.prop === decl.prop && i.value.replace(/\s+/, ' ') === trimmed;
|
||||
});
|
||||
|
||||
if (already) {
|
||||
result.push(item);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
var cloned = _this.clone(decl, {
|
||||
value: value
|
||||
});
|
||||
|
||||
item = decl.parent.insertBefore(decl, cloned);
|
||||
result.push(item);
|
||||
};
|
||||
|
||||
for (var prefix in decl._autoprefixerValues) {
|
||||
var _ret = _loop(prefix);
|
||||
|
||||
if (_ret === "continue") continue;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Is declaration need to be prefixed
|
||||
*/
|
||||
;
|
||||
|
||||
var _proto = Value.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
var value = decl.value;
|
||||
|
||||
if (!value.includes(this.name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!value.match(this.regexp());
|
||||
}
|
||||
/**
|
||||
* Lazy regexp loading
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.regexp = function regexp() {
|
||||
return this.regexpCache || (this.regexpCache = utils.regexp(this.name));
|
||||
}
|
||||
/**
|
||||
* Add prefix to values in string
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
return string.replace(this.regexp(), "$1" + prefix + "$2");
|
||||
}
|
||||
/**
|
||||
* Get value with comments if it was not changed
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.value = function value(decl) {
|
||||
if (decl.raws.value && decl.raws.value.value === decl.value) {
|
||||
return decl.raws.value.raw;
|
||||
} else {
|
||||
return decl.value;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Save values with next prefixed token
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(decl, prefix) {
|
||||
if (!decl._autoprefixerValues) {
|
||||
decl._autoprefixerValues = {};
|
||||
}
|
||||
|
||||
var value = decl._autoprefixerValues[prefix] || this.value(decl);
|
||||
var before;
|
||||
|
||||
do {
|
||||
before = value;
|
||||
value = this.replace(value, prefix);
|
||||
if (value === false) return;
|
||||
} while (value !== before);
|
||||
|
||||
decl._autoprefixerValues[prefix] = value;
|
||||
}
|
||||
/**
|
||||
* Return function to fast find prefixed value
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
return new OldValue(this.name, prefix + this.name);
|
||||
};
|
||||
|
||||
return Value;
|
||||
}(Prefixer);
|
||||
|
||||
module.exports = Value;
|
||||
668
build/javascript/node_modules/autoprefixer/node_modules/postcss/CHANGELOG.md
generated
vendored
668
build/javascript/node_modules/autoprefixer/node_modules/postcss/CHANGELOG.md
generated
vendored
@@ -1,668 +0,0 @@
|
||||
# Change Log
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## 7.0.35
|
||||
* Add migration guide link to PostCSS 8 error text.
|
||||
|
||||
## 7.0.34
|
||||
* Fix compatibility with `postcss-scss` 2.
|
||||
|
||||
## 7.0.33
|
||||
* Add error message for PostCSS 8 plugins.
|
||||
|
||||
## 7.0.32
|
||||
* Fix error message (by @admosity).
|
||||
|
||||
## 7.0.31
|
||||
* Use only the latest source map annotation (by Emmanouil Zoumpoulakis).
|
||||
|
||||
## 7.0.30
|
||||
* Fix TypeScript definition (by Natalie Weizenbaum).
|
||||
|
||||
## 7.0.29
|
||||
* Update `Processor#version`.
|
||||
|
||||
## 7.0.28
|
||||
* Fix TypeScript definition (by Natalie Weizenbaum).
|
||||
|
||||
## 7.0.27
|
||||
* Fix TypeScript definition (by Natalie Weizenbaum).
|
||||
|
||||
## 7.0.26
|
||||
* Fix TypeScript definition (by Natalie Weizenbaum).
|
||||
|
||||
## 7.0.25
|
||||
* Fix absolute path support for Windows (by Tom Raviv).
|
||||
|
||||
## 7.0.24
|
||||
* Fix TypeScript definition (by Keith Cirkel).
|
||||
|
||||
## 7.0.23
|
||||
* Update `Processor#version`.
|
||||
|
||||
## 7.0.22
|
||||
* Add funding link for `npm fund`.
|
||||
|
||||
## 7.0.21
|
||||
* Revert passing `nodes` property to node constructor.
|
||||
|
||||
## 7.0.20
|
||||
* Allow to pass PostCSS’s nodes in `nodes` property to node constructor.
|
||||
|
||||
## 7.0.19
|
||||
* Fix passing `nodes` property to node constructor.
|
||||
|
||||
## 7.0.18
|
||||
* Fix TypeScript type definitions (by Jan Buschtöns).
|
||||
|
||||
## 7.0.17
|
||||
* Fix TypeScript type definitions (by Bob Matcuk and Jan Buschtöns).
|
||||
|
||||
## 7.0.16
|
||||
* Revert Custom Properties fix until PostCSS 8.0.
|
||||
|
||||
## 7.0.15
|
||||
* Fix Custom Properties support (by Ivan Solovev).
|
||||
|
||||
## 7.0.14
|
||||
* Fix tokenizer for `postcss-less` (by Matt Lyons).
|
||||
|
||||
## 7.0.13
|
||||
* Fix parsing regression in 7.0.12 for comments between property and value.
|
||||
|
||||
## 7.0.12
|
||||
* Fix parsing broken CSS with two words in declaration property.
|
||||
|
||||
## 7.0.11
|
||||
* Fix source maps on declaration semicolon (by Niklas Mischkulnig).
|
||||
|
||||
## 7.0.10
|
||||
* Fix source maps (by Niklas Mischkulnig).
|
||||
|
||||
## 7.0.9
|
||||
* Increase stringifing performance for non-raws AST.
|
||||
|
||||
## 7.0.8
|
||||
* Fix TypeScript definitions (by Ankur Oberoi).
|
||||
* Use `support-colors` 6.0.
|
||||
|
||||
## 7.0.7
|
||||
* Extend `Error` in `CssSyntaxError`.
|
||||
|
||||
## 7.0.6
|
||||
* Fix parsing files with BOM (by Veniamin Krol).
|
||||
|
||||
## 7.0.5
|
||||
* Reduce npm package size (by Gilad Peleg).
|
||||
|
||||
## 7.0.4
|
||||
* Fix safe parser regression.
|
||||
|
||||
## 7.0.3
|
||||
* Fix tokenizer extendability (by Andrew Powell).
|
||||
* Reduce npm package size.
|
||||
|
||||
## 7.0.2
|
||||
* Fix warning text (by Rui Pedro M Lima).
|
||||
|
||||
## 7.0.1
|
||||
* Fix JSDoc (by Steven Lambert).
|
||||
|
||||
## 7.0 “President Amy”
|
||||
* Remove Node.js 9 and Node.js 4 support.
|
||||
* Remove IE and “dead” browsers support for client-side Babel transpiling.
|
||||
* Add CSS position on error happened inside `walk()` (by Nikhil Gaba).
|
||||
* Add `LazyResult#finally` (by Igor Kamyshev).
|
||||
* Add warning on calling PostCSS without plugins and syntax options.
|
||||
* Reduce client-side size.
|
||||
|
||||
## 6.0.23
|
||||
* Fix parsing nested at-rules without semicolon, params, and spaces.
|
||||
* Fix docs (by Kevin Schiffer and Pat Cavit).
|
||||
|
||||
## 6.0.22
|
||||
* Fix `Node#prev` and `Node#next` on missed parent.
|
||||
|
||||
## 6.0.21
|
||||
* Rename Chinese docs to fix `yarnpkg.com` issue.
|
||||
|
||||
## 6.0.20
|
||||
* Better error message on `null` as input CSS.
|
||||
|
||||
## 6.0.19
|
||||
* Fix TypeScript definitions for source maps (by Oleh Kuchuk).
|
||||
* Fix `source` field in TypeScript definitions (by Sylvain Pollet-Villard).
|
||||
|
||||
## 6.0.18
|
||||
* Use primitive object in TypeScript definitions (by Sylvain Pollet-Villard).
|
||||
|
||||
## 6.0.17
|
||||
* Fix parsing comment in selector between word tokens (by Oleh Kuchuk).
|
||||
|
||||
## 6.0.16
|
||||
* Fix warning text (by Michael Keller).
|
||||
|
||||
## 6.0.15
|
||||
* Add warning about missed `from` option on `process().then()` call.
|
||||
* Add IE 10 support.
|
||||
|
||||
## 6.0.14
|
||||
* Fix TypeScript definitions (by Jed Mao).
|
||||
|
||||
## 6.0.13
|
||||
* Fix TypeScript definitions for case of multiple PostCSS versions
|
||||
in `node_modules` (by Chris Eppstein).
|
||||
* Use `source-map` 0.6.
|
||||
|
||||
## 6.0.12
|
||||
* Don’t copy `*` hack to declaration indent.
|
||||
|
||||
## 6.0.11
|
||||
* Add upper case `!IMPORTANT` support.
|
||||
|
||||
## 6.0.10
|
||||
* Reduce PostCSS size in webpack bundle.
|
||||
|
||||
## 6.0.9
|
||||
* Improve error message for plugin with old PostCSS (by Igor Adamenko).
|
||||
|
||||
## 6.0.8
|
||||
* Fix Node.js 4.2.2 support.
|
||||
|
||||
## 6.0.7
|
||||
* Fix base64 decoding for old Node.js and browser.
|
||||
|
||||
## 6.0.6
|
||||
* Fix `end` position in at-rule without semicolon (by Oleh Kuchuk).
|
||||
|
||||
## 6.0.5
|
||||
* Move Babel config from `package.json` for `node_modules` compiling cases.
|
||||
|
||||
## 6.0.4
|
||||
* Fix parsing `;;` after rules.
|
||||
* Use Chalk 2.0.
|
||||
|
||||
## 6.0.3
|
||||
* Fix escape sequences parsing (by Oleh Kuchuk).
|
||||
* Added ability to force disable colors with an environment variable.
|
||||
* Improved color detection of some terminal apps.
|
||||
|
||||
## 6.0.2
|
||||
* Keep `raws.before` on moving `Root` children to new `Root`.
|
||||
|
||||
## 6.0.1
|
||||
* Fix parser extensibility to use it in Safe Parser.
|
||||
|
||||
## 6.0 “Marquis Orias”
|
||||
* Remove node.js 0.12 support.
|
||||
* Remove deprecated method from PostCSS 4.
|
||||
* Insert methods remove child from previous parent, instead of closing.
|
||||
* Insert methods and cloning doesn’t clean `raws` anymore.
|
||||
* Methods `moveTo`, `moveAfter`, `moveBefore` were deprecated.
|
||||
* Options was changed in `Plugin#process(css, processOptions, pluginOptions)`.
|
||||
* Add stream parser to reduce memory usage (by Oleh Kuchuk).
|
||||
* Add `before()`/`after()` shortcuts for `node.parent.insertBefore(node, x)`.
|
||||
* Add `Rule#raws.ownSemicolon` for semicolon after templates for `@apply`.
|
||||
* Use `babel-preset-env` to compile npm package.
|
||||
* Remove `js-base64` from dependencies (by Roman Dvornov).
|
||||
* Fix error message on single `:` in CSS.
|
||||
* Move tests to Jest.
|
||||
* Clean up test (by Gabriel Kalani).
|
||||
|
||||
## 5.2.18
|
||||
* Fix TypeScript definitions for case of multiple PostCSS versions
|
||||
in `node_modules` (by Chris Eppstein).
|
||||
|
||||
## 5.2.17
|
||||
* Add `postcss-sass` suggestion to syntax error on `.sass` input.
|
||||
|
||||
## 5.2.16
|
||||
* Better error on wrong argument in node constructor.
|
||||
|
||||
## 5.2.15
|
||||
* Fix TypeScript definitions (by bumbleblym).
|
||||
|
||||
## 5.2.14
|
||||
* Fix browser bundle building in webpack (by janschoenherr).
|
||||
|
||||
## 5.2.13
|
||||
* Do not add comment to important raws.
|
||||
* Fix JSDoc (by Dmitry Semigradsky).
|
||||
|
||||
## 5.2.12
|
||||
* Fix typo in deprecation message (by Garet McKinley).
|
||||
|
||||
## 5.2.11
|
||||
* Fix TypeScript definitions (by Jed Mao).
|
||||
|
||||
## 5.2.10
|
||||
* Fix TypeScript definitions (by Jed Mao).
|
||||
|
||||
## 5.2.9
|
||||
* Update TypeScript definitions (by Jed Mao).
|
||||
|
||||
## 5.2.8
|
||||
* Fix error message (by Ben Briggs).
|
||||
|
||||
## 5.2.7
|
||||
* Better error message on syntax object in plugins list.
|
||||
|
||||
## 5.2.6
|
||||
* Fix `postcss.vendor` for values with spaces (by 刘祺).
|
||||
|
||||
## 5.2.5
|
||||
* Better error message on unclosed string (by Ben Briggs).
|
||||
|
||||
## 5.2.4
|
||||
* Improve terminal CSS syntax highlight (by Simon Lydell).
|
||||
|
||||
## 5.2.3
|
||||
* Better color highlight in syntax error code frame.
|
||||
* Fix color highlight support in old systems.
|
||||
|
||||
## 5.2.2
|
||||
* Update `Processor#version`.
|
||||
|
||||
## 5.2.1
|
||||
* Fix source map path for CSS without `from` option (by Michele Locati).
|
||||
|
||||
## 5.2 “Duke Vapula”
|
||||
* Add syntax highlight to code frame in syntax error (by Andrey Popp).
|
||||
* Use Babel code frame style and size in syntax error.
|
||||
* Add `[` and `]` tokens to parse `[attr=;] {}` correctly.
|
||||
* Add `ignoreErrors` options to tokenizer (by Andrey Popp).
|
||||
* Fix error position on tab indent (by Simon Lydell).
|
||||
|
||||
## 5.1.2
|
||||
* Suggests SCSS/Less parsers on parse errors depends on file extension.
|
||||
|
||||
## 5.1.1
|
||||
* Fix TypeScript definitions (by Efremov Alexey).
|
||||
|
||||
## 5.1 “King and President Zagan”
|
||||
* Add URI in source map support (by Mark Finger).
|
||||
* Add `map.from` option (by Mark Finger).
|
||||
* Add `<no source>` mappings for nodes without source (by Bogdan Chadkin).
|
||||
* Add function value support to `map.prev` option (by Chris Montoro).
|
||||
* Add declaration value type check in shortcut creating (by 刘祺).
|
||||
* `Result#warn` now returns new created warning.
|
||||
* Don’t call plugin creator in `postcss.plugin` call.
|
||||
* Add source maps to PostCSS ES5 build.
|
||||
* Add JSDoc to PostCSS classes.
|
||||
* Clean npm package from unnecessary docs.
|
||||
|
||||
## 5.0.21
|
||||
* Fix support with input source mao with `utf8` encoding name.
|
||||
|
||||
## 5.0.20
|
||||
* Fix between raw value parsing (by David Clark).
|
||||
* Update TypeScript definitions (by Jed Mao).
|
||||
* Clean fake node.source after `append(string)`.
|
||||
|
||||
## 5.0.19
|
||||
* Fix indent-based syntaxes support.
|
||||
|
||||
## 5.0.18
|
||||
* Parse new lines according W3C CSS syntax specification.
|
||||
|
||||
## 5.0.17
|
||||
* Fix options argument in `Node#warn` (by Ben Briggs).
|
||||
* Fix TypeScript definitions (by Jed Mao).
|
||||
|
||||
## 5.0.16
|
||||
* Fix CSS syntax error position on unclosed quotes.
|
||||
|
||||
## 5.0.15
|
||||
* Fix `Node#clone()` on `null` value somewhere in node.
|
||||
|
||||
## 5.0.14
|
||||
* Allow to use PostCSS in webpack bundle without JSON loader.
|
||||
|
||||
## 5.0.13
|
||||
* Fix `index` and `word` options in `Warning#toString` (by Bogdan Chadkin).
|
||||
* Fix input source content loading in errors.
|
||||
* Fix map options on using `LazyResult` as input CSS.
|
||||
* 100% test coverage.
|
||||
* Use Babel 6.
|
||||
|
||||
## 5.0.12
|
||||
* Allow passing a previous map with no mappings (by Andreas Lind).
|
||||
|
||||
## 5.0.11
|
||||
* Increase plugins performance by 1.5 times.
|
||||
|
||||
## 5.0.10
|
||||
* Fix warning from nodes without source.
|
||||
|
||||
## 5.0.9
|
||||
* Fix source map type detection (by @asan).
|
||||
|
||||
## 5.0.8
|
||||
* Fixed a missed step in `5.0.7` that caused the module to be published as
|
||||
ES6 code.
|
||||
|
||||
## 5.0.7
|
||||
* PostCSS now requires that node 0.12 is installed via the engines property
|
||||
in package.json (by Howard Zuo).
|
||||
|
||||
## 5.0.6
|
||||
* Fix parsing nested at-rule without semicolon (by Matt Drake).
|
||||
* Trim `Declaration#value` (by Bogdan Chadkin).
|
||||
|
||||
## 5.0.5
|
||||
* Fix multi-tokens property parsing (by Matt Drake).
|
||||
|
||||
## 5.0.4
|
||||
* Fix start position in `Root#source`.
|
||||
* Fix source map annotation, when CSS uses `\r\n` (by Mohammad Younes).
|
||||
|
||||
## 5.0.3
|
||||
* Fix `url()` parsing.
|
||||
* Fix using `selectors` in `Rule` constructor.
|
||||
* Add start source to `Root` node.
|
||||
|
||||
## 5.0.2
|
||||
* Fix `remove(index)` to be compatible with 4.x plugin.
|
||||
|
||||
## 5.0.1
|
||||
* Fix PostCSS 4.x plugins compatibility.
|
||||
* Fix type definition loading (by Jed Mao).
|
||||
|
||||
## 5.0 “President Valac”
|
||||
* Remove `safe` option. Move Safe Parser to separate project.
|
||||
* `Node#toString` does not include `before` for root nodes.
|
||||
* Remove plugin returning `Root` API.
|
||||
* Remove Promise polyfill for node.js 0.10.
|
||||
* Deprecate `eachInside`, `eachDecl`, `eachRule`, `eachAtRule` and `eachComment`
|
||||
in favor of `walk`, `walkDecls`, `walkRules`, `walkAtRules` and `walkComments`
|
||||
(by Jed Mao).
|
||||
* Deprecate `Container#remove` and `Node#removeSelf`
|
||||
in favor of `Container#removeChild` and `Node#remove` (by Ben Briggs).
|
||||
* Deprecate `Node#replace` in favor of `replaceWith` (by Ben Briggs).
|
||||
* Deprecate raw properties in favor of `Node#raws` object.
|
||||
* Deprecate `Node#style` in favor of `raw`.
|
||||
* Deprecate `CssSyntaxError#generated` in favor of `input`.
|
||||
* Deprecate `Node#cleanStyles` in favor of `cleanRaws`.
|
||||
* Deprecate `Root#prevMap` in favor of `Root.source.input.map`.
|
||||
* Add `syntax`, `parser` and `stringifier` options for Custom Syntaxes.
|
||||
* Add stringifier option to `Node#toString`.
|
||||
* Add `Result#content` alias for non-CSS syntaxes.
|
||||
* Add `plugin.process(css)` shortcut to every plugin function (by Ben Briggs).
|
||||
* Add multiple nodes support to insert methods (by Jonathan Neal).
|
||||
* Add `Node#warn` shortcut (by Ben Briggs).
|
||||
* Add `word` and `index` options to errors and warnings (by David Clark).
|
||||
* Add `line`, `column` properties to `Warning`.
|
||||
* Use `supports-color` library to detect color support in error output.
|
||||
* Add type definitions for TypeScript plugin developers (by Jed Mao).
|
||||
* `Rule#selectors` setter detects separators.
|
||||
* Add `postcss.stringify` method.
|
||||
* Throw descriptive errors for incorrectly formatted plugins.
|
||||
* Add docs to npm release.
|
||||
* Fix `url()` parsing.
|
||||
* Fix Windows support (by Jed Mao).
|
||||
|
||||
## 4.1.16
|
||||
* Fix errors without stack trace.
|
||||
|
||||
## 4.1.15
|
||||
* Allow asynchronous plugins to change processor plugins list (by Ben Briggs).
|
||||
|
||||
## 4.1.14
|
||||
* Fix for plugins packs defined by `postcss.plugin`.
|
||||
|
||||
## 4.1.13
|
||||
* Fix input inlined source maps with UTF-8 encoding.
|
||||
|
||||
## 4.1.12
|
||||
* Update Promise polyfill.
|
||||
|
||||
## 4.1.11
|
||||
* Fix error message on wrong plugin format.
|
||||
|
||||
## 4.1.10
|
||||
* Fix Promise behavior on sync plugin errors.
|
||||
* Automatically fill `plugin` field in `CssSyntaxError`.
|
||||
* Fix warning message (by Ben Briggs).
|
||||
|
||||
## 4.1.9
|
||||
* Speed up `node.clone()`.
|
||||
|
||||
## 4.1.8
|
||||
* Accepts `Processor` instance in `postcss()` constructor too.
|
||||
|
||||
## 4.1.7
|
||||
* Speed up `postcss.list` (by Bogdan Chadkin).
|
||||
|
||||
## 4.1.6
|
||||
* Fix Promise behavior on parsing error.
|
||||
|
||||
## 4.1.5
|
||||
* Parse at-words in declaration values.
|
||||
|
||||
## 4.1.4
|
||||
* Fix Promise polyfill dependency (by Anton Yakushev and Matija Marohnić).
|
||||
|
||||
## 4.1.3
|
||||
* Add Promise polyfill for node.js 0.10 and IE.
|
||||
|
||||
## 4.1.2
|
||||
* List helpers can be accessed independently `var space = postcss.list.space`.
|
||||
|
||||
## 4.1.1
|
||||
* Show deprecated message only once.
|
||||
|
||||
## 4.1 “Marquis Andras”
|
||||
* Asynchronous plugin support.
|
||||
* Add warnings from plugins and `Result#messages`.
|
||||
* Add `postcss.plugin()` to create plugins with a standard API.
|
||||
* Insert nodes by CSS string.
|
||||
* Show version warning message on error from an outdated plugin.
|
||||
* Send `Result` instance to plugins as the second argument.
|
||||
* Add `CssSyntaxError#plugin`.
|
||||
* Add `CssSyntaxError#showSourceCode()`.
|
||||
* Add `postcss.list` and `postcss.vendor` aliases.
|
||||
* Add `Processor#version`.
|
||||
* Parse wrong closing bracket.
|
||||
* Parse `!important` statement with spaces and comments inside (by Ben Briggs).
|
||||
* Throw an error on declaration without `prop` or `value` (by Philip Peterson).
|
||||
* Fix source map mappings position.
|
||||
* Add indexed source map support.
|
||||
* Always set `error.generated`.
|
||||
* Clean all source map annotation comments.
|
||||
|
||||
## 4.0.6
|
||||
* Remove `babel` from released package dependencies (by Andres Suarez).
|
||||
|
||||
## 4.0.5
|
||||
* Fix error message on double colon in declaration.
|
||||
|
||||
## 4.0.4
|
||||
* Fix indent detection in some rare cases.
|
||||
|
||||
## 4.0.3
|
||||
* Faster API with 6to5 Loose mode.
|
||||
* Fix indexed source maps support.
|
||||
|
||||
## 4.0.2
|
||||
* Do not copy IE hacks to code style.
|
||||
|
||||
## 4.0.1
|
||||
* Add `source.input` to `Root` too.
|
||||
|
||||
## 4.0 “Duke Flauros”
|
||||
* Rename `Container#childs` to `nodes`.
|
||||
* Rename `PostCSS#processors` to `plugins`.
|
||||
* Add `Node#replaceValues()` method.
|
||||
* Add `Node#moveTo()`, `moveBefore()` and `moveAfter()` methods.
|
||||
* Add `Node#cloneBefore()` and `cloneAfter()` shortcuts.
|
||||
* Add `Node#next()`, `prev()` and `root()` shortcuts.
|
||||
* Add `Node#replaceWith()` method.
|
||||
* Add `Node#error()` method.
|
||||
* Add `Container#removeAll()` method.
|
||||
* Add filter argument to `eachDecl()` and `eachAtRule()`.
|
||||
* Add `Node#source.input` and move `source.file` or `source.id` to `input`.
|
||||
* Change code indent, when node was moved.
|
||||
* Better fix code style on `Rule`, `AtRule` and `Comment` nodes changes.
|
||||
* Allow to create rules and at-rules by hash shortcut in append methods.
|
||||
* Add class name to CSS syntax error output.
|
||||
|
||||
## 3.0.7
|
||||
* Fix IE filter parsing with multiple commands.
|
||||
* Safer way to consume PostCSS object as plugin (by Maxime Thirouin).
|
||||
|
||||
## 3.0.6
|
||||
* Fix missing semicolon when comment comes after last declaration.
|
||||
* Fix Safe Mode declaration parsing on unclosed blocks.
|
||||
|
||||
## 3.0.5
|
||||
* Fix parser to support difficult cases with backslash escape and brackets.
|
||||
* Add `CssSyntaxError#stack` (by Maxime Thirouin).
|
||||
|
||||
## 3.0.4
|
||||
* Fix Safe Mode on unknown word before declaration.
|
||||
|
||||
## 3.0.3
|
||||
* Increase tokenizer speed (by Roman Dvornov).
|
||||
|
||||
## 3.0.2
|
||||
* Fix empty comment parsing.
|
||||
* Fix `Root#normalize` in some inserts.
|
||||
|
||||
## 3.0.1
|
||||
* Fix Rhino JS runtime support.
|
||||
* Typo in deprecated warning (by Maxime Thirouin).
|
||||
|
||||
## 3.0 “Marquis Andrealphus”
|
||||
* New parser, which become the fastest ever CSS parser written in JavaScript.
|
||||
* Parser can now parse declarations and rules in one parent (like in `@page`)
|
||||
and nested declarations for plugins like `postcss-nested`.
|
||||
* Child nodes array is now in `childs` property, instead of `decls` and `rules`.
|
||||
* `map.inline` and `map.sourcesContent` options are now `true` by default.
|
||||
* Fix iterators (`each`, `insertAfter`) on children array changes.
|
||||
* Use previous source map to show origin source of CSS syntax error.
|
||||
* Use 6to5 ES6 compiler, instead of ES6 Transpiler.
|
||||
* Use code style for manually added rules from existing rules.
|
||||
* Use `from` option from previous source map `file` field.
|
||||
* Set `to` value to `from` if `to` option is missing.
|
||||
* Use better node source name when missing `from` option.
|
||||
* Show a syntax error when `;` is missed between declarations.
|
||||
* Allow to pass `PostCSS` instance or list of plugins to `use()` method.
|
||||
* Allow to pass `Result` instance to `process()` method.
|
||||
* Trim Unicode BOM on source maps parsing.
|
||||
* Parse at-rules without spaces like `@import"file"`.
|
||||
* Better previous `sourceMappingURL` annotation comment cleaning.
|
||||
* Do not remove previous `sourceMappingURL` comment on `map.annotation: false`.
|
||||
* Parse nameless at-rules in Safe Mode.
|
||||
* Fix source map generation for nodes without source.
|
||||
* Fix next child `before` if `Root` first child got removed.
|
||||
|
||||
## 2.2.6
|
||||
* Fix map generation for nodes without source (by Josiah Savary).
|
||||
|
||||
## 2.2.5
|
||||
* Fix source map with BOM marker support (by Mohammad Younes).
|
||||
* Fix source map paths (by Mohammad Younes).
|
||||
|
||||
## 2.2.4
|
||||
* Fix `prepend()` on empty `Root`.
|
||||
|
||||
## 2.2.3
|
||||
* Allow to use object shortcut in `use()` with functions like `autoprefixer`.
|
||||
|
||||
## 2.2.2
|
||||
* Add shortcut to set processors in `use()` via object with `.postcss` property.
|
||||
|
||||
## 2.2.1
|
||||
* Send `opts` from `Processor#process(css, opts)` to processors.
|
||||
|
||||
## 2.2 “Marquis Cimeies”
|
||||
* Use GNU style syntax error messages.
|
||||
* Add `Node#replace` method.
|
||||
* Add `CssSyntaxError#reason` property.
|
||||
|
||||
## 2.1.2
|
||||
* Fix UTF-8 support in inline source map.
|
||||
* Fix source map `sourcesContent` if there is no `from` and `to` options.
|
||||
|
||||
## 2.1.1
|
||||
* Allow to miss `to` and `from` options for inline source maps.
|
||||
* Add `Node#source.id` if file name is unknown.
|
||||
* Better detect splitter between rules in CSS concatenation tools.
|
||||
* Automatically clone node in insert methods.
|
||||
|
||||
## 2.1 “King Amdusias”
|
||||
* Change Traceur ES6 compiler to ES6 Transpiler.
|
||||
* Show broken CSS line in syntax error.
|
||||
|
||||
## 2.0 “King Belial”
|
||||
* Project was rewritten from CoffeeScript to ES6.
|
||||
* Add Safe Mode to works with live input or with hacks from legacy code.
|
||||
* More safer parser to pass all hacks from Browserhacks.com.
|
||||
* Use real properties instead of magic getter/setter for raw properties.
|
||||
|
||||
## 1.0 “Marquis Decarabia”
|
||||
* Save previous source map for each node to support CSS concatenation
|
||||
with multiple previous maps.
|
||||
* Add `map.sourcesContent` option to add origin content to `sourcesContent`
|
||||
inside map.
|
||||
* Allow to set different place of output map in annotation comment.
|
||||
* Allow to use arrays and `Root` in `Container#append` and same methods.
|
||||
* Add `Root#prevMap` with information about previous map.
|
||||
* Allow to use latest PostCSS from GitHub by npm.
|
||||
* `Result` now is lazy and it will generate output CSS only if you use `css`
|
||||
or `map` property.
|
||||
* Use separated `map.prev` option to set previous map.
|
||||
* Rename `inlineMap` option to `map.inline`.
|
||||
* Rename `mapAnnotation` option to `map.annotation`.
|
||||
* `Result#map` now return `SourceMapGenerator` object, instead of string.
|
||||
* Run previous map autodetect only if input CSS contains annotation comment.
|
||||
* Add `map: 'inline'` shortcut for `map: { inline: true }` option.
|
||||
* `Node#source.file` now will contains absolute path.
|
||||
* Clean `Declaration#between` style on node clone.
|
||||
|
||||
## 0.3.5
|
||||
* Allow to use `Root` or `Result` as first argument in `process()`.
|
||||
* Save parsed AST to `Result#root`.
|
||||
|
||||
## 0.3.4
|
||||
* Better space symbol detect to read UTF-8 BOM correctly.
|
||||
|
||||
## 0.3.3
|
||||
* Remove source map hacks by using new Mozilla’s `source-map` (by Simon Lydell).
|
||||
|
||||
## 0.3.2
|
||||
* Add URI encoding support for inline source maps.
|
||||
|
||||
## 0.3.1
|
||||
* Fix relative paths from previous source map.
|
||||
* Safer space split in `Rule#selectors` (by Simon Lydell).
|
||||
|
||||
## 0.3 “Prince Seere”
|
||||
* Add `Comment` node for comments between declarations or rules.
|
||||
* Add source map annotation comment to output CSS.
|
||||
* Allow to inline source map to annotation comment by data:uri.
|
||||
* Fix source maps on Windows.
|
||||
* Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell).
|
||||
* Autodetect previous source map.
|
||||
* Add `first` and `last` shortcuts to container nodes.
|
||||
* Parse `!important` to separated property in `Declaration`.
|
||||
* Allow to break iteration by returning `false`.
|
||||
* Copy code style to new nodes.
|
||||
* Add `eachInside` method to recursively iterate all nodes.
|
||||
* Add `selectors` shortcut to get selectors array.
|
||||
* Add `toResult` method to `Rule` to simplify work with several input files.
|
||||
* Clean declaration’s `value`, rule’s `selector` and at-rule’s `params`
|
||||
by storing spaces in `between` property.
|
||||
|
||||
## 0.2 “Duke Dantalion”
|
||||
* Add source map support.
|
||||
* Add shortcuts to create nodes.
|
||||
* Method `process()` now returns object with `css` and `map` keys.
|
||||
* Origin CSS file option was renamed from `file` to `from`.
|
||||
* Rename `Node#remove()` method to `removeSelf()` to fix name conflict.
|
||||
* Node source was moved to `source` property with origin file
|
||||
and node end position.
|
||||
* You can set own CSS generate function.
|
||||
|
||||
## 0.1 “Count Andromalius”
|
||||
* Initial release.
|
||||
20
build/javascript/node_modules/autoprefixer/node_modules/postcss/LICENSE
generated
vendored
20
build/javascript/node_modules/autoprefixer/node_modules/postcss/LICENSE
generated
vendored
@@ -1,20 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
491
build/javascript/node_modules/autoprefixer/node_modules/postcss/README.md
generated
vendored
491
build/javascript/node_modules/autoprefixer/node_modules/postcss/README.md
generated
vendored
@@ -1,491 +0,0 @@
|
||||
# PostCSS [![Gitter][chat-img]][chat]
|
||||
|
||||
<img align="right" width="95" height="95"
|
||||
alt="Philosopher’s stone, logo of PostCSS"
|
||||
src="http://postcss.github.io/postcss/logo.svg">
|
||||
|
||||
[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg
|
||||
[chat]: https://gitter.im/postcss/postcss
|
||||
|
||||
PostCSS is a tool for transforming styles with JS plugins.
|
||||
These plugins can lint your CSS, support variables and mixins,
|
||||
transpile future CSS syntax, inline images, and more.
|
||||
|
||||
PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba,
|
||||
and JetBrains. The [Autoprefixer] PostCSS plugin is one of the most popular
|
||||
CSS processors.
|
||||
|
||||
PostCSS takes a CSS file and provides an API to analyze and modify its rules
|
||||
(by transforming them into an [Abstract Syntax Tree]).
|
||||
This API can then be used by [plugins] to do a lot of useful things,
|
||||
e.g. to find errors automatically insert vendor prefixes.
|
||||
|
||||
**Support / Discussion:** [Gitter](https://gitter.im/postcss/postcss)<br>
|
||||
**Twitter account:** [@postcss](https://twitter.com/postcss)<br>
|
||||
**VK.com page:** [postcss](https://vk.com/postcss)<br>
|
||||
**中文翻译**: [`README-cn.md`](./README-cn.md)
|
||||
|
||||
For PostCSS commercial support (consulting, improving the front-end culture
|
||||
of your company, PostCSS plugins), contact [Evil Martians]
|
||||
at <surrender@evilmartians.com>.
|
||||
|
||||
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
|
||||
[Evil Martians]: https://evilmartians.com/?utm_source=postcss
|
||||
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
||||
[plugins]: https://github.com/postcss/postcss#plugins
|
||||
|
||||
<a href="https://evilmartians.com/?utm_source=postcss">
|
||||
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
||||
alt="Sponsored by Evil Martians" width="236" height="54">
|
||||
</a>
|
||||
|
||||
## Sponsorship
|
||||
|
||||
PostCSS needs your support. We are accepting donations
|
||||
[at Open Collective](https://opencollective.com/postcss/).
|
||||
|
||||
<a href="https://tailwindcss.com/">
|
||||
<img src="https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo.svg"
|
||||
alt="Sponsored by Tailwind CSS" width="273" height="64">
|
||||
</a>
|
||||
|
||||
## Plugins
|
||||
|
||||
Currently, PostCSS has more than 200 plugins. You can find all of the plugins
|
||||
in the [plugins list] or in the [searchable catalog]. Below is a list
|
||||
of our favorite plugins — the best demonstrations of what can be built
|
||||
on top of PostCSS.
|
||||
|
||||
If you have any new ideas, [PostCSS plugin development] is really easy.
|
||||
|
||||
[searchable catalog]: http://postcss.parts
|
||||
[plugins list]: https://github.com/postcss/postcss/blob/master/docs/plugins.md
|
||||
|
||||
### Solve Global CSS Problem
|
||||
|
||||
* [`postcss-use`] allows you to explicitly set PostCSS plugins within CSS
|
||||
and execute them only for the current file.
|
||||
* [`postcss-modules`] and [`react-css-modules`] automatically isolate
|
||||
selectors within components.
|
||||
* [`postcss-autoreset`] is an alternative to using a global reset
|
||||
that is better for isolatable components.
|
||||
* [`postcss-initial`] adds `all: initial` support, which resets
|
||||
all inherited styles.
|
||||
* [`cq-prolyfill`] adds container query support, allowing styles that respond
|
||||
to the width of the parent.
|
||||
|
||||
### Use Future CSS, Today
|
||||
|
||||
* [`autoprefixer`] adds vendor prefixes, using data from Can I Use.
|
||||
* [`postcss-preset-env`] allows you to use future CSS features today.
|
||||
|
||||
### Better CSS Readability
|
||||
|
||||
* [`precss`] contains plugins for Sass-like features, like variables, nesting,
|
||||
and mixins.
|
||||
* [`postcss-sorting`] sorts the content of rules and at-rules.
|
||||
* [`postcss-utilities`] includes the most commonly used shortcuts and helpers.
|
||||
* [`short`] adds and extends numerous shorthand properties.
|
||||
|
||||
### Images and Fonts
|
||||
|
||||
* [`postcss-assets`] inserts image dimensions and inlines files.
|
||||
* [`postcss-sprites`] generates image sprites.
|
||||
* [`font-magician`] generates all the `@font-face` rules needed in CSS.
|
||||
* [`postcss-inline-svg`] allows you to inline SVG and customize its styles.
|
||||
* [`postcss-write-svg`] allows you to write simple SVG directly in your CSS.
|
||||
|
||||
### Linters
|
||||
|
||||
* [`stylelint`] is a modular stylesheet linter.
|
||||
* [`stylefmt`] is a tool that automatically formats CSS
|
||||
according `stylelint` rules.
|
||||
* [`doiuse`] lints CSS for browser support, using data from Can I Use.
|
||||
* [`colorguard`] helps you maintain a consistent color palette.
|
||||
|
||||
### Other
|
||||
|
||||
* [`postcss-rtl`] combines both-directional (left-to-right and right-to-left) styles in one CSS file.
|
||||
* [`cssnano`] is a modular CSS minifier.
|
||||
* [`lost`] is a feature-rich `calc()` grid system.
|
||||
* [`rtlcss`] mirrors styles for right-to-left locales.
|
||||
|
||||
[PostCSS plugin development]: https://github.com/postcss/postcss/blob/master/docs/writing-a-plugin.md
|
||||
[`postcss-inline-svg`]: https://github.com/TrySound/postcss-inline-svg
|
||||
[`postcss-preset-env`]: https://github.com/jonathantneal/postcss-preset-env
|
||||
[`react-css-modules`]: https://github.com/gajus/react-css-modules
|
||||
[`postcss-autoreset`]: https://github.com/maximkoretskiy/postcss-autoreset
|
||||
[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg
|
||||
[`postcss-utilities`]: https://github.com/ismamz/postcss-utilities
|
||||
[`postcss-initial`]: https://github.com/maximkoretskiy/postcss-initial
|
||||
[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites
|
||||
[`postcss-modules`]: https://github.com/outpunk/postcss-modules
|
||||
[`postcss-sorting`]: https://github.com/hudochenkov/postcss-sorting
|
||||
[`postcss-assets`]: https://github.com/assetsjs/postcss-assets
|
||||
[`font-magician`]: https://github.com/jonathantneal/postcss-font-magician
|
||||
[`autoprefixer`]: https://github.com/postcss/autoprefixer
|
||||
[`cq-prolyfill`]: https://github.com/ausi/cq-prolyfill
|
||||
[`postcss-rtl`]: https://github.com/vkalinichev/postcss-rtl
|
||||
[`postcss-use`]: https://github.com/postcss/postcss-use
|
||||
[`css-modules`]: https://github.com/css-modules/css-modules
|
||||
[`colorguard`]: https://github.com/SlexAxton/css-colorguard
|
||||
[`stylelint`]: https://github.com/stylelint/stylelint
|
||||
[`stylefmt`]: https://github.com/morishitter/stylefmt
|
||||
[`cssnano`]: http://cssnano.co
|
||||
[`precss`]: https://github.com/jonathantneal/precss
|
||||
[`doiuse`]: https://github.com/anandthakker/doiuse
|
||||
[`rtlcss`]: https://github.com/MohammadYounes/rtlcss
|
||||
[`short`]: https://github.com/jonathantneal/postcss-short
|
||||
[`lost`]: https://github.com/peterramsing/lost
|
||||
|
||||
## Syntaxes
|
||||
|
||||
PostCSS can transform styles in any syntax, not just CSS.
|
||||
If there is not yet support for your favorite syntax,
|
||||
you can write a parser and/or stringifier to extend PostCSS.
|
||||
|
||||
* [`sugarss`] is a indent-based syntax like Sass or Stylus.
|
||||
* [`postcss-syntax`] switch syntax automatically by file extensions.
|
||||
* [`postcss-html`] parsing styles in `<style>` tags of HTML-like files.
|
||||
* [`postcss-markdown`] parsing styles in code blocks of Markdown files.
|
||||
* [`postcss-jsx`] parsing CSS in template / object literals of source files.
|
||||
* [`postcss-styled`] parsing CSS in template literals of source files.
|
||||
* [`postcss-scss`] allows you to work with SCSS
|
||||
*(but does not compile SCSS to CSS)*.
|
||||
* [`postcss-sass`] allows you to work with Sass
|
||||
*(but does not compile Sass to CSS)*.
|
||||
* [`postcss-less`] allows you to work with Less
|
||||
*(but does not compile LESS to CSS)*.
|
||||
* [`postcss-less-engine`] allows you to work with Less
|
||||
*(and DOES compile LESS to CSS using true Less.js evaluation)*.
|
||||
* [`postcss-js`] allows you to write styles in JS or transform
|
||||
React Inline Styles, Radium or JSS.
|
||||
* [`postcss-safe-parser`] finds and fixes CSS syntax errors.
|
||||
* [`midas`] converts a CSS string to highlighted HTML.
|
||||
|
||||
[`postcss-less-engine`]: https://github.com/Crunch/postcss-less
|
||||
[`postcss-safe-parser`]: https://github.com/postcss/postcss-safe-parser
|
||||
[`postcss-syntax`]: https://github.com/gucong3000/postcss-syntax
|
||||
[`postcss-html`]: https://github.com/gucong3000/postcss-html
|
||||
[`postcss-markdown`]: https://github.com/gucong3000/postcss-markdown
|
||||
[`postcss-jsx`]: https://github.com/gucong3000/postcss-jsx
|
||||
[`postcss-styled`]: https://github.com/gucong3000/postcss-styled
|
||||
[`postcss-scss`]: https://github.com/postcss/postcss-scss
|
||||
[`postcss-sass`]: https://github.com/AleshaOleg/postcss-sass
|
||||
[`postcss-less`]: https://github.com/webschik/postcss-less
|
||||
[`postcss-js`]: https://github.com/postcss/postcss-js
|
||||
[`sugarss`]: https://github.com/postcss/sugarss
|
||||
[`midas`]: https://github.com/ben-eb/midas
|
||||
|
||||
## Articles
|
||||
|
||||
* [Some things you may think about PostCSS… and you might be wrong](http://julian.io/some-things-you-may-think-about-postcss-and-you-might-be-wrong)
|
||||
* [What PostCSS Really Is; What It Really Does](http://davidtheclark.com/its-time-for-everyone-to-learn-about-postcss)
|
||||
* [PostCSS Guides](http://webdesign.tutsplus.com/series/postcss-deep-dive--cms-889)
|
||||
|
||||
More articles and videos you can find on [awesome-postcss](https://github.com/jjaderg/awesome-postcss) list.
|
||||
|
||||
## Books
|
||||
|
||||
* [Mastering PostCSS for Web Design](https://www.packtpub.com/web-development/mastering-postcss-web-design) by Alex Libby, Packt. (June 2016)
|
||||
|
||||
## Usage
|
||||
|
||||
You can start using PostCSS in just two steps:
|
||||
|
||||
1. Find and add PostCSS extensions for your build tool.
|
||||
2. [Select plugins] and add them to your PostCSS process.
|
||||
|
||||
[Select plugins]: http://postcss.parts
|
||||
|
||||
### CSS-in-JS
|
||||
|
||||
The best way to use PostCSS with CSS-in-JS is [`astroturf`].
|
||||
Add its loader to your `webpack.config.js`:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'postcss-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
use: ['babel-loader', 'astroturf/loader'],
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Then create `postcss.config.js`:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('autoprefixer'),
|
||||
require('postcss-nested')
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[`astroturf`]: https://github.com/4Catalyzer/astroturf
|
||||
|
||||
### Parcel
|
||||
|
||||
[Parcel] has built-in PostCSS support. It already uses Autoprefixer
|
||||
and cssnano. If you want to change plugins, create `postcss.config.js`
|
||||
in project’s root:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('autoprefixer'),
|
||||
require('postcss-nested')
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Parcel will even automatically install these plugins for you.
|
||||
|
||||
> Please, be aware of [the several issues in Version 1](https://github.com/parcel-bundler/parcel/labels/CSS%20Preprocessing). Notice, [Version 2](https://github.com/parcel-bundler/parcel/projects/5) may resolve the issues via [issue #2157](https://github.com/parcel-bundler/parcel/issues/2157).
|
||||
|
||||
[Parcel]: https://parceljs.org
|
||||
|
||||
### Webpack
|
||||
|
||||
Use [`postcss-loader`] in `webpack.config.js`:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
exclude: /node_modules/,
|
||||
use: [
|
||||
{
|
||||
loader: 'style-loader',
|
||||
},
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
importLoaders: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: 'postcss-loader'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Then create `postcss.config.js`:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('precss'),
|
||||
require('autoprefixer')
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[`postcss-loader`]: https://github.com/postcss/postcss-loader
|
||||
|
||||
### Gulp
|
||||
|
||||
Use [`gulp-postcss`] and [`gulp-sourcemaps`].
|
||||
|
||||
```js
|
||||
gulp.task('css', () => {
|
||||
const postcss = require('gulp-postcss')
|
||||
const sourcemaps = require('gulp-sourcemaps')
|
||||
|
||||
return gulp.src('src/**/*.css')
|
||||
.pipe( sourcemaps.init() )
|
||||
.pipe( postcss([ require('precss'), require('autoprefixer') ]) )
|
||||
.pipe( sourcemaps.write('.') )
|
||||
.pipe( gulp.dest('build/') )
|
||||
})
|
||||
```
|
||||
|
||||
[`gulp-sourcemaps`]: https://github.com/floridoo/gulp-sourcemaps
|
||||
[`gulp-postcss`]: https://github.com/postcss/gulp-postcss
|
||||
|
||||
### npm run / CLI
|
||||
|
||||
To use PostCSS from your command-line interface or with npm scripts
|
||||
there is [`postcss-cli`].
|
||||
|
||||
```sh
|
||||
postcss --use autoprefixer -c options.json -o main.css css/*.css
|
||||
```
|
||||
|
||||
[`postcss-cli`]: https://github.com/postcss/postcss-cli
|
||||
|
||||
### Browser
|
||||
|
||||
If you want to compile CSS string in browser (for instance, in live edit
|
||||
tools like CodePen), just use [Browserify] or [webpack]. They will pack
|
||||
PostCSS and plugins files into a single file.
|
||||
|
||||
To apply PostCSS plugins to React Inline Styles, JSS, Radium
|
||||
and other [CSS-in-JS], you can use [`postcss-js`] and transforms style objects.
|
||||
|
||||
```js
|
||||
var postcss = require('postcss-js')
|
||||
var prefixer = postcss.sync([ require('autoprefixer') ])
|
||||
|
||||
prefixer({ display: 'flex' }) //=> { display: ['-webkit-box', '-webkit-flex', '-ms-flexbox', 'flex'] }
|
||||
```
|
||||
|
||||
[`postcss-js`]: https://github.com/postcss/postcss-js
|
||||
[Browserify]: http://browserify.org/
|
||||
[CSS-in-JS]: https://github.com/MicheleBertoli/css-in-js
|
||||
[webpack]: https://webpack.github.io/
|
||||
|
||||
### Runners
|
||||
|
||||
* **Grunt**: [`grunt-postcss`](https://github.com/nDmitry/grunt-postcss)
|
||||
* **HTML**: [`posthtml-postcss`](https://github.com/posthtml/posthtml-postcss)
|
||||
* **Stylus**: [`poststylus`](https://github.com/seaneking/poststylus)
|
||||
* **Rollup**: [`rollup-plugin-postcss`](https://github.com/egoist/rollup-plugin-postcss)
|
||||
* **Brunch**: [`postcss-brunch`](https://github.com/brunch/postcss-brunch)
|
||||
* **Broccoli**: [`broccoli-postcss`](https://github.com/jeffjewiss/broccoli-postcss)
|
||||
* **Meteor**: [`postcss`](https://atmospherejs.com/juliancwirko/postcss)
|
||||
* **ENB**: [`enb-postcss`](https://github.com/awinogradov/enb-postcss)
|
||||
* **Taskr**: [`taskr-postcss`](https://github.com/lukeed/taskr/tree/master/packages/postcss)
|
||||
* **Start**: [`start-postcss`](https://github.com/start-runner/postcss)
|
||||
* **Connect/Express**: [`postcss-middleware`](https://github.com/jedmao/postcss-middleware)
|
||||
|
||||
### JS API
|
||||
|
||||
For other environments, you can use the JS API:
|
||||
|
||||
```js
|
||||
const autoprefixer = require('autoprefixer')
|
||||
const postcss = require('postcss')
|
||||
const precss = require('precss')
|
||||
const fs = require('fs')
|
||||
|
||||
fs.readFile('src/app.css', (err, css) => {
|
||||
postcss([precss, autoprefixer])
|
||||
.process(css, { from: 'src/app.css', to: 'dest/app.css' })
|
||||
.then(result => {
|
||||
fs.writeFile('dest/app.css', result.css, () => true)
|
||||
if ( result.map ) {
|
||||
fs.writeFile('dest/app.css.map', result.map, () => true)
|
||||
}
|
||||
})
|
||||
})
|
||||
```
|
||||
|
||||
Read the [PostCSS API documentation] for more details about the JS API.
|
||||
|
||||
All PostCSS runners should pass [PostCSS Runner Guidelines].
|
||||
|
||||
[PostCSS Runner Guidelines]: https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md
|
||||
[PostCSS API documentation]: http://api.postcss.org/postcss.html
|
||||
|
||||
### Options
|
||||
|
||||
Most PostCSS runners accept two parameters:
|
||||
|
||||
* An array of plugins.
|
||||
* An object of options.
|
||||
|
||||
Common options:
|
||||
|
||||
* `syntax`: an object providing a syntax parser and a stringifier.
|
||||
* `parser`: a special syntax parser (for example, [SCSS]).
|
||||
* `stringifier`: a special syntax output generator (for example, [Midas]).
|
||||
* `map`: [source map options].
|
||||
* `from`: the input file name (most runners set it automatically).
|
||||
* `to`: the output file name (most runners set it automatically).
|
||||
|
||||
[source map options]: https://github.com/postcss/postcss/blob/master/docs/source-maps.md
|
||||
[Midas]: https://github.com/ben-eb/midas
|
||||
[SCSS]: https://github.com/postcss/postcss-scss
|
||||
|
||||
### Treat Warnings as Errors
|
||||
|
||||
In some situations it might be helpful to fail the build on any warning
|
||||
from PostCSS or one of its plugins. This guarantees that no warnings
|
||||
go unnoticed, and helps to avoid bugs. While there is no option to enable
|
||||
treating warnings as errors, it can easily be done
|
||||
by adding `postcss-fail-on-warn` plugin in the end of PostCSS plugins:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('autoprefixer'),
|
||||
require('postcss-fail-on-warn')
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
[Our contributing guidelines](./CONTRIBUTING.md) will help you
|
||||
with making pull request to this project.
|
||||
|
||||
## Editors & IDE Integration
|
||||
|
||||
### VS Code
|
||||
|
||||
* [`csstools.postcss`] adds support for PostCSS, `postcss-preset-env`
|
||||
and CSS Modules.
|
||||
|
||||
[`csstools.postcss`]: https://marketplace.visualstudio.com/items?itemName=csstools.postcss
|
||||
|
||||
### Atom
|
||||
|
||||
* [`language-postcss`] adds PostCSS and [SugarSS] highlight.
|
||||
* [`source-preview-postcss`] previews your output CSS in a separate, live pane.
|
||||
|
||||
[SugarSS]: https://github.com/postcss/sugarss
|
||||
|
||||
### Sublime Text
|
||||
|
||||
* [`Syntax-highlighting-for-PostCSS`] adds PostCSS highlight.
|
||||
|
||||
[`Syntax-highlighting-for-PostCSS`]: https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS
|
||||
[`source-preview-postcss`]: https://atom.io/packages/source-preview-postcss
|
||||
[`language-postcss`]: https://atom.io/packages/language-postcss
|
||||
|
||||
### Vim
|
||||
|
||||
* [`postcss.vim`] adds PostCSS highlight.
|
||||
|
||||
[`postcss.vim`]: https://github.com/stephenway/postcss.vim
|
||||
|
||||
### WebStorm
|
||||
|
||||
WebStorm 2016.3 [has] built-in PostCSS support.
|
||||
|
||||
[has]: https://blog.jetbrains.com/webstorm/2016/08/webstorm-2016-3-early-access-preview/
|
||||
|
||||
|
||||
## Security Contact
|
||||
|
||||
To report a security vulnerability, please use the [Tidelift security contact].
|
||||
Tidelift will coordinate the fix and disclosure.
|
||||
|
||||
[Tidelift security contact]: https://tidelift.com/security
|
||||
|
||||
|
||||
## For Enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of `postcss` and thousands of other packages are working
|
||||
with Tidelift to deliver commercial support and maintenance for the open source
|
||||
dependencies you use to build your applications. Save time, reduce risk,
|
||||
and improve code health, while paying the maintainers of the exact dependencies
|
||||
you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-postcss?utm_source=npm-postcss&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
156
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/architecture.md
generated
vendored
156
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/architecture.md
generated
vendored
@@ -1,156 +0,0 @@
|
||||
## PostCSS Architecture
|
||||
|
||||
General overview of the PostCSS architecture.
|
||||
It can be useful for everyone who wishes to contribute to the core or develop a better understanding of the tool.
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
- [Overview](#overview)
|
||||
- [Workflow](#workflow)
|
||||
- [Core Structures](#core-structures)
|
||||
* [Tokenizer](#tokenizer--libtokenizees6-)
|
||||
* [Parser](#parser--libparsees6-libparseres6-)
|
||||
* [Processor](#processor--libprocessores6-)
|
||||
* [Stringifier](#stringifier--libstringifyes6-libstringifieres6-)
|
||||
- [API](#api-reference)
|
||||
|
||||
### Overview
|
||||
|
||||
> This section describes ideas lying behind PostCSS
|
||||
|
||||
Before diving deeper into the development of PostCSS let's briefly describe what is PostCSS and what is not.
|
||||
|
||||
**PostCSS**
|
||||
|
||||
- *is **NOT** a style preprocessor like `Sass` or `Less`.*
|
||||
|
||||
It does not define a custom syntax and semantics, it's not actually a language.
|
||||
PostCSS works with CSS and can be easily integrated with the tools described above. That being said any valid CSS can be processed by PostCSS.
|
||||
|
||||
- *is a tool for CSS syntax transformations*
|
||||
|
||||
It allows you to define custom CSS like syntax that could be understandable and transformed by plugins. That being said PostCSS is not strictly about CSS spec but about syntax definition manner of CSS. In such a way you can define custom syntax constructs like at-rule, that could be very helpful for tools build around PostCSS. PostCSS plays the role of a framework for building outstanding tools for CSS manipulations.
|
||||
|
||||
- *is a big player in CSS ecosystem*
|
||||
|
||||
A Large amount of lovely tools like `Autoprefixer`, `Stylelint`, `CSSnano` were built on PostCSS ecosystem. There is a big chance that you already use it implicitly, just check your `node_modules` :smiley:
|
||||
|
||||
### Workflow
|
||||
|
||||
This is a high-level overview of the whole PostCSS workflow
|
||||
|
||||
<img width="300" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/PostCSS_scheme.svg/512px-PostCSS_scheme.svg.png" alt="workflow">
|
||||
|
||||
As you can see from the diagram above, PostCSS architecture is pretty straightforward but some parts of it could be misunderstood.
|
||||
|
||||
You can see a part called *Parser*, this construct will be described in details later on, just for now think about it as a structure that can understand your CSS like syntax and create an object representation of it.
|
||||
|
||||
That being said, there are few ways to write a parser.
|
||||
|
||||
- *Write a single file with string to AST transformation*
|
||||
|
||||
This method is quite popular, for example, the [Rework analyzer](https://github.com/reworkcss/css/blob/master/lib/parse/index.js) was written in this style. But with a large code base, the code becomes hard to read and pretty slow.
|
||||
|
||||
- *Split it into lexical analysis/parsing steps (source string → tokens → AST)*
|
||||
|
||||
This is the way of how we do it in PostCSS and also the most popular one.
|
||||
A lot of parsers like [`@babel/parser` (parser behind Babel)](https://github.com/babel/babel/tree/master/packages/babel-parser), [`CSSTree`](https://github.com/csstree/csstree) were written in such way.
|
||||
The main reasons to separate tokenization from parsing steps are performance and abstracting complexity.
|
||||
|
||||
Let think about why the second way is better for our needs.
|
||||
|
||||
First of all, because string to tokens step takes more time than parsing step. We operate on large source string and process it char by char, this is why it is very inefficient operation in terms of performance and we should perform it only once.
|
||||
|
||||
But from other side tokens to AST transformation is logically more complex so with such separation we could write very fast tokenizer (but from this comes sometimes hard to read code) and easy to read (but slow) parser.
|
||||
|
||||
Summing it up splitting into two steps improve performance and code readability.
|
||||
|
||||
So now let's look more closely on structures that play the main role in PostCSS workflow.
|
||||
|
||||
### Core Structures
|
||||
|
||||
- #### Tokenizer ( [lib/tokenize.es6](https://github.com/postcss/postcss/blob/master/lib/tokenize.es6) )
|
||||
|
||||
Tokenizer (aka Lexer) plays important role in syntax analysis.
|
||||
|
||||
It accepts CSS string and returns a list of tokens.
|
||||
|
||||
Token is a simple structure that describes some part of syntax like `at-rule`, `comment` or `word`. It can also contain positional information for more descriptive errors.
|
||||
|
||||
For example, if we consider following CSS
|
||||
|
||||
```css
|
||||
.className { color: #FFF; }
|
||||
```
|
||||
|
||||
corresponding tokens from PostCSS will be
|
||||
```js
|
||||
[
|
||||
["word", ".className", 1, 1, 1, 10]
|
||||
["space", " "]
|
||||
["{", "{", 1, 12]
|
||||
["space", " "]
|
||||
["word", "color", 1, 14, 1, 18]
|
||||
[":", ":", 1, 19]
|
||||
["space", " "]
|
||||
["word", "#FFF" , 1, 21, 1, 23]
|
||||
[";", ";", 1, 24]
|
||||
["space", " "]
|
||||
["}", "}", 1, 26]
|
||||
]
|
||||
```
|
||||
|
||||
As you can see from the example above a single token represented as a list and also `space` token doesn't have positional information.
|
||||
|
||||
Let's look more closely on single token like `word`. As it was said each token represented as a list and follow such pattern.
|
||||
|
||||
```js
|
||||
const token = [
|
||||
// represents token type
|
||||
'word',
|
||||
|
||||
// represents matched word
|
||||
'.className',
|
||||
|
||||
// This two numbers represent start position of token.
|
||||
// It is optional value as we saw in the example above,
|
||||
// tokens like `space` don't have such information.
|
||||
|
||||
// Here the first number is line number and the second one is corresponding column.
|
||||
1, 1,
|
||||
|
||||
// Next two numbers also optional and represent end position for multichar tokens like this one. Numbers follow same rule as was described above
|
||||
1, 10
|
||||
]
|
||||
```
|
||||
There are many patterns how tokenization could be done, PostCSS motto is performance and simplicity. Tokenization is a complex computing operation and takes a large amount of syntax analysis time ( ~90% ), that why PostCSS' Tokenizer looks dirty but it was optimized for speed. Any high-level constructs like classes could dramatically slow down tokenizer.
|
||||
|
||||
PostCSS' Tokenizer uses some sort of streaming/chaining API where you expose [`nextToken()`](https://github.com/postcss/postcss/blob/master/lib/tokenize.es6#L48-L308) method to Parser. In this manner, we provide a clean interface for Parser and reduce memory usage by storing only a few tokens and not the whole list of tokens.
|
||||
|
||||
- #### Parser ( [lib/parse.es6](https://github.com/postcss/postcss/blob/master/lib/parse.es6), [lib/parser.es6](https://github.com/postcss/postcss/blob/master/lib/parser.es6) )
|
||||
|
||||
Parser is the main structure responsible for [syntax analysis](https://en.wikipedia.org/wiki/Parsing) of incoming CSS. Parser produces a structure called [Abstract Syntax Tree (AST)](https://en.wikipedia.org/wiki/Abstract_syntax_tree) that could then be transformed by plugins later on.
|
||||
|
||||
Parser works in common with Tokenizer and operates over tokens, not source string, as it would be a very inefficient operation.
|
||||
|
||||
It uses mostly `nextToken` and `back` methods provided by Tokenizer for obtaining single or multiple tokens and then construct part of AST called `Node`.
|
||||
|
||||
There are multiple Node types that PostCSS could produce but all of them inherit from base Node [class](https://github.com/postcss/postcss/blob/master/lib/node.es6#L34).
|
||||
|
||||
- #### Processor ( [lib/processor.es6](https://github.com/postcss/postcss/blob/master/lib/processor.es6) )
|
||||
|
||||
Processor is a very plain structure that initializes plugins and runs syntax transformations. Plugin is just a function registered with [postcss.plugin](https://github.com/postcss/postcss/blob/master/lib/postcss.es6#L109) call.
|
||||
|
||||
It exposes only a few public API methods. Description of them could be found on [api.postcss.org/Processor](http://api.postcss.org/Processor.html)
|
||||
|
||||
- #### Stringifier ( [lib/stringify.es6](https://github.com/postcss/postcss/blob/master/lib/stringify.es6), [lib/stringifier.es6](https://github.com/postcss/postcss/blob/master/lib/stringifier.es6) )
|
||||
|
||||
Stringifier is a base class that translates modified AST to pure CSS string. Stringifier traverses AST starting from provided Node and generates a raw string representation of it calling corresponding methods.
|
||||
|
||||
The most essential method is [`Stringifier.stringify`](https://github.com/postcss/postcss/blob/master/lib/stringifier.es6#L25-L27)
|
||||
that accepts initial Node and semicolon indicator.
|
||||
You can learn more by checking [stringifier.es6](https://github.com/postcss/postcss/blob/master/lib/stringifier.es6)
|
||||
|
||||
### API Reference
|
||||
|
||||
More descriptive API documentation could be found [here](http://api.postcss.org/)
|
||||
195
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/guidelines/plugin.md
generated
vendored
195
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/guidelines/plugin.md
generated
vendored
@@ -1,195 +0,0 @@
|
||||
# PostCSS Plugin Guidelines
|
||||
|
||||
A PostCSS plugin is a function that receives and, usually,
|
||||
transforms a CSS AST from the PostCSS parser.
|
||||
|
||||
The rules below are *mandatory* for all PostCSS plugins.
|
||||
|
||||
See also [ClojureWerkz’s recommendations] for open source projects.
|
||||
|
||||
[ClojureWerkz’s recommendations]: http://blog.clojurewerkz.org/blog/2013/04/20/how-to-make-your-open-source-project-really-awesome/
|
||||
|
||||
## 1. API
|
||||
|
||||
### 1.1 Clear name with `postcss-` prefix
|
||||
|
||||
The plugin’s purpose should be clear just by reading its name.
|
||||
If you wrote a transpiler for CSS 4 Custom Media, `postcss-custom-media`
|
||||
would be a good name. If you wrote a plugin to support mixins,
|
||||
`postcss-mixins` would be a good name.
|
||||
|
||||
The prefix `postcss-` shows that the plugin is part of the PostCSS ecosystem.
|
||||
|
||||
This rule is not mandatory for plugins that can run as independent tools,
|
||||
without the user necessarily knowing that it is powered by
|
||||
PostCSS — for example, [RTLCSS] and [Autoprefixer].
|
||||
|
||||
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
||||
[RTLCSS]: https://rtlcss.com/
|
||||
|
||||
### 1.2. Do one thing, and do it well
|
||||
|
||||
Do not create multitool plugins. Several small, one-purpose plugins bundled into
|
||||
a plugin pack is usually a better solution.
|
||||
|
||||
For example, [`postcss-preset-env`] contains many small plugins,
|
||||
one for each W3C specification. And [`cssnano`] contains a separate plugin
|
||||
for each of its optimization.
|
||||
|
||||
[`postcss-preset-env`]: https://preset-env.cssdb.org/
|
||||
[`cssnano`]: https://github.com/ben-eb/cssnano
|
||||
|
||||
### 1.3. Do not use mixins
|
||||
|
||||
Preprocessors libraries like Compass provide an API with mixins.
|
||||
|
||||
PostCSS plugins are different.
|
||||
A plugin cannot be just a set of mixins for [`postcss-mixins`].
|
||||
|
||||
To achieve your goal, consider transforming valid CSS
|
||||
or using custom at-rules and custom properties.
|
||||
|
||||
[`postcss-mixins`]: https://github.com/postcss/postcss-mixins
|
||||
|
||||
### 1.4. Create plugin by `postcss.plugin`
|
||||
|
||||
By wrapping your function in this method,
|
||||
you are hooking into a common plugin API:
|
||||
|
||||
```js
|
||||
module.exports = postcss.plugin('plugin-name', opts => {
|
||||
return (root, result) => {
|
||||
// Plugin code
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
## 2. Processing
|
||||
|
||||
### 2.1. Plugin must be tested
|
||||
|
||||
A CI service like [Travis] is also recommended for testing code in
|
||||
different environments. You should test in (at least) Node.js [active LTS](https://github.com/nodejs/LTS) and current stable version.
|
||||
|
||||
[Travis]: https://travis-ci.org/
|
||||
|
||||
### 2.2. Use asynchronous methods whenever possible
|
||||
|
||||
For example, use `fs.writeFile` instead of `fs.writeFileSync`:
|
||||
|
||||
```js
|
||||
postcss.plugin('plugin-sprite', opts => {
|
||||
return (root, result) => {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const sprite = makeSprite()
|
||||
fs.writeFile(opts.file, sprite, err => {
|
||||
if (err) return reject(err)
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
### 2.3. Set `node.source` for new nodes
|
||||
|
||||
Every node must have a relevant `source` so PostCSS can generate
|
||||
an accurate source map.
|
||||
|
||||
So if you add a new declaration based on some existing declaration, you should
|
||||
clone the existing declaration in order to save that original `source`.
|
||||
|
||||
```js
|
||||
if (needPrefix(decl.prop)) {
|
||||
decl.cloneBefore({ prop: '-webkit-' + decl.prop })
|
||||
}
|
||||
```
|
||||
|
||||
You can also set `source` directly, copying from some existing node:
|
||||
|
||||
```js
|
||||
if (decl.prop === 'animation') {
|
||||
const keyframe = createAnimationByName(decl.value)
|
||||
keyframes.source = decl.source
|
||||
decl.root().append(keyframes)
|
||||
}
|
||||
```
|
||||
|
||||
### 2.4. Use only the public PostCSS API
|
||||
|
||||
PostCSS plugins must not rely on undocumented properties or methods,
|
||||
which may be subject to change in any minor release. The public API
|
||||
is described in [API docs].
|
||||
|
||||
[API docs]: http://api.postcss.org/
|
||||
|
||||
## 3. Errors
|
||||
|
||||
### 3.1. Use `node.error` on CSS relevant errors
|
||||
|
||||
If you have an error because of input CSS (like an unknown name
|
||||
in a mixin plugin) you should use `node.error` to create an error
|
||||
that includes source position:
|
||||
|
||||
```js
|
||||
if (typeof mixins[name] === 'undefined') {
|
||||
throw decl.error('Unknown mixin ' + name, { plugin: 'postcss-mixins' })
|
||||
}
|
||||
```
|
||||
|
||||
### 3.2. Use `result.warn` for warnings
|
||||
|
||||
Do not print warnings with `console.log` or `console.warn`,
|
||||
because some PostCSS runner may not allow console output.
|
||||
|
||||
```js
|
||||
if (outdated(decl.prop)) {
|
||||
result.warn(decl.prop + ' is outdated', { node: decl })
|
||||
}
|
||||
```
|
||||
|
||||
If CSS input is a source of the warning, the plugin must set the `node` option.
|
||||
|
||||
## 4. Documentation
|
||||
|
||||
### 4.1. Document your plugin in English
|
||||
|
||||
PostCSS plugins must have their `README.md` wrote in English. Do not be afraid
|
||||
of your English skills, as the open source community will fix your errors.
|
||||
|
||||
Of course, you are welcome to write documentation in other languages;
|
||||
just name them appropriately (e.g. `README.ja.md`).
|
||||
|
||||
### 4.2. Include input and output examples
|
||||
|
||||
The plugin's `README.md` must contain example input and output CSS.
|
||||
A clear example is the best way to describe how your plugin works.
|
||||
|
||||
The first section of the `README.md` is a good place to put examples.
|
||||
See [postcss-opacity](https://github.com/iamvdo/postcss-opacity) for an example.
|
||||
|
||||
Of course, this guideline does not apply if your plugin does not
|
||||
transform the CSS.
|
||||
|
||||
### 4.3. Maintain a changelog
|
||||
|
||||
PostCSS plugins must describe the changes of all their releases
|
||||
in a separate file, such as `CHANGELOG.md`, `History.md`, or [GitHub Releases].
|
||||
Visit [Keep A Changelog] for more information about how to write one of these.
|
||||
|
||||
Of course, you should be using [SemVer].
|
||||
|
||||
[Keep A Changelog]: http://keepachangelog.com/
|
||||
[GitHub Releases]: https://help.github.com/articles/creating-releases/
|
||||
[SemVer]: http://semver.org/
|
||||
|
||||
### 4.4. Include `postcss-plugin` keyword in `package.json`
|
||||
|
||||
PostCSS plugins written for npm must have the `postcss-plugin` keyword
|
||||
in their `package.json`. This special keyword will be useful for feedback about
|
||||
the PostCSS ecosystem.
|
||||
|
||||
For packages not published to npm, this is not mandatory, but is recommended
|
||||
if the package format can contain keywords.
|
||||
143
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/guidelines/runner.md
generated
vendored
143
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/guidelines/runner.md
generated
vendored
@@ -1,143 +0,0 @@
|
||||
# PostCSS Runner Guidelines
|
||||
|
||||
A PostCSS runner is a tool that processes CSS through a user-defined list
|
||||
of plugins; for example, [`postcss-cli`] or [`gulp‑postcss`].
|
||||
These rules are mandatory for any such runners.
|
||||
|
||||
For single-plugin tools, like [`gulp-autoprefixer`],
|
||||
these rules are not mandatory but are highly recommended.
|
||||
|
||||
See also [ClojureWerkz’s recommendations] for open source projects.
|
||||
|
||||
[ClojureWerkz’s recommendations]: http://blog.clojurewerkz.org/blog/2013/04/20/how-to-make-your-open-source-project-really-awesome/
|
||||
[`gulp-autoprefixer`]: https://github.com/sindresorhus/gulp-autoprefixer
|
||||
[`gulp‑postcss`]: https://github.com/w0rm/gulp-postcss
|
||||
[`postcss-cli`]: https://github.com/postcss/postcss-cli
|
||||
|
||||
## 1. API
|
||||
|
||||
### 1.1. Accept functions in plugin parameters
|
||||
|
||||
If your runner uses a config file, it must be written in JavaScript, so that
|
||||
it can support plugins which accept a function, such as [`postcss-assets`]:
|
||||
|
||||
```js
|
||||
module.exports = [
|
||||
require('postcss-assets')({
|
||||
cachebuster: function (file) {
|
||||
return fs.statSync(file).mtime.getTime().toString(16)
|
||||
}
|
||||
})
|
||||
]
|
||||
```
|
||||
|
||||
[`postcss-assets`]: https://github.com/borodean/postcss-assets
|
||||
|
||||
## 2. Processing
|
||||
|
||||
### 2.1. Set `from` and `to` processing options
|
||||
|
||||
To ensure that PostCSS generates source maps and displays better syntax errors,
|
||||
runners must specify the `from` and `to` options. If your runner does not handle
|
||||
writing to disk (for example, a gulp transform), you should set both options
|
||||
to point to the same file:
|
||||
|
||||
```js
|
||||
processor.process({ from: file.path, to: file.path })
|
||||
```
|
||||
|
||||
### 2.2. Use only the asynchronous API
|
||||
|
||||
PostCSS runners must use only the asynchronous API.
|
||||
The synchronous API is provided only for debugging, is slower,
|
||||
and can’t work with asynchronous plugins.
|
||||
|
||||
```js
|
||||
processor.process(opts).then(result => {
|
||||
// processing is finished
|
||||
});
|
||||
```
|
||||
|
||||
### 2.3. Use only the public PostCSS API
|
||||
|
||||
PostCSS runners must not rely on undocumented properties or methods,
|
||||
which may be subject to change in any minor release. The public API
|
||||
is described in [API docs].
|
||||
|
||||
[API docs]: http://api.postcss.org/
|
||||
|
||||
## 3. Output
|
||||
|
||||
### 3.1. Don’t show JS stack for `CssSyntaxError`
|
||||
|
||||
PostCSS runners must not show a stack trace for CSS syntax errors,
|
||||
as the runner can be used by developers who are not familiar with JavaScript.
|
||||
Instead, handle such errors gracefully:
|
||||
|
||||
```js
|
||||
processor.process(opts).catch(error => {
|
||||
if (error.name === 'CssSyntaxError') {
|
||||
process.stderr.write(error.message + error.showSourceCode())
|
||||
} else {
|
||||
throw error
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
### 3.2. Display `result.warnings()`
|
||||
|
||||
PostCSS runners must output warnings from `result.warnings()`:
|
||||
|
||||
```js
|
||||
result.warnings().forEach(warn => {
|
||||
process.stderr.write(warn.toString())
|
||||
})
|
||||
```
|
||||
|
||||
See also [postcss-log-warnings] and [postcss-messages] plugins.
|
||||
|
||||
[postcss-log-warnings]: https://github.com/davidtheclark/postcss-log-warnings
|
||||
[postcss-messages]: https://github.com/postcss/postcss-messages
|
||||
|
||||
### 3.3. Allow the user to write source maps to different files
|
||||
|
||||
PostCSS by default will inline source maps in the generated file; however,
|
||||
PostCSS runners must provide an option to save the source map in a different
|
||||
file:
|
||||
|
||||
```js
|
||||
if (result.map) {
|
||||
fs.writeFile(opts.to + '.map', result.map.toString())
|
||||
}
|
||||
```
|
||||
|
||||
## 4. Documentation
|
||||
|
||||
### 4.1. Document your runner in English
|
||||
|
||||
PostCSS runners must have their `README.md` wrote in English. Do not be afraid
|
||||
of your English skills, as the open source community will fix your errors.
|
||||
|
||||
Of course, you are welcome to write documentation in other languages;
|
||||
just name them appropriately (e.g. `README.ja.md`).
|
||||
|
||||
### 4.2. Maintain a changelog
|
||||
|
||||
PostCSS runners must describe changes of all releases in a separate file,
|
||||
such as `ChangeLog.md`, `History.md`, or with [GitHub Releases].
|
||||
Visit [Keep A Changelog] for more information on how to write one of these.
|
||||
|
||||
Of course, you should use [SemVer].
|
||||
|
||||
[Keep A Changelog]: http://keepachangelog.com/
|
||||
[GitHub Releases]: https://help.github.com/articles/creating-releases/
|
||||
[SemVer]: http://semver.org/
|
||||
|
||||
### 4.3. `postcss-runner` keyword in `package.json`
|
||||
|
||||
PostCSS runners written for npm must have the `postcss-runner` keyword
|
||||
in their `package.json`. This special keyword will be useful for feedback about
|
||||
the PostCSS ecosystem.
|
||||
|
||||
For packages not published to npm, this is not mandatory, but recommended
|
||||
if the package format is allowed to contain keywords.
|
||||
74
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/source-maps.md
generated
vendored
74
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/source-maps.md
generated
vendored
@@ -1,74 +0,0 @@
|
||||
# PostCSS and Source Maps
|
||||
|
||||
PostCSS has great [source maps] support. It can read and interpret maps
|
||||
from previous transformation steps, autodetect the format that you expect,
|
||||
and output both external and inline maps.
|
||||
|
||||
To ensure that you generate an accurate source map, you must indicate the input
|
||||
and output CSS file paths — using the options `from` and `to`, respectively.
|
||||
|
||||
To generate a new source map with the default options, simply set `map: true`.
|
||||
This will generate an inline source map that contains the source content.
|
||||
If you don’t want the map inlined, you can set `map.inline: false`.
|
||||
|
||||
```js
|
||||
processor
|
||||
.process(css, {
|
||||
from: 'app.sass.css',
|
||||
to: 'app.css',
|
||||
map: { inline: false }
|
||||
})
|
||||
.then(result => {
|
||||
result.map //=> '{ "version":3,
|
||||
// "file":"app.css",
|
||||
// "sources":["app.sass"],
|
||||
// "mappings":"AAAA,KAAI" }'
|
||||
})
|
||||
```
|
||||
|
||||
If PostCSS finds source maps from a previous transformation,
|
||||
it will automatically update that source map with the same options.
|
||||
|
||||
## Options
|
||||
|
||||
If you want more control over source map generation, you can define the `map`
|
||||
option as an object with the following parameters:
|
||||
|
||||
* `inline` boolean: indicates that the source map should be embedded
|
||||
in the output CSS as a Base64-encoded comment. By default, it is `true`.
|
||||
But if all previous maps are external, not inline, PostCSS will not embed
|
||||
the map even if you do not set this option.
|
||||
|
||||
If you have an inline source map, the `result.map` property will be empty,
|
||||
as the source map will be contained within the text of `result.css`.
|
||||
|
||||
* `prev` string, object, boolean or function: source map content from
|
||||
a previous processing step (for example, Sass compilation).
|
||||
PostCSS will try to read the previous source map automatically
|
||||
(based on comments within the source CSS), but you can use this option
|
||||
to identify it manually. If desired, you can omit the previous map
|
||||
with `prev: false`.
|
||||
|
||||
* `sourcesContent` boolean: indicates that PostCSS should set the origin
|
||||
content (for example, Sass source) of the source map. By default,
|
||||
it is `true`. But if all previous maps do not contain sources content,
|
||||
PostCSS will also leave it out even if you do not set this option.
|
||||
|
||||
* `annotation` boolean or string: indicates that PostCSS should add annotation
|
||||
comments to the CSS. By default, PostCSS will always add a comment with a path
|
||||
to the source map. PostCSS will not add annotations to CSS files that
|
||||
do not contain any comments.
|
||||
|
||||
By default, PostCSS presumes that you want to save the source map as
|
||||
`opts.to + '.map'` and will use this path in the annotation comment.
|
||||
A different path can be set by providing a string value for `annotation`.
|
||||
|
||||
If you have set `inline: true`, annotation cannot be disabled.
|
||||
|
||||
* `from` string: by default, PostCSS will set the `sources` property of the map
|
||||
to the value of the `from` option. If you want to override this behaviour, you
|
||||
can use `map.from` to explicitly set the source map's `sources` property.
|
||||
Path should be absolute or relative from generated file
|
||||
(`to` option in `process()` method).
|
||||
|
||||
[source maps]: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
|
||||
233
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/syntax.md
generated
vendored
233
build/javascript/node_modules/autoprefixer/node_modules/postcss/docs/syntax.md
generated
vendored
@@ -1,233 +0,0 @@
|
||||
# How to Write Custom Syntax
|
||||
|
||||
PostCSS can transform styles in any syntax, and is not limited to just CSS.
|
||||
By writing a custom syntax, you can transform styles in any desired format.
|
||||
|
||||
Writing a custom syntax is much harder than writing a PostCSS plugin, but
|
||||
it is an awesome adventure.
|
||||
|
||||
There are 3 types of PostCSS syntax packages:
|
||||
|
||||
* **Parser** to parse input string to node’s tree.
|
||||
* **Stringifier** to generate output string by node’s tree.
|
||||
* **Syntax** contains both parser and stringifier.
|
||||
|
||||
## Syntax
|
||||
|
||||
A good example of a custom syntax is [SCSS]. Some users may want to transform
|
||||
SCSS sources with PostCSS plugins, for example if they need to add vendor
|
||||
prefixes or change the property order. So this syntax should output SCSS from
|
||||
an SCSS input.
|
||||
|
||||
The syntax API is a very simple plain object, with `parse` & `stringify`
|
||||
functions:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
parse: require('./parse'),
|
||||
stringify: require('./stringify')
|
||||
}
|
||||
```
|
||||
|
||||
[SCSS]: https://github.com/postcss/postcss-scss
|
||||
|
||||
## Parser
|
||||
|
||||
A good example of a parser is [Safe Parser], which parses malformed/broken CSS.
|
||||
Because there is no point to generate broken output, this package only provides
|
||||
a parser.
|
||||
|
||||
The parser API is a function which receives a string & returns a [`Root`] node.
|
||||
The second argument is a function which receives an object with PostCSS options.
|
||||
|
||||
```js
|
||||
const postcss = require('postcss')
|
||||
|
||||
module.exports = function parse (css, opts) {
|
||||
const root = postcss.root()
|
||||
// Add other nodes to root
|
||||
return root
|
||||
}
|
||||
```
|
||||
|
||||
[Safe Parser]: https://github.com/postcss/postcss-safe-parser
|
||||
[`Root`]: http://api.postcss.org/Root.html
|
||||
|
||||
### Main Theory
|
||||
|
||||
There are many books about parsers; but do not worry because CSS syntax is
|
||||
very easy, and so the parser will be much simpler than a programming language
|
||||
parser.
|
||||
|
||||
The default PostCSS parser contains two steps:
|
||||
|
||||
1. [Tokenizer] which reads input string character by character and builds a
|
||||
tokens array. For example, it joins space symbols to a `['space', '\n ']`
|
||||
token, and detects strings to a `['string', '"\"{"']` token.
|
||||
2. [Parser] which reads the tokens array, creates node instances and
|
||||
builds a tree.
|
||||
|
||||
[Tokenizer]: https://github.com/postcss/postcss/blob/master/lib/tokenize.es6
|
||||
[Parser]: https://github.com/postcss/postcss/blob/master/lib/parser.es6
|
||||
|
||||
### Performance
|
||||
|
||||
Parsing input is often the most time consuming task in CSS processors. So it
|
||||
is very important to have a fast parser.
|
||||
|
||||
The main rule of optimization is that there is no performance without a
|
||||
benchmark. You can look at [PostCSS benchmarks] to build your own.
|
||||
|
||||
Of parsing tasks, the tokenize step will often take the most time, so its
|
||||
performance should be prioritized. Unfortunately, classes, functions and
|
||||
high level structures can slow down your tokenizer. Be ready to write dirty
|
||||
code with repeated statements. This is why it is difficult to extend the
|
||||
default [PostCSS tokenizer]; copy & paste will be a necessary evil.
|
||||
|
||||
Second optimization is using character codes instead of strings.
|
||||
|
||||
```js
|
||||
// Slow
|
||||
string[i] === '{'
|
||||
|
||||
// Fast
|
||||
const OPEN_CURLY = 123 // `{'
|
||||
string.charCodeAt(i) === OPEN_CURLY
|
||||
```
|
||||
|
||||
Third optimization is “fast jumps”. If you find open quotes, you can find
|
||||
next closing quote much faster by `indexOf`:
|
||||
|
||||
```js
|
||||
// Simple jump
|
||||
next = string.indexOf('"', currentPosition + 1)
|
||||
|
||||
// Jump by RegExp
|
||||
regexp.lastIndex = currentPosion + 1
|
||||
regexp.test(string)
|
||||
next = regexp.lastIndex
|
||||
```
|
||||
|
||||
The parser can be a well written class. There is no need in copy-paste and
|
||||
hardcore optimization there. You can extend the default [PostCSS parser].
|
||||
|
||||
[PostCSS benchmarks]: https://github.com/postcss/benchmark
|
||||
[PostCSS tokenizer]: https://github.com/postcss/postcss/blob/master/lib/tokenize.es6
|
||||
[PostCSS parser]: https://github.com/postcss/postcss/blob/master/lib/parser.es6
|
||||
|
||||
### Node Source
|
||||
|
||||
Every node should have `source` property to generate correct source map.
|
||||
This property contains `start` and `end` properties with `{ line, column }`,
|
||||
and `input` property with an [`Input`] instance.
|
||||
|
||||
Your tokenizer should save the original position so that you can propagate
|
||||
the values to the parser, to ensure that the source map is correctly updated.
|
||||
|
||||
[`Input`]: https://github.com/postcss/postcss/blob/master/lib/input.es6
|
||||
|
||||
### Raw Values
|
||||
|
||||
A good PostCSS parser should provide all information (including spaces symbols)
|
||||
to generate byte-to-byte equal output. It is not so difficult, but respectful
|
||||
for user input and allow integration smoke tests.
|
||||
|
||||
A parser should save all additional symbols to `node.raws` object.
|
||||
It is an open structure for you, you can add additional keys.
|
||||
For example, [SCSS parser] saves comment types (`/* */` or `//`)
|
||||
in `node.raws.inline`.
|
||||
|
||||
The default parser cleans CSS values from comments and spaces.
|
||||
It saves the original value with comments to `node.raws.value.raw` and uses it,
|
||||
if the node value was not changed.
|
||||
|
||||
[SCSS parser]: https://github.com/postcss/postcss-scss
|
||||
|
||||
### Tests
|
||||
|
||||
Of course, all parsers in the PostCSS ecosystem must have tests.
|
||||
|
||||
If your parser just extends CSS syntax (like [SCSS] or [Safe Parser]),
|
||||
you can use the [PostCSS Parser Tests]. It contains unit & integration tests.
|
||||
|
||||
[PostCSS Parser Tests]: https://github.com/postcss/postcss-parser-tests
|
||||
|
||||
## Stringifier
|
||||
|
||||
A style guide generator is a good example of a stringifier. It generates output
|
||||
HTML which contains CSS components. For this use case, a parser isn't necessary,
|
||||
so the package should just contain a stringifier.
|
||||
|
||||
The Stringifier API is little bit more complicated, than the parser API.
|
||||
PostCSS generates a source map, so a stringifier can’t just return a string.
|
||||
It must link every substring with its source node.
|
||||
|
||||
A Stringifier is a function which receives [`Root`] node and builder callback.
|
||||
Then it calls builder with every node’s string and node instance.
|
||||
|
||||
```js
|
||||
module.exports = function stringify (root, builder) {
|
||||
// Some magic
|
||||
const string = decl.prop + ':' + decl.value + ';'
|
||||
builder(string, decl)
|
||||
// Some science
|
||||
};
|
||||
```
|
||||
|
||||
### Main Theory
|
||||
|
||||
PostCSS [default stringifier] is just a class with a method for each node type
|
||||
and many methods to detect raw properties.
|
||||
|
||||
In most cases it will be enough just to extend this class,
|
||||
like in [SCSS stringifier].
|
||||
|
||||
[default stringifier]: https://github.com/postcss/postcss/blob/master/lib/stringifier.es6
|
||||
[SCSS stringifier]: https://github.com/postcss/postcss-scss/blob/master/lib/scss-stringifier.es6
|
||||
|
||||
### Builder Function
|
||||
|
||||
A builder function will be passed to `stringify` function as second argument.
|
||||
For example, the default PostCSS stringifier class saves it
|
||||
to `this.builder` property.
|
||||
|
||||
Builder receives output substring and source node to append this substring
|
||||
to the final output.
|
||||
|
||||
Some nodes contain other nodes in the middle. For example, a rule has a `{`
|
||||
at the beginning, many declarations inside and a closing `}`.
|
||||
|
||||
For these cases, you should pass a third argument to builder function:
|
||||
`'start'` or `'end'` string:
|
||||
|
||||
```js
|
||||
this.builder(rule.selector + '{', rule, 'start')
|
||||
// Stringify declarations inside
|
||||
this.builder('}', rule, 'end')
|
||||
```
|
||||
|
||||
### Raw Values
|
||||
|
||||
A good PostCSS custom syntax saves all symbols and provide byte-to-byte equal
|
||||
output if there were no changes.
|
||||
|
||||
This is why every node has `node.raws` object to store space symbol, etc.
|
||||
|
||||
All data related to source code and not CSS structure, should be in `Node#raws`. For instance, `postcss-scss` keep in `Comment#raws.inline` boolean marker of inline comment (`// comment` instead of `/* comment */`).
|
||||
|
||||
Be careful, because sometimes these raw properties will not be present; some
|
||||
nodes may be built manually, or may lose their indentation when they are moved
|
||||
to another parent node.
|
||||
|
||||
This is why the default stringifier has a `raw()` method to autodetect raw
|
||||
properties by other nodes. For example, it will look at other nodes to detect
|
||||
indent size and them multiply it with the current node depth.
|
||||
|
||||
### Tests
|
||||
|
||||
A stringifier must have tests too.
|
||||
|
||||
You can use unit and integration test cases from [PostCSS Parser Tests].
|
||||
Just compare input CSS with CSS after your parser and stringifier.
|
||||
|
||||
[PostCSS Parser Tests]: https://github.com/postcss/postcss-parser-tests
|
||||
127
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/at-rule.js
generated
vendored
127
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/at-rule.js
generated
vendored
@@ -1,127 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _container = _interopRequireDefault(require("./container"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents an at-rule.
|
||||
*
|
||||
* If it’s followed in the CSS by a {} block, this node will have
|
||||
* a nodes property representing its children.
|
||||
*
|
||||
* @extends Container
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@charset "UTF-8"; @media print {}')
|
||||
*
|
||||
* const charset = root.first
|
||||
* charset.type //=> 'atrule'
|
||||
* charset.nodes //=> undefined
|
||||
*
|
||||
* const media = root.last
|
||||
* media.nodes //=> []
|
||||
*/
|
||||
var AtRule = /*#__PURE__*/function (_Container) {
|
||||
_inheritsLoose(AtRule, _Container);
|
||||
|
||||
function AtRule(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Container.call(this, defaults) || this;
|
||||
_this.type = 'atrule';
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = AtRule.prototype;
|
||||
|
||||
_proto.append = function append() {
|
||||
var _Container$prototype$;
|
||||
|
||||
if (!this.nodes) this.nodes = [];
|
||||
|
||||
for (var _len = arguments.length, children = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
children[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children));
|
||||
};
|
||||
|
||||
_proto.prepend = function prepend() {
|
||||
var _Container$prototype$2;
|
||||
|
||||
if (!this.nodes) this.nodes = [];
|
||||
|
||||
for (var _len2 = arguments.length, children = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
children[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children));
|
||||
}
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {string} name The at-rule’s name immediately follows the `@`.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@media print {}')
|
||||
* media.name //=> 'media'
|
||||
* const media = root.first
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {string} params The at-rule’s parameters, the values
|
||||
* that follow the at-rule’s name but precede
|
||||
* any {} block.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('@media print, screen {}')
|
||||
* const media = root.first
|
||||
* media.params //=> 'print, screen'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof AtRule#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node. It also stores `*`
|
||||
* and `_` symbols before the declaration (IE hack).
|
||||
* * `after`: the space symbols after the last child of the node
|
||||
* to the end of the node.
|
||||
* * `between`: the symbols between the property and value
|
||||
* for declarations, selector and `{` for rules, or last parameter
|
||||
* and `{` for at-rules.
|
||||
* * `semicolon`: contains true if the last child has
|
||||
* an (optional) semicolon.
|
||||
* * `afterName`: the space between the at-rule name and its parameters.
|
||||
*
|
||||
* PostCSS cleans at-rule parameters from comments and extra spaces,
|
||||
* but it stores origin content in raws properties.
|
||||
* As such, if you don’t change a declaration’s value,
|
||||
* PostCSS will use the raw value with comments.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse(' @media\nprint {\n}')
|
||||
* root.first.first.raws //=> { before: ' ',
|
||||
* // between: ' ',
|
||||
* // afterName: '\n',
|
||||
* // after: '\n' }
|
||||
*/
|
||||
;
|
||||
|
||||
return AtRule;
|
||||
}(_container.default);
|
||||
|
||||
var _default = AtRule;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImF0LXJ1bGUuZXM2Il0sIm5hbWVzIjpbIkF0UnVsZSIsImRlZmF1bHRzIiwidHlwZSIsImFwcGVuZCIsIm5vZGVzIiwiY2hpbGRyZW4iLCJwcmVwZW5kIiwiQ29udGFpbmVyIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBa0JNQSxNOzs7QUFDSixrQkFBYUMsUUFBYixFQUF1QjtBQUFBOztBQUNyQixrQ0FBTUEsUUFBTjtBQUNBLFVBQUtDLElBQUwsR0FBWSxRQUFaO0FBRnFCO0FBR3RCOzs7O1NBRURDLE0sR0FBQSxrQkFBcUI7QUFBQTs7QUFDbkIsUUFBSSxDQUFDLEtBQUtDLEtBQVYsRUFBaUIsS0FBS0EsS0FBTCxHQUFhLEVBQWI7O0FBREUsc0NBQVZDLFFBQVU7QUFBVkEsTUFBQUEsUUFBVTtBQUFBOztBQUVuQix5REFBYUYsTUFBYixrREFBdUJFLFFBQXZCO0FBQ0QsRzs7U0FFREMsTyxHQUFBLG1CQUFzQjtBQUFBOztBQUNwQixRQUFJLENBQUMsS0FBS0YsS0FBVixFQUFpQixLQUFLQSxLQUFMLEdBQWEsRUFBYjs7QUFERyx1Q0FBVkMsUUFBVTtBQUFWQSxNQUFBQSxRQUFVO0FBQUE7O0FBRXBCLDBEQUFhQyxPQUFiLG1EQUF3QkQsUUFBeEI7QUFDRDtBQUVEOzs7Ozs7Ozs7O0FBVUE7Ozs7Ozs7Ozs7OztBQVlBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBdENtQkUsa0I7O2VBdUVOUCxNIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IENvbnRhaW5lciBmcm9tICcuL2NvbnRhaW5lcidcblxuLyoqXG4gKiBSZXByZXNlbnRzIGFuIGF0LXJ1bGUuXG4gKlxuICogSWYgaXTigJlzIGZvbGxvd2VkIGluIHRoZSBDU1MgYnkgYSB7fSBibG9jaywgdGhpcyBub2RlIHdpbGwgaGF2ZVxuICogYSBub2RlcyBwcm9wZXJ0eSByZXByZXNlbnRpbmcgaXRzIGNoaWxkcmVuLlxuICpcbiAqIEBleHRlbmRzIENvbnRhaW5lclxuICpcbiAqIEBleGFtcGxlXG4gKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnQGNoYXJzZXQgXCJVVEYtOFwiOyBAbWVkaWEgcHJpbnQge30nKVxuICpcbiAqIGNvbnN0IGNoYXJzZXQgPSByb290LmZpcnN0XG4gKiBjaGFyc2V0LnR5cGUgIC8vPT4gJ2F0cnVsZSdcbiAqIGNoYXJzZXQubm9kZXMgLy89PiB1bmRlZmluZWRcbiAqXG4gKiBjb25zdCBtZWRpYSA9IHJvb3QubGFzdFxuICogbWVkaWEubm9kZXMgICAvLz0+IFtdXG4gKi9cbmNsYXNzIEF0UnVsZSBleHRlbmRzIENvbnRhaW5lciB7XG4gIGNvbnN0cnVjdG9yIChkZWZhdWx0cykge1xuICAgIHN1cGVyKGRlZmF1bHRzKVxuICAgIHRoaXMudHlwZSA9ICdhdHJ1bGUnXG4gIH1cblxuICBhcHBlbmQgKC4uLmNoaWxkcmVuKSB7XG4gICAgaWYgKCF0aGlzLm5vZGVzKSB0aGlzLm5vZGVzID0gW11cbiAgICByZXR1cm4gc3VwZXIuYXBwZW5kKC4uLmNoaWxkcmVuKVxuICB9XG5cbiAgcHJlcGVuZCAoLi4uY2hpbGRyZW4pIHtcbiAgICBpZiAoIXRoaXMubm9kZXMpIHRoaXMubm9kZXMgPSBbXVxuICAgIHJldHVybiBzdXBlci5wcmVwZW5kKC4uLmNoaWxkcmVuKVxuICB9XG5cbiAgLyoqXG4gICAqIEBtZW1iZXJvZiBBdFJ1bGUjXG4gICAqIEBtZW1iZXIge3N0cmluZ30gbmFtZSBUaGUgYXQtcnVsZeKAmXMgbmFtZSBpbW1lZGlhdGVseSBmb2xsb3dzIHRoZSBgQGAuXG4gICAqXG4gICAqIEBleGFtcGxlXG4gICAqIGNvbnN0IHJvb3QgID0gcG9zdGNzcy5wYXJzZSgnQG1lZGlhIHByaW50IHt9JylcbiAgICogbWVkaWEubmFtZSAvLz0+ICdtZWRpYSdcbiAgICogY29uc3QgbWVkaWEgPSByb290LmZpcnN0XG4gICAqL1xuXG4gIC8qKlxuICAgKiBAbWVtYmVyb2YgQXRSdWxlI1xuICAgKiBAbWVtYmVyIHtzdHJpbmd9IHBhcmFtcyBUaGUgYXQtcnVsZeKAmXMgcGFyYW1ldGVycywgdGhlIHZhbHVlc1xuICAgKiAgICAgICAgICAgICAgICAgICAgICAgICB0aGF0IGZvbGxvdyB0aGUgYXQtcnVsZeKAmXMgbmFtZSBidXQgcHJlY2VkZVxuICAgKiAgICAgICAgICAgICAgICAgICAgICAgICBhbnkge30gYmxvY2suXG4gICAqXG4gICAqIEBleGFtcGxlXG4gICAqIGNvbnN0IHJvb3QgID0gcG9zdGNzcy5wYXJzZSgnQG1lZGlhIHByaW50LCBzY3JlZW4ge30nKVxuICAgKiBjb25zdCBtZWRpYSA9IHJvb3QuZmlyc3RcbiAgICogbWVkaWEucGFyYW1zIC8vPT4gJ3ByaW50LCBzY3JlZW4nXG4gICAqL1xuXG4gIC8qKlxuICAgKiBAbWVtYmVyb2YgQXRSdWxlI1xuICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgSW5mb3JtYXRpb24gdG8gZ2VuZXJhdGUgYnl0ZS10by1ieXRlIGVxdWFsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSBzdHJpbmcgYXMgaXQgd2FzIGluIHRoZSBvcmlnaW4gaW5wdXQuXG4gICAqXG4gICAqIEV2ZXJ5IHBhcnNlciBzYXZlcyBpdHMgb3duIHByb3BlcnRpZXMsXG4gICAqIGJ1dCB0aGUgZGVmYXVsdCBDU1MgcGFyc2VyIHVzZXM6XG4gICAqXG4gICAqICogYGJlZm9yZWA6IHRoZSBzcGFjZSBzeW1ib2xzIGJlZm9yZSB0aGUgbm9kZS4gSXQgYWxzbyBzdG9yZXMgYCpgXG4gICAqICAgYW5kIGBfYCBzeW1ib2xzIGJlZm9yZSB0aGUgZGVjbGFyYXRpb24gKElFIGhhY2spLlxuICAgKiAqIGBhZnRlcmA6IHRoZSBzcGFjZSBzeW1ib2xzIGFmdGVyIHRoZSBsYXN0IGNoaWxkIG9mIHRoZSBub2RlXG4gICAqICAgdG8gdGhlIGVuZCBvZiB0aGUgbm9kZS5cbiAgICogKiBgYmV0d2VlbmA6IHRoZSBzeW1ib2xzIGJldHdlZW4gdGhlIHByb3BlcnR5IGFuZCB2YWx1ZVxuICAgKiAgIGZvciBkZWNsYXJhdGlvbnMsIHNlbGVjdG9yIGFuZCBge2AgZm9yIHJ1bGVzLCBvciBsYXN0IHBhcmFtZXRlclxuICAgKiAgIGFuZCBge2AgZm9yIGF0LXJ1bGVzLlxuICAgKiAqIGBzZW1pY29sb25gOiBjb250YWlucyB0cnVlIGlmIHRoZSBsYXN0IGNoaWxkIGhhc1xuICAgKiAgIGFuIChvcHRpb25hbCkgc2VtaWNvbG9uLlxuICAgKiAqIGBhZnRlck5hbWVgOiB0aGUgc3BhY2UgYmV0d2VlbiB0aGUgYXQtcnVsZSBuYW1lIGFuZCBpdHMgcGFyYW1ldGVycy5cbiAgICpcbiAgICogUG9zdENTUyBjbGVhbnMgYXQtcnVsZSBwYXJhbWV0ZXJzIGZyb20gY29tbWVudHMgYW5kIGV4dHJhIHNwYWNlcyxcbiAgICogYnV0IGl0IHN0b3JlcyBvcmlnaW4gY29udGVudCBpbiByYXdzIHByb3BlcnRpZXMuXG4gICAqIEFzIHN1Y2gsIGlmIHlvdSBkb27igJl0IGNoYW5nZSBhIGRlY2xhcmF0aW9u4oCZcyB2YWx1ZSxcbiAgICogUG9zdENTUyB3aWxsIHVzZSB0aGUgcmF3IHZhbHVlIHdpdGggY29tbWVudHMuXG4gICAqXG4gICAqIEBleGFtcGxlXG4gICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCcgIEBtZWRpYVxcbnByaW50IHtcXG59JylcbiAgICogcm9vdC5maXJzdC5maXJzdC5yYXdzIC8vPT4geyBiZWZvcmU6ICcgICcsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgYmV0d2VlbjogJyAnLFxuICAgKiAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIGFmdGVyTmFtZTogJ1xcbicsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgYWZ0ZXI6ICdcXG4nIH1cbiAgICovXG59XG5cbmV4cG9ydCBkZWZhdWx0IEF0UnVsZVxuIl0sImZpbGUiOiJhdC1ydWxlLmpzIn0=
|
||||
55
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/comment.js
generated
vendored
55
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/comment.js
generated
vendored
@@ -1,55 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _node = _interopRequireDefault(require("./node"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents a comment between declarations or statements (rule and at-rules).
|
||||
*
|
||||
* Comments inside selectors, at-rule parameters, or declaration values
|
||||
* will be stored in the `raws` properties explained above.
|
||||
*
|
||||
* @extends Node
|
||||
*/
|
||||
var Comment = /*#__PURE__*/function (_Node) {
|
||||
_inheritsLoose(Comment, _Node);
|
||||
|
||||
function Comment(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Node.call(this, defaults) || this;
|
||||
_this.type = 'comment';
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @memberof Comment#
|
||||
* @member {string} text The comment’s text.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Comment#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node.
|
||||
* * `left`: the space symbols between `/*` and the comment’s text.
|
||||
* * `right`: the space symbols between the comment’s text.
|
||||
*/
|
||||
|
||||
|
||||
return Comment;
|
||||
}(_node.default);
|
||||
|
||||
var _default = Comment;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbW1lbnQuZXM2Il0sIm5hbWVzIjpbIkNvbW1lbnQiLCJkZWZhdWx0cyIsInR5cGUiLCJOb2RlIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7SUFRTUEsTzs7O0FBQ0osbUJBQWFDLFFBQWIsRUFBdUI7QUFBQTs7QUFDckIsNkJBQU1BLFFBQU47QUFDQSxVQUFLQyxJQUFMLEdBQVksU0FBWjtBQUZxQjtBQUd0QjtBQUVEOzs7OztBQUtBOzs7Ozs7Ozs7Ozs7Ozs7RUFYb0JDLGE7O2VBeUJQSCxPIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE5vZGUgZnJvbSAnLi9ub2RlJ1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBjb21tZW50IGJldHdlZW4gZGVjbGFyYXRpb25zIG9yIHN0YXRlbWVudHMgKHJ1bGUgYW5kIGF0LXJ1bGVzKS5cbiAqXG4gKiBDb21tZW50cyBpbnNpZGUgc2VsZWN0b3JzLCBhdC1ydWxlIHBhcmFtZXRlcnMsIG9yIGRlY2xhcmF0aW9uIHZhbHVlc1xuICogd2lsbCBiZSBzdG9yZWQgaW4gdGhlIGByYXdzYCBwcm9wZXJ0aWVzIGV4cGxhaW5lZCBhYm92ZS5cbiAqXG4gKiBAZXh0ZW5kcyBOb2RlXG4gKi9cbmNsYXNzIENvbW1lbnQgZXh0ZW5kcyBOb2RlIHtcbiAgY29uc3RydWN0b3IgKGRlZmF1bHRzKSB7XG4gICAgc3VwZXIoZGVmYXVsdHMpXG4gICAgdGhpcy50eXBlID0gJ2NvbW1lbnQnXG4gIH1cblxuICAvKipcbiAgICogQG1lbWJlcm9mIENvbW1lbnQjXG4gICAqIEBtZW1iZXIge3N0cmluZ30gdGV4dCBUaGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICovXG5cbiAgLyoqXG4gICAqIEBtZW1iZXJvZiBDb21tZW50I1xuICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgSW5mb3JtYXRpb24gdG8gZ2VuZXJhdGUgYnl0ZS10by1ieXRlIGVxdWFsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICBub2RlIHN0cmluZyBhcyBpdCB3YXMgaW4gdGhlIG9yaWdpbiBpbnB1dC5cbiAgICpcbiAgICogRXZlcnkgcGFyc2VyIHNhdmVzIGl0cyBvd24gcHJvcGVydGllcyxcbiAgICogYnV0IHRoZSBkZWZhdWx0IENTUyBwYXJzZXIgdXNlczpcbiAgICpcbiAgICogKiBgYmVmb3JlYDogdGhlIHNwYWNlIHN5bWJvbHMgYmVmb3JlIHRoZSBub2RlLlxuICAgKiAqIGBsZWZ0YDogdGhlIHNwYWNlIHN5bWJvbHMgYmV0d2VlbiBgLypgIGFuZCB0aGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICogKiBgcmlnaHRgOiB0aGUgc3BhY2Ugc3ltYm9scyBiZXR3ZWVuIHRoZSBjb21tZW504oCZcyB0ZXh0LlxuICAgKi9cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29tbWVudFxuIl0sImZpbGUiOiJjb21tZW50LmpzIn0=
|
||||
774
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/container.js
generated
vendored
774
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/container.js
generated
vendored
File diff suppressed because one or more lines are too long
298
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/css-syntax-error.js
generated
vendored
298
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/css-syntax-error.js
generated
vendored
File diff suppressed because one or more lines are too long
96
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/declaration.js
generated
vendored
96
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/declaration.js
generated
vendored
@@ -1,96 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _node = _interopRequireDefault(require("./node"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* Represents a CSS declaration.
|
||||
*
|
||||
* @extends Node
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.type //=> 'decl'
|
||||
* decl.toString() //=> ' color: black'
|
||||
*/
|
||||
var Declaration = /*#__PURE__*/function (_Node) {
|
||||
_inheritsLoose(Declaration, _Node);
|
||||
|
||||
function Declaration(defaults) {
|
||||
var _this;
|
||||
|
||||
_this = _Node.call(this, defaults) || this;
|
||||
_this.type = 'decl';
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {string} prop The declaration’s property name.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.prop //=> 'color'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {string} value The declaration’s value.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const decl = root.first.first
|
||||
* decl.value //=> 'black'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {boolean} important `true` if the declaration
|
||||
* has an !important annotation.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a { color: black !important; color: red }')
|
||||
* root.first.first.important //=> true
|
||||
* root.first.last.important //=> undefined
|
||||
*/
|
||||
|
||||
/**
|
||||
* @memberof Declaration#
|
||||
* @member {object} raws Information to generate byte-to-byte equal
|
||||
* node string as it was in the origin input.
|
||||
*
|
||||
* Every parser saves its own properties,
|
||||
* but the default CSS parser uses:
|
||||
*
|
||||
* * `before`: the space symbols before the node. It also stores `*`
|
||||
* and `_` symbols before the declaration (IE hack).
|
||||
* * `between`: the symbols between the property and value
|
||||
* for declarations.
|
||||
* * `important`: the content of the important statement,
|
||||
* if it is not just `!important`.
|
||||
*
|
||||
* PostCSS cleans declaration from comments and extra spaces,
|
||||
* but it stores origin content in raws properties.
|
||||
* As such, if you don’t change a declaration’s value,
|
||||
* PostCSS will use the raw value with comments.
|
||||
*
|
||||
* @example
|
||||
* const root = postcss.parse('a {\n color:black\n}')
|
||||
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
||||
*/
|
||||
|
||||
|
||||
return Declaration;
|
||||
}(_node.default);
|
||||
|
||||
var _default = Declaration;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlY2xhcmF0aW9uLmVzNiJdLCJuYW1lcyI6WyJEZWNsYXJhdGlvbiIsImRlZmF1bHRzIiwidHlwZSIsIk5vZGUiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7Ozs7OztBQUVBOzs7Ozs7Ozs7OztJQVdNQSxXOzs7QUFDSix1QkFBYUMsUUFBYixFQUF1QjtBQUFBOztBQUNyQiw2QkFBTUEsUUFBTjtBQUNBLFVBQUtDLElBQUwsR0FBWSxNQUFaO0FBRnFCO0FBR3RCO0FBRUQ7Ozs7Ozs7Ozs7QUFVQTs7Ozs7Ozs7OztBQVVBOzs7Ozs7Ozs7OztBQVdBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFyQ3dCQyxhOztlQStEWEgsVyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBOb2RlIGZyb20gJy4vbm9kZSdcblxuLyoqXG4gKiBSZXByZXNlbnRzIGEgQ1NTIGRlY2xhcmF0aW9uLlxuICpcbiAqIEBleHRlbmRzIE5vZGVcbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2EgeyBjb2xvcjogYmxhY2sgfScpXG4gKiBjb25zdCBkZWNsID0gcm9vdC5maXJzdC5maXJzdFxuICogZGVjbC50eXBlICAgICAgIC8vPT4gJ2RlY2wnXG4gKiBkZWNsLnRvU3RyaW5nKCkgLy89PiAnIGNvbG9yOiBibGFjaydcbiAqL1xuY2xhc3MgRGVjbGFyYXRpb24gZXh0ZW5kcyBOb2RlIHtcbiAgY29uc3RydWN0b3IgKGRlZmF1bHRzKSB7XG4gICAgc3VwZXIoZGVmYXVsdHMpXG4gICAgdGhpcy50eXBlID0gJ2RlY2wnXG4gIH1cblxuICAvKipcbiAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgKiBAbWVtYmVyIHtzdHJpbmd9IHByb3AgVGhlIGRlY2xhcmF0aW9u4oCZcyBwcm9wZXJ0eSBuYW1lLlxuICAgKlxuICAgKiBAZXhhbXBsZVxuICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYSB7IGNvbG9yOiBibGFjayB9JylcbiAgICogY29uc3QgZGVjbCA9IHJvb3QuZmlyc3QuZmlyc3RcbiAgICogZGVjbC5wcm9wIC8vPT4gJ2NvbG9yJ1xuICAgKi9cblxuICAvKipcbiAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgKiBAbWVtYmVyIHtzdHJpbmd9IHZhbHVlIFRoZSBkZWNsYXJhdGlvbuKAmXMgdmFsdWUuXG4gICAqXG4gICAqIEBleGFtcGxlXG4gICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhIHsgY29sb3I6IGJsYWNrIH0nKVxuICAgKiBjb25zdCBkZWNsID0gcm9vdC5maXJzdC5maXJzdFxuICAgKiBkZWNsLnZhbHVlIC8vPT4gJ2JsYWNrJ1xuICAgKi9cblxuICAvKipcbiAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgKiBAbWVtYmVyIHtib29sZWFufSBpbXBvcnRhbnQgYHRydWVgIGlmIHRoZSBkZWNsYXJhdGlvblxuICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzIGFuICFpbXBvcnRhbnQgYW5ub3RhdGlvbi5cbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2EgeyBjb2xvcjogYmxhY2sgIWltcG9ydGFudDsgY29sb3I6IHJlZCB9JylcbiAgICogcm9vdC5maXJzdC5maXJzdC5pbXBvcnRhbnQgLy89PiB0cnVlXG4gICAqIHJvb3QuZmlyc3QubGFzdC5pbXBvcnRhbnQgIC8vPT4gdW5kZWZpbmVkXG4gICAqL1xuXG4gIC8qKlxuICAgKiBAbWVtYmVyb2YgRGVjbGFyYXRpb24jXG4gICAqIEBtZW1iZXIge29iamVjdH0gcmF3cyBJbmZvcm1hdGlvbiB0byBnZW5lcmF0ZSBieXRlLXRvLWJ5dGUgZXF1YWxcbiAgICogICAgICAgICAgICAgICAgICAgICAgIG5vZGUgc3RyaW5nIGFzIGl0IHdhcyBpbiB0aGUgb3JpZ2luIGlucHV0LlxuICAgKlxuICAgKiBFdmVyeSBwYXJzZXIgc2F2ZXMgaXRzIG93biBwcm9wZXJ0aWVzLFxuICAgKiBidXQgdGhlIGRlZmF1bHQgQ1NTIHBhcnNlciB1c2VzOlxuICAgKlxuICAgKiAqIGBiZWZvcmVgOiB0aGUgc3BhY2Ugc3ltYm9scyBiZWZvcmUgdGhlIG5vZGUuIEl0IGFsc28gc3RvcmVzIGAqYFxuICAgKiAgIGFuZCBgX2Agc3ltYm9scyBiZWZvcmUgdGhlIGRlY2xhcmF0aW9uIChJRSBoYWNrKS5cbiAgICogKiBgYmV0d2VlbmA6IHRoZSBzeW1ib2xzIGJldHdlZW4gdGhlIHByb3BlcnR5IGFuZCB2YWx1ZVxuICAgKiAgIGZvciBkZWNsYXJhdGlvbnMuXG4gICAqICogYGltcG9ydGFudGA6IHRoZSBjb250ZW50IG9mIHRoZSBpbXBvcnRhbnQgc3RhdGVtZW50LFxuICAgKiAgIGlmIGl0IGlzIG5vdCBqdXN0IGAhaW1wb3J0YW50YC5cbiAgICpcbiAgICogUG9zdENTUyBjbGVhbnMgZGVjbGFyYXRpb24gZnJvbSBjb21tZW50cyBhbmQgZXh0cmEgc3BhY2VzLFxuICAgKiBidXQgaXQgc3RvcmVzIG9yaWdpbiBjb250ZW50IGluIHJhd3MgcHJvcGVydGllcy5cbiAgICogQXMgc3VjaCwgaWYgeW91IGRvbuKAmXQgY2hhbmdlIGEgZGVjbGFyYXRpb27igJlzIHZhbHVlLFxuICAgKiBQb3N0Q1NTIHdpbGwgdXNlIHRoZSByYXcgdmFsdWUgd2l0aCBjb21tZW50cy5cbiAgICpcbiAgICogQGV4YW1wbGVcbiAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2Ege1xcbiAgY29sb3I6YmxhY2tcXG59JylcbiAgICogcm9vdC5maXJzdC5maXJzdC5yYXdzIC8vPT4geyBiZWZvcmU6ICdcXG4gICcsIGJldHdlZW46ICc6JyB9XG4gICAqL1xufVxuXG5leHBvcnQgZGVmYXVsdCBEZWNsYXJhdGlvblxuIl0sImZpbGUiOiJkZWNsYXJhdGlvbi5qcyJ9
|
||||
214
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/input.js
generated
vendored
214
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/input.js
generated
vendored
File diff suppressed because one or more lines are too long
437
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/lazy-result.js
generated
vendored
437
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/lazy-result.js
generated
vendored
File diff suppressed because one or more lines are too long
93
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/list.js
generated
vendored
93
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/list.js
generated
vendored
File diff suppressed because one or more lines are too long
347
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/map-generator.js
generated
vendored
347
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/map-generator.js
generated
vendored
File diff suppressed because one or more lines are too long
606
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/node.js
generated
vendored
606
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/node.js
generated
vendored
File diff suppressed because one or more lines are too long
40
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/parse.js
generated
vendored
40
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/parse.js
generated
vendored
@@ -1,40 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _parser = _interopRequireDefault(require("./parser"));
|
||||
|
||||
var _input = _interopRequireDefault(require("./input"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function parse(css, opts) {
|
||||
var input = new _input.default(css, opts);
|
||||
var parser = new _parser.default(input);
|
||||
|
||||
try {
|
||||
parser.parse();
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (e.name === 'CssSyntaxError' && opts && opts.from) {
|
||||
if (/\.scss$/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser';
|
||||
} else if (/\.sass/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser';
|
||||
} else if (/\.less$/i.test(opts.from)) {
|
||||
e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw e;
|
||||
}
|
||||
|
||||
return parser.root;
|
||||
}
|
||||
|
||||
var _default = parse;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhcnNlLmVzNiJdLCJuYW1lcyI6WyJwYXJzZSIsImNzcyIsIm9wdHMiLCJpbnB1dCIsIklucHV0IiwicGFyc2VyIiwiUGFyc2VyIiwiZSIsInByb2Nlc3MiLCJlbnYiLCJOT0RFX0VOViIsIm5hbWUiLCJmcm9tIiwidGVzdCIsIm1lc3NhZ2UiLCJyb290Il0sIm1hcHBpbmdzIjoiOzs7OztBQUFBOztBQUNBOzs7O0FBRUEsU0FBU0EsS0FBVCxDQUFnQkMsR0FBaEIsRUFBcUJDLElBQXJCLEVBQTJCO0FBQ3pCLE1BQUlDLEtBQUssR0FBRyxJQUFJQyxjQUFKLENBQVVILEdBQVYsRUFBZUMsSUFBZixDQUFaO0FBQ0EsTUFBSUcsTUFBTSxHQUFHLElBQUlDLGVBQUosQ0FBV0gsS0FBWCxDQUFiOztBQUNBLE1BQUk7QUFDRkUsSUFBQUEsTUFBTSxDQUFDTCxLQUFQO0FBQ0QsR0FGRCxDQUVFLE9BQU9PLENBQVAsRUFBVTtBQUNWLFFBQUlDLE9BQU8sQ0FBQ0MsR0FBUixDQUFZQyxRQUFaLEtBQXlCLFlBQTdCLEVBQTJDO0FBQ3pDLFVBQUlILENBQUMsQ0FBQ0ksSUFBRixLQUFXLGdCQUFYLElBQStCVCxJQUEvQixJQUF1Q0EsSUFBSSxDQUFDVSxJQUFoRCxFQUFzRDtBQUNwRCxZQUFJLFdBQVdDLElBQVgsQ0FBZ0JYLElBQUksQ0FBQ1UsSUFBckIsQ0FBSixFQUFnQztBQUM5QkwsVUFBQUEsQ0FBQyxDQUFDTyxPQUFGLElBQWEsb0NBQ0EsMkJBREEsR0FFQSx3Q0FGYjtBQUdELFNBSkQsTUFJTyxJQUFJLFVBQVVELElBQVYsQ0FBZVgsSUFBSSxDQUFDVSxJQUFwQixDQUFKLEVBQStCO0FBQ3BDTCxVQUFBQSxDQUFDLENBQUNPLE9BQUYsSUFBYSxvQ0FDQSwyQkFEQSxHQUVBLHdDQUZiO0FBR0QsU0FKTSxNQUlBLElBQUksV0FBV0QsSUFBWCxDQUFnQlgsSUFBSSxDQUFDVSxJQUFyQixDQUFKLEVBQWdDO0FBQ3JDTCxVQUFBQSxDQUFDLENBQUNPLE9BQUYsSUFBYSxvQ0FDQSwyQkFEQSxHQUVBLHdDQUZiO0FBR0Q7QUFDRjtBQUNGOztBQUNELFVBQU1QLENBQU47QUFDRDs7QUFFRCxTQUFPRixNQUFNLENBQUNVLElBQWQ7QUFDRDs7ZUFFY2YsSyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBQYXJzZXIgZnJvbSAnLi9wYXJzZXInXG5pbXBvcnQgSW5wdXQgZnJvbSAnLi9pbnB1dCdcblxuZnVuY3Rpb24gcGFyc2UgKGNzcywgb3B0cykge1xuICBsZXQgaW5wdXQgPSBuZXcgSW5wdXQoY3NzLCBvcHRzKVxuICBsZXQgcGFyc2VyID0gbmV3IFBhcnNlcihpbnB1dClcbiAgdHJ5IHtcbiAgICBwYXJzZXIucGFyc2UoKVxuICB9IGNhdGNoIChlKSB7XG4gICAgaWYgKHByb2Nlc3MuZW52Lk5PREVfRU5WICE9PSAncHJvZHVjdGlvbicpIHtcbiAgICAgIGlmIChlLm5hbWUgPT09ICdDc3NTeW50YXhFcnJvcicgJiYgb3B0cyAmJiBvcHRzLmZyb20pIHtcbiAgICAgICAgaWYgKC9cXC5zY3NzJC9pLnRlc3Qob3B0cy5mcm9tKSkge1xuICAgICAgICAgIGUubWVzc2FnZSArPSAnXFxuWW91IHRyaWVkIHRvIHBhcnNlIFNDU1Mgd2l0aCAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgJ3RoZSBzdGFuZGFyZCBDU1MgcGFyc2VyOyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgJ3RyeSBhZ2FpbiB3aXRoIHRoZSBwb3N0Y3NzLXNjc3MgcGFyc2VyJ1xuICAgICAgICB9IGVsc2UgaWYgKC9cXC5zYXNzL2kudGVzdChvcHRzLmZyb20pKSB7XG4gICAgICAgICAgZS5tZXNzYWdlICs9ICdcXG5Zb3UgdHJpZWQgdG8gcGFyc2UgU2FzcyB3aXRoICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndGhlIHN0YW5kYXJkIENTUyBwYXJzZXI7ICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndHJ5IGFnYWluIHdpdGggdGhlIHBvc3Rjc3Mtc2FzcyBwYXJzZXInXG4gICAgICAgIH0gZWxzZSBpZiAoL1xcLmxlc3MkL2kudGVzdChvcHRzLmZyb20pKSB7XG4gICAgICAgICAgZS5tZXNzYWdlICs9ICdcXG5Zb3UgdHJpZWQgdG8gcGFyc2UgTGVzcyB3aXRoICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndGhlIHN0YW5kYXJkIENTUyBwYXJzZXI7ICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAndHJ5IGFnYWluIHdpdGggdGhlIHBvc3Rjc3MtbGVzcyBwYXJzZXInXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgdGhyb3cgZVxuICB9XG5cbiAgcmV0dXJuIHBhcnNlci5yb290XG59XG5cbmV4cG9ydCBkZWZhdWx0IHBhcnNlXG4iXSwiZmlsZSI6InBhcnNlLmpzIn0=
|
||||
609
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/parser.js
generated
vendored
609
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/parser.js
generated
vendored
File diff suppressed because one or more lines are too long
1283
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/postcss.d.ts
generated
vendored
1283
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/postcss.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
285
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/postcss.js
generated
vendored
285
build/javascript/node_modules/autoprefixer/node_modules/postcss/lib/postcss.js
generated
vendored
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user