@recursyve/nice-ui-kit.v2 14.0.0-beta.95 → 14.0.0-beta.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/esm2020/lib/api/interceptors/transform-response.interceptor.mjs +3 -3
  2. package/esm2020/lib/components/alert/alert.component.mjs +24 -12
  3. package/esm2020/lib/components/alert/alert.module.mjs +4 -4
  4. package/esm2020/lib/components/alert/alert.service.mjs +3 -3
  5. package/esm2020/lib/components/alert/alert.types.mjs +1 -1
  6. package/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +12 -6
  7. package/esm2020/lib/components/assets-carousel/assets-carousel.module.mjs +4 -4
  8. package/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +15 -9
  9. package/esm2020/lib/components/async-typeahead/async-typeahead.module.mjs +4 -4
  10. package/esm2020/lib/components/async-typeahead/providers/async-typeahead.service.mjs +3 -3
  11. package/esm2020/lib/components/base-form/base-form.component.mjs +16 -5
  12. package/esm2020/lib/components/base-form/base-form.module.mjs +4 -4
  13. package/esm2020/lib/components/base-form/form-submit.directive.mjs +3 -3
  14. package/esm2020/lib/components/card/card.component.mjs +3 -3
  15. package/esm2020/lib/components/card/card.module.mjs +4 -4
  16. package/esm2020/lib/components/carousel/carousel.component.mjs +3 -3
  17. package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
  18. package/esm2020/lib/components/carousel/picture-modal/picture-modal.component.mjs +3 -3
  19. package/esm2020/lib/components/carousel/picture-modal/picture-modal.service.mjs +3 -3
  20. package/esm2020/lib/components/carousel/pipe/carousel-layout.pipe.mjs +3 -3
  21. package/esm2020/lib/components/drawer/drawer.component.mjs +3 -3
  22. package/esm2020/lib/components/drawer/drawer.module.mjs +4 -4
  23. package/esm2020/lib/components/drawer/drawer.service.mjs +3 -3
  24. package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.component.mjs +3 -3
  25. package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.module.mjs +4 -4
  26. package/esm2020/lib/components/export-bottom-sheet/providers/export-bottom-sheet.service.mjs +6 -6
  27. package/esm2020/lib/components/form-error/control-status.directive.mjs +3 -3
  28. package/esm2020/lib/components/form-error/form-error.component.mjs +3 -3
  29. package/esm2020/lib/components/form-error/form-error.module.mjs +4 -4
  30. package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.component.mjs +3 -3
  31. package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.module.mjs +4 -4
  32. package/esm2020/lib/components/horizontal-stepper/step.component.mjs +3 -3
  33. package/esm2020/lib/components/image-cropper/image-cropper.component.mjs +8 -8
  34. package/esm2020/lib/components/image-cropper/image-cropper.module.mjs +4 -4
  35. package/esm2020/lib/components/layout/layout.component.mjs +3 -3
  36. package/esm2020/lib/components/layout/layout.module.mjs +4 -4
  37. package/esm2020/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
  38. package/esm2020/lib/components/loading-spinner/loading-spinner.module.mjs +4 -4
  39. package/esm2020/lib/components/loading-spinner/loading.directive.mjs +3 -3
  40. package/esm2020/lib/components/lottie/lottie.component.mjs +3 -3
  41. package/esm2020/lib/components/lottie/lottie.module.mjs +4 -4
  42. package/esm2020/lib/components/navigation/horizontal/components/basic/basic.component.mjs +3 -3
  43. package/esm2020/lib/components/navigation/horizontal/components/branch/branch.component.mjs +3 -3
  44. package/esm2020/lib/components/navigation/horizontal/components/divider/divider.component.mjs +3 -3
  45. package/esm2020/lib/components/navigation/horizontal/components/spacer/spacer.component.mjs +3 -3
  46. package/esm2020/lib/components/navigation/horizontal/horizontal.component.mjs +3 -3
  47. package/esm2020/lib/components/navigation/navigation.component.mjs +3 -3
  48. package/esm2020/lib/components/navigation/navigation.module.mjs +4 -4
  49. package/esm2020/lib/components/navigation/navigation.service.mjs +3 -3
  50. package/esm2020/lib/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
  51. package/esm2020/lib/components/navigation/vertical/components/basic/basic.component.mjs +3 -3
  52. package/esm2020/lib/components/navigation/vertical/components/collapsable/collapsable.component.mjs +6 -16
  53. package/esm2020/lib/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
  54. package/esm2020/lib/components/navigation/vertical/components/group/group.component.mjs +3 -3
  55. package/esm2020/lib/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
  56. package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +3 -3
  57. package/esm2020/lib/components/search-bar/search-bar.component.mjs +3 -3
  58. package/esm2020/lib/components/search-bar/search-bar.module.mjs +4 -4
  59. package/esm2020/lib/components/sweet-alert/sweet-alert.component.mjs +3 -3
  60. package/esm2020/lib/components/sweet-alert/sweet-alert.module.mjs +4 -4
  61. package/esm2020/lib/components/sweet-alert/sweet-alert.service.mjs +3 -3
  62. package/esm2020/lib/components/toast/toast.component.mjs +3 -3
  63. package/esm2020/lib/components/toast/toast.module.mjs +4 -4
  64. package/esm2020/lib/components/toast/toast.service.mjs +3 -3
  65. package/esm2020/lib/components/toggle-button-group/toggle-button-group.component.mjs +3 -3
  66. package/esm2020/lib/components/toggle-button-group/toggle-button-group.module.mjs +4 -4
  67. package/esm2020/lib/components/toggle-button-group/toggle-button.component.mjs +3 -3
  68. package/esm2020/lib/components/typeahead/directives/options-scroll.directive.mjs +3 -3
  69. package/esm2020/lib/components/typeahead/directives/options-scroll.module.mjs +4 -4
  70. package/esm2020/lib/components/typeahead/typeahead.component.mjs +3 -3
  71. package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
  72. package/esm2020/lib/directives/autofocus/autofocus.directive.mjs +3 -3
  73. package/esm2020/lib/directives/autofocus/autofocus.module.mjs +4 -4
  74. package/esm2020/lib/directives/autogrow/autogrow.directive.mjs +3 -3
  75. package/esm2020/lib/directives/autogrow/autogrow.module.mjs +4 -4
  76. package/esm2020/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.mjs +39 -0
  77. package/esm2020/lib/directives/chip-async-typeahead/index.mjs +2 -0
  78. package/esm2020/lib/directives/chip-async-typeahead/public-api.mjs +2 -0
  79. package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.mjs +14 -0
  80. package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-items.component.mjs +32 -0
  81. package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +117 -0
  82. package/esm2020/lib/directives/chip-list/chip-list.module.mjs +21 -0
  83. package/esm2020/lib/directives/chip-list/index.mjs +2 -0
  84. package/esm2020/lib/directives/chip-list/public-api.mjs +5 -0
  85. package/esm2020/lib/directives/dropzone/dropzone.directive.mjs +3 -3
  86. package/esm2020/lib/directives/dropzone/dropzone.module.mjs +4 -4
  87. package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.directive.mjs +3 -3
  88. package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.module.mjs +4 -4
  89. package/esm2020/lib/directives/material/material.module.mjs +4 -4
  90. package/esm2020/lib/directives/material/nice-material-style.directive.mjs +3 -3
  91. package/esm2020/lib/directives/material/nice-rounded-style.directive.mjs +3 -3
  92. package/esm2020/lib/directives/modals/modal-on-click.directive.mjs +3 -3
  93. package/esm2020/lib/directives/modals/modal-opener.directive.mjs +3 -3
  94. package/esm2020/lib/directives/public-api.mjs +3 -1
  95. package/esm2020/lib/directives/scroll-reset/scroll-reset.directive.mjs +3 -3
  96. package/esm2020/lib/directives/scroll-reset/scroll-reset.module.mjs +4 -4
  97. package/esm2020/lib/directives/scrollbar/scrollbar.directive.mjs +3 -3
  98. package/esm2020/lib/directives/scrollbar/scrollbar.module.mjs +4 -4
  99. package/esm2020/lib/directives/stop-propagation/click-stop-propagation.directive.mjs +3 -3
  100. package/esm2020/lib/directives/stop-propagation/stop-propagation.module.mjs +4 -4
  101. package/esm2020/lib/directives/window/prevent-close-window.directive.mjs +3 -3
  102. package/esm2020/lib/directives/window/window-directive.module.mjs +4 -4
  103. package/esm2020/lib/nice.module.mjs +5 -5
  104. package/esm2020/lib/pipes/boolean.pipe.mjs +3 -3
  105. package/esm2020/lib/pipes/capitalize-first-letter.pipe.mjs +3 -3
  106. package/esm2020/lib/pipes/ceil.pipe.mjs +3 -3
  107. package/esm2020/lib/pipes/entries.pipe.mjs +3 -3
  108. package/esm2020/lib/pipes/find-by-key.pipe.mjs +3 -3
  109. package/esm2020/lib/pipes/first-letter.pipe.mjs +3 -3
  110. package/esm2020/lib/pipes/floor.pipe.mjs +3 -3
  111. package/esm2020/lib/pipes/join-if-defined.pipe.mjs +3 -3
  112. package/esm2020/lib/pipes/link.pipe.mjs +3 -3
  113. package/esm2020/lib/pipes/localized-boolean.pipe.mjs +3 -3
  114. package/esm2020/lib/pipes/localized-currency.pipe.mjs +3 -3
  115. package/esm2020/lib/pipes/localized-date-only.pipe.mjs +3 -3
  116. package/esm2020/lib/pipes/localized-date.pipe.mjs +3 -3
  117. package/esm2020/lib/pipes/minutes-to-time.pipe.mjs +3 -3
  118. package/esm2020/lib/pipes/number-to-ordinal-indicator.pipe.mjs +3 -3
  119. package/esm2020/lib/pipes/pad.pipe.mjs +3 -3
  120. package/esm2020/lib/pipes/phone.pipe.mjs +3 -3
  121. package/esm2020/lib/pipes/pipes.module.mjs +4 -4
  122. package/esm2020/lib/pipes/postal-code.pipe.mjs +3 -3
  123. package/esm2020/lib/pipes/range.pipe.mjs +3 -3
  124. package/esm2020/lib/pipes/round.pipe.mjs +3 -3
  125. package/esm2020/lib/pipes/sanitize-bypass.pipe.mjs +3 -3
  126. package/esm2020/lib/pipes/seconds-to-time.pipe.mjs +3 -3
  127. package/esm2020/lib/providers/config/config.module.mjs +4 -4
  128. package/esm2020/lib/providers/config/config.service.mjs +3 -3
  129. package/esm2020/lib/providers/media-watcher/media-watcher.module.mjs +4 -4
  130. package/esm2020/lib/providers/media-watcher/media-watcher.service.mjs +3 -3
  131. package/esm2020/lib/providers/overlay/dynamic-overlay-container.service.mjs +3 -3
  132. package/esm2020/lib/providers/overlay/dynamic-overlay.service.mjs +3 -3
  133. package/esm2020/lib/providers/splash-screen/splash-screen.module.mjs +4 -4
  134. package/esm2020/lib/providers/splash-screen/splash-screen.service.mjs +3 -3
  135. package/esm2020/lib/providers/utils/utils.module.mjs +4 -4
  136. package/esm2020/lib/providers/utils/utils.service.mjs +3 -3
  137. package/fesm2015/recursyve-nice-ui-kit.v2.mjs +657 -446
  138. package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
  139. package/fesm2020/recursyve-nice-ui-kit.v2.mjs +662 -446
  140. package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
  141. package/lib/components/alert/alert.component.d.ts +3 -2
  142. package/lib/components/alert/alert.types.d.ts +1 -0
  143. package/lib/components/assets-carousel/assets-carousel.component.d.ts +4 -1
  144. package/lib/components/async-typeahead/async-typeahead.component.d.ts +4 -3
  145. package/lib/components/base-form/base-form.component.d.ts +1 -0
  146. package/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.d.ts +14 -0
  147. package/lib/directives/chip-async-typeahead/index.d.ts +1 -0
  148. package/lib/directives/chip-async-typeahead/public-api.d.ts +1 -0
  149. package/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.d.ts +8 -0
  150. package/lib/directives/chip-list/chip-list-items/chip-list-items.component.d.ts +14 -0
  151. package/lib/directives/chip-list/chip-list.directive.d.ts +29 -0
  152. package/lib/directives/chip-list/chip-list.module.d.ts +11 -0
  153. package/lib/directives/chip-list/index.d.ts +1 -0
  154. package/lib/directives/chip-list/public-api.d.ts +4 -0
  155. package/lib/directives/public-api.d.ts +2 -0
  156. package/lib/utils/array.utils.d.ts +1 -1
  157. package/package.json +2 -2
  158. package/src/lib/components/assets-carousel/assets-carousel.theme.scss +31 -33
  159. package/src/lib/components/chip-list/chip-list.theme.scss +14 -0
  160. package/src/lib/components/chip-list/components/item-list/item-list.theme.scss +37 -0
  161. package/src/lib/directives/chip-list/chip-list-items/chip-list-items.theme.scss +35 -0
  162. package/src/lib/nice.theme.scss +5 -0
