@colijnit/configurator 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/.idea/Configurator.iml +12 -0
  2. package/.idea/codeStyles/Project.xml +21 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. package/.idea/misc.xml +9 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/angular.json +193 -0
  9. package/configurator.iml +11 -0
  10. package/dist/configurator/index.html +14 -0
  11. package/dist/configurator/main-es2015.js +3129 -0
  12. package/dist/configurator/main-es2015.js.map +1 -0
  13. package/dist/configurator/main-es5.js +5482 -0
  14. package/dist/configurator/main-es5.js.map +1 -0
  15. package/dist/configurator/polyfills-es2015.js +4520 -0
  16. package/dist/configurator/polyfills-es2015.js.map +1 -0
  17. package/dist/configurator/polyfills-es5.js +18375 -0
  18. package/dist/configurator/polyfills-es5.js.map +1 -0
  19. package/dist/configurator/runtime-es2015.js +155 -0
  20. package/dist/configurator/runtime-es2015.js.map +1 -0
  21. package/dist/configurator/runtime-es5.js +155 -0
  22. package/dist/configurator/runtime-es5.js.map +1 -0
  23. package/dist/configurator/styles-es2015.js +450 -0
  24. package/dist/configurator/styles-es2015.js.map +1 -0
  25. package/dist/configurator/styles-es5.js +432 -0
  26. package/dist/configurator/styles-es5.js.map +1 -0
  27. package/dist/configurator/vendor-es2015.js +155551 -0
  28. package/dist/configurator/vendor-es2015.js.map +1 -0
  29. package/dist/configurator/vendor-es5.js +183588 -0
  30. package/dist/configurator/vendor-es5.js.map +1 -0
  31. package/ng-package.json +9 -0
  32. package/package.json +47 -14
  33. package/src/app/app.component.ts +222 -0
  34. package/src/app/app.module.ts +34 -0
  35. package/src/app/builder.ts +480 -0
  36. package/src/app/components/answers/answer/answer.component.ts +61 -0
  37. package/src/app/components/answers/answers.component.ts +41 -0
  38. package/src/app/components/answers/answers.module.ts +26 -0
  39. package/src/app/components/selections/selections.component.ts +131 -0
  40. package/src/app/components/selections/selections.module.ts +20 -0
  41. package/src/app/components/shared/loader/loader.component.scss +33 -0
  42. package/src/app/components/shared/loader/loader.component.ts +20 -0
  43. package/src/app/components/shared/shared.module.ts +16 -0
  44. package/src/app/directives/visibility-observer-master.directive.ts +71 -0
  45. package/src/app/directives/visibility-observer.directive.ts +74 -0
  46. package/src/app/services/configurator.service.ts +86 -0
  47. package/src/app/services/image-cache.service.ts +56 -0
  48. package/src/app/services/locator.service.ts +6 -0
  49. package/src/environments/environment.prod.ts +3 -0
  50. package/src/environments/environment.ts +8 -0
  51. package/src/helper/variation-helper.ts +220 -0
  52. package/src/index.html +14 -0
  53. package/src/main.ts +11 -0
  54. package/src/model/material.ts +22 -0
  55. package/src/model/variation-settings.ts +14 -0
  56. package/src/model/variation.ts +11 -0
  57. package/src/polyfills.ts +73 -0
  58. package/{public_api.d.ts → src/public_api.ts} +6 -6
  59. package/src/style/shared.scss +173 -0
  60. package/src/style/styles.scss +45 -0
  61. package/src/tsconfig.app.json +16 -0
  62. package/src/tsconfig.spec.json +19 -0
  63. package/src/utils/asset.utils.ts +88 -0
  64. package/src/utils/file.utils.ts +156 -0
  65. package/src/utils/file.utils.unit.test.ts +8 -0
  66. package/src/utils/image.utils.ts +54 -0
  67. package/src/utils/object.utils.ts +52 -0
  68. package/src/utils/scene-utils.ts +119 -0
  69. package/src/utils/threed.utils.ts +219 -0
  70. package/src/utils/variation-utils.ts +216 -0
  71. package/tsconfig.json +23 -0
  72. package/tslint.json +132 -0
  73. package/app/builder.d.ts +0 -53
  74. package/app/components/answers/answer/answer.component.d.ts +0 -11
  75. package/app/components/answers/answers.component.d.ts +0 -8
  76. package/app/components/answers/answers.module.d.ts +0 -2
  77. package/app/components/selections/selections.component.d.ts +0 -22
  78. package/app/components/selections/selections.module.d.ts +0 -2
  79. package/app/components/shared/loader/loader.component.d.ts +0 -2
  80. package/app/components/shared/shared.module.d.ts +0 -2
  81. package/app/directives/visibility-observer-master.directive.d.ts +0 -9
  82. package/app/directives/visibility-observer.directive.d.ts +0 -13
  83. package/app/services/configurator.service.d.ts +0 -22
  84. package/app/services/image-cache.service.d.ts +0 -10
  85. package/app/services/locator.service.d.ts +0 -4
  86. package/bundles/colijnit-configurator.umd.js +0 -2745
  87. package/bundles/colijnit-configurator.umd.js.map +0 -1
  88. package/bundles/colijnit-configurator.umd.min.js +0 -17
  89. package/bundles/colijnit-configurator.umd.min.js.map +0 -1
  90. package/colijnit-configurator.d.ts +0 -10
  91. package/colijnit-configurator.metadata.json +0 -1
  92. package/esm2015/app/builder.js +0 -477
  93. package/esm2015/app/components/answers/answer/answer.component.js +0 -69
  94. package/esm2015/app/components/answers/answers.component.js +0 -43
  95. package/esm2015/app/components/answers/answers.module.js +0 -29
  96. package/esm2015/app/components/selections/selections.component.js +0 -134
  97. package/esm2015/app/components/selections/selections.module.js +0 -23
  98. package/esm2015/app/components/shared/loader/loader.component.js +0 -24
  99. package/esm2015/app/components/shared/shared.module.js +0 -21
  100. package/esm2015/app/directives/visibility-observer-master.directive.js +0 -51
  101. package/esm2015/app/directives/visibility-observer.directive.js +0 -57
  102. package/esm2015/app/services/configurator.service.js +0 -94
  103. package/esm2015/app/services/image-cache.service.js +0 -66
  104. package/esm2015/app/services/locator.service.js +0 -10
  105. package/esm2015/colijnit-configurator.js +0 -11
  106. package/esm2015/helper/variation-helper.js +0 -216
  107. package/esm2015/model/material.js +0 -11
  108. package/esm2015/model/variation-settings.js +0 -6
  109. package/esm2015/model/variation.js +0 -3
  110. package/esm2015/public_api.js +0 -7
  111. package/esm2015/utils/asset.utils.js +0 -74
  112. package/esm2015/utils/file.utils.js +0 -139
  113. package/esm2015/utils/image.utils.js +0 -52
  114. package/esm2015/utils/object.utils.js +0 -49
  115. package/esm2015/utils/scene-utils.js +0 -94
  116. package/esm2015/utils/threed.utils.js +0 -222
  117. package/esm2015/utils/variation-utils.js +0 -224
  118. package/esm5/app/builder.js +0 -591
  119. package/esm5/app/components/answers/answer/answer.component.js +0 -64
  120. package/esm5/app/components/answers/answers.component.js +0 -27
  121. package/esm5/app/components/answers/answers.module.js +0 -32
  122. package/esm5/app/components/selections/selections.component.js +0 -104
  123. package/esm5/app/components/selections/selections.module.js +0 -26
  124. package/esm5/app/components/shared/loader/loader.component.js +0 -16
  125. package/esm5/app/components/shared/shared.module.js +0 -24
  126. package/esm5/app/directives/visibility-observer-master.directive.js +0 -64
  127. package/esm5/app/directives/visibility-observer.directive.js +0 -59
  128. package/esm5/app/services/configurator.service.js +0 -160
  129. package/esm5/app/services/image-cache.service.js +0 -69
  130. package/esm5/app/services/locator.service.js +0 -13
  131. package/esm5/colijnit-configurator.js +0 -11
  132. package/esm5/helper/variation-helper.js +0 -268
  133. package/esm5/model/material.js +0 -13
  134. package/esm5/model/variation-settings.js +0 -8
  135. package/esm5/model/variation.js +0 -7
  136. package/esm5/public_api.js +0 -7
  137. package/esm5/utils/asset.utils.js +0 -106
  138. package/esm5/utils/file.utils.js +0 -151
  139. package/esm5/utils/image.utils.js +0 -56
  140. package/esm5/utils/object.utils.js +0 -56
  141. package/esm5/utils/scene-utils.js +0 -98
  142. package/esm5/utils/threed.utils.js +0 -279
  143. package/esm5/utils/variation-utils.js +0 -327
  144. package/fesm2015/colijnit-configurator.js +0 -2109
  145. package/fesm2015/colijnit-configurator.js.map +0 -1
  146. package/fesm5/colijnit-configurator.js +0 -2527
  147. package/fesm5/colijnit-configurator.js.map +0 -1
  148. package/helper/variation-helper.d.ts +0 -14
  149. package/model/material.d.ts +0 -17
  150. package/model/variation-settings.d.ts +0 -14
  151. package/model/variation.d.ts +0 -10
  152. package/utils/asset.utils.d.ts +0 -13
  153. package/utils/file.utils.d.ts +0 -27
  154. package/utils/image.utils.d.ts +0 -8
  155. package/utils/object.utils.d.ts +0 -7
  156. package/utils/scene-utils.d.ts +0 -7
  157. package/utils/threed.utils.d.ts +0 -16
  158. package/utils/variation-utils.d.ts +0 -12
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$">
6
+ <excludeFolder url="file://$MODULE_DIR$/dist" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,21 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <JetCodeStyleSettings>
4
+ <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
5
+ </JetCodeStyleSettings>
6
+ <TypeScriptCodeStyleSettings version="0">
7
+ <option name="USE_DOUBLE_QUOTES" value="false" />
8
+ <option name="FORCE_QUOTE_STYlE" value="true" />
9
+ </TypeScriptCodeStyleSettings>
10
+ <codeStyleSettings language="TypeScript">
11
+ <option name="RIGHT_MARGIN" value="140" />
12
+ <option name="IF_BRACE_FORCE" value="3" />
13
+ <option name="DOWHILE_BRACE_FORCE" value="3" />
14
+ <option name="WHILE_BRACE_FORCE" value="3" />
15
+ <option name="FOR_BRACE_FORCE" value="3" />
16
+ </codeStyleSettings>
17
+ <codeStyleSettings language="kotlin">
18
+ <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
19
+ </codeStyleSettings>
20
+ </code_scheme>
21
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MarkdownSettingsMigration">
4
+ <option name="stateVersion" value="1" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
7
+ <output url="file://$PROJECT_DIR$/out" />
8
+ </component>
9
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/Configurator.iml" filepath="$PROJECT_DIR$/.idea/Configurator.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" />
5
+ </component>
6
+ </project>
package/angular.json ADDED
@@ -0,0 +1,193 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "colijnit-configurator": {
7
+ "root": "",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "architect": {
11
+ "build": {
12
+ "builder": "@angular-devkit/build-angular:browser",
13
+ "options": {
14
+ "aot": true,
15
+ "outputPath": "dist/configurator",
16
+ "index": "src/index.html",
17
+ "main": "src/main.ts",
18
+ "tsConfig": "src/tsconfig.app.json",
19
+ "polyfills": "src/polyfills.ts",
20
+ "assets": [
21
+ "src/layout/",
22
+ "src/assets",
23
+ "src/favicon.ico"
24
+ ],
25
+ "styles": [
26
+ "src/style/styles.scss"
27
+ ],
28
+ "scripts": []
29
+ },
30
+ "configurations": {
31
+ "production": {
32
+ "budgets": [
33
+ {
34
+ "type": "anyComponentStyle",
35
+ "maximumWarning": "6kb"
36
+ }
37
+ ],
38
+ "optimization": true,
39
+ "outputHashing": "none",
40
+ "sourceMap": false,
41
+ "extractCss": false,
42
+ "namedChunks": false,
43
+ "aot": false,
44
+ "extractLicenses": false,
45
+ "vendorChunk": true,
46
+ "buildOptimizer": true,
47
+ "fileReplacements": [
48
+ {
49
+ "replace": "src/environments/environment.ts",
50
+ "with": "src/environments/environment.prod.ts"
51
+ }
52
+ ]
53
+ }
54
+ }
55
+ },
56
+ "serve": {
57
+ "builder": "@angular-devkit/build-angular:dev-server",
58
+ "options": {
59
+ "browserTarget": "colijnit-configurator:build"
60
+ },
61
+ "configurations": {
62
+ "production": {
63
+ "browserTarget": "colijnit-configurator:build:production"
64
+ }
65
+ }
66
+ },
67
+ "extract-i18n": {
68
+ "builder": "@angular-devkit/build-angular:extract-i18n",
69
+ "options": {
70
+ "browserTarget": "colijnit-configurator:build"
71
+ }
72
+ },
73
+ "test": {
74
+ "builder": "@angular-devkit/build-angular:karma",
75
+ "options": {
76
+ "main": "src/test.ts",
77
+ "karmaConfig": "./karma.conf.js",
78
+ "polyfills": "src/polyfills.ts",
79
+ "tsConfig": "src/tsconfig.spec.json",
80
+ "scripts": [],
81
+ "styles": [
82
+ "src/style/styles.scss"
83
+ ],
84
+ "assets": [
85
+ "src/assets",
86
+ "src/favicon.ico"
87
+ ]
88
+ }
89
+ },
90
+ "lint": {
91
+ "builder": "@angular-devkit/build-angular:tslint",
92
+ "options": {
93
+ "tsConfig": [
94
+ "src/tsconfig.app.json",
95
+ "src/tsconfig.spec.json"
96
+ ],
97
+ "exclude": []
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "colijnit-configurator-e2e": {
103
+ "root": "e2e",
104
+ "sourceRoot": "e2e",
105
+ "projectType": "application",
106
+ "architect": {
107
+ "e2e": {
108
+ "builder": "@angular-devkit/build-angular:protractor",
109
+ "options": {
110
+ "protractorConfig": "./protractor.conf.js",
111
+ "devServerTarget": "colijnit-configurator:serve"
112
+ }
113
+ },
114
+ "lint": {
115
+ "builder": "@angular-devkit/build-angular:tslint",
116
+ "options": {
117
+ "tsConfig": [
118
+ "e2e/tsconfig.e2e.json"
119
+ ],
120
+ "exclude": []
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "colijnit-configurator-bundle": {
126
+ "root": "",
127
+ "sourceRoot": "src",
128
+ "projectType": "application",
129
+ "architect": {
130
+ "build": {
131
+ "builder": "@angular-devkit/build-angular:browser",
132
+ "options": {
133
+ "aot": true,
134
+ "outputPath": "dist/colijnit-configurator",
135
+ "index": "src/index.html",
136
+ "main": "src/main.bundle.ts",
137
+ "tsConfig": "src/tsconfig.app.json",
138
+ "polyfills": "src/polyfills.ts",
139
+ "assets": [
140
+ "src/layout/",
141
+ "src/assets",
142
+ "src/favicon.ico"
143
+ ],
144
+ "styles": [
145
+ "src/style/styles.scss"
146
+ ],
147
+ "scripts": []
148
+ },
149
+ "configurations": {
150
+ "production": {
151
+ "budgets": [
152
+ {
153
+ "type": "anyComponentStyle",
154
+ "maximumWarning": "6kb"
155
+ }
156
+ ],
157
+ "optimization": true,
158
+ "outputHashing": "none",
159
+ "sourceMap": false,
160
+ "extractCss": false,
161
+ "namedChunks": false,
162
+ "aot": false,
163
+ "extractLicenses": false,
164
+ "vendorChunk": false,
165
+ "buildOptimizer": true,
166
+ "fileReplacements": [
167
+ {
168
+ "replace": "src/environments/environment.ts",
169
+ "with": "src/environments/environment.prod.ts"
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ },
175
+ "serve": {
176
+ "builder": "@angular-devkit/build-angular:dev-server",
177
+ "options": {
178
+ "browserTarget": "colijnit-configurator-bundle:build"
179
+ },
180
+ "configurations": {
181
+ "production": {
182
+ "browserTarget": "colijnit-configurator-bundle:build:production"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ },
189
+ "defaultProject": "colijnit-configurator",
190
+ "cli": {
191
+ "analytics": false
192
+ }
193
+ }
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$">
6
+ <excludeFolder url="file://$MODULE_DIR$/dist" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ </component>
11
+ </module>
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Configurator</title>
6
+ <base href="/">
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
10
+ </head>
11
+ <body>
12
+ <app-root></app-root>
13
+ <script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
14
+ </html>