haojianlong 4 lat temu
commit
d7cf0f08e0
100 zmienionych plików z 3006 dodań i 0 usunięć
  1. 2 0
      .idea/.gitignore
  2. 6 0
      .idea/inspectionProfiles/Project_Default.xml
  3. 6 0
      .idea/misc.xml
  4. 8 0
      .idea/modules.xml
  5. 9 0
      .idea/persagy-web.iml
  6. 6 0
      .idea/vcs.xml
  7. 9 0
      persagy-web-base/.editorconfig
  8. 36 0
      persagy-web-base/.eslintrc.js
  9. 12 0
      persagy-web-base/.npmignore
  10. 0 0
      persagy-web-base/README.md
  11. 12 0
      persagy-web-base/jest.config.js
  12. 42 0
      persagy-web-base/lib/SMatrix.d.ts
  13. 420 0
      persagy-web-base/lib/SMatrix.js
  14. 18 0
      persagy-web-base/lib/SMouseEvent.d.ts
  15. 46 0
      persagy-web-base/lib/SMouseEvent.js
  16. 8 0
      persagy-web-base/lib/SObject.d.ts
  17. 59 0
      persagy-web-base/lib/SObject.js
  18. 7 0
      persagy-web-base/lib/SObjectObserver.d.ts
  19. 30 0
      persagy-web-base/lib/SObjectObserver.js
  20. 6 0
      persagy-web-base/lib/enums/SKeyCode.d.ts
  21. 10 0
      persagy-web-base/lib/enums/SKeyCode.js
  22. 5 0
      persagy-web-base/lib/enums/SMouseButton.d.ts
  23. 9 0
      persagy-web-base/lib/enums/SMouseButton.js
  24. 5 0
      persagy-web-base/lib/enums/STouchState.d.ts
  25. 9 0
      persagy-web-base/lib/enums/STouchState.js
  26. 16 0
      persagy-web-base/lib/index.d.ts
  27. 27 0
      persagy-web-base/lib/index.js
  28. 5 0
      persagy-web-base/lib/undo/SCommandLog.d.ts
  29. 2 0
      persagy-web-base/lib/undo/SCommandLog.js
  30. 10 0
      persagy-web-base/lib/undo/SUndoCommand.d.ts
  31. 20 0
      persagy-web-base/lib/undo/SUndoCommand.js
  32. 19 0
      persagy-web-base/lib/undo/SUndoStack.d.ts
  33. 99 0
      persagy-web-base/lib/undo/SUndoStack.js
  34. 3 0
      persagy-web-base/lib/utils/SNetUtil.d.ts
  35. 17 0
      persagy-web-base/lib/utils/SNetUtil.js
  36. 6 0
      persagy-web-base/lib/utils/SStringBuilder.d.ts
  37. 21 0
      persagy-web-base/lib/utils/SStringBuilder.js
  38. 3 0
      persagy-web-base/lib/utils/SStringUtil.d.ts
  39. 37 0
      persagy-web-base/lib/utils/SStringUtil.js
  40. 3 0
      persagy-web-base/lib/utils/SUuid.d.ts
  41. 31 0
      persagy-web-base/lib/utils/SUuid.js
  42. 15 0
      persagy-web-base/node_modules/.bin/acorn
  43. 7 0
      persagy-web-base/node_modules/.bin/acorn.cmd
  44. 15 0
      persagy-web-base/node_modules/.bin/eslint
  45. 15 0
      persagy-web-base/node_modules/.bin/eslint-config-prettier-check
  46. 7 0
      persagy-web-base/node_modules/.bin/eslint-config-prettier-check.cmd
  47. 7 0
      persagy-web-base/node_modules/.bin/eslint.cmd
  48. 15 0
      persagy-web-base/node_modules/.bin/esparse
  49. 7 0
      persagy-web-base/node_modules/.bin/esparse.cmd
  50. 15 0
      persagy-web-base/node_modules/.bin/esvalidate
  51. 7 0
      persagy-web-base/node_modules/.bin/esvalidate.cmd
  52. 15 0
      persagy-web-base/node_modules/.bin/js-yaml
  53. 7 0
      persagy-web-base/node_modules/.bin/js-yaml.cmd
  54. 15 0
      persagy-web-base/node_modules/.bin/json5
  55. 7 0
      persagy-web-base/node_modules/.bin/json5.cmd
  56. 15 0
      persagy-web-base/node_modules/.bin/mkdirp
  57. 7 0
      persagy-web-base/node_modules/.bin/mkdirp.cmd
  58. 15 0
      persagy-web-base/node_modules/.bin/prettier
  59. 7 0
      persagy-web-base/node_modules/.bin/prettier.cmd
  60. 15 0
      persagy-web-base/node_modules/.bin/rimraf
  61. 7 0
      persagy-web-base/node_modules/.bin/rimraf.cmd
  62. 15 0
      persagy-web-base/node_modules/.bin/semver
  63. 7 0
      persagy-web-base/node_modules/.bin/semver.cmd
  64. 15 0
      persagy-web-base/node_modules/.bin/ts-jest
  65. 7 0
      persagy-web-base/node_modules/.bin/ts-jest.cmd
  66. 15 0
      persagy-web-base/node_modules/.bin/tsc
  67. 7 0
      persagy-web-base/node_modules/.bin/tsc.cmd
  68. 15 0
      persagy-web-base/node_modules/.bin/tsserver
  69. 7 0
      persagy-web-base/node_modules/.bin/tsserver.cmd
  70. 15 0
      persagy-web-base/node_modules/.bin/which
  71. 7 0
      persagy-web-base/node_modules/.bin/which.cmd
  72. 22 0
      persagy-web-base/node_modules/@babel/code-frame/LICENSE
  73. 19 0
      persagy-web-base/node_modules/@babel/code-frame/README.md
  74. 167 0
      persagy-web-base/node_modules/@babel/code-frame/lib/index.js
  75. 57 0
      persagy-web-base/node_modules/@babel/code-frame/package.json
  76. 22 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/LICENSE
  77. 19 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/README.md
  78. 77 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/identifier.js
  79. 57 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/index.js
  80. 38 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/keyword.js
  81. 51 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/package.json
  82. 75 0
      persagy-web-base/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js
  83. 22 0
      persagy-web-base/node_modules/@babel/highlight/LICENSE
  84. 19 0
      persagy-web-base/node_modules/@babel/highlight/README.md
  85. 107 0
      persagy-web-base/node_modules/@babel/highlight/lib/index.js
  86. 58 0
      persagy-web-base/node_modules/@babel/highlight/package.json
  87. 21 0
      persagy-web-base/node_modules/@jest/types/LICENSE
  88. 172 0
      persagy-web-base/node_modules/@jest/types/build/Circus.d.ts
  89. 1 0
      persagy-web-base/node_modules/@jest/types/build/Circus.d.ts.map
  90. 1 0
      persagy-web-base/node_modules/@jest/types/build/Circus.js
  91. 439 0
      persagy-web-base/node_modules/@jest/types/build/Config.d.ts
  92. 1 0
      persagy-web-base/node_modules/@jest/types/build/Config.d.ts.map
  93. 1 0
      persagy-web-base/node_modules/@jest/types/build/Config.js
  94. 74 0
      persagy-web-base/node_modules/@jest/types/build/Global.d.ts
  95. 1 0
      persagy-web-base/node_modules/@jest/types/build/Global.d.ts.map
  96. 1 0
      persagy-web-base/node_modules/@jest/types/build/Global.js
  97. 11 0
      persagy-web-base/node_modules/@jest/types/build/index.d.ts
  98. 1 0
      persagy-web-base/node_modules/@jest/types/build/index.d.ts.map
  99. 43 0
      persagy-web-base/node_modules/@jest/types/build/index.js
  100. 0 0
      persagy-web-base/node_modules/@jest/types/package.json

+ 2 - 0
.idea/.gitignore

@@ -0,0 +1,2 @@
+# Default ignored files
+/workspace.xml

+ 6 - 0
.idea/inspectionProfiles/Project_Default.xml

@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
+  </profile>
+</component>

+ 6 - 0
.idea/misc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JavaScriptSettings">
+    <option name="languageLevel" value="ES6" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/persagy-web.iml" filepath="$PROJECT_DIR$/.idea/persagy-web.iml" />
+    </modules>
+  </component>
+</project>

+ 9 - 0
.idea/persagy-web.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 9 - 0
persagy-web-base/.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 4
+end_of_line =lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 36 - 0
persagy-web-base/.eslintrc.js

@@ -0,0 +1,36 @@
+module.exports = {
+    root: true,
+    parser: "@typescript-eslint/parser",
+    extends: [
+        "plugin:@typescript-eslint/recommended",
+        // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
+        "prettier/@typescript-eslint",
+        // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
+        // 此行必须在最后
+        "plugin:prettier/recommended"
+    ],
+    env: {
+        es6: true,
+        node: true
+    },
+    parserOptions: {
+        // 支持最新 JavaScript
+        ecmaVersion: 2018,
+        sourceType: "module"
+    },
+    rules: {
+        // 注释
+        // 文件
+        "max-classes-per-file": ["error", 1],           // 一个文件中只能定义一个类
+        "max-lines-per-function": ["error", 200],       // 一个函数最多200行代码
+        "max-statements-per-line": ["error", {max: 1}], // 一行只允许有一条语句
+        // 缩进
+        "indent": ["error", 4],                         // 缩进控制4空格
+        "max-len": ["error", 120],                      // 每行字符不超过120
+        "no-mixed-spaces-and-tabs": "error",            // 禁止使用空格和tab混合缩进
+        // 语句
+        "curly": ["error", "multi-line"],               // if、else if、else、for、while强制使用大括号,但允许在单行中省略大括号。
+        "semi": ["error", "always"],                    // 不得省略语句结束的分号
+        "@typescript-eslint/explicit-member-accessibility": ["error", { accessibility: "no-public" }],       // public访问不需加访问修饰符
+    }
+};

+ 12 - 0
persagy-web-base/.npmignore

@@ -0,0 +1,12 @@
+# 发布时排除
+api/
+docs/
+src/
+.editorconfig
+.eslintrc.js
+*.iml
+coverage
+jest.config.js
+tsconfig.json
+typedoc.json
+package-lock.json

+ 0 - 0
persagy-web-base/README.md


+ 12 - 0
persagy-web-base/jest.config.js

@@ -0,0 +1,12 @@
+module.exports = {
+    preset: "ts-jest",
+    moduleFileExtensions: ["js", "ts"],
+    transform: {
+        "^.+\\.tsx?$": "ts-jest"
+    },
+    transformIgnorePatterns: ["/node_modules/"],
+    moduleNameMapper: {
+        "^@/(.*)$": "<rootDir>/src/$1"
+    },
+    collectCoverage: true
+};

+ 42 - 0
persagy-web-base/lib/SMatrix.d.ts

@@ -0,0 +1,42 @@
+export declare class SMatrix {
+    m11: number;
+    m21: number;
+    m31: number;
+    m41: number;
+    m12: number;
+    m22: number;
+    m32: number;
+    m42: number;
+    m13: number;
+    m23: number;
+    m33: number;
+    m43: number;
+    m14: number;
+    m24: number;
+    m34: number;
+    m44: number;
+    get a(): number;
+    set a(v: number);
+    get b(): number;
+    set b(v: number);
+    get c(): number;
+    set c(v: number);
+    get d(): number;
+    set d(v: number);
+    get e(): number;
+    set e(v: number);
+    get f(): number;
+    set f(v: number);
+    get is2D(): boolean;
+    get isIdentity(): boolean;
+    reset(): SMatrix;
+    multiply(mat: SMatrix): SMatrix;
+    translate(dx: number, dy: number, dz?: number): SMatrix;
+    scale(sx: number, sy: number): SMatrix;
+    rotate(angle: number): SMatrix;
+    rotate(rotX: number, rotY: number, rotZ: number): SMatrix;
+    transpose(): SMatrix;
+    inversed(): SMatrix;
+    det(): SMatrix;
+    value(): number;
+}