@@ -2,9 +2,9 @@ import { Component, Input, TemplateRef, ViewChild } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export class ToggleButtonComponent {
4
4
  }
5
- ToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- ToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ToggleButtonComponent, selector: "nice-toggle-button", inputs: { value: "value" }, viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true });
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ToggleButtonComponent, decorators: [{
5
+ ToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ ToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: ToggleButtonComponent, selector: "nice-toggle-button", inputs: { value: "value" }, viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true });
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: ToggleButtonComponent, decorators: [{
8
8
  type: Component,
9
9
  args: [{
10
10
  selector: "nice-toggle-button",
@@ -52,9 +52,9 @@ export class OptionsScrollDirective {
52
52
  }
53
53
  }
54
54
  }
55
- OptionsScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: OptionsScrollDirective, deps: [{ token: i1.MatAutocomplete }], target: i0.ɵɵFactoryTarget.Directive });
56
- OptionsScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: OptionsScrollDirective, selector: "mat-autocomplete[optionsScroll]", inputs: { thresholdPercent: "thresholdPercent" }, outputs: { optionsScroll: "optionsScroll" }, ngImport: i0 });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: OptionsScrollDirective, decorators: [{
55
+ OptionsScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: OptionsScrollDirective, deps: [{ token: i1.MatAutocomplete }], target: i0.ɵɵFactoryTarget.Directive });
56
+ OptionsScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: OptionsScrollDirective, selector: "mat-autocomplete[optionsScroll]", inputs: { thresholdPercent: "thresholdPercent" }, outputs: { optionsScroll: "optionsScroll" }, ngImport: i0 });
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: OptionsScrollDirective, decorators: [{
58
58
  type: Directive,
59
59
  args: [{
60
60
  // tslint:disable-next-line:directive-selector
@@ -3,10 +3,10 @@ import { OptionsScrollDirective } from "./options-scroll.directive";
3
3
  import * as i0 from "@angular/core";
4
4
  export class OptionScrollModule {
5
5
  }
6
- OptionScrollModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: OptionScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- OptionScrollModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: OptionScrollModule, declarations: [OptionsScrollDirective], exports: [OptionsScrollDirective] });
8
- OptionScrollModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: OptionScrollModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: OptionScrollModule, decorators: [{
6
+ OptionScrollModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: OptionScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ OptionScrollModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: OptionScrollModule, declarations: [OptionsScrollDirective], exports: [OptionsScrollDirective] });
8
+ OptionScrollModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: OptionScrollModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: OptionScrollModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{
12
12
  declarations: [OptionsScrollDirective],
@@ -415,14 +415,14 @@ export class NiceTypeaheadComponent {
415
415
  }
416
416
  }
417
417
  }
418
- NiceTypeaheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i2.FocusMonitor }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
419
- NiceTypeaheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: NiceTypeaheadComponent, selector: "nice-typeahead", inputs: { items: "items", labelFormatFn: "labelFormatFn", required: "required", disabled: "disabled", placeholder: "placeholder", emptyPlaceholder: "emptyPlaceholder", allowNotFoundItems: "allowNotFoundItems", panelClass: "panelClass", bindValue: "bindValue", bindLabel: "bindLabel", typeahead: "typeahead", page$: "page$", loading: "loading", loadingPage: "loadingPage", searchFn: "searchFn", optionTemplate: "optionTemplate" }, outputs: { change: "change" }, host: { properties: { "class.floating": "this.shouldLabelFloat", "id": "this.id", "attr.aria-describedby": "this.describedBy" } }, providers: [
418
+ NiceTypeaheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i2.FocusMonitor }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
419
+ NiceTypeaheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceTypeaheadComponent, selector: "nice-typeahead", inputs: { items: "items", labelFormatFn: "labelFormatFn", required: "required", disabled: "disabled", placeholder: "placeholder", emptyPlaceholder: "emptyPlaceholder", allowNotFoundItems: "allowNotFoundItems", panelClass: "panelClass", bindValue: "bindValue", bindLabel: "bindLabel", typeahead: "typeahead", page$: "page$", loading: "loading", loadingPage: "loadingPage", searchFn: "searchFn", optionTemplate: "optionTemplate" }, outputs: { change: "change" }, host: { properties: { "class.floating": "this.shouldLabelFloat", "id": "this.id", "attr.aria-describedby": "this.describedBy" } }, providers: [
420
420
  {
421
421
  provide: MatFormFieldControl,
422
422
  useExisting: NiceTypeaheadComponent
423
423
  }
424
424
  ], viewQueries: [{ propertyName: "input", first: true, predicate: ["searchInput"], descendants: true, static: true }, { propertyName: "options", predicate: MatOption, descendants: true }], ngImport: i0, template: "<div class=\"flex\" *ngIf=\"!disabled; else disable\">\n <input\n #searchInput\n matInput\n class=\"flex-auto\"\n type=\"text\"\n name=\"mat-autocomplete\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [formControl]=\"searchControl\"\n [matAutocomplete]=\"auto\"\n [required]=\"required\"\n />\n <mat-icon *ngIf=\"value && !loading\" matSuffix class=\"close-button secondary-text\" (click)=\"onRemove($event)\">\n close\n </mat-icon>\n\n <mat-spinner class=\"self-center\" [diameter]=\"16\" *ngIf=\"loading\"></mat-spinner>\n</div>\n<mat-autocomplete\n #auto=\"matAutocomplete\"\n [panelWidth]=\"panelWidth\"\n [class]=\"panelClass\"\n (optionActivated)=\"onOptionActivated($event)\"\n (optionSelected)=\"onOptionSelected($event)\"\n (closed)=\"updateState(false)\"\n (opened)=\"updateState(true)\"\n (optionsScroll)=\"onEndScroll()\"\n autoActiveFirstOption\n>\n <mat-progress-bar *ngIf=\"open && loading\" mode=\"indeterminate\" color=\"primary\"></mat-progress-bar>\n <mat-option *ngFor=\"let option of values\" [value]=\"option\">\n <ng-container\n *ngIf=\"optionTemplate; else format\"\n [ngTemplateOutlet]=\"optionTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: option }\">\n </ng-container>\n <ng-template #format>\n {{ formatLabel(option) }}\n </ng-template>\n </mat-option>\n <mat-option *ngIf=\"!values?.length && !allowNotFoundItems\" disabled>\n <ng-container *ngIf=\"emptyPlaceholder; else defaultEmptyPlaceholder\">\n {{ emptyPlaceholder }}\n </ng-container>\n <ng-template #defaultEmptyPlaceholder>\n {{ \"components.typeahead.no_item_found\" | translate }}\n </ng-template>\n </mat-option>\n <mat-option *ngIf=\"!values?.length && allowNotFoundItems\" id=\"new-value-option\" [value]=\"searchControl.value\">\n <span class=\"italic\">{{ searchControl.value }}</span>\n </mat-option>\n <mat-progress-bar *ngIf=\"open && loadingPage\" mode=\"indeterminate\" color=\"primary\"></mat-progress-bar>\n</mat-autocomplete>\n\n<ng-template #disable>\n <input\n matInput\n class=\"disabled-input\"\n type=\"text\"\n [disabled]=\"true\"\n [placeholder]=\"placeholder\"\n [formControl]=\"searchControl\"\n [required]=\"required\"\n />\n</ng-template>\n", styles: ["nice-typeahead{width:100%}nice-typeahead .close-button{flex:1 1 18px;cursor:pointer;min-height:18px!important;min-width:18px!important;height:18px!important;width:18px!important;font-size:18px!important;align-self:center}nice-typeahead .disabled-input{flex:1 1 95%}nice-typeahead .arrow-container{display:flex;bottom:7px;align-self:flex-end;position:relative;text-align:center;-webkit-user-select:none;user-select:none}nice-typeahead .arrow{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px;color:#0000008a}.italic{font-style:italic}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.OptionsScrollDirective, selector: "mat-autocomplete[optionsScroll]", inputs: ["thresholdPercent"], outputs: ["optionsScroll"] }, { kind: "component", type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i7.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i10.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i12.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadComponent, decorators: [{
425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadComponent, decorators: [{
426
426
  type: Component,
427
427
  args: [{ selector: "nice-typeahead", encapsulation: ViewEncapsulation.None, providers: [
428
428
  {
@@ -13,8 +13,8 @@ import { NiceTypeaheadComponent } from "./typeahead.component";
13
13
  import * as i0 from "@angular/core";
14
14
  export class NiceTypeaheadModule {
15
15
  }
16
- NiceTypeaheadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
- NiceTypeaheadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadModule, declarations: [NiceTypeaheadComponent], imports: [CommonModule,
16
+ NiceTypeaheadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ NiceTypeaheadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadModule, declarations: [NiceTypeaheadComponent], imports: [CommonModule,
18
18
  ReactiveFormsModule,
19
19
  OptionScrollModule,
20
20
  MatAutocompleteModule,
@@ -25,7 +25,7 @@ NiceTypeaheadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ver
25
25
  MatIconModule,
26
26
  MatButtonModule,
27
27
  TranslateModule], exports: [NiceTypeaheadComponent] });
28
- NiceTypeaheadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadModule, imports: [CommonModule,
28
+ NiceTypeaheadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadModule, imports: [CommonModule,
29
29
  ReactiveFormsModule,
30
30
  OptionScrollModule,
31
31
  MatAutocompleteModule,
@@ -36,7 +36,7 @@ NiceTypeaheadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
36
36
  MatIconModule,
37
37
  MatButtonModule,
38
38
  TranslateModule] });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceTypeaheadModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceTypeaheadModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  imports: [
@@ -8,9 +8,9 @@ export class NiceAutofocusDirective {
8
8
  this.elem.nativeElement.focus?.();
9
9
  }
10
10
  }
11
- NiceAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
12
- NiceAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: NiceAutofocusDirective, selector: "[niceAutofocus]", ngImport: i0 });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirective, decorators: [{
11
+ NiceAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
12
+ NiceAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceAutofocusDirective, selector: "[niceAutofocus]", ngImport: i0 });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirective, decorators: [{
14
14
  type: Directive,
15
15
  args: [{ selector: "[niceAutofocus]" }]
16
16
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
@@ -3,10 +3,10 @@ import { NiceAutofocusDirective } from "./autofocus.directive";
3
3
  import * as i0 from "@angular/core";
4
4
  export class NiceAutofocusDirectiveModule {
5
5
  }
6
- NiceAutofocusDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- NiceAutofocusDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirectiveModule, declarations: [NiceAutofocusDirective], exports: [NiceAutofocusDirective] });
8
- NiceAutofocusDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirectiveModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutofocusDirectiveModule, decorators: [{
6
+ NiceAutofocusDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NiceAutofocusDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirectiveModule, declarations: [NiceAutofocusDirective], exports: [NiceAutofocusDirective] });
8
+ NiceAutofocusDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirectiveModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutofocusDirectiveModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{
12
12
  declarations: [NiceAutofocusDirective],
@@ -78,9 +78,9 @@ export class NiceAutogrowDirective {
78
78
  });
79
79
  }
80
80
  }
81
- NiceAutogrowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
82
- NiceAutogrowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: NiceAutogrowDirective, selector: "textarea[niceAutogrow]", inputs: { padding: ["niceAutogrowVerticalPadding", "padding"] }, host: { listeners: { "input": "_resize()", "ngModelChange": "_resize()" }, properties: { "rows": "this._rows", "style": "this.styleList" } }, exportAs: ["niceAutogrow"], usesOnChanges: true, ngImport: i0 });
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowDirective, decorators: [{
81
+ NiceAutogrowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
82
+ NiceAutogrowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceAutogrowDirective, selector: "textarea[niceAutogrow]", inputs: { padding: ["niceAutogrowVerticalPadding", "padding"] }, host: { listeners: { "input": "_resize()", "ngModelChange": "_resize()" }, properties: { "rows": "this._rows", "style": "this.styleList" } }, exportAs: ["niceAutogrow"], usesOnChanges: true, ngImport: i0 });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowDirective, decorators: [{
84
84
  type: Directive,
85
85
  args: [{
86
86
  selector: "textarea[niceAutogrow]",
@@ -3,10 +3,10 @@ import { NiceAutogrowDirective } from "./autogrow.directive";
3
3
  import * as i0 from "@angular/core";
4
4
  export class NiceAutogrowModule {
5
5
  }
6
- NiceAutogrowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- NiceAutogrowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowModule, declarations: [NiceAutogrowDirective], exports: [NiceAutogrowDirective] });
8
- NiceAutogrowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceAutogrowModule, decorators: [{
6
+ NiceAutogrowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NiceAutogrowModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowModule, declarations: [NiceAutogrowDirective], exports: [NiceAutogrowDirective] });
8
+ NiceAutogrowModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAutogrowModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{
12
12
  declarations: [
@@ -0,0 +1,39 @@
1
+ import { Directive, ElementRef, EventEmitter, Output, } from "@angular/core";
2
+ import { Subject } from "rxjs";
3
+ import { filter, takeUntil } from "rxjs/operators";
4
+ import { NiceAsyncTypeaheadComponent } from "../../components";
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../components";
7
+ export class NiceChipAsyncTypeaheadDirective {
8
+ constructor(typeahead, elementRef) {
9
+ this.typeahead = typeahead;
10
+ this.elementRef = elementRef;
11
+ this.niceChipAsyncTypeaheadTokenEnd = new EventEmitter();
12
+ this.unsubscribeAll$ = new Subject();
13
+ }
14
+ ngOnInit() {
15
+ this.typeahead.selected
16
+ .pipe(takeUntil(this.unsubscribeAll$), filter((selected) => selected))
17
+ .subscribe((_) => {
18
+ this.niceChipAsyncTypeaheadTokenEnd.emit(this.typeahead.getActive());
19
+ this.typeahead.writeValue(null);
20
+ });
21
+ this.elementRef.nativeElement.classList.add("nice-chip-async-typeahead");
22
+ }
23
+ ngOnDestroy() {
24
+ this.unsubscribeAll$.next(null);
25
+ this.unsubscribeAll$.complete();
26
+ }
27
+ }
28
+ NiceChipAsyncTypeaheadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipAsyncTypeaheadDirective, deps: [{ token: i1.NiceAsyncTypeaheadComponent }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
29
+ NiceChipAsyncTypeaheadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceChipAsyncTypeaheadDirective, selector: "[niceChipAsyncTypeahead]", outputs: { niceChipAsyncTypeaheadTokenEnd: "niceChipAsyncTypeaheadTokenEnd" }, exportAs: ["niceChipAsyncTypeahead"], ngImport: i0 });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipAsyncTypeaheadDirective, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: "[niceChipAsyncTypeahead]",
34
+ exportAs: "niceChipAsyncTypeahead",
35
+ }]
36
+ }], ctorParameters: function () { return [{ type: i1.NiceAsyncTypeaheadComponent }, { type: i0.ElementRef }]; }, propDecorators: { niceChipAsyncTypeaheadTokenEnd: [{
37
+ type: Output
38
+ }] } });
39
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcC1hc3luYy10eXBlYWhlYWQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmljZS11aS1raXQtdjIvc3JjL2xpYi9kaXJlY3RpdmVzL2NoaXAtYXN5bmMtdHlwZWFoZWFkL2NoaXAtYXN5bmMtdHlwZWFoZWFkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQXFCLE1BQU0sR0FBRyxNQUFNLGVBQWUsQ0FBQztBQUNoRyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQy9CLE9BQU8sRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbkQsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7OztBQU0vRCxNQUFNLE9BQU8sK0JBQStCO0lBTXhDLFlBQ1ksU0FBc0MsRUFDdEMsVUFBbUM7UUFEbkMsY0FBUyxHQUFULFNBQVMs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AgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIHRha2VVbnRpbCh0aGlzLnVuc3Vic2NyaWJlQWxsJCksXG4gICAgICAgICAgICAgICAgZmlsdGVyKChzZWxlY3RlZCkgPT4gc2VsZWN0ZWQpXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAuc3Vic2NyaWJlKChfKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5uaWNlQ2hpcEFzeW5jVHlwZWFoZWFkVG9rZW5FbmQuZW1pdCh0aGlzLnR5cGVhaGVhZC5nZXRBY3RpdmUoKSk7XG4gICAgICAgICAgICAgICAgdGhpcy50eXBlYWhlYWQud3JpdGVWYWx1ZShudWxsKTtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LmNsYXNzTGlzdC5hZGQoXCJuaWNlLWNoaXAtYXN5bmMtdHlwZWFoZWFkXCIpO1xuICAgIH1cblxuICAgIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy51bnN1YnNjcmliZUFsbCQubmV4dChudWxsKTtcbiAgICAgICAgdGhpcy51bnN1YnNjcmliZUFsbCQuY29tcGxldGUoKTtcbiAgICB9XG59XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from "./public-api";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaWNlLXVpLWtpdC12Mi9zcmMvbGliL2RpcmVjdGl2ZXMvY2hpcC1hc3luYy10eXBlYWhlYWQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9wdWJsaWMtYXBpXCI7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from "./chip-async-typeahead.directive";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25pY2UtdWkta2l0LXYyL3NyYy9saWIvZGlyZWN0aXZlcy9jaGlwLWFzeW5jLXR5cGVhaGVhZC9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9jaGlwLWFzeW5jLXR5cGVhaGVhZC5kaXJlY3RpdmVcIjtcbiJdfQ==
@@ -0,0 +1,14 @@
1
+ import { Directive, TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export class ChipListItemLabelDirective {
4
+ constructor(template) {
5
+ this.template = template;
6
+ }
7
+ }
8
+ ChipListItemLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: ChipListItemLabelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
9
+ ChipListItemLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: ChipListItemLabelDirective, selector: "[niceChipListItemLabel]", ngImport: i0 });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: ChipListItemLabelDirective, decorators: [{
11
+ type: Directive,
12
+ args: [{ selector: "[niceChipListItemLabel]" }]
13
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcC1saXN0LWl0ZW0tbGFiZWwuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmljZS11aS1raXQtdjIvc3JjL2xpYi9kaXJlY3RpdmVzL2NoaXAtbGlzdC9jaGlwLWxpc3QtaXRlbXMvY2hpcC1saXN0LWl0ZW0tbGFiZWwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUd2RCxNQUFNLE9BQU8sMEJBQTBCO0lBQ25DLFlBQW1CLFFBQTBCO1FBQTFCLGFBQVEsR0FBUixRQUFRLENBQWtCO0lBQUcsQ0FBQzs7dUhBRHhDLDBCQUEwQjsyR0FBMUIsMEJBQTBCOzJGQUExQiwwQkFBMEI7a0JBRHRDLFNBQVM7bUJBQUMsRUFBRSxRQUFRLEVBQUUseUJBQXlCLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIFRlbXBsYXRlUmVmIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuQERpcmVjdGl2ZSh7IHNlbGVjdG9yOiBcIltuaWNlQ2hpcExpc3RJdGVtTGFiZWxdXCIgfSlcbmV4cG9ydCBjbGFzcyBDaGlwTGlzdEl0ZW1MYWJlbERpcmVjdGl2ZSB7XG4gICAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, Input, Output, TemplateRef } from "@angular/core";
2
+ import { Observable } from "rxjs";
3
+ import { ChipListItemLabelDirective } from "./chip-list-item-label.directive";
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common";
6
+ import * as i2 from "@angular/material/icon";
7
+ export class NiceChipListItemsComponent {
8
+ constructor() {
9
+ this.color = "primary";
10
+ this.removeChip = new EventEmitter();
11
+ this.defaultColor = "primary";
12
+ }
13
+ remove(index) {
14
+ this.removeChip.next(index);
15
+ }
16
+ }
17
+ NiceChipListItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ NiceChipListItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceChipListItemsComponent, selector: "nice-chip-list-items", inputs: { color: "color", items$: "items$" }, outputs: { removeChip: "removeChip" }, queries: [{ propertyName: "itemLabel", first: true, predicate: ChipListItemLabelDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: "<div class=\"nice-items-row\" *ngIf=\"(items$ | async)?.length\">\n <div\n class=\"nice-chip\"\n *ngFor=\"let value of items$ | async; let i = index\"\n [ngClass]=\"color\"\n >\n <span *ngIf=\"!itemLabel\">{{ value }}</span>\n <ng-container *ngIf=\"itemLabel\">\n <ng-container *ngTemplateOutlet=\"itemLabel; context: { $implicit: value }\"></ng-container>\n </ng-container>\n <button (click)=\"remove(i)\">\n <mat-icon class=\"close-icon\">cancel</mat-icon>\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListItemsComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ selector: "nice-chip-list-items", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"nice-items-row\" *ngIf=\"(items$ | async)?.length\">\n <div\n class=\"nice-chip\"\n *ngFor=\"let value of items$ | async; let i = index\"\n [ngClass]=\"color\"\n >\n <span *ngIf=\"!itemLabel\">{{ value }}</span>\n <ng-container *ngIf=\"itemLabel\">\n <ng-container *ngTemplateOutlet=\"itemLabel; context: { $implicit: value }\"></ng-container>\n </ng-container>\n <button (click)=\"remove(i)\">\n <mat-icon class=\"close-icon\">cancel</mat-icon>\n </button>\n </div>\n</div>\n" }]
22
+ }], propDecorators: { itemLabel: [{
23
+ type: ContentChild,
24
+ args: [ChipListItemLabelDirective, { read: TemplateRef }]
25
+ }], color: [{
26
+ type: Input
27
+ }], removeChip: [{
28
+ type: Output
29
+ }], items$: [{
30
+ type: Input
31
+ }] } });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcC1saXN0LWl0ZW1zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25pY2UtdWkta2l0LXYyL3NyYy9saWIvZGlyZWN0aXZlcy9jaGlwLWxpc3QvY2hpcC1saXN0LWl0ZW1zL2NoaXAtbGlzdC1pdGVtcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaWNlLXVpLWtpdC12Mi9zcmMvbGliL2RpcmVjdGl2ZXMvY2hpcC1saXN0L2NoaXAtbGlzdC1pdGVtcy9jaGlwL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VibGljIGRlZmF1bHRDb2xvcjogVGhlbWVQYWxldHRlID0gXCJwcmltYXJ5XCI7XG5cbiAgICBwdWJsaWMgcmVtb3ZlKGluZGV4OiBudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5yZW1vdmVDaGlwLm5leHQoaW5kZXgpO1xuICAgIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJuaWNlLWl0ZW1zLXJvd1wiICpuZ0lmPVwiKGl0ZW1zJCB8IGFzeW5jKT8ubGVuZ3RoXCI+XG4gICAgPGRpdlxuICAgICAgICBjbGFzcz1cIm5pY2UtY2hpcFwiXG4gICAgICAgICpuZ0Zvcj1cImxldCB2YWx1ZSBvZiBpdGVtcyQgfCBhc3luYzsgbGV0IGkgPSBpbmRleFwiXG4gICAgICAgIFtuZ0NsYXNzXT1cImNvbG9yXCJcbiAgICA+XG4gICAgICAgIDxzcGFuICpuZ0lmPVwiIWl0ZW1MYWJlbFwiPnt7IHZhbHVlIH19PC9zcGFuPlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiaXRlbUxhYmVsXCI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiaXRlbUxhYmVsOyBjb250ZXh0OiB7ICRpbXBsaWNpdDogdmFsdWUgfVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPGJ1dHRvbiAoY2xpY2spPVwicmVtb3ZlKGkpXCI+XG4gICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJjbG9zZS1pY29uXCI+Y2FuY2VsPC9tYXQtaWNvbj5cbiAgICAgICAgPC9idXR0b24+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,117 @@
1
+ import { Directive, ElementRef, HostListener, Input, Optional, SimpleChange } from "@angular/core";
2
+ import { NgControl } from "@angular/forms";
3
+ import { BehaviorSubject, Subject } from "rxjs";
4
+ import { filter, takeUntil } from "rxjs/operators";
5
+ import { NiceAsyncTypeaheadComponent } from "../../components";
6
+ import { KeyboardCodes } from "../../utils";
7
+ import { NiceChipListItemsComponent } from "./chip-list-items/chip-list-items.component";
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../../components";
10
+ import * as i2 from "@angular/forms";
11
+ export class NiceChipListDirective {
12
+ constructor(asyncTypeahead, ngControl, elementRef) {
13
+ this.asyncTypeahead = asyncTypeahead;
14
+ this.ngControl = ngControl;
15
+ this.elementRef = elementRef;
16
+ this.reloadOnSelected = true;
17
+ this.unsubscribeAll$ = new Subject();
18
+ this.values$ = new BehaviorSubject([]);
19
+ this._values = [];
20
+ this.propagateChanges = (value) => { };
21
+ if (this.ngControl) {
22
+ this.ngControl.valueAccessor = this;
23
+ }
24
+ }
25
+ get values() {
26
+ return this._values;
27
+ }
28
+ onKeyDown(event) {
29
+ if (this.asyncTypeahead) {
30
+ return;
31
+ }
32
+ if (event.code === KeyboardCodes.Enter) {
33
+ if (!this.elementRef.nativeElement.validity.valid) {
34
+ return;
35
+ }
36
+ this.addValue(this.elementRef.nativeElement.value);
37
+ this.elementRef.nativeElement.value = "";
38
+ return;
39
+ }
40
+ }
41
+ ngOnInit() {
42
+ if (this.asyncTypeahead) {
43
+ this.setupAsyncTypeahead();
44
+ }
45
+ if (this.elementRef.nativeElement.parentElement.classList.contains("mat-form-field-infix")) {
46
+ this.elementRef.nativeElement.parentElement.style.alignItems = "flex-start";
47
+ this.elementRef.nativeElement.parentElement.style.flexDirection = "column-reverse";
48
+ }
49
+ }
50
+ ngOnChanges(changes) {
51
+ if ("withItemList" in changes) {
52
+ this.withItemList.items$ = this.values$;
53
+ this.withItemList.removeChip.pipe(takeUntil(this.unsubscribeAll$)).subscribe(x => {
54
+ this._values.splice(x, 1);
55
+ this.updateTypeaheadSearchOptions();
56
+ this.propagateChanges(this._values);
57
+ this.values$.next(this._values);
58
+ });
59
+ }
60
+ }
61
+ writeValue(obj) {
62
+ this._values = obj ?? [];
63
+ this.updateTypeaheadSearchOptions();
64
+ this.values$.next(this._values);
65
+ }
66
+ registerOnChange(fn) {
67
+ this.propagateChanges = fn;
68
+ }
69
+ registerOnTouched(fn) { }
70
+ setupAsyncTypeahead() {
71
+ this.asyncTypeahead.selected
72
+ .pipe(takeUntil(this.unsubscribeAll$), filter((selected) => selected))
73
+ .subscribe((_) => {
74
+ this.addValue(this.asyncTypeahead.getActive());
75
+ this.asyncTypeahead.searchOptions = { ...(this.asyncTypeahead.searchOptions ?? {}), ignore: this._values ?? [] };
76
+ this.asyncTypeahead.onRemove(null, this.reloadOnSelected);
77
+ });
78
+ }
79
+ addValue(value) {
80
+ if (this._values.includes(value)) {
81
+ return;
82
+ }
83
+ this._values.push(value);
84
+ this.propagateChanges(this._values);
85
+ this.values$.next(this._values);
86
+ }
87
+ updateTypeaheadSearchOptions() {
88
+ if (!this.asyncTypeahead) {
89
+ return;
90
+ }
91
+ const searchOptions = this.asyncTypeahead.searchOptions;
92
+ this.asyncTypeahead.searchOptions = { ...(searchOptions ?? {}), ignore: this._values ?? [] };
93
+ this.asyncTypeahead.ngOnChanges({
94
+ searchOptions: new SimpleChange(searchOptions, this.asyncTypeahead.searchOptions, false)
95
+ });
96
+ }
97
+ }
98
+ NiceChipListDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirective, deps: [{ token: i1.NiceAsyncTypeaheadComponent, optional: true }, { token: i2.NgControl, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
99
+ NiceChipListDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceChipListDirective, selector: "input[niceChipList], nice-async-typeahead[niceChipList]", inputs: { withItemList: "withItemList", reloadOnSelected: "reloadOnSelected" }, host: { listeners: { "keydown": "onKeyDown($event)" } }, usesOnChanges: true, ngImport: i0 });
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirective, decorators: [{
101
+ type: Directive,
102
+ args: [{
103
+ selector: "input[niceChipList], nice-async-typeahead[niceChipList]"
104
+ }]
105
+ }], ctorParameters: function () { return [{ type: i1.NiceAsyncTypeaheadComponent, decorators: [{
106
+ type: Optional
107
+ }] }, { type: i2.NgControl, decorators: [{
108
+ type: Optional
109
+ }] }, { type: i0.ElementRef }]; }, propDecorators: { withItemList: [{
110
+ type: Input
111
+ }], reloadOnSelected: [{
112
+ type: Input
113
+ }], onKeyDown: [{
114
+ type: HostListener,
115
+ args: ["keydown", ["$event"]]
116
+ }] } });
117
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcC1saXN0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25pY2UtdWkta2l0LXYyL3NyYy9saWIvZGlyZWN0aXZlcy9jaGlwLWxpc3QvY2hpcC1saXN0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFxQixRQUFRLEVBQUUsWUFBWSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUNySSxPQUFPLEVBQXdCLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2pFLE9BQU8sRUFBRSxlQUFlLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ2hELE9BQU8sRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbkQsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDL0QsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNL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5fdmFsdWVzKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHVwZGF0ZVR5cGVhaGVhZFNlYXJjaE9wdGlvbnMoKTogdm9pZCB7XG4gICAgICAgIGlmICghdGhpcy5hc3luY1R5cGVhaGVhZCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3Qgc2VhcmNoT3B0aW9ucyA9IHRoaXMuYXN5bmNUeXBlYWhlYWQuc2VhcmNoT3B0aW9ucztcbiAgICAgICAgdGhpcy5hc3luY1R5cGVhaGVhZC5zZWFyY2hPcHRpb25zID0geyAuLi4oc2VhcmNoT3B0aW9ucyA/PyB7fSksIGlnbm9yZTogdGhpcy5fdmFsdWVzID8/IFtdIH07XG4gICAgICAgIHRoaXMuYXN5bmNUeXBlYWhlYWQubmdPbkNoYW5nZXMoe1xuICAgICAgICAgICAgc2VhcmNoT3B0aW9uczogbmV3IFNpbXBsZUNoYW5nZShzZWFyY2hPcHRpb25zLCB0aGlzLmFzeW5jVHlwZWFoZWFkLnNlYXJjaE9wdGlvbnMsIGZhbHNlKVxuICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0=
@@ -0,0 +1,21 @@
1
+ import { CommonModule } from "@angular/common";
2
+ import { NgModule } from "@angular/core";
3
+ import { MatIconModule } from "@angular/material/icon";
4
+ import { ChipListItemLabelDirective } from "./chip-list-items/chip-list-item-label.directive";
5
+ import { NiceChipListItemsComponent } from "./chip-list-items/chip-list-items.component";
6
+ import { NiceChipListDirective } from "./chip-list.directive";
7
+ import * as i0 from "@angular/core";
8
+ export class NiceChipListDirectiveModule {
9
+ }
10
+ NiceChipListDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ NiceChipListDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirectiveModule, declarations: [NiceChipListDirective, NiceChipListItemsComponent, ChipListItemLabelDirective], imports: [CommonModule, MatIconModule], exports: [NiceChipListDirective, NiceChipListItemsComponent, ChipListItemLabelDirective] });
12
+ NiceChipListDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirectiveModule, imports: [CommonModule, MatIconModule] });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceChipListDirectiveModule, decorators: [{
14
+ type: NgModule,
15
+ args: [{
16
+ imports: [CommonModule, MatIconModule],
17
+ declarations: [NiceChipListDirective, NiceChipListItemsComponent, ChipListItemLabelDirective],
18
+ exports: [NiceChipListDirective, NiceChipListItemsComponent, ChipListItemLabelDirective]
19
+ }]
20
+ }] });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcC1saXN0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25pY2UtdWkta2l0LXYyL3NyYy9saWIvZGlyZWN0aXZlcy9jaGlwLWxpc3QvY2hpcC1saXN0Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDOUYsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sNkNBQTZDLENBQUM7QUFFekYsT0FBTyxFQUFFLHFCQUFx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cmVjdGl2ZSB9IGZyb20gXCIuL2NoaXAtbGlzdC5kaXJlY3RpdmVcIjtcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBNYXRJY29uTW9kdWxlXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtOaWNlQ2hpcExpc3REaXJlY3RpdmUsIE5pY2VDaGlwTGlzdEl0ZW1zQ29tcG9uZW50LCBDaGlwTGlzdEl0ZW1MYWJlbERpcmVjdGl2ZV0sXG4gICAgZXhwb3J0czogW05pY2VDaGlwTGlzdERpcmVjdGl2ZSwgTmljZUNoaXBMaXN0SXRlbXNDb21wb25lbnQsIENoaXBMaXN0SXRlbUxhYmVsRGlyZWN0aXZlXVxufSlcbmV4cG9ydCBjbGFzcyBOaWNlQ2hpcExpc3REaXJlY3RpdmVNb2R1bGUge31cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from "./public-api";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaWNlLXVpLWtpdC12Mi9zcmMvbGliL2RpcmVjdGl2ZXMvY2hpcC1saXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcHVibGljLWFwaVwiO1xuIl19
@@ -0,0 +1,5 @@
1
+ export * from "./chip-list-items/chip-list-item-label.directive";
2
+ export * from "./chip-list-items/chip-list-items.component";
3
+ export * from "./chip-list.directive";
4
+ export * from "./chip-list.module";
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25pY2UtdWkta2l0LXYyL3NyYy9saWIvZGlyZWN0aXZlcy9jaGlwLWxpc3QvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsNkNBQTZDLENBQUM7QUFDNUQsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2hpcC1saXN0LWl0ZW1zL2NoaXAtbGlzdC1pdGVtLWxhYmVsLmRpcmVjdGl2ZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY2hpcC1saXN0LWl0ZW1zL2NoaXAtbGlzdC1pdGVtcy5jb21wb25lbnRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NoaXAtbGlzdC5kaXJlY3RpdmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NoaXAtbGlzdC5tb2R1bGVcIjtcbiJdfQ==
@@ -27,9 +27,9 @@ export class NiceDropzoneDirective {
27
27
  }
