@enigmatry/entry-components 1.15.1-preview.9 → 15.0.0-preview

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 (207) hide show
  1. package/README.md +2 -1
  2. package/assets/fonts/Montserrat/Montserrat-bold.eot +0 -0
  3. package/assets/fonts/Montserrat/Montserrat-bold.ttf +0 -0
  4. package/assets/fonts/Montserrat/Montserrat-bold.woff +0 -0
  5. package/assets/fonts/Montserrat/Montserrat-bold.woff2 +0 -0
  6. package/assets/fonts/OpenSans/OpenSans-bold.eot +0 -0
  7. package/assets/fonts/OpenSans/OpenSans-bold.ttf +0 -0
  8. package/assets/fonts/OpenSans/OpenSans-bold.woff +0 -0
  9. package/assets/fonts/OpenSans/OpenSans-bold.woff2 +0 -0
  10. package/assets/fonts/OpenSans/OpenSans-normal.eot +0 -0
  11. package/assets/fonts/OpenSans/OpenSans-normal.ttf +0 -0
  12. package/assets/fonts/OpenSans/OpenSans-normal.woff +0 -0
  13. package/assets/fonts/OpenSans/OpenSans-normal.woff2 +0 -0
  14. package/assets/fonts/Roboto/Roboto-bold.woff2 +0 -0
  15. package/assets/fonts/Roboto/Roboto-normal.woff2 +0 -0
  16. package/button/README.md +47 -0
  17. package/button/entry-button-config.d.ts +26 -0
  18. package/button/entry-button.directive.d.ts +18 -0
  19. package/button/entry-button.module.d.ts +9 -0
  20. package/{header → button}/index.d.ts +1 -1
  21. package/button/public-api.d.ts +3 -0
  22. package/dialog/README.md +2 -2
  23. package/dialog/entry-dialog-buttons-alignment.type.d.ts +1 -1
  24. package/dialog/entry-dialog-config.model.d.ts +1 -1
  25. package/dialog/entry-dialog.module.d.ts +4 -1
  26. package/esm2020/{header/enigmatry-entry-components-header.mjs → button/enigmatry-entry-components-button.mjs} +1 -1
  27. package/esm2020/button/entry-button-config.mjs +22 -0
  28. package/esm2020/button/entry-button.directive.mjs +56 -0
  29. package/esm2020/button/entry-button.module.mjs +28 -0
  30. package/esm2020/button/public-api.mjs +4 -0
  31. package/esm2020/dialog/dialogs/entry-dialog.component.mjs +8 -5
  32. package/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +1 -2
  33. package/esm2020/dialog/entry-dialog-config.model.mjs +3 -3
  34. package/esm2020/dialog/entry-dialog.module.mjs +16 -4
  35. package/esm2020/file-input/enigmatry-entry-components-file-input.mjs +5 -0
  36. package/esm2020/file-input/entry-file-input.component.mjs +197 -0
  37. package/esm2020/file-input/entry-file-input.module.mjs +40 -0
  38. package/esm2020/file-input/public-api.mjs +3 -0
  39. package/esm2020/permissions/enigmatry-entry-components-permissions.mjs +5 -0
  40. package/esm2020/permissions/permission-type.mjs +2 -0
  41. package/esm2020/permissions/permission.directive.mjs +35 -0
  42. package/esm2020/permissions/permission.guard.mjs +14 -0
  43. package/esm2020/permissions/permission.module.mjs +29 -0
  44. package/esm2020/permissions/permission.pipe.mjs +20 -0
  45. package/esm2020/permissions/permission.service.mjs +3 -0
  46. package/esm2020/permissions/public-api.mjs +6 -0
  47. package/esm2020/public-api.mjs +4 -3
  48. package/esm2020/search-filter/entry-search-filter.component.mjs +8 -6
  49. package/esm2020/search-filter/entry-search-filter.module.mjs +12 -4
  50. package/esm2020/search-filter/search-filter-input/search-filter-input.component.mjs +9 -4
  51. package/esm2020/table/components/entry-cell/entry-cell.component.mjs +23 -0
  52. package/esm2020/table/components/entry-cell-context-menu/entry-cell-context-menu.component.mjs +33 -0
  53. package/esm2020/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.mjs +25 -0
  54. package/esm2020/table/components/entry-table/entry-table.component.mjs +248 -0
  55. package/esm2020/table/components/index.mjs +5 -0
  56. package/esm2020/table/enigmatry-entry-components-table.mjs +5 -0
  57. package/esm2020/table/entry-table.module.mjs +84 -0
  58. package/esm2020/table/interfaces/cell-template.mjs +2 -0
  59. package/esm2020/table/interfaces/column-def.mjs +2 -0
  60. package/esm2020/table/interfaces/column-sort-prop.mjs +2 -0
  61. package/esm2020/table/interfaces/column-type-parameter.mjs +2 -0
  62. package/esm2020/table/interfaces/column-type.mjs +2 -0
  63. package/esm2020/table/interfaces/context-menu-item.mjs +2 -0
  64. package/esm2020/table/interfaces/entry-table-config.mjs +18 -0
  65. package/esm2020/table/interfaces/index.mjs +13 -0
  66. package/esm2020/table/interfaces/paged-query.mjs +34 -0
  67. package/esm2020/table/interfaces/pagination.mjs +2 -0
  68. package/esm2020/table/interfaces/row-class-formatter.mjs +2 -0
  69. package/esm2020/table/interfaces/row-context-menu-formatter.mjs +2 -0
  70. package/esm2020/table/interfaces/row-selection-formatter.mjs +2 -0
  71. package/esm2020/table/public-api.mjs +4 -0
  72. package/esm2020/validation/entry-form-errors.component.mjs +7 -3
  73. package/fesm2015/enigmatry-entry-components-button.mjs +110 -0
  74. package/fesm2015/enigmatry-entry-components-button.mjs.map +1 -0
  75. package/fesm2015/enigmatry-entry-components-dialog.mjs +22 -7
  76. package/fesm2015/enigmatry-entry-components-dialog.mjs.map +1 -1
  77. package/fesm2015/enigmatry-entry-components-file-input.mjs +237 -0
  78. package/fesm2015/enigmatry-entry-components-file-input.mjs.map +1 -0
  79. package/fesm2015/enigmatry-entry-components-permissions.mjs +98 -0
  80. package/fesm2015/enigmatry-entry-components-permissions.mjs.map +1 -0
  81. package/fesm2015/enigmatry-entry-components-search-filter.mjs +24 -9
  82. package/fesm2015/enigmatry-entry-components-search-filter.mjs.map +1 -1
  83. package/fesm2015/enigmatry-entry-components-table.mjs +459 -0
  84. package/fesm2015/enigmatry-entry-components-table.mjs.map +1 -0
  85. package/fesm2015/enigmatry-entry-components-validation.mjs +6 -2
  86. package/fesm2015/enigmatry-entry-components-validation.mjs.map +1 -1
  87. package/fesm2015/enigmatry-entry-components.mjs +3 -2
  88. package/fesm2015/enigmatry-entry-components.mjs.map +1 -1
  89. package/fesm2020/enigmatry-entry-components-button.mjs +107 -0
  90. package/fesm2020/enigmatry-entry-components-button.mjs.map +1 -0
  91. package/fesm2020/enigmatry-entry-components-dialog.mjs +22 -7
  92. package/fesm2020/enigmatry-entry-components-dialog.mjs.map +1 -1
  93. package/fesm2020/enigmatry-entry-components-file-input.mjs +240 -0
  94. package/fesm2020/enigmatry-entry-components-file-input.mjs.map +1 -0
  95. package/fesm2020/enigmatry-entry-components-permissions.mjs +97 -0
  96. package/fesm2020/enigmatry-entry-components-permissions.mjs.map +1 -0
  97. package/fesm2020/enigmatry-entry-components-search-filter.mjs +24 -9
  98. package/fesm2020/enigmatry-entry-components-search-filter.mjs.map +1 -1
  99. package/fesm2020/enigmatry-entry-components-table.mjs +450 -0
  100. package/fesm2020/enigmatry-entry-components-table.mjs.map +1 -0
  101. package/fesm2020/enigmatry-entry-components-validation.mjs +6 -2
  102. package/fesm2020/enigmatry-entry-components-validation.mjs.map +1 -1
  103. package/fesm2020/enigmatry-entry-components.mjs +3 -2
  104. package/fesm2020/enigmatry-entry-components.mjs.map +1 -1
  105. package/file-input/README.md +71 -0
  106. package/file-input/entry-file-input.component.d.ts +74 -0
  107. package/file-input/entry-file-input.module.d.ts +12 -0
  108. package/file-input/index.d.ts +5 -0
  109. package/file-input/public-api.d.ts +2 -0
  110. package/package.json +31 -15
  111. package/permissions/README.md +68 -0
  112. package/permissions/index.d.ts +5 -0
  113. package/permissions/permission-type.d.ts +3 -0
  114. package/permissions/permission.directive.d.ts +11 -0
  115. package/permissions/permission.guard.d.ts +2 -0
  116. package/permissions/permission.module.d.ts +9 -0
  117. package/permissions/permission.pipe.d.ts +11 -0
  118. package/permissions/permission.service.d.ts +4 -0
  119. package/permissions/public-api.d.ts +5 -0
  120. package/public-api.d.ts +3 -2
  121. package/search-filter/entry-search-filter.module.d.ts +4 -2
  122. package/search-filter/search-filter-input/search-filter-input.component.d.ts +4 -2
  123. package/styles/_generator.scss +15 -10
  124. package/styles/modules/_default-theme.scss +36 -59
  125. package/styles/modules/components/buttons/_generator.scss +8 -0
  126. package/styles/modules/components/dialogs/_generator.scss +8 -3
  127. package/styles/modules/components/forms/_generator.scss +12 -6
  128. package/styles/modules/components/inputs/_generator.scss +15 -0
  129. package/styles/modules/components/search-filter/_generator.scss +15 -0
  130. package/styles/modules/components/tables/_cells.scss +11 -8
  131. package/styles/modules/components/tables/_no-result.scss +1 -3
  132. package/styles/modules/components/tables/_rows.scss +10 -40
  133. package/styles/modules/components/tables/_sorting.scss +2 -9
  134. package/styles/modules/typography/_fonts.scss +35 -42
  135. package/styles/modules/vendors/angular-material/_generator.scss +46 -0
  136. package/styles/modules/vendors/angular-material/_palette-generator.scss +32 -0
  137. package/styles/modules/vendors/angular-material/_typography-generator.scss +101 -0
  138. package/styles/partials/core/components/_index.scss +3 -3
  139. package/styles/partials/core/components/dialogs/_general.scss +10 -64
  140. package/styles/partials/core/components/forms/_general.scss +9 -13
  141. package/styles/partials/core/components/search-filter/_general.scss +9 -0
  142. package/styles/partials/core/components/tables/_general.scss +17 -0
  143. package/styles/partials/generator-test.scss +38 -0
  144. package/table/README.md +76 -0
  145. package/table/components/entry-cell/entry-cell.component.d.ts +10 -0
  146. package/table/components/entry-cell-context-menu/entry-cell-context-menu.component.d.ts +14 -0
  147. package/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.d.ts +10 -0
  148. package/table/components/entry-table/entry-table.component.d.ts +81 -0
  149. package/table/components/index.d.ts +4 -0
  150. package/table/entry-table.module.d.ts +20 -0
  151. package/{toolbar → table}/index.d.ts +1 -1
  152. package/table/interfaces/cell-template.d.ts +4 -0
  153. package/table/interfaces/column-def.d.ts +20 -0
  154. package/table/interfaces/column-sort-prop.d.ts +5 -0
  155. package/table/interfaces/column-type-parameter.d.ts +9 -0
  156. package/table/interfaces/column-type.d.ts +1 -0
  157. package/table/interfaces/context-menu-item.d.ts +6 -0
  158. package/table/interfaces/entry-table-config.d.ts +11 -0
  159. package/table/interfaces/index.d.ts +12 -0
  160. package/table/interfaces/paged-query.d.ts +14 -0
  161. package/table/interfaces/pagination.d.ts +19 -0
  162. package/table/interfaces/row-class-formatter.d.ts +3 -0
  163. package/table/interfaces/row-context-menu-formatter.d.ts +4 -0
  164. package/table/interfaces/row-selection-formatter.d.ts +4 -0
  165. package/table/public-api.d.ts +3 -0
  166. package/esm2020/header/entry-header.component.mjs +0 -13
  167. package/esm2020/header/entry-header.module.mjs +0 -24
  168. package/esm2020/header/public-api.mjs +0 -3
  169. package/esm2020/toolbar/enigmatry-entry-components-toolbar.mjs +0 -5
  170. package/esm2020/toolbar/entry-toolbar.component.mjs +0 -43
  171. package/esm2020/toolbar/entry-toolbar.module.mjs +0 -24
  172. package/esm2020/toolbar/public-api.mjs +0 -3
  173. package/fesm2015/enigmatry-entry-components-header.mjs +0 -41
  174. package/fesm2015/enigmatry-entry-components-header.mjs.map +0 -1
  175. package/fesm2015/enigmatry-entry-components-toolbar.mjs +0 -71
  176. package/fesm2015/enigmatry-entry-components-toolbar.mjs.map +0 -1
  177. package/fesm2020/enigmatry-entry-components-header.mjs +0 -41
  178. package/fesm2020/enigmatry-entry-components-header.mjs.map +0 -1
  179. package/fesm2020/enigmatry-entry-components-toolbar.mjs +0 -71
  180. package/fesm2020/enigmatry-entry-components-toolbar.mjs.map +0 -1
  181. package/header/README.md +0 -41
  182. package/header/entry-header.component.d.ts +0 -6
  183. package/header/entry-header.module.d.ts +0 -8
  184. package/header/public-api.d.ts +0 -2
  185. package/styles/modules/components/forms/outlines/_field-outlines.scss +0 -45
  186. package/styles/modules/components/forms/outlines/_form-fields.scss +0 -26
  187. package/styles/modules/components/forms/outlines/_general.scss +0 -9
  188. package/styles/modules/components/forms/selectors/_checkboxes.scss +0 -55
  189. package/styles/modules/components/forms/selectors/_radio-buttons.scss +0 -39
  190. package/styles/modules/components/headers/_generator.scss +0 -12
  191. package/styles/modules/elements/_generator.scss +0 -20
  192. package/styles/modules/elements/anchors/_generator.scss +0 -16
  193. package/styles/modules/elements/buttons/_default.scss +0 -12
  194. package/styles/modules/elements/buttons/_generator.scss +0 -45
  195. package/styles/modules/states/_hover.scss +0 -18
  196. package/styles/partials/core/components/headers/_general.scss +0 -7
  197. package/styles/partials/core/components/tables/_action-cells.scss +0 -26
  198. package/styles/partials/core/components/tables/_cells.scss +0 -39
  199. package/styles/partials/core/components/tables/_index.scss +0 -5
  200. package/styles/partials/core/components/tables/_layout.scss +0 -47
  201. package/styles/partials/core/components/tables/_rows.scss +0 -13
  202. package/styles/partials/core/components/tables/_sorting.scss +0 -8
  203. package/styles/partials/test.scss +0 -35
  204. package/toolbar/README.md +0 -39
  205. package/toolbar/entry-toolbar.component.d.ts +0 -28
  206. package/toolbar/entry-toolbar.module.d.ts +0 -8
  207. package/toolbar/public-api.d.ts +0 -2
