aril 0.0.8 → 0.0.13

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 (110) hide show
  1. package/esm2022/http/src/serviceBase.mjs +2 -3
  2. package/esm2022/i18n/aril-i18n.mjs +5 -0
  3. package/esm2022/i18n/index.mjs +6 -0
  4. package/esm2022/i18n/src/file-url-token.mjs +3 -0
  5. package/esm2022/i18n/src/i18n.module.mjs +17 -0
  6. package/esm2022/i18n/src/loader.mjs +20 -0
  7. package/esm2022/i18n/src/provideI18n.mjs +16 -0
  8. package/esm2022/i18n/src/provideScope.mjs +18 -0
  9. package/esm2022/ui/badge/src/badge.component.mjs +11 -17
  10. package/esm2022/ui/button/src/button.component.mjs +19 -34
  11. package/esm2022/ui/button/src/split-button.component.mjs +3 -3
  12. package/esm2022/ui/calendar/src/calendar.component.mjs +35 -56
  13. package/esm2022/ui/checkbox/src/check-box.component.mjs +7 -4
  14. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +7 -4
  15. package/esm2022/ui/dxField/src/dx-field.component.mjs +9 -21
  16. package/esm2022/ui/field/src/field.component.mjs +19 -32
  17. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +28 -57
  18. package/esm2022/ui/form/src/form-submit-button.component.mjs +22 -27
  19. package/esm2022/ui/form/src/form.component.mjs +7 -11
  20. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +1 -5
  21. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +8 -12
  22. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -5
  23. package/esm2022/ui/mask/src/mask.component.mjs +7 -4
  24. package/esm2022/ui/number/src/number.component.mjs +19 -40
  25. package/esm2022/ui/password/src/password.component.mjs +11 -16
  26. package/esm2022/ui/radioButton/src/radio-button.component.mjs +14 -21
  27. package/esm2022/ui/selectBox/src/select-box.component.mjs +12 -24
  28. package/esm2022/ui/switch/src/switch.component.mjs +6 -6
  29. package/esm2022/ui/table/src/table.component.mjs +2 -1
  30. package/esm2022/ui/tagBox/src/tag-box.component.mjs +12 -21
  31. package/esm2022/ui/text/src/text.component.mjs +24 -35
  32. package/esm2022/ui/textArea/src/text-area.component.mjs +11 -16
  33. package/esm2022/ui/tree/src/tree.component.mjs +3 -3
  34. package/esm2022/ui/value/src/value.component.mjs +26 -42
  35. package/esm2022/util/lib/index.mjs +2 -1
  36. package/esm2022/util/lib/src/module-router.mjs +16 -0
  37. package/fesm2022/aril-http.mjs +1 -2
  38. package/fesm2022/aril-http.mjs.map +1 -1
  39. package/fesm2022/aril-i18n.mjs +72 -0
  40. package/fesm2022/aril-i18n.mjs.map +1 -0
  41. package/fesm2022/aril-ui-badge.mjs +10 -16
  42. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  43. package/fesm2022/aril-ui-button.mjs +21 -36
  44. package/fesm2022/aril-ui-button.mjs.map +1 -1
  45. package/fesm2022/aril-ui-calendar.mjs +34 -55
  46. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  47. package/fesm2022/aril-ui-checkbox.mjs +11 -5
  48. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  49. package/fesm2022/aril-ui-dxField.mjs +8 -20
  50. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  51. package/fesm2022/aril-ui-field.mjs +18 -31
  52. package/fesm2022/aril-ui-field.mjs.map +1 -1
  53. package/fesm2022/aril-ui-fileUpload.mjs +27 -56
  54. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  55. package/fesm2022/aril-ui-form.mjs +26 -36
  56. package/fesm2022/aril-ui-form.mjs.map +1 -1
  57. package/fesm2022/aril-ui-lib.mjs +7 -19
  58. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  59. package/fesm2022/aril-ui-mask.mjs +6 -3
  60. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  61. package/fesm2022/aril-ui-number.mjs +18 -39
  62. package/fesm2022/aril-ui-number.mjs.map +1 -1
  63. package/fesm2022/aril-ui-password.mjs +10 -15
  64. package/fesm2022/aril-ui-password.mjs.map +1 -1
  65. package/fesm2022/aril-ui-radioButton.mjs +13 -20
  66. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  67. package/fesm2022/aril-ui-selectBox.mjs +11 -23
  68. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  69. package/fesm2022/aril-ui-switch.mjs +5 -5
  70. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  71. package/fesm2022/aril-ui-table.mjs +1 -0
  72. package/fesm2022/aril-ui-table.mjs.map +1 -1
  73. package/fesm2022/aril-ui-tagBox.mjs +11 -20
  74. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  75. package/fesm2022/aril-ui-text.mjs +23 -34
  76. package/fesm2022/aril-ui-text.mjs.map +1 -1
  77. package/fesm2022/aril-ui-textArea.mjs +10 -15
  78. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  79. package/fesm2022/aril-ui-tree.mjs +2 -2
  80. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  81. package/fesm2022/aril-ui-value.mjs +25 -41
  82. package/fesm2022/aril-ui-value.mjs.map +1 -1
  83. package/fesm2022/aril-util-lib.mjs +19 -0
  84. package/fesm2022/aril-util-lib.mjs.map +1 -1
  85. package/i18n/index.d.ts +5 -0
  86. package/i18n/src/file-url-token.d.ts +2 -0
  87. package/i18n/src/i18n.module.d.ts +7 -0
  88. package/i18n/src/loader.d.ts +9 -0
  89. package/i18n/src/provideI18n.d.ts +2 -0
  90. package/i18n/src/provideScope.d.ts +9 -0
  91. package/package.json +13 -7
  92. package/ui/badge/src/badge.component.d.ts +5 -5
  93. package/ui/button/src/button.component.d.ts +16 -19
  94. package/ui/calendar/src/calendar.component.d.ts +17 -20
  95. package/ui/dxField/src/dx-field.component.d.ts +5 -7
  96. package/ui/field/src/field.component.d.ts +9 -10
  97. package/ui/fileUpload/src/file-upload.component.d.ts +20 -19
  98. package/ui/form/src/form-submit-button.component.d.ts +5 -5
  99. package/ui/form/src/form.component.d.ts +2 -2
  100. package/ui/lib/src/form/form-error-message.directive.d.ts +2 -2
  101. package/ui/number/src/number.component.d.ts +19 -16
  102. package/ui/password/src/password.component.d.ts +5 -5
  103. package/ui/radioButton/src/radio-button.component.d.ts +8 -6
  104. package/ui/selectBox/src/select-box.component.d.ts +8 -8
  105. package/ui/tagBox/src/tag-box.component.d.ts +6 -6
  106. package/ui/text/src/text.component.d.ts +9 -9
  107. package/ui/textArea/src/text-area.component.d.ts +5 -5
  108. package/ui/value/src/value.component.d.ts +7 -9
  109. package/util/lib/index.d.ts +1 -0
  110. package/util/lib/src/module-router.d.ts +5 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { input, computed, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import * as i2 from '@angular/forms';
5
5
  import { ReactiveFormsModule } from '@angular/forms';
@@ -10,48 +10,37 @@ import { TooltipModule } from 'primeng/tooltip';
10
10
  import * as i1 from 'aril/ui/lib';
11
11
  import { BaseInputComponent, iconTransform, iconPosTransform, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
12
12
 
13
- /* TODO :
14
- 1. InputSignal
15
- 2. Use computed or effect instead of input setter
13
+ /* TODO
14
+ 1. HostAttributeToken
16
15
  */
17
16
  class TextComponent extends BaseInputComponent {
18
17
  constructor() {
19
18
  super(...arguments);
20
- this.placeholder = '';
21
- this.sizeClass = '';
22
- }
23
- set size(value) {
24
- switch (value) {
25
- case 'sm':
26
- this.sizeClass = '.p-inputtext-sm';
27
- break;
28
- case 'lg':
29
- this.sizeClass = '.p-inputtext-lg';
30
- break;
31
- default:
32
- this.sizeClass = '';
33
- break;
34
- }
19
+ this.placeholder = input();
20
+ this.tabindex = input();
21
+ this.icon = input();
22
+ this.iconPos = input('left');
23
+ this.size = input('sm');
24
+ this._icon = computed(() => iconTransform(this.icon()));
25
+ this._iconPosClass = computed(() => iconPosTransform(this.iconPos()));
26
+ this._sizeClass = computed(() => {
27
+ switch (this.size()) {
28
+ case 'sm':
29
+ return 'p-inputtext-sm';
30
+ case 'md':
31
+ return '';
32
+ case 'lg':
33
+ return 'p-inputtext-lg';
34
+ }
35
+ });
35
36
  }
36
37
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: "placeholder", tabindex: "tabindex", icon: ["icon", "icon", iconTransform], iconPosClass: ["iconPos", "iconPosClass", iconPosTransform], size: "size" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"sizeClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[tabindex]=\"tabindex\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: TextComponent, isStandalone: true, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
38
39
  }
39
40
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
40
41
  type: Component,
41
- args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"sizeClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[tabindex]=\"tabindex\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n" }]
42
- }], propDecorators: { placeholder: [{
43
- type: Input
44
- }], tabindex: [{
45
- type: Input
46
- }], icon: [{
47
- type: Input,
48
- args: [{ transform: iconTransform }]
49
- }], iconPosClass: [{
50
- type: Input,
51
- args: [{ alias: 'iconPos', transform: iconPosTransform }]
52
- }], size: [{
53
- type: Input
54
- }] } });
42
+ args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective], template: "<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n" }]
43
+ }] });
55
44
 