28
28
  }
29
29
  }
30
- NiceDropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
31
- NiceDropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: NiceDropzoneDirective, selector: "[niceDropzone]", outputs: { filesDropped: "filesDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.file-over": "this.fileOver" } }, ngImport: i0 });
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneDirective, decorators: [{
30
+ NiceDropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
31
+ NiceDropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceDropzoneDirective, selector: "[niceDropzone]", outputs: { filesDropped: "filesDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.file-over": "this.fileOver" } }, ngImport: i0 });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneDirective, decorators: [{
33
33
  type: Directive,
34
34
  args: [{ selector: "[niceDropzone]" }]
35
35
  }], propDecorators: { fileOver: [{
@@ -3,10 +3,10 @@ import { NiceDropzoneDirective } from "./dropzone.directive";
3
3
  import * as i0 from "@angular/core";
4
4
  export class NiceDropzoneModule {
5
5
  }
6
- NiceDropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- NiceDropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneModule, declarations: [NiceDropzoneDirective], exports: [NiceDropzoneDirective] });
8
- NiceDropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceDropzoneModule, decorators: [{
6
+ NiceDropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NiceDropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneModule, declarations: [NiceDropzoneDirective], exports: [NiceDropzoneDirective] });
8
+ NiceDropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceDropzoneModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{
12
12
  imports: [],
@@ -12,9 +12,9 @@ export class NiceImageErrorPlaceholderDirective {
12
12
  }
13
13
  }
14
14
  }
