@tetacom/ng-components 1.0.3 → 1.0.7

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 (232) hide show
  1. package/assets/color-icons.svg +339 -0
  2. package/assets/icons.svg +669 -0
  3. package/assets/lithotype-icons.svg +423 -0
  4. package/component/filter/filter-host/filter-host.component.d.ts +2 -3
  5. package/component/table/cell-host/cell-host.component.d.ts +2 -3
  6. package/component/table/head-cell-host/head-cell-host.component.d.ts +2 -3
  7. package/component/table/table/table.component.d.ts +2 -2
  8. package/directive/drag-sort/drag-sort-container.directive.d.ts +1 -2
  9. package/esm2020/common/service/click.service.mjs +3 -3
  10. package/esm2020/common/service/dynamic-component.service.mjs +3 -3
  11. package/esm2020/common/service/overlay-container.service.mjs +3 -3
  12. package/esm2020/component/accordion/accordion/accordion.component.mjs +3 -3
  13. package/esm2020/component/accordion/accordion-content.directive.mjs +3 -3
  14. package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +3 -3
  15. package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +3 -3
  16. package/esm2020/component/accordion/accordion.module.mjs +4 -4
  17. package/esm2020/component/button/button/button.component.mjs +3 -3
  18. package/esm2020/component/button/button.module.mjs +4 -4
  19. package/esm2020/component/chart/chart/chart.component.mjs +3 -3
  20. package/esm2020/component/chart/chart.module.mjs +4 -4
  21. package/esm2020/component/chart/core/chart.mjs +4 -4
  22. package/esm2020/component/chart-3d/chart-3d.module.mjs +4 -4
  23. package/esm2020/component/chart-3d/chart3d/chart3d.component.mjs +3 -3
  24. package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +3 -3
  25. package/esm2020/component/checkbox/checkbox.module.mjs +4 -4
  26. package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +3 -3
  27. package/esm2020/component/date-picker/date-picker.module.mjs +4 -4
  28. package/esm2020/component/date-picker/day-select/day-select.component.mjs +3 -3
  29. package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +3 -3
  30. package/esm2020/component/date-picker/month-select/month-select.component.mjs +3 -3
  31. package/esm2020/component/date-picker/service/picker-locale.service.mjs +3 -3
  32. package/esm2020/component/date-picker/service/picker-touch.service.mjs +3 -3
  33. package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +3 -3
  34. package/esm2020/component/date-picker/year-select/year-select.component.mjs +3 -3
  35. package/esm2020/component/delimiter/delimiter/delimiter.component.mjs +3 -3
  36. package/esm2020/component/delimiter/delimiter.module.mjs +4 -4
  37. package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +3 -3
  38. package/esm2020/component/dropdown/dropdown-base.mjs +8 -8
  39. package/esm2020/component/dropdown/dropdown-content.directive.mjs +3 -3
  40. package/esm2020/component/dropdown/dropdown-head.directive.mjs +3 -3
  41. package/esm2020/component/dropdown/dropdown.directive.mjs +3 -3
  42. package/esm2020/component/dropdown/dropdown.module.mjs +4 -4
  43. package/esm2020/component/dynamic-component/dynamic-component.module.mjs +4 -4
  44. package/esm2020/component/dynamic-component/popup-content/popup-content.component.mjs +3 -3
  45. package/esm2020/component/expand-panel/expand-panel/expand-panel.component.mjs +3 -3
  46. package/esm2020/component/expand-panel/expand-panel-content.directive.mjs +3 -3
  47. package/esm2020/component/expand-panel/expand-panel-head.directive.mjs +3 -3
  48. package/esm2020/component/expand-panel/expand-panel.module.mjs +4 -4
  49. package/esm2020/component/file-upload/file-item/file-item.component.mjs +3 -3
  50. package/esm2020/component/file-upload/file-upload-area/file-upload-area.component.mjs +3 -3
  51. package/esm2020/component/file-upload/file-upload.module.mjs +4 -4
  52. package/esm2020/component/filter/boolean-filter/boolean-filter.component.mjs +3 -3
  53. package/esm2020/component/filter/contarct/string-filter.mjs +1 -1
  54. package/esm2020/component/filter/date-filter/date-filter.component.mjs +3 -3
  55. package/esm2020/component/filter/filter-host/filter-host.component.mjs +7 -9
  56. package/esm2020/component/filter/filter-panel/filter-panel.component.mjs +3 -3
  57. package/esm2020/component/filter/filter.module.mjs +4 -4
  58. package/esm2020/component/filter/list-filter/list-filter.component.mjs +3 -3
  59. package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +3 -3
  60. package/esm2020/component/filter/string-filter/string-filter.component.mjs +3 -3
  61. package/esm2020/component/icon/icon/icon.component.mjs +3 -3
  62. package/esm2020/component/icon/icon-sprite.directive.mjs +3 -3
  63. package/esm2020/component/icon/icon.module.mjs +4 -4
  64. package/esm2020/component/icon/icon.service.mjs +3 -3
  65. package/esm2020/component/input/form-group-title/form-group-title.component.mjs +3 -3
  66. package/esm2020/component/input/input/input.component.mjs +3 -3
  67. package/esm2020/component/input/input.module.mjs +4 -4
  68. package/esm2020/component/input/text-field/text-field.component.mjs +3 -3
  69. package/esm2020/component/message/message/message.component.mjs +3 -3
  70. package/esm2020/component/message/message-host/message-host.component.mjs +3 -3
  71. package/esm2020/component/message/message.module.mjs +4 -4
  72. package/esm2020/component/message/message.service.mjs +3 -3
  73. package/esm2020/component/modal/dialog/dialog.component.mjs +3 -3
  74. package/esm2020/component/modal/dialog.service.mjs +3 -3
  75. package/esm2020/component/modal/modal-container/modal-container.component.mjs +3 -3
  76. package/esm2020/component/modal/modal.module.mjs +4 -4
  77. package/esm2020/component/modal/modal.service.mjs +3 -3
  78. package/esm2020/component/pager/pager/pager.component.mjs +3 -3
  79. package/esm2020/component/pager/pager.module.mjs +4 -4
  80. package/esm2020/component/panel/panel/panel.component.mjs +3 -3
  81. package/esm2020/component/panel/panel.module.mjs +4 -4
  82. package/esm2020/component/progress-bar/progress-bar/progress-bar.component.mjs +3 -3
  83. package/esm2020/component/progress-bar/progress-bar.module.mjs +4 -4
  84. package/esm2020/component/property-grid/default/date-item-default/date-item-default.component.mjs +3 -3
  85. package/esm2020/component/property-grid/default/list-item-default/list-item-default.component.mjs +3 -3
  86. package/esm2020/component/property-grid/default/numeric-item-default/numeric-item-default.component.mjs +3 -3
  87. package/esm2020/component/property-grid/default/string-item-default/string-item-default.component.mjs +3 -3
  88. package/esm2020/component/property-grid/property-grid/property-grid-group/property-grid-group.component.mjs +3 -3
  89. package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +3 -3
  90. package/esm2020/component/property-grid/property-grid/property-grid.component.mjs +3 -3
  91. package/esm2020/component/property-grid/property-grid.module.mjs +4 -4
  92. package/esm2020/component/radio/radio/radio.component.mjs +3 -3
  93. package/esm2020/component/radio/radio-button/radio-button.component.mjs +3 -3
  94. package/esm2020/component/radio/radio.module.mjs +4 -4
  95. package/esm2020/component/resize-panel/resize-panel/resize-panel.component.mjs +3 -3
  96. package/esm2020/component/resize-panel/resize-panel.module.mjs +4 -4
  97. package/esm2020/component/select/select/select.component.mjs +3 -3
  98. package/esm2020/component/select/select-option.directive.mjs +3 -3
  99. package/esm2020/component/select/select-value.directive.mjs +3 -3
  100. package/esm2020/component/select/select.module.mjs +4 -4
  101. package/esm2020/component/sidebar/sidebar/sidebar.component.mjs +3 -3
  102. package/esm2020/component/sidebar/sidebar.module.mjs +4 -4
  103. package/esm2020/component/switch/switch/switch.component.mjs +3 -3
  104. package/esm2020/component/switch/switch-button/switch-button.component.mjs +3 -3
  105. package/esm2020/component/switch/switch.module.mjs +4 -4
  106. package/esm2020/component/switch/switch.service.mjs +3 -3
  107. package/esm2020/component/table/base/cell-component-base.mjs +4 -4
  108. package/esm2020/component/table/base/head-cell-component-base.mjs +3 -3
  109. package/esm2020/component/table/cell/cell.component.mjs +3 -3
  110. package/esm2020/component/table/cell-host/cell-host.component.mjs +7 -9
  111. package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +3 -3
  112. package/esm2020/component/table/default/date-cell/date-cell.component.mjs +6 -6
  113. package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +3 -3
  114. package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +3 -3
  115. package/esm2020/component/table/default/group-row/group-row.component.mjs +3 -3
  116. package/esm2020/component/table/default/list-cell/list-cell.component.mjs +3 -3
  117. package/esm2020/component/table/default/numeric-cell/numeric-cell.component.mjs +3 -3
  118. package/esm2020/component/table/default/string-cell/string-cell.component.mjs +3 -3
  119. package/esm2020/component/table/head-cell/head-cell.component.mjs +3 -3
  120. package/esm2020/component/table/head-cell-dropdown/head-cell-dropdown.component.mjs +3 -3
  121. package/esm2020/component/table/head-cell-host/head-cell-host.component.mjs +7 -9
  122. package/esm2020/component/table/selection-cell/selection-cell.component.mjs +3 -3
  123. package/esm2020/component/table/selection-head-cell/selection-head-cell.component.mjs +3 -3
  124. package/esm2020/component/table/service/table.service.mjs +3 -3
  125. package/esm2020/component/table/table/table.component.mjs +15 -23
  126. package/esm2020/component/table/table-body/table-body.component.mjs +3 -3
  127. package/esm2020/component/table/table-head/table-head.component.mjs +3 -3
  128. package/esm2020/component/table/table-head-group/table-head-group.component.mjs +3 -3
  129. package/esm2020/component/table/table.module.mjs +4 -4
  130. package/esm2020/component/tabs/tab/tab.component.mjs +3 -3
  131. package/esm2020/component/tabs/tab-content.directive.mjs +3 -3
  132. package/esm2020/component/tabs/tab-title.directive.mjs +3 -3
  133. package/esm2020/component/tabs/tabs/tabs.component.mjs +3 -3
  134. package/esm2020/component/tabs/tabs.module.mjs +4 -4
  135. package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +3 -3
  136. package/esm2020/component/theme-switch/theme-switch.module.mjs +4 -4
  137. package/esm2020/component/theme-switch/theme-switch.service.mjs +3 -3
  138. package/esm2020/component/toggle/toggle/toggle.component.mjs +3 -3
  139. package/esm2020/component/toggle/toggle.module.mjs +4 -4
  140. package/esm2020/component/toolbar/toolbar/toolbar.component.mjs +3 -3
  141. package/esm2020/component/toolbar/toolbar.module.mjs +4 -4
  142. package/esm2020/component/tree/tree/tree.component.mjs +3 -3
  143. package/esm2020/component/tree/tree-item/tree-item.component.mjs +3 -3
  144. package/esm2020/component/tree/tree-item-toggle/tree-item-toggle.component.mjs +3 -3
  145. package/esm2020/component/tree/tree.module.mjs +4 -4
  146. package/esm2020/component/tree/tree.service.mjs +3 -3
  147. package/esm2020/directive/click-outside/click-outside.directive.mjs +3 -3
  148. package/esm2020/directive/click-outside/click-outside.module.mjs +4 -4
  149. package/esm2020/directive/context-menu/context-menu.directive.mjs +3 -3
  150. package/esm2020/directive/context-menu/context-menu.module.mjs +4 -4
  151. package/esm2020/directive/disable-control/disable-control.directive.mjs +3 -3
  152. package/esm2020/directive/disable-control/disable-control.module.mjs +4 -4
  153. package/esm2020/directive/drag-sort/drag-sort-container.directive.mjs +10 -9
  154. package/esm2020/directive/drag-sort/drag-sort-item.directive.mjs +3 -3
  155. package/esm2020/directive/drag-sort/drag-sort.module.mjs +4 -4
  156. package/esm2020/directive/dynamic-content-base.directive.mjs +3 -3
  157. package/esm2020/directive/highlight/highlight.directive.mjs +3 -3
  158. package/esm2020/directive/highlight/highlight.module.mjs +4 -4
  159. package/esm2020/directive/hint/hint.directive.mjs +4 -4
  160. package/esm2020/directive/hint/hint.module.mjs +4 -4
  161. package/esm2020/directive/loader/loader.directive.mjs +3 -3
  162. package/esm2020/directive/loader/loader.module.mjs +4 -4
  163. package/esm2020/directive/no-autofill/no-autofill.directive.mjs +3 -3
  164. package/esm2020/directive/no-autofill/no-autofill.module.mjs +4 -4
  165. package/esm2020/directive/only-number/only-number.directive.mjs +3 -3
  166. package/esm2020/directive/only-number/only-number.module.mjs +4 -4
  167. package/esm2020/directive/resize-drag/resize-drag.directive.mjs +3 -3
  168. package/esm2020/directive/resize-drag/resize-drag.module.mjs +4 -4
  169. package/esm2020/directive/teta-template/teta-template.directive.mjs +3 -3
  170. package/esm2020/directive/teta-template/teta-template.module.mjs +4 -4
  171. package/esm2020/directive/tooltip/tooltip.directive.mjs +3 -3
  172. package/esm2020/directive/tooltip/tooltip.module.mjs +4 -4
  173. package/esm2020/pipe/number-pipe/number-pipe.module.mjs +4 -4
  174. package/esm2020/pipe/number-pipe/number.pipe.mjs +3 -3
  175. package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +4 -4
  176. package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +3 -3
  177. package/fesm2015/tetacom-ng-components.mjs +629 -643
  178. package/fesm2015/tetacom-ng-components.mjs.map +1 -1
  179. package/fesm2020/tetacom-ng-components.mjs +627 -643
  180. package/fesm2020/tetacom-ng-components.mjs.map +1 -1
  181. package/package.json +1 -1
  182. package/style/accordion.scss +47 -0
  183. package/style/assembly-library.scss +36 -0
  184. package/style/assembly-presets.scss +5 -0
  185. package/style/assembly.scss +4 -0
  186. package/style/border.scss +24 -0
  187. package/style/button.scss +43 -0
  188. package/style/checkbox.scss +31 -0
  189. package/style/chips.scss +23 -0
  190. package/style/color.scss +42 -0
  191. package/style/common.scss +1 -0
  192. package/style/datepicker.scss +106 -0
  193. package/style/drag.scss +40 -0
  194. package/style/dropdown.scss +30 -0
  195. package/style/font.scss +7 -0
  196. package/style/hint.scss +13 -0
  197. package/style/icon.scss +12 -0
  198. package/style/input.scss +162 -0
  199. package/style/layout.scss +109 -0
  200. package/style/library.scss +208 -0
  201. package/style/list.scss +70 -0
  202. package/style/loader.scss +40 -0
  203. package/style/message.scss +51 -0
  204. package/style/modal.scss +29 -0
  205. package/style/navigation.scss +26 -0
  206. package/style/presets/color-presets.scss +151 -0
  207. package/style/presets/font-presets.scss +132 -0
  208. package/style/presets/layout-presets.scss +1 -0
  209. package/style/presets/shadow-presets.scss +16 -0
  210. package/style/presets/spacing-presets.scss +2 -0
  211. package/style/progress.scss +28 -0
  212. package/style/radio.scss +56 -0
  213. package/style/reset.scss +35 -0
  214. package/style/resize-panel.scss +58 -0
  215. package/style/scroll.scss +51 -0
  216. package/style/select.scss +108 -0
  217. package/style/shadow.scss +23 -0
  218. package/style/sidebar.scss +40 -0
  219. package/style/sizing.scss +12 -0
  220. package/style/spacing.scss +45 -0
  221. package/style/switch.scss +36 -0
  222. package/style/table.scss +226 -0
  223. package/style/tabs.scss +64 -0
  224. package/style/toggle.scss +70 -0
  225. package/style/toolbar.scss +23 -0
  226. package/style/tooltip.scss +60 -0
  227. package/style/tree.scss +60 -0
  228. package/style/util/button-util.scss +58 -0
  229. package/style/util/color-util.scss +3 -0
  230. package/style/util/font-util.scss +11 -0
  231. package/style/util/scroll-util.scss +4 -0
  232. package/style/util/shadow-util.scss +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tetacom/ng-components",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.0.0",
@@ -0,0 +1,47 @@
1
+ @import "./util/font-util.scss";
2
+ @import "./util/color-util.scss";
3
+
4
+ .accordion {
5
+ display: flex;
6
+ flex-direction: column;
7
+
8
+ &-item {
9
+ display: flex;
10
+ flex-direction: column;
11
+ min-height: 40px;
12
+
13
+ &_active {
14
+ flex-grow: 0;
15
+ }
16
+ }
17
+
18
+ &-head {
19
+ display: flex;
20
+ align-items: center;
21
+ height: 40px;
22
+ padding: 0 8px;
23
+ grid-gap: 8px;
24
+ flex-shrink: 0;
25
+ border-bottom: solid 1px getColorVar('text', '5');
26
+ @include getFont($fonts, 'title-3');
27
+
28
+ &:hover:not(&_disabled) {
29
+ cursor: pointer;
30
+ }
31
+ &_open {
32
+ border: none;
33
+ }
34
+ }
35
+
36
+ &-toggle {
37
+ display: flex;
38
+
39
+ }
40
+
41
+ &-content {
42
+ display: flex;
43
+ flex-grow: 1;
44
+ min-height: 0;
45
+ border-bottom: solid 1px getColorVar('text', '5');
46
+ }
47
+ }
@@ -0,0 +1,36 @@
1
+ @import "./accordion.scss";
2
+ @import "./border.scss";
3
+ @import "./button.scss";
4
+ @import "./checkbox.scss";
5
+ @import "./chips.scss";
6
+ @import "./color.scss";
7
+ @import "./datepicker.scss";
8
+ @import "./drag.scss";
9
+ @import "./dropdown.scss";
10
+ @import "./font.scss";
11
+ @import "./hint.scss";
12
+ @import "./icon.scss";
13
+ @import "./input.scss";
14
+ @import "./layout.scss";
15
+ @import "./library.scss";
16
+ @import "./list.scss";
17
+ @import "./loader.scss";
18
+ @import "./message.scss";
19
+ @import "./modal.scss";
20
+ @import "./navigation.scss";
21
+ @import "./progress.scss";
22
+ @import "./radio.scss";
23
+ @import "./resize-panel.scss";
24
+ @import "./scroll.scss";
25
+ @import "./select.scss";
26
+ @import "./shadow.scss";
27
+ @import "./sidebar.scss";
28
+ @import "./sizing.scss";
29
+ @import "./spacing.scss";
30
+ @import "./switch.scss";
31
+ @import "./table.scss";
32
+ @import "./tabs.scss";
33
+ @import "./toggle.scss";
34
+ @import "./toolbar.scss";
35
+ @import "./tooltip.scss";
36
+ @import "./tree.scss";
@@ -0,0 +1,5 @@
1
+ @import "./presets/color-presets.scss";
2
+ @import "./presets/font-presets.scss";
3
+ @import "./presets/shadow-presets.scss";
4
+ @import "./presets/spacing-presets.scss";
5
+ @import "./presets/layout-presets.scss";
@@ -0,0 +1,4 @@
1
+ @import "./reset.scss";
2
+
3
+ @import "./assembly-presets.scss";
4
+ @import "./assembly-library.scss";
@@ -0,0 +1,24 @@
1
+ @import "./common.scss";
2
+
3
+ .border {
4
+ border-style: solid;
5
+ border-width: 1px;
6
+ @each $dir in $directions {
7
+ &-#{$dir} {
8
+ border-#{$dir}: solid 1px;
9
+ }
10
+ }
11
+ @for $radius from 0 through 12 {
12
+ &-radius-#{$radius} {
13
+ border-radius: 1px * $radius;
14
+ }
15
+ }
16
+ }
17
+
18
+ .border-0 {
19
+ border-width: 0;
20
+ }
21
+
22
+ .border-transparent {
23
+ border-color: transparent;
24
+ }
@@ -0,0 +1,43 @@
1
+ @import "./util/color-util.scss";
2
+ @import "./util/font-util.scss";
3
+ @import "./util/button-util.scss";
4
+
5
+ .button {
6
+ display: inline-flex;
7
+ grid-gap: 4px;
8
+ align-items: center;
9
+ height: 24px;
10
+ padding: 0 8px;
11
+ border: 0;
12
+ border-radius: 2px;
13
+ color: getColorVar('white', '50');
14
+ fill: getColorVar('white', '50');
15
+ @include getFont($fonts, 'button-2');
16
+ transition: background 0.4s;
17
+
18
+ &:hover:not([disabled]) {
19
+ cursor: pointer;
20
+ }
21
+
22
+ &-xs {
23
+ padding: 0;
24
+ height: 16px;
25
+ }
26
+
27
+ &-square {
28
+ padding: 4px;
29
+ width: 24px;
30
+ flex-shrink: 0;
31
+ justify-content: center;
32
+ }
33
+
34
+ &[disabled] {
35
+ filter: grayscale(1);
36
+ opacity: 0.3;
37
+ }
38
+
39
+ }
40
+
41
+ @each $paletteName in $palettes {
42
+ @include generateButtonForPalette($paletteName);
43
+ }
@@ -0,0 +1,31 @@
1
+ @import "util/color-util.scss";
2
+
3
+ .checkbox {
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ &__tick {
8
+ border: solid 1px getColorVar('text', '30');
9
+ border-radius: 1px;
10
+ height: 14px;
11
+ width: 14px;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15) inset;
16
+ }
17
+
18
+ &:hover {
19
+ cursor: pointer;
20
+ }
21
+
22
+ &:hover &__tick {
23
+ border-color: getColorVar('text', '50');
24
+ }
25
+
26
+ @each $paletteName in $palettes {
27
+ &.checkbox-#{$paletteName} {
28
+ fill: getColorVar($paletteName, '50');
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ @import "util/color-util.scss";
2
+
3
+ .chip {
4
+ height: 24px;
5
+ border: solid transparent 0;
6
+ border-radius: 12px;
7
+ background: getColorVar('text', '10');
8
+ fill: getColorVar('text', '50');
9
+ color: getColorVar('text', '90');
10
+ margin-right: 4px;
11
+ margin-top: 4px;
12
+ display: inline-flex;
13
+ align-items: center;
14
+ padding: 4px 8px 4px 6px;
15
+
16
+ &:hover {
17
+ cursor: pointer;
18
+ }
19
+
20
+ teta-icon {
21
+ margin-right: 6px;
22
+ }
23
+ }
@@ -0,0 +1,42 @@
1
+ @use "sass:map";
2
+ @import "./util/color-util.scss";
3
+
4
+ body {
5
+ @each $paletteName, $palette in map.get($themes, "default") {
6
+ @each $paletteColorName, $paletteColor in $palette {
7
+ --color-#{$paletteName}-#{$paletteColorName}: #{$paletteColor};
8
+ }
9
+ }
10
+ }
11
+
12
+ @each $themeName, $theme in $themes {
13
+ .theme-#{$themeName} {
14
+ @each $paletteName, $palette in $theme {
15
+ @each $paletteColorName, $paletteColor in $palette {
16
+ --color-#{$paletteName}-#{$paletteColorName}: #{$paletteColor};
17
+ }
18
+ }
19
+ }
20
+ }
21
+
22
+
23
+ @each $paletteName, $i in $palettes {
24
+ @each $gradeName, $j in $grades {
25
+ .color-#{$paletteName}-#{$gradeName} {
26
+ color: getColorVar($paletteName, $gradeName);
27
+ }
28
+ .bg-#{$paletteName}-#{$gradeName} {
29
+ background-color: getColorVar($paletteName, $gradeName);
30
+ }
31
+ .border-#{$paletteName}-#{$gradeName} {
32
+ border-color: getColorVar($paletteName, $gradeName);
33
+ }
34
+ .fill-#{$paletteName}-#{$gradeName} {
35
+ fill: getColorVar($paletteName, $gradeName);
36
+ }
37
+ }
38
+ }
39
+
40
+ .bg-transparent {
41
+ background-color: transparent;
42
+ }
@@ -0,0 +1 @@
1
+ $directions: top, right, bottom, left;
@@ -0,0 +1,106 @@
1
+ @import "util/font-util.scss";
2
+ @import "util/shadow-util.scss";
3
+ @import "util/color-util.scss";
4
+
5
+ .datepicker {
6
+ display: inline-flex;
7
+ width: 150px;
8
+
9
+ &-wide {
10
+ width: 170px;
11
+ }
12
+
13
+ &-head {
14
+ display: inline-flex;
15
+ flex-grow: 1;
16
+ align-items: center;
17
+ height: 24px;
18
+ border: solid 1px getColorVar('text', '20');
19
+ background: getColorVar('background', '50');
20
+ color: getColorVar('text', '90');
21
+ fill: getColorVar('text', '90');
22
+ border-radius: 2px;
23
+ padding: 0 4px;
24
+ transition: border-color 0.4s;
25
+
26
+ &_disabled {
27
+ background-color: getColorVar('text', 5);
28
+ border: 0;
29
+ color: getColorVar('text', 40);
30
+ }
31
+
32
+ &:hover:not(&_disabled) {
33
+ border-color: getColorVar('text', '40');
34
+ cursor: pointer;
35
+ }
36
+
37
+ &_invalid {
38
+ border-color: getColorVar('red', '50');
39
+ }
40
+ }
41
+
42
+ &-table &-head {
43
+ border-radius: 0;
44
+ }
45
+
46
+ &:focus &-head, &_open &-head {
47
+ border-color: getColorVar('primary', '50');
48
+ }
49
+
50
+ &-body {
51
+ @include shadow(2);
52
+ background-color: getColorVar('background', '50');
53
+ }
54
+
55
+ &-content {
56
+ width: 224px;
57
+ }
58
+
59
+ &-picker {
60
+ display: grid;
61
+ grid-template-columns: repeat(7, 32px);
62
+ grid-template-rows: 32px;
63
+ }
64
+
65
+ &-week {
66
+ display: grid;
67
+ grid-template-columns: repeat(7, 32px);
68
+ }
69
+
70
+ &-day {
71
+ height: 32px;
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ }
76
+
77
+ &-date {
78
+ height: 32px;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ border: solid 0;
83
+ border-radius: 32px;
84
+
85
+ &:hover:not(&_disabled):not(&_active) {
86
+ cursor: pointer;
87
+ background-color: getColorVar('text', '5');
88
+ }
89
+
90
+ &_active {
91
+ color: getColorVar('white', '50');
92
+ background-color: getColorVar('primary', '50');
93
+ }
94
+
95
+ &_disabled {
96
+ color: getColorVar('text', '10');
97
+ }
98
+ }
99
+
100
+ &-time {
101
+ display: flex;
102
+ grid-gap: 16px;
103
+ align-items: center;
104
+ justify-content: center;
105
+ }
106
+ }
@@ -0,0 +1,40 @@
1
+ @import "util/color-util";
2
+
3
+ .drop-direction {
4
+ position: absolute;
5
+ display: none;
6
+ background: getColorVar('text', 50);
7
+ z-index: 10;
8
+
9
+ &-vertical#{&}-start {
10
+ width: 100%;
11
+ height: 1px;
12
+ display: block;
13
+ top: -1px;
14
+ left: 0;
15
+ }
16
+
17
+ &-vertical#{&}-end {
18
+ width: 100%;
19
+ height: 1px;
20
+ display: block;
21
+ bottom: -1px;
22
+ left: 0;
23
+ }
24
+
25
+ &-horizontal#{&}-start {
26
+ height: 100%;
27
+ width: 1px;
28
+ display: block;
29
+ top: 0;
30
+ left: -1px;
31
+ }
32
+
33
+ &-horizontal#{&}-end {
34
+ height: 100%;
35
+ width: 1px;
36
+ display: block;
37
+ top: 0;
38
+ right: -1px;
39
+ }
40
+ }
@@ -0,0 +1,30 @@
1
+ @import "util/color-util";
2
+ @import "util/shadow-util";
3
+
4
+ .dropdown {
5
+ border-radius: 2px;
6
+ border: solid 1px getColorVar('text', '5');
7
+ position: fixed;
8
+ display: flex;
9
+ z-index: 1050;
10
+ @include shadow(1);
11
+ animation: fadeInFromNone 0.5s ease-out;
12
+ }
13
+
14
+ @keyframes fadeInFromNone {
15
+ 0% {
16
+ display: none;
17
+ opacity: 0;
18
+ }
19
+
20
+ 1% {
21
+ display: block;
22
+ opacity: 0;
23
+ }
24
+
25
+ 100% {
26
+ display: block;
27
+ opacity: 1;
28
+ }
29
+ }
30
+
@@ -0,0 +1,7 @@
1
+ @import "util/font-util.scss";
2
+
3
+ @each $fontName, $font in $fonts {
4
+ .font-#{$fontName} {
5
+ @include getFontDescription($font)
6
+ }
7
+ }
@@ -0,0 +1,13 @@
1
+ @import "util/shadow-util.scss";
2
+ @import "util/color-util.scss";
3
+
4
+ .hint {
5
+ @include shadow(1);
6
+ padding: 4px 8px;
7
+ white-space: nowrap;
8
+ z-index: 3;
9
+ background-color: getColorVar('text', '10');
10
+ color: getColorVar('text', '90');
11
+ border: solid 0;
12
+ border-radius: 2px;
13
+ }
@@ -0,0 +1,12 @@
1
+ @import "util/color-util.scss";
2
+
3
+ .icon {
4
+ display: inline-flex;
5
+ height: 16px;
6
+ width: 16px;
7
+ @each $paletteName in $palettes {
8
+ &.icon-#{$paletteName} {
9
+ fill: getColorVar($paletteName, '70');
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,162 @@
1
+ @import "util/color-util.scss";
2
+ @import "util/font-util.scss";
3
+
4
+ .form-container {
5
+ display: flex;
6
+ flex-direction: column;
7
+ grid-gap: 8px;
8
+ }
9
+
10
+ .form-row {
11
+ display: flex;
12
+ grid-gap: 8px;
13
+ align-items: flex-end;
14
+ }
15
+
16
+ .input-container {
17
+ display: flex;
18
+ flex-grow: 1;
19
+ min-width: 0;
20
+ position: relative;
21
+ }
22
+
23
+ .input-message {
24
+ position: absolute;
25
+ top: 100%;
26
+ right: 0;
27
+ height: 12px;
28
+ overflow: hidden;
29
+ }
30
+
31
+ .text-field, .input, .textarea {
32
+ padding: 4px;
33
+ border: solid 1px getColorVar('text', '20');
34
+ border-radius: 2px;
35
+ background-color: getColorVar('background', '50');
36
+ color: getColorVar('text', 90);
37
+ @include getFont($fonts, 'body-3');
38
+ display: flex;
39
+ flex-direction: row;
40
+ align-items: center;
41
+ grid-gap: 4px;
42
+ width: 100%;
43
+ min-width: 0;
44
+ transition: border-color 0.4s;
45
+
46
+ &_invalid {
47
+ border-color: getColorVar('red', '50');
48
+ }
49
+
50
+ &_required::after {
51
+ margin-left: 4px;
52
+ content: '*';
53
+ color: getColorVar('red', '50');
54
+ }
55
+
56
+ &::placeholder {
57
+ color: getColorVar('text', '40');
58
+ }
59
+
60
+ &:focus-within, &:focus {
61
+ border-color: getColorVar('primary', '50');
62
+ }
63
+
64
+ &:focus-within {
65
+ &::placeholder {
66
+ color: getColorVar('text', '20');
67
+ }
68
+
69
+ input::placeholder {
70
+ color: getColorVar('text', '20');
71
+ }
72
+ }
73
+
74
+ &:disabled, &[disabled], &_disabled {
75
+ border: 0;
76
+ background: getColorVar('text', '5');
77
+ color: getColorVar('text', '40');
78
+ }
79
+
80
+ &:hover:not([disabled]):not(&_disabled):not(:focus-within) {
81
+ border-color: getColorVar('text', '40');
82
+ }
83
+
84
+ .close-icon {
85
+ display: none;
86
+ position: absolute;
87
+ right: 4px;
88
+ }
89
+
90
+ &:hover:not([disabled]):not(&_disabled), &:focus-within {
91
+ .close-icon {
92
+ display: flex;
93
+ }
94
+ }
95
+ }
96
+
97
+ .text-field, .input {
98
+ height: 24px;
99
+ }
100
+
101
+ .text-field {
102
+ position: relative;
103
+
104
+ input {
105
+ color: getColorVar('text', 90);
106
+ border-width: 0;
107
+ width: 100%;
108
+ }
109
+
110
+ teta-icon {
111
+ fill: getColorVar('text', 40);
112
+ }
113
+ }
114
+
115
+ .textarea {
116
+ resize: none;
117
+ }
118
+
119
+ .file-upload {
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: center;
123
+ justify-content: center;
124
+ background: getColorVar('background', '50');
125
+ border: dashed 1px getColorVar('text', '10');
126
+ border-radius: 4px;
127
+ transition: background 0.4s;
128
+ grid-gap: 8px;
129
+
130
+ &-label {
131
+ flex-grow: 0;
132
+ position: relative;
133
+ display: flex;
134
+ justify-content: center;
135
+ }
136
+
137
+ &-input {
138
+ display: none;
139
+ }
140
+
141
+ &_active {
142
+ background-color: getColorVar('text', '10');
143
+ }
144
+ }
145
+
146
+ .form-group-title {
147
+ height: 24px;
148
+ display: flex;
149
+ align-items: center;
150
+ grid-gap: 8px;
151
+ color: getColorVar('text', '50');
152
+
153
+ &-text {
154
+ flex-shrink: 0;
155
+ }
156
+
157
+ &-line {
158
+ flex-grow: 1;
159
+ height: 1px;
160
+ background: getColorVar('text', '50');
161
+ }
162
+ }