@@ -1,12 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
1
- %entry-button {
2
- display: inline-block;
3
- padding: 10px 20px;
4
- transition: .4s;
5
- border: 0;
6
- line-height: 1.25;
7
- cursor: pointer;
8
- text: {
9
- align: center;
10
- decoration: none;
11
- }
12
- }
@@ -1,45 +0,0 @@
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,18 +0,0 @@
1
- @mixin default($background, $hover-background, $color, $disabled-background) {
2
- background-color: $background;
3
-
4
- &:hover, &:active {
5
- background-color: $hover-background;
6
- color: $color;
7
- }
8
-
9
- &:disabled, &.disabled {
10
- background-color: $disabled-background;
11
- cursor: not-allowed;
12
-
13
- /* stylelint-disable-next-line selector-max-pseudo-class */
14
- &:hover {
15
- background-color: $disabled-background;
16
- }
17
- }
18
- }
@@ -1,7 +0,0 @@
1
- .entry-header {
2
- padding: 24px 16px;
3
-
4
- .content {
5
- padding-top: 20px;
6
- }
7
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,39 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- @use 'action-cells';
2
- @use 'cells';
3
- @use 'layout';
4
- @use 'rows';
5
- @use 'sorting';
@@ -1,47 +0,0 @@
1
- @use '@enigmatry/scss-foundation/src/modules/display/items';
2
-
3
- .entry-table {
4
- display: flex;
5
- position: relative;
6
- flex-direction: column;
7
- width: 100%;
8
-
9
- .mat-mdc-table-container {
10
- overflow: auto;
11
-
12
- &.mat-mdc-table-with-data {
13
- flex: 1;
14
- }
15
- }
16
-
17
- .mat-mdc-table {
18
- min-width: 100%;
19
- border-collapse: separate;
20
- }
21
- /* TODO(mdc-migration): The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
22
- .mat-paginator-hidden {
23
- display: none;
24
- }
25
- }
26
-
27
- .entry-table-layout {
28
- display: flex;
29
- flex: 1 1 auto;
30
- overflow: auto;
31
- }
32
-
33
- .entry-table-content {
34
- flex-direction: column;
35
- width: 0;
36
- }
37
-
38
- .entry-table-footer {
39
- position: relative;
40
- z-index: 1;
41
- }
42
-
43
- .entry-table-no-result {
44
- @include items.align-absolute-center();
45
- flex: 1;
46
- min-height: 50px;
47
- }
@@ -1,13 +0,0 @@
1
- .entry-table {
2
- .mat-row, .mat-header-row {
3
- height: 36px;
4
- }
5
- }
6
-
7
- .entry-table-menu {
8
- min-height: 40px;
9
-
10
- .mat-menu-content:not(:empty) {
11
- padding: 0;
12
- }
13
- }
@@ -1,8 +0,0 @@
1
- .entry-table {
2
- .mat-sort-header-icon {
3
- width: 18px;
4
- height: 18px;
5
- margin: 0 4px;
6
- font-size: 18px;
7
- }
8
- }
@@ -1,35 +0,0 @@
1
- @use '../generator';
2
-
3
- $custom-theme: (
4
- general: (
5
- colors: (
6
- primary: #FAE3C1
7
- ),
8
- font: (
9
- size: 13px
10
- ),
11
- buttons: (
12
- color: #AAA
13
- )
14
- ),
15
- forms: (
16
- fields: (
17
- infix-padding-top: 41px,
18
- outline: (
19
- border-hover: 2px solid #666
20
- )
21
- )
22
- ),
23
- tables: (
24
- cells: (
25
- first-cell-padding-left: 11px
26
- )
27
- ),
28
- headers: (
29
- title: (
30
- size: 41px
31
- )
32
- ),
33
- );
34
-
35
- @include generator.generate-from($custom-theme);
package/toolbar/README.md DELETED
@@ -1,39 +0,0 @@
1
- # Entry Toolbar
2
-
3
- Toolbar component (`<entry-toolbar>`) is used as a header section in the applications. It offers built-in support for title or logo on the left side, while other elements, like menu items, must be provided via content projection. The component is responsive in a way that on smaller screens (mobile/tablet) switches to _the compact view_ containing menu icon button used to toggle content visibility.
4
-
5
- ## Integration
6
-
7
- ```npm
8
- npm i @enigmatry/entry-components
9
- ```
10
-
11
- Import component package:
12
-
13
- ```ts
14
- import { EntryDialogModule } from '@enigmatry/entry-components/toolbar';
15
- ```
16
-
17
- Styles import:
18
-
19
- ```scss
20
- @use 'entry-components/styles/generate' as entry;
21
-
22
- @include entry.generate(APP_THEME, APP_TYPOGRAPHY);
23
- ```
24
-
25
- Where `APP_THEME` represents application theming configuration, while `APP_TYPOGRAPHY` represents application fonts configuration.
26
-
27
- ## Basic usage
28
-
29
- ```html
30
- <entry-toolbar
31
- title="Food & Drinks"
32
- titleUri="http://food-n-drinks.com">
33
- <ul>
34
- <li>Meals</li>
35
- <li>Order</li>
36
- <li>About</li>
37
- </ul>
38
- </entry-toolbar>
39
- ```
@@ -1,28 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Toolbar component (`<entry-toolbar>`) is used to render header section in the applications containing menu items as a content.
4
- * It offers build in support for toolbar title or logo, while other elements need to be provided via content projection.
5
- * On smaller screens (mobile/tablet) it switches to compact view containing menu icon button used to toggle content visibility.
6
- *
7
- * @example
8
- * ```html
9
- * <entry-toolbar
10
- * titleUri="http://www.enigmatry.com"
11
- * titleLogoSrc="assets/enigmatry-logo.png">
12
- * <!-- SOME CUSTOM HTML CODE THAT RENDERS MENU ITEMS -->
13
- * </entry-toolbar>
14
- * ```
15
- */
16
- export declare class EntryToolbarComponent {
17
- /** Toolbar title positioned in the left side */
18
- title: string;
19
- /** Url to be redirected to if user click on the title (default value '/') */
20
- titleUri: string;
21
- /** If provided, it replaces string title and renders logo image instead */
22
- titleLogoSrc: string | undefined;
23
- /** Used to hide the title section if not required (default value false) */
24
- hideTitle: boolean;
25
- menuOpened: boolean;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<EntryToolbarComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<EntryToolbarComponent, "entry-toolbar", never, { "title": "title"; "titleUri": "titleUri"; "titleLogoSrc": "titleLogoSrc"; "hideTitle": "hideTitle"; }, {}, never, ["*"], false, never>;
28
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./entry-toolbar.component";
3
- import * as i2 from "@angular/common";
4
- export declare class EntryToolbarModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<EntryToolbarModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<EntryToolbarModule, [typeof i1.EntryToolbarComponent], [typeof i2.CommonModule], [typeof i1.EntryToolbarComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<EntryToolbarModule>;
8
- }
@@ -1,2 +0,0 @@
1
- export { EntryToolbarComponent } from './entry-toolbar.component';
2
- export { EntryToolbarModule } from './entry-toolbar.module';