@coolon/angular-ui-powerups 13.0.3 → 13.0.4

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.
@@ -1,9 +1,9 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { Form, MutableListModel } from '@coolon/pectin';
3
- import { AbstractInputComponent } from './abstract-input.component';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { ConvertedFormListModel, Form, MutableListModel } from "@coolon/pectin";
3
+ import { AbstractInputComponent } from "./abstract-input.component";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
6
- listModel: Form.ListModelBase<T> | MutableListModel<T>;
6
+ listModel: Form.ListModelBase<T> | ConvertedFormListModel<T, any> | MutableListModel<T>;
7
7
  /**
8
8
  * A backing model for all our @Input() valueModel properties which should be defined as follows.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { Form, Guard, MutableValueModel } from '@coolon/pectin';
2
+ import { ConvertedFormValueModel, Form, Guard, MutableValueModel } from "@coolon/pectin";
3
3
  import { AbstractInputComponent } from './abstract-input.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
6
- valueModel: Form.ValueModelBase<T> | MutableValueModel<T>;
6
+ valueModel: Form.ValueModelBase<T> | ConvertedFormValueModel<T, any> | MutableValueModel<T>;
7
7
  /**
8
8
  * A backing model for all our @Input() valueModel properties which should be defined as follows.
9
9
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "13.0.3",
3
+ "version": "13.0.4",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.2.3",
@@ -9,8 +9,7 @@ import {Dsl} from "@coolon/pectin";
9
9
  })
10
10
  export class AppComponent extends DisposableComponent {
11
11
 
12
- readonly places = [
13
- ];
12
+ readonly places: Constructable<PlaceComponent>[] = [];
14
13
 
15
14
  constructor() {
16
15
  super();
@@ -1,13 +1,66 @@
1
- /* You can add global styles to this file, and also import other style files */
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use '@angular/material/theming';
2
4
 
3
- @use '@angular/material/theming' as ng;
4
- @use "@coolon/angular-ui-powerups/assets/styles" as aup;
5
+ @use "node_modules/@coolon/angular-ui-powerups/assets/styles" as aup;
5
6
  @use "./styles/global-variables";
6
7
 
7
- $primary: ng.mat-palette(ng.$mat-indigo);
8
- $accent: ng.mat-palette(ng.$mat-pink);
8
+ $success-palette: (
9
+ 50 : #e4feea,
10
+ 100 : #bbfdcc,
11
+ 200 : #8efbaa,
12
+ 300 : #61f987,
13
+ 400 : #3ff86e,
14
+ 500 : #1df754,
15
+ 600 : #1af64d,
16
+ 700 : #15f543,
17
+ 800 : #11f33a,
18
+ 900 : #0af129,
19
+ A100 : #ffffff,
20
+ A200 : #e7ffea,
21
+ A400 : #b4ffbc,
22
+ A700 : #9bffa5,
23
+ contrast: (
24
+ 50 : #000000,
25
+ 100 : #000000,
26
+ 200 : #000000,
27
+ 300 : #000000,
28
+ 400 : #000000,
29
+ 500 : #000000,
30
+ 600 : #000000,
31
+ 700 : #000000,
32
+ 800 : #000000,
33
+ 900 : #000000,
34
+ A100 : #000000,
35
+ A200 : #000000,
36
+ A400 : #000000,
37
+ A700 : #000000,
38
+ )
39
+ );
40
+
41
+ $typography: mat.define-typography-config();
42
+
43
+ $primary: mat.define-palette(mat.$indigo-palette);
44
+ $accent: mat.define-palette(mat.$yellow-palette);
45
+ $warn: mat.define-palette(mat.$red-palette);
46
+ $success: mat.define-palette($success-palette);
47
+
48
+ $theme: mat.define-light-theme((
49
+ color: (
50
+ primary: $primary,
51
+ accent: $accent,
52
+ warn: $warn,
53
+ )
54
+ ));
55
+
56
+ $background: map.get($theme, background);
57
+ $foreground: map.get($theme, foreground);
58
+
59
+ @include mat.core($typography);
60
+ @include mat.all-component-themes($theme);
61
+
62
+ @include aup.apply-light-theme($theme, $typography);
9
63
 
10
- @include aup.apply-light-theme($primary, $accent);
11
64
 
12
65
  @import "./assets/fonts/material-design-icons/material-icons.css";
13
66
 
@@ -30,4 +83,3 @@ body {
30
83
  body > *:first-child {
31
84
  flex: 1;
32
85
  }
33
-