ngwr 0.6.0 → 1.0.0

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 (192) hide show
  1. package/button/button.d.ts +1 -1
  2. package/checkbox/checkbox.d.ts +1 -1
  3. package/core/color/color.d.ts +1 -1
  4. package/core/overlay/connected-overlay-directive.d.ts +1 -1
  5. package/core/overlay/position-type.d.ts +1 -1
  6. package/core/types/on-change-type.d.ts +1 -1
  7. package/core/types/on-touched-type.d.ts +1 -1
  8. package/core/types/safe-any.d.ts +1 -1
  9. package/dialog/dialog-content-directives.d.ts +1 -1
  10. package/divider/divider.d.ts +1 -1
  11. package/{esm2020 → esm2022}/button/button-module.mjs +5 -5
  12. package/esm2022/button/button.mjs +187 -0
  13. package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
  14. package/esm2022/checkbox/checkbox.mjs +154 -0
  15. package/{esm2020 → esm2022}/core/abstract/base.mjs +4 -4
  16. package/esm2022/core/overlay/connected-overlay-directive.mjs +98 -0
  17. package/{esm2020 → esm2022}/core/overlay/overlay-module.mjs +5 -5
  18. package/{esm2020 → esm2022}/dialog/dialog-base.mjs +4 -4
  19. package/esm2022/dialog/dialog-container.mjs +58 -0
  20. package/esm2022/dialog/dialog-content-directives.mjs +98 -0
  21. package/{esm2020 → esm2022}/dialog/dialog-module.mjs +5 -5
  22. package/{esm2020 → esm2022}/dialog/dialog-service.mjs +11 -11
  23. package/{esm2020 → esm2022}/divider/divider-module.mjs +5 -5
  24. package/esm2022/divider/divider.mjs +100 -0
  25. package/{esm2020 → esm2022}/form/form-error.mjs +4 -4
  26. package/esm2022/form/form-item.mjs +46 -0
  27. package/{esm2020 → esm2022}/form/form-module.mjs +5 -5
  28. package/{esm2020 → esm2022}/icon/icon-module.mjs +5 -5
  29. package/esm2022/icon/icon-service.mjs +21 -0
  30. package/esm2022/icon/icon.mjs +60 -0
  31. package/{esm2020 → esm2022}/input/input-module.mjs +5 -5
  32. package/esm2022/input/input.mjs +240 -0
  33. package/{esm2020 → esm2022}/skeleton/skeleton-module.mjs +5 -5
  34. package/{esm2020 → esm2022}/skeleton/skeleton.mjs +4 -4
  35. package/{esm2020 → esm2022}/spinner/spinner-module.mjs +5 -5
  36. package/{esm2020 → esm2022}/spinner/spinner.mjs +4 -4
  37. package/{esm2020 → esm2022}/tag/tag-module.mjs +5 -5
  38. package/{esm2020 → esm2022}/tag/tag.mjs +4 -4
  39. package/esm2022/tooltip/tooltip-component.mjs +93 -0
  40. package/esm2022/tooltip/tooltip-directive.mjs +85 -0
  41. package/{esm2020 → esm2022}/tooltip/tooltip-module.mjs +5 -5
  42. package/{fesm2015 → fesm2022}/ngwr-button.mjs +29 -30
  43. package/{fesm2020 → fesm2022}/ngwr-button.mjs.map +1 -1
  44. package/{fesm2015 → fesm2022}/ngwr-checkbox.mjs +39 -40
  45. package/fesm2022/ngwr-checkbox.mjs.map +1 -0
  46. package/{fesm2015 → fesm2022}/ngwr-core-abstract.mjs +3 -4
  47. package/{fesm2020 → fesm2022}/ngwr-core-abstract.mjs.map +1 -1
  48. package/{fesm2020 → fesm2022}/ngwr-core-color.mjs +0 -1
  49. package/{fesm2020 → fesm2022}/ngwr-core-decorators.mjs +0 -1
  50. package/{fesm2015 → fesm2022}/ngwr-core-overlay.mjs +13 -14
  51. package/{fesm2015 → fesm2022}/ngwr-core-overlay.mjs.map +1 -1
  52. package/{fesm2015 → fesm2022}/ngwr-core-types.mjs +0 -1
  53. package/{fesm2020 → fesm2022}/ngwr-dialog.mjs +44 -45
  54. package/{fesm2020 → fesm2022}/ngwr-dialog.mjs.map +1 -1
  55. package/{fesm2015 → fesm2022}/ngwr-divider.mjs +15 -16
  56. package/{fesm2015 → fesm2022}/ngwr-divider.mjs.map +1 -1
  57. package/{fesm2020 → fesm2022}/ngwr-form.mjs +14 -15
  58. package/fesm2022/ngwr-form.mjs.map +1 -0
  59. package/{fesm2020 → fesm2022}/ngwr-icon.mjs +16 -16
  60. package/{fesm2015 → fesm2022}/ngwr-icon.mjs.map +1 -1
  61. package/{fesm2020 → fesm2022}/ngwr-input.mjs +41 -42
  62. package/fesm2022/ngwr-input.mjs.map +1 -0
  63. package/{fesm2015 → fesm2022}/ngwr-skeleton.mjs +7 -8
  64. package/{fesm2020 → fesm2022}/ngwr-skeleton.mjs.map +1 -1
  65. package/fesm2022/ngwr-spinner.mjs +43 -0
  66. package/fesm2022/ngwr-spinner.mjs.map +1 -0
  67. package/{fesm2015 → fesm2022}/ngwr-tag.mjs +7 -8
  68. package/{fesm2020 → fesm2022}/ngwr-tag.mjs.map +1 -1
  69. package/{fesm2020 → fesm2022}/ngwr-tooltip.mjs +26 -27
  70. package/{fesm2015 → fesm2022}/ngwr-tooltip.mjs.map +1 -1
  71. package/{fesm2020 → fesm2022}/ngwr.mjs +0 -1
  72. package/form/form-item.d.ts +1 -1
  73. package/icon/icon.d.ts +1 -1
  74. package/icon/icons.d.ts +2 -2
  75. package/input/input-types.d.ts +3 -3
  76. package/input/input.d.ts +1 -1
  77. package/package.json +76 -114
  78. package/skeleton/skeleton.d.ts +1 -1
  79. package/styles/grid.scss +97 -34
  80. package/styles/root.scss +3 -3
  81. package/tag/tag.d.ts +1 -1
  82. package/tooltip/tooltip-component.d.ts +1 -1
  83. package/tooltip/tooltip-directive.d.ts +1 -1
  84. package/tooltip/tooltip-trigger.d.ts +1 -1
  85. package/esm2020/button/button.mjs +0 -187
  86. package/esm2020/checkbox/checkbox.mjs +0 -154
  87. package/esm2020/core/overlay/connected-overlay-directive.mjs +0 -98
  88. package/esm2020/dialog/dialog-container.mjs +0 -58
  89. package/esm2020/dialog/dialog-content-directives.mjs +0 -98
  90. package/esm2020/divider/divider.mjs +0 -100
  91. package/esm2020/form/form-item.mjs +0 -46
  92. package/esm2020/icon/icon-service.mjs +0 -21
  93. package/esm2020/icon/icon.mjs +0 -60
  94. package/esm2020/input/input.mjs +0 -240
  95. package/esm2020/tooltip/tooltip-component.mjs +0 -93
  96. package/esm2020/tooltip/tooltip-directive.mjs +0 -85
  97. package/fesm2015/ngwr-button.mjs.map +0 -1
  98. package/fesm2015/ngwr-checkbox.mjs.map +0 -1
  99. package/fesm2015/ngwr-core-abstract.mjs.map +0 -1
  100. package/fesm2015/ngwr-core-color.mjs +0 -26
  101. package/fesm2015/ngwr-core-decorators.mjs +0 -23
  102. package/fesm2015/ngwr-dialog.mjs +0 -454
  103. package/fesm2015/ngwr-dialog.mjs.map +0 -1
  104. package/fesm2015/ngwr-form.mjs +0 -90
  105. package/fesm2015/ngwr-form.mjs.map +0 -1
  106. package/fesm2015/ngwr-icon.mjs +0 -567
  107. package/fesm2015/ngwr-input.mjs +0 -263
  108. package/fesm2015/ngwr-input.mjs.map +0 -1
  109. package/fesm2015/ngwr-skeleton.mjs.map +0 -1
  110. package/fesm2015/ngwr-spinner.mjs +0 -44
  111. package/fesm2015/ngwr-spinner.mjs.map +0 -1
  112. package/fesm2015/ngwr-tag.mjs.map +0 -1
  113. package/fesm2015/ngwr-tooltip.mjs +0 -208
  114. package/fesm2015/ngwr.mjs +0 -8
  115. package/fesm2020/ngwr-button.mjs +0 -212
  116. package/fesm2020/ngwr-checkbox.mjs +0 -178
  117. package/fesm2020/ngwr-checkbox.mjs.map +0 -1
  118. package/fesm2020/ngwr-core-abstract.mjs +0 -26
  119. package/fesm2020/ngwr-core-color.mjs.map +0 -1
  120. package/fesm2020/ngwr-core-decorators.mjs.map +0 -1
  121. package/fesm2020/ngwr-core-overlay.mjs +0 -147
  122. package/fesm2020/ngwr-core-overlay.mjs.map +0 -1
  123. package/fesm2020/ngwr-core-types.mjs +0 -5
  124. package/fesm2020/ngwr-core-types.mjs.map +0 -1
  125. package/fesm2020/ngwr-divider.mjs +0 -121
  126. package/fesm2020/ngwr-divider.mjs.map +0 -1
  127. package/fesm2020/ngwr-form.mjs.map +0 -1
  128. package/fesm2020/ngwr-icon.mjs.map +0 -1
  129. package/fesm2020/ngwr-input.mjs.map +0 -1
  130. package/fesm2020/ngwr-skeleton.mjs +0 -67
  131. package/fesm2020/ngwr-spinner.mjs +0 -44
  132. package/fesm2020/ngwr-spinner.mjs.map +0 -1
  133. package/fesm2020/ngwr-tag.mjs +0 -105
  134. package/fesm2020/ngwr-tooltip.mjs.map +0 -1
  135. package/fesm2020/ngwr.mjs.map +0 -1
  136. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  137. /package/{esm2020 → esm2022}/button/ngwr-button.mjs +0 -0
  138. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  139. /package/{esm2020 → esm2022}/checkbox/ngwr-checkbox.mjs +0 -0
  140. /package/{esm2020 → esm2022}/core/abstract/index.mjs +0 -0
  141. /package/{esm2020 → esm2022}/core/abstract/ngwr-core-abstract.mjs +0 -0
  142. /package/{esm2020 → esm2022}/core/color/color.mjs +0 -0
  143. /package/{esm2020 → esm2022}/core/color/index.mjs +0 -0
  144. /package/{esm2020 → esm2022}/core/color/is-theme-color.mjs +0 -0
  145. /package/{esm2020 → esm2022}/core/color/ngwr-core-color.mjs +0 -0
  146. /package/{esm2020 → esm2022}/core/decorators/index.mjs +0 -0
  147. /package/{esm2020 → esm2022}/core/decorators/input-boolean.mjs +0 -0
  148. /package/{esm2020 → esm2022}/core/decorators/ngwr-core-decorators.mjs +0 -0
  149. /package/{esm2020 → esm2022}/core/overlay/get-placement-name.mjs +0 -0
  150. /package/{esm2020 → esm2022}/core/overlay/index.mjs +0 -0
  151. /package/{esm2020 → esm2022}/core/overlay/ngwr-core-overlay.mjs +0 -0
  152. /package/{esm2020 → esm2022}/core/overlay/position-map.mjs +0 -0
  153. /package/{esm2020 → esm2022}/core/overlay/position-type.mjs +0 -0
  154. /package/{esm2020 → esm2022}/core/types/index.mjs +0 -0
  155. /package/{esm2020 → esm2022}/core/types/ng-style-interface.mjs +0 -0
  156. /package/{esm2020 → esm2022}/core/types/ngwr-core-types.mjs +0 -0
  157. /package/{esm2020 → esm2022}/core/types/on-change-type.mjs +0 -0
  158. /package/{esm2020 → esm2022}/core/types/on-touched-type.mjs +0 -0
  159. /package/{esm2020 → esm2022}/core/types/property-mapping.mjs +0 -0
  160. /package/{esm2020 → esm2022}/core/types/safe-any.mjs +0 -0
  161. /package/{esm2020 → esm2022}/dialog/dialog-animations.mjs +0 -0
  162. /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
  163. /package/{esm2020 → esm2022}/dialog/dialog-ref.mjs +0 -0
  164. /package/{esm2020 → esm2022}/dialog/dialog-tokens.mjs +0 -0
  165. /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
  166. /package/{esm2020 → esm2022}/dialog/ngwr-dialog.mjs +0 -0
  167. /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
  168. /package/{esm2020 → esm2022}/divider/ngwr-divider.mjs +0 -0
  169. /package/{esm2020 → esm2022}/form/index.mjs +0 -0
  170. /package/{esm2020 → esm2022}/form/ngwr-form.mjs +0 -0
  171. /package/{esm2020 → esm2022}/icon/icons.mjs +0 -0
  172. /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
  173. /package/{esm2020 → esm2022}/icon/ngwr-icon.mjs +0 -0
  174. /package/{esm2020 → esm2022}/index.mjs +0 -0
  175. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  176. /package/{esm2020 → esm2022}/input/input-types.mjs +0 -0
  177. /package/{esm2020 → esm2022}/input/ngwr-input.mjs +0 -0
  178. /package/{esm2020 → esm2022}/ngwr.mjs +0 -0
  179. /package/{esm2020 → esm2022}/skeleton/index.mjs +0 -0
  180. /package/{esm2020 → esm2022}/skeleton/ngwr-skeleton.mjs +0 -0
  181. /package/{esm2020 → esm2022}/spinner/index.mjs +0 -0
  182. /package/{esm2020 → esm2022}/spinner/ngwr-spinner.mjs +0 -0
  183. /package/{esm2020 → esm2022}/tag/index.mjs +0 -0
  184. /package/{esm2020 → esm2022}/tag/ngwr-tag.mjs +0 -0
  185. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  186. /package/{esm2020 → esm2022}/tooltip/ngwr-tooltip.mjs +0 -0
  187. /package/{esm2020 → esm2022}/tooltip/tooltip-default-positions.mjs +0 -0
  188. /package/{esm2020 → esm2022}/tooltip/tooltip-trigger.mjs +0 -0
  189. /package/{fesm2015 → fesm2022}/ngwr-core-color.mjs.map +0 -0
  190. /package/{fesm2015 → fesm2022}/ngwr-core-decorators.mjs.map +0 -0
  191. /package/{fesm2015 → fesm2022}/ngwr-core-types.mjs.map +0 -0
  192. /package/{fesm2015 → fesm2022}/ngwr.mjs.map +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-form.mjs","sources":["../../../projects/lib/form/form-item.ts","../../../projects/lib/form/form-error.ts","../../../projects/lib/form/form-module.ts","../../../projects/lib/form/ngwr-form.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { InputBoolean } from 'ngwr/core/decorators';\nimport { SafeAny } from 'ngwr/core/types';\n\n@Component({\n selector: 'wr-form-item',\n exportAs: 'wrFormItem',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrFormItem {\n @Input()\n @InputBoolean()\n get hasError(): boolean {\n return this._hasError;\n }\n set hasError(value: BooleanInput) {\n this._hasError = coerceBooleanProperty(value);\n this.cdr.markForCheck();\n }\n private _hasError: boolean = false;\n\n /** Set element classes */\n @HostBinding('class')\n get elClasses(): SafeAny {\n return {\n 'wr-form-item': true,\n 'wr-form-item--has-error': this.hasError,\n };\n }\n\n constructor(private readonly cdr: ChangeDetectorRef) {}\n}\n","import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'wr-form-error',\n exportAs: 'wrFormError',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrFormError {\n @HostBinding('class') class = 'wr-form-error';\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { WrFormError } from './form-error';\nimport { WrFormItem } from './form-item';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [WrFormItem, WrFormError],\n exports: [WrFormItem, WrFormError],\n})\nexport class WrFormModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
@@ -467,17 +467,17 @@ const wrIconSet = [
467
467
  ];
468
468
 
469
469
  class WrIconService {
470
+ static { this.registry = new Map(); }
470
471
  get registry() {
471
472
  return WrIconService.registry;
472
473
  }
473
474
  static registerIcons() {
474
475
  wrIconSet.forEach((icon) => WrIconService.registry.set(icon.name, icon.data));
475
476
  }
477
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
478
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconService, providedIn: 'root' }); }
476
479
  }
