ngx-sfc-common 0.0.5 → 0.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 (102) hide show
  1. package/esm2020/lib/components/button/button.component.mjs +6 -6
  2. package/esm2020/lib/components/checkmark/checkmark.component.mjs +6 -6
  3. package/esm2020/lib/components/close/close.component.mjs +4 -4
  4. package/esm2020/lib/components/delimeter/delimeter.component.mjs +16 -7
  5. package/esm2020/lib/components/dots/dots.component.mjs +4 -4
  6. package/esm2020/lib/components/hamburger/default/hamburger.component.mjs +12 -0
  7. package/esm2020/lib/components/hamburger/hamburger-base.component.mjs +23 -0
  8. package/esm2020/lib/components/hamburger/menu/hamburger-menu.component.mjs +18 -0
  9. package/esm2020/lib/components/icon/icon.component.mjs +21 -0
  10. package/esm2020/lib/components/index.mjs +4 -2
  11. package/esm2020/lib/components/load-container/load-container.component.mjs +9 -9
  12. package/esm2020/lib/components/load-container/service/load-more.service.mjs +3 -3
  13. package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +7 -7
  14. package/esm2020/lib/components/loader/bounce/bounce-loader.component.mjs +3 -3
  15. package/esm2020/lib/components/loader/circle/circle-loader.component.mjs +3 -3
  16. package/esm2020/lib/components/loader/loader-base.component.mjs +3 -3
  17. package/esm2020/lib/components/loader/service/loader.service.mjs +3 -3
  18. package/esm2020/lib/components/modal/directive/click/modal-open-on-click.directive.mjs +3 -3
  19. package/esm2020/lib/components/modal/directive/open/modal-open.directive.mjs +3 -3
  20. package/esm2020/lib/components/modal/footer/default/default-modal-footer.component.mjs +6 -6
  21. package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +6 -6
  22. package/esm2020/lib/components/modal/modal.component.mjs +4 -4
  23. package/esm2020/lib/components/modal/service/modal.service.mjs +3 -3
  24. package/esm2020/lib/components/pagination/pagination.component.mjs +7 -7
  25. package/esm2020/lib/components/pagination/service/pagination.service.mjs +3 -3
  26. package/esm2020/lib/components/sorting/service/sorting.service.mjs +3 -3
  27. package/esm2020/lib/components/sorting/sorting.component.mjs +6 -6
  28. package/esm2020/lib/components/template-content/template-content.component.mjs +5 -5
  29. package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +5 -5
  30. package/esm2020/lib/components/tooltip/tooltip.component.mjs +4 -4
  31. package/esm2020/lib/constants/ui.constants.mjs +2 -1
  32. package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +4 -4
  33. package/esm2020/lib/directives/component-size/component-size.directive.mjs +3 -3
  34. package/esm2020/lib/directives/destroy-parent/destroy-parent.directive.mjs +3 -3
  35. package/esm2020/lib/directives/dom-changes/dom-changes.directive.mjs +3 -3
  36. package/esm2020/lib/directives/mouse-down/mouse-down.directive.mjs +3 -3
  37. package/esm2020/lib/directives/scroll-into-view/scroll-into-view.directive.mjs +3 -3
  38. package/esm2020/lib/directives/scroll-tracker/scroll-tracker.directive.mjs +3 -3
  39. package/esm2020/lib/directives/show-hide-element/show-hide-element.directive.mjs +3 -3
  40. package/esm2020/lib/directives/template-reference/template-reference.directive.mjs +3 -3
  41. package/esm2020/lib/directives/throw-element-on-hover/throw-element-on-hover.directive.mjs +3 -3
  42. package/esm2020/lib/enums/media.enum.mjs +7 -4
  43. package/esm2020/lib/ngx-sfc-common.module.mjs +16 -10
  44. package/esm2020/lib/pipes/switch-multi-case/switch-multi-case.pipe.mjs +3 -3
  45. package/esm2020/lib/services/document-ref.service.mjs +3 -3
  46. package/esm2020/lib/services/resize.service.mjs +3 -3
  47. package/esm2020/lib/services/window-ref.service.mjs +3 -3
  48. package/fesm2015/ngx-sfc-common.mjs +204 -147
  49. package/fesm2015/ngx-sfc-common.mjs.map +1 -1
  50. package/fesm2020/ngx-sfc-common.mjs +204 -147
  51. package/fesm2020/ngx-sfc-common.mjs.map +1 -1
  52. package/{ngx-sfc-common.d.ts → index.d.ts} +0 -0
  53. package/lib/components/button/button.component.d.ts +1 -1
  54. package/lib/components/checkmark/checkmark.component.d.ts +1 -1
  55. package/lib/components/close/close.component.d.ts +1 -1
  56. package/lib/components/delimeter/delimeter.component.d.ts +3 -1
  57. package/lib/components/dots/dots.component.d.ts +1 -1
  58. package/lib/components/hamburger/default/hamburger.component.d.ts +6 -0
  59. package/lib/components/hamburger/hamburger-base.component.d.ts +7 -0
  60. package/lib/components/hamburger/menu/hamburger-menu.component.d.ts +7 -0
  61. package/lib/components/icon/icon.component.d.ts +9 -0
  62. package/lib/components/index.d.ts +3 -1
  63. package/lib/components/load-container/load-container.component.d.ts +1 -1
  64. package/lib/components/load-more-button/load-more-button.component.d.ts +1 -1
  65. package/lib/components/loader/bounce/bounce-loader.component.d.ts +1 -1
  66. package/lib/components/loader/circle/circle-loader.component.d.ts +1 -1
  67. package/lib/components/loader/loader-base.component.d.ts +1 -1
  68. package/lib/components/modal/directive/click/modal-open-on-click.directive.d.ts +1 -1
  69. package/lib/components/modal/directive/open/modal-open.directive.d.ts +1 -1
  70. package/lib/components/modal/footer/default/default-modal-footer.component.d.ts +1 -1
  71. package/lib/components/modal/header/default/default-modal-header.component.d.ts +1 -1
  72. package/lib/components/modal/modal.component.d.ts +1 -1
  73. package/lib/components/pagination/pagination.component.d.ts +1 -1
  74. package/lib/components/sorting/sorting.component.d.ts +1 -1
  75. package/lib/components/template-content/template-content.component.d.ts +1 -1
  76. package/lib/components/toggle-switcher/toggle-switcher.component.d.ts +1 -1
  77. package/lib/components/tooltip/tooltip.component.d.ts +1 -1
  78. package/lib/constants/ui.constants.d.ts +1 -0
  79. package/lib/directives/click-outside/click-outside.directive.d.ts +1 -1
  80. package/lib/directives/component-size/component-size.directive.d.ts +1 -1
  81. package/lib/directives/destroy-parent/destroy-parent.directive.d.ts +1 -1
  82. package/lib/directives/dom-changes/dom-changes.directive.d.ts +1 -1
  83. package/lib/directives/mouse-down/mouse-down.directive.d.ts +1 -1
  84. package/lib/directives/scroll-into-view/scroll-into-view.directive.d.ts +1 -1
  85. package/lib/directives/scroll-tracker/scroll-tracker.directive.d.ts +1 -1
  86. package/lib/directives/show-hide-element/show-hide-element.directive.d.ts +1 -1
  87. package/lib/directives/template-reference/template-reference.directive.d.ts +1 -1
  88. package/lib/directives/throw-element-on-hover/throw-element-on-hover.directive.d.ts +1 -1
  89. package/lib/enums/media.enum.d.ts +6 -3
  90. package/lib/ngx-sfc-common.module.d.ts +20 -18
  91. package/lib/pipes/switch-multi-case/switch-multi-case.pipe.d.ts +1 -1
  92. package/package.json +5 -5
  93. package/styles/_colors.scss +48 -0
  94. package/styles/_index.scss +2 -0
  95. package/styles/_mixins.scss +48 -0
  96. package/styles/_variables.scss +7 -0
  97. package/styles/themes/_dark.scss +17 -0
  98. package/styles/themes/_default.scss +18 -0
  99. package/styles/themes/_yellow.scss +3 -0
  100. package/_ngx-sfc-common.styles.scss +0 -121
  101. package/esm2020/lib/components/hamburger/hamburger.component.mjs +0 -24
  102. package/lib/components/hamburger/hamburger.component.d.ts +0 -7
