@acpaas-ui/ngx-forms 6.1.10 → 6.1.11
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.
- package/package.json +27 -6
- package/.eslintrc.json +0 -42
- package/LICENSE.md +0 -21
- package/dist/README.md +0 -23
- package/dist/package.json +0 -44
- package/karma.conf.js +0 -38
- package/ng-package.json +0 -8
- package/src/lib/auto-complete/README.md +0 -148
- package/src/lib/auto-complete/auto-complete.module.ts +0 -15
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.html +0 -51
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.scss +0 -4
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.spec.ts +0 -378
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.ts +0 -281
- package/src/lib/auto-complete/public-api.ts +0 -2
- package/src/lib/datepicker/README.md +0 -110
- package/src/lib/datepicker/components/datepicker/datepicker.component.html +0 -47
- package/src/lib/datepicker/components/datepicker/datepicker.component.scss +0 -13
- package/src/lib/datepicker/components/datepicker/datepicker.component.spec.ts +0 -204
- package/src/lib/datepicker/components/datepicker/datepicker.component.ts +0 -251
- package/src/lib/datepicker/datepicker.conf.ts +0 -11
- package/src/lib/datepicker/datepicker.module.ts +0 -50
- package/src/lib/datepicker/public-api.ts +0 -8
- package/src/lib/datepicker/types/datepicker.types.ts +0 -8
- package/src/lib/range-slider/README.md +0 -56
- package/src/lib/range-slider/components/range-slider/range-slider.component.html +0 -46
- package/src/lib/range-slider/components/range-slider/range-slider.component.scss +0 -12
- package/src/lib/range-slider/components/range-slider/range-slider.component.spec.ts +0 -216
- package/src/lib/range-slider/components/range-slider/range-slider.component.ts +0 -301
- package/src/lib/range-slider/public-api.ts +0 -3
- package/src/lib/range-slider/range-slider.module.ts +0 -11
- package/src/lib/range-slider/types/range-slider.types.ts +0 -4
- package/src/lib/search-filter/README.md +0 -86
- package/src/lib/search-filter/components/search-filter/search-filter.component.html +0 -66
- package/src/lib/search-filter/components/search-filter/search-filter.component.scss +0 -23
- package/src/lib/search-filter/components/search-filter/search-filter.component.spec.ts +0 -264
- package/src/lib/search-filter/components/search-filter/search-filter.component.ts +0 -140
- package/src/lib/search-filter/public-api.ts +0 -3
- package/src/lib/search-filter/search-filter.module.ts +0 -13
- package/src/lib/search-filter/types/search-filter.types.ts +0 -4
- package/src/lib/shared/services/search.service.spec.ts +0 -78
- package/src/lib/shared/services/search.service.ts +0 -32
- package/src/lib/shared/types/search.types.ts +0 -6
- package/src/lib/timepicker/README.md +0 -84
- package/src/lib/timepicker/classes/timepicker.validators.spec.ts +0 -54
- package/src/lib/timepicker/classes/timepicker.validators.ts +0 -61
- package/src/lib/timepicker/components/timepicker/timepicker.component.html +0 -37
- package/src/lib/timepicker/components/timepicker/timepicker.component.scss +0 -3
- package/src/lib/timepicker/components/timepicker/timepicker.component.spec.ts +0 -161
- package/src/lib/timepicker/components/timepicker/timepicker.component.ts +0 -128
- package/src/lib/timepicker/public-api.ts +0 -4
- package/src/lib/timepicker/timepicker.module.ts +0 -13
- package/src/lib/timepicker/types/timepicker.types.ts +0 -5
- package/src/lib/upload/README.md +0 -283
- package/src/lib/upload/classes/uploader.class.spec.ts +0 -100
- package/src/lib/upload/classes/uploader.class.ts +0 -144
- package/src/lib/upload/components/upload/upload.component.html +0 -28
- package/src/lib/upload/components/upload/upload.component.scss +0 -3
- package/src/lib/upload/components/upload/upload.component.spec.ts +0 -117
- package/src/lib/upload/components/upload/upload.component.ts +0 -50
- package/src/lib/upload/components/upload-input/upload-input.component.html +0 -11
- package/src/lib/upload/components/upload-input/upload-input.component.spec.ts +0 -55
- package/src/lib/upload/components/upload-input/upload-input.component.ts +0 -35
- package/src/lib/upload/components/upload-queue/upload-queue.component.html +0 -16
- package/src/lib/upload/components/upload-queue/upload-queue.component.spec.ts +0 -99
- package/src/lib/upload/components/upload-queue/upload-queue.component.ts +0 -36
- package/src/lib/upload/components/upload-zone/upload-zone.component.html +0 -55
- package/src/lib/upload/components/upload-zone/upload-zone.component.scss +0 -3
- package/src/lib/upload/components/upload-zone/upload-zone.component.spec.ts +0 -144
- package/src/lib/upload/components/upload-zone/upload-zone.component.ts +0 -142
- package/src/lib/upload/components/validation-list/validation-list.component.html +0 -15
- package/src/lib/upload/components/validation-list/validation-list.component.spec.ts +0 -57
- package/src/lib/upload/components/validation-list/validation-list.component.ts +0 -29
- package/src/lib/upload/public-api.ts +0 -10
- package/src/lib/upload/services/validation-messages.service.spec.ts +0 -66
- package/src/lib/upload/services/validation-messages.service.ts +0 -27
- package/src/lib/upload/types/upload.types.ts +0 -20
- package/src/lib/upload/upload.conf.ts +0 -15
- package/src/lib/upload/upload.module.ts +0 -34
- package/src/public-api.ts +0 -6
- package/src/test.ts +0 -9
- package/tsconfig.lib.json +0 -26
- package/tsconfig.spec.json +0 -17
- /package/{dist/esm2020 → esm2020}/acpaas-ui-ngx-forms.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/auto-complete/auto-complete.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/auto-complete/components/auto-complete/auto-complete.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/auto-complete/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/datepicker/components/datepicker/datepicker.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/datepicker/datepicker.conf.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/datepicker/datepicker.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/datepicker/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/datepicker/types/datepicker.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/range-slider/components/range-slider/range-slider.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/range-slider/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/range-slider/range-slider.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/range-slider/types/range-slider.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/search-filter/components/search-filter/search-filter.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/search-filter/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/search-filter/search-filter.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/search-filter/types/search-filter.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/shared/services/search.service.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/shared/types/search.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/timepicker/classes/timepicker.validators.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/timepicker/components/timepicker/timepicker.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/timepicker/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/timepicker/timepicker.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/timepicker/types/timepicker.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/classes/uploader.class.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/components/upload/upload.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/components/upload-input/upload-input.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/components/upload-queue/upload-queue.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/components/upload-zone/upload-zone.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/components/validation-list/validation-list.component.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/public-api.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/services/validation-messages.service.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/types/upload.types.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/upload.conf.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/lib/upload/upload.module.mjs +0 -0
- /package/{dist/esm2020 → esm2020}/public-api.mjs +0 -0
- /package/{dist/fesm2015 → fesm2015}/acpaas-ui-ngx-forms.mjs +0 -0
- /package/{dist/fesm2015 → fesm2015}/acpaas-ui-ngx-forms.mjs.map +0 -0
- /package/{dist/fesm2020 → fesm2020}/acpaas-ui-ngx-forms.mjs +0 -0
- /package/{dist/fesm2020 → fesm2020}/acpaas-ui-ngx-forms.mjs.map +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/lib → lib}/auto-complete/auto-complete.module.d.ts +0 -0
- /package/{dist/lib → lib}/auto-complete/components/auto-complete/auto-complete.component.d.ts +0 -0
- /package/{dist/lib → lib}/auto-complete/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/datepicker/components/datepicker/datepicker.component.d.ts +0 -0
- /package/{dist/lib → lib}/datepicker/datepicker.conf.d.ts +0 -0
- /package/{dist/lib → lib}/datepicker/datepicker.module.d.ts +0 -0
- /package/{dist/lib → lib}/datepicker/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/datepicker/types/datepicker.types.d.ts +0 -0
- /package/{dist/lib → lib}/range-slider/components/range-slider/range-slider.component.d.ts +0 -0
- /package/{dist/lib → lib}/range-slider/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/range-slider/range-slider.module.d.ts +0 -0
- /package/{dist/lib → lib}/range-slider/types/range-slider.types.d.ts +0 -0
- /package/{dist/lib → lib}/search-filter/components/search-filter/search-filter.component.d.ts +0 -0
- /package/{dist/lib → lib}/search-filter/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/search-filter/search-filter.module.d.ts +0 -0
- /package/{dist/lib → lib}/search-filter/types/search-filter.types.d.ts +0 -0
- /package/{dist/lib → lib}/shared/services/search.service.d.ts +0 -0
- /package/{dist/lib → lib}/shared/types/search.types.d.ts +0 -0
- /package/{dist/lib → lib}/timepicker/classes/timepicker.validators.d.ts +0 -0
- /package/{dist/lib → lib}/timepicker/components/timepicker/timepicker.component.d.ts +0 -0
- /package/{dist/lib → lib}/timepicker/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/timepicker/timepicker.module.d.ts +0 -0
- /package/{dist/lib → lib}/timepicker/types/timepicker.types.d.ts +0 -0
- /package/{dist/lib → lib}/upload/classes/uploader.class.d.ts +0 -0
- /package/{dist/lib → lib}/upload/components/upload/upload.component.d.ts +0 -0
- /package/{dist/lib → lib}/upload/components/upload-input/upload-input.component.d.ts +0 -0
- /package/{dist/lib → lib}/upload/components/upload-queue/upload-queue.component.d.ts +0 -0
- /package/{dist/lib → lib}/upload/components/upload-zone/upload-zone.component.d.ts +0 -0
- /package/{dist/lib → lib}/upload/components/validation-list/validation-list.component.d.ts +0 -0
- /package/{dist/lib → lib}/upload/public-api.d.ts +0 -0
- /package/{dist/lib → lib}/upload/services/validation-messages.service.d.ts +0 -0
- /package/{dist/lib → lib}/upload/types/upload.types.d.ts +0 -0
- /package/{dist/lib → lib}/upload/upload.conf.d.ts +0 -0
- /package/{dist/lib → lib}/upload/upload.module.d.ts +0 -0
- /package/{dist/public-api.d.ts → public-api.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acpaas-ui/ngx-forms",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@acpaas-ui/ngx-calendar": "^6.1.
|
|
8
|
+
"@acpaas-ui/ngx-calendar": "^6.1.11",
|
|
9
9
|
"@acpaas-ui/ngx-flyout": "^6.1.5",
|
|
10
10
|
"@acpaas-ui/ngx-icon": "^6.1.5",
|
|
11
11
|
"@acpaas-ui/ngx-progress-bar": "^6.0.6",
|
|
12
12
|
"@acpaas-ui/ngx-selectable-list": "^6.0.6",
|
|
13
|
-
"@acpaas-ui/ngx-utils": "^6.1.
|
|
14
|
-
"lodash-es": "~4.17.10"
|
|
13
|
+
"@acpaas-ui/ngx-utils": "^6.1.11",
|
|
14
|
+
"lodash-es": "~4.17.10",
|
|
15
|
+
"tslib": "^2.3.0"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
18
|
"@angular/common": ">=15.2.0",
|
|
@@ -19,5 +20,25 @@
|
|
|
19
20
|
"@angular/forms": ">=15.2.0",
|
|
20
21
|
"@angular/platform-browser": ">=15.2.0"
|
|
21
22
|
},
|
|
22
|
-
"gitHead": "
|
|
23
|
-
|
|
23
|
+
"gitHead": "a1d4ee3bb2ad1660425529efc15832c07c8853a2",
|
|
24
|
+
"module": "fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
25
|
+
"es2020": "fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
26
|
+
"esm2020": "esm2020/acpaas-ui-ngx-forms.mjs",
|
|
27
|
+
"fesm2020": "fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
28
|
+
"fesm2015": "fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
29
|
+
"typings": "index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": {
|
|
32
|
+
"default": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"esm2020": "./esm2020/acpaas-ui-ngx-forms.mjs",
|
|
37
|
+
"es2020": "./fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
38
|
+
"es2015": "./fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
39
|
+
"node": "./fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
40
|
+
"default": "./fesm2020/acpaas-ui-ngx-forms.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"sideEffects": false
|
|
44
|
+
}
|
package/.eslintrc.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../.eslintrc.json",
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"!**/*"
|
|
5
|
-
],
|
|
6
|
-
"overrides": [
|
|
7
|
-
{
|
|
8
|
-
"files": [
|
|
9
|
-
"*.ts"
|
|
10
|
-
],
|
|
11
|
-
"parserOptions": {
|
|
12
|
-
"project": [
|
|
13
|
-
"packages/ngx-forms/tsconfig.(lib|spec).json"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"rules": {
|
|
17
|
-
"@angular-eslint/directive-selector": [
|
|
18
|
-
"error",
|
|
19
|
-
{
|
|
20
|
-
"type": "attribute",
|
|
21
|
-
"prefix": "aui",
|
|
22
|
-
"style": "camelCase"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"@angular-eslint/component-selector": [
|
|
26
|
-
"error",
|
|
27
|
-
{
|
|
28
|
-
"type": "element",
|
|
29
|
-
"prefix": "aui",
|
|
30
|
-
"style": "kebab-case"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"files": [
|
|
37
|
-
"*.html"
|
|
38
|
-
],
|
|
39
|
-
"rules": {}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2016-present Digipolis
|
|
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.
|
package/dist/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# @acpaas-ui/ngx-forms
|
|
2
|
-
|
|
3
|
-
The forms module is a collection of several forms-related modules, like an autocomplete, a datepicker, a range slider, a timepicker, etc.
|
|
4
|
-
You can find an overview in the [Modules](#modules) section below.
|
|
5
|
-
|
|
6
|
-
## Documentation
|
|
7
|
-
|
|
8
|
-
Visit our [documentation site](https://antwerp-ui.digipolis.be/) for full how-to docs and guidelines
|
|
9
|
-
|
|
10
|
-
## <a name="modules"></a>Modules
|
|
11
|
-
|
|
12
|
-
| Name | Description | Documentation |
|
|
13
|
-
| -------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
|
|
14
|
-
| `AutoCompleteModule` | This module creates an input field with autocomplete functionality. | [Documentation](src/lib/auto-complete/README.md) |
|
|
15
|
-
| `DatepickerModule` | This package allows the user to select a date either by input or by picking one in the calendar flyout. | [Documentation](src/lib/datepicker/README.md) |
|
|
16
|
-
| `RangeSliderModule` | This module provides a range slider. | [Documentation](src/lib/range-slider/README.md) |
|
|
17
|
-
| `SearchFilterModule` | This package allows the user to use a JIRA-like filter component with remote search capabilities. | [Documentation](src/lib/search-filter/README.md) |
|
|
18
|
-
| `TimepickerModule` | This package allows the user set the time either by choosing a slot in the dropdown or by typing in the autocomplete field. | [Documentation](src/lib/timepicker/README.md) |
|
|
19
|
-
| `UploadModule` | This module provides a couple of upload components and a specific `Uploader` class. | [Documentation](src/lib/upload/README.md) |
|
|
20
|
-
|
|
21
|
-
## Contributing
|
|
22
|
-
|
|
23
|
-
Visit our [Contribution Guidelines](../../CONTRIBUTING.md) for more information on how to contribute.
|
package/dist/package.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@acpaas-ui/ngx-forms",
|
|
3
|
-
"version": "6.1.10",
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@acpaas-ui/ngx-calendar": "^6.1.10",
|
|
9
|
-
"@acpaas-ui/ngx-flyout": "^6.1.5",
|
|
10
|
-
"@acpaas-ui/ngx-icon": "^6.1.5",
|
|
11
|
-
"@acpaas-ui/ngx-progress-bar": "^6.0.6",
|
|
12
|
-
"@acpaas-ui/ngx-selectable-list": "^6.0.6",
|
|
13
|
-
"@acpaas-ui/ngx-utils": "^6.1.10",
|
|
14
|
-
"lodash-es": "~4.17.10",
|
|
15
|
-
"tslib": "^2.3.0"
|
|
16
|
-
},
|
|
17
|
-
"peerDependencies": {
|
|
18
|
-
"@angular/common": ">=15.2.0",
|
|
19
|
-
"@angular/core": ">=15.2.0",
|
|
20
|
-
"@angular/forms": ">=15.2.0",
|
|
21
|
-
"@angular/platform-browser": ">=15.2.0"
|
|
22
|
-
},
|
|
23
|
-
"gitHead": "5531c62b14b1cb5cec521e8e21e29d43ec70bee2",
|
|
24
|
-
"module": "fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
25
|
-
"es2020": "fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
26
|
-
"esm2020": "esm2020/acpaas-ui-ngx-forms.mjs",
|
|
27
|
-
"fesm2020": "fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
28
|
-
"fesm2015": "fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
29
|
-
"typings": "index.d.ts",
|
|
30
|
-
"exports": {
|
|
31
|
-
"./package.json": {
|
|
32
|
-
"default": "./package.json"
|
|
33
|
-
},
|
|
34
|
-
".": {
|
|
35
|
-
"types": "./index.d.ts",
|
|
36
|
-
"esm2020": "./esm2020/acpaas-ui-ngx-forms.mjs",
|
|
37
|
-
"es2020": "./fesm2020/acpaas-ui-ngx-forms.mjs",
|
|
38
|
-
"es2015": "./fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
39
|
-
"node": "./fesm2015/acpaas-ui-ngx-forms.mjs",
|
|
40
|
-
"default": "./fesm2020/acpaas-ui-ngx-forms.mjs"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"sideEffects": false
|
|
44
|
-
}
|
package/karma.conf.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage-istanbul-reporter'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
-
},
|
|
18
|
-
customLaunchers: {
|
|
19
|
-
ChromeHeadlessNoSandbox: {
|
|
20
|
-
base: 'ChromeHeadless',
|
|
21
|
-
flags: ['--no-sandbox']
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
coverageIstanbulReporter: {
|
|
25
|
-
dir: require('path').join(__dirname, '../../coverage/ngx-forms'),
|
|
26
|
-
reports: ['html', 'lcovonly', 'text-summary'],
|
|
27
|
-
fixWebpackSourcePaths: true
|
|
28
|
-
},
|
|
29
|
-
reporters: ['progress', 'kjhtml'],
|
|
30
|
-
port: 9876,
|
|
31
|
-
colors: true,
|
|
32
|
-
logLevel: config.LOG_INFO,
|
|
33
|
-
autoWatch: true,
|
|
34
|
-
browsers: ['ChromeHeadlessNoSandbox'],
|
|
35
|
-
singleRun: true,
|
|
36
|
-
restartOnFileChange: true
|
|
37
|
-
});
|
|
38
|
-
};
|
package/ng-package.json
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# @acpaas-ui/ngx-forms
|
|
2
|
-
|
|
3
|
-
This module creates an input field with autocomplete functionality.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
import { AutoCompleteModule } from '@acpaas-ui/ngx-forms';
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Documentation
|
|
12
|
-
|
|
13
|
-
Visit our [documentation site](https://antwerp-ui.digipolis.be/) for full how-to docs and guidelines
|
|
14
|
-
|
|
15
|
-
### API
|
|
16
|
-
|
|
17
|
-
| Name | Default value | Description |
|
|
18
|
-
| --------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
19
|
-
| `@Input() id: string;` | - | The id used for the input field. |
|
|
20
|
-
| `@Input() placeholder: string;` | - | The placeholder used for the input field. |
|
|
21
|
-
| `@Input() description: string;` | - | The description used for the input field. |
|
|
22
|
-
| `@Input() inputLabel: string;` | - | The label used for the input field. |
|
|
23
|
-
| `@Input() searchIncentiveText: string;` | - | The message shown when the user focuses on the input field (useful for remote search). |
|
|
24
|
-
| `@Input() loadingText: string;` | - | The message shown when the search is loading results (accompanied by a loading icon). |
|
|
25
|
-
| `@Input() noResultsText: string;` | - | The message shown when the search is complete and there are no results. |
|
|
26
|
-
| `@Input() remote: boolean;` | `false` | Enable remote search. |
|
|
27
|
-
| `@Input() minCharacters: number;` | `0` | The minimal required characters to trigger a search. |
|
|
28
|
-
| `@Input() clearInvalid: boolean;` | `false` | Clear invalid searchstring values on blur (resets to modelvalue). |
|
|
29
|
-
| `@Input() label: string;` | - | Provide a custom label prop for collections. This will be matched against for searching. |
|
|
30
|
-
| `@Input() value: string;` | - | Provide a custom value prop for collections. This will be used as the actual value. |
|
|
31
|
-
| `@Input() showAllByDefault: string;` | - | An attribute which can be set to true to show all items in `this.data` by default if no query is provided. This does need the `data`-attribute to have a correct value to work. |
|
|
32
|
-
| `@Input() data: any[];` | `[]` | An array of filtered objects (use the label and value properties) or a flat array of filtered strings. Data is used to do basic filtering inside the component. It is also possible to do the filtering yourself and provide the results directly. |
|
|
33
|
-
| `@Input() results: any[];` | `[]` | The values for the selectable list. This is an array of filtered objects (use the label and value properties) or a flat array of filtered strings. |
|
|
34
|
-
|
|
35
|
-
### Methods
|
|
36
|
-
|
|
37
|
-
| Name | Description |
|
|
38
|
-
| ------------------------------ | ------------------------------------------------------------ |
|
|
39
|
-
| `search(search: string): void` | The hook to filter the data yourself with the search string. |
|
|
40
|
-
| `select(item: any): void` | The hook that will be triggered when an item is selected. |
|
|
41
|
-
|
|
42
|
-
### Example
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { AutoCompleteModule } from '@acpaas-ui/ngx-forms';
|
|
46
|
-
|
|
47
|
-
@NgModule({
|
|
48
|
-
imports: [
|
|
49
|
-
AutoCompleteModule,
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export class AppModule {};
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### Local search
|
|
57
|
-
|
|
58
|
-
```typescript
|
|
59
|
-
public heroList = [
|
|
60
|
-
{name: 'Batman'},
|
|
61
|
-
{name: 'Wonder Woman'},
|
|
62
|
-
{name: 'Wolverine'},
|
|
63
|
-
{name: 'Iron Man'},
|
|
64
|
-
{name: 'Deadpool'},
|
|
65
|
-
];
|
|
66
|
-
public setSelectedItem(hero: string): void {
|
|
67
|
-
// Do something
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
```html
|
|
72
|
-
<aui-auto-complete
|
|
73
|
-
id="hero-names"
|
|
74
|
-
placeholder="Choose your hero…"
|
|
75
|
-
description="Description"
|
|
76
|
-
inputLabel="Hero"
|
|
77
|
-
value=""
|
|
78
|
-
minCharacters="3"
|
|
79
|
-
clearInvalid="true"
|
|
80
|
-
showAllByDefault="true"
|
|
81
|
-
[data]="heroList"
|
|
82
|
-
(select)="setSelectedItem($event)"
|
|
83
|
-
>
|
|
84
|
-
</aui-auto-complete>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### Remote search with template
|
|
88
|
-
|
|
89
|
-
```typescript
|
|
90
|
-
public results = [];
|
|
91
|
-
public heroList = [
|
|
92
|
-
{name: 'Batman'},
|
|
93
|
-
{name: 'Wonder Woman'},
|
|
94
|
-
{name: 'Wolverine'},
|
|
95
|
-
{name: 'Iron Man'},
|
|
96
|
-
{name: 'Deadpool'},
|
|
97
|
-
];
|
|
98
|
-
public searchValue = '';
|
|
99
|
-
public selectedItem = '';
|
|
100
|
-
|
|
101
|
-
public searchItems(search: string): void {
|
|
102
|
-
this.searchValue = search;
|
|
103
|
-
// Do search
|
|
104
|
-
this.debouncer.next(search);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
public setSelectedItem(hero: {name}): void {
|
|
108
|
-
this.selectedItem = hero;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
public formatLabel(input: any) {
|
|
112
|
-
const inputString = input.name;
|
|
113
|
-
|
|
114
|
-
if (!this.searchValue) {
|
|
115
|
-
return inputString;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Highlight searchValue in result
|
|
119
|
-
const regEx = new RegExp(this.searchValue, 'ig');
|
|
120
|
-
const inputStringHighlighted = (inputString.replace(regEx, '<strong>' + this.searchValue + '</strong>'));
|
|
121
|
-
return \`<aui-icon name="ai-single-neutral" className="u-text-light u-margin-right-xs"></aui-icon>\${inputStringHighlighted}\`;
|
|
122
|
-
}
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
```html
|
|
126
|
-
<aui-auto-complete
|
|
127
|
-
id="hero"
|
|
128
|
-
placeholder="Choose your hero…"
|
|
129
|
-
description="Description"
|
|
130
|
-
remote="true"
|
|
131
|
-
[results]="results"
|
|
132
|
-
inputLabel="Hero"
|
|
133
|
-
key="id"
|
|
134
|
-
loadingText="Loading…"
|
|
135
|
-
noResultsText="No results found"
|
|
136
|
-
searchIncentiveText="Type one or more keywords to start searching"
|
|
137
|
-
(search)="searchItems($event)"
|
|
138
|
-
(select)="setSelectedItem($event)"
|
|
139
|
-
>
|
|
140
|
-
<ng-template let-item>
|
|
141
|
-
<div class="has-icon-left" [innerHTML]="formatLabel(item)"></div>
|
|
142
|
-
</ng-template>
|
|
143
|
-
</aui-auto-complete>
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## Contributing
|
|
147
|
-
|
|
148
|
-
Visit our [Contribution Guidelines](../../../../../CONTRIBUTING.md) for more information on how to contribute.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { FlyoutModule } from '@acpaas-ui/ngx-flyout';
|
|
5
|
-
import { SelectableListModule } from '@acpaas-ui/ngx-selectable-list';
|
|
6
|
-
import { SearchService } from '../shared/services/search.service';
|
|
7
|
-
import { AutoCompleteComponent } from './components/auto-complete/auto-complete.component';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [CommonModule, FormsModule, FlyoutModule, SelectableListModule],
|
|
11
|
-
declarations: [AutoCompleteComponent],
|
|
12
|
-
exports: [AutoCompleteComponent],
|
|
13
|
-
providers: [SearchService],
|
|
14
|
-
})
|
|
15
|
-
export class AutoCompleteModule {}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
(closed)="onFlyoutClosed()"
|
|
3
|
-
[toggleClick]="false"
|
|
4
|
-
aria-haspopup="listbox"
|
|
5
|
-
auiFlyout
|
|
6
|
-
class="m-flyout m-flyout--scrollable m-flyout--full o-auto-complete"
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
(focus)="onFocus()"
|
|
10
|
-
(keyArrowDown)="onKeyArrowDown()"
|
|
11
|
-
(keyArrowUp)="onKeyArrowUp()"
|
|
12
|
-
(keyEnter)="onKeyEnter($event)"
|
|
13
|
-
(keyEscape)="onKeyEscape()"
|
|
14
|
-
[(ngModel)]="query"
|
|
15
|
-
(ngModelChange)="doSearch()"
|
|
16
|
-
[disabled]="isDisabled ? true : null"
|
|
17
|
-
[id]="id"
|
|
18
|
-
[placeholder]="placeholder"
|
|
19
|
-
aria-autocomplete="list"
|
|
20
|
-
auiFlyoutAction
|
|
21
|
-
auiSelectableActions
|
|
22
|
-
[autocomplete]="autoComplete"
|
|
23
|
-
type="text"
|
|
24
|
-
class="a-input"
|
|
25
|
-
/>
|
|
26
|
-
<div *ngIf="!isDisabled" auiFlyoutZone>
|
|
27
|
-
<span *ngIf="focused && loadingText && searching" class="a-spinner a-spinner--s u-margin-xs" role="alert">
|
|
28
|
-
<span class="a-spinner__circle"></span>
|
|
29
|
-
<span class="a-spinner__text">{{ loadingText }}</span>
|
|
30
|
-
</span>
|
|
31
|
-
<span
|
|
32
|
-
*ngIf="focused && searchIncentiveText && !searching && !query && !results.length"
|
|
33
|
-
class="o-auto-complete__info u-text-light u-margin-xs"
|
|
34
|
-
>{{ searchIncentiveText }}</span
|
|
35
|
-
>
|
|
36
|
-
<span
|
|
37
|
-
*ngIf="focused && noResultsText && !searching && query && !results.length"
|
|
38
|
-
class="o-auto-complete__info u-text-light u-margin-xs"
|
|
39
|
-
>{{ noResultsText }}</span
|
|
40
|
-
>
|
|
41
|
-
<aui-selectable-list
|
|
42
|
-
(selected)="onSelect($event)"
|
|
43
|
-
*ngIf="results.length > 0 && !(focused && loadingText && searching)"
|
|
44
|
-
[index]="index"
|
|
45
|
-
[itemTemplate]="template"
|
|
46
|
-
[items]="results"
|
|
47
|
-
[label]="label"
|
|
48
|
-
[search]="query"
|
|
49
|
-
></aui-selectable-list>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|