coer-elements 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/esm2022/interfaces/index.mjs +7 -0
  2. package/esm2022/interfaces/lib/app-source.interface.mjs +2 -0
  3. package/esm2022/interfaces/lib/breadcrumb.interface.mjs +2 -0
  4. package/esm2022/interfaces/lib/coer-ref.interface.mjs +2 -0
  5. package/esm2022/interfaces/lib/go-back.interface.mjs +2 -0
  6. package/esm2022/interfaces/lib/patch.interface.mjs +2 -0
  7. package/esm2022/interfaces/lib/screen-size.interface.mjs +2 -0
  8. package/esm2022/public_api.mjs +2 -1
  9. package/esm2022/signals/index.mjs +4 -0
  10. package/esm2022/signals/lib/breakpoint.signal.mjs +4 -0
  11. package/esm2022/signals/lib/is-loading.signal.mjs +3 -0
  12. package/esm2022/signals/lib/is-modal-open.signal.mjs +3 -0
  13. package/esm2022/tools/index.mjs +9 -2
  14. package/esm2022/tools/lib/breadcrumbs.class.mjs +63 -0
  15. package/esm2022/tools/lib/control-value.class.mjs +46 -0
  16. package/esm2022/tools/lib/date-time.class.mjs +22 -0
  17. package/esm2022/tools/lib/files.class.mjs +91 -0
  18. package/esm2022/tools/lib/generi-tools.mjs +199 -0
  19. package/esm2022/tools/lib/page.class.mjs +156 -0
  20. package/esm2022/tools/lib/screen.class.mjs +43 -0
  21. package/esm2022/tools/lib/source.class.mjs +80 -0
  22. package/fesm2022/coer-elements.mjs +649 -3
  23. package/fesm2022/coer-elements.mjs.map +1 -1
  24. package/interfaces/index.d.ts +6 -0
  25. package/interfaces/lib/app-source.interface.d.ts +4 -0
  26. package/interfaces/lib/breadcrumb.interface.d.ts +6 -0
  27. package/interfaces/lib/coer-ref.interface.d.ts +10 -0
  28. package/interfaces/lib/go-back.interface.d.ts +6 -0
  29. package/interfaces/lib/patch.interface.d.ts +5 -0
  30. package/interfaces/lib/screen-size.interface.d.ts +5 -0
  31. package/package.json +1 -1
  32. package/public_api.d.ts +1 -0
  33. package/signals/index.d.ts +3 -0
  34. package/signals/lib/breakpoint.signal.d.ts +1 -0
  35. package/signals/lib/is-loading.signal.d.ts +1 -0
  36. package/signals/lib/is-modal-open.signal.d.ts +1 -0
  37. package/src/interfaces/index.ts +6 -0
  38. package/src/interfaces/lib/app-source.interface.ts +4 -0
  39. package/src/interfaces/lib/breadcrumb.interface.ts +6 -0
  40. package/src/interfaces/lib/coer-ref.interface.ts +11 -0
  41. package/src/interfaces/lib/go-back.interface.ts +6 -0
  42. package/src/interfaces/lib/patch.interface.ts +5 -0
  43. package/src/interfaces/lib/screen-size.interface.ts +5 -0
  44. package/tools/index.d.ts +8 -1
  45. package/tools/lib/breadcrumbs.class.d.ts +18 -0
  46. package/tools/lib/date-time.class.d.ts +11 -0
  47. package/tools/lib/files.class.d.ts +16 -0
  48. package/tools/lib/generi-tools.d.ts +32 -0
  49. package/tools/lib/page.class.d.ts +60 -0
  50. package/tools/lib/screen.class.d.ts +11 -0
  51. package/tools/lib/source.class.d.ts +20 -0
  52. package/esm2022/tools/lib/controlValue.mjs +0 -46
  53. /package/tools/lib/{controlValue.d.ts → control-value.class.d.ts} +0 -0
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbFZhbHVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvdG9vbHMvbGliL2NvbnRyb2xWYWx1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXdCLGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDekUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsQ0FBSSxTQUFZLEVBQUUsRUFBRTtJQUM3QyxPQUFPO1FBQ0gsT0FBTyxFQUFFLGlCQUFpQjtRQUMxQixXQUFXLEVBQUUsVUFBVSxDQUFDLEdBQUcsRUFBRSxDQUFDLFNBQVMsQ0FBQztRQUN4QyxLQUFLLEVBQUUsSUFBSTtLQUNkLENBQUE7QUFDTCxDQUFDLENBQUE7QUFHRCxNQUFNLE9BQU8sWUFBWTtJQUF6QjtRQUlZLGVBQVUsR0FBWSxLQUFLLENBQUM7SUFrRHhDLENBQUM7SUE3Q0csSUFBVyxTQUFTO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQztJQUMzQixDQUFDO0lBR0QsTUFBTTtJQUNJLFFBQVEsQ0FBQyxLQUFVO1FBQ3pCLElBQUcsT0FBTyxJQUFJLENBQUMsWUFBWSxLQUFLLFVBQVUsRUFBRSxDQUFDO1lBQ3pDLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDN0IsQ0FBQztRQUVELElBQUksQ0FBQyxNQUFNLEdBQU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