15
- NiceImageErrorPlaceholderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
16
- NiceImageErrorPlaceholderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: NiceImageErrorPlaceholderDirective, selector: "img[niceImageErrorPlaceholder]", inputs: { fallback: "fallback" }, host: { listeners: { "error": "onError()" } }, ngImport: i0 });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirective, decorators: [{
15
+ NiceImageErrorPlaceholderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
16
+ NiceImageErrorPlaceholderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceImageErrorPlaceholderDirective, selector: "img[niceImageErrorPlaceholder]", inputs: { fallback: "fallback" }, host: { listeners: { "error": "onError()" } }, ngImport: i0 });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirective, decorators: [{
18
18
  type: Directive,
19
19
  args: [{ selector: "img[niceImageErrorPlaceholder]" }]
20
20
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { fallback: [{
@@ -3,10 +3,10 @@ import { NiceImageErrorPlaceholderDirective } from "./image-error-placeholder.di
3
3
  import * as i0 from "@angular/core";
4
4
  export class NiceImageErrorPlaceholderDirectiveModule {
5
5
  }
6
- NiceImageErrorPlaceholderDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- NiceImageErrorPlaceholderDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, declarations: [NiceImageErrorPlaceholderDirective], exports: [NiceImageErrorPlaceholderDirective] });
8
- NiceImageErrorPlaceholderDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, decorators: [{
6
+ NiceImageErrorPlaceholderDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NiceImageErrorPlaceholderDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, declarations: [NiceImageErrorPlaceholderDirective], exports: [NiceImageErrorPlaceholderDirective] });
8
+ NiceImageErrorPlaceholderDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceImageErrorPlaceholderDirectiveModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{
12
12
  declarations: [NiceImageErrorPlaceholderDirective],
@@ -4,12 +4,12 @@ import { NiceRoundedStyleDirective } from "./nice-rounded-style.directive";
4
4
  import * as i0 from "@angular/core";
5
5
  export class NiceMaterialModule {
6
6
  }
7
- NiceMaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- NiceMaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialModule, declarations: [NiceMaterialStyleDirective,
7
+ NiceMaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ NiceMaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialModule, declarations: [NiceMaterialStyleDirective,
9
9
  NiceRoundedStyleDirective], exports: [NiceMaterialStyleDirective,
10
10
  NiceRoundedStyleDirective] });
11
- NiceMaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialModule });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialModule, decorators: [{
11
+ NiceMaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialModule });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
15
  declarations: [
@@ -9,9 +9,9 @@ export class NiceMaterialStyleDirective {
9
9
  this.element.nativeElement.classList.add("keep-material-style");
10
10
  }
11
11
  }
12
- NiceMaterialStyleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialStyleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
13
- NiceMaterialStyleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: NiceMaterialStyleDirective, selector: "[keep-material-style]", ngImport: i0 });
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: NiceMaterialStyleDirective, decorators: [{
12
+ NiceMaterialStyleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialStyleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
13
+ NiceMaterialStyleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.3", type: NiceMaterialStyleDirective, selector: "[keep-material-style]", ngImport: i0 });
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceMaterialStyleDirective, decorators: [{
15
15
  type: Directive,
16
16
  args: [{ selector: "[keep-material-style]" }]
17
17
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });