Skip to content

Commit 96609fc

Browse files
committed
feat: common module
1 parent 3956c93 commit 96609fc

File tree

32 files changed

+846
-601
lines changed

32 files changed

+846
-601
lines changed

packages/demo/src/app/dropzone-wrapper/documentation.json

Lines changed: 56 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"directives": [
5959
{
6060
"name": "DropzoneDirective",
61-
"id": "directive-DropzoneDirective-4c5043a611085e5137361ec25e134944ea54ac0140035e8d2b79605d8f250b1d11f09eb2d5996bacc6f25a5c99b6f489b422dbb287411ecdec77e7a48ddef7a0",
61+
"id": "directive-DropzoneDirective-523406f0ad908b3dfbb70469f0328b76feed114821ba71c6a98d32bccd62cc365d46605676a382896f20b6303cd822f7f9ddb3e5ef2fee22a315463fa3f6ba0a",
6262
"file": "src/lib/dropzone.directive.ts",
6363
"type": "directive",
6464
"description": "",
@@ -80,14 +80,20 @@
8080
"decorators": []
8181
},
8282
{
83-
"name": "nxtDropzone",
83+
"name": "config",
84+
"defaultValue": "undefined, { alias: 'nxtDropzone' }",
8485
"deprecated": false,
8586
"deprecationMessage": "",
86-
"rawdescription": "\nCan be used to provide optional custom config",
87+
"type": "DropzoneConfig",
88+
"indexKey": "",
89+
"optional": false,
8790
"description": "<p>Can be used to provide optional custom config</p>\n",
8891
"line": 39,
89-
"type": "DropzoneConfig",
90-
"decorators": []
92+
"rawdescription": "\nCan be used to provide optional custom config",
93+
"modifierKind": [
94+
148
95+
],
96+
"required": false
9197
}
9298
],
9399
"outputsClass": [
@@ -474,7 +480,7 @@
474480
"components": [
475481
{
476482
"name": "DropzoneComponent",
477-
"id": "component-DropzoneComponent-c639d3d541e4f0e15232651fe6e475c5bb66d6a4a4d09e266eb42ac72d7a77bf610074f4f8ae319680b54920e2902b20b312a1615bc1b339ed5255733860d9e7",
483+
"id": "component-DropzoneComponent-1232f5714206a4a0c92485df0a8617f9d28f1716f15d57dff2cafa1d826aeb35ded49d1a25d260d4bad7e67a84a6876e14dafbb5b0ae45a2aa95bb1edd671ec7",
478484
"file": "src/lib/dropzone.component.ts",
479485
"encapsulation": [
480486
"ViewEncapsulation.None"
@@ -504,55 +510,80 @@
504510
"name": "config",
505511
"deprecated": false,
506512
"deprecationMessage": "",
507-
"rawdescription": "\nCustom config to override the global defaults",
513+
"type": "DropzoneConfig",
514+
"indexKey": "",
515+
"optional": false,
508516
"description": "<p>Custom config to override the global defaults</p>\n",
509517
"line": 28,
510-
"type": "DropzoneConfig",
511-
"decorators": []
518+
"rawdescription": "\nCustom config to override the global defaults",
519+
"modifierKind": [
520+
148
521+
],
522+
"required": false
512523
},
513524
{
514525
"name": "disabled",
515526
"defaultValue": "false",
516527
"deprecated": false,
517528
"deprecationMessage": "",
518-
"rawdescription": "\nDisables / detaches Dropzone from the element",
529+
"type": "boolean",
530+
"indexKey": "",
531+
"optional": false,
519532
"description": "<p>Disables / detaches Dropzone from the element</p>\n",
520533
"line": 25,
521-
"type": "boolean",
522-
"decorators": []
534+
"rawdescription": "\nDisables / detaches Dropzone from the element",
535+
"modifierKind": [
536+
148
537+
],
538+
"required": false
523539
},
524540
{
525541
"name": "message",
526542
"defaultValue": "'Click or drag files to upload'",
527543
"deprecated": false,
528544
"deprecationMessage": "",
529-
"rawdescription": "\nMessage to show for the user on the upload area",
545+
"type": "string",
546+
"indexKey": "",
547+
"optional": false,
530548
"description": "<p>Message to show for the user on the upload area</p>\n",
531549
"line": 31,
532-
"type": "string",
533-
"decorators": []
550+
"rawdescription": "\nMessage to show for the user on the upload area",
551+
"modifierKind": [
552+
148
553+
],
554+
"required": false
534555
},
535556
{
536557
"name": "placeholder",
537558
"defaultValue": "''",
538559
"deprecated": false,
539560
"deprecationMessage": "",
540-
"rawdescription": "\nPlaceholder image to be shown as the upload area",
561+
"type": "string",
562+
"indexKey": "",
563+
"optional": false,
541564
"description": "<p>Placeholder image to be shown as the upload area</p>\n",
542565
"line": 33,
543-
"type": "string",
544-
"decorators": []
566+
"rawdescription": "\nPlaceholder image to be shown as the upload area",
567+
"modifierKind": [
568+
148
569+
],
570+
"required": false
545571
},
546572
{
547573
"name": "useDropzoneClass",
548574
"defaultValue": "true",
549575
"deprecated": false,
550576
"deprecationMessage": "",
551-
"rawdescription": "\nUse 'dropzone' class (use provided default styles)",
577+
"type": "boolean",
578+
"indexKey": "",
579+
"optional": false,
552580
"description": "<p>Use &#39;dropzone&#39; class (use provided default styles)</p>\n",
553581
"line": 36,
554-
"type": "boolean",
555-
"decorators": []
582+
"rawdescription": "\nUse 'dropzone' class (use provided default styles)",
583+
"modifierKind": [
584+
148
585+
],
586+
"required": false
556587
}
557588
],
558589
"outputsClass": [
@@ -800,21 +831,16 @@
800831
"propertiesClass": [
801832
{
802833
"name": "directiveRef",
834+
"defaultValue": "viewChild(DropzoneDirective)",
803835
"deprecated": false,
804836
"deprecationMessage": "",
805-
"type": "DropzoneDirective",
837+
"type": "",
806838
"indexKey": "",
807-
"optional": true,
839+
"optional": false,
808840
"description": "",
809841
"line": 82,
810-
"decorators": [
811-
{
812-
"name": "ViewChild",
813-
"stringifiedArguments": "DropzoneDirective"
814-
}
815-
],
816842
"modifierKind": [
817-
170
843+
148
818844
]
819845
}
820846
],

packages/demo/src/app/dropzone-wrapper/dropzone-wrapper/dropzone-wrapper.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { AsyncPipe } from '@angular/common'
22
import { Component, Injector, OnInit, PendingTasks } from '@angular/core'
33
import { RouterModule } from '@angular/router'
44
import { ContentWrapComponent } from '../../content-wrap/content-wrap.component'
@@ -11,11 +11,11 @@ import { WaitLoad } from '../../utils/wait-load.class'
1111
templateUrl: './dropzone-wrapper.component.html',
1212
styleUrls: ['./dropzone-wrapper.component.scss'],
1313
imports: [
14-
CommonModule,
1514
MetaDirective,
1615
ContentWrapComponent,
1716
RouterModule,
18-
ExampleComponent
17+
ExampleComponent,
18+
AsyncPipe
1919
]
2020
})
2121
export class AppDropzoneWrapperComponent extends WaitLoad implements OnInit {

packages/demo/src/app/example/example.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { NgComponentOutlet } from '@angular/common'
22
import { Component, Injector, Input, Type, ViewEncapsulation, input } from '@angular/core'
33
import { TabsModule } from 'ngx-bootstrap/tabs'
44
import { HighlightAutoDirective } from 'nxt-highlightjs'
@@ -63,10 +63,10 @@ export function resolveTempaltes(cfg: LoaderConfig, prefix: string) {
6363
@Component({
6464
selector: 'app-example',
6565
imports: [
66-
CommonModule,
6766
TabsModule,
6867
HighlightAutoDirective,
69-
HighlightLineNumbersDirective
68+
HighlightLineNumbersDirective,
69+
NgComponentOutlet
7070
],
7171
templateUrl: './example.component.html',
7272
styleUrls: ['./example.component.scss'],

packages/demo/src/app/flags/flags/flags.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { AsyncPipe } from '@angular/common'
22
import { Component, Injector, OnInit, PendingTasks } from '@angular/core'
33
import { RouterModule } from '@angular/router'
44
import { registerLocale } from 'i18n-iso-countries'
@@ -15,11 +15,11 @@ registerLocale(locl)
1515
templateUrl: './flags.component.html',
1616
styleUrls: ['./flags.component.scss'],
1717
imports: [
18-
CommonModule,
1918
MetaDirective,
2019
ContentWrapComponent,
2120
ExampleComponent,
22-
RouterModule
21+
RouterModule,
22+
AsyncPipe
2323
]
2424
})
2525
export class AppFlagsComponent extends WaitLoad implements OnInit {

packages/demo/src/app/highlightjs/extras/extras.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { AsyncPipe } from '@angular/common'
22
import { Component, Injector, OnInit, PendingTasks, ViewEncapsulation } from '@angular/core'
33
import { RouterModule } from '@angular/router'
44
import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
@@ -14,10 +14,10 @@ import { WaitLoad } from '../../utils/wait-load.class'
1414
MetaDirective,
1515
ContentWrapComponent,
1616
ExampleComponent,
17-
CommonModule,
1817
RouterModule,
1918
BsDropdownModule,
20-
CodeBlockComponent
19+
CodeBlockComponent,
20+
AsyncPipe
2121
],
2222
templateUrl: './extras.component.html',
2323
styleUrl: './extras.component.scss',

packages/demo/src/app/highlightjs/highlightjs/highlightjs.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { AsyncPipe } from '@angular/common'
22
import { Component, Injector, OnInit, PendingTasks, ViewEncapsulation } from '@angular/core'
33
import { RouterModule } from '@angular/router'
44
import { ContentWrapComponent } from '../../content-wrap/content-wrap.component'
@@ -9,11 +9,11 @@ import { WaitLoad } from '../../utils/wait-load.class'
99
@Component({
1010
selector: 'app-highlightjs',
1111
imports: [
12-
CommonModule,
1312
MetaDirective,
1413
ContentWrapComponent,
1514
ExampleComponent,
16-
RouterModule
15+
RouterModule,
16+
AsyncPipe
1717
],
1818
templateUrl: './highlightjs.component.html',
1919
styleUrl: './highlightjs.component.scss',

packages/demo/src/app/inputs-table/inputs-table.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CdkTableModule } from '@angular/cdk/table'
2-
32
import { Component, ViewEncapsulation, input } from '@angular/core'
43

54
@Component({

packages/demo/src/app/json-view/documentation.json

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"injectables": [
3535
{
3636
"name": "ExpanderService",
37-
"id": "injectable-ExpanderService-65acdfec985b778f6bb9647fbfcbaf3c86cb54bccc480bffc32d39cf500f8ec56e57322f928386da584adb56dbd94b92d48157c08abc94bbbbe2db101fc20cf9",
37+
"id": "injectable-ExpanderService-5d2f1861831bcd67aa78a8337589699aa01107b125e1fe7ab03f9f64445d0a9e3eca3703a1274ff9cfe047853469e7803e69d5a1b8fb35da7d57e7f507ebd6a1",
3838
"file": "src/lib/expander/expander.service.ts",
3939
"properties": [],
4040
"methods": [
@@ -174,7 +174,7 @@
174174
"components": [
175175
{
176176
"name": "JsonViewComponent",
177-
"id": "component-JsonViewComponent-0309d784ec5d891a374c6314f7b4338f00d4f10e43b72fe73f63dd1b7e48d2d63b86486ef94dadff0294f08b2780ac3a0be3585548db7c1c51ae2a802ba17ae3",
177+
"id": "component-JsonViewComponent-c15ad481f47f5d1b1643057563b449e390718b74fb9f52f61c8b09879f0a2dcf7622bc2f09f169b7c60065538ebede0e85f89aa320b019feb7409f38e38710a4",
178178
"file": "src/lib/json-view/json-view.component.ts",
179179
"encapsulation": [
180180
"ViewEncapsulation.Emulated"
@@ -203,34 +203,65 @@
203203
"name": "data",
204204
"deprecated": false,
205205
"deprecationMessage": "",
206-
"rawdescription": "\nJSON data, any valid JSON object",
206+
"type": "any",
207+
"indexKey": "",
208+
"optional": false,
207209
"description": "<p>JSON data, any valid JSON object</p>\n",
208210
"line": 23,
209-
"type": "any",
210-
"decorators": []
211+
"rawdescription": "\nJSON data, any valid JSON object",
212+
"modifierKind": [
213+
148
214+
],
215+
"required": false
211216
},
212217
{
213218
"name": "levelLabels",
214219
"deprecated": false,
215220
"deprecationMessage": "",
216-
"rawdescription": "\nCustom labels for elements within the hierarcy",
221+
"type": "LevelLabels",
222+
"indexKey": "",
223+
"optional": false,
217224
"description": "<p>Custom labels for elements within the hierarcy</p>\n",
218225
"line": 27,
219-
"type": "LevelLabels",
220-
"decorators": []
226+
"rawdescription": "\nCustom labels for elements within the hierarcy",
227+
"modifierKind": [
228+
148
229+
],
230+
"required": false
221231
},
222232
{
223233
"name": "levelOpen",
224234
"deprecated": false,
225235
"deprecationMessage": "",
226-
"rawdescription": "\nInitial number of levels to be expanded; to expand / collapse the view after initial render, use `expandTo` / `collapseTo`",
236+
"type": "number",
237+
"indexKey": "",
238+
"optional": false,
227239
"description": "<p>Initial number of levels to be expanded; to expand / collapse the view after initial render, use <code>expandTo</code> / <code>collapseTo</code></p>\n",
228240
"line": 25,
241+
"rawdescription": "\nInitial number of levels to be expanded; to expand / collapse the view after initial render, use `expandTo` / `collapseTo`",
242+
"modifierKind": [
243+
148
244+
],
245+
"required": false
246+
}
247+
],
248+
"outputsClass": [
249+
{
250+
"name": "levelOpen",
251+
"deprecated": false,
252+
"deprecationMessage": "",
229253
"type": "number",
230-
"decorators": []
254+
"indexKey": "",
255+
"optional": false,
256+
"description": "<p>Initial number of levels to be expanded; to expand / collapse the view after initial render, use <code>expandTo</code> / <code>collapseTo</code></p>\n",
257+
"line": 25,
258+
"rawdescription": "\nInitial number of levels to be expanded; to expand / collapse the view after initial render, use `expandTo` / `collapseTo`",
259+
"modifierKind": [
260+
148
261+
],
262+
"required": false
231263
}
232264
],
233-
"outputsClass": [],
234265
"propertiesClass": [],
235266
"methodsClass": [
236267
{

packages/demo/src/app/json-view/json-view/json-view.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common'
1+
import { AsyncPipe } from '@angular/common'
22
import { Component, Injector, OnInit, PendingTasks } from '@angular/core'
33
import { Title } from '@angular/platform-browser'
44
import { RouterModule } from '@angular/router'
@@ -17,8 +17,8 @@ import { WaitLoad } from '../../utils/wait-load.class'
1717
MetaDirective,
1818
RouterModule,
1919
ExampleComponent,
20-
CommonModule,
21-
BsDropdownModule
20+
BsDropdownModule,
21+
AsyncPipe
2222
]
2323
})
2424
export class AppJsonViewComponent extends WaitLoad implements OnInit {

packages/demo/src/app/outputs-table/outputs-table.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CdkTableModule } from '@angular/cdk/table'
2-
32
import { Component, ViewEncapsulation, input } from '@angular/core'
43

54
@Component({

0 commit comments

Comments
 (0)