@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
@@ -0,0 +1,226 @@
1
+ @import "util/color-util.scss";
2
+ @import "util/font-util.scss";
3
+ @import "util/scroll-util.scss";
4
+
5
+ .table {
6
+ display: flex;
7
+ flex-direction: column;
8
+ flex-grow: 1;
9
+ min-height: 0;
10
+ min-width: 0;
11
+ color: getColorVar('text', '90');
12
+ @include getFont($fonts, 'title-3');
13
+
14
+ &-head {
15
+ display: grid;
16
+ overflow: hidden;
17
+ flex-shrink: 0;
18
+ border-bottom: solid 1px getColorVar('text', '5');
19
+ @include getFont($fonts, 'table-header');
20
+
21
+ &_locked {
22
+ display: grid;
23
+ position: sticky;
24
+ left: 0;
25
+ background-color: getColorVar('background', '50');
26
+ z-index: 1;
27
+ border-right: solid 1px getColorVar('text', '30');
28
+ }
29
+
30
+ &__group {
31
+ min-height: 24px;
32
+ flex-shrink: 0;
33
+ display: flex;
34
+ flex-direction: row;
35
+ justify-content: center;
36
+ text-overflow: ellipsis;
37
+ border-right: solid 1px getColorVar('text', '5');
38
+
39
+ &:last-child {
40
+ border-right: 0;
41
+ }
42
+
43
+ &__container {
44
+ display: flex;
45
+ flex-direction: column;
46
+ flex-grow: 1;
47
+ min-width: 0;
48
+ }
49
+
50
+ &__caption {
51
+ display: flex;
52
+ flex-grow: 1;
53
+ min-height: 24px;
54
+ justify-content: center;
55
+ align-items: center;
56
+ text-align: center;
57
+ border-bottom: solid 1px getColorVar('text', '5');
58
+ }
59
+
60
+ &__children {
61
+ display: grid;
62
+ flex-direction: row;
63
+ flex-grow: 1;
64
+ }
65
+ }
66
+
67
+ &__cell {
68
+ position: relative;
69
+ min-height: 24px;
70
+ display: flex;
71
+ flex-grow: 1;
72
+ justify-content: center;
73
+ min-width: 0;
74
+ padding: 0;
75
+
76
+ &__menu {
77
+ position: absolute;
78
+ right: 0;
79
+ //top: 0;
80
+ //bottom: 0;
81
+ display: none;
82
+
83
+ &:hover {
84
+ cursor: pointer;
85
+ }
86
+ }
87
+
88
+ &:hover &__menu, &__menu_open {
89
+ display: flex;
90
+ }
91
+
92
+ &__wrapper {
93
+ flex-grow: 1;
94
+ display: flex;
95
+ padding: 0;
96
+ min-width: 0;
97
+ position: relative;
98
+ justify-content: center;
99
+ align-items: center;
100
+ grid-gap: 8px;
101
+ }
102
+
103
+ &__component {
104
+ display: flex;
105
+ flex-wrap: nowrap;
106
+ min-width: 0;
107
+ }
108
+
109
+ &__text {
110
+ white-space: nowrap;
111
+ overflow: hidden;
112
+ text-overflow: ellipsis;
113
+ max-width: 100%;
114
+ }
115
+
116
+ &__resize {
117
+ position: absolute;
118
+ top: 0;
119
+ right: -4px;
120
+ bottom: 0;
121
+ width: 8px;
122
+ background: transparent;
123
+ z-index: 10;
124
+
125
+ &:hover {
126
+ background-color: getColorVar('text', '10');
127
+ }
128
+ }
129
+ }
130
+
131
+ &__dropdown {
132
+ position: fixed;
133
+ z-index: 2;
134
+ text-align: left;
135
+ display: flex;
136
+ flex-direction: column;
137
+ min-width: 250px;
138
+ padding: 12px;
139
+ }
140
+ }
141
+
142
+ &-body {
143
+ display: flex;
144
+ flex-grow: 1;
145
+ overflow: hidden;
146
+ @include getFont($fonts, 'body-3');
147
+
148
+ &-container {
149
+ display: grid;
150
+ flex-grow: 1;
151
+ @include scrollable();
152
+
153
+ &-virtual {
154
+ display: flex;
155
+ flex-grow: 1;
156
+ flex-direction: column;
157
+ }
158
+ }
159
+ }
160
+
161
+ &-row {
162
+ display: contents;
163
+ background-color: getColorVar('background', '50');
164
+
165
+ &:hover .cell {
166
+ background-color: getColorVar('text', '5');
167
+ }
168
+
169
+ &_locked {
170
+ background-color: inherit;
171
+ display: grid;
172
+ position: sticky;
173
+ left: 0;
174
+
175
+ & .cell:last-child {
176
+ border-right: solid 1px getColorVar('text', '30');
177
+ }
178
+ }
179
+
180
+ &_virtual {
181
+ display: grid;
182
+ }
183
+
184
+ &_active {
185
+ background-color: getColorVar('text', '10');
186
+ }
187
+ }
188
+ }
189
+
190
+ .cell {
191
+ display: flex;
192
+ white-space: nowrap;
193
+ height: 24px;
194
+ border-bottom: solid 1px getColorVar('text', '5');
195
+ border-right: solid 1px getColorVar('text', '5');
196
+ padding: 0;
197
+ background-color: inherit;
198
+
199
+ &:last-child {
200
+ border-right: 0;
201
+ }
202
+
203
+
204
+ &:focus {
205
+ box-shadow: inset 0 0 0 1px getColorVar('primary', '50');
206
+ }
207
+
208
+ &-component {
209
+ display: flex;
210
+ flex-grow: 1;
211
+ min-width: 0;
212
+ align-items: center;
213
+ }
214
+
215
+ &-text {
216
+ display: flex;
217
+ min-width: 0;
218
+ padding: 0 8px;
219
+ overflow: hidden;
220
+ text-overflow: ellipsis;
221
+
222
+ &_numeric {
223
+ text-align: right;
224
+ }
225
+ }
226
+ }
@@ -0,0 +1,64 @@
1
+ @import "util/color-util.scss";
2
+ @import "util/font-util.scss";
3
+
4
+ .tabs {
5
+ display: flex;
6
+ flex-direction: column;
7
+
8
+ &-head {
9
+ display: flex;
10
+ flex-grow: 1;
11
+ flex-shrink: 0;
12
+ height: 40px;
13
+
14
+ &-item {
15
+ display: flex;
16
+ align-items: center;
17
+ padding: 0 12px;
18
+ white-space: nowrap;
19
+ @include getFont($fonts, 'body-3');
20
+ color: getColorVar('text', '40');
21
+ fill: getColorVar('text', '40');
22
+
23
+ &_disabled, &[disabled] {
24
+ color: getColorVar('text', '20');
25
+ fill: getColorVar('text', '20');
26
+ }
27
+
28
+ &:hover:not([disabled]):not(&_disabled) {
29
+ cursor: pointer;
30
+ color: getColorVar('text', '70');
31
+ fill: getColorVar('text', '70');
32
+ }
33
+
34
+ &_active {
35
+ position: relative;
36
+ color: getColorVar('text', '90');
37
+ fill: getColorVar('text', '70');
38
+
39
+ &::after {
40
+ content: '';
41
+ position: absolute;
42
+ height: 2px;
43
+ background-color: getColorVar('primary', '50');
44
+ border: solid 0 transparent;
45
+ left: 0;
46
+ right: 0;
47
+ bottom: 0;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ &-title {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ }
57
+
58
+ &-content {
59
+ display: flex;
60
+ flex-direction: column;
61
+ min-height: 0;
62
+ overflow-y: overlay;
63
+ }
64
+ }
@@ -0,0 +1,70 @@
1
+ @import "util/color-util.scss";
2
+
3
+
4
+ .toggle {
5
+ display: inline-flex;
6
+ align-items: center;
7
+ grid-gap: 8px;
8
+ flex-grow: 1;
9
+
10
+ &_disabled &-button {
11
+ background: getColorVar('text', '5') !important;
12
+ }
13
+
14
+ &-button {
15
+ position: relative;
16
+ width: 24px;
17
+ height: 16px;
18
+ border: none;
19
+ border-radius: 10px;
20
+ background: getColorVar('text', 5);
21
+ box-shadow: inset 0 0 0 1px getColorVar('text', 20);
22
+
23
+ &-circle {
24
+ position: absolute;
25
+ top: 4px;
26
+ left: 4px;
27
+ width: 8px;
28
+ height: 8px;
29
+ border: none;
30
+ border-radius: 4px;
31
+ background: getColorVar('white', 50);
32
+ box-shadow: 0 0 0 1px getColorVar('text', 20);
33
+ }
34
+
35
+ $button: &;
36
+
37
+
38
+ &-on {
39
+ box-shadow: none;
40
+ #{$button}-circle {
41
+ left: unset;
42
+ right: 4px;
43
+ box-shadow: none;
44
+ }
45
+
46
+ @each $paletteName in $palettes {
47
+ &#{$button}-#{$paletteName} {
48
+ background: getColorVar($paletteName, '50');
49
+
50
+ &:hover:not(.toggle_disabled) {
51
+ background: getColorVar($paletteName, '40');
52
+ }
53
+
54
+ &:active {
55
+ background: getColorVar($paletteName, '70');
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ &:not(&_disabled):hover &-button:not(.toggle-button-on) {
63
+ background: getColorVar('text', 10);
64
+ }
65
+
66
+ &:hover:not(&_disabled) {
67
+ cursor: pointer;
68
+ }
69
+ }
70
+
@@ -0,0 +1,23 @@
1
+ @import "util/font-util.scss";
2
+ @import "util/color-util.scss";
3
+
4
+ .toolbar {
5
+ height: 40px;
6
+ display: flex;
7
+ grid-gap: 8px;
8
+ min-width: 0;
9
+ overflow: hidden;
10
+ flex-shrink: 0;
11
+ align-items: center;
12
+ @include getFont($fonts, 'title-3');
13
+
14
+ &_panel {
15
+ padding: 0 8px;
16
+ }
17
+
18
+ @each $paletteName in $palettes {
19
+ &.toolbar-#{$paletteName} {
20
+ background-color: getColorVar($paletteName, '50');
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,60 @@
1
+ @import "util/shadow-util.scss";
2
+ @import "util/color-util.scss";
3
+
4
+ .tooltip {
5
+ @include shadow(1);
6
+ font-weight: normal;
7
+ padding: 12px;
8
+ white-space: nowrap;
9
+ z-index: 1;
10
+ background-color: getColorVar('white', '50');
11
+ color: getColorVar('text', '50');
12
+
13
+ &::before, &::after {
14
+ position: absolute;
15
+ display: block;
16
+ content: '';
17
+ width: 0;
18
+ height: 0;
19
+ }
20
+
21
+ &_top {
22
+ &::before {
23
+ bottom: -12px;
24
+ left: 50%;
25
+ transform: translate(-50%, 0);
26
+ border-left: 12px solid transparent;
27
+ border-right: 12px solid transparent;
28
+ border-top: 12px solid getColorVar('white', '50');
29
+ }
30
+
31
+ &::after {
32
+ bottom: -11px;
33
+ left: 50%;
34
+ transform: translate(-50%, 0);
35
+ border-left: 12px solid transparent;
36
+ border-right: 12px solid transparent;
37
+ border-top: 12px solid getColorVar('white', '50');
38
+ }
39
+ }
40
+
41
+ &_bottom {
42
+ &::before {
43
+ top: -12px;
44
+ left: 50%;
45
+ transform: translate(-50%, 0);
46
+ border-left: 12px solid transparent;
47
+ border-right: 12px solid transparent;
48
+ border-bottom: 12px solid getColorVar('white', '50');
49
+ }
50
+
51
+ &::after {
52
+ top: -11px;
53
+ left: 50%;
54
+ transform: translate(-50%, 0);
55
+ border-left: 12px solid transparent;
56
+ border-right: 12px solid transparent;
57
+ border-bottom: 12px solid getColorVar('white', '50');
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,60 @@
1
+ @import "util/color-util.scss";
2
+ @import "util/font-util.scss";
3
+
4
+ .tree {
5
+ display: inline-flex;
6
+ flex-direction: column;
7
+ @include getFont($fonts, 'body-3');
8
+
9
+ &__item-container {
10
+ display: flex;
11
+ flex-direction: column;
12
+ white-space: nowrap;
13
+ }
14
+
15
+ &__item {
16
+ display: flex;
17
+ flex-grow: 1;
18
+ align-items: center;
19
+ height: 24px;
20
+ color: getColorVar('text', '90');
21
+ transition: background 0.4s;
22
+ padding: 0 12px;
23
+ min-width: 0;
24
+ grid-gap: 8px;
25
+
26
+ &_content {
27
+ display: flex;
28
+ align-items: center;
29
+ height: 24px;
30
+
31
+ @for $depth from 0 through 20 {
32
+ &-#{$depth} .tree__item {
33
+ padding-left: 12px + (12px * $depth);
34
+ }
35
+ }
36
+ }
37
+
38
+ &:hover {
39
+ cursor: pointer;
40
+ background-color: getColorVar('text', '5');
41
+ }
42
+
43
+ &_active {
44
+ background-color: getColorVar('text', '10');
45
+ }
46
+ }
47
+
48
+ &__icon {
49
+ fill: getColorVar('text', '70');
50
+
51
+ &:hover {
52
+ cursor: pointer;
53
+ }
54
+ }
55
+
56
+ &__children {
57
+ display: flex;
58
+ flex-direction: column;
59
+ }
60
+ }
@@ -0,0 +1,58 @@
1
+ @import "./color-util.scss";
2
+
3
+ @mixin generateButtonForPalette($paletteName) {
4
+ .button_primary.button-#{$paletteName} {
5
+ background-color: getColorVar($paletteName, '50');
6
+ background-position: center;
7
+ transition: background 0.8s;
8
+
9
+ &:hover {
10
+ background: getColorVar($paletteName, '60') radial-gradient(circle, transparent 1%, getColorVar($paletteName, '60') 1%) center/15000%;
11
+ }
12
+
13
+ &:active {
14
+ background-color: getColorVar($paletteName, '70');
15
+ background-size: 100%;
16
+ transition: background 0s;
17
+ }
18
+ }
19
+
20
+ .button_ghost.button-#{$paletteName} {
21
+ color: getColorVar($paletteName, '50');
22
+ fill: getColorVar($paletteName, '50');
23
+ background-color: transparent;
24
+ background-position: center;
25
+ transition: background 0.8s;
26
+
27
+ &:hover {
28
+ background: getColorVar($paletteName, '5') radial-gradient(circle, transparent 1%, getColorVar($paletteName, '5') 1%) center/15000%;
29
+ }
30
+
31
+ &:active {
32
+ background-color: getColorVar($paletteName, '10');
33
+ background-size: 100%;
34
+ transition: background 0s;
35
+ }
36
+ }
37
+
38
+ .button_outline.button-#{$paletteName} {
39
+ color: getColorVar($paletteName, '50');
40
+ fill: getColorVar($paletteName, '50');
41
+ border-color: getColorVar($paletteName, '50');
42
+ border-style: solid;
43
+ border-width: 1px;
44
+ background-color: transparent;
45
+ background-position: center;
46
+ transition: background 0.8s;
47
+
48
+ &:hover {
49
+ background: getColorVar($paletteName, '5') radial-gradient(circle, transparent 1%, getColorVar($paletteName, '5') 1%) center/15000%;
50
+ }
51
+
52
+ &:active {
53
+ background-color: getColorVar($paletteName, '10');
54
+ background-size: 100%;
55
+ transition: background 0s;
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,3 @@
1
+ @function getColorVar($palette, $grade) {
2
+ @return var(--color-#{$palette}-#{$grade});
3
+ }
@@ -0,0 +1,11 @@
1
+ @use "sass:map";
2
+
3
+ @mixin getFontDescription($fontObject) {
4
+ @each $key, $value in $fontObject {
5
+ #{$key}: #{$value};
6
+ }
7
+ }
8
+
9
+ @mixin getFont($fonts, $fontName) {
10
+ @include getFontDescription(map.get($fonts, $fontName));
11
+ }
@@ -0,0 +1,4 @@
1
+ @mixin scrollable() {
2
+ overflow-x: auto;
3
+ overflow-y: overlay;
4
+ }
@@ -0,0 +1,3 @@
1
+ @mixin shadow($shadowName) {
2
+ box-shadow: var(--shadow-#{$shadowName});
3
+ }