@colijnit/inphoto 262.1.0

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 (87) hide show
  1. package/fesm2022/colijnit-inphoto.mjs +5361 -0
  2. package/fesm2022/colijnit-inphoto.mjs.map +1 -0
  3. package/index.d.ts +1093 -0
  4. package/lib/component/back-next-buttons/style/_layout.scss +15 -0
  5. package/lib/component/back-next-buttons/style/_material-definition.scss +3 -0
  6. package/lib/component/back-next-buttons/style/_theme.scss +18 -0
  7. package/lib/component/back-next-buttons/style/material.scss +3 -0
  8. package/lib/component/catalog/style/_layout.scss +84 -0
  9. package/lib/component/catalog/style/_material-definition.scss +3 -0
  10. package/lib/component/catalog/style/_theme.scss +17 -0
  11. package/lib/component/catalog/style/material.scss +3 -0
  12. package/lib/component/edit-canvas/style/_layout.scss +87 -0
  13. package/lib/component/edit-canvas/style/_material-definition.scss +3 -0
  14. package/lib/component/edit-canvas/style/_theme.scss +33 -0
  15. package/lib/component/edit-canvas/style/material.scss +3 -0
  16. package/lib/component/error-dialog/style/_layout.scss +40 -0
  17. package/lib/component/error-dialog/style/_material-definition.scss +3 -0
  18. package/lib/component/error-dialog/style/_theme.scss +10 -0
  19. package/lib/component/error-dialog/style/material.scss +3 -0
  20. package/lib/component/image-enhancer/style/_layout.scss +38 -0
  21. package/lib/component/image-enhancer/style/_material-definition.scss +7 -0
  22. package/lib/component/image-enhancer/style/_theme.scss +40 -0
  23. package/lib/component/image-enhancer/style/material.scss +3 -0
  24. package/lib/component/image-enhancer-style/style/_layout.scss +15 -0
  25. package/lib/component/image-enhancer-style/style/_material-definition.scss +3 -0
  26. package/lib/component/image-enhancer-style/style/_theme.scss +10 -0
  27. package/lib/component/image-enhancer-style/style/material.scss +3 -0
  28. package/lib/component/image-enhancer-upload/style/_layout.scss +18 -0
  29. package/lib/component/image-enhancer-upload/style/_material-definition.scss +3 -0
  30. package/lib/component/image-enhancer-upload/style/_theme.scss +10 -0
  31. package/lib/component/image-enhancer-upload/style/material.scss +3 -0
  32. package/lib/component/image-history/style/_layout.scss +46 -0
  33. package/lib/component/image-history/style/_material-definition.scss +3 -0
  34. package/lib/component/image-history/style/_theme.scss +16 -0
  35. package/lib/component/image-history/style/material.scss +3 -0
  36. package/lib/component/image-history-tile/style/_layout.scss +53 -0
  37. package/lib/component/image-history-tile/style/_material-definition.scss +3 -0
  38. package/lib/component/image-history-tile/style/_theme.scss +27 -0
  39. package/lib/component/image-history-tile/style/material.scss +3 -0
  40. package/lib/component/image-upload/style/_layout.scss +92 -0
  41. package/lib/component/image-upload/style/_material-definition.scss +6 -0
  42. package/lib/component/image-upload/style/_theme.scss +54 -0
  43. package/lib/component/image-upload/style/material.scss +3 -0
  44. package/lib/component/inphoto/style/_layout.scss +14 -0
  45. package/lib/component/inphoto/style/_material-definition.scss +3 -0
  46. package/lib/component/inphoto/style/_theme.scss +10 -0
  47. package/lib/component/inphoto/style/material.scss +3 -0
  48. package/lib/component/model-list/style/_layout.scss +7 -0
  49. package/lib/component/model-list/style/_material-definition.scss +3 -0
  50. package/lib/component/model-list/style/_theme.scss +10 -0
  51. package/lib/component/model-list/style/material.scss +3 -0
  52. package/lib/component/model-list-item/style/_layout.scss +69 -0
  53. package/lib/component/model-list-item/style/_material-definition.scss +4 -0
  54. package/lib/component/model-list-item/style/_theme.scss +10 -0
  55. package/lib/component/model-list-item/style/material.scss +3 -0
  56. package/lib/component/photo-editor/style/_layout.scss +30 -0
  57. package/lib/component/photo-editor/style/_material-definition.scss +3 -0
  58. package/lib/component/photo-editor/style/_theme.scss +8 -0
  59. package/lib/component/photo-editor/style/material.scss +3 -0
  60. package/lib/component/prepare-starting-image/style/_layout.scss +35 -0
  61. package/lib/component/prepare-starting-image/style/_material-definition.scss +3 -0
  62. package/lib/component/prepare-starting-image/style/_theme.scss +37 -0
  63. package/lib/component/prepare-starting-image/style/material.scss +3 -0
  64. package/lib/component/process-loader/style/_layout.scss +38 -0
  65. package/lib/component/process-loader/style/_material-definition.scss +3 -0
  66. package/lib/component/process-loader/style/_theme.scss +27 -0
  67. package/lib/component/process-loader/style/material.scss +3 -0
  68. package/lib/component/side-bar-menu/style/_layout.scss +40 -0
  69. package/lib/component/side-bar-menu/style/_material-definition.scss +3 -0
  70. package/lib/component/side-bar-menu/style/_theme.scss +19 -0
  71. package/lib/component/side-bar-menu/style/material.scss +3 -0
  72. package/lib/component/step-menu/style/_layout.scss +43 -0
  73. package/lib/component/step-menu/style/_material-definition.scss +7 -0
  74. package/lib/component/step-menu/style/_theme.scss +44 -0
  75. package/lib/component/step-menu/style/material.scss +3 -0
  76. package/lib/component/threedscene/style/_layout.scss +40 -0
  77. package/lib/component/threedscene/style/_material-definition.scss +3 -0
  78. package/lib/component/threedscene/style/_theme.scss +30 -0
  79. package/lib/component/threedscene/style/material.scss +3 -0
  80. package/lib/component/upload-starting-image/style/_layout.scss +44 -0
  81. package/lib/component/upload-starting-image/style/_material-definition.scss +3 -0
  82. package/lib/component/upload-starting-image/style/_theme.scss +28 -0
  83. package/lib/component/upload-starting-image/style/material.scss +3 -0
  84. package/lib/style/_mixin.scss +82 -0
  85. package/lib/style/_variables.scss +58 -0
  86. package/lib/style/app-globals.scss +26 -0
  87. package/package.json +35 -0
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,92 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-upload-layout') {
4
+ .co-image-upload {
5
+ .upload-container {
6
+ border-radius: 10px;
7
+ padding: 40px;
8
+ text-align: center;
9
+ cursor: pointer;
10
+ position: relative;
11
+
12
+ .image-upload-icon {
13
+ width: 75px;
14
+ height: 75px;
15
+ border-radius: 50%;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ margin: 0 auto;
20
+ }
21
+ }
22
+
23
+ .preview {
24
+ margin-top: 20px;
25
+ }
26
+
27
+ .preview img {
28
+ max-width: 300px;
29
+ border-radius: 8px;
30
+ }
31
+
32
+
33
+ .uploaded-files-preview-container {
34
+ display: grid;
35
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
36
+ gap: 10px;
37
+ margin-top: 10px;
38
+ .uploaded-file-preview {
39
+ position: relative;
40
+ img {
41
+ width: 100%;
42
+ height: 100%;
43
+ object-fit: cover;
44
+ border-radius: 10px;
45
+ }
46
+ .uploaded-file-overlay {
47
+ position: absolute;
48
+ top: 0;
49
+ left: 0;
50
+ right: 0;
51
+ bottom: 0;
52
+ border-radius: 10px;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ font-size: 14px;
57
+ text-align: center;
58
+ width: 100%;
59
+ visibility: hidden;
60
+
61
+ .remove-button {
62
+ position: absolute;
63
+ top: 5px;
64
+ right: 5px;
65
+ cursor: pointer;
66
+ }
67
+ }
68
+
69
+ &:hover .uploaded-file-overlay {
70
+ visibility: visible;
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ .image-upload-compact {
77
+ .upload-container {
78
+ padding: 20px;
79
+
80
+ .image-upload-icon {
81
+ visibility: hidden;
82
+ width: 0;
83
+ height: 0;
84
+ overflow: hidden;
85
+ }
86
+ }
87
+ }
88
+
89
+
90
+
91
+
92
+ }
@@ -0,0 +1,6 @@
1
+ :root {
2
+ --co-inphoto-upload-border-width: 3px;
3
+ --co-inphoto-upload-border-color: #ccc;
4
+ --co-inphoto-upload-dragging-border-color: #3f51b5;
5
+ --co-inphoto-upload-dragging-background: #f5f7ff;
6
+ }
@@ -0,0 +1,54 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-upload-theme') {
4
+ .co-image-upload {
5
+ .upload-container {
6
+ border: var(--co-inphoto-upload-border-width) dotted var(--co-inphoto-upload-border-color);
7
+
8
+ .image-upload-icon {
9
+ background: #f0f0f0;
10
+ @include default-icon(50px, 50px, #000);
11
+ }
12
+
13
+ .upload-content-text {
14
+ font-size: var(--co-inphoto-font-size-label);
15
+ padding: 5px;
16
+ }
17
+ }
18
+
19
+ .upload-container.dragging {
20
+ border-color: var(--co-inphoto-upload-dragging-border-color);
21
+ background: var(--co-inphoto-upload-dragging-background);
22
+ }
23
+
24
+ .upload-container.disabled {
25
+ opacity: 0.5;
26
+ pointer-events: none;
27
+ }
28
+
29
+ .upload-content .upload-button {
30
+ @include primary-button;
31
+ }
32
+
33
+ .uploaded-files-preview-container {
34
+ .uploaded-file-preview {
35
+ .uploaded-file-overlay {
36
+ background-color: var(--co-inphoto-loader-background-dark);
37
+
38
+ .remove-button {
39
+ @include default-icon(20px, 20px, #fff);
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ .image-upload-compact {
47
+ .upload-container {
48
+ p {
49
+ font-size: 10px;
50
+ }
51
+ }
52
+ }
53
+ }
54
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,14 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-inphoto-layout') {
4
+ .co-inphoto {
5
+ .co-inphoto-container {
6
+ width: 100%;
7
+ max-width: 1600px;
8
+ margin: 0 auto;
9
+ .co-inphoto-body {
10
+
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-inphoto-theme') {
4
+ .co-inphoto {
5
+
6
+ }
7
+ }
8
+
9
+
10
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-model-list-layout') {
4
+ .co-model-list {
5
+
6
+ }
7
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-model-list-theme') {
4
+ .co-model-list {
5
+
6
+ }
7
+ }
8
+
9
+
10
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,69 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-model-list-item-layout') {
4
+ .co-model-list-item {
5
+
6
+ .model-item-container {
7
+ box-sizing: border-box;
8
+ padding: 10px;
9
+ border: 1px solid var(--co-model-list-item-border-color);
10
+ border-radius: var(--co-model-list-item-border-radius);
11
+
12
+
13
+ .header-collapsable {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ align-items: center;
17
+
18
+ .header {
19
+ font-size: var(--co-inphoto-font-size-base);
20
+ font-weight: 600;
21
+ }
22
+
23
+ .header-icon {
24
+ display: none;
25
+ }
26
+
27
+ .header-icon-show {
28
+ display: block;
29
+ }
30
+ }
31
+
32
+ .collapsable-container {
33
+ height: 0;
34
+
35
+ overflow: hidden;
36
+ transition: height 0.3s ease-in-out;
37
+ }
38
+
39
+ .collapsable-container.active {
40
+ height: auto;
41
+ min-height: 100px;
42
+ }
43
+
44
+ .slider-container {
45
+ width: 100%;
46
+ display: flex;
47
+ justify-content: space-between;
48
+
49
+ input {
50
+ min-width: 70%;
51
+ }
52
+ }
53
+
54
+ .buttons {
55
+ display: flex;
56
+ gap: 10px;
57
+ justify-content: space-between;
58
+ align-items: center;
59
+
60
+ .button-configure {
61
+ @include primary-button;
62
+ }
63
+ .button-remove {
64
+ @include secondary-button;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,4 @@
1
+ :root {
2
+ --co-model-list-item-border-color: #eee;
3
+ --co-model-list-item-border-radius: 10px;
4
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-model-list-item-theme') {
4
+ .co-model-list-item {
5
+
6
+ }
7
+ }
8
+
9
+
10
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,30 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-photo-editor-layout') {
4
+ .co-photo-editor {
5
+ .photo-editor-dialog {
6
+ .photo-editor-container {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ box-sizing: border-box;
10
+ gap: 20px;
11
+
12
+ .photo-editor-canvas {
13
+ width: 70%;
14
+ height: auto;
15
+ }
16
+
17
+ .enhancer-container {
18
+ width: 30%;
19
+ }
20
+ }
21
+
22
+ .photo-editor-upload {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ min-height: 100vh;
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,8 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-photo-editor-theme') {
4
+ .co-photo-editor {
5
+
6
+ }
7
+ }
8
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,35 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-prepare-starting-image-layout') {
4
+ .co-prepare-starting-image {
5
+ .prepare-starting-image-container {
6
+ display: flex;
7
+ gap: 20px;
8
+
9
+ .prepare-starting-image-canvas-container {
10
+ width: 70%;
11
+ }
12
+
13
+ .prepare-info-container {
14
+ width: 30%;
15
+
16
+ .info-container {
17
+ box-sizing: border-box;
18
+ padding: 10px;
19
+
20
+ .header-icon-container {
21
+ margin-bottom: 10px;
22
+ display: flex;
23
+ align-items: center;
24
+ gap: 10px;
25
+ }
26
+ }
27
+
28
+ .co-button.disabled {
29
+ cursor: not-allowed;
30
+ opacity: 0.5;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,37 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-prepare-starting-image-theme') {
4
+ .co-prepare-starting-image {
5
+ .prepare-starting-image-container {
6
+ .prepare-info-container {
7
+ .info-container {
8
+ .header-icon-container {
9
+ margin-bottom: 10px;
10
+ h2 {
11
+ font-size: var(--co-inphoto-font-size-head);
12
+ color: var(--co-inphoto-color-dark);
13
+ }
14
+ }
15
+ p {
16
+ font-size: var(--co-inphoto-font-size-label);
17
+ color: var(--co-inphoto-color-dark);
18
+ }
19
+ }
20
+
21
+ .action-button {
22
+ margin: 20px 0;
23
+ @include primary-button;
24
+ }
25
+
26
+ .process-button {
27
+ margin: 20px 0;
28
+ @include secondary-button;
29
+ }
30
+
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+
37
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,38 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-process-loader-layout') {
4
+ .co-process-loader {
5
+
6
+ .loader-wrapper {
7
+ position: fixed;
8
+ inset: 0;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ z-index: 50;
13
+ }
14
+
15
+ .loader-container {
16
+ text-align: center;
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ width: 250px;
21
+ padding: 20px;
22
+ border-radius: 10px;
23
+
24
+ .loader-estimated-time {
25
+ span {
26
+ font-size: var(--co-inphoto-font-size-label);
27
+ margin-right: 5px;
28
+ }
29
+ }
30
+ }
31
+
32
+ .percentage {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,27 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-process-loader-theme') {
4
+ .co-process-loader {
5
+
6
+ .loader-wrapper {
7
+ background: var(--co-inphoto-loader-background-dark);
8
+ }
9
+
10
+ .loader-container {
11
+ background: #fff;
12
+ }
13
+
14
+ .percentage {
15
+ font-size: var(--co-inphoto-font-size-sub-head);
16
+ font-weight: 600;
17
+ }
18
+
19
+ p {
20
+ margin-top: 16px;
21
+ font-size: var(--co-inphoto-font-size-base);
22
+ }
23
+ }
24
+ }
25
+
26
+
27
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,40 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-side-bar-menu-layout') {
4
+ .co-side-bar-menu {
5
+ .lib-menu-bar {
6
+ position: absolute;
7
+ // todo revert tot 1
8
+ z-index: 5;
9
+ width: 50px;
10
+ top: 0;
11
+ left: 0;
12
+ height: 100vh;
13
+
14
+ .lib-menu-bar-item {
15
+ width: 50px;
16
+ height: 50px;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ cursor: pointer;
21
+ position: relative;
22
+
23
+ .lib-menu-tooltip {
24
+ position: absolute;
25
+ top: 0;
26
+ left: -250px;
27
+ box-sizing: border-box;
28
+ padding: 0 10px;
29
+ line-height: 50px;
30
+ }
31
+
32
+ &:hover {
33
+ .lib-menu-tooltip {
34
+ left: 50px;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,19 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-side-bar-menu-theme') {
4
+ .co-side-bar-menu {
5
+ .lib-menu-bar {
6
+ background-color: var(--co-inphoto-loader-background-dark);
7
+
8
+ .lib-menu-bar-item {
9
+ .lib-menu-tooltip {
10
+ background-color: var(--co-inphoto-loader-background-dark);
11
+ color: var(--co-inphoto-color-light);
12
+ }
13
+
14
+ @include default-icon(40px, 40px, #fff);
15
+ }
16
+ }
17
+ }
18
+ }
19
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,43 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-step-menu-layout') {
4
+ .co-step-menu {
5
+ .step-menu-container {
6
+ width: 100%;
7
+ max-width: 1200px;
8
+ margin: 20px auto;
9
+ display: flex;
10
+ gap: 50px;
11
+ justify-content: space-between;
12
+ justify-items: center;
13
+
14
+ .step-menu-item {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: 15px;
18
+ cursor: pointer;
19
+
20
+ .step-menu-item-number {
21
+ height: 40px;
22
+ width: 40px;
23
+ border-radius: 50%;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ }
28
+ }
29
+
30
+ .step-disabled {
31
+ pointer-events: none;
32
+ opacity: 0.5;
33
+ }
34
+
35
+ .step-finished {
36
+ .step-menu-item-finished {
37
+ box-sizing: border-box;
38
+ padding: 5px;
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --co-inphoto-step-menu-number-background-color: #f0f0f0;
3
+ --co-inphoto-step-menu-number-color: #fff;
4
+ --co-inphoto-step-menu-active-background-color: #3f51b5;
5
+ --co-inphoto-step-menu-finished-background-color: #4caf50;
6
+ --co-inphoto-step-menu-default-icon-color: #000;
7
+ }