+ 420 - 0
persagy-web-base/lib/SMatrix.js

@@ -0,0 +1,420 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SMatrix = void 0;
+var SMatrix = (function () {
+    function SMatrix() {
+        this.m11 = 1;
+        this.m21 = 0;
+        this.m31 = 0;
+        this.m41 = 0;
+        this.m12 = 0;
+        this.m22 = 1;
+        this.m32 = 0;
+        this.m42 = 0;
+        this.m13 = 0;
+        this.m23 = 0;
+        this.m33 = 1;
+        this.m43 = 0;
+        this.m14 = 0;
+        this.m24 = 0;
+        this.m34 = 0;
+        this.m44 = 1;
+    }
+    Object.defineProperty(SMatrix.prototype, "a", {
+        get: function () {
+            return this.m11;
+        },
+        set: function (v) {
+            this.m11 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "b", {
+        get: function () {
+            return this.m12;
+        },
+        set: function (v) {
+            this.m12 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "c", {
+        get: function () {
+            return this.m21;
+        },
+        set: function (v) {
+            this.m21 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "d", {
+        get: function () {
+            return this.m22;
+        },
+        set: function (v) {
+            this.m22 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "e", {
+        get: function () {
+            return this.m41;
+        },
+        set: function (v) {
+            this.m41 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "f", {
+        get: function () {
+            return this.m42;
+        },
+        set: function (v) {
+            this.m42 = v;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "is2D", {
+        get: function () {
+            return true;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SMatrix.prototype, "isIdentity", {
+        get: function () {
+            return (this.m11 == 1 &&
+                this.m21 == 0 &&
+                this.m31 == 0 &&
+                this.m41 == 0 &&
+                this.m12 == 0 &&
+                this.m22 == 1 &&
+                this.m32 == 0 &&
+                this.m42 == 0 &&
+                this.m13 == 0 &&
+                this.m23 == 0 &&
+                this.m33 == 1 &&
+                this.m43 == 0 &&
+                this.m14 == 0 &&
+                this.m24 == 0 &&
+                this.m34 == 0 &&
+                this.m44 == 1);
+        },
+        enumerable: false,
+        configurable: true
+    });
+    SMatrix.prototype.reset = function () {
+        this.m11 = 1;
+        this.m21 = 0;
+        this.m31 = 0;
+        this.m41 = 0;
+        this.m12 = 0;
+        this.m22 = 1;
+        this.m32 = 0;
+        this.m42 = 0;
+        this.m13 = 0;
+        this.m23 = 0;
+        this.m33 = 1;
+        this.m43 = 0;
+        this.m14 = 0;
+        this.m24 = 0;
+        this.m34 = 0;
+        this.m44 = 1;
+        return this;
+    };
+    SMatrix.prototype.multiply = function (mat) {
+        var _a;
+        _a = [
+            this.m11 * mat.m11 +
+                this.m21 * mat.m12 +
+                this.m31 * mat.m13 +
+                this.m41 * mat.m14,
+            this.m11 * mat.m21 +
+                this.m21 * mat.m22 +
+                this.m31 * mat.m23 +
+                this.m41 * mat.m24,
+            this.m11 * mat.m31 +
+                this.m21 * mat.m32 +
+                this.m31 * mat.m33 +
+                this.m41 * mat.m34,
+            this.m11 * mat.m41 +
+                this.m21 * mat.m42 +
+                this.m31 * mat.m43 +
+                this.m41 * mat.m44,
+            this.m12 * mat.m11 +
+                this.m22 * mat.m12 +
+                this.m32 * mat.m13 +
+                this.m42 * mat.m14,
+            this.m12 * mat.m21 +
+                this.m22 * mat.m22 +
+                this.m32 * mat.m23 +
+                this.m42 * mat.m24,
+            this.m12 * mat.m31 +
+                this.m22 * mat.m32 +
+                this.m32 * mat.m33 +
+                this.m42 * mat.m34,
+            this.m12 * mat.m41 +
+                this.m22 * mat.m42 +
+                this.m32 * mat.m43 +
+                this.m42 * mat.m44,
+            this.m13 * mat.m11 +
+                this.m23 * mat.m12 +
+                this.m33 * mat.m13 +
+                this.m43 * mat.m14,
+            this.m13 * mat.m21 +
+                this.m23 * mat.m22 +
+                this.m33 * mat.m23 +
+                this.m43 * mat.m24,
+            this.m13 * mat.m31 +
+                this.m23 * mat.m32 +
+                this.m33 * mat.m33 +
+                this.m43 * mat.m34,
+            this.m13 * mat.m41 +
+                this.m23 * mat.m42 +
+                this.m33 * mat.m43 +
+                this.m43 * mat.m44,
+            this.m14 * mat.m11 +
+                this.m24 * mat.m12 +
+                this.m34 * mat.m13 +
+                this.m44 * mat.m14,
+            this.m14 * mat.m21 +
+                this.m24 * mat.m22 +
+                this.m34 * mat.m23 +
+                this.m44 * mat.m24,
+            this.m14 * mat.m31 +
+                this.m24 * mat.m32 +
+                this.m34 * mat.m33 +
+                this.m44 * mat.m34,
+            this.m14 * mat.m41 +
+                this.m24 * mat.m42 +
+                this.m34 * mat.m43 +
+                this.m44 * mat.m44
+        ], this.m11 = _a[0], this.m21 = _a[1], this.m31 = _a[2], this.m41 = _a[3], this.m12 = _a[4], this.m22 = _a[5], this.m32 = _a[6], this.m42 = _a[7], this.m13 = _a[8], this.m23 = _a[9], this.m33 = _a[10], this.m43 = _a[11], this.m14 = _a[12], this.m24 = _a[13], this.m34 = _a[14], this.m44 = _a[15];
+        return this;
+    };
+    SMatrix.prototype.translate = function (dx, dy, dz) {
+        if (dz === void 0) { dz = 0; }
+        var mat = new SMatrix();
+        mat.m41 = dx;
+        mat.m42 = dy;
+        mat.m43 = dz;
+        this.multiply(mat);
+        return this;
+    };
+    SMatrix.prototype.scale = function (sx, sy) {
+        var mat = new SMatrix();
+        mat.m11 = sx;
+        mat.m22 = sy;
+        this.multiply(mat);
+        return this;
+    };
+    SMatrix.prototype.rotate = function (rotX, rotY, rotZ) {
+        var matZ = new SMatrix();
+        if (rotY != undefined && rotZ != undefined) {
+            var matX = new SMatrix();
+            matX.m22 = Math.cos((rotX * Math.PI) / 180);
+            matX.m32 = -Math.sin((rotX * Math.PI) / 180);
+            matX.m23 = Math.sin((rotX * Math.PI) / 180);
+            matX.m33 = Math.cos((rotX * Math.PI) / 180);
+            this.multiply(matX);
+            var matY = new SMatrix();
+            matY.m11 = Math.cos((rotY * Math.PI) / 180);
+            matY.m31 = Math.sin((rotY * Math.PI) / 180);
+            matY.m13 = -Math.sin((rotY * Math.PI) / 180);
+            matY.m33 = Math.cos((rotY * Math.PI) / 180);
+            this.multiply(matY);
+            matZ.m11 = Math.cos((rotZ * Math.PI) / 180);
+            matZ.m21 = -Math.sin((rotZ * Math.PI) / 180);
+            matZ.m12 = Math.sin((rotZ * Math.PI) / 180);
+            matZ.m22 = Math.cos((rotZ * Math.PI) / 180);
+            this.multiply(matZ);
+            return this;
+        }
+        else {
+            matZ.m11 = Math.cos((rotX * Math.PI) / 180);
+            matZ.m21 = -Math.sin((rotX * Math.PI) / 180);
+            matZ.m12 = Math.sin((rotX * Math.PI) / 180);
+            matZ.m22 = Math.cos((rotX * Math.PI) / 180);
+            this.multiply(matZ);
+            return this;
+        }
+    };
+    SMatrix.prototype.transpose = function () {
+        var _a, _b, _c, _d, _e, _f;
+        _a = [this.m21, this.m12], this.m12 = _a[0], this.m21 = _a[1];
+        _b = [this.m31, this.m13], this.m13 = _b[0], this.m31 = _b[1];
+        _c = [this.m41, this.m14], this.m14 = _c[0], this.m41 = _c[1];
+        _d = [this.m32, this.m23], this.m23 = _d[0], this.m32 = _d[1];
+        _e = [this.m42, this.m24], this.m24 = _e[0], this.m42 = _e[1];
+        _f = [this.m43, this.m34], this.m34 = _f[0], this.m43 = _f[1];
+        return this;
+    };
+    SMatrix.prototype.inversed = function () {
+        var detMat = this.det();
+        var d = this.value();
+        var ret = new SMatrix();
+        ret.m11 = detMat.m11 / d;
+        ret.m21 = detMat.m21 / d;
+        ret.m31 = detMat.m31 / d;
+        ret.m41 = detMat.m41 / d;
+        ret.m12 = detMat.m12 / d;
+        ret.m22 = detMat.m22 / d;
+        ret.m32 = detMat.m32 / d;
+        ret.m42 = detMat.m42 / d;
+        ret.m13 = detMat.m13 / d;
+        ret.m23 = detMat.m23 / d;
+        ret.m33 = detMat.m33 / d;
+        ret.m43 = detMat.m43 / d;
+        ret.m14 = detMat.m14 / d;
+        ret.m24 = detMat.m24 / d;
+        ret.m34 = detMat.m34 / d;
+        ret.m44 = detMat.m44 / d;
+        return ret;
+    };
+    SMatrix.prototype.det = function () {
+        var m = new SMatrix();
+        m.m11 =
+            this.m22 * this.m33 * this.m44 +
+                this.m32 * this.m43 * this.m24 +
+                this.m42 * this.m23 * this.m34 -
+                this.m42 * this.m33 * this.m24 -
+                this.m32 * this.m23 * this.m44 -
+                this.m22 * this.m43 * this.m34;
+        m.m12 = -(this.m12 * this.m33 * this.m44 +
+            this.m32 * this.m43 * this.m14 +
+            this.m42 * this.m13 * this.m34 -
+            this.m42 * this.m33 * this.m14 -
+            this.m32 * this.m13 * this.m44 -
+            this.m12 * this.m43 * this.m34);
+        m.m13 =
+            this.m12 * this.m23 * this.m44 +
+                this.m22 * this.m43 * this.m14 +
+                this.m42 * this.m13 * this.m24 -
+                this.m42 * this.m23 * this.m14 -
+                this.m22 * this.m13 * this.m44 -
+                this.m12 * this.m43 * this.m24;
+        m.m14 = -(this.m12 * this.m23 * this.m34 +
+            this.m22 * this.m33 * this.m14 +
+            this.m32 * this.m13 * this.m24 -
+            this.m32 * this.m23 * this.m14 -
+            this.m22 * this.m13 * this.m34 -
+            this.m12 * this.m33 * this.m24);
+        m.m21 = -(this.m21 * this.m33 * this.m44 +
+            this.m31 * this.m43 * this.m24 +
+            this.m41 * this.m23 * this.m34 -
+            this.m41 * this.m33 * this.m24 -
+            this.m31 * this.m23 * this.m44 -
+            this.m21 * this.m43 * this.m34);
+        m.m22 =
+            this.m11 * this.m33 * this.m44 +
+                this.m31 * this.m43 * this.m14 +
+                this.m41 * this.m13 * this.m34 -
+                this.m41 * this.m33 * this.m14 -
+                this.m31 * this.m13 * this.m44 -
+                this.m11 * this.m43 * this.m34;
+        m.m23 = -(this.m11 * this.m23 * this.m44 +
+            this.m21 * this.m43 * this.m14 +
+            this.m41 * this.m13 * this.m24 -
+            this.m41 * this.m23 * this.m14 -
+            this.m21 * this.m13 * this.m44 -
+            this.m11 * this.m43 * this.m24);
+        m.m24 =
+            this.m11 * this.m23 * this.m34 +
+                this.m21 * this.m33 * this.m14 +
+                this.m31 * this.m13 * this.m24 -
+                this.m31 * this.m23 * this.m14 -
+                this.m21 * this.m13 * this.m34 -
+                this.m11 * this.m33 * this.m24;
+        m.m31 =
+            this.m21 * this.m32 * this.m44 +
+                this.m31 * this.m42 * this.m24 +
+                this.m41 * this.m22 * this.m34 -
+                this.m41 * this.m32 * this.m24 -
+                this.m31 * this.m22 * this.m44 -
+                this.m21 * this.m42 * this.m34;
+        m.m32 = -(this.m11 * this.m32 * this.m44 +
+            this.m31 * this.m42 * this.m14 +
+            this.m41 * this.m12 * this.m34 -
+            this.m41 * this.m32 * this.m14 -
+            this.m31 * this.m12 * this.m44 -
+            this.m11 * this.m42 * this.m34);
+        m.m33 =
+            this.m11 * this.m22 * this.m44 +
+                this.m21 * this.m42 * this.m14 +
+                this.m41 * this.m12 * this.m24 -
+                this.m41 * this.m22 * this.m14 -
+                this.m21 * this.m12 * this.m44 -
+                this.m11 * this.m42 * this.m24;
+        m.m34 = -(this.m11 * this.m22 * this.m34 +
+            this.m21 * this.m32 * this.m14 +
+            this.m31 * this.m12 * this.m24 -
+            this.m31 * this.m22 * this.m14 -
+            this.m21 * this.m12 * this.m34 -
+            this.m11 * this.m32 * this.m24);
+        m.m41 = -(this.m21 * this.m32 * this.m43 +
+            this.m31 * this.m42 * this.m23 +
+            this.m41 * this.m22 * this.m33 -
+            this.m41 * this.m32 * this.m23 -
+            this.m31 * this.m22 * this.m43 -
+            this.m21 * this.m42 * this.m33);
+        m.m42 =
+            this.m11 * this.m32 * this.m43 +
+                this.m31 * this.m42 * this.m13 +
+                this.m41 * this.m12 * this.m33 -
+                this.m41 * this.m32 * this.m13 -
+                this.m31 * this.m12 * this.m43 -
+                this.m11 * this.m42 * this.m33;
+        m.m43 = -(this.m11 * this.m22 * this.m43 +
+            this.m21 * this.m42 * this.m13 +
+            this.m41 * this.m12 * this.m23 -
+            this.m41 * this.m22 * this.m13 -
+            this.m21 * this.m12 * this.m43 -
+            this.m11 * this.m42 * this.m23);
+        m.m44 =
+            this.m11 * this.m22 * this.m33 +
+                this.m21 * this.m32 * this.m13 +
+                this.m31 * this.m12 * this.m23 -
+                this.m31 * this.m22 * this.m13 -
+                this.m21 * this.m12 * this.m33 -
+                this.m11 * this.m32 * this.m23;
+        return m;
+    };
+    SMatrix.prototype.value = function () {
+        return (this.m11 *
+            (this.m22 * this.m33 * this.m44 +
+                this.m32 * this.m43 * this.m24 +
+                this.m42 * this.m23 * this.m34 -
+                this.m42 * this.m33 * this.m24 -
+                this.m32 * this.m23 * this.m44 -
+                this.m22 * this.m43 * this.m34) -
+            this.m21 *
+                (this.m12 * this.m33 * this.m44 +
+                    this.m32 * this.m43 * this.m14 +
+                    this.m42 * this.m13 * this.m34 -
+                    this.m42 * this.m33 * this.m14 -
+                    this.m32 * this.m13 * this.m44 -
+                    this.m12 * this.m43 * this.m34) +
+            this.m31 *
+                (this.m12 * this.m23 * this.m44 +
+                    this.m22 * this.m43 * this.m14 +
+                    this.m42 * this.m13 * this.m24 -
+                    this.m42 * this.m23 * this.m14 -
+                    this.m22 * this.m13 * this.m44 -
+                    this.m12 * this.m43 * this.m24) -
+            this.m41 *
+                (this.m12 * this.m23 * this.m34 +
+                    this.m22 * this.m33 * this.m14 +
+                    this.m32 * this.m13 * this.m24 -
+                    this.m32 * this.m23 * this.m14 -
+                    this.m22 * this.m13 * this.m34 -
+                    this.m12 * this.m33 * this.m24));
+    };
+    return SMatrix;
+}());
+exports.SMatrix = SMatrix;

+ 18 - 0
persagy-web-base/lib/SMouseEvent.d.ts

@@ -0,0 +1,18 @@
+import { SMatrix } from "./SMatrix";
+export declare class SMouseEvent {
+    type: string;
+    x: number;
+    y: number;
+    screenX: number;
+    screenY: number;
+    clientX: number;
+    clientY: number;
+    offsetX: number;
+    offsetY: number;
+    altKey: boolean;
+    ctrlKey: boolean;
+    shiftKey: boolean;
+    buttons: number;
+    matrix: SMatrix;
+    constructor(event: MouseEvent | SMouseEvent);
+}

+ 46 - 0
persagy-web-base/lib/SMouseEvent.js

@@ -0,0 +1,46 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SMouseEvent = void 0;
+var SMatrix_1 = require("./SMatrix");
+var SMouseEvent = (function () {
+    function SMouseEvent(event) {
+        this.matrix = new SMatrix_1.SMatrix();
+        this.type = event.type;
+        this.screenX = event.screenX;
+        this.screenY = event.screenY;
+        this.clientX = event.clientX;
+        this.clientY = event.clientY;
+        this.offsetX = event.offsetX;
+        this.offsetY = event.offsetY;
+        this.altKey = event.altKey;
+        this.ctrlKey = event.ctrlKey;
+        this.shiftKey = event.shiftKey;
+        this.buttons = event.buttons;
+        if (event instanceof SMouseEvent) {
+            this.x = event.x;
+            this.y = event.y;
+            this.matrix.m11 = event.matrix.m11;
+            this.matrix.m12 = event.matrix.m12;
+            this.matrix.m13 = event.matrix.m13;
+            this.matrix.m14 = event.matrix.m14;
+            this.matrix.m21 = event.matrix.m21;
+            this.matrix.m22 = event.matrix.m22;
+            this.matrix.m23 = event.matrix.m23;
+            this.matrix.m24 = event.matrix.m24;
+            this.matrix.m31 = event.matrix.m31;
+            this.matrix.m32 = event.matrix.m32;
+            this.matrix.m33 = event.matrix.m33;
+            this.matrix.m34 = event.matrix.m34;
+            this.matrix.m41 = event.matrix.m41;
+            this.matrix.m42 = event.matrix.m42;
+            this.matrix.m43 = event.matrix.m43;
+            this.matrix.m44 = event.matrix.m44;
+        }
+        else {
+            this.x = event.offsetX;
+            this.y = event.offsetY;
+        }
+    }
+    return SMouseEvent;
+}());
+exports.SMouseEvent = SMouseEvent;

+ 8 - 0
persagy-web-base/lib/SObject.d.ts

@@ -0,0 +1,8 @@
+export declare class SObject {
+    name: string;
+    private listeners;
+    id: string;
+    connect(name: string, receiver: any, callback: Function): void;
+    disconnect(name: string, receiver: any): void;
+    $emit(name: string, ...args: any): void;
+}

+ 59 - 0
persagy-web-base/lib/SObject.js

@@ -0,0 +1,59 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SObject = void 0;
+var SObjectObserver_1 = require("./SObjectObserver");
+var SObject = (function () {
+    function SObject() {
+        this.name = "";
+        this.listeners = {};
+        this.id = "";
+    }
+    SObject.prototype.connect = function (name, receiver, callback) {
+        var observerList = this.listeners[name];
+        if (!observerList) {
+            this.listeners[name] = [];
+        }
+        else {
+            for (var _i = 0, observerList_1 = observerList; _i < observerList_1.length; _i++) {
+                var observer = observerList_1[_i];
+                if (observer.compar(receiver)) {
+                    return;
+                }
+            }
+        }
+        this.listeners[name].push(new SObjectObserver_1.SObjectObserver(receiver, callback));
+    };
+    SObject.prototype.disconnect = function (name, receiver) {
+        var observerList = this.listeners[name];
+        if (!observerList) {
+            return;
+        }
+        var length = observerList.length;
+        for (var i = 0; i < length; i++) {
+            var observer = observerList[i];
+            if (observer.compar(receiver)) {
+                observerList.splice(i, 1);
+                break;
+            }
+        }
+        if (observerList.length == 0) {
+            delete this.listeners[name];
+        }
+    };
+    SObject.prototype.$emit = function (name) {
+        var args = [];
+        for (var _i = 1; _i < arguments.length; _i++) {
+            args[_i - 1] = arguments[_i];
+        }
+        var observerList = this.listeners[name];
+        if (!observerList) {
+            return;
+        }
+        for (var _a = 0, observerList_2 = observerList; _a < observerList_2.length; _a++) {
+            var observer = observerList_2[_a];
+            observer.notify(this, args);
+        }
+    };
+    return SObject;
+}());
+exports.SObject = SObject;

+ 7 - 0
persagy-web-base/lib/SObjectObserver.d.ts

@@ -0,0 +1,7 @@
+export declare class SObjectObserver {
+    private readonly callback;
+    private readonly receiver;
+    constructor(receiver: any, callback: Function);
+    notify(...args: any): void;
+    compar(receiver: any): boolean;
+}

+ 30 - 0
persagy-web-base/lib/SObjectObserver.js

@@ -0,0 +1,30 @@
+"use strict";
+var __spreadArrays = (this && this.__spreadArrays) || function () {
+    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+    for (var r = Array(s), k = 0, i = 0; i < il; i++)
+        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+            r[k] = a[j];
+    return r;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SObjectObserver = void 0;
+var SObjectObserver = (function () {
+    function SObjectObserver(receiver, callback) {
+        this.receiver = null;
+        this.receiver = receiver;
+        this.callback = callback;
+    }
+    SObjectObserver.prototype.notify = function () {
+        var _a;
+        var args = [];
+        for (var _i = 0; _i < arguments.length; _i++) {
+            args[_i] = arguments[_i];
+        }
+        (_a = this.callback).call.apply(_a, __spreadArrays([this.receiver], args));
+    };
+    SObjectObserver.prototype.compar = function (receiver) {
+        return receiver == this.receiver;
+    };
+    return SObjectObserver;
+}());
+exports.SObjectObserver = SObjectObserver;

+ 6 - 0
persagy-web-base/lib/enums/SKeyCode.d.ts

@@ -0,0 +1,6 @@
+export declare enum SKeyCode {
+    Enter = 13,
+    Esc = 27,
+    Delete = 46,
+    Z = 90
+}

+ 10 - 0
persagy-web-base/lib/enums/SKeyCode.js

@@ -0,0 +1,10 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SKeyCode = void 0;
+var SKeyCode;
+(function (SKeyCode) {
+    SKeyCode[SKeyCode["Enter"] = 13] = "Enter";
+    SKeyCode[SKeyCode["Esc"] = 27] = "Esc";
+    SKeyCode[SKeyCode["Delete"] = 46] = "Delete";
+    SKeyCode[SKeyCode["Z"] = 90] = "Z";
+})(SKeyCode = exports.SKeyCode || (exports.SKeyCode = {}));

+ 5 - 0
persagy-web-base/lib/enums/SMouseButton.d.ts

@@ -0,0 +1,5 @@
+export declare enum SMouseButton {
+    LeftButton = 1,
+    RightButton = 2,
+    MidButton = 4
+}

+ 9 - 0
persagy-web-base/lib/enums/SMouseButton.js

@@ -0,0 +1,9 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SMouseButton = void 0;
+var SMouseButton;
+(function (SMouseButton) {
+    SMouseButton[SMouseButton["LeftButton"] = 1] = "LeftButton";
+    SMouseButton[SMouseButton["RightButton"] = 2] = "RightButton";
+    SMouseButton[SMouseButton["MidButton"] = 4] = "MidButton";
+})(SMouseButton = exports.SMouseButton || (exports.SMouseButton = {}));

+ 5 - 0
persagy-web-base/lib/enums/STouchState.d.ts

@@ -0,0 +1,5 @@
+export declare enum STouchState {
+    None = 0,
+    Move = 1,
+    Zoom = 2
+}

+ 9 - 0
persagy-web-base/lib/enums/STouchState.js

@@ -0,0 +1,9 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.STouchState = void 0;
+var STouchState;
+(function (STouchState) {
+    STouchState[STouchState["None"] = 0] = "None";
+    STouchState[STouchState["Move"] = 1] = "Move";
+    STouchState[STouchState["Zoom"] = 2] = "Zoom";
+})(STouchState = exports.STouchState || (exports.STouchState = {}));

+ 16 - 0
persagy-web-base/lib/index.d.ts

@@ -0,0 +1,16 @@
+import { SMouseButton } from "./enums/SMouseButton";
+import { STouchState } from "./enums/STouchState";
+import { SKeyCode } from "./enums/SKeyCode";
+export { SMouseButton, STouchState, SKeyCode };
+import { SUndoCommand } from "./undo/SUndoCommand";
+import { SUndoStack } from "./undo/SUndoStack";
+export { SUndoCommand, SUndoStack };
+import { SNetUtil } from "./utils/SNetUtil";
+import { SStringBuilder } from "./utils/SStringBuilder";
+import { SStringUtil } from "./utils/SStringUtil";
+export { SNetUtil, SStringBuilder, SStringUtil };
+import { SMatrix } from "./SMatrix";
+import { SMouseEvent } from "./SMouseEvent";
+import { SObject } from "./SObject";
+import { SObjectObserver } from "./SObjectObserver";
+export { SMatrix, SMouseEvent, SObject, SObjectObserver };

+ 27 - 0
persagy-web-base/lib/index.js

@@ -0,0 +1,27 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SObjectObserver = exports.SObject = exports.SMouseEvent = exports.SMatrix = exports.SStringUtil = exports.SStringBuilder = exports.SNetUtil = exports.SUndoStack = exports.SUndoCommand = exports.SKeyCode = exports.STouchState = exports.SMouseButton = void 0;
+var SMouseButton_1 = require("./enums/SMouseButton");
+Object.defineProperty(exports, "SMouseButton", { enumerable: true, get: function () { return SMouseButton_1.SMouseButton; } });
+var STouchState_1 = require("./enums/STouchState");
+Object.defineProperty(exports, "STouchState", { enumerable: true, get: function () { return STouchState_1.STouchState; } });
+var SKeyCode_1 = require("./enums/SKeyCode");
+Object.defineProperty(exports, "SKeyCode", { enumerable: true, get: function () { return SKeyCode_1.SKeyCode; } });
+var SUndoCommand_1 = require("./undo/SUndoCommand");
+Object.defineProperty(exports, "SUndoCommand", { enumerable: true, get: function () { return SUndoCommand_1.SUndoCommand; } });
+var SUndoStack_1 = require("./undo/SUndoStack");
+Object.defineProperty(exports, "SUndoStack", { enumerable: true, get: function () { return SUndoStack_1.SUndoStack; } });
+var SNetUtil_1 = require("./utils/SNetUtil");
+Object.defineProperty(exports, "SNetUtil", { enumerable: true, get: function () { return SNetUtil_1.SNetUtil; } });
+var SStringBuilder_1 = require("./utils/SStringBuilder");
+Object.defineProperty(exports, "SStringBuilder", { enumerable: true, get: function () { return SStringBuilder_1.SStringBuilder; } });
+var SStringUtil_1 = require("./utils/SStringUtil");
+Object.defineProperty(exports, "SStringUtil", { enumerable: true, get: function () { return SStringUtil_1.SStringUtil; } });
+var SMatrix_1 = require("./SMatrix");
+Object.defineProperty(exports, "SMatrix", { enumerable: true, get: function () { return SMatrix_1.SMatrix; } });
+var SMouseEvent_1 = require("./SMouseEvent");
+Object.defineProperty(exports, "SMouseEvent", { enumerable: true, get: function () { return SMouseEvent_1.SMouseEvent; } });
+var SObject_1 = require("./SObject");
+Object.defineProperty(exports, "SObject", { enumerable: true, get: function () { return SObject_1.SObject; } });
+var SObjectObserver_1 = require("./SObjectObserver");
+Object.defineProperty(exports, "SObjectObserver", { enumerable: true, get: function () { return SObjectObserver_1.SObjectObserver; } });

+ 5 - 0
persagy-web-base/lib/undo/SCommandLog.d.ts

@@ -0,0 +1,5 @@
+export interface SCommandLog {
+    command: string;
+    desc: string;
+    detail: string;
+}

+ 2 - 0
persagy-web-base/lib/undo/SCommandLog.js

@@ -0,0 +1,2 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });

+ 10 - 0
persagy-web-base/lib/undo/SUndoCommand.d.ts

@@ -0,0 +1,10 @@
+export declare abstract class SUndoCommand {
+    abstract get command(): string;
+    desc: string;
+    protected constructor(parent?: SUndoCommand | null);
+    abstract undo(): void;
+    abstract redo(): void;
+    mergeWith(command: SUndoCommand): boolean;
+    id(): number;
+    toString(): string;
+}

+ 20 - 0
persagy-web-base/lib/undo/SUndoCommand.js

@@ -0,0 +1,20 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SUndoCommand = void 0;
+var SUndoCommand = (function () {
+    function SUndoCommand(parent) {
+        if (parent === void 0) { parent = null; }
+        this.desc = "undefined";
+    }
+    SUndoCommand.prototype.mergeWith = function (command) {
+        return false;
+    };
+    SUndoCommand.prototype.id = function () {
+        return -1;
+    };
+    SUndoCommand.prototype.toString = function () {
+        return "";
+    };
+    return SUndoCommand;
+}());
+exports.SUndoCommand = SUndoCommand;

+ 19 - 0
persagy-web-base/lib/undo/SUndoStack.d.ts

@@ -0,0 +1,19 @@
+import { SObject } from "../SObject";
+import { SUndoCommand } from "./SUndoCommand";
+import { SCommandLog } from "./SCommandLog";
+export declare class SUndoStack extends SObject {
+    private cmdStack;
+    private _index;
+    get index(): number;
+    get isEmpty(): boolean;
+    isChange: boolean;
+    redo(): void;
+    undo(): void;
+    canRedo(): boolean;
+    canUndo(): boolean;
+    clear(): void;
+    command(index: number): SUndoCommand | null;
+    count(): number;
+    push(cmd: SUndoCommand): void;
+    toLog(): SCommandLog[];
+}

+ 99 - 0
persagy-web-base/lib/undo/SUndoStack.js

@@ -0,0 +1,99 @@
+"use strict";
+var __extends = (this && this.__extends) || (function () {
+    var extendStatics = function (d, b) {
+        extendStatics = Object.setPrototypeOf ||
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+        return extendStatics(d, b);
+    };
+    return function (d, b) {
+        extendStatics(d, b);
+        function __() { this.constructor = d; }
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+    };
+})();
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SUndoStack = void 0;
+var SObject_1 = require("../SObject");
+var SUndoStack = (function (_super) {
+    __extends(SUndoStack, _super);
+    function SUndoStack() {
+        var _this = _super !== null && _super.apply(this, arguments) || this;
+        _this.cmdStack = Array();
+        _this._index = -1;
+        _this.isChange = false;
+        return _this;
+    }
+    Object.defineProperty(SUndoStack.prototype, "index", {
+        get: function () {
+            return this._index;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    Object.defineProperty(SUndoStack.prototype, "isEmpty", {
+        get: function () {
+            return this.cmdStack.length <= 0;
+        },
+        enumerable: false,
+        configurable: true
+    });
+    SUndoStack.prototype.redo = function () {
+        if (!this.canRedo()) {
+            return;
+        }
+        this._index++;
+        this.cmdStack[this._index].redo();
+        this.isChange = true;
+    };
+    SUndoStack.prototype.undo = function () {
+        if (!this.canUndo()) {
+            return;
+        }
+        this.cmdStack[this._index].undo();
+        this._index--;
+        this.isChange = true;
+    };
+    SUndoStack.prototype.canRedo = function () {
+        return this.index + 1 < this.cmdStack.length;
+    };
+    SUndoStack.prototype.canUndo = function () {
+        return this.index >= 0;
+    };
+    SUndoStack.prototype.clear = function () {
+        this.cmdStack.length = 0;
+        this._index = -1;
+        this.isChange = true;
+    };
+    SUndoStack.prototype.command = function (index) {
+        if (index < 0 || index >= this.cmdStack.length) {
+            return null;
+        }
+        return this.cmdStack[index];
+    };
+    SUndoStack.prototype.count = function () {
+        return this.cmdStack.length;
+    };
+    SUndoStack.prototype.push = function (cmd) {
+        this.cmdStack.length = this._index + 1;
+        if (this._index >= 0 && cmd.mergeWith(this.cmdStack[this._index])) {
+            return;
+        }
+        this.cmdStack.push(cmd);
+        this._index = this.cmdStack.length - 1;
+        this.isChange = true;
+    };
+    SUndoStack.prototype.toLog = function () {
+        var stackList = [];
+        for (var i = 0; i <= this.index; i++) {
+            stackList.push({
+                command: this.cmdStack[i].command,
+                desc: this.cmdStack[i].desc,
+                detail: this.cmdStack[i].toString()
+            });
+        }
+        return stackList;
+    };
+    return SUndoStack;
+}(SObject_1.SObject));
+exports.SUndoStack = SUndoStack;

+ 3 - 0
persagy-web-base/lib/utils/SNetUtil.d.ts

@@ -0,0 +1,3 @@
+export declare class SNetUtil {
+    static downLoad(name: string, url: string): void;
+}

+ 17 - 0
persagy-web-base/lib/utils/SNetUtil.js

@@ -0,0 +1,17 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SNetUtil = void 0;
+var SNetUtil = (function () {
+    function SNetUtil() {
+    }
+    SNetUtil.downLoad = function (name, url) {
+        var oA = document.createElement("a");
+        oA.download = name;
+        oA.href = url;
+        document.body.appendChild(oA);
+        oA.click();
+        oA.remove();
+    };
+    return SNetUtil;
+}());
+exports.SNetUtil = SNetUtil;

+ 6 - 0
persagy-web-base/lib/utils/SStringBuilder.d.ts

@@ -0,0 +1,6 @@
+export declare class SStringBuilder {
+    private _strArray;
+    constructor(msg?: string);
+    append(msg: string): SStringBuilder;
+    toString(gap?: string): string;
+}

+ 21 - 0
persagy-web-base/lib/utils/SStringBuilder.js

@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SStringBuilder = void 0;
+var SStringBuilder = (function () {
+    function SStringBuilder(msg) {
+        this._strArray = new Array();
+        if (msg != undefined) {
+            this.append(msg);
+        }
+    }
+    SStringBuilder.prototype.append = function (msg) {
+        this._strArray.push(msg);
+        return this;
+    };
+    SStringBuilder.prototype.toString = function (gap) {
+        if (gap === void 0) { gap = "\n"; }
+        return this._strArray.join(gap);
+    };
+    return SStringBuilder;
+}());
+exports.SStringBuilder = SStringBuilder;

+ 3 - 0
persagy-web-base/lib/utils/SStringUtil.d.ts

@@ -0,0 +1,3 @@
+export declare class SStringUtil {
+    static num2Hex(n: number, len?: number): string;
+}

+ 37 - 0
persagy-web-base/lib/utils/SStringUtil.js

@@ -0,0 +1,37 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SStringUtil = void 0;
+var SStringUtil = (function () {
+    function SStringUtil() {
+    }
+    SStringUtil.num2Hex = function (n, len) {
+        if (len === void 0) { len = 2; }
+        var hex = "";
+        var numStr = [
+            "0",
+            "1",
+            "2",
+            "3",
+            "4",
+            "5",
+            "6",
+            "7",
+            "8",
+            "9",
+            "a",
+            "b",
+            "c",
+            "d",
+            "e",
+            "f"
+        ];
+        while (len > 0) {
+            hex = numStr[n & 0x0f] + hex;
+            n = n >> 4;
+            len--;
+        }
+        return hex;
+    };
+    return SStringUtil;
+}());
+exports.SStringUtil = SStringUtil;

+ 3 - 0
persagy-web-base/lib/utils/SUuid.d.ts

@@ -0,0 +1,3 @@
+export declare class SUuid {
+    static uuid(len: number, radix: number): string;
+}

+ 31 - 0
persagy-web-base/lib/utils/SUuid.js

@@ -0,0 +1,31 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SUuid = void 0;
+var SUuid = (function () {
+    function SUuid() {
+    }
+    SUuid.uuid = function (len, radix) {
+        var chars = "0123456789abcdef".split("");
+        var uuid = [], i;
+        radix = radix || chars.length;
+        if (len) {
+            for (i = 0; i < len; i++) {
+                uuid[i] = chars[0 | (Math.random() * radix)];
+            }
+        }
+        else {
+            var r = void 0;
+            uuid[8] = uuid[13] = uuid[18] = uuid[23] = "";
+            uuid[14] = "4";
+            for (i = 0; i < 32; i++) {
+                if (!uuid[i]) {
+                    r = 0 | (Math.random() * 16);
+                    uuid[i] = chars[i == 19 ? (r & 0x3) | 0x8 : r];
+                }
+            }
+        }
+        return uuid.join("");
+    };
+    return SUuid;
+}());
+exports.SUuid = SUuid;

+ 15 - 0
persagy-web-base/node_modules/.bin/acorn

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../acorn/bin/acorn" "$@"
+  ret=$?
+else 
+  node  "$basedir/../acorn/bin/acorn" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/acorn.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\acorn\bin\acorn" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\acorn\bin\acorn" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/eslint

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../eslint/bin/eslint.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../eslint/bin/eslint.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 15 - 0
persagy-web-base/node_modules/.bin/eslint-config-prettier-check

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/eslint-config-prettier-check.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\eslint-config-prettier\bin\cli.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\eslint-config-prettier\bin\cli.js" %*
+)

+ 7 - 0
persagy-web-base/node_modules/.bin/eslint.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\eslint\bin\eslint.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\eslint\bin\eslint.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/esparse

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../esprima/bin/esparse.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../esprima/bin/esparse.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/esparse.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\esprima\bin\esparse.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\esprima\bin\esparse.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/esvalidate

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../esprima/bin/esvalidate.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../esprima/bin/esvalidate.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/esvalidate.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\esprima\bin\esvalidate.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\esprima\bin\esvalidate.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/js-yaml

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../js-yaml/bin/js-yaml.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../js-yaml/bin/js-yaml.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/js-yaml.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\js-yaml\bin\js-yaml.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\js-yaml\bin\js-yaml.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/json5

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../json5/lib/cli.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../json5/lib/cli.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/json5.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\json5\lib\cli.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\json5\lib\cli.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/mkdirp

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../mkdirp/bin/cmd.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../mkdirp/bin/cmd.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/mkdirp.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\mkdirp\bin\cmd.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\mkdirp\bin\cmd.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/prettier

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../prettier/bin-prettier.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../prettier/bin-prettier.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/prettier.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\prettier\bin-prettier.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\prettier\bin-prettier.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/rimraf

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../rimraf/bin.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../rimraf/bin.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/rimraf.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\rimraf\bin.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\rimraf\bin.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/semver

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../semver/bin/semver" "$@"
+  ret=$?
+else 
+  node  "$basedir/../semver/bin/semver" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/semver.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\semver\bin\semver" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\semver\bin\semver" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/ts-jest

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../ts-jest/cli.js" "$@"
+  ret=$?
+else 
+  node  "$basedir/../ts-jest/cli.js" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/ts-jest.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\ts-jest\cli.js" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\ts-jest\cli.js" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/tsc

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../typescript/bin/tsc" "$@"
+  ret=$?
+else 
+  node  "$basedir/../typescript/bin/tsc" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/tsc.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\typescript\bin\tsc" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\typescript\bin\tsc" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/tsserver

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../typescript/bin/tsserver" "$@"
+  ret=$?
+else 
+  node  "$basedir/../typescript/bin/tsserver" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/tsserver.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\typescript\bin\tsserver" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\typescript\bin\tsserver" %*
+)

+ 15 - 0
persagy-web-base/node_modules/.bin/which

@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../which/bin/which" "$@"
+  ret=$?
+else 
+  node  "$basedir/../which/bin/which" "$@"
+  ret=$?
+fi
+exit $ret

+ 7 - 0
persagy-web-base/node_modules/.bin/which.cmd

@@ -0,0 +1,7 @@
+@IF EXIST "%~dp0\node.exe" (
+  "%~dp0\node.exe"  "%~dp0\..\which\bin\which" %*
+) ELSE (
+  @SETLOCAL
+  @SET PATHEXT=%PATHEXT:;.JS;=;%
+  node  "%~dp0\..\which\bin\which" %*
+)

+ 22 - 0
persagy-web-base/node_modules/@babel/code-frame/LICENSE

@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+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.

+ 19 - 0
persagy-web-base/node_modules/@babel/code-frame/README.md

@@ -0,0 +1,19 @@
+# @babel/code-frame
+
+> Generate errors that contain a code frame that point to source locations.
+
+See our website [@babel/code-frame](https://babeljs.io/docs/en/next/babel-code-frame.html) for more information.
+
+## Install
+
+Using npm:
+
+```sh
+npm install --save-dev @babel/code-frame
+```
+
+or using yarn:
+
+```sh
+yarn add @babel/code-frame --dev
+```

Plik diff jest za duży
+ 167 - 0
persagy-web-base/node_modules/@babel/code-frame/lib/index.js


+ 57 - 0
persagy-web-base/node_modules/@babel/code-frame/package.json

@@ -0,0 +1,57 @@
+{
+  "_from": "@babel/code-frame@^7.0.0",
+  "_id": "@babel/code-frame@7.10.4",
+  "_inBundle": false,
+  "_integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
+  "_location": "/@babel/code-frame",
+  "_phantomChildren": {},
+  "_requested": {
+    "type": "range",
+    "registry": true,
+    "raw": "@babel/code-frame@^7.0.0",
+    "name": "@babel/code-frame",
+    "escapedName": "@babel%2fcode-frame",
+    "scope": "@babel",
+    "rawSpec": "^7.0.0",
+    "saveSpec": null,
+    "fetchSpec": "^7.0.0"
+  },
+  "_requiredBy": [
+    "/eslint"
+  ],
+  "_resolved": "http://dev.dp.sagacloud.cn:8082/repository/npm-saga/@babel/code-frame/-/code-frame-7.10.4.tgz",
+  "_shasum": "168da1a36e90da68ae8d49c0f1b48c7c6249213a",
+  "_spec": "@babel/code-frame@^7.0.0",
+  "_where": "D:\\project\\persagy-web\\persagy-web-base\\node_modules\\eslint",
+  "author": {
+    "name": "Sebastian McKenzie",
+    "email": "sebmck@gmail.com"
+  },
+  "bugs": {
+    "url": "https://github.com/babel/babel/issues"
+  },
+  "bundleDependencies": false,
+  "dependencies": {
+    "@babel/highlight": "^7.10.4"
+  },
+  "deprecated": false,
+  "description": "Generate errors that contain a code frame that point to source locations.",
+  "devDependencies": {
+    "chalk": "^2.0.0",
+    "strip-ansi": "^4.0.0"
+  },
+  "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
+  "homepage": "https://babeljs.io/",
+  "license": "MIT",
+  "main": "lib/index.js",
+  "name": "@babel/code-frame",
+  "publishConfig": {
+    "access": "public"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/babel/babel.git",
+    "directory": "packages/babel-code-frame"
+  },
+  "version": "7.10.4"
+}

+ 22 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/LICENSE

@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+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.

+ 19 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/README.md

@@ -0,0 +1,19 @@
+# @babel/helper-validator-identifier
+
+> Validate identifier/keywords name
+
+See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/en/next/babel-helper-validator-identifier.html) for more information.
+
+## Install
+
+Using npm:
+
+```sh
+npm install --save-dev @babel/helper-validator-identifier
+```
+
+or using yarn:
+
+```sh
+yarn add @babel/helper-validator-identifier --dev
+```

Plik diff jest za duży
+ 77 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/identifier.js


+ 57 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/index.js

@@ -0,0 +1,57 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+  value: true
+});
+Object.defineProperty(exports, "isIdentifierName", {
+  enumerable: true,
+  get: function () {
+    return _identifier.isIdentifierName;
+  }
+});
+Object.defineProperty(exports, "isIdentifierChar", {
+  enumerable: true,
+  get: function () {
+    return _identifier.isIdentifierChar;
+  }
+});
+Object.defineProperty(exports, "isIdentifierStart", {
+  enumerable: true,
+  get: function () {
+    return _identifier.isIdentifierStart;
+  }
+});
+Object.defineProperty(exports, "isReservedWord", {
+  enumerable: true,
+  get: function () {
+    return _keyword.isReservedWord;
+  }
+});
+Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
+  enumerable: true,
+  get: function () {
+    return _keyword.isStrictBindOnlyReservedWord;
+  }
+});
+Object.defineProperty(exports, "isStrictBindReservedWord", {
+  enumerable: true,
+  get: function () {
+    return _keyword.isStrictBindReservedWord;
+  }
+});
+Object.defineProperty(exports, "isStrictReservedWord", {
+  enumerable: true,
+  get: function () {
+    return _keyword.isStrictReservedWord;
+  }
+});
+Object.defineProperty(exports, "isKeyword", {
+  enumerable: true,
+  get: function () {
+    return _keyword.isKeyword;
+  }
+});
+
+var _identifier = require("./identifier");
+
+var _keyword = require("./keyword");

+ 38 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/lib/keyword.js

@@ -0,0 +1,38 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+  value: true
+});
+exports.isReservedWord = isReservedWord;
+exports.isStrictReservedWord = isStrictReservedWord;
+exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
+exports.isStrictBindReservedWord = isStrictBindReservedWord;
+exports.isKeyword = isKeyword;
+const reservedWords = {
+  keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
+  strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
+  strictBind: ["eval", "arguments"]
+};
+const keywords = new Set(reservedWords.keyword);
+const reservedWordsStrictSet = new Set(reservedWords.strict);
+const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
+
+function isReservedWord(word, inModule) {
+  return inModule && word === "await" || word === "enum";
+}
+
+function isStrictReservedWord(word, inModule) {
+  return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
+}
+
+function isStrictBindOnlyReservedWord(word) {
+  return reservedWordsStrictBindSet.has(word);
+}
+
+function isStrictBindReservedWord(word, inModule) {
+  return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
+}
+
+function isKeyword(word) {
+  return keywords.has(word);
+}

+ 51 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/package.json

@@ -0,0 +1,51 @@
+{
+  "_from": "@babel/helper-validator-identifier@^7.10.4",
+  "_id": "@babel/helper-validator-identifier@7.10.4",
+  "_inBundle": false,
+  "_integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==",
+  "_location": "/@babel/helper-validator-identifier",
+  "_phantomChildren": {},
+  "_requested": {
+    "type": "range",
+    "registry": true,
+    "raw": "@babel/helper-validator-identifier@^7.10.4",
+    "name": "@babel/helper-validator-identifier",
+    "escapedName": "@babel%2fhelper-validator-identifier",
+    "scope": "@babel",
+    "rawSpec": "^7.10.4",
+    "saveSpec": null,
+    "fetchSpec": "^7.10.4"
+  },
+  "_requiredBy": [
+    "/@babel/highlight"
+  ],
+  "_resolved": "http://dev.dp.sagacloud.cn:8082/repository/npm-saga/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz",
+  "_shasum": "a78c7a7251e01f616512d31b10adcf52ada5e0d2",
+  "_spec": "@babel/helper-validator-identifier@^7.10.4",
+  "_where": "D:\\project\\persagy-web\\persagy-web-base\\node_modules\\@babel\\highlight",
+  "bugs": {
+    "url": "https://github.com/babel/babel/issues"
+  },
+  "bundleDependencies": false,
+  "deprecated": false,
+  "description": "Validate identifier/keywords name",
+  "devDependencies": {
+    "charcodes": "^0.2.0",
+    "unicode-13.0.0": "^0.8.0"
+  },
+  "exports": "./lib/index.js",
+  "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
+  "homepage": "https://github.com/babel/babel#readme",
+  "license": "MIT",
+  "main": "./lib/index.js",
+  "name": "@babel/helper-validator-identifier",
+  "publishConfig": {
+    "access": "public"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/babel/babel.git",
+    "directory": "packages/babel-helper-validator-identifier"
+  },
+  "version": "7.10.4"
+}

+ 75 - 0
persagy-web-base/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js

@@ -0,0 +1,75 @@
+"use strict";
+
+// Always use the latest available version of Unicode!
+// https://tc39.github.io/ecma262/#sec-conformance
+const version = "13.0.0";
+
+const start = require("unicode-" +
+  version +
+  "/Binary_Property/ID_Start/code-points.js").filter(function (ch) {
+  return ch > 0x7f;
+});
+let last = -1;
+const cont = [0x200c, 0x200d].concat(
+  require("unicode-" +
+    version +
+    "/Binary_Property/ID_Continue/code-points.js").filter(function (ch) {
+    return ch > 0x7f && search(start, ch, last + 1) == -1;
+  })
+);
+
+function search(arr, ch, starting) {
+  for (let i = starting; arr[i] <= ch && i < arr.length; last = i++) {
+    if (arr[i] === ch) return i;
+  }
+  return -1;
+}
+
+function pad(str, width) {
+  while (str.length < width) str = "0" + str;
+  return str;
+}
+
+function esc(code) {
+  const hex = code.toString(16);
+  if (hex.length <= 2) return "\\x" + pad(hex, 2);
+  else return "\\u" + pad(hex, 4);
+}
+
+function generate(chars) {
+  const astral = [];
+  let re = "";
+  for (let i = 0, at = 0x10000; i < chars.length; i++) {
+    const from = chars[i];
+    let to = from;
+    while (i < chars.length - 1 && chars[i + 1] == to + 1) {
+      i++;
+      to++;
+    }
+    if (to <= 0xffff) {
+      if (from == to) re += esc(from);
+      else if (from + 1 == to) re += esc(from) + esc(to);
+      else re += esc(from) + "-" + esc(to);
+    } else {
+      astral.push(from - at, to - from);
+      at = to;
+    }
+  }
+  return { nonASCII: re, astral: astral };
+}
+
+const startData = generate(start);
+const contData = generate(cont);
+
+console.log("/* prettier-ignore */");
+console.log('let nonASCIIidentifierStartChars = "' + startData.nonASCII + '";');
+console.log("/* prettier-ignore */");
+console.log('let nonASCIIidentifierChars = "' + contData.nonASCII + '";');
+console.log("/* prettier-ignore */");
+console.log(
+  "const astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";"
+);
+console.log("/* prettier-ignore */");
+console.log(
+  "const astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";"
+);

+ 22 - 0
persagy-web-base/node_modules/@babel/highlight/LICENSE

@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+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.

+ 19 - 0
persagy-web-base/node_modules/@babel/highlight/README.md

@@ -0,0 +1,19 @@
+# @babel/highlight
+
+> Syntax highlight JavaScript strings for output in terminals.
+
+See our website [@babel/highlight](https://babeljs.io/docs/en/next/babel-highlight.html) for more information.
+
+## Install
+
+Using npm:
+
+```sh
+npm install --save-dev @babel/highlight
+```
+
+or using yarn:
+
+```sh
+yarn add @babel/highlight --dev
+```

Plik diff jest za duży
+ 107 - 0
persagy-web-base/node_modules/@babel/highlight/lib/index.js


+ 58 - 0
persagy-web-base/node_modules/@babel/highlight/package.json

@@ -0,0 +1,58 @@
+{
+  "_from": "@babel/highlight@^7.10.4",
+  "_id": "@babel/highlight@7.10.4",
+  "_inBundle": false,
+  "_integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
+  "_location": "/@babel/highlight",
+  "_phantomChildren": {},
+  "_requested": {
+    "type": "range",
+    "registry": true,
+    "raw": "@babel/highlight@^7.10.4",
+    "name": "@babel/highlight",
+    "escapedName": "@babel%2fhighlight",
+    "scope": "@babel",
+    "rawSpec": "^7.10.4",
+    "saveSpec": null,
+    "fetchSpec": "^7.10.4"
+  },
+  "_requiredBy": [
+    "/@babel/code-frame"
+  ],
+  "_resolved": "http://dev.dp.sagacloud.cn:8082/repository/npm-saga/@babel/highlight/-/highlight-7.10.4.tgz",
+  "_shasum": "7d1bdfd65753538fabe6c38596cdb76d9ac60143",
+  "_spec": "@babel/highlight@^7.10.4",
+  "_where": "D:\\project\\persagy-web\\persagy-web-base\\node_modules\\@babel\\code-frame",
+  "author": {
+    "name": "suchipi",
+    "email": "me@suchipi.com"
+  },
+  "bugs": {
+    "url": "https://github.com/babel/babel/issues"
+  },
+  "bundleDependencies": false,
+  "dependencies": {
+    "@babel/helper-validator-identifier": "^7.10.4",
+    "chalk": "^2.0.0",
+    "js-tokens": "^4.0.0"
+  },
+  "deprecated": false,
+  "description": "Syntax highlight JavaScript strings for output in terminals.",
+  "devDependencies": {
+    "strip-ansi": "^4.0.0"
+  },
+  "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
+  "homepage": "https://babeljs.io/",
+  "license": "MIT",
+  "main": "lib/index.js",
+  "name": "@babel/highlight",
+  "publishConfig": {
+    "access": "public"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/babel/babel.git",
+    "directory": "packages/babel-highlight"
+  },
+  "version": "7.10.4"
+}

+ 21 - 0
persagy-web-base/node_modules/@jest/types/LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Facebook, Inc. and its affiliates.
+
+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.

+ 172 - 0
persagy-web-base/node_modules/@jest/types/build/Circus.d.ts

@@ -0,0 +1,172 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+/// <reference types="node" />
+import * as Global from './Global';
+declare type Process = NodeJS.Process;
+export declare type DoneFn = Global.DoneFn;
+export declare type BlockFn = Global.BlockFn;
+export declare type BlockName = Global.BlockName;
+export declare type BlockMode = void | 'skip' | 'only' | 'todo';
+export declare type TestMode = BlockMode;
+export declare type TestName = Global.TestName;
+export declare type TestFn = Global.TestFn;
+export declare type HookFn = (done?: DoneFn) => Promise<any> | null | undefined;
+export declare type AsyncFn = TestFn | HookFn;
+export declare type SharedHookType = 'afterAll' | 'beforeAll';
+export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach';
+export declare type TestContext = Record<string, any>;
+export declare type Exception = any;
+export declare type FormattedError = string;
+export declare type Hook = {
+    asyncError: Error;
+    fn: HookFn;
+    type: HookType;
+    parent: DescribeBlock;
+    timeout: number | undefined | null;
+};
+export declare type EventHandler = (event: Event, state: State) => void;
+export declare type Event = {
+    name: 'include_test_location_in_result';
+} | {
+    asyncError: Error;
+    mode: BlockMode;
+    name: 'start_describe_definition';
+    blockName: BlockName;
+} | {
+    mode: BlockMode;
+    name: 'finish_describe_definition';
+    blockName: BlockName;
+} | {
+    asyncError: Error;
+    name: 'add_hook';
+    hookType: HookType;
+    fn: HookFn;
+    timeout: number | undefined;
+} | {
+    asyncError: Error;
+    name: 'add_test';
+    testName: TestName;
+    fn?: TestFn;
+    mode?: TestMode;
+    timeout: number | undefined;
+} | {
+    name: 'hook_start';
+    hook: Hook;
+} | {
+    name: 'hook_success';
+    describeBlock?: DescribeBlock;
+    test?: TestEntry;
+    hook: Hook;
+} | {
+    name: 'hook_failure';
+    error: string | Exception;
+    describeBlock?: DescribeBlock;
+    test?: TestEntry;
+    hook: Hook;
+} | {
+    name: 'test_fn_start';
+    test: TestEntry;
+} | {
+    name: 'test_fn_success';
+    test: TestEntry;
+} | {
+    name: 'test_fn_failure';
+    error: Exception;
+    test: TestEntry;
+} | {
+    name: 'test_retry';
+    test: TestEntry;
+} | {
+    name: 'test_start';
+    test: TestEntry;
+} | {
+    name: 'test_skip';
+    test: TestEntry;
+} | {
+    name: 'test_todo';
+    test: TestEntry;
+} | {
+    name: 'test_done';
+    test: TestEntry;
+} | {
+    name: 'run_describe_start';
+    describeBlock: DescribeBlock;
+} | {
+    name: 'run_describe_finish';
+    describeBlock: DescribeBlock;
+} | {
+    name: 'run_start';
+} | {
+    name: 'run_finish';
+} | {
+    name: 'error';
+    error: Exception;
+} | {
+    name: 'setup';
+    testNamePattern?: string;
+    parentProcess: Process;
+} | {
+    name: 'teardown';
+};
+export declare type TestStatus = 'skip' | 'done' | 'todo';
+export declare type TestResult = {
+    duration?: number | null;
+    errors: Array<FormattedError>;
+    invocations: number;
+    status: TestStatus;
+    location?: {
+        column: number;
+        line: number;
+    } | null;
+    testPath: Array<TestName | BlockName>;
+};
+export declare type RunResult = {
+    unhandledErrors: Array<FormattedError>;
+    testResults: TestResults;
+};
+export declare type TestResults = Array<TestResult>;
+export declare type GlobalErrorHandlers = {
+    uncaughtException: Array<(exception: Exception) => void>;
+    unhandledRejection: Array<(exception: Exception, promise: Promise<any>) => void>;
+};
+export declare type State = {
+    currentDescribeBlock: DescribeBlock;
+    currentlyRunningTest?: TestEntry | null;
+    expand?: boolean;
+    hasFocusedTests: boolean;
+    originalGlobalErrorHandlers?: GlobalErrorHandlers;
+    parentProcess: Process | null;
+    rootDescribeBlock: DescribeBlock;
+    testNamePattern?: RegExp | null;
+    testTimeout: number;
+    unhandledErrors: Array<Exception>;
+    includeTestLocationInResult: boolean;
+};
+export declare type DescribeBlock = {
+    children: Array<DescribeBlock>;
+    hooks: Array<Hook>;
+    mode: BlockMode;
+    name: BlockName;
+    parent?: DescribeBlock;
+    tests: Array<TestEntry>;
+};
+export declare type TestError = Exception | Array<[Exception | undefined, Exception]>;
+export declare type TestEntry = {
+    asyncError: Exception;
+    errors: TestError;
+    fn?: TestFn;
+    invocations: number;
+    mode: TestMode;
+    name: TestName;
+    parent: DescribeBlock;
+    startedAt?: number | null;
+    duration?: number | null;
+    status?: TestStatus | null;
+    timeout?: number;
+};
+export {};
+//# sourceMappingURL=Circus.d.ts.map

Plik diff jest za duży
+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Circus.d.ts.map


+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Circus.js

@@ -0,0 +1 @@
+'use strict';

+ 439 - 0
persagy-web-base/node_modules/@jest/types/build/Config.d.ts

@@ -0,0 +1,439 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+/// <reference types="node" />
+import { Arguments } from 'yargs';
+import { ReportOptions } from 'istanbul-reports';
+export declare type Path = string;
+export declare type Glob = string;
+export declare type HasteConfig = {
+    computeSha1?: boolean;
+    defaultPlatform?: string | null | undefined;
+    hasteImplModulePath?: string;
+    platforms?: Array<string>;
+    providesModuleNodeModules: Array<string>;
+    throwOnModuleCollision?: boolean;
+};
+export declare type ReporterConfig = [string, Record<string, unknown>];
+export declare type TransformerConfig = [string, Record<string, unknown>];
+export declare type ConfigGlobals = Record<string, any>;
+export declare type DefaultOptions = {
+    automock: boolean;
+    bail: number;
+    browser: boolean;
+    cache: boolean;
+    cacheDirectory: Path;
+    changedFilesWithAncestor: boolean;
+    clearMocks: boolean;
+    collectCoverage: boolean;
+    collectCoverageFrom: Array<string> | null | undefined;
+    coverageDirectory: string | null | undefined;
+    coveragePathIgnorePatterns: Array<string>;
+    coverageReporters: Array<string>;
+    coverageThreshold: {
+        global: {
+            [key: string]: number;
+        };
+    } | null | undefined;
+    dependencyExtractor: string | null | undefined;
+    errorOnDeprecated: boolean;
+    expand: boolean;
+    filter: Path | null | undefined;
+    forceCoverageMatch: Array<Glob>;
+    globals: ConfigGlobals;
+    globalSetup: string | null | undefined;
+    globalTeardown: string | null | undefined;
+    haste: HasteConfig;
+    maxWorkers: number | string;
+    maxConcurrency: number;
+    moduleDirectories: Array<string>;
+    moduleFileExtensions: Array<string>;
+    moduleNameMapper: {
+        [key: string]: string;
+    };
+    modulePathIgnorePatterns: Array<string>;
+    noStackTrace: boolean;
+    notify: boolean;
+    notifyMode: string;
+    preset: string | null | undefined;
+    prettierPath: string | null | undefined;
+    projects: Array<string | ProjectConfig> | null | undefined;
+    resetMocks: boolean;
+    resetModules: boolean;
+    resolver: Path | null | undefined;
+    restoreMocks: boolean;
+    rootDir: Path | null | undefined;
+    roots: Array<Path> | null | undefined;
+    runner: string;
+    runTestsByPath: boolean;
+    setupFiles: Array<Path>;
+    setupFilesAfterEnv: Array<Path>;
+    skipFilter: boolean;
+    snapshotSerializers: Array<Path>;
+    testEnvironment: string;
+    testEnvironmentOptions: Record<string, any>;
+    testFailureExitCode: string | number;
+    testLocationInResults: boolean;
+    testMatch: Array<Glob>;
+    testPathIgnorePatterns: Array<string>;
+    testRegex: Array<string>;
+    testResultsProcessor: string | null | undefined;
+    testRunner: string | null | undefined;
+    testSequencer: string;
+    testURL: string;
+    timers: 'real' | 'fake';
+    transform: {
+        [regex: string]: Path | TransformerConfig;
+    } | null | undefined;
+    transformIgnorePatterns: Array<Glob>;
+    watchPathIgnorePatterns: Array<string>;
+    useStderr: boolean;
+    verbose: boolean | null | undefined;
+    watch: boolean;
+    watchman: boolean;
+};
+export declare type DisplayName = string | {
+    name: string;
+    color: DisplayNameColor;
+};
+export declare type InitialOptions = {
+    automock?: boolean;
+    bail?: boolean | number;
+    browser?: boolean;
+    cache?: boolean;
+    cacheDirectory?: Path;
+    clearMocks?: boolean;
+    changedFilesWithAncestor?: boolean;
+    changedSince?: string;
+    collectCoverage?: boolean;
+    collectCoverageFrom?: Array<Glob>;
+    collectCoverageOnlyFrom?: {
+        [key: string]: boolean;
+    };
+    coverageDirectory?: string;
+    coveragePathIgnorePatterns?: Array<string>;
+    coverageReporters?: Array<string>;
+    coverageThreshold?: {
+        global: {
+            [key: string]: number;
+        };
+    };
+    dependencyExtractor?: string;
+    detectLeaks?: boolean;
+    detectOpenHandles?: boolean;
+    displayName?: DisplayName;
+    expand?: boolean;
+    extraGlobals?: Array<string>;
+    filter?: Path;
+    findRelatedTests?: boolean;
+    forceCoverageMatch?: Array<Glob>;
+    forceExit?: boolean;
+    json?: boolean;
+    globals?: ConfigGlobals;
+    globalSetup?: string | null | undefined;
+    globalTeardown?: string | null | undefined;
+    haste?: HasteConfig;
+    reporters?: Array<string | ReporterConfig>;
+    logHeapUsage?: boolean;
+    lastCommit?: boolean;
+    listTests?: boolean;
+    mapCoverage?: boolean;
+    maxConcurrency?: number;
+    maxWorkers: number | string;
+    moduleDirectories?: Array<string>;
+    moduleFileExtensions?: Array<string>;
+    moduleLoader?: Path;
+    moduleNameMapper?: {
+        [key: string]: string;
+    };
+    modulePathIgnorePatterns?: Array<string>;
+    modulePaths?: Array<string>;
+    name?: string;
+    noStackTrace?: boolean;
+    notify?: boolean;
+    notifyMode?: string;
+    onlyChanged?: boolean;
+    outputFile?: Path;
+    passWithNoTests?: boolean;
+    preprocessorIgnorePatterns?: Array<Glob>;
+    preset?: string | null | undefined;
+    prettierPath?: string | null | undefined;
+    projects?: Array<Glob>;
+    replname?: string | null | undefined;
+    resetMocks?: boolean;
+    resetModules?: boolean;
+    resolver?: Path | null | undefined;
+    restoreMocks?: boolean;
+    rootDir: Path;
+    roots?: Array<Path>;
+    runner?: string;
+    runTestsByPath?: boolean;
+    scriptPreprocessor?: string;
+    setupFiles?: Array<Path>;
+    setupTestFrameworkScriptFile?: Path;
+    setupFilesAfterEnv?: Array<Path>;
+    silent?: boolean;
+    skipFilter?: boolean;
+    skipNodeResolution?: boolean;
+    snapshotResolver?: Path;
+    snapshotSerializers?: Array<Path>;
+    errorOnDeprecated?: boolean;
+    testEnvironment?: string;
+    testEnvironmentOptions?: Record<string, any>;
+    testFailureExitCode?: string | number;
+    testLocationInResults?: boolean;
+    testMatch?: Array<Glob>;
+    testNamePattern?: string;
+    testPathDirs?: Array<Path>;
+    testPathIgnorePatterns?: Array<string>;
+    testRegex?: string | Array<string>;
+    testResultsProcessor?: string | null | undefined;
+    testRunner?: string;
+    testSequencer?: string;
+    testURL?: string;
+    testTimeout?: number;
+    timers?: 'real' | 'fake';
+    transform?: {
+        [regex: string]: Path | TransformerConfig;
+    };
+    transformIgnorePatterns?: Array<Glob>;
+    watchPathIgnorePatterns?: Array<string>;
+    unmockedModulePathPatterns?: Array<string>;
+    updateSnapshot?: boolean;
+    useStderr?: boolean;
+    verbose?: boolean | null | undefined;
+    watch?: boolean;
+    watchAll?: boolean;
+    watchman?: boolean;
+    watchPlugins?: Array<string | [string, Record<string, any>]>;
+};
+export declare type SnapshotUpdateState = 'all' | 'new' | 'none';
+declare type NotifyMode = 'always' | 'failure' | 'success' | 'change' | 'success-change' | 'failure-change';
+/**
+ * Hard coding this until
+ * https://github.com/chalk/chalk/pull/336
+ * gets merged
+ */
+declare type DisplayNameColor = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray' | 'grey' | 'blackBright' | 'redBright' | 'greenBright' | 'yellowBright' | 'blueBright' | 'magentaBright' | 'cyanBright' | 'whiteBright' | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite' | 'bgBlackBright' | 'bgRedBright' | 'bgGreenBright' | 'bgYellowBright' | 'bgBlueBright' | 'bgMagentaBright' | 'bgCyanBright' | 'bgWhiteBright';
+declare type CoverageThreshold = {
+    [path: string]: {
+        [key: string]: number;
+    };
+    global: {
+        [key: string]: number;
+    };
+};
+export declare type GlobalConfig = {
+    bail: number;
+    changedSince: string;
+    changedFilesWithAncestor: boolean;
+    collectCoverage: boolean;
+    collectCoverageFrom: Array<Glob>;
+    collectCoverageOnlyFrom: {
+        [key: string]: boolean;
+    } | null | undefined;
+    coverageDirectory: string;
+    coveragePathIgnorePatterns?: Array<string>;
+    coverageReporters: Array<keyof ReportOptions>;
+    coverageThreshold: CoverageThreshold;
+    detectLeaks: boolean;
+    detectOpenHandles: boolean;
+    enabledTestsMap: {
+        [key: string]: {
+            [key: string]: boolean;
+        };
+    } | null | undefined;
+    expand: boolean;
+    extraGlobals: Array<string>;
+    filter: Path | null | undefined;
+    findRelatedTests: boolean;
+    forceExit: boolean;
+    json: boolean;
+    globalSetup: string | null | undefined;
+    globalTeardown: string | null | undefined;
+    lastCommit: boolean;
+    logHeapUsage: boolean;
+    listTests: boolean;
+    maxConcurrency: number;
+    maxWorkers: number;
+    noStackTrace: boolean;
+    nonFlagArgs: Array<string>;
+    noSCM: boolean | null | undefined;
+    notify: boolean;
+    notifyMode: NotifyMode;
+    outputFile: Path | null | undefined;
+    onlyChanged: boolean;
+    onlyFailures: boolean;
+    passWithNoTests: boolean;
+    projects: Array<Glob>;
+    replname: string | null | undefined;
+    reporters: Array<string | ReporterConfig>;
+    runTestsByPath: boolean;
+    rootDir: Path;
+    silent: boolean;
+    skipFilter: boolean;
+    errorOnDeprecated: boolean;
+    testFailureExitCode: number;
+    testNamePattern: string;
+    testPathPattern: string;
+    testResultsProcessor: string | null | undefined;
+    testSequencer: string;
+    testTimeout: number;
+    updateSnapshot: SnapshotUpdateState;
+    useStderr: boolean;
+    verbose: boolean | null | undefined;
+    watch: boolean;
+    watchAll: boolean;
+    watchman: boolean;
+    watchPlugins: Array<{
+        path: string;
+        config: Record<string, any>;
+    }> | null | undefined;
+};
+export declare type ProjectConfig = {
+    automock: boolean;
+    browser: boolean;
+    cache: boolean;
+    cacheDirectory: Path;
+    clearMocks: boolean;
+    coveragePathIgnorePatterns: Array<string>;
+    cwd: Path;
+    dependencyExtractor?: string;
+    detectLeaks: boolean;
+    detectOpenHandles: boolean;
+    displayName?: DisplayName;
+    errorOnDeprecated: boolean;
+    extraGlobals: Array<keyof NodeJS.Global>;
+    filter: Path | null | undefined;
+    forceCoverageMatch: Array<Glob>;
+    globalSetup: string | null | undefined;
+    globalTeardown: string | null | undefined;
+    globals: ConfigGlobals;
+    haste: HasteConfig;
+    moduleDirectories: Array<string>;
+    moduleFileExtensions: Array<string>;
+    moduleLoader: Path;
+    moduleNameMapper: Array<[string, string]>;
+    modulePathIgnorePatterns: Array<string>;
+    modulePaths: Array<string>;
+    name: string;
+    prettierPath: string;
+    resetMocks: boolean;
+    resetModules: boolean;
+    resolver: Path | null | undefined;
+    restoreMocks: boolean;
+    rootDir: Path;
+    roots: Array<Path>;
+    runner: string;
+    setupFiles: Array<Path>;
+    setupFilesAfterEnv: Array<Path>;
+    skipFilter: boolean;
+    skipNodeResolution: boolean;
+    snapshotResolver: Path | null | undefined;
+    snapshotSerializers: Array<Path>;
+    testEnvironment: string;
+    testEnvironmentOptions: Record<string, any>;
+    testMatch: Array<Glob>;
+    testLocationInResults: boolean;
+    testPathIgnorePatterns: Array<string>;
+    testRegex: Array<string>;
+    testRunner: string;
+    testURL: string;
+    timers: 'real' | 'fake';
+    transform: Array<[string, Path, Record<string, unknown>]>;
+    transformIgnorePatterns: Array<Glob>;
+    watchPathIgnorePatterns: Array<string>;
+    unmockedModulePathPatterns: Array<string> | null | undefined;
+};
+export declare type Argv = Arguments<Partial<{
+    all: boolean;
+    automock: boolean;
+    bail: boolean | number;
+    browser: boolean;
+    cache: boolean;
+    cacheDirectory: string;
+    changedFilesWithAncestor: boolean;
+    changedSince: string;
+    ci: boolean;
+    clearCache: boolean;
+    clearMocks: boolean;
+    collectCoverage: boolean;
+    collectCoverageFrom: string;
+    collectCoverageOnlyFrom: Array<string>;
+    color: boolean;
+    colors: boolean;
+    config: string;
+    coverage: boolean;
+    coverageDirectory: string;
+    coveragePathIgnorePatterns: Array<string>;
+    coverageReporters: Array<string>;
+    coverageThreshold: string;
+    debug: boolean;
+    env: string;
+    expand: boolean;
+    findRelatedTests: boolean;
+    forceExit: boolean;
+    globals: string;
+    globalSetup: string | null | undefined;
+    globalTeardown: string | null | undefined;
+    haste: string;
+    init: boolean;
+    json: boolean;
+    lastCommit: boolean;
+    logHeapUsage: boolean;
+    maxWorkers: number | string;
+    moduleDirectories: Array<string>;
+    moduleFileExtensions: Array<string>;
+    moduleNameMapper: string;
+    modulePathIgnorePatterns: Array<string>;
+    modulePaths: Array<string>;
+    noStackTrace: boolean;
+    notify: boolean;
+    notifyMode: string;
+    onlyChanged: boolean;
+    outputFile: string;
+    preset: string | null | undefined;
+    projects: Array<string>;
+    prettierPath: string | null | undefined;
+    resetMocks: boolean;
+    resetModules: boolean;
+    resolver: string | null | undefined;
+    restoreMocks: boolean;
+    rootDir: string;
+    roots: Array<string>;
+    runInBand: boolean;
+    setupFiles: Array<string>;
+    setupFilesAfterEnv: Array<string>;
+    showConfig: boolean;
+    silent: boolean;
+    snapshotSerializers: Array<string>;
+    testEnvironment: string;
+    testFailureExitCode: string | null | undefined;
+    testMatch: Array<string>;
+    testNamePattern: string;
+    testPathIgnorePatterns: Array<string>;
+    testPathPattern: Array<string>;
+    testRegex: string | Array<string>;
+    testResultsProcessor: string | null | undefined;
+    testRunner: string;
+    testSequencer: string;
+    testURL: string;
+    testTimeout: number | null | undefined;
+    timers: string;
+    transform: string;
+    transformIgnorePatterns: Array<string>;
+    unmockedModulePathPatterns: Array<string> | null | undefined;
+    updateSnapshot: boolean;
+    useStderr: boolean;
+    verbose: boolean | null | undefined;
+    version: boolean;
+    watch: boolean;
+    watchAll: boolean;
+    watchman: boolean;
+    watchPathIgnorePatterns: Array<string>;
+}>>;
+export {};
+//# sourceMappingURL=Config.d.ts.map

Plik diff jest za duży
+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Config.d.ts.map


+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Config.js

@@ -0,0 +1 @@
+'use strict';

+ 74 - 0
persagy-web-base/node_modules/@jest/types/build/Global.d.ts

@@ -0,0 +1,74 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+/// <reference types="node" />
+import { CoverageMapData } from 'istanbul-lib-coverage';
+export declare type DoneFn = (reason?: string | Error) => void;
+export declare type TestName = string;
+export declare type TestFn = (done?: DoneFn) => Promise<any> | void | undefined;
+export declare type BlockFn = () => void;
+export declare type BlockName = string;
+export declare type Col = unknown;
+export declare type Row = Array<Col>;
+export declare type Table = Array<Row>;
+export declare type ArrayTable = Table | Row;
+export declare type TemplateTable = TemplateStringsArray;
+export declare type TemplateData = Array<unknown>;
+export declare type EachTable = ArrayTable | TemplateTable;
+export declare type EachTestFn = (...args: Array<any>) => Promise<any> | void | undefined;
+declare type Jasmine = {
+    _DEFAULT_TIMEOUT_INTERVAL?: number;
+    addMatchers: Function;
+};
+declare type Each = (table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn, timeout?: number) => void;
+export interface ItBase {
+    (testName: TestName, fn: TestFn, timeout?: number): void;
+    each: Each;
+}
+export interface It extends ItBase {
+    only: ItBase;
+    skip: ItBase;
+    todo: (testName: TestName, ...rest: Array<any>) => void;
+}
+export interface ItConcurrentBase {
+    (testName: string, testFn: () => Promise<any>, timeout?: number): void;
+}
+export interface ItConcurrentExtended extends ItConcurrentBase {
+    only: ItConcurrentBase;
+    skip: ItConcurrentBase;
+}
+export interface ItConcurrent extends It {
+    concurrent: ItConcurrentExtended;
+}
+export interface DescribeBase {
+    (blockName: BlockName, blockFn: BlockFn): void;
+    each: Each;
+}
+export interface Describe extends DescribeBase {
+    only: DescribeBase;
+    skip: DescribeBase;
+}
+export interface Global extends NodeJS.Global {
+    it: ItConcurrent;
+    test: ItConcurrent;
+    fit: ItBase & {
+        concurrent?: ItConcurrentBase;
+    };
+    xit: ItBase;
+    xtest: ItBase;
+    describe: Describe;
+    xdescribe: DescribeBase;
+    fdescribe: DescribeBase;
+    __coverage__: CoverageMapData;
+    jasmine: Jasmine;
+    fail: () => void;
+    pending: () => void;
+    spyOn: () => void;
+    spyOnProperty: () => void;
+    [extras: string]: any;
+}
+export {};
+//# sourceMappingURL=Global.d.ts.map

Plik diff jest za duży
+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Global.d.ts.map


+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/Global.js

@@ -0,0 +1 @@
+'use strict';

+ 11 - 0
persagy-web-base/node_modules/@jest/types/build/index.d.ts

@@ -0,0 +1,11 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import * as Circus from './Circus';
+import * as Config from './Config';
+import * as Global from './Global';
+export { Circus, Config, Global };
+//# sourceMappingURL=index.d.ts.map

+ 1 - 0
persagy-web-base/node_modules/@jest/types/build/index.d.ts.map

@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC"}

+ 43 - 0
persagy-web-base/node_modules/@jest/types/build/index.js

@@ -0,0 +1,43 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', {
+  value: true
+});
+exports.Global = exports.Config = exports.Circus = void 0;
+
+var Circus = _interopRequireWildcard(require('./Circus'));
+
+exports.Circus = Circus;
+
+var Config = _interopRequireWildcard(require('./Config'));
+
+exports.Config = Config;
+
+var Global = _interopRequireWildcard(require('./Global'));
+
+exports.Global = Global;
+
+function _interopRequireWildcard(obj) {
+  if (obj && obj.__esModule) {
+    return obj;
+  } else {
+    var newObj = {};
+    if (obj != null) {
+      for (var key in obj) {
+        if (Object.prototype.hasOwnProperty.call(obj, key)) {
+          var desc =
+            Object.defineProperty && Object.getOwnPropertyDescriptor
+              ? Object.getOwnPropertyDescriptor(obj, key)
+              : {};
+          if (desc.get || desc.set) {
+            Object.defineProperty(newObj, key, desc);
+          } else {
+            newObj[key] = obj[key];
+          }
+        }
+      }
+    }
+    newObj.default = obj;
+    return newObj;
+  }
+}

+ 0 - 0
persagy-web-base/node_modules/@jest/types/package.json


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików