@stratusjs/angular 0.2.89 → 0.2.90

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 (32) hide show
  1. package/package.json +1 -6
  2. package/src/app.module.js +2 -13
  3. package/src/app.module.js.map +1 -1
  4. package/src/app.module.min.js +1 -1
  5. package/src/app.module.ts +0 -7
  6. package/src/base/base.component.js +1 -1
  7. package/src/base/base.component.js.map +1 -1
  8. package/src/base/base.component.min.js +1 -1
  9. package/src/core/responsive.component.js +1 -7
  10. package/src/core/responsive.component.js.map +1 -1
  11. package/src/core/responsive.component.min.js +1 -1
  12. package/src/core/responsive.component.ts +8 -7
  13. package/src/editor/editor.component.js +1 -1
  14. package/src/editor/editor.component.js.map +1 -1
  15. package/src/editor/editor.component.min.js +1 -1
  16. package/src/media-selector/media-selector.component.js +1 -1
  17. package/src/media-selector/media-selector.component.js.map +1 -1
  18. package/src/media-selector/media-selector.component.min.js +1 -1
  19. package/src/selector/selector.component.js +1 -1
  20. package/src/selector/selector.component.js.map +1 -1
  21. package/src/selector/selector.component.min.js +1 -1
  22. package/src/tree/tree.component.js +1 -1
  23. package/src/tree/tree.component.js.map +1 -1
  24. package/src/tree/tree.component.min.js +1 -1
  25. package/src/changeset-viewer/changeset-viewer-dialog.component.html +0 -12
  26. package/src/changeset-viewer/changeset-viewer-dialog.component.min.html +0 -1
  27. package/src/changeset-viewer/changeset-viewer-dialog.component.ts +0 -46
  28. package/src/changeset-viewer/changeset-viewer-dialog.scss +0 -0
  29. package/src/changeset-viewer/changeset-viewer.component.html +0 -1
  30. package/src/changeset-viewer/changeset-viewer.component.min.html +0 -1
  31. package/src/changeset-viewer/changeset-viewer.component.scss +0 -3
  32. package/src/changeset-viewer/changeset-viewer.component.ts +0 -114
@@ -1,46 +0,0 @@
1
- import {
2
- Component,
3
- Inject
4
- } from '@angular/core'
5
- import {
6
- MAT_DIALOG_DATA,
7
- MatDialogRef
8
- } from '@angular/material/dialog'
9
- import {cookie} from '@stratusjs/core/environment'
10
- import {Stratus} from '@stratusjs/runtime/stratus'
11
-
12
- // Local Setup
13
- const systemDir = '@stratusjs/angular'
14
- const moduleName = 'confirm-dialog'
15
-
16
- // Directory Template
17
- const min = !cookie('env') ? '.min' : ''
18
- const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`
19
-
20
- export interface ConfirmDialogData {
21
- title: string
22
- message: string
23
- }
24
-
25
- /**
26
- * @title Dialog for User Confirmation
27
- */
28
- @Component({
29
- selector: `sa-${moduleName}`,
30
- templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
31
- // changeDetection: ChangeDetectionStrategy.OnPush
32
- })
33
- export class ChangesetViewerDialogComponent {
34
- constructor(
35
- public dialogRef: MatDialogRef<ChangesetViewerDialogComponent>,
36
- @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogData
37
- ) {}
38
-
39
- onConfirm(): void {
40
- this.dialogRef.close(true)
41
- }
42
-
43
- onDismiss(): void {
44
- this.dialogRef.close(false)
45
- }
46
- }
File without changes
@@ -1 +0,0 @@
1
- <div>I'm a new Angular base!</div>
@@ -1 +0,0 @@
1
- <div>I'm a new Angular base!</div>
@@ -1,3 +0,0 @@
1
- .base {
2
- width: 500px;
3
- }
@@ -1,114 +0,0 @@
1
- // NOTE: to register a component you need to add it to:
2
- // 1. /packages/angular/src/boot.ts
3
- // - This is where we must register if a component will be used in html, e.g. sa-selector
4
- // - we are using a component as an Angular app, this allows us to have as many angular components on a page defined
5
- // dynamically.
6
- // 2. /packages/angular/src/app.module.ts
7
- // - This is where we register every component that will be used or imported
8
- // - add an import to define where it is located, e.g. import { BaseComponent } from '@stratusjs/angular/base/base.component'
9
- // - add to declarations and entryComponents
10
-
11
- // Angular Core
12
- import {
13
- // ChangeDetectionStrategy,
14
- ChangeDetectorRef,
15
- Component,
16
- ElementRef,
17
- Input,
18
- OnChanges,
19
- OnInit
20
- } from '@angular/core'
21
- import {
22
- DomSanitizer
23
- } from '@angular/platform-browser'
24
-
25
- // Angular Material
26
- // import {MatIconRegistry} from '@angular/material/icon'
27
-
28
- // External Dependencies
29
- import {Stratus} from '@stratusjs/runtime/stratus'
30
- import _ from 'lodash'
31
- import {cookie} from '@stratusjs/core/environment'
32
-
33
- // Stratus Angular Core
34
- import {RootComponent} from '@stratusjs/angular/core/root.component'
35
-
36
- // Transformers
37
- import {keys} from 'ts-transformer-keys'
38
-
39
- // Local Setup
40
- const systemDir = '@stratusjs/angular'
41
- const moduleName = 'base'
42
-
43
- // Directory Template
44
- const min = !cookie('env') ? '.min' : ''
45
- const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`].replace(/[^/]*$/, '')}`
46
-
47
- /**
48
- * @title Basic Load
49
- */
50
- @Component({
51
- selector: 'sa-base',
52
- // template: '<ng-content></ng-content>',
53
- templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
54
- // styleUrls: [`${localDir}/base/base.component${min}.css`],
55
- // viewProviders: [BaseComponent]
56
- // changeDetection: ChangeDetectionStrategy.OnPush
57
- })
58
- // @Injectable()
59
- export class ChangesetViewerComponent extends RootComponent implements OnInit, OnChanges {
60
-
61
- // Basic Component Settings
62
- title = moduleName + '_component'
63
- uid: string
64
-
65
- // Registry Attributes
66
- @Input() target: string
67
- @Input() targetSuffix: string
68
- @Input() id: number
69
- @Input() manifest: boolean
70
- @Input() decouple: boolean
71
- @Input() direct: boolean
72
- @Input() api: object
73
- @Input() urlRoot: string
74
-
75
- // Component Attributes
76
- @Input() type: string
77
- @Input() property: string
78
- @Input() endpoint: string
79
-
80
- constructor(
81
- private sanitizer: DomSanitizer,
82
- protected ref: ChangeDetectorRef,
83
- private elementRef: ElementRef
84
- ) {
85
- // Chain constructor
86
- super()
87
-
88
- Stratus.Instances[_.uniqueId('sa_base_component_')] = this
89
-
90
- // Hydrate Root App Inputs
91
- this.hydrate(this.elementRef, this.sanitizer, keys<ChangesetViewerComponent>())
92
- }
93
-
94
- ngOnInit() {
95
- console.info('selector.ngOnInit')
96
- }
97
-
98
- ngOnChanges() {
99
- // Display Inputs
100
- if (!cookie('env')) {
101
- return
102
- }
103
- console.log('inputs:', {
104
- target: this.target,
105
- targetSuffix: this.targetSuffix,
106
- id: this.id,
107
- manifest: this.manifest,
108
- decouple: this.decouple,
109
- direct: this.direct,
110
- api: this.api,
111
- urlRoot: this.urlRoot,
112
- })
113
- }
114
- }