Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/postcss-merge-longhand
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/canMerge.js

    r59329aa re29cc2e  
    1313
    1414const unimportant = node => !node.important;
     15/* Cannot be combined with other values in shorthand
     16  https://www.w3.org/TR/css-cascade-5/#shorthand */
    1517
    16 const hasInherit = node => node.value.toLowerCase() === 'inherit';
    1718
    18 const hasInitial = node => node.value.toLowerCase() === 'initial';
    19 
    20 const hasUnset = node => node.value.toLowerCase() === 'unset';
     19const cssWideKeywords = ['inherit', 'initial', 'unset', 'revert'];
    2120
    2221var _default = (props, includeCustomProps = true) => {
    23   if (props.some(hasInherit) && !props.every(hasInherit)) {
    24     return false;
    25   }
     22  const uniqueProps = new Set(props.map(node => node.value.toLowerCase()));
    2623
    27   if (props.some(hasInitial) && !props.every(hasInitial)) {
    28     return false;
    29   }
    30 
    31   if (props.some(hasUnset) && !props.every(hasUnset)) {
    32     return false;
     24  if (uniqueProps.size > 1) {
     25    for (const unmergeable of cssWideKeywords) {
     26      if (uniqueProps.has(unmergeable)) {
     27        return false;
     28      }
     29    }
    3330  }
    3431
  • trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/decl/borders.js

    r59329aa re29cc2e  
    113113  const diff = diffingProps(values, nextValues);
    114114
    115   if (diff.length > 1) {
     115  if (diff.length !== 1) {
    116116    return;
    117117  }
  • trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/validateWsc.js

    r59329aa re29cc2e  
    99exports.isValidWsc = isValidWsc;
    1010
    11 var _cssColorNames = _interopRequireDefault(require("css-color-names"));
     11var _colornames = _interopRequireDefault(require("./colornames.js"));
    1212
    1313function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
     
    1515const widths = ['thin', 'medium', 'thick'];
    1616const styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
    17 const colors = Object.keys(_cssColorNames.default);
    1817
    1918function isStyle(value) {
     
    5251  }
    5352
    54   return !!~colors.indexOf(value);
     53  return !!~_colornames.default.indexOf(value);
    5554}
    5655
  • trip-planner-front/node_modules/postcss-merge-longhand/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "postcss-merge-longhand@5.0.2",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "postcss-merge-longhand@5.0.2",
    10   "_id": "postcss-merge-longhand@5.0.2",
     2  "_from": "postcss-merge-longhand@^5.0.4",
     3  "_id": "postcss-merge-longhand@5.0.4",
    114  "_inBundle": false,
    12   "_integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==",
     5  "_integrity": "sha512-2lZrOVD+d81aoYkZDpWu6+3dTAAGkCKbV5DoRhnIR7KOULVrI/R7bcMjhrH9KTRy6iiHKqmtG+n/MMj1WmqHFw==",
    136  "_location": "/postcss-merge-longhand",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "postcss-merge-longhand@5.0.2",
     11    "raw": "postcss-merge-longhand@^5.0.4",
    1912    "name": "postcss-merge-longhand",
    2013    "escapedName": "postcss-merge-longhand",
    21     "rawSpec": "5.0.2",
     14    "rawSpec": "^5.0.4",
    2215    "saveSpec": null,
    23     "fetchSpec": "5.0.2"
     16    "fetchSpec": "^5.0.4"
    2417  },
    2518  "_requiredBy": [
    2619    "/cssnano-preset-default"
    2720  ],
    28   "_resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz",
    29   "_spec": "5.0.2",
    30   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     21  "_resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.4.tgz",
     22  "_shasum": "41f4f3270282ea1a145ece078b7679f0cef21c32",
     23  "_spec": "postcss-merge-longhand@^5.0.4",
     24  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\cssnano-preset-default",
    3125  "author": {
    3226    "name": "Ben Briggs",
     
    3731    "url": "https://github.com/cssnano/cssnano/issues"
    3832  },
     33  "bundleDependencies": false,
    3934  "dependencies": {
    40     "css-color-names": "^1.0.1",
    4135    "postcss-value-parser": "^4.1.0",
    4236    "stylehacks": "^5.0.1"
    4337  },
     38  "deprecated": false,
    4439  "description": "Merge longhand properties into shorthand with PostCSS.",
    4540  "devDependencies": {
     
    5348    "dist"
    5449  ],
    55   "gitHead": "28c247175032fa03f04911cde56ad82d74d211cc",
    5650  "homepage": "https://github.com/cssnano/cssnano",
    5751  "keywords": [
     
    7468  "scripts": {
    7569    "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
    76     "prebuild": "del-cli dist",
    77     "prepublish": "yarn build"
     70    "prebuild": "rimraf dist",
     71    "prepare": "yarn build"
    7872  },
    79   "version": "5.0.2"
     73  "version": "5.0.4"
    8074}
Note: See TracChangeset for help on using the changeset viewer.