aril 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aril-0.0.9.tgz +0 -0
- package/esm2022/http/src/serviceBase.mjs +2 -2
- package/esm2022/i18n/aril-i18n.mjs +5 -0
- package/esm2022/i18n/index.mjs +6 -0
- package/esm2022/i18n/src/file-url-token.mjs +3 -0
- package/esm2022/i18n/src/i18n.module.mjs +17 -0
- package/esm2022/i18n/src/loader.mjs +20 -0
- package/esm2022/i18n/src/provideI18n.mjs +16 -0
- package/esm2022/i18n/src/provideScope.mjs +18 -0
- package/esm2022/ui/button/src/button.component.mjs +3 -3
- package/esm2022/ui/calendar/src/calendar.component.mjs +4 -4
- package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +4 -4
- package/esm2022/ui/form/src/form-submit-button.component.mjs +22 -27
- package/esm2022/ui/form/src/form.component.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +4 -4
- package/esm2022/ui/number/src/number.component.mjs +4 -4
- package/esm2022/ui/password/src/password.component.mjs +4 -4
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +4 -4
- package/esm2022/ui/selectBox/src/select-box.component.mjs +4 -4
- package/esm2022/ui/switch/src/switch.component.mjs +4 -4
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +4 -4
- package/esm2022/ui/text/src/text.component.mjs +4 -4
- package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
- package/esm2022/util/lib/index.mjs +2 -1
- package/esm2022/util/lib/src/module-router.mjs +16 -0
- package/fesm2022/aril-http.mjs +1 -1
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +72 -0
- package/fesm2022/aril-i18n.mjs.map +1 -0
- package/fesm2022/aril-ui-button.mjs +2 -2
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +3 -3
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +5 -5
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +3 -3
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +21 -27
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +3 -3
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +3 -3
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +3 -3
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +3 -3
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +3 -3
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +3 -3
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +3 -3
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +3 -3
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +3 -3
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs +19 -0
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/i18n/index.d.ts +5 -0
- package/i18n/src/file-url-token.d.ts +2 -0
- package/i18n/src/i18n.module.d.ts +7 -0
- package/i18n/src/loader.d.ts +9 -0
- package/i18n/src/provideI18n.d.ts +2 -0
- package/i18n/src/provideScope.d.ts +9 -0
- package/package.json +19 -13
- package/ui/button/src/button.component.d.ts +1 -1
- package/ui/form/src/form-submit-button.component.d.ts +5 -5
- package/util/lib/index.d.ts +1 -0
- package/util/lib/src/module-router.d.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-switch.mjs","sources":["../../projects/aril/ui/switch/src/switch.component.ts","../../projects/aril/ui/switch/src/switch.component.html","../../projects/aril/ui/switch/aril-ui-switch.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"aril-ui-switch.mjs","sources":["../../projects/aril/ui/switch/src/switch.component.ts","../../projects/aril/ui/switch/src/switch.component.html","../../projects/aril/ui/switch/aril-ui-switch.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'primeng/tooltip';\nimport { InputSwitchModule } from 'primeng/inputswitch';\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-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]',\n\ttemplateUrl: './switch.component.html',\n\timports: [ReactiveFormsModule, InputSwitchModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class SwitchComponent extends BaseInputComponent {\n\t@Input() tabindex!: number;\n}\n","<p-inputSwitch\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</p-inputSwitch>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;AAEE;AASI,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;8GAA1C,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CA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G,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,8EAA8E,EAE/E,OAAA,EAAA,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACvE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,6SAAA,EAAA,CAAA;8BAG/B,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AEpBP;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i3 from 'devextreme-angular/ui/tag-box';
|
|
@@ -41,11 +41,11 @@ class TagBoxComponent extends BaseInputComponent {
|
|
|
41
41
|
e.text = '';
|
|
42
42
|
}
|
|
43
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TagBoxComponent, isStandalone: true, selector: "aril-tag-box", inputs: { placeholder: "placeholder", maxDisplayedTags: "maxDisplayedTags", tabindex: "tabindex", acceptCustomValue: "acceptCustomValue", items: "items" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-tag-box\n\t[items]=\"items\"\n\t[showSelectionControls]=\"!acceptCustomValue\"\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\n\t[placeholder]=\"placeholder\"\n\t[multiline]=\"false\"\n\t[tabIndex]=\"tabindex\"\n\t[acceptCustomValue]=\"acceptCustomValue\"\n\t[searchEnabled]=\"true\"\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\n\t[showMultiTagOnly]=\"false\"\n\t[showClearButton]=\"true\"\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-tag-box>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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: DxTagBoxModule }, { kind: "component", type: i3.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }]
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: TagBoxComponent, isStandalone: true, selector: "aril-tag-box", inputs: { placeholder: "placeholder", maxDisplayedTags: "maxDisplayedTags", tabindex: "tabindex", acceptCustomValue: "acceptCustomValue", items: "items" }, providers: [InputErrorMessagePipe], usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<dx-tag-box\n\t[items]=\"items\"\n\t[showSelectionControls]=\"!acceptCustomValue\"\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\n\t[placeholder]=\"placeholder\"\n\t[multiline]=\"false\"\n\t[tabIndex]=\"tabindex\"\n\t[acceptCustomValue]=\"acceptCustomValue\"\n\t[searchEnabled]=\"true\"\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\n\t[showMultiTagOnly]=\"false\"\n\t[showClearButton]=\"true\"\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-tag-box>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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: DxTagBoxModule }, { kind: "component", type: i3.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "pipe", type: DXInputErrorMessagePipe, name: "dxInputErrorMessage" }] }); }
|
|
45
45
|
}
|
|
46
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TagBoxComponent, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
|
-
args: [{ standalone: true, selector: 'aril-tag-box', imports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
48
|
+
args: [{ standalone: true, selector: 'aril-tag-box', imports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe], providers: [InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<dx-tag-box\n\t[items]=\"items\"\n\t[showSelectionControls]=\"!acceptCustomValue\"\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\n\t[placeholder]=\"placeholder\"\n\t[multiline]=\"false\"\n\t[tabIndex]=\"tabindex\"\n\t[acceptCustomValue]=\"acceptCustomValue\"\n\t[searchEnabled]=\"true\"\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\n\t[showMultiTagOnly]=\"false\"\n\t[showClearButton]=\"true\"\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-tag-box>\n" }]
|
|
49
49
|
}], propDecorators: { placeholder: [{
|
|
50
50
|
type: Input
|
|
51
51
|
}], maxDisplayedTags: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport {
|
|
1
|
+
{"version":3,"file":"aril-ui-tagBox.mjs","sources":["../../projects/aril/ui/tagBox/src/tag-box.component.ts","../../projects/aril/ui/tagBox/src/tag-box.component.html","../../projects/aril/ui/tagBox/aril-ui-tagBox.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n\r\nimport { Component, Input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';\r\n\r\nimport {\r\n\tBaseInputComponent,\r\n\tDXInputErrorMessagePipe,\r\n\tInputErrorMessagePipe,\r\n\tValueAccessorDirective\r\n} from 'aril/ui/lib';\r\n\r\n/* TODO : \r\n 1. InputSignal\r\n*/\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-tag-box',\r\n\ttemplateUrl: './tag-box.component.html',\r\n\timports: [ReactiveFormsModule, DxTagBoxModule, DXInputErrorMessagePipe],\r\n\tproviders: [InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class TagBoxComponent extends BaseInputComponent {\r\n\t@Input() placeholder!: string;\r\n\t@Input() maxDisplayedTags = 5;\r\n\t@Input() tabindex!: number;\r\n\t@Input() acceptCustomValue = true;\r\n\t@Input({ required: true }) items: Array<string | number> = [];\r\n\r\n\tonCustomItemCreating(e: any) {\r\n\t\tlet newValues = [];\r\n\r\n\t\tconst items = e.component.option('items');\r\n\t\tconst selectedItems = e.component.option('selectedItems');\r\n\r\n\t\tif (e.text.indexOf(',') != -1) newValues = e.text.replace(/ /g, '').split(',');\r\n\t\telse if (e.text.indexOf('|') != -1) newValues = e.text.replace(/ /g, '').split('|');\r\n\t\telse if (e.text.indexOf(' ') != -1) newValues = e.text.split(' ');\r\n\t\telse newValues.push(e.text);\r\n\r\n\t\tnewValues.forEach((value: string) => {\r\n\t\t\tif (selectedItems.indexOf(value) == -1) {\r\n\t\t\t\tselectedItems.push(value);\r\n\t\t\t\titems.unshift(value);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\te.component.option('items', items);\r\n\t\te.component.option('value', selectedItems);\r\n\t\te.text = '';\r\n\t}\r\n}\r\n","<dx-tag-box\n\t[items]=\"items\"\n\t[showSelectionControls]=\"!acceptCustomValue\"\n\t[applyValueMode]=\"acceptCustomValue ? 'instantly' : 'useButtons'\"\n\t[placeholder]=\"placeholder\"\n\t[multiline]=\"false\"\n\t[tabIndex]=\"tabindex\"\n\t[acceptCustomValue]=\"acceptCustomValue\"\n\t[searchEnabled]=\"true\"\n\t[maxDisplayedTags]=\"maxDisplayedTags\"\n\t[showMultiTagOnly]=\"false\"\n\t[showClearButton]=\"true\"\n\t(onCustomItemCreating)=\"onCustomItemCreating($event)\"\n\t[isValid]=\"ngControl?.control?.valid || ngControl?.control?.pristine || false\"\n\t[validationError]=\"ngControl?.control?.errors | dxInputErrorMessage: ngControl?.control\"\n\tvalidationMessagePosition=\"top\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</dx-tag-box>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAcA;;AAEE;AASI,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;AARvD,IAAA,WAAA,GAAA;;QAUU,IAAgB,CAAA,gBAAA,GAAG,CAAC,CAAC;QAErB,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAC;QACP,IAAK,CAAA,KAAA,GAA2B,EAAE,CAAC;AAwB9D,KAAA;AAtBA,IAAA,oBAAoB,CAAC,CAAM,EAAA;QAC1B,IAAI,SAAS,GAAG,EAAE,CAAC;QAEnB,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,aAAa,GAAG,CAAC,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 -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Input } 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';
|
|
@@ -34,11 +34,11 @@ class TextComponent extends BaseInputComponent {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
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"] }]
|
|
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"] }] }); }
|
|
38
38
|
}
|
|
39
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextComponent, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
|
-
args: [{ standalone: true, selector: 'aril-text[ngModel], aril-text[formControl], aril-text[formControlName]', imports: [ReactiveFormsModule, InputTextModule, TooltipModule, InputErrorMessagePipe, NgTemplateOutlet], hostDirectives: [ValueAccessorDirective],
|
|
41
|
+
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 ?? '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
42
|
}], propDecorators: { placeholder: [{
|
|
43
43
|
type: Input
|
|
44
44
|
}], tabindex: [{
|
|
@@ -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 {
|
|
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, 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})\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;AASI,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AAPrD,IAAA,WAAA,GAAA;;QAQU,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;AACC,gBAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;gBACpB,MAAM;SACP;KACD;8GAjBW,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,EAGL,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wEAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,QAAA,EAAA,UAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,aAAa,CACK,EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,gBAAgB,8HCnCvD,qqBAqBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDOW,mBAAmB,EAAA,EAAA,EA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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,qqBAAA,EAAA,CAAA;8BAG/B,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBAC+B,IAAI,EAAA,CAAA;sBAAxC,KAAK;uBAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAA;gBACuB,YAAY,EAAA,CAAA;sBAArE,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAA;gBAC3C,IAAI,EAAA,CAAA;sBAAhB,KAAK;;;AEpCP;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Input } 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';
|
|
@@ -18,11 +18,11 @@ class TextAreaComponent extends BaseInputComponent {
|
|
|
18
18
|
this.placeholder = '';
|
|
19
19
|
}
|
|
20
20
|
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" }]
|
|
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" }] }); }
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
24
24
|
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],
|
|
25
|
+
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)\"></textarea>\n" }]
|
|
26
26
|
}], propDecorators: { rows: [{
|
|
27
27
|
type: Input
|
|
28
28
|
}], cols: [{
|
|
@@ -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]
|
|
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})\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;AASI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;QAWU,IAAW,CAAA,WAAA,GAAG,EAAE,CAAC;AAC1B,KAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,C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AAA,IAAI,EACN,QAAA,EAAA,uFAAuF,EAExF,OAAA,EAAA,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACzE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,mZAAA,EAAA,CAAA;8BAG/B,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;;;AEvBP;;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;;
|
|
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;;;;"}
|
package/i18n/index.d.ts
ADDED
|
@@ -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,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.
|
|
3
|
+
"version": "0.0.9",
|
|
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",
|
|
@@ -174,18 +180,18 @@
|
|
|
174
180
|
"esm": "./esm2022/ui/text/aril-ui-text.mjs",
|
|
175
181
|
"default": "./fesm2022/aril-ui-text.mjs"
|
|
176
182
|
},
|
|
177
|
-
"./ui/textArea": {
|
|
178
|
-
"types": "./ui/textArea/index.d.ts",
|
|
179
|
-
"esm2022": "./esm2022/ui/textArea/aril-ui-textArea.mjs",
|
|
180
|
-
"esm": "./esm2022/ui/textArea/aril-ui-textArea.mjs",
|
|
181
|
-
"default": "./fesm2022/aril-ui-textArea.mjs"
|
|
182
|
-
},
|
|
183
183
|
"./ui/tree": {
|
|
184
184
|
"types": "./ui/tree/index.d.ts",
|
|
185
185
|
"esm2022": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
186
186
|
"esm": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
187
187
|
"default": "./fesm2022/aril-ui-tree.mjs"
|
|
188
188
|
},
|
|
189
|
+
"./ui/textArea": {
|
|
190
|
+
"types": "./ui/textArea/index.d.ts",
|
|
191
|
+
"esm2022": "./esm2022/ui/textArea/aril-ui-textArea.mjs",
|
|
192
|
+
"esm": "./esm2022/ui/textArea/aril-ui-textArea.mjs",
|
|
193
|
+
"default": "./fesm2022/aril-ui-textArea.mjs"
|
|
194
|
+
},
|
|
189
195
|
"./ui/treeTable": {
|
|
190
196
|
"types": "./ui/treeTable/index.d.ts",
|
|
191
197
|
"esm2022": "./esm2022/ui/treeTable/aril-ui-treeTable.mjs",
|
|
@@ -15,7 +15,7 @@ export declare class ButtonComponent implements OnInit {
|
|
|
15
15
|
size: Size;
|
|
16
16
|
icon: PrimeIcon;
|
|
17
17
|
color: Colors;
|
|
18
|
-
clickEvent: EventEmitter<
|
|
18
|
+
clickEvent: EventEmitter<never>;
|
|
19
19
|
styleClass: string;
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { MessageService } from 'primeng/api';
|
|
3
4
|
import { ButtonComponent } from 'aril/ui/button';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class FormSubmitButtonComponent extends ButtonComponent {
|
|
6
|
-
formGroup: FormGroup
|
|
7
|
+
formGroup: import("@angular/core").InputSignal<FormGroup<any>, FormGroup<any>>;
|
|
8
|
+
validEvent: EventEmitter<never>;
|
|
7
9
|
inValidEvent: EventEmitter<never>;
|
|
10
|
+
messageService: MessageService;
|
|
8
11
|
submit(): void;
|
|
9
|
-
markAsDirty(controls: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitButtonComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmitButtonComponent, "aril-form-submit", never, { "formGroup": { "alias": "formGroup"; "required": true; }; }, { "inValidEvent": "inValidEvent"; }, never, never, false, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmitButtonComponent, "aril-form-submit:not([click])", never, { "formGroup": { "alias": "formGroup"; "required": true; "isSignal": true; }; }, { "validEvent": "validEvent"; "inValidEvent": "inValidEvent"; }, never, never, false, never>;
|
|
14
14
|
}
|
package/util/lib/index.d.ts
CHANGED