56
45
  /**
57
46
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextModule } from 'primeng/inputtext';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport {\n\tBaseInputComponent,\n\tIconPosTypes,\n\tInputErrorMessagePipe,\n\tPrimeIcon,\n\tValueAccessorDirective,\n\ticonPosTransform,\n\ticonTransform\n} from 'aril/ui/lib';\n\ntype Size = 'sm' | 'md' | 'lg';\n\n/* TODO : \n 1. InputSignal\n 2. Use computed or effect instead of input setter\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\n\ttemplateUrl: './text.component.html',\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\n\thostDirectives: [ValueAccessorDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TextComponent extends BaseInputComponent {\n\t@Input() placeholder = '';\n\t@Input() tabindex!: number;\n\t@Input({ transform: iconTransform }) icon?: PrimeIcon;\n\t@Input({ alias: 'iconPos', transform: iconPosTransform }) iconPosClass?: IconPosTypes;\n\t@Input() set size(value: Size) {\n\t\tswitch (value) {\n\t\t\tcase 'sm':\n\t\t\t\tthis.sizeClass = '.p-inputtext-sm';\n\t\t\t\tbreak;\n\t\t\tcase 'lg':\n\t\t\t\tthis.sizeClass = '.p-inputtext-lg';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.sizeClass = '';\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tsizeClass = '';\n}\n","<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"sizeClass\"\n\t\t[placeholder]=\"placeholder\"\n\t\t[tabindex]=\"tabindex\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (icon) {\n\t<span [class]=\"iconPosClass ?? 'p-input-icon-left'\">\n\t\t<i [class]=\"icon\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAmBA;;;AAGE;AAUI,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AARrD,IAAA,WAAA,GAAA;;QASU,IAAW,CAAA,WAAA,GAAG,EAAE,CAAC;QAkB1B,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AACf,KAAA;IAfA,IAAa,IAAI,CAAC,KAAW,EAAA;QAC5B,QAAQ,KAAK;AACZ,YAAA,KAAK,IAAI;AACR,gBAAA,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC;gBACnC,MAAM;AACP,YAAA,KAAK,IAAI;AACR,gBAAA,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC;gBACnC,MAAM;AACP,YAAA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gB,EAAE,CAAA;gBAC3C,IAAI,EAAA,CAAA;sBAAhB,KAAK;;;AErCP;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-text.mjs","sources":["../../projects/aril/ui/text/src/text.component.ts","../../projects/aril/ui/text/src/text.component.html","../../projects/aril/ui/text/aril-ui-text.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextModule } from 'primeng/inputtext';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport {\n\tBaseInputComponent,\n\tIconPosTypes,\n\tInputErrorMessagePipe,\n\tPrimeIcon,\n\tValueAccessorDirective,\n\ticonPosTransform,\n\ticonTransform\n} from 'aril/ui/lib';\n\ntype Size = 'sm' | 'md' | 'lg';\n\n/* TODO\n 1. HostAttributeToken\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]',\n\ttemplateUrl: './text.component.html',\n\timports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TextComponent extends BaseInputComponent {\n\tplaceholder = input<string>();\n\ttabindex = input<number>();\n\ticon = input<PrimeIcon>();\n\ticonPos = input<IconPosTypes>('left');\n\tsize = input<Size>('sm');\n\n\t_icon = computed(() => iconTransform(this.icon()!));\n\t_iconPosClass = computed(() => iconPosTransform(this.iconPos()!));\n\n\t_sizeClass = computed(() => {\n\t\tswitch (this.size()) {\n\t\t\tcase 'sm':\n\t\t\t\treturn 'p-inputtext-sm';\n\t\t\tcase 'md':\n\t\t\t\treturn '';\n\t\t\tcase 'lg':\n\t\t\t\treturn 'p-inputtext-lg';\n\t\t}\n\t});\n}\n","<ng-template #input>\n\t<input\n\t\tpInputText\n\t\ttype=\"text\"\n\t\t[class]=\"_sizeClass()\"\n\t\t[placeholder]=\"placeholder()\"\n\t\t[tabindex]=\"tabindex()\"\n\t\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t\t[tooltipOptions]=\"tooltipOptions\"\n\t\t[formControl]=\"ngControl.control\"\n\t\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\" />\n</ng-template>\n\n@if (_icon()) {\n\t<span [class]=\"_iconPosClass()\">\n\t\t<i [class]=\"_icon()\"></i>\n\t\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n\t</span>\n} @else {\n\t<ng-container *ngTemplateOutlet=\"input\"></ng-container>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAmBA;;AAEE;AASI,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;QAQC,IAAW,CAAA,WAAA,GAAG,KAAK,EAAU,CAAC;QAC9B,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;QAC3B,IAAI,CAAA,IAAA,GAAG,KAAK,EAAa,CAAC;AAC1B,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAe,MAAM,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAO,IAAI,CAAC,CAAC;AAEzB,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,aAAa,CAAC,IAAI,CAAC,IAAI,EAAG,CAAC,CAAC,CAAC;AACpD,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAM,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAG,CAAC,CAAC,CAAC;AAElE,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,QAAQ,IAAI,CAAC,IAAI,EAAE;AAClB,gBAAA,KAAK,IAAI;AACR,oBAAA,OAAO,gBAAgB,CAAC;AACzB,gBAAA,KAAK,IAAI;AACR,oBAAA,OAAO,EAAE,CA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A,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG1F,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,wEAAwE,EAAA,OAAA,EAEzE,CAAC,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,EACvF,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,8pBAAA,EAAA,CAAA;;;AE5BzC;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { input, Component } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
4
  import { ReactiveFormsModule } from '@angular/forms';
5
5
  import * as i3 from 'primeng/inputtextarea';
@@ -9,29 +9,24 @@ import { TooltipModule } from 'primeng/tooltip';
9
9
  import * as i1 from 'aril/ui/lib';
10
10
  import { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';
11
11
 
12
- /* TODO :
13
- 1. InputSignal
12
+ /* TODO
13
+ 1. HostAttributeToken
14
14
  */
