@enigmatry/entry-components 1.14.19-alpha.0.4 → 1.15.1-preview.10
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.
- package/button/README.md +47 -0
- package/button/entry-button-config.d.ts +26 -0
- package/button/entry-button.directive.d.ts +22 -0
- package/button/entry-button.module.d.ts +9 -0
- package/button/index.d.ts +5 -0
- package/button/public-api.d.ts +3 -0
- package/dialog/dialogs/alert/entry-alert-dialog.component.d.ts +1 -1
- package/dialog/dialogs/confirm/entry-confirm-dialog.component.d.ts +1 -1
- package/dialog/dialogs/entry-dialog.component.d.ts +1 -1
- package/dialog/entry-dialog-buttons-alignment.type.d.ts +1 -1
- package/esm2020/button/enigmatry-entry-components-button.mjs +5 -0
- package/esm2020/button/entry-button-config.mjs +22 -0
- package/esm2020/button/entry-button.directive.mjs +58 -0
- package/esm2020/button/entry-button.module.mjs +28 -0
- package/esm2020/button/public-api.mjs +4 -0
- package/esm2020/dialog/dialogs/alert/entry-alert-dialog.component.mjs +3 -3
- package/esm2020/dialog/dialogs/confirm/entry-confirm-dialog.component.mjs +3 -3
- package/esm2020/dialog/dialogs/entry-dialog.component.mjs +3 -3
- package/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +2 -1
- package/esm2020/dialog/entry-dialog.module.mjs +4 -4
- package/esm2020/dialog/entry-dialog.service.mjs +3 -3
- package/esm2020/header/entry-header.component.mjs +3 -3
- package/esm2020/header/entry-header.module.mjs +4 -4
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/search-filter/entry-search-filter.component.mjs +3 -3
- package/esm2020/search-filter/entry-search-filter.module.mjs +4 -4
- package/esm2020/search-filter/search-filter-input/search-filter-input.component.mjs +5 -5
- package/esm2020/toolbar/entry-toolbar.component.mjs +3 -3
- package/esm2020/toolbar/entry-toolbar.module.mjs +4 -4
- package/esm2020/validation/entry-display-control-validation.directive.mjs +3 -3
- package/esm2020/validation/entry-form-errors.component.mjs +4 -4
- package/esm2020/validation/entry-validation.module.mjs +4 -4
- package/fesm2015/enigmatry-entry-components-button.mjs +112 -0
- package/fesm2015/enigmatry-entry-components-button.mjs.map +1 -0
- package/fesm2015/enigmatry-entry-components-dialog.mjs +16 -16
- package/fesm2015/enigmatry-entry-components-header.mjs +7 -7
- package/fesm2015/enigmatry-entry-components-search-filter.mjs +12 -12
- package/fesm2015/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2015/enigmatry-entry-components-toolbar.mjs +7 -7
- package/fesm2015/enigmatry-entry-components-validation.mjs +11 -11
- package/fesm2015/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2015/enigmatry-entry-components.mjs +1 -0
- package/fesm2015/enigmatry-entry-components.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-button.mjs +109 -0
- package/fesm2020/enigmatry-entry-components-button.mjs.map +1 -0
- package/fesm2020/enigmatry-entry-components-dialog.mjs +16 -16
- package/fesm2020/enigmatry-entry-components-header.mjs +7 -7
- package/fesm2020/enigmatry-entry-components-search-filter.mjs +12 -12
- package/fesm2020/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components-toolbar.mjs +7 -7
- package/fesm2020/enigmatry-entry-components-validation.mjs +11 -11
- package/fesm2020/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2020/enigmatry-entry-components.mjs +1 -0
- package/fesm2020/enigmatry-entry-components.mjs.map +1 -1
- package/header/entry-header.component.d.ts +1 -1
- package/package.json +16 -8
- package/public-api.d.ts +1 -0
- package/search-filter/entry-search-filter.component.d.ts +1 -1
- package/search-filter/search-filter-input/search-filter-input.component.d.ts +1 -1
- package/search-filter/search-filter-params.type.d.ts +1 -1
- package/styles/_generator.scss +17 -0
- package/styles/modules/_default-theme.scss +90 -0
- package/styles/modules/components/dialogs/_generator.scss +11 -0
- package/styles/modules/components/forms/_generator.scss +9 -0
- package/styles/modules/components/forms/outlines/_field-outlines.scss +45 -0
- package/styles/modules/components/forms/outlines/_form-fields.scss +26 -0
- package/styles/modules/components/forms/outlines/_general.scss +9 -0
- package/styles/modules/components/forms/selectors/_checkboxes.scss +55 -0
- package/styles/modules/components/forms/selectors/_radio-buttons.scss +39 -0
- package/styles/modules/components/headers/_generator.scss +12 -0
- package/styles/modules/components/tables/_cells.scss +23 -0
- package/styles/modules/components/tables/_generator.scss +7 -0
- package/styles/modules/components/tables/_no-result.scss +12 -0
- package/styles/modules/components/tables/_rows.scss +53 -0
- package/styles/modules/components/tables/_sorting.scss +18 -0
- package/styles/modules/components/tables/_table-body.scss +11 -0
- package/styles/modules/elements/_generator.scss +20 -0
- package/styles/modules/elements/anchors/_generator.scss +16 -0
- package/styles/modules/elements/buttons/_default.scss +12 -0
- package/styles/modules/elements/buttons/_generator.scss +45 -0
- package/styles/modules/states/_hover.scss +11 -20
- package/styles/modules/typography/_fonts.scss +40 -55
- package/styles/partials/core/components/_index.scss +4 -0
- package/{dialog/styles → styles}/partials/core/components/dialogs/_general.scss +9 -10
- package/styles/partials/core/components/forms/_general.scss +32 -0
- package/styles/partials/core/components/headers/_general.scss +7 -0
- package/styles/partials/core/components/tables/_action-cells.scss +26 -0
- package/styles/partials/core/components/tables/_cells.scss +39 -0
- package/styles/partials/core/components/tables/_index.scss +5 -0
- package/styles/partials/core/components/tables/_layout.scss +47 -0
- package/styles/partials/core/components/tables/_rows.scss +13 -0
- package/styles/partials/core/components/tables/_sorting.scss +8 -0
- package/styles/partials/test.scss +35 -0
- package/styles/partials/theming.scss +1 -0
- package/toolbar/entry-toolbar.component.d.ts +1 -1
- package/validation/entry-display-control-validation.directive.d.ts +1 -1
- package/validation/entry-form-errors.component.d.ts +1 -1
- package/dialog/styles/modules/_generator.scss +0 -11
- package/dialog/styles/modules/components/dialogs/_general.scss +0 -11
- package/dialog/styles/modules/components/dialogs/footers/_general.scss +0 -26
- package/dialog/styles/modules/components/dialogs/headers/_general.scss +0 -16
- package/dialog/styles/modules/theming/_default-theming.scss +0 -29
- package/dialog/styles/partials/core/_index.scss +0 -3
- package/dialog/styles/partials/core/components/_index.scss +0 -1
- package/dialog/styles/partials/core/components/dialogs/_index.scss +0 -1
- package/dialog/styles/partials/core/elements/_general.scss +0 -10
- package/dialog/styles/partials/core/elements/_index.scss +0 -1
- package/dialog/styles/partials/core/layouts/_alignments.scss +0 -13
- package/dialog/styles/partials/core/layouts/_index.scss +0 -1
- package/dialog/styles/partials/main.scss +0 -1
- package/header/styles/modules/_generator.scss +0 -13
- package/header/styles/modules/components/buttons/_general.scss +0 -26
- package/header/styles/modules/components/headers/_general.scss +0 -13
- package/header/styles/modules/theming/_default-theming.scss +0 -21
- package/header/styles/partials/core/_index.scss +0 -3
- package/header/styles/partials/core/components/_index.scss +0 -2
- package/header/styles/partials/core/components/buttons/_general.scss +0 -42
- package/header/styles/partials/core/components/buttons/_index.scss +0 -1
- package/header/styles/partials/core/components/headers/_general.scss +0 -9
- package/header/styles/partials/core/components/headers/_index.scss +0 -1
- package/header/styles/partials/core/elements/_index.scss +0 -1
- package/header/styles/partials/core/elements/headings.scss +0 -3
- package/header/styles/partials/core/layouts/_alignment.scss +0 -6
- package/header/styles/partials/core/layouts/_index.scss +0 -1
- package/header/styles/partials/main.scss +0 -1
- package/styles/_generate.scss +0 -15
- package/styles/modules/_breakpoints.scss +0 -37
- package/styles/modules/_generate.scss +0 -5
- package/styles/modules/_variables.scss +0 -22
- package/styles/modules/theming/_default-theming.scss +0 -9
- package/styles/modules/typography/_generate.scss +0 -7
- package/toolbar/styles/modules/_generate.scss +0 -10
- package/toolbar/styles/modules/components/toolbar/_general.scss +0 -34
- package/toolbar/styles/modules/theming/_default-theming.scss +0 -8
- package/toolbar/styles/partials/core/_index.scss +0 -1
- package/toolbar/styles/partials/core/components/_index.scss +0 -1
- package/toolbar/styles/partials/core/components/toolbar/_general.scss +0 -100
- package/toolbar/styles/partials/core/components/toolbar/_index.scss +0 -1
- package/toolbar/styles/partials/main.scss +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.mat-checkbox {
|
|
5
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
6
|
+
.mat-checkbox-inner-container {
|
|
7
|
+
width: map.get($theme, 'forms', 'checkboxes', 'width');
|
|
8
|
+
height: map.get($theme, 'forms', 'checkboxes', 'height');
|
|
9
|
+
background-color: map.get($theme, 'forms', 'checkboxes', 'background-color');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
13
|
+
.mat-checkbox-label {
|
|
14
|
+
white-space: map.get($theme, 'forms', 'checkboxes', 'label-breaking');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
18
|
+
.mat-checkbox-frame {
|
|
19
|
+
border: map.get($theme, 'forms', 'checkboxes', 'border');
|
|
20
|
+
border-radius: map.get($theme, 'forms', 'checkboxes', 'border-radius');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
24
|
+
.mat-checkbox-checkmark-path {
|
|
25
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
26
|
+
stroke: map.get($theme, 'forms', 'checkboxes', 'checkmark-color') !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
31
|
+
.mat-checkbox-frame {
|
|
32
|
+
border: map.get($theme, 'forms', 'checkboxes', 'border-hover');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
37
|
+
&.mat-checkbox-checked {
|
|
38
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
39
|
+
.mat-checkbox-background {
|
|
40
|
+
background-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
|
|
41
|
+
|
|
42
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
43
|
+
.mat-checkbox-checkmark-path {
|
|
44
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
45
|
+
stroke: map.get($theme, 'forms', 'checkboxes', 'selected-checkmark-color') !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
50
|
+
.mat-checkbox-frame {
|
|
51
|
+
border-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
5
|
+
.mat-radio-group {
|
|
6
|
+
|
|
7
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
8
|
+
.mat-radio-label {
|
|
9
|
+
align-items: map.get($theme, 'forms', 'radio-buttons', 'align');
|
|
10
|
+
white-space: map.get($theme, 'forms', 'radio-buttons', 'white-space');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$background: map.get($theme, 'general', 'inputs', 'background-color');
|
|
14
|
+
|
|
15
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
16
|
+
.mat-radio-button {
|
|
17
|
+
|
|
18
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
19
|
+
.mat-radio-outer-circle {
|
|
20
|
+
border-color: $background;
|
|
21
|
+
background-color: $background;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
25
|
+
&.mat-radio-checked {
|
|
26
|
+
|
|
27
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
28
|
+
.mat-radio-outer-circle {
|
|
29
|
+
border-color: $background;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
33
|
+
.mat-radio-inner-circle {
|
|
34
|
+
background-color: map.get($theme, 'general', 'colors', 'primary');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.entry-header {
|
|
5
|
+
background-color: map.get($theme, 'general', 'colors', 'primary');
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
9
|
+
font-size: map.get($theme, 'headers', 'title', 'size');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.mat-mdc-cell {
|
|
5
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.mat-mdc-cell, .mat-mdc-header-cell {
|
|
9
|
+
font-size: map.get($theme, 'general', 'font', 'size');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.mat-mdc-header-cell:first-of-type, .mat-mdc-cell:first-of-type, .mat-mdc-footer-cell:first-of-type {
|
|
13
|
+
padding-left: map.get($theme, 'tables', 'cells', 'first-cell-padding-left');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mat-mdc-header-cell:last-of-type, .mat-mdc-cell:last-of-type, .mat-mdc-footer-cell:last-of-type {
|
|
17
|
+
padding-right: map.get($theme, 'tables', 'cells', 'last-cell-padding-right');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.entry-table-checkbox-cell, .entry-table-context-menu-cell {
|
|
21
|
+
min-width: map.get($theme, 'tables', 'cells', 'min-width');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.entry-table-no-result {
|
|
5
|
+
text-transform: map.get($theme, 'tables', 'contents', 'no-result', 'text-transform');
|
|
6
|
+
|
|
7
|
+
font: {
|
|
8
|
+
size: map.get($theme, 'tables', 'contents', 'no-result', 'font-size');
|
|
9
|
+
weight: map.get($theme, 'tables', 'contents', 'no-result', 'font-weight');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@enigmatry/scss-foundation/src/modules/lists/row-coloring' as list;
|
|
3
|
+
|
|
4
|
+
@mixin generate-from($theme) {
|
|
5
|
+
.mat-mdc-row {
|
|
6
|
+
$edge-selected-color: map.get($theme, 'forms', 'checkboxes', 'selected-border-color');
|
|
7
|
+
|
|
8
|
+
@include list.row-coloring(map.get($theme, 'tables', 'rows', 'odd-even-background'),
|
|
9
|
+
map.get($theme, 'tables', 'rows', 'odd-even-row'));
|
|
10
|
+
|
|
11
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
12
|
+
.mat-checkbox-inner-container {
|
|
13
|
+
background-color: map.get($theme, 'forms', 'checkboxes', 'background-color');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.selected {
|
|
17
|
+
background-color: map.get($theme, 'tables', 'rows', 'selected-background-color');
|
|
18
|
+
|
|
19
|
+
.mat-mdc-cell {
|
|
20
|
+
color: map.get($theme, 'tables', 'rows', 'selected-color');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
24
|
+
.mat-checkbox-checked {
|
|
25
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
26
|
+
.mat-checkbox-background {
|
|
27
|
+
background-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
|
|
28
|
+
|
|
29
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
30
|
+
/* stylelint-disable-next-line max-nesting-depth, selector-max-combinators, selector-max-compound-selectors */
|
|
31
|
+
.mat-checkbox-checkmark-path {
|
|
32
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
33
|
+
stroke: $edge-selected-color !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
38
|
+
.mat-checkbox-frame {
|
|
39
|
+
border-color: $edge-selected-color;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mat-row-disabled {
|
|
46
|
+
background-color: map.get($theme, 'general', 'colors', 'disabled-light');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.entry-table-menu .context-menu-item:hover {
|
|
50
|
+
background-color: map.get($theme, 'general', 'colors', 'accent');
|
|
51
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.mat-sort-header-sorted {
|
|
5
|
+
font: {
|
|
6
|
+
size: map.get($theme, 'general', 'font', 'size');
|
|
7
|
+
weight: map.get($theme, 'tables', 'columns', 'sorted', 'font-weight');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mat-sort-header-sorted, .mat-sort-header-arrow {
|
|
12
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.mat-sort-header-content {
|
|
16
|
+
text-align: map.get($theme, 'tables', 'columns', 'sorted', 'content-align');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../default-theme' as default;
|
|
3
|
+
@use '../typography/fonts';
|
|
4
|
+
@use 'anchors/generator' as anchors;
|
|
5
|
+
@use 'buttons/generator' as buttons;
|
|
6
|
+
|
|
7
|
+
$default-theme: default.$theme;
|
|
8
|
+
|
|
9
|
+
@mixin generate-from($custom-theme: ()) {
|
|
10
|
+
$merged-theme: map.deep-merge($default-theme, $custom-theme);
|
|
11
|
+
|
|
12
|
+
$font-family: map.get($merged-theme, 'general', 'font', 'family');
|
|
13
|
+
|
|
14
|
+
@if $font-family == '' {
|
|
15
|
+
// @include fonts.generate-default-font();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include anchors.generate-from($merged-theme);
|
|
19
|
+
@include buttons.generate-from($merged-theme);
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
$colors: map.get($theme, 'general', 'colors');
|
|
5
|
+
$primary-color: map.get($colors, 'primary');
|
|
6
|
+
$accent-color: map.get($colors, 'accent');
|
|
7
|
+
|
|
8
|
+
.entry-link {
|
|
9
|
+
color: $primary-color;
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
color: $accent-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'default';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../typography/fonts';
|
|
4
|
+
@use '../../states/hover';
|
|
5
|
+
|
|
6
|
+
@mixin generate-from($theme) {
|
|
7
|
+
$button-color: map.get($theme, 'general', 'buttons', 'color');
|
|
8
|
+
$colors: map.get($theme, 'general', 'colors');
|
|
9
|
+
$primary-color: map.get($colors, 'primary');
|
|
10
|
+
$accent-color: map.get($colors, 'accent');
|
|
11
|
+
$disabled-color: map.get($colors, 'disabled');
|
|
12
|
+
|
|
13
|
+
.entry-button-accent, .entry-button-primary, .entry-button-dark {
|
|
14
|
+
@extend %entry-button;
|
|
15
|
+
@include fonts.font-family-from($theme) {
|
|
16
|
+
@include fonts.main-bolded-font();
|
|
17
|
+
}
|
|
18
|
+
color: $button-color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.entry-button-primary {
|
|
22
|
+
@include hover.default($primary-color, $accent-color, $button-color, $disabled-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.entry-button-accent {
|
|
26
|
+
@include hover.default($accent-color, $primary-color, $button-color, $disabled-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.entry-button-dark {
|
|
30
|
+
@include hover.default(map.get($colors, 'dark'), $primary-color, $button-color, $disabled-color);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.entry-button-blank {
|
|
34
|
+
@include fonts.font-family-from($theme) {
|
|
35
|
+
@include fonts.main-font();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include hover.default(transparent, transparent, $accent-color, transparent);
|
|
39
|
+
color: $primary-color;
|
|
40
|
+
|
|
41
|
+
&:disabled {
|
|
42
|
+
color: $primary-color;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
@
|
|
1
|
+
@mixin default($background, $hover-background, $color, $disabled-background) {
|
|
2
|
+
background-color: $background;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
color: $default;
|
|
7
|
-
|
|
8
|
-
&:active {
|
|
9
|
-
color: $hover;
|
|
4
|
+
&:hover, &:active {
|
|
5
|
+
background-color: $hover-background;
|
|
6
|
+
color: $color;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
&:disabled, &.disabled {
|
|
10
|
+
background-color: $disabled-background;
|
|
11
|
+
cursor: not-allowed;
|
|
12
|
+
|
|
13
|
+
/* stylelint-disable-next-line selector-max-pseudo-class */
|
|
15
14
|
&:hover {
|
|
16
|
-
color: $
|
|
15
|
+
background-color: $disabled-background;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin background-hover($regular-background, $hover-background) {
|
|
22
|
-
background-color: $regular-background;
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
background-color: $hover-background;
|
|
26
|
-
}
|
|
27
18
|
}
|
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
@use 'sass:string';
|
|
2
1
|
@use 'sass:map';
|
|
3
|
-
@use 'sass:math';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
$font-path: '../../../../assets/fonts/';
|
|
4
|
+
$font-sources: (
|
|
5
|
+
(
|
|
6
|
+
name: 'OpenSans',
|
|
7
|
+
style: normal,
|
|
8
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
9
|
+
),
|
|
10
|
+
(
|
|
11
|
+
name: 'OpenSans',
|
|
12
|
+
style: bold,
|
|
13
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
14
|
+
),
|
|
15
|
+
(
|
|
16
|
+
name: 'Montserrat',
|
|
17
|
+
style: bold,
|
|
18
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
19
|
+
)
|
|
20
|
+
);
|
|
8
21
|
|
|
22
|
+
@mixin generate-default-font() {
|
|
9
23
|
@each $font in $font-sources {
|
|
10
24
|
$name: map.get($font, name);
|
|
11
25
|
$style: map.get($font, style);
|
|
12
26
|
$formats: map.get($font, formats);
|
|
13
|
-
|
|
27
|
+
|
|
14
28
|
@each $format in $formats {
|
|
15
29
|
$url: '#{$font-path}#{$name}/#{$name}-#{$style}.#{$format}';
|
|
16
|
-
|
|
30
|
+
|
|
17
31
|
@font-face {
|
|
18
32
|
font: {
|
|
19
33
|
family: '#{$name}-#{$style}';
|
|
@@ -23,64 +37,35 @@
|
|
|
23
37
|
}
|
|
24
38
|
}
|
|
25
39
|
}
|
|
26
|
-
|
|
27
|
-
// Generate icomoon icons font face:
|
|
28
|
-
@include entry-icomoon-icons($font-path);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// TODO: Hardcoded icons font, must be configurable but also to support default value!
|
|
32
|
-
@mixin entry-icomoon-icons($font-path) {
|
|
33
|
-
@font-face {
|
|
34
|
-
font-family: 'icomoon';
|
|
35
|
-
font-style: normal;
|
|
36
|
-
font-weight: normal;
|
|
37
|
-
src: url($font-path + 'icomoon/fonts/icomoon.eot?s68r7n');
|
|
38
|
-
src: url($font-path + 'icomoon/fonts/icomoon.eot?s68r7n#iefix') format('embedded-opentype'),
|
|
39
|
-
url($font-path + 'icomoon/fonts/icomoon.ttf?s68r7n') format('truetype'),
|
|
40
|
-
url($font-path + 'icomoon/fonts//icomoon.woff?s68r7n') format('woff'),
|
|
41
|
-
url($font-path + 'icomoon/fonts//icomoon.svg?s68r7n#icomoon') format('svg');
|
|
42
|
-
font-display: block;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
[class ^= 'icon-'], [class *= ' icon-'] {
|
|
46
|
-
/* use !important to prevent issues with browser extensions that change fonts */
|
|
47
|
-
font-family: 'icomoon' !important;
|
|
48
|
-
|
|
49
|
-
/* Better Font Rendering =========== */
|
|
50
|
-
-webkit-font-smoothing: antialiased;
|
|
51
|
-
-moz-osx-font-smoothing: grayscale;
|
|
52
|
-
font-style: normal;
|
|
53
|
-
font-variant: normal;
|
|
54
|
-
font-weight: normal;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
text-transform: none;
|
|
57
|
-
speak: never;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.icon-close::before {
|
|
61
|
-
content: '\e900';
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.icon-menu:before {
|
|
65
|
-
content: "\e9bd";
|
|
66
|
-
}
|
|
67
40
|
}
|
|
68
41
|
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
@mixin -font($family, $size) {
|
|
42
|
+
@mixin font($family: 'OpenSans-normal', $size: 14px) {
|
|
72
43
|
font: {
|
|
73
44
|
family: $family;
|
|
74
45
|
size: $size;
|
|
75
46
|
};
|
|
76
47
|
}
|
|
48
|
+
|
|
77
49
|
@mixin main-font($size: 14px) {
|
|
78
|
-
@include
|
|
50
|
+
@include font('OpenSans-normal', $size);
|
|
79
51
|
}
|
|
52
|
+
|
|
80
53
|
@mixin main-bolded-font($size: 14px) {
|
|
81
|
-
@include
|
|
54
|
+
@include font('OpenSans-Bold', $size);
|
|
82
55
|
}
|
|
56
|
+
|
|
83
57
|
@mixin title-font($size: 20px) {
|
|
84
|
-
@include
|
|
58
|
+
@include font('Montserrat-bold', $size);
|
|
85
59
|
}
|
|
86
|
-
|
|
60
|
+
|
|
61
|
+
@mixin font-family-from($theme) {
|
|
62
|
+
$font-family: map.get($theme, 'general', 'font', 'family');
|
|
63
|
+
|
|
64
|
+
@if $font-family == '' {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
@else {
|
|
68
|
+
$font-size: map.get($theme, 'general', 'font', 'size');
|
|
69
|
+
@include font($font-family, $font-size);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use '@enigmatry/scss-foundation/src/modules/display/items';
|
|
3
|
-
@use '../../../../../../styles/modules/variables' as vars;
|
|
4
|
-
@use '../../../../../../styles/modules/states/hover';
|
|
5
|
-
@use '../../../../../../styles/modules/typography/fonts' as fonts;
|
|
6
3
|
|
|
7
4
|
$border-dark: #000;
|
|
5
|
+
$default-gap: 16px;
|
|
6
|
+
$large-gap: calc(#{$default-gap} * 2);
|
|
8
7
|
|
|
8
|
+
// TODO: Refactor me. Rename things adequately taking care of context, try minimizing styles required for this to look as expected.
|
|
9
9
|
.dialog-container {
|
|
10
10
|
/* stylelint-disable-next-line declaration-no-important */
|
|
11
11
|
position: absolute !important;
|
|
12
|
-
top:
|
|
12
|
+
top: $large-gap;
|
|
13
13
|
width: 100%;
|
|
14
14
|
max: {
|
|
15
15
|
/* stylelint-disable-next-line declaration-no-important */
|
|
16
16
|
width: 700px !important;
|
|
17
17
|
/* stylelint-disable-next-line declaration-no-important */
|
|
18
|
-
height: calc(100% - 2 *
|
|
18
|
+
height: calc(100% - 2 * $large-gap) !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&.wide {
|
|
@@ -37,12 +37,11 @@ $border-dark: #000;
|
|
|
37
37
|
@include items.fully-align(center, space-between, row, nowrap);
|
|
38
38
|
|
|
39
39
|
.title {
|
|
40
|
-
// @include fonts.title-font();
|
|
41
40
|
line-height: 1.2;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.close-button {
|
|
45
|
-
margin-left:
|
|
44
|
+
margin-left: $default-gap;
|
|
46
45
|
border: none;
|
|
47
46
|
background: none;
|
|
48
47
|
}
|
|
@@ -50,8 +49,8 @@ $border-dark: #000;
|
|
|
50
49
|
|
|
51
50
|
.dialog-content {
|
|
52
51
|
margin: {
|
|
53
|
-
top:
|
|
54
|
-
bottom:
|
|
52
|
+
top: $default-gap;
|
|
53
|
+
bottom: $large-gap;
|
|
55
54
|
}
|
|
56
55
|
line-height: 1.4;
|
|
57
56
|
|
|
@@ -72,7 +71,7 @@ $border-dark: #000;
|
|
|
72
71
|
|
|
73
72
|
.dialog-radio-button {
|
|
74
73
|
display: block;
|
|
75
|
-
margin-top:
|
|
74
|
+
margin-top: $default-gap;
|
|
76
75
|
white-space: break;
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use '@enigmatry/scss-foundation/src/modules/display/items';
|
|
2
|
+
|
|
3
|
+
.entry-form {
|
|
4
|
+
.action-buttons {
|
|
5
|
+
margin-top: 25px;
|
|
6
|
+
|
|
7
|
+
.button {
|
|
8
|
+
margin-left: 10px;
|
|
9
|
+
|
|
10
|
+
&:first-child {
|
|
11
|
+
margin-left: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mat-form-field-appearance-outline .mat-form-field-should-float .mat-form-field-label {
|
|
18
|
+
top: 31px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.datetimepicker {
|
|
22
|
+
.mat-form-field-appearance-outline .mat-form-field-infix {
|
|
23
|
+
padding: {
|
|
24
|
+
top: 8px;
|
|
25
|
+
bottom: 8px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.entry-date-time-picker {
|
|
31
|
+
@include items.fully-align(baseline, space-between, row, nowrap);
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use '@enigmatry/scss-foundation/src/modules/display/items';
|
|
2
|
+
|
|
3
|
+
.entry-table .mat-mdc-icon-button {
|
|
4
|
+
width: unset;
|
|
5
|
+
@include items.align-center();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.entry-table-checkbox-cell, .entry-table-context-menu-cell {
|
|
9
|
+
flex: none;
|
|
10
|
+
width: 56px;
|
|
11
|
+
max-width: 40px;
|
|
12
|
+
|
|
13
|
+
.mat-mdc-checkbox {
|
|
14
|
+
display: flex;
|
|
15
|
+
margin: 0 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
|
|
19
|
+
.mat-checkbox-inner-container {
|
|
20
|
+
margin-left: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mat-mdc-icon-button {
|
|
24
|
+
padding-top: 2px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.entry-table {
|
|
2
|
+
.mat-mdc-cell, .mat-mdc-header-cell {
|
|
3
|
+
padding: 0 10px;
|
|
4
|
+
border-bottom: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.mat-mdc-header-cell, .mat-mdc-footer-cell, .mat-mdc-cell {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 4px 10px;
|
|
10
|
+
|
|
11
|
+
&.entry-table-checkbox-cell {
|
|
12
|
+
padding: {
|
|
13
|
+
right: 10px;
|
|
14
|
+
left: 10px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.mat-mdc-table {
|
|
20
|
+
.mat-mdc-header-cell, .mat-mdc-footer-cell, .mat-mdc-cell {
|
|
21
|
+
&:not(.entry-table-checkbox-cell) {
|
|
22
|
+
min-width: 80px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mat-header-cell-inner {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.currency {
|
|
33
|
+
text-align: right;
|
|
34
|
+
|
|
35
|
+
.mat-header-cell-inner {
|
|
36
|
+
justify-content: right;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|