@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,15 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-back-next-buttons-layout') {
4
+ .co-back-next-buttons {
5
+ .info-navigation-buttons {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ }
9
+
10
+ .co-button.disabled {
11
+ cursor: not-allowed;
12
+ opacity: 0.5;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,18 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-back-next-buttons-theme') {
4
+ .co-back-next-buttons {
5
+ .info-navigation-buttons {
6
+ .back-button {
7
+ @include secondary-button;
8
+ }
9
+
10
+ .next-button, .generate-button {
11
+ @include primary-button;
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+
18
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,84 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('cco-catalog-layout') {
4
+ .co-catalog {
5
+ .catalog-dialog {
6
+ width: 100vw;
7
+ height: 100vh;
8
+ top: 0;
9
+ left: 0;
10
+ right: 0;
11
+ bottom: 0;
12
+ position: absolute;
13
+ z-index: 10;
14
+ overflow: hidden;
15
+ box-sizing: border-box;
16
+
17
+ .catalog-container {
18
+ background-color: var(--co-inphoto--dialog-background-color);
19
+ width: 90vw;
20
+ height: 90vh;
21
+ max-height: 1000px;
22
+ margin: 5vh auto;
23
+ border-radius: 10px;
24
+ overflow: hidden;
25
+
26
+ .catalog-dialog-wrapper {
27
+ display: flex;
28
+ align-items: center;
29
+ padding: 10px;
30
+
31
+ .back-button {
32
+ display: flex;
33
+ align-items: center;
34
+ cursor: pointer;
35
+ }
36
+
37
+ .close-button {
38
+ display: flex;
39
+ align-items: center;
40
+ cursor: pointer;
41
+ margin-left: auto;
42
+ }
43
+ }
44
+
45
+ .catalog-body {
46
+ box-sizing: border-box;
47
+ padding: 20px;
48
+ overflow-y: scroll;
49
+ max-height: 100%;
50
+
51
+ .catalog-tile-wrapper {
52
+ display: grid;
53
+ grid-template-columns: repeat(auto-fit, minmax(10px, 150px));
54
+ overflow: hidden;
55
+ padding: 0;
56
+ grid-gap: 10px;
57
+
58
+ .catalog-tile {
59
+ cursor: pointer;
60
+ position: relative;
61
+ display: flex;
62
+ flex-direction: column;
63
+ height: 100%;
64
+ width: 100%;
65
+ min-height: 150px;
66
+
67
+ p {
68
+ display: block;
69
+ text-overflow: ellipsis;
70
+ overflow: hidden;
71
+ white-space: nowrap;
72
+ font-size: var(--ca-font-size);
73
+ font-weight: bold;
74
+ text-shadow: none;
75
+ text-transform: capitalize;
76
+ margin: 10px 0;
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --co-photo-editor-background-color: #ffffff;
3
+ }
@@ -0,0 +1,17 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-catalog-theme') {
4
+ .co-catalog {
5
+ .catalog-dialog {
6
+ background-color: var(--co-inphoto-loader-background-dark);
7
+ .catalog-body {
8
+ .catalog-tile-wrapper {
9
+ .catalog-tile {
10
+ @include default-icon(150px, 150px, var(--co-inphoto-icon-color));
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,87 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-edit-canvas-layout') {
4
+ .co-edit-canvas {
5
+ .edit-canvas-container {
6
+ position: relative;
7
+ max-height: 100vh;
8
+ overflow: scroll;
9
+
10
+ .toolbar {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ width: 100%;
15
+ max-width: 120px;
16
+ position: absolute;
17
+ top: 20px;
18
+ left: calc(50% - 60px);
19
+ z-index: 1;
20
+ border-radius: 10px;
21
+
22
+ .toolbar-item {
23
+ border-radius: 10px;
24
+ cursor: pointer;
25
+ box-sizing: border-box;
26
+ padding: 10px;
27
+
28
+ .hidden-input {
29
+ display: none;
30
+ }
31
+
32
+ .toolbar-item-option {
33
+ position: absolute;
34
+ top: 50px;
35
+ box-sizing: border-box;
36
+ padding: 10px;
37
+ left: 0;
38
+ border-radius: 10px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .canvas-container {
44
+ position: relative;
45
+
46
+ canvas {
47
+ max-width: 100%;
48
+ }
49
+
50
+ canvas.object-picker {
51
+ cursor: crosshair;
52
+ }
53
+
54
+ .close-canvas-button, .open-canvas-button {
55
+ position: absolute;
56
+ cursor: pointer;
57
+ }
58
+
59
+ .close-canvas-button {
60
+ top: 20px;
61
+ right: 20px;
62
+ }
63
+
64
+ .open-canvas-button {
65
+ bottom: 20px;
66
+ right: 20px;
67
+ }
68
+ }
69
+
70
+ .canvas-container.canvas-full-screen {
71
+ position: fixed;
72
+ top: 0;
73
+ left: 0;
74
+ width: 100%;
75
+ height: 100%;
76
+ z-index: 1000;
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ overflow: hidden;
81
+ canvas {
82
+ max-height: 100%;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,33 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-edit-canvas-theme') {
4
+ .co-edit-canvas {
5
+
6
+ .edit-canvas-container {
7
+ .toolbar {
8
+ background-color: var(--co-inphoto-loader-background-light);
9
+
10
+ .toolbar-item {
11
+ .toolbar-item-option {
12
+ background: #fff;
13
+ }
14
+
15
+ &:hover {
16
+ background-color: rgba(255, 255, 255, 1);
17
+ }
18
+ }
19
+ }
20
+
21
+ .canvas-container {
22
+ .close-canvas-button, .open-canvas-button {
23
+ @include default-icon(30px, 30px, #fff);
24
+ }
25
+ }
26
+
27
+ .canvas-container.canvas-full-screen {
28
+ background-color: var(--co-inphoto-loader-background-dark);
29
+ }
30
+ }
31
+ }
32
+ }
33
+
@@ -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-error-dialog-layout') {
4
+ .co-error-dialog {
5
+
6
+ .error-dialog {
7
+ position: fixed;
8
+ inset: 0;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ background:var(--co-inphoto-loader-background-dark);
13
+ z-index: 120;
14
+
15
+ .error-dialog-container {
16
+ background: #fff;
17
+ padding: 20px;
18
+ border-radius: 10px;
19
+ max-width: 550px;
20
+ width: 100%;
21
+
22
+ .error-dialog-header {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ margin-bottom: 5px;
27
+
28
+ h3 {
29
+ margin: 0;
30
+ }
31
+
32
+ .co-button {
33
+ cursor: pointer;
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ }
40
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-error-dialog-theme') {
4
+ .co-error-dialog {
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,38 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-layout') {
4
+ .co-image-enhancer {
5
+ .image-enhancer-container {
6
+ width: 100%;
7
+
8
+ .header {
9
+ .header-icon-container {
10
+ margin-bottom: 10px;
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 10px;
14
+ }
15
+ }
16
+
17
+ .tabs {
18
+ align-items: center;
19
+ display: grid;
20
+ grid-template-columns: repeat(3, 1fr);
21
+ border-radius: 5px;
22
+
23
+ .instruction-dialog {
24
+ font-size: var(--font-size-small);
25
+ }
26
+
27
+ .tab-button {
28
+ box-sizing: border-box;
29
+ padding: 10px;
30
+ cursor: pointer;
31
+ height: 100%;
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --co-inphoto-tab-header-font-size: 12px;
3
+ --co-inphoto-tab-background-color: #f0f0f0;
4
+ --co-inphoto-tab-border-color: #f0f0f0;
5
+ --co-inphoto-tab-active-background-color: #ffffff;
6
+ --co-inphoto-tab-active-color: #3f51b5;
7
+ }
@@ -0,0 +1,40 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-theme') {
4
+ .co-image-enhancer {
5
+ .image-enhancer-container {
6
+ .header {
7
+ .header-icon-container {
8
+ margin-bottom: 10px;
9
+ h2 {
10
+ font-size: var(--co-inphoto-font-size-head);
11
+ color: var(--co-inphoto-color-dark);
12
+ }
13
+ }
14
+ }
15
+
16
+ .tabs {
17
+ background: var(--co-inphoto-tab-background-color);
18
+ border-radius: 5px;
19
+
20
+ .tab-button {
21
+ border-radius: 5px;
22
+ background: var(--co-inphoto-tab-background-color);
23
+ color: var(--co-inphoto-color-dark);
24
+ font-size: var(--co-inphoto-tab-header-font-size);
25
+ border: 2px solid var(--co-inphoto-tab-border-color);
26
+
27
+ &:hover {
28
+ background: var(--co-inphoto-tab-active-background-color);
29
+ }
30
+
31
+ &.active {
32
+ background: var(--co-inphoto-tab-active-background-color);
33
+ color: var(--co-inphoto-tab-active-color);
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,15 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-style-layout') {
4
+ .co-image-enhancer-style {
5
+ .form-part-container, .custom-prompt-container {
6
+ margin: 20px auto;
7
+ }
8
+
9
+ .custom-prompt-container {
10
+ .co-input-checkbox {
11
+ margin-bottom: 10px;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-style-theme') {
4
+ .co-image-enhancer-style {
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,18 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-upload-layout') {
4
+ .co-image-enhancer-upload {
5
+
6
+ .image-enhancer-upload {
7
+ box-sizing: border-box;
8
+ padding: 20px 10px;
9
+
10
+ .custom-prompt-container {
11
+ margin: 20px 0;
12
+ .co-input-checkbox {
13
+ margin-bottom: 10px;
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,10 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-enhancer-upload-theme') {
4
+ .co-image-enhancer-upload {
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,46 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-history-layout') {
4
+ .co-image-history {
5
+ .image-history-container {
6
+ box-sizing: border-box;
7
+ padding: 20px;
8
+
9
+ .image-history-header {
10
+
11
+ }
12
+
13
+ .image-history-tiles {
14
+ width: 100%;
15
+ display: grid;
16
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
17
+ gap: 10px;
18
+ }
19
+ }
20
+
21
+ .larger-image-dialog {
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+ width: 100%;
26
+ height: 100%;
27
+ z-index: 1000;
28
+ display: flex;
29
+ justify-content: center;
30
+ align-items: center;
31
+
32
+ .close-dialog-button {
33
+ position: absolute;
34
+ top: 20px;
35
+ right: 20px;
36
+ cursor: pointer;
37
+ }
38
+
39
+ .large-image {
40
+ max-width: 90%;
41
+ max-height: 90%;
42
+ object-fit: contain;
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,16 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-history-theme') {
4
+ .co-image-history {
5
+ .larger-image-dialog {
6
+ background-color: var(--co-inphoto-loader-background-dark);
7
+
8
+ .close-dialog-button {
9
+ @include default-icon(30px, 30px, #fff);
10
+ }
11
+ }
12
+ }
13
+ }
14
+
15
+
16
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -0,0 +1,53 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-history-tile-layout') {
4
+ .co-image-history-tile {
5
+
6
+ .image-history-item {
7
+ width: 100%;
8
+ height: 100%;
9
+ max-height: 250px;
10
+ position: relative;
11
+
12
+ .image-history-hover {
13
+ visibility: hidden;
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ border-radius: 10px;
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ justify-content: space-around;
24
+
25
+ .image-history-item-zoom {
26
+ cursor: pointer;
27
+ }
28
+
29
+ .tile-toolbar {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-around;
33
+ gap: 25px;
34
+ cursor: pointer;
35
+ }
36
+
37
+ }
38
+
39
+ &:hover {
40
+ .image-history-hover {
41
+ visibility: visible;
42
+ }
43
+ }
44
+
45
+ img {
46
+ width: 100%;
47
+ height: 100%;
48
+ object-fit: cover;
49
+ border-radius: 10px;
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,27 @@
1
+ @import "../../../style/mixin.scss";
2
+
3
+ @include export-module('co-image-history-tile-theme') {
4
+
5
+ .co-image-history-tile {
6
+ .image-history-item {
7
+ .image-history-hover {
8
+ background-color: var(--co-inphoto-loader-background-dark);
9
+
10
+ .co-button {
11
+ background: none;
12
+ }
13
+
14
+ .image-history-item-zoom {
15
+ @include default-icon(40px, 40px, #fff)
16
+ }
17
+
18
+ .tile-toolbar {
19
+ @include default-icon(40px, 40px, #fff);
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+
27
+