Skip to content

Commit b82c825

Browse files
committed
"[UPDATE] additional work"
1 parent 4b824d2 commit b82c825

File tree

95 files changed

+1350
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1350
-170
lines changed

angular.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,48 @@
210210
}
211211
}
212212
},
213+
"wml-angular-components-base": {
214+
"projectType": "library",
215+
"root": "projects/wml-angular-components-base",
216+
"sourceRoot": "projects/wml-angular-components-base/src",
217+
"prefix": "wml",
218+
"architect": {
219+
"lint": {
220+
"builder": "@angular-eslint/builder:lint",
221+
"options": {
222+
223+
"lintFilePatterns": [
224+
"projects/wml-angular-components-base/src/**/*.ts"
225+
]
226+
}
227+
},
228+
"build": {
229+
"builder": "@angular-devkit/build-angular:ng-packagr",
230+
"options": {
231+
"project": "projects/wml-angular-components-base/ng-package.json"
232+
},
233+
"configurations": {
234+
"production": {
235+
"tsConfig": "projects/wml-angular-components-base/tsconfig.lib.prod.json"
236+
},
237+
"development": {
238+
"tsConfig": "projects/wml-angular-components-base/tsconfig.lib.json"
239+
}
240+
},
241+
"defaultConfiguration": "production"
242+
},
243+
"test": {
244+
"builder": "@angular-devkit/build-angular:karma",
245+
"options": {
246+
"tsConfig": "projects/wml-angular-components-base/tsconfig.spec.json",
247+
"polyfills": [
248+
"zone.js",
249+
"zone.js/testing"
250+
]
251+
}
252+
}
253+
}
254+
},
213255
"wml-field": {
214256
"projectType": "library",
215257
"root": "projects/wml-field",

projects/wml-accordion/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"peerDependencies": {
1010
"@angular/common": "^18.0.0",
1111
"@angular/core": "^18.0.0",
12+
"@windmillcode/wml-components-base": "^18.2.3000",
1213
"@windmillcode/angular-wml-components-base": "^18.2.3000"
1314
},
1415
"private": false,
@@ -17,4 +18,4 @@
1718
"build": "npx ng build"
1819
},
1920
"version": "18.2.3000"
20-
}
21+
}

projects/wml-accordion/src/lib/test-utils/mock-providers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { HttpClient } from "@angular/common/http";
22
import { Renderer2, ChangeDetectorRef, Component, NO_ERRORS_SCHEMA, ViewContainerRef } from "@angular/core";
33
import { ActivatedRoute } from "@angular/router";
44
import { TranslateService } from "@ngx-translate/core";
5-
import { WMLNotifyOneZeroService } from "@windmillcode/angular-wml-notify";
65
import { Subject } from "rxjs";
76
// @ts-ignore
87
import { wmlTestUtils } from "./test-utils";
@@ -104,7 +103,7 @@ let createMockProviders = ()=> {
104103
{provide:Renderer2,useValue: wmlTestUtils.mock.mockRenderer2},
105104
{provide:ViewContainerRef,useValue:wmlTestUtils.mock.mockViewContainerRef},
106105
{provide:HttpClient,useValue:wmlTestUtils.mock.mockHttpClient},
107-
{provide:WMLNotifyOneZeroService,useValue:wmlTestUtils.mock.mockWMLNotifyOneZeroService},
106+
{provide:WMLNotifyOneService,useValue:wmlTestUtils.mock.mockWMLNotifyOneService},
108107
{provide:ChangeDetectorRef,useValue:wmlTestUtils.mock.mockCdref},
109108
{provide:ActivatedRoute,useValue:wmlTestUtils.mock.mockActivatedRoute},
110109
]

projects/wml-accordion/src/lib/test-utils/test-utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
// i18n
3-
42

53
import { WMLTestUtils } from "@windmillcode/angular-wml-components-base";
64

projects/wml-accordion/src/lib/wml-accordion-zero/wml-accordion-zero-item/wml-accordion-zero-item.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { WMLAccordionZeroItemComponent, WMLAccordionZeroItemProps } from './wml-
88
import { resetImports } from '../test-utils/mock-imports';
99
import { resetProviders } from '../test-utils/mock-providers';
1010
import { wmlTestUtils } from '../test-utils/test-utils';
11-
import { WMLCustomComponent, WMLUIProperty } from '@windmillcode/angular-wml-components-base';
11+
import { WMLCustomComponent, WMLUIProperty } from '@windmillcode/wml-components-base';
1212

1313

1414

projects/wml-accordion/src/lib/wml-accordion-zero/wml-accordion-zero-item/wml-accordion-zero-item.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { Subject } from 'rxjs';
66
import { takeUntil,tap } from 'rxjs/operators';
77

88
// wml-components
9-
import { WMLCustomComponent, WMLUIProperty, addCustomComponent, generateClassPrefix } from '@windmillcode/angular-wml-components-base';
9+
import { WMLCustomComponent, WMLUIProperty, generateClassPrefix } from '@windmillcode/wml-components-base';
10+
import {addCustomComponent} from '@windmillcode/angular-wml-components-base';
1011
import { WMLAccordionZeroSampleComponent, WMLAccordionZeroSampleProps } from '../wml-accordion-zero-sample/wml-accordion-zero-sample.component';
1112
import { WMLAccordionZeroTitleComponent, WMLAccordionZeroTitleProps } from '../wml-accordion-zero-title/wml-accordion-zero-title.component';
1213
// misc

projects/wml-accordion/src/lib/wml-accordion-zero/wml-accordion-zero-sample/wml-accordion-zero-sample.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, In
55
import { Subject } from 'rxjs';
66

77
// wml-components
8-
import { generateClassPrefix } from '@windmillcode/angular-wml-components-base';
8+
import { generateClassPrefix } from '@windmillcode/wml-components-base';
99

1010

1111
// misc

projects/wml-accordion/src/lib/wml-accordion-zero/wml-accordion-zero-title/wml-accordion-zero-title.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, In
77
import { Subject } from 'rxjs';
88

99
// wml-components
10-
import { generateClassPrefix } from '@windmillcode/angular-wml-components-base';
10+
import { generateClassPrefix } from '@windmillcode/wml-components-base';
1111

1212

1313
// misc

projects/wml-accordion/src/lib/wml-accordion-zero/wml-accordion-zero/wml-accordion-zero.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, In
77
import { Subject } from 'rxjs';
88

99
// wml-components
10-
import { generateClassPrefix } from '@windmillcode/angular-wml-components-base';
10+
import { generateClassPrefix } from '@windmillcode/wml-components-base';
1111
import { WMLAccordionZeroItemProps } from '../wml-accordion-zero-item/wml-accordion-zero-item.component';
1212

1313

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Windmillcode
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)