coer-elements 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/components/index.d.ts +1 -0
  2. package/components/lib/coer-button/coer-button.component.d.ts +44 -0
  3. package/components/lib/components.module.d.ts +6 -4
  4. package/esm2022/components/index.mjs +2 -1
  5. package/esm2022/components/lib/coer-button/coer-button.component.mjs +133 -0
  6. package/esm2022/components/lib/components.module.mjs +15 -9
  7. package/esm2022/interfaces/index.mjs +7 -0
  8. package/esm2022/interfaces/lib/app-source.interface.mjs +2 -0
  9. package/esm2022/interfaces/lib/breadcrumb.interface.mjs +2 -0
  10. package/esm2022/interfaces/lib/coer-ref.interface.mjs +2 -0
  11. package/esm2022/interfaces/lib/go-back.interface.mjs +2 -0
  12. package/esm2022/interfaces/lib/patch.interface.mjs +2 -0
  13. package/esm2022/interfaces/lib/screen-size.interface.mjs +2 -0
  14. package/esm2022/public_api.mjs +2 -1
  15. package/esm2022/signals/index.mjs +4 -0
  16. package/esm2022/signals/lib/breakpoint.signal.mjs +4 -0
  17. package/esm2022/signals/lib/is-loading.signal.mjs +3 -0
  18. package/esm2022/signals/lib/is-modal-open.signal.mjs +3 -0
  19. package/esm2022/tools/index.mjs +9 -2
  20. package/esm2022/tools/lib/breadcrumbs.class.mjs +63 -0
  21. package/esm2022/tools/lib/control-value.class.mjs +46 -0
  22. package/esm2022/tools/lib/date-time.class.mjs +22 -0
  23. package/esm2022/tools/lib/files.class.mjs +91 -0
  24. package/esm2022/tools/lib/generi-tools.mjs +199 -0
  25. package/esm2022/tools/lib/page.class.mjs +156 -0
  26. package/esm2022/tools/lib/screen.class.mjs +43 -0
  27. package/esm2022/tools/lib/source.class.mjs +80 -0
  28. package/fesm2022/coer-elements.mjs +836 -54
  29. package/fesm2022/coer-elements.mjs.map +1 -1
  30. package/interfaces/index.d.ts +6 -0
  31. package/interfaces/lib/app-source.interface.d.ts +4 -0
  32. package/interfaces/lib/breadcrumb.interface.d.ts +6 -0
  33. package/interfaces/lib/coer-ref.interface.d.ts +10 -0
  34. package/interfaces/lib/go-back.interface.d.ts +6 -0
  35. package/interfaces/lib/patch.interface.d.ts +5 -0
  36. package/interfaces/lib/screen-size.interface.d.ts +5 -0
  37. package/package.json +1 -1
  38. package/public_api.d.ts +1 -0
  39. package/signals/index.d.ts +3 -0
  40. package/signals/lib/breakpoint.signal.d.ts +1 -0
  41. package/signals/lib/is-loading.signal.d.ts +1 -0
  42. package/signals/lib/is-modal-open.signal.d.ts +1 -0
  43. package/src/interfaces/index.ts +6 -0
  44. package/src/interfaces/lib/app-source.interface.ts +4 -0
  45. package/src/interfaces/lib/breadcrumb.interface.ts +6 -0
  46. package/src/interfaces/lib/coer-ref.interface.ts +11 -0
  47. package/src/interfaces/lib/go-back.interface.ts +6 -0
  48. package/src/interfaces/lib/patch.interface.ts +5 -0
  49. package/src/interfaces/lib/screen-size.interface.ts +5 -0
  50. package/tools/index.d.ts +8 -1
  51. package/tools/lib/breadcrumbs.class.d.ts +18 -0
  52. package/tools/lib/date-time.class.d.ts +11 -0
  53. package/tools/lib/files.class.d.ts +16 -0
  54. package/tools/lib/generi-tools.d.ts +32 -0
  55. package/tools/lib/page.class.d.ts +60 -0
  56. package/tools/lib/screen.class.d.ts +11 -0
  57. package/tools/lib/source.class.d.ts +20 -0
  58. package/esm2022/tools/lib/controlValue.mjs +0 -46
  59. /package/tools/lib/{controlValue.d.ts → control-value.class.d.ts} +0 -0
@@ -0,0 +1,11 @@
1
+ import { Observable } from "rxjs";
2
+ import { IScreenSize } from "../../interfaces";
3
+ export declare class Screen {
4
+ static get WINDOW_WIDTH(): number;
5
+ static get WINDOW_HEIGHT(): number;
6
+ static get DEVICE_WIDTH(): number;
7
+ static get DEVICE_HEIGHT(): number;
8
+ static get BREAKPOINT(): 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
9
+ /** */
10
+ static Resize: Observable<IScreenSize>;
11
+ }
@@ -0,0 +1,20 @@
1
+ import { IAppSource } from "../../interfaces";
2
+ export declare class Source {
3
+ private static readonly storage;
4
+ /** */
5
+ static Set(page: string): void;
6
+ /** */
7
+ private static Save;
8
+ /** */
9
+ static Get(): IAppSource | null;
10
+ /** */
11
+ static GetRoot(): IAppSource | null;
12
+ /** */
13
+ static SetPageResponse<T>(pageResponse: T): void;
14
+ /** */
15
+ static GetPageResponse<T>(): T | null;
16
+ /** */
17
+ static ClearPageResponse(): void;
18
+ /** */
19
+ static Reset(): void;
20
+ }
@@ -1,46 +0,0 @@
1
- import { NG_VALUE_ACCESSOR } from "@angular/forms";
2
- import { forwardRef } from "@angular/core";
3
- export const CONTROL_VALUE = (component) => {
4
- return {
5
- provide: NG_VALUE_ACCESSOR,
6
- useExisting: forwardRef(() => component),
7
- multi: true
8
- };
9
- };
10
- export class ControlValue {
11
- constructor() {
12
- this._isTouched = false;
13
- }
14
- get isTouched() {
15
- return this._isTouched;
16
- }
17
- /** */
18
- SetValue(value) {
19
- if (typeof this._UpdateValue === 'function') {
20
- this._UpdateValue(value);
21
- }
22
- this._value = value;
23
- }
24
- /** */
25
- SetTouched(isTouched) {
26
- if (typeof this._IsTouched === 'function') {
27
- this._IsTouched(isTouched);
28
- }
29
- this._isTouched = isTouched;
30
- }
31
- /** */
32
- writeValue(value) {
33
- this._value = value;
34
- }
35
- /** */
36
- registerOnChange(callback) {
37
- this._UpdateValue = callback;
38
- }
39
- /** */
40
- registerOnTouched(callback) {
41
- this._IsTouched = callback;
42
- }
43
- /** */
44
- setDisabledState(isDisabled) { }
45
- }
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbFZhbHVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvdG9vbHMvbGliL2NvbnRyb2xWYWx1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXdCLGlCQUFpQ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