15
15
  class TextAreaComponent extends BaseInputComponent {
16
16
  constructor() {
17
17
  super(...arguments);
18
- this.placeholder = '';
18
+ this.rows = input();
19
+ this.cols = input();
20
+ this.tabindex = input();
21
+ this.placeholder = input('');
19
22
  }
20
23
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: "rows", cols: "cols", tabindex: "tabindex", placeholder: "placeholder" }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\n\tpInputTextarea\n\t[rows]=\"rows\"\n\t[cols]=\"cols\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TextAreaComponent, isStandalone: true, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<textarea\n\tpInputTextarea\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</textarea>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: InputTextareaModule }, { kind: "directive", type: i3.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
22
25
  }
23
26
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
24
27
  type: Component,
25
- args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<textarea\n\tpInputTextarea\n\t[rows]=\"rows\"\n\t[cols]=\"cols\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n" }]
26
- }], propDecorators: { rows: [{
27
- type: Input
28
- }], cols: [{
29
- type: Input
30
- }], tabindex: [{
31
- type: Input
32
- }], placeholder: [{
33
- type: Input
34
- }] } });
28
+ args: [{ standalone: true, selector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]', imports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<textarea\n\tpInputTextarea\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</textarea>\n" }]
29
+ }] });
35
30
 
36
31
  /**
37
32
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextareaModule } from 'primeng/inputtextarea';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO : \n 1. InputSignal\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\n\ttemplateUrl: './text-area.component.html',\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TextAreaComponent extends BaseInputComponent {\n\t@Input() rows?: number;\n\t@Input() cols?: number;\n\t@Input() tabindex!: number;\n\t@Input() placeholder = '';\n}\n","<textarea\n\tpInputTextarea\n\t[rows]=\"rows\"\n\t[cols]=\"cols\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder\"\n\t[tabindex]=\"tabindex\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\"></textarea>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;AAEE;AAUI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AARzD,IAAA,WAAA,GAAA;;QAYU,IAAW,CAAA,WAAA,GAAG,EAAE,CAAC;AAC1B,KAAA;8GALY,iBAAiB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,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI5E,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,uFAAuF,EAAA,OAAA,EAExF,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,kBACzE,CAAC,sBAAsB,CAAC,EACvB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mZAAA,EAAA,CAAA;8BAGtC,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AExBP;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-textArea.mjs","sources":["../../projects/aril/ui/textArea/src/text-area.component.ts","../../projects/aril/ui/textArea/src/text-area.component.html","../../projects/aril/ui/textArea/aril-ui-textArea.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { InputTextareaModule } from 'primeng/inputtextarea';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n/* TODO\n 1. HostAttributeToken\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]',\n\ttemplateUrl: './text-area.component.html',\n\timports: [ReactiveFormsModule, InputTextareaModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TextAreaComponent extends BaseInputComponent {\n\trows = input<number>();\n\tcols = input<number>();\n\ttabindex = input<number>();\n\tplaceholder = input<string>('');\n}\n","<textarea\n\tpInputTextarea\n\t[rows]=\"rows()\"\n\t[cols]=\"cols()\"\n\t[autoResize]=\"true\"\n\t[placeholder]=\"placeholder()\"\n\t[tabindex]=\"tabindex()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</textarea>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;AAEE;AASI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;QAQC,IAAI,CAAA,IAAA,GAAG,KAAK,EAAU,CAAC;QACvB,IAAI,CAAA,IAAA,GAAG,KAAK,EAAU,CAAC;QACvB,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAChC,KAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uFAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EA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F,OAAA,EAAA,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACzE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,6ZAAA,EAAA,CAAA;;;AEjBzC;;AAEG;;;;"}
@@ -31,11 +31,11 @@ class TreeComponent {
31
31
  });
32
32
  }
33
33
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\">\n</aril-button>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n", dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TreeComponent, isStandalone: true, selector: "aril-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandEvent: "expandEvent", selectionEvent: "selectionEvent" }, ngImport: i0, template: "<div class=\"mb-3\">\n\t<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\"></aril-button>\n</div>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n", dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i2.ContextMenu, selector: "p-contextMenu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "id", "ariaLabel", "ariaLabelledBy", "pressDelay"], outputs: ["onShow", "onHide"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "outlined", "badge", "size", "icon", "color"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
35
  }
36
36
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TreeComponent, decorators: [{
37
37
  type: Component,
38
- args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\">\n</aril-button>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n" }]
38
+ args: [{ standalone: true, selector: 'aril-tree', imports: [TreeModule, ContextMenuModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mb-3\">\n\t<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\"></aril-button>\n</div>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n" }]
39
39
  }], propDecorators: { expandEvent: [{
40
40
  type: Output
41
41
  }], selectionEvent: [{
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-tree.mjs","sources":["../../projects/aril/ui/tree/src/tree.component.ts","../../projects/aril/ui/tree/src/tree.component.html","../../projects/aril/ui/tree/aril-ui-tree.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { ChangeDetectionStrategy, Component, EventEmitter, input, Output } from '@angular/core';\n\nimport { TreeModule } from 'primeng/tree';\nimport { MenuItem, TreeNode } from 'primeng/api';\nimport { ContextMenuModule } from 'primeng/contextmenu';\n\nimport { ButtonComponent } from 'aril/ui/button';\n\ntype SelectionModes = 'multiple' | 'checkbox' | 'single';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-tree',\n\ttemplateUrl: './tree.component.html',\n\timports: [TreeModule, ContextMenuModule, ButtonComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TreeComponent {\n\tdata = input.required<TreeNode[]>();\n\tcontextMenu = input<MenuItem[]>();\n\tfilterPlaceholder = input<string>('Arama');\n\tfilter = input<boolean>(true);\n\tselectionMode = input<SelectionModes>();\n\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\n\n\tisExpended = false;\n\tselectedNodes!: TreeNode | TreeNode[] | null;\n\n\ttoggleTree() {\n\t\tthis.isExpended = !this.isExpended;\n\t\tthis.expandRecursive(this.data());\n\t}\n\n\texpandRecursive(node: TreeNode[]) {\n\t\tnode.forEach((node) => {\n\t\t\tif (node.children) {\n\t\t\t\tnode.expanded = this.isExpended;\n\t\t\t\tthis.expandRecursive(node.children);\n\t\t\t}\n\t\t});\n\t}\n}\n","<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\">\n</aril-button>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;MAmBa,aAAa,CAAA;AAP1B,IAAA,WAAA,GAAA;AAQC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAc,CAAC;QACpC,IAAW,CAAA,WAAA,GAAG,KAAK,EAAc,CAAC;AAClC,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAC3C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,IAAI,CAAC,CAAC;QAC9B,IAAa,CAAA,aAAA,GAAG,KAAK,EAAkB,CAAC;AAE9B,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,YAAY,EAAE,CAAC;AACxD,QAAA,IAAA,CAAA,cAAc,GAAsB,IAAI,YAAY,EAAO,CAAC;QAEtE,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;AAgBnB,KAAA;IAbA,UAAU,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;KA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CAAA,iBAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,YAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,+SAAE,eAAe,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG5C,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,WAAW,EAEZ,OAAA,EAAA,CAAC,UAAU,EAAE,iBAAiB,EAAE,eAAe,CAAC,EACxC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2lBAAA,EAAA,CAAA;8BASrC,WAAW,EAAA,CAAA;sBAApB,MAAM;gBACG,cAAc,EAAA,CAAA;sBAAvB,MAAM;;;AE3BR;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-tree.mjs","sources":["../../projects/aril/ui/tree/src/tree.component.ts","../../projects/aril/ui/tree/src/tree.component.html","../../projects/aril/ui/tree/aril-ui-tree.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { ChangeDetectionStrategy, Component, EventEmitter, input, Output } from '@angular/core';\n\nimport { TreeModule } from 'primeng/tree';\nimport { MenuItem, TreeNode } from 'primeng/api';\nimport { ContextMenuModule } from 'primeng/contextmenu';\n\nimport { ButtonComponent } from 'aril/ui/button';\n\ntype SelectionModes = 'multiple' | 'checkbox' | 'single';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-tree',\n\ttemplateUrl: './tree.component.html',\n\timports: [TreeModule, ContextMenuModule, ButtonComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TreeComponent {\n\tdata = input.required<TreeNode[]>();\n\tcontextMenu = input<MenuItem[]>();\n\tfilterPlaceholder = input<string>('Arama');\n\tfilter = input<boolean>(true);\n\tselectionMode = input<SelectionModes>();\n\n\t@Output() expandEvent: EventEmitter<unknown> = new EventEmitter();\n\t@Output() selectionEvent: EventEmitter<any> = new EventEmitter<any>();\n\n\tisExpended = false;\n\tselectedNodes!: TreeNode | TreeNode[] | null;\n\n\ttoggleTree() {\n\t\tthis.isExpended = !this.isExpended;\n\t\tthis.expandRecursive(this.data());\n\t}\n\n\texpandRecursive(node: TreeNode[]) {\n\t\tnode.forEach((node) => {\n\t\t\tif (node.children) {\n\t\t\t\tnode.expanded = this.isExpended;\n\t\t\t\tthis.expandRecursive(node.children);\n\t\t\t}\n\t\t});\n\t}\n}\n","<div class=\"mb-3\">\n\t<aril-button size=\"sm\" color=\"primary\" [icon]=\"isExpended ? 'ANGLE_UP' : 'ANGLE_DOWN'\" (clickEvent)=\"toggleTree()\"></aril-button>\n</div>\n<p-tree\n\t[value]=\"data()\"\n\t[selectionMode]=\"selectionMode()\"\n\t[(selection)]=\"selectedNodes\"\n\t[contextMenu]=\"contextMenuRef\"\n\t[filter]=\"filter()\"\n\tfilterMode=\"lenient\"\n\tfilterBy=\"label\"\n\t[filterPlaceholder]=\"filterPlaceholder()\"\n\t(onNodeExpand)=\"expandEvent.emit($event.node)\"\n\t(selectionChange)=\"selectionEvent.emit(selectedNodes)\">\n</p-tree>\n<p-contextMenu #contextMenuRef [model]=\"contextMenu()\"></p-contextMenu>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;MAmBa,aAAa,CAAA;AAP1B,IAAA,WA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A,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,WAAW,EAEZ,OAAA,EAAA,CAAC,UAAU,EAAE,iBAAiB,EAAE,eAAe,CAAC,EACxC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ynBAAA,EAAA,CAAA;8BASrC,WAAW,EAAA,CAAA;sBAApB,MAAM;gBACG,cAAc,EAAA,CAAA;sBAAvB,MAAM;;;AE3BR;;AAEG;;;;"}
@@ -1,54 +1,38 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
+ import { input, computed, Component, ChangeDetectionStrategy } from '@angular/core';
3
3
  import 'aril/util/primitive-extensions';
4
4
 
5
5
  class ValueComponent {
6
6
  constructor() {
7
- this.type = 'text';
8
- this.color = '#333';
9
- this.display = '';
10
- }
11
- ngOnChanges(changes) {
12
- switch (this.type) {
13
- case 'text':
14
- this.display = this.model;
15
- break;
16
- case 'number':
17
- this.format = this.format || '0.###';
18
- this.display = format(this.format, this.model);
19
- break;
20
- case 'decimal':
21
- this.format = this.format || '#.##0,###';
22
- this.display = format(this.format, this.model);
23
- break;
24
- case 'date':
25
- this.format = this.format || 'time';
26
- this.display = this.model.longToString(this.format);
27
- break;
28
- case 'password':
29
- this.display = this.model.replace(/./g, '*');
30
- break;
31
- default:
32
- console.error("Invalid type: '" + this.type + "'");
33
- break;
34
- }
7
+ this.model = input.required();
8
+ this.type = input('text');
9
+ this.format = input();
10
+ this.color = input('#333');
11
+ this.display = computed(() => {
12
+ switch (this.type()) {
13
+ case 'text':
14
+ return this.model();
15
+ case 'number':
16
+ return format(this.format() ?? '0.###', this.model());
17
+ case 'decimal':
18
+ return format(this.format() ?? '#.##0,###', this.model());
19
+ case 'date':
20
+ return this.model().longToString(this.format() ?? 'time');
21
+ case 'password':
22
+ return this.model().replace(/./g, '*');
23
+ default:
24
+ console.error("Invalid type: '" + this.type() + "'");
25
+ return '';
26
+ }
27
+ });
35
28
  }
36
29
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ValueComponent, isStandalone: true, selector: "aril-value", inputs: { model: "model", type: "type", format: "format", color: "color" }, usesOnChanges: true, ngImport: i0, template: "@if (model == undefined || model == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type == 'bool') {\n\t\t@if (!!model) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ValueComponent, isStandalone: true, selector: "aril-value", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (model() == undefined || model() == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type() == 'bool') {\n\t\t@if (!!model()) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display() == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display() }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38
31
  }
39
32
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ValueComponent, decorators: [{
40
33
  type: Component,
41
- args: [{ standalone: true, selector: 'aril-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (model == undefined || model == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type == 'bool') {\n\t\t@if (!!model) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n" }]
42
- }], propDecorators: { model: [{
43
- type: Input,
44
- args: [{ required: true }]
45
- }], type: [{
46
- type: Input
47
- }], format: [{
48
- type: Input
49
- }], color: [{
50
- type: Input
51
- }] } });
34
+ args: [{ standalone: true, selector: 'aril-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (model() == undefined || model() == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type() == 'bool') {\n\t\t@if (!!model()) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display() == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display() }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n" }]
35
+ }] });
52
36
 
53
37
  /**
54
38
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"aril-ui-value.mjs","sources":["../../projects/aril/ui/value/src/value.component.ts","../../projects/aril/ui/value/src/value.component.html","../../projects/aril/ui/value/aril-ui-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';\n\nimport 'aril/util/primitive-extensions';\n\n/* TODO : \n 1. InputSignal\n*/\n\n/* number-format.js */\ndeclare const format: Function;\n\ntype ValueTypes = 'text' | 'number' | 'bool' | 'decimal' | 'date' | 'password';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-value',\n\ttemplateUrl: './value.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ValueComponent implements OnChanges {\n\t@Input({ required: true }) model!: string | number | boolean | undefined;\n\t@Input() type: ValueTypes = 'text';\n\t@Input() format!: string;\n\t@Input() color: string = '#333';\n\n\tdisplay = '';\n\n\tngOnChanges(changes: any) {\n\t\tswitch (this.type) {\n\t\t\tcase 'text':\n\t\t\t\tthis.display = this.model as string;\n\t\t\t\tbreak;\n\t\t\tcase 'number':\n\t\t\t\tthis.format = this.format || '0.###';\n\t\t\t\tthis.display = format(this.format, this.model);\n\t\t\t\tbreak;\n\t\t\tcase 'decimal':\n\t\t\t\tthis.format = this.format || '#.##0,###';\n\t\t\t\tthis.display = format(this.format, this.model);\n\t\t\t\tbreak;\n\t\t\tcase 'date':\n\t\t\t\tthis.format = this.format || 'time';\n\t\t\t\tthis.display = (<number>this.model).longToString(this.format) as string;\n\t\t\t\tbreak;\n\t\t\tcase 'password':\n\t\t\t\tthis.display = (<string>this.model).replace(/./g, '*');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tconsole.error(\"Invalid type: '\" + this.type + \"'\");\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","@if (model == undefined || model == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type == 'bool') {\n\t\t@if (!!model) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAmBa,cAAc,CAAA;AAN3B,IAAA,WAAA,GAAA;QAQU,IAAI,CAAA,IAAA,GAAe,MAAM,CAAC;QAE1B,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;QAEhC,IAAO,CAAA,OAAA,GAAG,EAAE,CAAC;AA2Bb,KAAA;AAzBA,IAAA,WAAW,CAAC,OAAY,EAAA;AACvB,QAAA,QAAQ,IAAI,CAAC,IAAI;AAChB,YAAA,KAAK,MAAM;AACV,gBAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAe,CAAC;gBACpC,MAAM;AACP,YAAA,KAAK,QAAQ;gBACZ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;AACrC,gBAAA,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC/C,MAAM;AACP,YAAA,KAAK,SAAS;gBACb,IAAI,CAAC,MAAM,GAAG,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E,IAAI,EAAE,CAAA;gBAChB,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;;;AEvBP;;AAEG;;;;"}
1
+ {"version":3,"file":"aril-ui-value.mjs","sources":["../../projects/aril/ui/value/src/value.component.ts","../../projects/aril/ui/value/src/value.component.html","../../projects/aril/ui/value/aril-ui-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\nimport 'aril/util/primitive-extensions';\n\n/* number-format.js */\ndeclare const format: Function;\n\ntype ValueTypes = 'text' | 'number' | 'bool' | 'decimal' | 'date' | 'password';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-value',\n\ttemplateUrl: './value.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ValueComponent {\n\tmodel = input.required<string | number | boolean | undefined>();\n\ttype = input<ValueTypes>('text');\n\tformat = input<string>();\n\tcolor = input<string>('#333');\n\n\tdisplay = computed(() => {\n\t\tswitch (this.type()) {\n\t\t\tcase 'text':\n\t\t\t\treturn this.model();\n\t\t\tcase 'number':\n\t\t\t\treturn format(this.format() ?? '0.###', this.model());\n\t\t\tcase 'decimal':\n\t\t\t\treturn format(this.format() ?? '#.##0,###', this.model());\n\t\t\tcase 'date':\n\t\t\t\treturn (<number>this.model()).longToString(this.format() ?? 'time');\n\t\t\tcase 'password':\n\t\t\t\treturn (<string>this.model()).replace(/./g, '*');\n\t\t\tdefault:\n\t\t\t\tconsole.error(\"Invalid type: '\" + this.type() + \"'\");\n\t\t\t\treturn '';\n\t\t}\n\t});\n}\n","@if (model() == undefined || model() == null) {\n\t<i class=\"pi pi-minus\" style=\"color: red\" pTooltip=\"No item to show\"></i>\n} @else {\n\t@if (type() == 'bool') {\n\t\t@if (!!model()) {\n\t\t\t<i class=\"pi pi-check\" style=\"color: green\"></i>\n\t\t} @else {\n\t\t\t<i class=\"pi pi-times\" style=\"color: crimson\"></i>\n\t\t}\n\t} @else {\n\t\t@if (display() == undefined) {\n\t\t\t<i class=\"pi pi-exclamation-circle\" style=\"color: red\" pTooltip=\"Invalid Data\"> </i>\n\t\t} @else {\n\t\t\t<span [style.color]=\"color\">\n\t\t\t\t{{ display() }}\n\t\t\t</span>\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,cAAc,CAAA;AAN3B,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAyC,CAAC;AAChE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,MAAM,CAAC,CAAC;QACjC,IAAM,CAAA,MAAA,GAAG,KAAK,EAAU,CAAC;AACzB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,MAAM,CAAC,CAAC;AAE9B,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACvB,YAAA,QAAQ,IAAI,CAAC,IAAI,EAAE;AAClB,gBAAA,KAAK,MAAM;AACV,oBAAA,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;AACrB,gBAAA,KAAK,QAAQ;AACZ,oBAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AACvD,gBAAA,KAAK,SAAS;AACb,oBAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,WAAW,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AAC3D,gBAAA,KAAK,MAAM;AACV,oBAAA,OAAgB,IAAI,CAAC,KAAK,EAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,CAAC;AACrE,gBAAA,KAAK,UAAU;oBACd,OAAgB,IAAI,CAAC,KAAK,EAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAClD,gBAAA;AACC,oBAAA,OAAO,CAAC,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;AACrD,oBAAA,OAAO,EAAE,CAAC;aACX;AACF,SAAC,CAAC,CAAC;AACH,KAAA;8GAvBY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,cAAc,ijBCf3B,mlBAmBA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDJa,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,YAAY,EAEL,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mlBAAA,EAAA,CAAA;;;AEbhD;;AAEG;;;;"}
@@ -1,3 +1,7 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component } from '@angular/core';
3
+ import { RouterOutlet } from '@angular/router';
4
+
1
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
6
  /* eslint-disable @typescript-eslint/no-explicit-any */
3
7
  /* eslint-disable @typescript-eslint/ban-types */
@@ -6,7 +10,22 @@
6
10
  /* eslint-disable @typescript-eslint/no-explicit-any */
7
11
  /* eslint-disable @typescript-eslint/no-namespace */
8
12
 
13
+ class ModuleRouterOutlet {
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ModuleRouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: ModuleRouterOutlet, isStandalone: true, selector: "ng-component", ngImport: i0, template: ` <router-outlet /> `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ModuleRouterOutlet, decorators: [{
18
+ type: Component,
19
+ args: [{
20
+ standalone: true,
21
+ template: ` <router-outlet /> `,
22
+ imports: [RouterOutlet]
23
+ }]
24
+ }] });
25
+
9
26
  /**
10
27
  * Generated bundle index. Do not edit.
11
28
  */
29
+
30
+ export { ModuleRouterOutlet };
12
31
  //# sourceMappingURL=aril-util-lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aril-util-lib.mjs","sources":["../../projects/aril/util/lib/src/types.ts","../../projects/aril/util/lib/src/interfaces.ts","../../projects/aril/util/lib/aril-util-lib.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-namespace */\n\nimport { InputSignal } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\n\nexport namespace Types {\n\ttype MarkComponentProps<Component> = {\n\t\t[Key in keyof Component]: Component[Key] extends Function ? never : Key;\n\t};\n\ttype KeyOfComponentProps<T> = MarkComponentProps<T>[keyof T];\n\ttype ComponentProps<T> = Pick<T, KeyOfComponentProps<T>>;\n\texport type NgChanges<Component, Props = ComponentProps<Component>> = {\n\t\t[Key in keyof Props]: {\n\t\t\tpreviousValue: Props[Key];\n\t\t\tcurrentValue: Props[Key];\n\t\t\tfirstChange: boolean;\n\t\t\tisFirstChange(): boolean;\n\t\t};\n\t};\n\n\texport type IsArray<T> = T extends (infer U)[] ? U : never;\n\n\texport type ControlsOf<T extends Record<string, any>> = {\n\t\t[K in keyof T]: T[K] extends Record<any, any> ?\n\t\t\tT[K] extends any[] ?\n\t\t\t\tFormControl<T[K] | null>\n\t\t\t:\tFormGroup<ControlsOf<T[K]>>\n\t\t:\tFormControl<T[K] | null>;\n\t};\n\n\ttype Enumerate<N extends number, Acc extends number[] = []> =\n\t\tAcc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;\n\n\texport type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;\n\n\texport type ComponentInputs<C> = {\n\t\t[K in keyof Pick<\n\t\t\tC,\n\t\t\t{\n\t\t\t\t[K in keyof C]: C[K] extends InputSignal<any> ? K : never;\n\t\t\t}[keyof C]\n\t\t>]: C[K] extends InputSignal<infer _, infer Write> ? Write : never;\n\t};\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-namespace */\n\nexport namespace Interfaces {\n\texport interface MapStringString {\n\t\t[key: string]: string;\n\t}\n\texport interface MapStringNumber {\n\t\t[key: string]: number;\n\t}\n\texport interface MapStringBoolean {\n\t\t[key: string]: boolean;\n\t}\n\texport interface MapStringObject<T> {\n\t\t[key: string]: T;\n\t}\n\texport interface MapStringAny {\n\t\t[key: string]: any;\n\t}\n\texport interface MapNumberString {\n\t\t[key: number]: string;\n\t}\n\texport interface MapNumberNumber {\n\t\t[key: number]: number;\n\t}\n\texport interface MapNumberBoolean {\n\t\t[key: number]: boolean;\n\t}\n\texport interface MapNumberObject<T> {\n\t\t[key: number]: T;\n\t}\n\texport interface MapNumberArray<T> {\n\t\t[key: number]: Array<T>;\n\t}\n\texport interface MapNumberAny {\n\t\t[key: number]: any;\n\t}\n\texport interface MapEnums {\n\t\t[key: number]: MapStringString;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;;ACHA;AACA;;ACDA;;AAEG"}
1
+ {"version":3,"file":"aril-util-lib.mjs","sources":["../../projects/aril/util/lib/src/types.ts","../../projects/aril/util/lib/src/interfaces.ts","../../projects/aril/util/lib/src/module-router.ts","../../projects/aril/util/lib/aril-util-lib.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-namespace */\n\nimport { InputSignal } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\n\nexport namespace Types {\n\ttype MarkComponentProps<Component> = {\n\t\t[Key in keyof Component]: Component[Key] extends Function ? never : Key;\n\t};\n\ttype KeyOfComponentProps<T> = MarkComponentProps<T>[keyof T];\n\ttype ComponentProps<T> = Pick<T, KeyOfComponentProps<T>>;\n\texport type NgChanges<Component, Props = ComponentProps<Component>> = {\n\t\t[Key in keyof Props]: {\n\t\t\tpreviousValue: Props[Key];\n\t\t\tcurrentValue: Props[Key];\n\t\t\tfirstChange: boolean;\n\t\t\tisFirstChange(): boolean;\n\t\t};\n\t};\n\n\texport type IsArray<T> = T extends (infer U)[] ? U : never;\n\n\texport type ControlsOf<T extends Record<string, any>> = {\n\t\t[K in keyof T]: T[K] extends Record<any, any> ?\n\t\t\tT[K] extends any[] ?\n\t\t\t\tFormControl<T[K] | null>\n\t\t\t:\tFormGroup<ControlsOf<T[K]>>\n\t\t:\tFormControl<T[K] | null>;\n\t};\n\n\ttype Enumerate<N extends number, Acc extends number[] = []> =\n\t\tAcc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;\n\n\texport type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;\n\n\texport type ComponentInputs<C> = {\n\t\t[K in keyof Pick<\n\t\t\tC,\n\t\t\t{\n\t\t\t\t[K in keyof C]: C[K] extends InputSignal<any> ? K : never;\n\t\t\t}[keyof C]\n\t\t>]: C[K] extends InputSignal<infer _, infer Write> ? Write : never;\n\t};\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-namespace */\n\nexport namespace Interfaces {\n\texport interface MapStringString {\n\t\t[key: string]: string;\n\t}\n\texport interface MapStringNumber {\n\t\t[key: string]: number;\n\t}\n\texport interface MapStringBoolean {\n\t\t[key: string]: boolean;\n\t}\n\texport interface MapStringObject<T> {\n\t\t[key: string]: T;\n\t}\n\texport interface MapStringAny {\n\t\t[key: string]: any;\n\t}\n\texport interface MapNumberString {\n\t\t[key: number]: string;\n\t}\n\texport interface MapNumberNumber {\n\t\t[key: number]: number;\n\t}\n\texport interface MapNumberBoolean {\n\t\t[key: number]: boolean;\n\t}\n\texport interface MapNumberObject<T> {\n\t\t[key: number]: T;\n\t}\n\texport interface MapNumberArray<T> {\n\t\t[key: number]: Array<T>;\n\t}\n\texport interface MapNumberAny {\n\t\t[key: number]: any;\n\t}\n\texport interface MapEnums {\n\t\t[key: number]: MapStringString;\n\t}\n}\n","import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\ttemplate: ` <router-outlet /> `,\r\n\timports: [RouterOutlet]\r\n})\r\nexport class ModuleRouterOutlet {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;;ACHA;AACA;;MCOa,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHpB,CAAqB,mBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACrB,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEV,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAqB,mBAAA,CAAA;oBAC/B,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -0,0 +1,5 @@
1
+ export * from './src/loader';
2
+ export * from './src/provideI18n';
3
+ export * from './src/provideScope';
4
+ export * from './src/file-url-token';
5
+ export * from './src/i18n.module';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const i18nRootFileUrl: InjectionToken<string>;
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@ngneat/transloco";
3
+ export declare class i18nModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<i18nModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<i18nModule, never, never, [typeof i1.TranslocoModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<i18nModule>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { Translation, TranslocoLoader } from '@ngneat/transloco';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TranslocoHttpLoader implements TranslocoLoader {
4
+ private http;
5
+ private folderUrl;
6
+ getTranslation(lang: string): import("rxjs").Observable<Translation>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslocoHttpLoader, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslocoHttpLoader>;
9
+ }
@@ -0,0 +1,2 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+ export declare const i18nProvider: () => EnvironmentProviders[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @param loader `(lang: string) => import(`./i18n/${lang}.json`)` to create a relative import to the correct dir
3
+ */
4
+ export declare function i18nLoaderFactory(loader: (lang: string) => Promise<any>): any;
5
+ export declare const providei18nScope: (scopeName: string, loader: (lang: string) => Promise<any>) => {
6
+ provide: import("@angular/core").InjectionToken<import("@ngneat/transloco").TranslocoScope>;
7
+ useValue: import("@ngneat/transloco").TranslocoScope;
8
+ multi: boolean;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aril",
3
- "version": "0.0.8",
3
+ "version": "0.0.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.1.0",
6
6
  "@angular/core": "^17.1.0",
@@ -36,6 +36,12 @@
36
36
  "esm": "./esm2022/http/aril-http.mjs",
37
37
  "default": "./fesm2022/aril-http.mjs"
38
38
  },
39
+ "./i18n": {
40
+ "types": "./i18n/index.d.ts",
41
+ "esm2022": "./esm2022/i18n/aril-i18n.mjs",
42
+ "esm": "./esm2022/i18n/aril-i18n.mjs",
43
+ "default": "./fesm2022/aril-i18n.mjs"
44
+ },
39
45
  "./ui": {
40
46
  "types": "./ui/index.d.ts",
41
47
  "esm2022": "./esm2022/ui/aril-ui.mjs",
@@ -138,18 +144,18 @@
138
144
  "esm": "./esm2022/ui/password/aril-ui-password.mjs",
139
145
  "default": "./fesm2022/aril-ui-password.mjs"
140
146
  },
141
- "./ui/selectBox": {
142
- "types": "./ui/selectBox/index.d.ts",
143
- "esm2022": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
144
- "esm": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
145
- "default": "./fesm2022/aril-ui-selectBox.mjs"
146
- },
147
147
  "./ui/radioButton": {
148
148
  "types": "./ui/radioButton/index.d.ts",
149
149
  "esm2022": "./esm2022/ui/radioButton/aril-ui-radioButton.mjs",
150
150
  "esm": "./esm2022/ui/radioButton/aril-ui-radioButton.mjs",
151
151
  "default": "./fesm2022/aril-ui-radioButton.mjs"
152
152
  },
153
+ "./ui/selectBox": {
154
+ "types": "./ui/selectBox/index.d.ts",
155
+ "esm2022": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
156
+ "esm": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
157
+ "default": "./fesm2022/aril-ui-selectBox.mjs"
158
+ },
153
159
  "./ui/switch": {
154
160
  "types": "./ui/switch/index.d.ts",
155
161
  "esm2022": "./esm2022/ui/switch/aril-ui-switch.mjs",
@@ -1,11 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  type Severity = 'primary' | 'success' | 'info' | 'warning' | 'danger';
3
3
  export declare class BadgeComponent {
4
- icon: string;
5
- value: string;
6
- severity: Severity;
7
- rounded: boolean;
4
+ icon: import("@angular/core").InputSignal<string | undefined, string | undefined>;
5
+ value: import("@angular/core").InputSignal<string | undefined, string | undefined>;
6
+ severity: import("@angular/core").InputSignal<Severity, Severity>;
7
+ rounded: import("@angular/core").InputSignal<boolean | undefined, boolean | undefined>;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "aril-badge", never, { "icon": { "alias": "icon"; "required": false; }; "value": { "alias": "value"; "required": false; }; "severity": { "alias": "severity"; "required": true; }; "rounded": { "alias": "rounded"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "aril-badge", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": true; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
10
  }
11
11
  export {};