primekit 1.0.9 → 1.0.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/README.md +25 -25
- package/ng-package.json +8 -0
- package/package.json +15 -25
- package/src/assets/images/empty-table.svg +25 -25
- package/src/lib/lib/atomix-alert/atomix-alert.component.css +67 -0
- package/src/lib/lib/atomix-alert/atomix-alert.component.html +7 -0
- package/src/lib/lib/atomix-alert/atomix-alert.component.spec.ts +154 -0
- package/src/lib/lib/atomix-alert/atomix-alert.component.ts +75 -0
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.html +35 -0
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.scss +72 -0
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.spec.ts +210 -0
- package/src/lib/lib/atomix-autocomplete/atomix-autocomplete.component.ts +70 -0
- package/src/lib/lib/atomix-button/atomix-button.component.css +70 -0
- package/src/lib/lib/atomix-button/atomix-button.component.html +20 -0
- package/src/lib/lib/atomix-button/atomix-button.component.spec.ts +135 -0
- package/src/lib/lib/atomix-button/atomix-button.component.ts +28 -0
- package/{lib/lib/atomix-button/atomix-button.models.d.ts → src/lib/lib/atomix-button/atomix-button.models.ts} +2 -2
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.css +5 -0
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.html +20 -0
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.spec.ts +145 -0
- package/src/lib/lib/atomix-calendar/atomix-calendar.component.ts +71 -0
- package/src/lib/lib/atomix-card/atomix-card.component.css +4 -0
- package/src/lib/lib/atomix-card/atomix-card.component.html +3 -0
- package/src/lib/lib/atomix-card/atomix-card.component.spec.ts +63 -0
- package/src/lib/lib/atomix-card/atomix-card.component.ts +13 -0
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.css +12 -0
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.html +9 -0
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.spec.ts +63 -0
- package/src/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.ts +22 -0
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.html +233 -0
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.scss +266 -0
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.spec.ts +1465 -0
- package/src/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.ts +717 -0
- package/src/lib/lib/atomix-divider/atomix-divider.component.css +0 -0
- package/src/lib/lib/atomix-divider/atomix-divider.component.html +7 -0
- package/src/lib/lib/atomix-divider/atomix-divider.component.spec.ts +91 -0
- package/src/lib/lib/atomix-divider/atomix-divider.component.ts +17 -0
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.css +25 -0
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.html +37 -0
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.spec.ts +178 -0
- package/src/lib/lib/atomix-dropdown/atomix-dropdown.component.ts +89 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.css +0 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.html +0 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.spec.ts +128 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.ts +42 -0
- package/src/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.ts +12 -0
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.html +20 -0
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.scss +7 -0
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.spec.ts +169 -0
- package/src/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.ts +41 -0
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.html +21 -0
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.scss +7 -0
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.spec.ts +142 -0
- package/src/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.ts +32 -0
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.html +13 -0
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.scss +14 -0
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.spec.ts +112 -0
- package/src/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.ts +28 -0
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.html +20 -0
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.scss +3 -0
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.spec.ts +153 -0
- package/src/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.ts +28 -0
- package/src/lib/lib/atomix-form/atomix-form-chips/form.chips.models.ts +5 -0
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.html +24 -0
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.scss +15 -0
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.spec.ts +156 -0
- package/src/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.ts +36 -0
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.html +33 -0
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.scss +32 -0
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.spec.ts +156 -0
- package/src/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.ts +42 -0
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.html +14 -0
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.scss +0 -0
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.spec.ts +104 -0
- package/src/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.ts +24 -0
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.html +16 -0
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.scss +0 -0
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.spec.ts +92 -0
- package/src/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.ts +24 -0
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.html +23 -0
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.scss +3 -0
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.spec.ts +126 -0
- package/src/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.ts +26 -0
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.html +17 -0
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.scss +6 -0
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.spec.ts +120 -0
- package/src/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.ts +24 -0
- package/src/lib/lib/atomix-input/atomix-input.component.css +52 -0
- package/src/lib/lib/atomix-input/atomix-input.component.html +45 -0
- package/src/lib/lib/atomix-input/atomix-input.component.spec.ts +229 -0
- package/src/lib/lib/atomix-input/atomix-input.component.ts +64 -0
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.css +12 -0
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.html +17 -0
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.spec.ts +173 -0
- package/src/lib/lib/atomix-input-switch/atomix-input-switch.component.ts +62 -0
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.html +47 -0
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.scss +14 -0
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.spec.ts +21 -0
- package/src/lib/lib/atomix-loading-overlay/atomix-loading-overlay.component.ts +25 -0
- package/src/lib/lib/atomix-messages/messages.component.css +0 -0
- package/src/lib/lib/atomix-messages/messages.component.html +9 -0
- package/src/lib/lib/atomix-messages/messages.component.spec.ts +115 -0
- package/src/lib/lib/atomix-messages/messages.component.ts +17 -0
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.css +19 -0
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.html +24 -0
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.spec.ts +98 -0
- package/src/lib/lib/atomix-pagination/atomix-pagination.component.ts +36 -0
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.css +0 -0
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.html +7 -0
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.spec.ts +116 -0
- package/src/lib/lib/atomix-radio-button/atomix-radio-button.component.ts +37 -0
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.css +49 -0
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.html +68 -0
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.spec.ts +282 -0
- package/src/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.ts +119 -0
- package/{lib/lib/atomix-select-button/atomix-select-button-models.d.ts → src/lib/lib/atomix-select-button/atomix-select-button-models.ts} +4 -4
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.css +5 -0
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.html +7 -0
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.spec.ts +73 -0
- package/src/lib/lib/atomix-select-button/atomix-select-button.component.ts +19 -0
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.css +30 -0
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.html +4 -0
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.spec.ts +60 -0
- package/src/lib/lib/atomix-snackbar/atomix-snackbar.component.ts +27 -0
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.css +0 -0
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.html +7 -0
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.spec.ts +70 -0
- package/src/lib/lib/atomix-spinner/atomix-spinner.component.ts +13 -0
- package/src/lib/lib/atomix-steps/atomix-steps.component.html +9 -0
- package/src/lib/lib/atomix-steps/atomix-steps.component.scss +0 -0
- package/src/lib/lib/atomix-steps/atomix-steps.component.spec.ts +120 -0
- package/src/lib/lib/atomix-steps/atomix-steps.component.ts +32 -0
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.css +0 -0
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.html +26 -0
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.spec.ts +106 -0
- package/src/lib/lib/atomix-tabMenu/atomix-tabMenu.component.ts +36 -0
- package/src/lib/lib/atomix-table/atomix-table.component.css +152 -0
- package/src/lib/lib/atomix-table/atomix-table.component.html +647 -0
- package/src/lib/lib/atomix-table/atomix-table.component.spec.ts +1648 -0
- package/src/lib/lib/atomix-table/atomix-table.component.ts +422 -0
- package/src/lib/lib/atomix-table/atomix-table.models.ts +39 -0
- package/src/lib/lib/atomix-tag/atomix-tag.component.css +0 -0
- package/src/lib/lib/atomix-tag/atomix-tag.component.html +6 -0
- package/src/lib/lib/atomix-tag/atomix-tag.component.spec.ts +47 -0
- package/src/lib/lib/atomix-tag/atomix-tag.component.ts +13 -0
- package/src/lib/lib/utils/prime-icons.util.spec.ts +21 -0
- package/src/lib/lib/utils/prime-icons.util.ts +11 -0
- package/src/lib/primekit.component.spec.ts +19 -0
- package/src/lib/primekit.component.ts +10 -0
- package/src/lib/primekit.module.spec.ts +155 -0
- package/src/lib/primekit.module.ts +183 -0
- package/src/lib/primekit.service.spec.ts +17 -0
- package/src/lib/primekit.service.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +47 -37
- package/tsconfig.lib.json +13 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +10 -0
- package/esm2022/lib/lib/atomix-alert/atomix-alert.component.mjs +0 -76
- package/esm2022/lib/lib/atomix-autocomplete/atomix-autocomplete.component.mjs +0 -108
- package/esm2022/lib/lib/atomix-button/atomix-button.component.mjs +0 -49
- package/esm2022/lib/lib/atomix-button/atomix-button.models.mjs +0 -2
- package/esm2022/lib/lib/atomix-calendar/atomix-calendar.component.mjs +0 -90
- package/esm2022/lib/lib/atomix-card/atomix-card.component.mjs +0 -24
- package/esm2022/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.mjs +0 -28
- package/esm2022/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.mjs +0 -648
- package/esm2022/lib/lib/atomix-divider/atomix-divider.component.mjs +0 -27
- package/esm2022/lib/lib/atomix-dropdown/atomix-dropdown.component.mjs +0 -105
- package/esm2022/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.mjs +0 -38
- package/esm2022/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.mjs +0 -2
- package/esm2022/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.mjs +0 -67
- package/esm2022/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.mjs +0 -59
- package/esm2022/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.mjs +0 -48
- package/esm2022/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.mjs +0 -54
- package/esm2022/lib/lib/atomix-form/atomix-form-chips/form.chips.models.mjs +0 -2
- package/esm2022/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.mjs +0 -70
- package/esm2022/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.mjs +0 -80
- package/esm2022/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.mjs +0 -48
- package/esm2022/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.mjs +0 -48
- package/esm2022/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.mjs +0 -46
- package/esm2022/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.mjs +0 -46
- package/esm2022/lib/lib/atomix-input/atomix-input.component.mjs +0 -94
- package/esm2022/lib/lib/atomix-input-switch/atomix-input-switch.component.mjs +0 -85
- package/esm2022/lib/lib/atomix-messages/messages.component.mjs +0 -33
- package/esm2022/lib/lib/atomix-pagination/atomix-pagination.component.mjs +0 -48
- package/esm2022/lib/lib/atomix-radio-button/atomix-radio-button.component.mjs +0 -50
- package/esm2022/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.mjs +0 -149
- package/esm2022/lib/lib/atomix-select-button/atomix-select-button-models.mjs +0 -2
- package/esm2022/lib/lib/atomix-select-button/atomix-select-button.component.mjs +0 -25
- package/esm2022/lib/lib/atomix-snackbar/atomix-snackbar.component.mjs +0 -29
- package/esm2022/lib/lib/atomix-spinner/atomix-spinner.component.mjs +0 -24
- package/esm2022/lib/lib/atomix-steps/atomix-steps.component.mjs +0 -41
- package/esm2022/lib/lib/atomix-tabMenu/atomix-tabMenu.component.mjs +0 -51
- package/esm2022/lib/lib/atomix-table/atomix-table.component.mjs +0 -454
- package/esm2022/lib/lib/atomix-table/atomix-table.models.mjs +0 -2
- package/esm2022/lib/lib/atomix-tag/atomix-tag.component.mjs +0 -24
- package/esm2022/lib/lib/utils/prime-icons.util.mjs +0 -10
- package/esm2022/lib/primekit.component.mjs +0 -11
- package/esm2022/lib/primekit.module.mjs +0 -313
- package/esm2022/lib/primekit.service.mjs +0 -14
- package/esm2022/primekit.mjs +0 -5
- package/esm2022/public-api.mjs +0 -43
- package/fesm2022/primekit.mjs +0 -3041
- package/fesm2022/primekit.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/lib/atomix-alert/atomix-alert.component.d.ts +0 -22
- package/lib/lib/atomix-autocomplete/atomix-autocomplete.component.d.ts +0 -34
- package/lib/lib/atomix-button/atomix-button.component.d.ts +0 -19
- package/lib/lib/atomix-calendar/atomix-calendar.component.d.ts +0 -27
- package/lib/lib/atomix-card/atomix-card.component.d.ts +0 -9
- package/lib/lib/atomix-confirmation-dialog/atomix-confirmation-dialog.component.d.ts +0 -12
- package/lib/lib/atomix-daterange-calendar/atomix-daterange-calendar.component.d.ts +0 -72
- package/lib/lib/atomix-divider/atomix-divider.component.d.ts +0 -12
- package/lib/lib/atomix-dropdown/atomix-dropdown.component.d.ts +0 -50
- package/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.component.d.ts +0 -15
- package/lib/lib/atomix-dynamic-dialog/atomix-dynamic-dialog.models.d.ts +0 -11
- package/lib/lib/atomix-form/atomix-form-autocomplete/atomix-form-autocomplete.component.d.ts +0 -25
- package/lib/lib/atomix-form/atomix-form-calendar/atomix-form-calendar.component.d.ts +0 -23
- package/lib/lib/atomix-form/atomix-form-checkbox/atomix-form-checkbox.component.d.ts +0 -18
- package/lib/lib/atomix-form/atomix-form-chips/atomix-form-chips.component.d.ts +0 -19
- package/lib/lib/atomix-form/atomix-form-chips/form.chips.models.d.ts +0 -5
- package/lib/lib/atomix-form/atomix-form-dropdown/atomix-form-dropdown.component.d.ts +0 -25
- package/lib/lib/atomix-form/atomix-form-input-component/atomix-form-input-component.component.d.ts +0 -28
- package/lib/lib/atomix-form/atomix-form-inputmask-component/atomix-form-inputmask-component.component.d.ts +0 -17
- package/lib/lib/atomix-form/atomix-form-password-component/atomix-form-password-component.component.d.ts +0 -17
- package/lib/lib/atomix-form/atomix-form-radio-button/atomix-radio-button.component.d.ts +0 -19
- package/lib/lib/atomix-form/atomix-form-textarea/atomix-form-textarea.component.d.ts +0 -17
- package/lib/lib/atomix-input/atomix-input.component.d.ts +0 -29
- package/lib/lib/atomix-input-switch/atomix-input-switch.component.d.ts +0 -30
- package/lib/lib/atomix-messages/messages.component.d.ts +0 -13
- package/lib/lib/atomix-pagination/atomix-pagination.component.d.ts +0 -19
- package/lib/lib/atomix-radio-button/atomix-radio-button.component.d.ts +0 -15
- package/lib/lib/atomix-search-dropdown/atomix-search-dropdown.component.d.ts +0 -60
- package/lib/lib/atomix-select-button/atomix-select-button.component.d.ts +0 -12
- package/lib/lib/atomix-snackbar/atomix-snackbar.component.d.ts +0 -12
- package/lib/lib/atomix-spinner/atomix-spinner.component.d.ts +0 -9
- package/lib/lib/atomix-steps/atomix-steps.component.d.ts +0 -19
- package/lib/lib/atomix-tabMenu/atomix-tabMenu.component.d.ts +0 -19
- package/lib/lib/atomix-table/atomix-table.component.d.ts +0 -119
- package/lib/lib/atomix-table/atomix-table.models.d.ts +0 -43
- package/lib/lib/atomix-tag/atomix-tag.component.d.ts +0 -9
- package/lib/lib/utils/prime-icons.util.d.ts +0 -3
- package/lib/primekit.component.d.ts +0 -5
- package/lib/primekit.module.d.ts +0 -70
- package/lib/primekit.service.d.ts +0 -6
package/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# Primekit
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project primekit` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project primekit`.
|
|
8
|
-
|
|
9
|
-
> Note: Don't forget to add `--project primekit` or else it will be added to the default project in your `angular.json` file.
|
|
10
|
-
|
|
11
|
-
## Build
|
|
12
|
-
|
|
13
|
-
Run `ng build primekit` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
14
|
-
|
|
15
|
-
## Publishing
|
|
16
|
-
|
|
17
|
-
After building your library with `ng build primekit`, go to the dist folder `cd dist/primekit` and run `npm publish`.
|
|
18
|
-
|
|
19
|
-
## Running unit tests
|
|
20
|
-
|
|
21
|
-
Run `ng test primekit` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
22
|
-
|
|
23
|
-
## Further help
|
|
24
|
-
|
|
25
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
1
|
+
# Primekit
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project primekit` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project primekit`.
|
|
8
|
+
|
|
9
|
+
> Note: Don't forget to add `--project primekit` or else it will be added to the default project in your `angular.json` file.
|
|
10
|
+
|
|
11
|
+
## Build
|
|
12
|
+
|
|
13
|
+
Run `ng build primekit` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
14
|
+
|
|
15
|
+
## Publishing
|
|
16
|
+
|
|
17
|
+
After building your library with `ng build primekit`, go to the dist folder `cd dist/primekit` and run `npm publish`.
|
|
18
|
+
|
|
19
|
+
## Running unit tests
|
|
20
|
+
|
|
21
|
+
Run `ng test primekit` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
22
|
+
|
|
23
|
+
## Further help
|
|
24
|
+
|
|
25
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "primekit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^18.2.0",
|
|
6
|
-
"@angular/core": "^18.2.0"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"default": "./package.json"
|
|
17
|
-
},
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./index.d.ts",
|
|
20
|
-
"esm2022": "./esm2022/primekit.mjs",
|
|
21
|
-
"esm": "./esm2022/primekit.mjs",
|
|
22
|
-
"default": "./fesm2022/primekit.mjs"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "primekit",
|
|
3
|
+
"version": "1.0.11",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0",
|
|
7
|
+
"@angular/forms": "^18.2.0",
|
|
8
|
+
"primeng": "^17.0.0",
|
|
9
|
+
"rxjs": "~7.8.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.3.0"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false
|
|
15
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="200px" height="160px" viewBox="0 0 200 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>Empty Table</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
-
<stop stop-color="#E2E8F0" offset="0%"></stop>
|
|
7
|
-
<stop stop-color="#CBD5E1" offset="100%"></stop>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
</defs>
|
|
10
|
-
<g id="Empty-Table" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
-
<rect id="Table-Base" fill="url(#linearGradient-1)" x="20" y="100" width="160" height="20" rx="4"></rect>
|
|
12
|
-
<rect id="Table-Top" fill="#F1F5F9" x="30" y="40" width="140" height="60" rx="4"></rect>
|
|
13
|
-
<rect id="Table-Shadow" fill="#94A3B8" opacity="0.2" x="20" y="120" width="160" height="6" rx="2"></rect>
|
|
14
|
-
<g id="No-Data" transform="translate(50, 55)">
|
|
15
|
-
<rect id="Cell-1" fill="#E2E8F0" x="0" y="0" width="100" height="8" rx="2"></rect>
|
|
16
|
-
<rect id="Cell-2" fill="#E2E8F0" x="0" y="16" width="100" height="8" rx="2"></rect>
|
|
17
|
-
<rect id="Cell-3" fill="#E2E8F0" x="0" y="32" width="60" height="8" rx="2"></rect>
|
|
18
|
-
</g>
|
|
19
|
-
<g id="Magnifying-Glass" transform="translate(120, 30)">
|
|
20
|
-
<circle id="Glass" stroke="#64748B" stroke-width="4" fill="#F8FAFC" cx="15" cy="15" r="15"></circle>
|
|
21
|
-
<line x1="26" y1="26" x2="40" y2="40" id="Handle" stroke="#64748B" stroke-width="4" stroke-linecap="round"></line>
|
|
22
|
-
<circle id="Reflection" fill="#E2E8F0" cx="10" cy="10" r="4"></circle>
|
|
23
|
-
</g>
|
|
24
|
-
</g>
|
|
25
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="200px" height="160px" viewBox="0 0 200 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>Empty Table</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#E2E8F0" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#CBD5E1" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
<g id="Empty-Table" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
+
<rect id="Table-Base" fill="url(#linearGradient-1)" x="20" y="100" width="160" height="20" rx="4"></rect>
|
|
12
|
+
<rect id="Table-Top" fill="#F1F5F9" x="30" y="40" width="140" height="60" rx="4"></rect>
|
|
13
|
+
<rect id="Table-Shadow" fill="#94A3B8" opacity="0.2" x="20" y="120" width="160" height="6" rx="2"></rect>
|
|
14
|
+
<g id="No-Data" transform="translate(50, 55)">
|
|
15
|
+
<rect id="Cell-1" fill="#E2E8F0" x="0" y="0" width="100" height="8" rx="2"></rect>
|
|
16
|
+
<rect id="Cell-2" fill="#E2E8F0" x="0" y="16" width="100" height="8" rx="2"></rect>
|
|
17
|
+
<rect id="Cell-3" fill="#E2E8F0" x="0" y="32" width="60" height="8" rx="2"></rect>
|
|
18
|
+
</g>
|
|
19
|
+
<g id="Magnifying-Glass" transform="translate(120, 30)">
|
|
20
|
+
<circle id="Glass" stroke="#64748B" stroke-width="4" fill="#F8FAFC" cx="15" cy="15" r="15"></circle>
|
|
21
|
+
<line x1="26" y1="26" x2="40" y2="40" id="Handle" stroke="#64748B" stroke-width="4" stroke-linecap="round"></line>
|
|
22
|
+
<circle id="Reflection" fill="#E2E8F0" cx="10" cy="10" r="4"></circle>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.toast-header {
|
|
2
|
+
margin-bottom: 8px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.toast-summary {
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
margin-bottom: 4px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.toast-detail {
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
margin-bottom: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.download-button-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.custom-download-button {
|
|
23
|
+
background-color: #4caf50 !important;
|
|
24
|
+
border-color: #4caf50 !important;
|
|
25
|
+
color: white !important;
|
|
26
|
+
padding: 8px 16px;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.toast-container {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
padding: 12px;
|
|
37
|
+
background-color: #fff;
|
|
38
|
+
border-radius: var(--global-border-radius);
|
|
39
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.toast-header {
|
|
43
|
+
margin-bottom: 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.toast-summary {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
margin-bottom: 4px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.toast-detail {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
margin-bottom: 16px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.download-button-container {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: flex-end;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.custom-download-link {
|
|
64
|
+
color: #4caf50;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
text-decoration: underline;
|
|
67
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { MessageService } from 'primeng/api';
|
|
5
|
+
import { AtomixToastComponent } from './atomix-alert.component';
|
|
6
|
+
|
|
7
|
+
describe('AtomixToastComponent', () => {
|
|
8
|
+
let component: AtomixToastComponent;
|
|
9
|
+
let fixture: ComponentFixture<AtomixToastComponent>;
|
|
10
|
+
let mockMessageService: { add: jest.Mock };
|
|
11
|
+
let mockRouter: { navigate: jest.Mock };
|
|
12
|
+
|
|
13
|
+
beforeEach(() => {
|
|
14
|
+
mockMessageService = { add: jest.fn() };
|
|
15
|
+
mockRouter = { navigate: jest.fn() };
|
|
16
|
+
|
|
17
|
+
TestBed.configureTestingModule({
|
|
18
|
+
declarations: [AtomixToastComponent],
|
|
19
|
+
providers: [
|
|
20
|
+
{ provide: MessageService, useValue: mockMessageService },
|
|
21
|
+
{ provide: Router, useValue: mockRouter },
|
|
22
|
+
],
|
|
23
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
fixture = TestBed.createComponent(AtomixToastComponent);
|
|
27
|
+
component = fixture.componentInstance;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should create', () => {
|
|
31
|
+
expect(component).toBeTruthy();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
describe('showSuccess', () => {
|
|
35
|
+
it('should call MessageService.add with severity success', () => {
|
|
36
|
+
component.showSuccess('Success Title', 'Success message');
|
|
37
|
+
|
|
38
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
39
|
+
severity: 'success',
|
|
40
|
+
summary: 'Success Title',
|
|
41
|
+
detail: 'Success message',
|
|
42
|
+
key: undefined,
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('should include key when key input is set', () => {
|
|
47
|
+
component.key = 'my-toast-key';
|
|
48
|
+
component.showSuccess('Title', 'Message');
|
|
49
|
+
|
|
50
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
51
|
+
severity: 'success',
|
|
52
|
+
summary: 'Title',
|
|
53
|
+
detail: 'Message',
|
|
54
|
+
key: 'my-toast-key',
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('showError', () => {
|
|
60
|
+
it('should call MessageService.add with severity error', () => {
|
|
61
|
+
component.showError('Error Title', 'Error message');
|
|
62
|
+
|
|
63
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
64
|
+
severity: 'error',
|
|
65
|
+
summary: 'Error Title',
|
|
66
|
+
detail: 'Error message',
|
|
67
|
+
key: undefined,
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('should include key when key input is set', () => {
|
|
72
|
+
component.key = 'error-key';
|
|
73
|
+
component.showError('Title', 'Message');
|
|
74
|
+
|
|
75
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
76
|
+
severity: 'error',
|
|
77
|
+
summary: 'Title',
|
|
78
|
+
detail: 'Message',
|
|
79
|
+
key: 'error-key',
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
describe('showWarning', () => {
|
|
85
|
+
it('should call MessageService.add with severity warn', () => {
|
|
86
|
+
component.showWarning('Warning Title', 'Warning message');
|
|
87
|
+
|
|
88
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
89
|
+
severity: 'warn',
|
|
90
|
+
summary: 'Warning Title',
|
|
91
|
+
detail: 'Warning message',
|
|
92
|
+
key: undefined,
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it('should include key when key input is set', () => {
|
|
97
|
+
component.key = 'warn-key';
|
|
98
|
+
component.showWarning('Title', 'Message');
|
|
99
|
+
|
|
100
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
101
|
+
severity: 'warn',
|
|
102
|
+
summary: 'Title',
|
|
103
|
+
detail: 'Message',
|
|
104
|
+
key: 'warn-key',
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
describe('ngAfterContentInit', () => {
|
|
110
|
+
it('should set messageTemplate when a template with type message is found', () => {
|
|
111
|
+
const mockTemplate = {} as any;
|
|
112
|
+
const mockPrimeTemplate = { getType: () => 'message', template: mockTemplate };
|
|
113
|
+
component.templates = { forEach: (fn: any) => fn(mockPrimeTemplate) } as any;
|
|
114
|
+
|
|
115
|
+
component.ngAfterContentInit();
|
|
116
|
+
|
|
117
|
+
expect(component.messageTemplate).toBe(mockTemplate);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it('should not set messageTemplate when template type is not message', () => {
|
|
121
|
+
const mockPrimeTemplate = { getType: () => 'header', template: {} as any };
|
|
122
|
+
component.templates = { forEach: (fn: any) => fn(mockPrimeTemplate) } as any;
|
|
123
|
+
|
|
124
|
+
component.ngAfterContentInit();
|
|
125
|
+
|
|
126
|
+
expect(component.messageTemplate).toBeNull();
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
describe('showInfo', () => {
|
|
131
|
+
it('should call MessageService.add with severity info', () => {
|
|
132
|
+
component.showInfo('Info Title', 'Info message');
|
|
133
|
+
|
|
134
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
135
|
+
severity: 'info',
|
|
136
|
+
summary: 'Info Title',
|
|
137
|
+
detail: 'Info message',
|
|
138
|
+
key: undefined,
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it('should include key when key input is set', () => {
|
|
143
|
+
component.key = 'info-key';
|
|
144
|
+
component.showInfo('Title', 'Message');
|
|
145
|
+
|
|
146
|
+
expect(mockMessageService.add).toHaveBeenCalledWith({
|
|
147
|
+
severity: 'info',
|
|
148
|
+
summary: 'Title',
|
|
149
|
+
detail: 'Message',
|
|
150
|
+
key: 'info-key',
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
ContentChildren,
|
|
4
|
+
Input,
|
|
5
|
+
QueryList,
|
|
6
|
+
TemplateRef,
|
|
7
|
+
ViewChild,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { Router } from '@angular/router';
|
|
10
|
+
import { MessageService, PrimeTemplate } from 'primeng/api';
|
|
11
|
+
import { Toast, ToastPositionType } from 'primeng/toast';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'atomix-toast',
|
|
15
|
+
templateUrl: './atomix-alert.component.html',
|
|
16
|
+
styleUrls: ['./atomix-alert.component.css'],
|
|
17
|
+
})
|
|
18
|
+
export class AtomixToastComponent {
|
|
19
|
+
constructor(
|
|
20
|
+
private messageService: MessageService,
|
|
21
|
+
private router: Router
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
@ViewChild('toast') toast!: Toast;
|
|
25
|
+
@ContentChildren(PrimeTemplate) templates!: QueryList<PrimeTemplate>;
|
|
26
|
+
|
|
27
|
+
@Input() key?: string;
|
|
28
|
+
@Input() position: ToastPositionType = 'top-right';
|
|
29
|
+
|
|
30
|
+
messageTemplate: TemplateRef<any> | null = null;
|
|
31
|
+
|
|
32
|
+
ngAfterContentInit() {
|
|
33
|
+
this.templates.forEach((item) => {
|
|
34
|
+
if (item.getType() === 'message') {
|
|
35
|
+
this.messageTemplate = item.template;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
showSuccess(title: string, message: string): void {
|
|
41
|
+
this.messageService.add({
|
|
42
|
+
severity: 'success',
|
|
43
|
+
summary: title,
|
|
44
|
+
detail: message,
|
|
45
|
+
key: this.key || undefined,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
showWarning(title: string, message: string): void {
|
|
50
|
+
this.messageService.add({
|
|
51
|
+
severity: 'warn',
|
|
52
|
+
summary: title,
|
|
53
|
+
detail: message,
|
|
54
|
+
key: this.key || undefined,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
showError(title: string, message: string): void {
|
|
59
|
+
this.messageService.add({
|
|
60
|
+
severity: 'error',
|
|
61
|
+
summary: title,
|
|
62
|
+
detail: message,
|
|
63
|
+
key: this.key || undefined,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
showInfo(title: string, message: string): void {
|
|
68
|
+
this.messageService.add({
|
|
69
|
+
severity: 'info',
|
|
70
|
+
summary: title,
|
|
71
|
+
detail: message,
|
|
72
|
+
key: this.key || undefined,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<label *ngIf="label"
|
|
2
|
+
>{{ label }}
|
|
3
|
+
<span *ngIf="isLabelRequired" class="error-asterisk">*</span></label
|
|
4
|
+
>
|
|
5
|
+
<div [class]="autocompleteContainer + ' atomix-autocomplete-wrapper'">
|
|
6
|
+
<p-autoComplete
|
|
7
|
+
[(ngModel)]="selectedValues"
|
|
8
|
+
[suggestions]="suggestions"
|
|
9
|
+
[placeholder]="placeholder"
|
|
10
|
+
[optionLabel]="optionLabel"
|
|
11
|
+
[showClear]="showClear"
|
|
12
|
+
[dropdown]="dropdown"
|
|
13
|
+
[name]="name"
|
|
14
|
+
[styleClass]="styleClass"
|
|
15
|
+
(completeMethod)="queryHandler.emit([$event, name])"
|
|
16
|
+
(onSelect)="selectOptionHandler.emit([$event, name])"
|
|
17
|
+
(onClear)="selectOptionHandler.emit([$event, name])"
|
|
18
|
+
[showEmptyMessage]="true"
|
|
19
|
+
appendTo="body"
|
|
20
|
+
[virtualScroll]="virtualScroll"
|
|
21
|
+
[virtualScrollItemSize]="virtualScrollItemSize"
|
|
22
|
+
[delay]="delay"
|
|
23
|
+
[disabled]="disabled"
|
|
24
|
+
(ngModelChange)="onModelChange($event)"
|
|
25
|
+
>
|
|
26
|
+
<ng-template let-item pTemplate="item">
|
|
27
|
+
<div class="autocomplete-item">
|
|
28
|
+
<div class="font-semibold">{{ item[optionLabel] }}</div>
|
|
29
|
+
<div class="text-xs text-gray-500">
|
|
30
|
+
{{ item[optionDescription] }}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</ng-template>
|
|
34
|
+
</p-autoComplete>
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* Add custom styles for atomix-autocomplete component */
|
|
2
|
+
|
|
3
|
+
::ng-deep {
|
|
4
|
+
.p-autocomplete-dd .p-autocomplete-dropdown {
|
|
5
|
+
border-radius: 0 var(--global-border-radius) var(--global-border-radius) 0 !important;
|
|
6
|
+
}
|
|
7
|
+
.atomix-autocomplete-wrapper {
|
|
8
|
+
border-radius: var(--global-border-radius);
|
|
9
|
+
margin-left: 0.5rem;
|
|
10
|
+
|
|
11
|
+
.p-inputtext {
|
|
12
|
+
background-color: var(--filter-inventory-bg) !important;
|
|
13
|
+
padding: 0rem 0rem 0rem 1rem !important;
|
|
14
|
+
min-width: 8rem;
|
|
15
|
+
border-radius: var(--global-border-radius) 0px 0px
|
|
16
|
+
var(--global-border-radius);
|
|
17
|
+
padding-right: 16px !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.p-autocomplete-dropdown {
|
|
21
|
+
color: var(--primary-text-color) !important;
|
|
22
|
+
border-radius: var(--global-border-radius);
|
|
23
|
+
border: 1px solid var(--border-color);
|
|
24
|
+
border-left: none;
|
|
25
|
+
}
|
|
26
|
+
.p-inputtext:enabled:focus {
|
|
27
|
+
box-shadow: none !important;
|
|
28
|
+
}
|
|
29
|
+
.p-autocomplete-clear-icon {
|
|
30
|
+
right: 3.3rem;
|
|
31
|
+
}
|
|
32
|
+
.font-semibold {
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.atomix-autocomplete-form {
|
|
38
|
+
margin-left: 0 !important;
|
|
39
|
+
|
|
40
|
+
.p-autocomplete {
|
|
41
|
+
width: 100%;
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.p-autocomplete-input {
|
|
46
|
+
flex: 1 1 auto;
|
|
47
|
+
width: 1%;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.p-inputtext {
|
|
52
|
+
padding: 1rem !important;
|
|
53
|
+
padding-right: 2.5rem !important;
|
|
54
|
+
border-radius: var(--global-border-radius) !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.p-autocomplete-clear-icon {
|
|
58
|
+
position: absolute !important;
|
|
59
|
+
right: 0.75rem;
|
|
60
|
+
top: 50%;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.atomix-autocomplete-location {
|
|
67
|
+
.p-autocomplete-clear-icon {
|
|
68
|
+
right: 1.3rem;
|
|
69
|
+
top: 2.3rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|