@sixbell-telco/sdk 0.20.0 → 0.20.1

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.
@@ -71,7 +71,7 @@ export declare class InputComponent implements ControlValueAccessor {
71
71
  */
72
72
  readonly: import("@angular/core").InputSignal<boolean>;
73
73
  focus: import("@angular/core").InputSignal<boolean>;
74
- onlyNumbers: import("@angular/core").InputSignal<boolean>;
74
+ justNumbers: import("@angular/core").InputSignal<boolean>;
75
75
  /**
76
76
  * Whether to use ghost (transparent) styling
77
77
  * @defaultValue false
@@ -175,6 +175,6 @@ export declare class InputComponent implements ControlValueAccessor {
175
175
  */
176
176
  private setupDebounce;
177
177
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
178
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
178
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "st-input", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
179
179
  }
180
180
  export {};
@@ -1 +1 @@
1
- export * from './src/only-numbers.directive';
1
+ export * from './src/just-numbers.directive';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class JustNumbersDirective {
3
+ justNumbers: import("@angular/core").InputSignal<boolean>;
4
+ constructor();
5
+ blockPaste(event: ClipboardEvent): boolean;
6
+ onKeyPress(event: KeyboardEvent): boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<JustNumbersDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<JustNumbersDirective, "[stJustNumbers]", never, { "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -167,7 +167,7 @@ class DualListComponent {
167
167
  this.target.set(items);
168
168
  }
169
169
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
170
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DualListComponent, isStandalone: true, selector: "st-dual-list", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { itemsAdded: "itemsAdded", searchQuery: "searchQuery", pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n@let heightVar = height();\n@let sizeVar = size();\n<div class=\"grid flex-1 grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"rounded-box border-neutral flex flex-col gap-6 border p-6\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [tyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"'sdk.dualList.searchPlaceHolder' | translate\"\n\t\t\t\t(enterPressed)=\"handleSearch($event)\"\n\t\t\t\t(valueDebounced)=\"handleSearch($event)\"\n\t\t\t>\n\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t<st-icon [icon]=\"searchIcon\"></st-icon>\n\t\t\t\t</st-input-content>\n\t\t\t</st-input>\n\t\t\t<st-table\n\t\t\t\tclass=\"h-full\"\n\t\t\t\t[pagination]=\"pagination()\"\n\t\t\t\t[totalItems]=\"totalItems()\"\n\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t(pageSizeChanged)=\"handlePageSizeChange($event)\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[maxSize]=\"4\"\n\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t<st-checkbox [value]=\"allToAdd()\" (valueUpdated)=\"handleSelectAll($event)\"></st-checkbox>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t\t<tr class=\"hover:bg-neutral\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (valueUpdated)=\"handleSelectSourceItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</st-table>\n\t\t</div>\n\t</div>\n\n\t<!-- Buttons -->\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronRightIcon\" (click)=\"handleAddItems()\" />\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronLeftIcon\" (click)=\"handleRemoveItems()\" />\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"rounded-box border-neutral flex flex-1 flex-col gap-6 border p-6\">\n\t\t@if (titleRightVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [tyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"'sdk.dualList.searchPlaceHolder' | translate\"\n\t\t\t\t(enterPressed)=\"handleTargetListSearch($event)\"\n\t\t\t\t(valueDebounced)=\"handleTargetListSearch($event)\"\n\t\t\t>\n\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t<st-icon [icon]=\"searchIcon\"></st-icon>\n\t\t\t\t</st-input-content>\n\t\t\t</st-input>\n\t\t\t@let added = searchTargetComputed();\n\t\t\t@if (added) {\n\t\t\t\t<st-table\n\t\t\t\t\t[data]=\"added\"\n\t\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t\t[showPagination]=\"false\"\n\t\t\t\t\t[totalItems]=\"added.length\"\n\t\t\t\t\tclass=\"h-full\"\n\t\t\t\t>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t\t<st-checkbox [value]=\"allToRemove()\" (valueUpdated)=\"handleSelectAllToRemove($event)\"></st-checkbox>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t\t<tr class=\"hover:bg-neutral\">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (valueUpdated)=\"handleSelectTargetItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tbody>\n\t\t\t\t</st-table>\n\t\t\t}\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "st-table", inputs: ["size", "height", "pinRows", "pinColumns", "zebra", "paginatorType", "data", "totalItems", "pagination", "maxSize", "showItemsPerPage", "showEntries", "showPagination", "showFooter"], outputs: ["pageChanged", "pageSizeChanged", "checkedItems"] }, { kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: InputContentComponent, selector: "st-input-content", inputs: ["alignment"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
170
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DualListComponent, isStandalone: true, selector: "st-dual-list", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { itemsAdded: "itemsAdded", searchQuery: "searchQuery", pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n@let heightVar = height();\n@let sizeVar = size();\n<div class=\"grid flex-1 grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"rounded-box border-neutral flex flex-col gap-6 border p-6\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [tyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"'sdk.dualList.searchPlaceHolder' | translate\"\n\t\t\t\t(enterPressed)=\"handleSearch($event)\"\n\t\t\t\t(valueDebounced)=\"handleSearch($event)\"\n\t\t\t>\n\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t<st-icon [icon]=\"searchIcon\"></st-icon>\n\t\t\t\t</st-input-content>\n\t\t\t</st-input>\n\t\t\t<st-table\n\t\t\t\tclass=\"h-full\"\n\t\t\t\t[pagination]=\"pagination()\"\n\t\t\t\t[totalItems]=\"totalItems()\"\n\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t(pageSizeChanged)=\"handlePageSizeChange($event)\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[maxSize]=\"4\"\n\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t<st-checkbox [value]=\"allToAdd()\" (valueUpdated)=\"handleSelectAll($event)\"></st-checkbox>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t\t<tr class=\"hover:bg-neutral\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (valueUpdated)=\"handleSelectSourceItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</st-table>\n\t\t</div>\n\t</div>\n\n\t<!-- Buttons -->\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronRightIcon\" (click)=\"handleAddItems()\" />\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronLeftIcon\" (click)=\"handleRemoveItems()\" />\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"rounded-box border-neutral flex flex-1 flex-col gap-6 border p-6\">\n\t\t@if (titleRightVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [tyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"'sdk.dualList.searchPlaceHolder' | translate\"\n\t\t\t\t(enterPressed)=\"handleTargetListSearch($event)\"\n\t\t\t\t(valueDebounced)=\"handleTargetListSearch($event)\"\n\t\t\t>\n\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t<st-icon [icon]=\"searchIcon\"></st-icon>\n\t\t\t\t</st-input-content>\n\t\t\t</st-input>\n\t\t\t@let added = searchTargetComputed();\n\t\t\t@if (added) {\n\t\t\t\t<st-table\n\t\t\t\t\t[data]=\"added\"\n\t\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t\t[showPagination]=\"false\"\n\t\t\t\t\t[totalItems]=\"added.length\"\n\t\t\t\t\tclass=\"h-full\"\n\t\t\t\t>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t\t<st-checkbox [value]=\"allToRemove()\" (valueUpdated)=\"handleSelectAllToRemove($event)\"></st-checkbox>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t\t<tr class=\"hover:bg-neutral\">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (valueUpdated)=\"handleSelectTargetItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tbody>\n\t\t\t\t</st-table>\n\t\t\t}\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "st-table", inputs: ["size", "height", "pinRows", "pinColumns", "zebra", "paginatorType", "data", "totalItems", "pagination", "maxSize", "showItemsPerPage", "showEntries", "showPagination", "showFooter"], outputs: ["pageChanged", "pageSizeChanged", "checkedItems"] }, { kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "valueUpdated", "disabledChange"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "justNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: InputContentComponent, selector: "st-input-content", inputs: ["alignment"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
171
171
  }
172
172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DualListComponent, decorators: [{
173
173
  type: Component,
@@ -691,7 +691,7 @@ class FileUploaderComponent {
691
691
  return this.componentClass();
692
692
  });
693
693
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: FileUploaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
694
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: FileUploaderComponent, isStandalone: true, selector: "st-file-uploader", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showExtensions: { classPropertyName: "showExtensions", publicName: "showExtensions", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUpdated: "fileUpdated", blurred: "blurred", disabled: "disabledChange", value: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["uploader"], descendants: true, isSignal: true }], ngImport: i0, template: "<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t(blur)=\"handleBlur()\"\n\t[disabled]=\"disabled()\"\n\t(valueChange)=\"handleChange()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" tyFontWeight=\"normal\">\n\t\t\t\t\t{{ 'sdk.fileUpload.fileUploader.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ formattedExtensions() }}</span>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n\n<input type=\"file\" #uploader hidden (change)=\"handleFileChange($event)\" (blur)=\"handleBlur()\" [accept]=\"accept()\" required />\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Default });
694
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: FileUploaderComponent, isStandalone: true, selector: "st-file-uploader", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showExtensions: { classPropertyName: "showExtensions", publicName: "showExtensions", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileUpdated: "fileUpdated", blurred: "blurred", disabled: "disabledChange", value: "valueChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => FileUploaderComponent), multi: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["uploader"], descendants: true, isSignal: true }], ngImport: i0, template: "<st-input\n\t[label]=\"label()\"\n\t[placeholder]=\"placeholder()\"\n\t[readonly]=\"true\"\n\t(click)=\"handleClick()\"\n\t[(value)]=\"filename\"\n\t[name]=\"name()\"\n\t[variant]=\"validationClass().variant\"\n\t[size]=\"validationClass().size\"\n\t(blur)=\"handleBlur()\"\n\t[disabled]=\"disabled()\"\n\t(valueChange)=\"handleChange()\"\n>\n\t<div class=\"flex justify-between\">\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t\t@if (extensions().length > 0 && showExtensions()) {\n\t\t\t<div class=\"mt-1\">\n\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" tyFontWeight=\"normal\">\n\t\t\t\t\t{{ 'sdk.fileUpload.fileUploader.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ formattedExtensions() }}</span>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t}\n\t</div>\n</st-input>\n\n<input type=\"file\" #uploader hidden (change)=\"handleFileChange($event)\" (blur)=\"handleBlur()\" [accept]=\"accept()\" required />\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "justNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Default });
695
695
  }
696
696
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: FileUploaderComponent, decorators: [{
697
697
  type: Component,
@@ -174,7 +174,7 @@ class ComboboxComponent {
174
174
  useExisting: ComboboxComponent,
175
175
  multi: true,
176
176
  },
177
- ], ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (valueDebounced)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
177
+ ], ngImport: i0, template: "<div class=\"flex flex-col gap-1\">\n\t@if (label()) {\n\t\t<label [for]=\"this.name()\" class=\"block\"\n\t\t\t><span typography [tyVariant]=\"'body'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ label() }}</span></label\n\t\t>\n\t}\n\t<ng-select\n\t\t#select\n\t\t[notFoundText]=\"'sdk.combobox.noResultsFound' | translate\"\n\t\t[loadingText]=\"'sdk.combobox.loading' | translate\"\n\t\t[searchable]=\"false\"\n\t\t[clearable]=\"false\"\n\t\t[(ngModel)]=\"value\"\n\t\t[bindLabel]=\"key()\"\n\t\t[disabled]=\"disabled()\"\n\t\t(change)=\"handleSelect()\"\n\t\t(blur)=\"handleBlur()\"\n\t\t[class]=\"validationClass\"\n\t>\n\t\t@if (emptyOptionText() && !search) {\n\t\t\t<ng-option value=\"\">\n\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ emptyOptionText() }}</span></ng-option\n\t\t\t>\n\t\t}\n\t\t@if (simpleOption()) {\n\t\t\t@for (option of options(); track option) {\n\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t</ng-option>\n\t\t\t}\n\t\t} @else {\n\t\t\t@if (isValidTrackAndKey) {\n\t\t\t\t@for (option of options(); track option[trackBy()]) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option[key()] }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t} @else {\n\t\t\t\t@for (option of options(); track option) {\n\t\t\t\t\t<ng-option [value]=\"option\">\n\t\t\t\t\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ option }}</span>\n\t\t\t\t\t</ng-option>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t<ng-template ng-header-tmp>\n\t\t\t<st-input placeholder=\"Buscar...\" (valueDebounced)=\"handleSearch($event)\" variant=\"secondary\" [ghost]=\"true\" />\n\t\t\t<!-- TODO: loader -->\n\t\t</ng-template>\n\t</ng-select>\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i1.NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "bindLabel", "bindValue", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "deselectOnClick", "keyDownFn"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i1.NgOptionComponent, selector: "ng-option", inputs: ["value", "disabled"] }, { kind: "directive", type: i1.NgHeaderTemplateDirective, selector: "[ng-header-tmp]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "justNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
178
178
  }
179
179
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ComboboxComponent, decorators: [{
180
180
  type: Component,
@@ -191,7 +191,7 @@ class DatepickerComponent {
191
191
  useExisting: DatepickerComponent,
192
192
  multi: true,
193
193
  },
194
- ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<st-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<st-icon class=\"text-secondary-content\" [icon]=\"iconArrowLeft\" color=\"inherit\">></st-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<st-icon class=\"text-secondary-content\" [icon]=\"iconArrowRight\" color=\"inherit\"></st-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "pipe", type: DatepickerFormatMonthPipe, name: "datepickerFormatMonth" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
194
+ ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<st-input (click)=\"toggleDatepicker()\" [(value)]=\"current\" [readonly]=\"true\" [label]=\"label()\" />\n<div class=\"datepicker-container\">\n\t<div [class]=\"isOpen ? 'calendar-wrapper active' : 'calendar-wrapper inactive'\">\n\t\t<div class=\"calendar-header\">\n\t\t\t<button (click)=\"changeMonth(true)\" class=\"btn-prev\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/left.svg\" /> -->\n\t\t\t\t<st-icon class=\"text-secondary-content\" [icon]=\"iconArrowLeft\" color=\"inherit\">></st-icon>\n\t\t\t</button>\n\t\t\t<h1>{{ monthAndYearLabel | datepickerFormatMonth: language() }}</h1>\n\t\t\t<button (click)=\"changeMonth(false)\" class=\"btn-next\">\n\t\t\t\t<!-- <img src=\"assets/icons/calendar/right.svg\" /> -->\n\t\t\t\t<st-icon class=\"text-secondary-content\" [icon]=\"iconArrowRight\" color=\"inherit\"></st-icon>\n\t\t\t</button>\n\t\t</div>\n\t\t<ol class=\"days\">\n\t\t\t@for (day of weekFromLanguage(); track day) {\n\t\t\t\t<li class=\"day-name\">{{ day | slice: 0 : 1 }}</li>\n\t\t\t}\n\n\t\t\t@for (day of daysOfMonth; track day.value) {\n\t\t\t\t<li\n\t\t\t\t\tclass=\"day\"\n\t\t\t\t\t(click)=\"handleSelectDay(day)\"\n\t\t\t\t\t[ngClass]=\"{ active: day.date === current(), disabled: day.disabled }\"\n\t\t\t\t\t[style.gridColumnStart]=\"$first ? day.indexWeek : 'auto'\"\n\t\t\t\t>\n\t\t\t\t\t<span>{{ day.value }}</span>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ol>\n\t</div>\n</div>\n", styles: [".datepicker-container{position:relative}.calendar-wrapper{padding:20px;border:solid 1px #eaeaea;background:#fff;box-shadow:0 4px 15px #0000001a;border-radius:15px;position:absolute;top:5px;left:0;z-index:9999;max-width:280px}.calendar-wrapper.active{display:block}.calendar-wrapper.inactive{display:none}.calendar-header{display:flex;width:100%;justify-content:space-between;align-items:center;align-content:center;padding:10px 0 0;margin-bottom:10px}.calendar-header h1{width:100%;font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#777675;text-align:center;font-family:Roboto,sans-serif}.calendar-header button{cursor:pointer;background-color:transparent;border:0;width:40px;display:flex;justify-content:center;align-items:center}.days{list-style:none;display:grid;grid-template-columns:repeat(7,34px);margin:0;padding:0;gap:0}.days .day-name{font-weight:700;margin-bottom:2px;padding:4px;text-align:center;font-style:normal;font-size:15px;color:#4dd6ed;margin-top:10px}.days .day{display:flex;justify-content:center;align-items:center;width:100%;height:34px;padding:.25rem;font-size:15px;cursor:pointer;color:#636363}.days .day:hover{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}.days .day.disabled{color:#ccc}.days .day.active{font-weight:600;background:#4dd6ed;border-radius:50%;color:#fff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "type", "name", "placeholder", "readonly", "focus", "justNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "enterPressed", "blurred", "valueDebounced"] }, { kind: "pipe", type: DatepickerFormatMonthPipe, name: "datepickerFormatMonth" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
195
195
  }
196
196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DatepickerComponent, decorators: [{
197
197
  type: Component,
@@ -5,7 +5,7 @@ import { toObservable, toSignal, takeUntilDestroyed } from '@angular/core/rxjs-i
5
5
  import * as i1 from '@angular/forms';
6
6
  import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
7
7
  import { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';
8
- import { OnlyNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';
8
+ import { JustNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';
9
9
  import { cn } from '@sixbell-telco/sdk/utils/cn';
10
10
  import { cva } from 'class-variance-authority';
11
11
  import { Subject, switchMap, startWith, skip, debounceTime, distinctUntilChanged } from 'rxjs';
@@ -111,7 +111,7 @@ class InputComponent {
111
111
  */
112
112
  readonly = input(false);
113
113
  focus = input(false);
114
- onlyNumbers = input(false);
114
+ justNumbers = input(false);
115
115
  /**
116
116
  * Whether to use ghost (transparent) styling
117
117
  * @defaultValue false
@@ -281,23 +281,23 @@ class InputComponent {
281
281
  });
282
282
  }
283
283
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
284
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, focus: { classPropertyName: "focus", publicName: "focus", isSignal: true, isRequired: false, transformFunction: null }, onlyNumbers: { classPropertyName: "onlyNumbers", publicName: "onlyNumbers", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", enterPressed: "enterPressed", blurred: "blurred", valueDebounced: "valueDebounced" }, providers: [
284
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: InputComponent, isStandalone: true, selector: "st-input", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, focus: { classPropertyName: "focus", publicName: "focus", isSignal: true, isRequired: false, transformFunction: null }, justNumbers: { classPropertyName: "justNumbers", publicName: "justNumbers", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, debounceTime: { classPropertyName: "debounceTime", publicName: "debounceTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange", enterPressed: "enterPressed", blurred: "blurred", valueDebounced: "valueDebounced" }, providers: [
285
285
  {
286
286
  provide: NG_VALUE_ACCESSOR,
287
287
  useExisting: InputComponent,
288
288
  multi: true,
289
289
  },
290
- ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[onlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstOnlynumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: OnlyNumbersDirective, selector: "[stOnlynumbers]", inputs: ["onlyNumbers"] }] });
290
+ ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: JustNumbersDirective, selector: "[stJustNumbers]", inputs: ["justNumbers"] }] });
291
291
  }
292
292
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: InputComponent, decorators: [{
293
293
  type: Component,
294
- args: [{ selector: 'st-input', imports: [FormsModule, AutofocusDirective, OnlyNumbersDirective], providers: [
294
+ args: [{ selector: 'st-input', imports: [FormsModule, AutofocusDirective, JustNumbersDirective], providers: [
295
295
  {
296
296
  provide: NG_VALUE_ACCESSOR,
297
297
  useExisting: InputComponent,
298
298
  multi: true,
299
299
  },
300
- ], template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[onlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstOnlynumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
300
+ ], template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
301
301
  }], ctorParameters: () => [] });
302
302
 
303
303
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { OnlyNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, startWith, Subject, switchMap } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'placeholder:placeholder-base-placeholder', 'leading-normal', 'grow'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, OnlyNumbersDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<InputVariantProps>('secondary');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input<boolean>(false);\n\n\tfocus = input<boolean>(false);\n\n\tonlyNumbers = input<boolean>(false);\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when Enter key is pressed\n\t */\n\tenterPressed = output<string>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter() {\n\t\tthis.enterPressed.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) => this.value$.pipe(skip(1), debounceTime(time), distinctUntilChanged())),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[onlyNumbers]=\"onlyNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstOnlynumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)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,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,6EAAE,oBAAoB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAUnD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;+BACC,UAAU,EAAA,OAAA,EACX,CAAC,WAAW,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EACrD,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,wqCAAA,EAAA;;;AE3FF;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-forms-input.mjs","sources":["../../../projects/sdk/components/forms/input/input-content/input-content.component.ts","../../../projects/sdk/components/forms/input/input-content/input-content.component.html","../../../projects/sdk/components/forms/input/src/input.component.ts","../../../projects/sdk/components/forms/input/src/input.component.html","../../../projects/sdk/components/forms/input/sixbell-telco-sdk-components-forms-input.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\ntype InputContentAligment = 'start' | 'end';\n\n@Component({\n\tselector: 'st-input-content',\n\timports: [CommonModule],\n\ttemplateUrl: './input-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputContentComponent {\n\talignment = input.required<InputContentAligment>();\n}\n","@let alignmentVar = alignment();\n\n<!-- <div [class]=\"aligmentVar === 'start' ? 'st-input-content-left' : 'st-input-content-right'\">\n\t<ng-content></ng-content>\n</div> -->\n<!-- input-content.component.html -->\n<div class=\"inline-flex items-center align-top\" [class.justify-start]=\"alignmentVar === 'start'\" [class.justify-end]=\"alignmentVar === 'end'\">\n\t<ng-content></ng-content>\n</div>\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, FormControl, FormGroup, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AutofocusDirective } from '@sixbell-telco/sdk/directives/auto-focus';\nimport { JustNumbersDirective } from '@sixbell-telco/sdk/directives/only-numbers';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, skip, startWith, Subject, switchMap } from 'rxjs';\n\n/**\n * @internal\n * Generates base input classes with style variants using class-variance-authority\n */\nconst inputComponent = cva(['font-body', 'w-full', 'input', 'placeholder:placeholder-base-placeholder', 'leading-normal', 'grow'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['input-primary'],\n\t\t\tsecondary: ['input-secondary'],\n\t\t\ttertiary: ['input-tertiary'],\n\t\t\taccent: ['input-accent'],\n\t\t\tinfo: ['input-info'],\n\t\t\tsuccess: ['input-success'],\n\t\t\twarning: ['input-warning'],\n\t\t\terror: ['input-error'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['input-xs'],\n\t\t\tsm: ['input-sm'],\n\t\t\tmd: ['input-md'],\n\t\t\tlg: ['input-lg'],\n\t\t\txl: ['input-xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible input style variants */\nexport type InputVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible input size variants */\nexport type InputSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Configuration object for input styling */\nexport type InputProps = {\n\tvariant?: InputVariantProps;\n\tsize?: InputSizeProps;\n};\n\n/** Native HTML input types supported by the component */\ntype HTMLNativeInputType = 'text' | 'email' | 'number' | 'password' | 'file';\n\n/**\n * A customizable input component with validation, debouncing, and styling variants\n *\n * @remarks\n * Implements ControlValueAccessor for seamless integration with Angular forms.\n * Supports both template-driven and reactive forms, with automatic validation styling.\n *\n * @example\n * ```html\n * <!-- Basic usage -->\n * <st-input label=\"Username\" [(value)]=\"username\"></st-input>\n * ```\n *\n * @example\n * ```html\n * <!-- With validation and custom styling -->\n * <st-input\n * variant=\"secondary\"\n * size=\"lg\"\n * label=\"Email\"\n * type=\"email\"\n * [parentForm]=\"userForm\"\n * formControlName=\"email\"\n * ></st-input>\n * ```\n */\n@Component({\n\tselector: 'st-input',\n\timports: [FormsModule, AutofocusDirective, JustNumbersDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: InputComponent,\n\t\t\tmulti: true,\n\t\t},\n\t],\n\ttemplateUrl: './input.component.html',\n})\nexport class InputComponent implements ControlValueAccessor {\n\t/**\n\t * Input style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<InputVariantProps>('secondary');\n\n\t/**\n\t * Input size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<InputSizeProps>('md');\n\n\t/**\n\t * Label text displayed above the input\n\t */\n\tlabel = input<string>('');\n\n\t/**\n\t * HTML input type\n\t * @defaultValue 'text'\n\t */\n\ttype = input<HTMLNativeInputType>('text');\n\n\t/**\n\t * HTML name attribute for the input\n\t */\n\tname = input<string | null>(null);\n\n\t/**\n\t * Input placeholder text\n\t */\n\tplaceholder = input<string>('');\n\n\t/**\n\t * Whether the input is read-only\n\t * @defaultValue false\n\t */\n\treadonly = input<boolean>(false);\n\n\tfocus = input<boolean>(false);\n\n\tjustNumbers = input<boolean>(false);\n\n\t/**\n\t * Whether to use ghost (transparent) styling\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Two-way bindable input value\n\t */\n\tvalue = model<string>('');\n\n\t/**\n\t * Parent form group for reactive forms\n\t */\n\tparentForm = input<FormGroup | null>(null);\n\n\t/**\n\t * Form control name for reactive forms\n\t */\n\tformControlName = input<string>('');\n\n\t// ControlValueAccessor implementation\n\tprivate onControlChange: any = () => {};\n\tprivate onControlTouch: any = () => {};\n\n\t/**\n\t * Whether the input is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = model<boolean>(false);\n\n\t/**\n\t * Event emitted when Enter key is pressed\n\t */\n\tenterPressed = output<string>();\n\n\t/**\n\t * Event emitted when input loses focus\n\t */\n\tblurred = output<string>();\n\n\t/**\n\t * Event emitted with debounced value changes\n\t */\n\tvalueDebounced = output<string>();\n\n\t/**\n\t * Debounce time in milliseconds for value changes\n\t * @defaultValue 500\n\t */\n\tdebounceTime = input(500);\n\n\t// Internal implementation details\n\tprivate blurTrigger = signal(0);\n\tprivate debounceAction$ = new Subject<number>();\n\tprivate debounceTimeEffect = effect(() => {\n\t\tthis.debounceAction$.next(this.debounceTime());\n\t});\n\tprivate value$ = toObservable(this.value);\n\n\tconstructor() {\n\t\tthis.setupDebounce();\n\t}\n\n\t/**\n\t * @internal\n\t * Computed base input classes\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed error state classes\n\t */\n\terrorClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'error',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed success state classes\n\t */\n\tsuccessClass = computed(() => {\n\t\treturn cn(\n\t\t\tinputComponent({\n\t\t\t\tvariant: 'success',\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'input-ghost': this.ghost(),\n\t\t\t},\n\t\t);\n\t});\n\n\t// ControlValueAccessor implementation methods\n\twriteValue(obj: any): void {\n\t\tthis.value.set(obj);\n\t}\n\n\tregisterOnChange(fn: any): void {\n\t\tthis.onControlChange = fn;\n\t}\n\n\tregisterOnTouched(fn: any): void {\n\t\tthis.onControlTouch = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.disabled.set(isDisabled);\n\t}\n\n\t/**\n\t * @internal\n\t * Handles input value changes\n\t */\n\thandleChange() {\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles Enter key press\n\t */\n\thandleEnter() {\n\t\tthis.enterPressed.emit(this.value());\n\t\tthis.onControlChange(this.value());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles blur event\n\t */\n\thandleBlur() {\n\t\tthis.blurred.emit(this.value());\n\t\tthis.onControlTouch();\n\t\tthis.blurTrigger.update((v) => v + 1);\n\t}\n\n\t/** @internal */\n\tprivate formControl = computed(() => this.parentForm()?.get(this.formControlName()) as FormControl | null);\n\t/** @internal */\n\tprivate formControl$ = toObservable(this.formControl);\n\t/** @internal */\n\tprivate statusChanges$ = this.formControl$.pipe(switchMap((control) => control?.statusChanges.pipe(startWith(control.status)) || []));\n\t/** @internal */\n\tprivate stateChanges$ = this.formControl$.pipe(switchMap((control) => control?.valueChanges.pipe(startWith(control.value)) || []));\n\t/** @internal */\n\tprivate statusSignal = toSignal(this.statusChanges$);\n\t/** @internal */\n\tprivate stateSignal = toSignal(this.stateChanges$);\n\n\t/**\n\t * @internal\n\t * Reactive validation class computation\n\t */\n\tvalidationClass = computed(() => {\n\t\tconst control = this.formControl();\n\t\tconst trigger = this.blurTrigger();\n\n\t\tif (!control) return this.componentClass();\n\n\t\tconst isTouched = control.touched || trigger > 0;\n\t\tthis.statusSignal();\n\t\tthis.stateSignal();\n\n\t\tif (control.dirty || isTouched) {\n\t\t\tif (control.invalid) return this.errorClass();\n\t\t\tif (control.valid) return this.successClass();\n\t\t}\n\n\t\treturn this.componentClass();\n\t});\n\n\t/**\n\t * @internal\n\t * Sets up debounced value changes\n\t */\n\tprivate setupDebounce() {\n\t\tthis.debounceAction$\n\t\t\t.pipe(\n\t\t\t\tswitchMap((time: number) => this.value$.pipe(skip(1), debounceTime(time), distinctUntilChanged())),\n\t\t\t\ttakeUntilDestroyed(),\n\t\t\t)\n\t\t\t.subscribe((value) => {\n\t\t\t\tthis.valueDebounced.emit(`${value}`);\n\t\t\t});\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend pt-0\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAWa,qBAAqB,CAAA;AACjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAwB;uGADtC,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXlC,sZASA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDFW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WACnB,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sZAAA,EAAA;;;AEThD;AAUA;;;AAGG;AACH,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,0CAA0C,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE;AAClI,IAAA,QAAQ,EAAE;AACT,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EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,6EAAE,oBAAoB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAUnD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;+BACC,UAAU,EAAA,OAAA,EACX,CAAC,WAAW,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EACrD,SAAA,EAAA;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAgB,cAAA;AAC3B,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA,EAAA,QAAA,EAAA,wqCAAA,EAAA;;;AE3FF;;AAEG;;;;"}
@@ -1,25 +1,25 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, HostListener, Directive } from '@angular/core';
3
3
 
4
- class OnlyNumbersDirective {
5
- onlyNumbers = input(false);
4
+ class JustNumbersDirective {
5
+ justNumbers = input(false);
6
6
  constructor() { }
7
7
  blockPaste(event) {
8
- if (!this.onlyNumbers())
8
+ if (!this.justNumbers())
9
9
  return true;
10
- const onlyNumbersReg = new RegExp('^[0-9]+$');
10
+ const justNumbersReg = new RegExp('^[0-9]+$');
11
11
  const clipboardData = event.clipboardData;
12
12
  if (!clipboardData)
13
13
  return true;
14
14
  const pastedValue = clipboardData.getData('Text');
15
- if (!onlyNumbersReg.test(pastedValue)) {
15
+ if (!justNumbersReg.test(pastedValue)) {
16
16
  event.preventDefault();
17
17
  return false;
18
18
  }
19
19
  return true;
20
20
  }
21
21
  onKeyPress(event) {
22
- if (!this.onlyNumbers())
22
+ if (!this.justNumbers())
23
23
  return true;
24
24
  const key = event.key;
25
25
  if (!/^[0-9]$/.test(key)) {
@@ -28,13 +28,13 @@ class OnlyNumbersDirective {
28
28
  }
29
29
  return true;
30
30
  }
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnlyNumbersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.0", type: OnlyNumbersDirective, isStandalone: true, selector: "[stOnlynumbers]", inputs: { onlyNumbers: { classPropertyName: "onlyNumbers", publicName: "onlyNumbers", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "paste": "blockPaste($event)", "keypress": "onKeyPress($event)" } }, ngImport: i0 });
31
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: JustNumbersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.0", type: JustNumbersDirective, isStandalone: true, selector: "[stJustNumbers]", inputs: { justNumbers: { classPropertyName: "justNumbers", publicName: "justNumbers", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "paste": "blockPaste($event)", "keypress": "onKeyPress($event)" } }, ngImport: i0 });
33
33
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: OnlyNumbersDirective, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: JustNumbersDirective, decorators: [{
35
35
  type: Directive,
36
36
  args: [{
37
- selector: '[stOnlynumbers]',
37
+ selector: '[stJustNumbers]',
38
38
  }]
39
39
  }], ctorParameters: () => [], propDecorators: { blockPaste: [{
40
40
  type: HostListener,
@@ -48,5 +48,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
48
48
  * Generated bundle index. Do not edit.
49
49
  */
50
50
 
51
- export { OnlyNumbersDirective };
51
+ export { JustNumbersDirective };
52
52
  //# sourceMappingURL=sixbell-telco-sdk-directives-only-numbers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-directives-only-numbers.mjs","sources":["../../../projects/sdk/directives/only-numbers/src/only-numbers.directive.ts","../../../projects/sdk/directives/only-numbers/sixbell-telco-sdk-directives-only-numbers.ts"],"sourcesContent":["import { Directive, HostListener, input } from '@angular/core';\n\n@Directive({\n\tselector: '[stOnlynumbers]',\n})\nexport class OnlyNumbersDirective {\n\tonlyNumbers = input<boolean>(false);\n\n\tconstructor() {}\n\n\t@HostListener('paste', ['$event'])\n\tblockPaste(event: ClipboardEvent) {\n\t\tif (!this.onlyNumbers()) return true;\n\n\t\tconst onlyNumbersReg = new RegExp('^[0-9]+$');\n\t\tconst clipboardData = event.clipboardData;\n\t\tif (!clipboardData) return true;\n\n\t\tconst pastedValue = clipboardData.getData('Text');\n\t\tif (!onlyNumbersReg.test(pastedValue)) {\n\t\t\tevent.preventDefault();\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t@HostListener('keypress', ['$event'])\n\tonKeyPress(event: KeyboardEvent) {\n\t\tif (!this.onlyNumbers()) return true;\n\n\t\tconst key = event.key;\n\t\tif (!/^[0-9]$/.test(key)) {\n\t\t\tevent.preventDefault();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;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A,SAAA,EAAA,EAAA,OAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,iBAAA;wDAOA,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;gBAkBjC,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;;;AC3BrC;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-directives-only-numbers.mjs","sources":["../../../projects/sdk/directives/only-numbers/src/just-numbers.directive.ts","../../../projects/sdk/directives/only-numbers/sixbell-telco-sdk-directives-only-numbers.ts"],"sourcesContent":["import { Directive, HostListener, input } from '@angular/core';\n\n@Directive({\n\tselector: '[stJustNumbers]',\n})\nexport class JustNumbersDirective {\n\tjustNumbers = input<boolean>(false);\n\n\tconstructor() {}\n\n\t@HostListener('paste', ['$event'])\n\tblockPaste(event: ClipboardEvent) {\n\t\tif (!this.justNumbers()) return true;\n\n\t\tconst justNumbersReg = new RegExp('^[0-9]+$');\n\t\tconst clipboardData = event.clipboardData;\n\t\tif (!clipboardData) return true;\n\n\t\tconst pastedValue = clipboardData.getData('Text');\n\t\tif (!justNumbersReg.test(pastedValue)) {\n\t\t\tevent.preventDefault();\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t@HostListener('keypress', ['$event'])\n\tonKeyPress(event: KeyboardEvent) {\n\t\tif (!this.justNumbers()) return true;\n\n\t\tconst key = event.key;\n\t\tif (!/^[0-9]$/.test(key)) {\n\t\t\tevent.preventDefault();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-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,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,iBAAA;wDAOA,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;gBAkBjC,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,UAAU,EAAE,CAAC,QAAQ,CAAC;;;AC3BrC;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixbell-telco/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
5
5
  "keywords": [
6
6
  "sixbell",
@@ -31,6 +31,14 @@
31
31
  "types": "./components/accordion/index.d.ts",
32
32
  "default": "./fesm2022/sixbell-telco-sdk-components-accordion.mjs"
33
33
  },
34
+ "./components/avatar": {
35
+ "types": "./components/avatar/index.d.ts",
36
+ "default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
37
+ },
38
+ "./components/audio-player": {
39
+ "types": "./components/audio-player/index.d.ts",
40
+ "default": "./fesm2022/sixbell-telco-sdk-components-audio-player.mjs"
41
+ },
34
42
  "./components/badge": {
35
43
  "types": "./components/badge/index.d.ts",
36
44
  "default": "./fesm2022/sixbell-telco-sdk-components-badge.mjs"
@@ -43,14 +51,6 @@
43
51
  "types": "./components/card/index.d.ts",
44
52
  "default": "./fesm2022/sixbell-telco-sdk-components-card.mjs"
45
53
  },
46
- "./components/avatar": {
47
- "types": "./components/avatar/index.d.ts",
48
- "default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
49
- },
50
- "./components/audio-player": {
51
- "types": "./components/audio-player/index.d.ts",
52
- "default": "./fesm2022/sixbell-telco-sdk-components-audio-player.mjs"
53
- },
54
54
  "./components/countdown": {
55
55
  "types": "./components/countdown/index.d.ts",
56
56
  "default": "./fesm2022/sixbell-telco-sdk-components-countdown.mjs"
@@ -63,17 +63,17 @@
63
63
  "types": "./components/dual-list/index.d.ts",
64
64
  "default": "./fesm2022/sixbell-telco-sdk-components-dual-list.mjs"
65
65
  },
66
- "./components/link": {
67
- "types": "./components/link/index.d.ts",
68
- "default": "./fesm2022/sixbell-telco-sdk-components-link.mjs"
66
+ "./components/file-upload": {
67
+ "types": "./components/file-upload/index.d.ts",
68
+ "default": "./fesm2022/sixbell-telco-sdk-components-file-upload.mjs"
69
69
  },
70
70
  "./components/icon": {
71
71
  "types": "./components/icon/index.d.ts",
72
72
  "default": "./fesm2022/sixbell-telco-sdk-components-icon.mjs"
73
73
  },
74
- "./components/file-upload": {
75
- "types": "./components/file-upload/index.d.ts",
76
- "default": "./fesm2022/sixbell-telco-sdk-components-file-upload.mjs"
74
+ "./components/link": {
75
+ "types": "./components/link/index.d.ts",
76
+ "default": "./fesm2022/sixbell-telco-sdk-components-link.mjs"
77
77
  },
78
78
  "./components/modal": {
79
79
  "types": "./components/modal/index.d.ts",
@@ -83,6 +83,10 @@
83
83
  "types": "./components/notification/index.d.ts",
84
84
  "default": "./fesm2022/sixbell-telco-sdk-components-notification.mjs"
85
85
  },
86
+ "./components/paginator": {
87
+ "types": "./components/paginator/index.d.ts",
88
+ "default": "./fesm2022/sixbell-telco-sdk-components-paginator.mjs"
89
+ },
86
90
  "./components/product-card": {
87
91
  "types": "./components/product-card/index.d.ts",
88
92
  "default": "./fesm2022/sixbell-telco-sdk-components-product-card.mjs"
@@ -91,10 +95,6 @@
91
95
  "types": "./components/progress/index.d.ts",
92
96
  "default": "./fesm2022/sixbell-telco-sdk-components-progress.mjs"
93
97
  },
94
- "./components/paginator": {
95
- "types": "./components/paginator/index.d.ts",
96
- "default": "./fesm2022/sixbell-telco-sdk-components-paginator.mjs"
97
- },
98
98
  "./components/tab": {
99
99
  "types": "./components/tab/index.d.ts",
100
100
  "default": "./fesm2022/sixbell-telco-sdk-components-tab.mjs"
@@ -103,38 +103,38 @@
103
103
  "types": "./components/table/index.d.ts",
104
104
  "default": "./fesm2022/sixbell-telco-sdk-components-table.mjs"
105
105
  },
106
- "./directives/auto-focus": {
107
- "types": "./directives/auto-focus/index.d.ts",
108
- "default": "./fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs"
109
- },
110
106
  "./components/toast": {
111
107
  "types": "./components/toast/index.d.ts",
112
108
  "default": "./fesm2022/sixbell-telco-sdk-components-toast.mjs"
113
109
  },
114
- "./directives/click-outside": {
115
- "types": "./directives/click-outside/index.d.ts",
116
- "default": "./fesm2022/sixbell-telco-sdk-directives-click-outside.mjs"
117
- },
118
- "./directives/typography": {
119
- "types": "./directives/typography/index.d.ts",
120
- "default": "./fesm2022/sixbell-telco-sdk-directives-typography.mjs"
121
- },
122
110
  "./components/tooltip": {
123
111
  "types": "./components/tooltip/index.d.ts",
124
112
  "default": "./fesm2022/sixbell-telco-sdk-components-tooltip.mjs"
125
113
  },
114
+ "./directives/auto-focus": {
115
+ "types": "./directives/auto-focus/index.d.ts",
116
+ "default": "./fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs"
117
+ },
126
118
  "./components/wizard": {
127
119
  "types": "./components/wizard/index.d.ts",
128
120
  "default": "./fesm2022/sixbell-telco-sdk-components-wizard.mjs"
129
121
  },
130
- "./utils/cn": {
131
- "types": "./utils/cn/index.d.ts",
132
- "default": "./fesm2022/sixbell-telco-sdk-utils-cn.mjs"
122
+ "./directives/click-outside": {
123
+ "types": "./directives/click-outside/index.d.ts",
124
+ "default": "./fesm2022/sixbell-telco-sdk-directives-click-outside.mjs"
133
125
  },
134
126
  "./directives/only-numbers": {
135
127
  "types": "./directives/only-numbers/index.d.ts",
136
128
  "default": "./fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs"
137
129
  },
130
+ "./directives/typography": {
131
+ "types": "./directives/typography/index.d.ts",
132
+ "default": "./fesm2022/sixbell-telco-sdk-directives-typography.mjs"
133
+ },
134
+ "./utils/cn": {
135
+ "types": "./utils/cn/index.d.ts",
136
+ "default": "./fesm2022/sixbell-telco-sdk-utils-cn.mjs"
137
+ },
138
138
  "./components/forms/checkbox": {
139
139
  "types": "./components/forms/checkbox/index.d.ts",
140
140
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs"
@@ -151,13 +151,21 @@
151
151
  "types": "./components/forms/form-error/index.d.ts",
152
152
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs"
153
153
  },
154
+ "./components/forms/radio": {
155
+ "types": "./components/forms/radio/index.d.ts",
156
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
157
+ },
154
158
  "./components/forms/input": {
155
159
  "types": "./components/forms/input/index.d.ts",
156
160
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-input.mjs"
157
161
  },
158
- "./components/forms/radio": {
159
- "types": "./components/forms/radio/index.d.ts",
160
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
162
+ "./components/forms/select": {
163
+ "types": "./components/forms/select/index.d.ts",
164
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-select.mjs"
165
+ },
166
+ "./components/forms/switch": {
167
+ "types": "./components/forms/switch/index.d.ts",
168
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-switch.mjs"
161
169
  },
162
170
  "./components/forms/range": {
163
171
  "types": "./components/forms/range/index.d.ts",
@@ -167,37 +175,41 @@
167
175
  "types": "./components/forms/toggle/index.d.ts",
168
176
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs"
169
177
  },
170
- "./components/forms/select": {
171
- "types": "./components/forms/select/index.d.ts",
172
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-select.mjs"
173
- },
174
- "./components/forms/switch": {
175
- "types": "./components/forms/switch/index.d.ts",
176
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-switch.mjs"
178
+ "./components/icon/ionicons": {
179
+ "types": "./components/icon/ionicons/index.d.ts",
180
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs"
177
181
  },
178
182
  "./components/forms/textarea": {
179
183
  "types": "./components/forms/textarea/index.d.ts",
180
184
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs"
181
185
  },
182
- "./components/icon/ionicons": {
183
- "types": "./components/icon/ionicons/index.d.ts",
184
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs"
186
+ "./utils/generators/uuid": {
187
+ "types": "./utils/generators/uuid/index.d.ts",
188
+ "default": "./fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs"
185
189
  },
186
190
  "./utils/pipes/extract-extension": {
187
191
  "types": "./utils/pipes/extract-extension/index.d.ts",
188
192
  "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs"
189
193
  },
190
- "./utils/generators/uuid": {
191
- "types": "./utils/generators/uuid/index.d.ts",
192
- "default": "./fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs"
194
+ "./utils/pipes/time": {
195
+ "types": "./utils/pipes/time/index.d.ts",
196
+ "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs"
193
197
  },
194
198
  "./utils/pipes/to-bytes-extesion": {
195
199
  "types": "./utils/pipes/to-bytes-extesion/index.d.ts",
196
200
  "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs"
197
201
  },
198
- "./utils/pipes/time": {
199
- "types": "./utils/pipes/time/index.d.ts",
200
- "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs"
202
+ "./components/icon/heroicons/mini": {
203
+ "types": "./components/icon/heroicons/mini/index.d.ts",
204
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs"
205
+ },
206
+ "./components/icon/heroicons/outline": {
207
+ "types": "./components/icon/heroicons/outline/index.d.ts",
208
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs"
209
+ },
210
+ "./components/icon/heroicons/solid": {
211
+ "types": "./components/icon/heroicons/solid/index.d.ts",
212
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs"
201
213
  },
202
214
  "./components/icon/material/baseline": {
203
215
  "types": "./components/icon/material/baseline/index.d.ts",
@@ -214,18 +226,6 @@
214
226
  "./components/icon/material/sharp": {
215
227
  "types": "./components/icon/material/sharp/index.d.ts",
216
228
  "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs"
217
- },
218
- "./components/icon/heroicons/solid": {
219
- "types": "./components/icon/heroicons/solid/index.d.ts",
220
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs"
221
- },
222
- "./components/icon/heroicons/mini": {
223
- "types": "./components/icon/heroicons/mini/index.d.ts",
224
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs"
225
- },
226
- "./components/icon/heroicons/outline": {
227
- "types": "./components/icon/heroicons/outline/index.d.ts",
228
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs"
229
229
  }
230
230
  },
231
231
  "peerDependencies": {
Binary file
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class OnlyNumbersDirective {
3
- onlyNumbers: import("@angular/core").InputSignal<boolean>;
4
- constructor();
5
- blockPaste(event: ClipboardEvent): boolean;
6
- onKeyPress(event: KeyboardEvent): boolean;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumbersDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlynumbers]", never, { "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
- }