@@ -1,121 +0,0 @@
1
- // default
2
- $color-default: #545e61 !default;
3
- $color-hover-default: #2bbbad !default;
4
- $color-disabled-default: #bdbdbd !default;
5
- $background-gradient-default: linear-gradient(
6
- to right,
7
- rgb(0 0 0 / 0%) 0%,
8
- rgb(0 0 0 / 30%) 17%,
9
- rgb(0 0 0 / 30%) 83%,
10
- rgb(0 0 0 / 0%) 100%
11
- );
12
-
13
- // default
14
- $color-dark: #ccd1d9 !default;
15
- $color-disabled-dark: #656d78 !default;
16
- $background-gradient-dark: linear-gradient(
17
- to right,
18
- rgb(255 255 255 / 0%) 0%,
19
- rgb(255 255 255 / 40%) 17%,
20
- rgb(255 255 255 / 40%) 83%,
21
- rgb(255 255 255 / 0%) 100%
22
- );
23
-
24
- // colors
25
- $color-0: #fff !default;
26
- $color-1: #f6f6f6 !default;
27
- $color-2: #f5f7fa !default;
28
- $color-3: #e6e9ed !default;
29
- $color-4: #e9e9e9 !default;
30
- $color-5: #d8d7d7 !default;
31
- $color-6: #ccd1d9 !default;
32
- $color-7: #aab2bd !default;
33
- $color-8: #656d78 !default;
34
- $color-9: #434a54 !default;
35
- $color-10: #34323d !default;
36
- $color-11: #1b1d1f !default;
37
-
38
- // shades
39
- $color-shadow-0: #00000005 !default;
40
- $color-shadow-1: #0000001a !default;
41
- $color-shadow-2: #00000030 !default;
42
- $color-shadow-3: #0000003b !default;
43
- $color-shadow-4: #0000004d !default;
44
- $color-shadow-5: #0009 !default;
45
-
46
- // result types
47
- $color-info: #4fc1e9;
48
- $color-success: #4ec07d;
49
- $color-failed: #e96075;
50
-
51
- // color types
52
- $color-red-0: #ed5565 !default;
53
- $color-red-1: #da4453 !default;
54
- $color-orange-0: #fc6e51 !default;
55
- $color-orange-1: #e9573f !default;
56
- $color-yellow-0: #ffce54 !default;
57
- $color-yellow-1: #fcbb42 !default;
58
- $color-yellow-2: #f8e976 !default;
59
- $color-green-0: #a0d468 !default;
60
- $color-green-1: #8cc152 !default;
61
- $color-green-2: #48cfad !default;
62
- $color-green-3: #37bc9b !default;
63
- $color-blue-0: #4fc1e9 !default;
64
- $color-blue-1: #3bafda !default;
65
- $color-blue-2: #5d9cec !default;
66
- $color-blue-3: #4a89dc !default;
67
- $color-magenta-0: #ac92ec !default;
68
- $color-magenta-1: #967adc !default;
69
- $color-pink-0: #ec87c0 !default;
70
- $color-pink-1: #d770ad !default;
71
-
72
-
73
- @mixin square-size($value, $multiplier: 1) {
74
- width: $value * $multiplier;
75
- height: $value * $multiplier;
76
- }
77
-
78
- @mixin theme-value($property, $value-common, $value-dark, $selector: "&") {
79
- #{$selector},
80
- :host-context(.sfc-default-theme) #{$selector} {
81
- #{$property}: $value-common;
82
- }
83
- :host-context(.sfc-dark-theme) #{$selector} {
84
- #{$property}: $value-dark;
85
- }
86
- }
87
-
88
- @mixin visibility($show) {
89
- @if $show {
90
- visibility: visible;
91
- opacity: 1;
92
- } @else {
93
- visibility: hidden;
94
- opacity: 0;
95
- }
96
- }
97
-
98
- @mixin scroll {
99
- ::ng-deep ::-webkit-scrollbar {
100
- @include square-size(0.375em);
101
- }
102
-
103
- ::ng-deep ::-webkit-scrollbar-track {
104
- border-radius: 0.625em;
105
- background: rgb(0 0 0 / 10%);
106
- }
107
-
108
- ::ng-deep ::-webkit-scrollbar-thumb {
109
- border-radius: 0.625em;
110
- background: rgb(0 0 0 / 20%);
111
- }
112
-
113
- ::ng-deep ::-webkit-scrollbar-thumb:hover {
114
- background: rgb(0 0 0 / 40%);
115
- }
116
-
117
- ::ng-deep ::-webkit-scrollbar-thumb:active {
118
- background: rgb(0 0 0 / 60%);
119
- }
120
- }
121
-
@@ -1,24 +0,0 @@
1
- import { Component, HostBinding, HostListener, Input } from '@angular/core';
2
- import { UIClass } from '../../enums';
3
- import * as i0 from "@angular/core";
4
- export class HamburgerComponent {
5
- constructor() {
6
- this.open = false;
7
- this.onClick = () => this.open = !this.open;
8
- }
9
- }
10
- HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11
- HamburgerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: HamburgerComponent, selector: "sfc-hamburger", inputs: { open: "open" }, host: { listeners: { "click": "onClick()" }, properties: { "class.open": "this.open" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, decorators: [{
13
- type: Component,
14
- args: [{ selector: 'sfc-hamburger', template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] }]
15
- }], propDecorators: { open: [{
16
- type: Input
17
- }, {
18
- type: HostBinding,
19
- args: ['class.' + UIClass.Open]
20
- }], onClick: [{
21
- type: HostListener,
22
- args: ['click']
23
- }] } });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFtYnVyZ2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZmMtY29tbW9uL3NyYy9saWIvY29tcG9uZW50cy9oYW1idXJnZXIvaGFtYnVyZ2VyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3Rz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ZW50LnNjc3MnXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgSGFtYnVyZ2VyQ29tcG9uZW50IHtcclxuXHJcbiAgQElucHV0KClcclxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLicgKyBVSUNsYXNzLk9wZW4pXHJcbiAgb3BlbjogYm9vbGVhbiA9IGZhbHNlO1xyXG5cclxuICBASG9zdExpc3RlbmVyKCdjbGljaycpXHJcbiAgb25DbGljayA9ICgpID0+IHRoaXMub3BlbiA9ICF0aGlzLm9wZW47XHJcbn1cclxuIiwiPGRpdiBjbGFzcz1cImNvbnRhaW5lclwiPlxyXG4gICAgPGRpdiBjbGFzcz1cImxpbmUgaGFsZiBzdGFydFwiPjwvZGl2PlxyXG4gICAgPGRpdiBjbGFzcz1cImxpbmVcIj48L2Rpdj5cclxuICAgIDxkaXYgY2xhc3M9XCJsaW5lIGhhbGYgZW5kXCI+PC9kaXY+XHJcbjwvZGl2PiJdfQ==
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HamburgerComponent {
3
- open: boolean;
4
- onClick: () => boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<HamburgerComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerComponent, "sfc-hamburger", never, { "open": "open"; }, {}, never, never>;
7
- }