477
- WrIconService.registry = new Map();
478
- WrIconService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
479
- WrIconService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconService, providedIn: 'root' });
480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconService, decorators: [{
480
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconService, decorators: [{
481
481
  type: Injectable,
482
482
  args: [{
483
483
  providedIn: 'root',
@@ -485,11 +485,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
485
485
  }] });
486
486
 
487
487
  class WrIcon {
488
- constructor(elRef, iconService, doc) {
489
- this.elRef = elRef;
490
- this.iconService = iconService;
491
- this.doc = doc;
492
- }
493
488
  set name(value) {
494
489
  if (!this.iconService.registry.has(value)) {
495
490
  console.warn(`Icon ${value} was not found in NGWR icons`);
@@ -514,15 +509,20 @@ class WrIcon {
514
509
  'wr-icon': true,
515
510
  };
516
511
  }
512
+ constructor(elRef, iconService, doc) {
513
+ this.elRef = elRef;
514
+ this.iconService = iconService;
515
+ this.doc = doc;
516
+ }
517
517
  svgElementFromString(svgContent) {
518
518
  const div = this.doc.createElement('div');
519
519
  div.innerHTML = svgContent;
520
520
  return div.querySelector('svg') || this.doc.createElementNS('http://www.w3.org/2000/svg', 'path');
521
521
  }
522
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIcon, deps: [{ token: i0.ElementRef }, { token: WrIconService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
523
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: WrIcon, selector: "wr-icon[name]", inputs: { name: "name" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrIcon"], ngImport: i0 }); }
522
524
  }
523
- WrIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIcon, deps: [{ token: i0.ElementRef }, { token: WrIconService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
524
- WrIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: WrIcon, selector: "wr-icon[name]", inputs: { name: "name" }, host: { properties: { "class": "this.elClasses" } }, exportAs: ["wrIcon"], ngImport: i0 });
525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIcon, decorators: [{
525
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIcon, decorators: [{
526
526
  type: Directive,
527
527
  args: [{
528
528
  selector: 'wr-icon[name]',
@@ -545,11 +545,11 @@ class WrIconModule {
545
545
  WrIconService.registerIcons();
546
546
  return { ngModule: WrIconModule };
547
547
  }
548
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
549
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: WrIconModule, declarations: [WrIcon], exports: [WrIcon] }); }
550
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconModule }); }
548
551
  }
549
- WrIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
550
- WrIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: WrIconModule, declarations: [WrIcon], exports: [WrIcon] });
551
- WrIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconModule });
552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WrIconModule, decorators: [{
552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: WrIconModule, decorators: [{
553
553
  type: NgModule,
554
554
  args: [{
555
555
  declarations: [WrIcon],