@c10t/nice-component-library 0.0.1-beta

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 (145) hide show
  1. package/components/base/base-add-edit.component.d.ts +28 -0
  2. package/components/base/base-search.component.d.ts +62 -0
  3. package/components/base/base-table.component.d.ts +16 -0
  4. package/components/cva-breadcrumb.component.d.ts +14 -0
  5. package/components/cva-counter-input.component.d.ts +42 -0
  6. package/components/cva-custom-dialog.component.d.ts +30 -0
  7. package/components/cva-input.component.d.ts +60 -0
  8. package/components/cva-loader.component.d.ts +9 -0
  9. package/components/cva-multi-select-autocomplete.d.ts +64 -0
  10. package/components/cva-quill-editor.component.d.ts +66 -0
  11. package/components/cva-radiobutton.component.d.ts +32 -0
  12. package/components/cva-tree.component.d.ts +38 -0
  13. package/components/datepicker/cva-date-picker.component.d.ts +43 -0
  14. package/components/datepicker/cva-range-date-picker.component.d.ts +64 -0
  15. package/components/table/cva-header-expand-button.component.d.ts +22 -0
  16. package/components/table/cva-smart-table.component.d.ts +72 -0
  17. package/components/table/cva-table.component.d.ts +62 -0
  18. package/components/tree/cva-flat-tree-node-left.component.d.ts +22 -0
  19. package/components/tree/cva-flat-tree-node-right.component.d.ts +18 -0
  20. package/components/tree/cva-flat-tree.component.d.ts +96 -0
  21. package/components/upload/cva-dialog-import-file.component.d.ts +30 -0
  22. package/components/upload/cva-multi-upload-img.component.d.ts +24 -0
  23. package/components/upload/cva-multi-upload.component.d.ts +30 -0
  24. package/components/upload/cva-upload-file.component.d.ts +70 -0
  25. package/directives/drag-drop.directive.d.ts +12 -0
  26. package/directives/format-datepicker.d.ts +8 -0
  27. package/directives/format-input.directive.d.ts +29 -0
  28. package/directives/multi-language-table-paginator.d.ts +12 -0
  29. package/directives/pattern.directive.d.ts +16 -0
  30. package/directives/style-paginator.directive.d.ts +31 -0
  31. package/enums/action-type.enum.d.ts +5 -0
  32. package/enums/align.enum.d.ts +5 -0
  33. package/enums/column-type.enum.d.ts +14 -0
  34. package/enums/dialog-type.enum.d.ts +5 -0
  35. package/enums/file-type.enum.d.ts +13 -0
  36. package/enums/icon-type.enum.d.ts +4 -0
  37. package/fesm2022/c10t-nice-component-library.mjs +9024 -0
  38. package/fesm2022/c10t-nice-component-library.mjs.map +1 -0
  39. package/index.d.ts +75 -0
  40. package/models/base.model.d.ts +5 -0
  41. package/models/button-click.event.d.ts +6 -0
  42. package/models/components/bread-crumb.model.d.ts +5 -0
  43. package/models/components/button.model.d.ts +16 -0
  44. package/models/components/checkbox.model.d.ts +7 -0
  45. package/models/components/column.model.d.ts +37 -0
  46. package/models/components/custom-dialog-data-config.model.d.ts +16 -0
  47. package/models/components/dialog-import-file-config.model.d.ts +9 -0
  48. package/models/components/flat-tree-config.model.d.ts +5 -0
  49. package/models/components/flat-tree-node.model.d.ts +16 -0
  50. package/models/components/flat-tree.model.d.ts +7 -0
  51. package/models/components/range-date-picker.model.d.ts +7 -0
  52. package/models/components/select.model.d.ts +7 -0
  53. package/models/components/table-footer.model.d.ts +10 -0
  54. package/models/components/table-paging-request.model.d.ts +6 -0
  55. package/models/components/table-paging-response.model.d.ts +6 -0
  56. package/models/components/upload.model.d.ts +11 -0
  57. package/models/menu.model.d.ts +10 -0
  58. package/models/navigator.model.d.ts +10 -0
  59. package/models/nice-component-library.config.d.ts +13 -0
  60. package/models/oauth/authority.d.ts +3 -0
  61. package/models/oauth/oAuth2AuthenticationDto.d.ts +7 -0
  62. package/models/oauth/principal.d.ts +10 -0
  63. package/models/oauth/user.authentication.d.ts +4 -0
  64. package/models/permission.model.d.ts +7 -0
  65. package/models/role.model.d.ts +12 -0
  66. package/models/ui.state.d.ts +5 -0
  67. package/modules/angular-material.module.d.ts +45 -0
  68. package/modules/nice-component-library.module.d.ts +46 -0
  69. package/package.json +59 -0
  70. package/pipes/secure.pipe.d.ts +13 -0
  71. package/services/MultiTranslateHttpLoader.d.ts +13 -0
  72. package/services/api.service.d.ts +42 -0
  73. package/services/authorities.resolver.service.d.ts +18 -0
  74. package/services/authorities.service.d.ts +12 -0
  75. package/services/date-util.service.d.ts +23 -0
  76. package/services/flat.tree.service.d.ts +7 -0
  77. package/services/form-state.service.d.ts +9 -0
  78. package/services/jsog.http.interceptor.d.ts +11 -0
  79. package/services/loader.interceptor.d.ts +13 -0
  80. package/services/loader.service.d.ts +7 -0
  81. package/services/ns-validator.service.d.ts +48 -0
  82. package/services/singleton.translate.service.d.ts +8 -0
  83. package/services/table.service.d.ts +24 -0
  84. package/services/utils.service.d.ts +47 -0
  85. package/src/styles/base.theme.scss +3112 -0
  86. package/src/styles/components/cva-breadcrumb.scss +38 -0
  87. package/src/styles/components/cva-counter-input.scss +45 -0
  88. package/src/styles/components/cva-custom-dialog.scss +7 -0
  89. package/src/styles/components/cva-date-picker.scss +16 -0
  90. package/src/styles/components/cva-date-range-picker.scss +22 -0
  91. package/src/styles/components/cva-flat-tree.scss +171 -0
  92. package/src/styles/components/cva-input.scss +120 -0
  93. package/src/styles/components/cva-loader.scss +36 -0
  94. package/src/styles/components/cva-multi-select-autocomplete.scss +128 -0
  95. package/src/styles/components/cva-multi-upload.scss +145 -0
  96. package/src/styles/components/cva-radio-button.scss +58 -0
  97. package/src/styles/components/cva-smart-table.scss +129 -0
  98. package/src/styles/components/cva-table.scss +98 -0
  99. package/src/styles/components/cva-tree.scss +76 -0
  100. package/src/styles/fonts/Comfortaa-Medium.ttf +0 -0
  101. package/src/styles/fonts/Exo-Regular.ttf +0 -0
  102. package/src/styles/fonts/Mali-Medium.ttf +0 -0
  103. package/src/styles/fonts/VarelaRound-Regular.ttf +0 -0
  104. package/src/styles/fonts/fa-brands-400.eot +0 -0
  105. package/src/styles/fonts/fa-brands-400.svg +3570 -0
  106. package/src/styles/fonts/fa-brands-400.ttf +0 -0
  107. package/src/styles/fonts/fa-brands-400.woff +0 -0
  108. package/src/styles/fonts/fa-brands-400.woff2 +0 -0
  109. package/src/styles/fonts/fa-duotone-900.eot +0 -0
  110. package/src/styles/fonts/fa-duotone-900.svg +15055 -0
  111. package/src/styles/fonts/fa-duotone-900.ttf +0 -0
  112. package/src/styles/fonts/fa-duotone-900.woff +0 -0
  113. package/src/styles/fonts/fa-duotone-900.woff2 +0 -0
  114. package/src/styles/fonts/fa-light-300.eot +0 -0
  115. package/src/styles/fonts/fa-light-300.svg +12330 -0
  116. package/src/styles/fonts/fa-light-300.ttf +0 -0
  117. package/src/styles/fonts/fa-light-300.woff +0 -0
  118. package/src/styles/fonts/fa-light-300.woff2 +0 -0
  119. package/src/styles/fonts/fa-regular-400.eot +0 -0
  120. package/src/styles/fonts/fa-regular-400.svg +11256 -0
  121. package/src/styles/fonts/fa-regular-400.ttf +0 -0
  122. package/src/styles/fonts/fa-regular-400.woff +0 -0
  123. package/src/styles/fonts/fa-regular-400.woff2 +0 -0
  124. package/src/styles/fonts/fa-solid-900.eot +0 -0
  125. package/src/styles/fonts/fa-solid-900.svg +9588 -0
  126. package/src/styles/fonts/fa-solid-900.ttf +0 -0
  127. package/src/styles/fonts/fa-solid-900.woff +0 -0
  128. package/src/styles/fonts/fa-solid-900.woff2 +0 -0
  129. package/src/styles/fonts/fontawesome-webfont.eot +0 -0
  130. package/src/styles/fonts/fontawesome-webfont.svg +2671 -0
  131. package/src/styles/fonts/fontawesome-webfont.ttf +0 -0
  132. package/src/styles/fonts/fontawesome-webfont.woff +0 -0
  133. package/src/styles/fonts/fontawesome-webfont.woff2 +0 -0
  134. package/src/styles/fonts/glyphter.eot +0 -0
  135. package/src/styles/fonts/glyphter.svg +1 -0
  136. package/src/styles/fonts/glyphter.ttf +0 -0
  137. package/src/styles/fonts/glyphter.woff +0 -0
  138. package/src/styles/themes/athena.theme.scss +1684 -0
  139. package/src/styles/themes/button-default.style.scss +961 -0
  140. package/src/styles/themes/default.theme.scss +939 -0
  141. package/src/styles/themes/fonts-awesome.scss +12756 -0
  142. package/src/styles/themes/glyphter.scss +27 -0
  143. package/src/styles/themes/hera.theme.scss +1600 -0
  144. package/src/styles/themes/poseidon.theme.scss +1639 -0
  145. package/src/styles/themes/zeus.theme.scss +1655 -0
@@ -0,0 +1,38 @@
1
+ .cva-breadcrumb {
2
+ margin: 0;
3
+ display: flex;
4
+ height: 2rem;
5
+ align-items: center;
6
+
7
+ .breadcrumbList {
8
+ margin-left: -1.5rem;
9
+
10
+ li {
11
+ display: inline;
12
+
13
+ &:first-child {
14
+ display: none;
15
+ }
16
+
17
+ a {
18
+ text-decoration: none;
19
+ font-weight: normal;
20
+ }
21
+
22
+ a:hover {
23
+ text-decoration-line: underline;
24
+ }
25
+
26
+ .separator {
27
+ }
28
+
29
+ .currentAction {
30
+ font-weight: normal;
31
+ }
32
+ }
33
+
34
+ }
35
+
36
+
37
+ }
38
+
@@ -0,0 +1,45 @@
1
+ .cva-counter-input {
2
+ width: 100%;
3
+
4
+ .btnCounterInput {
5
+ width: 20px;
6
+ height: 20px;
7
+ line-height: 14px;
8
+ font-size: 14px;
9
+ }
10
+
11
+ .btnCounterInput span.mat-button-wrapper {
12
+ line-height: 14px;
13
+ padding: 0;
14
+ }
15
+
16
+ .btnCounterInput span.mat-button-wrapper mat-icon {
17
+ font-size: 14px;
18
+ padding: 0px;
19
+ margin: 4px 0px 0px -2px;
20
+ }
21
+
22
+ .required-label-outside {
23
+ color: red;
24
+ }
25
+
26
+ mat-form-field {
27
+
28
+ .input-area {
29
+ display: flex;
30
+ text-align: right
31
+ }
32
+
33
+ .input-suffix {
34
+ margin-left: 0.2rem;
35
+ color: grey
36
+ }
37
+
38
+ // hide number scrolling left type number
39
+ //input[type=number]::-webkit-inner-spin-button,
40
+ //input[type=number]::-webkit-outer-spin-button {
41
+ // -webkit-appearance: none;
42
+ // margin: 0;
43
+ //}
44
+ }
45
+ }
@@ -0,0 +1,7 @@
1
+ .hint-outside {
2
+ mat-form-field.input-confirm-dialog {
3
+ .mat-form-field-subscript-wrapper {
4
+ top: initial;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,16 @@
1
+ .cva-date-picker {
2
+ width: 100%;
3
+
4
+ .btnDatePicker {
5
+ min-width: 33px;
6
+ padding: 0px;
7
+ }
8
+
9
+ .required-label-outside{
10
+ color: red;
11
+ }
12
+
13
+ mat-form-field{
14
+
15
+ }
16
+ }
@@ -0,0 +1,22 @@
1
+ .cva-range-date-picker {
2
+ width: 100%;
3
+
4
+ .btnDatePicker {
5
+ min-width: 33px;
6
+ padding: 0px;
7
+ }
8
+
9
+ .required-label-outside {
10
+ color: red;
11
+ }
12
+
13
+ mat-form-field {
14
+ .mat-date-range-input-mirror {
15
+ width: 90px;
16
+ }
17
+
18
+ .mat-date-range-input-start-wrapper{
19
+ width: 5.5rem;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,171 @@
1
+ cva-flat-tree, cva-flat-tree-test {
2
+ margin-bottom: 15px;
3
+
4
+ .mat-form-field-wrapper {
5
+ margin: 0 !important;
6
+ padding: 0 !important;
7
+ }
8
+
9
+ cva-flat-tree-node-left,
10
+ cva-flat-tree-node-right,
11
+ cva-flat-tree-node-left-test,
12
+ cva-flat-tree-node-right-test,
13
+ mat-tree-node {
14
+ min-height: 48px;
15
+ font-size: 14px;
16
+ display: flex;
17
+ flex-direction: row;
18
+ place-content: space-between;
19
+ align-items: center;
20
+
21
+ .label-area {
22
+ button.mat-icon-button {
23
+ width: 15px;
24
+ margin-right: 10px;
25
+ }
26
+ }
27
+
28
+ mat-checkbox {
29
+ .mat-checkbox-ripple {
30
+ width: initial !important;
31
+ height: initial !important;
32
+ }
33
+
34
+ &.mat-checkbox-indeterminate {
35
+ .mat-checkbox-background {
36
+ background: #4CD964 !important;
37
+ }
38
+ }
39
+ }
40
+
41
+ &[aria-level="0"], &[aria-level="1"] {
42
+ font-weight: bold;
43
+ }
44
+ }
45
+
46
+ .tree-area {
47
+ border: 1px solid #E9E9E9;
48
+ border-radius: 12px;
49
+
50
+ .choose-area {
51
+ padding: 20px 10px 20px 20px;
52
+ border-right: 1px solid #E9E9E9;
53
+
54
+ //&.hiddenTree {
55
+ // display: none !important;
56
+ //}
57
+
58
+ //.hideChooseNode {
59
+ // display: none !important;
60
+ //}
61
+
62
+ .header-choose-area {
63
+ margin-right: 10px;
64
+
65
+ .title-choose-tree {
66
+ width: 0;
67
+ }
68
+ }
69
+
70
+
71
+ }
72
+
73
+ .selected-area {
74
+ padding: 20px 10px 20px 20px;
75
+
76
+ &.hiddenTree {
77
+ padding: 0 20px;
78
+ max-width: 100% !important;
79
+
80
+ //cdk-virtual-scroll-viewport {
81
+ // display: none !important;
82
+ //}
83
+ }
84
+
85
+ //.hideSelectedNode {
86
+ // display: none !important;
87
+ //}
88
+
89
+ .header-area {
90
+ display: flex;
91
+ place-content: space-between;
92
+ align-items: center;
93
+ height: 48px;
94
+ margin-right: 10px;
95
+
96
+ label {
97
+ font-weight: bold;
98
+ max-height: 20px;
99
+ //max-width: 150px;
100
+ overflow: hidden;
101
+ }
102
+
103
+ .collapse-expand-all {
104
+ max-height: 20px;
105
+ max-width: 100px;
106
+ overflow: hidden;
107
+
108
+ i {
109
+ margin-left: 5px;
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ cdk-virtual-scroll-viewport {
116
+ position: initial;
117
+ contain: initial;
118
+ transform: initial;
119
+ padding-right: 10px;
120
+
121
+ .cdk-virtual-scroll-content-wrapper {
122
+ position: initial;
123
+
124
+ //.mat-tree {
125
+ // margin-right: 10px;
126
+ //}
127
+ }
128
+ }
129
+ }
130
+
131
+ div {
132
+ .required-label-outside {
133
+ color: red;
134
+ }
135
+
136
+ .isClickDiv:hover {
137
+ cursor: pointer;
138
+ }
139
+
140
+ .collapse-expand-all:hover {
141
+ cursor: pointer;
142
+ }
143
+ }
144
+
145
+ mat-hint {
146
+ color: red;
147
+ }
148
+
149
+ &.view_detail {
150
+ .cva-flat-tree {
151
+ display: block !important;
152
+
153
+ mat-label {
154
+ .label {
155
+ font-weight: bold;
156
+ height: auto;
157
+ margin-bottom: 8px;
158
+ }
159
+ }
160
+ }
161
+
162
+ @media screen and (max-width: 767px) {
163
+ margin-bottom: 20px;
164
+ }
165
+
166
+ cdk-virtual-scroll-viewport {
167
+ height: 140px !important;
168
+ margin-bottom: 15px;
169
+ }
170
+ }
171
+ }
@@ -0,0 +1,120 @@
1
+ cva-input {
2
+ width: 100%;
3
+
4
+ .required-label-outside {
5
+ color: red;
6
+ }
7
+
8
+ mat-form-field {
9
+ cursor: text;
10
+
11
+ .mat-form-field-suffix {
12
+ .input-suffix {
13
+ color: grey;
14
+ }
15
+ }
16
+
17
+ &.cva-input-multiline {
18
+ label {
19
+ position: absolute;
20
+ top: 15px !important;
21
+ }
22
+ }
23
+ }
24
+
25
+ .text_area {
26
+ textarea {
27
+ min-height: 56px !important;
28
+ max-height: 56px !important;
29
+ }
30
+
31
+ mat-form-field:not(.mat-form-field-should-float) .mat-form-field-label-wrapper label {
32
+ margin: 5px 0 0 5px;;
33
+ }
34
+
35
+ .mat-form-field-underline {
36
+ display: none;
37
+ }
38
+
39
+ mat-form-field {
40
+ cursor: text;
41
+
42
+ .mat-form-field-suffix {
43
+ position: absolute;
44
+ width: 100%;
45
+ height: 100%;
46
+
47
+ .input-suffix {
48
+ color: grey;
49
+ position: absolute;
50
+ bottom: 10px;
51
+ right: 10px;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ &.equal_height {
58
+ height: 100%;
59
+
60
+ .cva-input {
61
+ height: 100%;
62
+
63
+ mat-form-field {
64
+ .mat-form-field-wrapper {
65
+ height: 100%;
66
+
67
+ .mat-form-field-flex {
68
+ height: 100%;
69
+ padding: 14px 10px !important;
70
+ flex-direction: column;
71
+
72
+ .mat-form-field-infix {
73
+ padding: 0;
74
+
75
+ textarea {
76
+ height: 100% !important;
77
+ max-height: 100% !important;
78
+ }
79
+ }
80
+
81
+ .mat-form-field-suffix {
82
+ position: relative;
83
+ width: 100%;
84
+ height: initial;
85
+ text-align: right;
86
+
87
+ .input-suffix {
88
+ position: initial !important;
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ .mat-form-field-infix {
97
+ height: 75%;
98
+ }
99
+ }
100
+ }
101
+
102
+ cva-input-view {
103
+ &.reject {
104
+ .cva-input-view {
105
+ display: contents;
106
+
107
+ .field_name {
108
+ color: #FF645C;
109
+ }
110
+
111
+ .field_content {
112
+ background-color: #FFF0EF;
113
+ border-radius: 8px;
114
+ padding: 10px;
115
+ margin-bottom: 15px;
116
+ height: 100%;
117
+ }
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,36 @@
1
+ .progress-loader {
2
+ position: absolute;
3
+ top: 0px;
4
+ left: 0px;
5
+ width: 100%;
6
+ height: 100vh;
7
+ }
8
+
9
+ .progress-loader img {
10
+ max-width: 150px;
11
+ max-height: 150px;
12
+ position: fixed;
13
+ top: 50%;
14
+ left: 50%;
15
+ margin-right: -50%;
16
+ transform: translate(-50%, -50%);
17
+ z-index: 10000;
18
+ }
19
+
20
+ .loading-spinner {
21
+ background-color: darkgrey;
22
+ opacity: 0.5;
23
+ position: fixed;
24
+ top: 0px;
25
+ left: 0px;
26
+ z-index: 9999;
27
+ width: 100%;
28
+ height: 100vh;
29
+ display: grid;
30
+ }
31
+
32
+ .loading-spinner mat-progress-spinner {
33
+ display: block;
34
+ position: relative;
35
+ margin: 0px auto;
36
+ }
@@ -0,0 +1,128 @@
1
+ .cva-multi-select-autocomplete {
2
+ width: 100%;
3
+
4
+ mat-label {
5
+ .label {
6
+ .required-label-outside {
7
+ color: red;
8
+ }
9
+ }
10
+ }
11
+
12
+ mat-form-field {
13
+ width: 100%;
14
+ .mat-form-field-wrapper {
15
+ .mat-form-field-flex {
16
+ .mat-form-field-outline {
17
+ .mat-form-field-outline-start {}
18
+ .mat-form-field-outline-gap {}
19
+ mat-form-field-outline-end {}
20
+ }
21
+
22
+ .mat-form-field-outline-thick {
23
+ .mat-form-field-outline-start {}
24
+ .mat-form-field-outline-gap {}
25
+ mat-form-field-outline-end {}
26
+ }
27
+
28
+ .mat-form-field-infix {
29
+ mat-select {
30
+ .mat-select-trigger {
31
+ .mat-select-value {
32
+ .mat-select-placeholder {}
33
+ }
34
+
35
+ .mat-select-arrow-wrapper {
36
+ .mat-select-arrow {}
37
+ }
38
+ }
39
+ }
40
+
41
+ .mat-form-field-label-wrapper {
42
+
43
+ }
44
+ }
45
+
46
+ .mat-form-field-suffix {
47
+ mat-icon {
48
+ display: flex !important; // override .mat-icon style
49
+ place-content: center;
50
+ align-items: center;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+
57
+ }
58
+
59
+ }
60
+
61
+ .mat-select-panel-wrap {
62
+ .mat-select-panel {
63
+ .box-search {
64
+ margin: 8px;
65
+ border-radius: 2px;
66
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
67
+ transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
68
+ display: flex;
69
+
70
+ mat-checkbox {
71
+ width: 36px;
72
+ line-height: 33px;
73
+ color: #808080;
74
+ text-align: center;
75
+ }
76
+
77
+ input {
78
+ flex: 1;
79
+ border: none;
80
+ outline: none;
81
+
82
+ &.pl-1 {
83
+ padding-left: 1rem;
84
+ }
85
+ }
86
+
87
+ .box-search-icon {
88
+ button {
89
+ width: 36px;
90
+ height: 36px;
91
+ line-height: 33px;
92
+ color: #808080;
93
+ }
94
+ }
95
+ }
96
+
97
+ mat-option {
98
+
99
+ h4 {
100
+ font-weight: 100;
101
+ }
102
+
103
+ mat-pseudo-checkbox {}
104
+
105
+ span {
106
+ overflow: initial;
107
+
108
+ > div {
109
+ line-height: 0rem;
110
+
111
+ p {
112
+ font-size: smaller;
113
+ margin: 0;
114
+ }
115
+ }
116
+ }
117
+
118
+ &.selected-options {
119
+ visibility: hidden;
120
+ position: absolute;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ .tree-multiline-mat-option .mat-line {
127
+ margin-bottom: 20px;
128
+ }