@brickclay-org/ui 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/brickclay-org-ui.mjs +29 -13
- package/fesm2022/brickclay-org-ui.mjs.map +1 -1
- package/index.d.ts +10 -6
- package/package.json +1 -1
- package/src/lib/input/input.css +5 -5
package/index.d.ts
CHANGED
|
@@ -704,6 +704,7 @@ type BkInputType = 'text' | 'email' | 'password' | 'number' | 'url' | 'tel';
|
|
|
704
704
|
type BkInputAutoComplete = 'on' | 'off' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'email' | 'username' | 'new-password' | 'current-password' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension' | 'impp' | 'url' | 'photo';
|
|
705
705
|
type BkInputAutoCapitalize = 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
706
706
|
type BkInputMode = 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
707
|
+
type IconOrientation = 'left' | 'right';
|
|
707
708
|
interface CountryOption {
|
|
708
709
|
code: string;
|
|
709
710
|
name: string;
|
|
@@ -723,22 +724,23 @@ declare class BkInput implements OnInit, OnDestroy, ControlValueAccessor {
|
|
|
723
724
|
type: BkInputType;
|
|
724
725
|
value: string;
|
|
725
726
|
hasError: boolean;
|
|
727
|
+
showErrorIcon: boolean;
|
|
726
728
|
errorMessage: string;
|
|
727
729
|
disabled: boolean;
|
|
728
730
|
tabIndex: number | null;
|
|
729
731
|
readOnly: boolean;
|
|
730
732
|
autoCapitalize: BkInputAutoComplete | null;
|
|
731
733
|
inputMode: BkInputMode | null;
|
|
732
|
-
icon: boolean;
|
|
733
734
|
iconSrc?: string;
|
|
734
735
|
iconAlt: string;
|
|
736
|
+
showIcon: boolean;
|
|
735
737
|
phone: boolean;
|
|
736
738
|
countryCode: string;
|
|
737
739
|
countryOptions: CountryOption[];
|
|
738
740
|
selectedCountry: CountryOption;
|
|
739
|
-
|
|
740
|
-
searchRight: boolean;
|
|
741
|
+
iconOrientation: IconOrientation;
|
|
741
742
|
password: boolean;
|
|
743
|
+
showPassword: boolean;
|
|
742
744
|
pattern?: string | null;
|
|
743
745
|
max: number | null;
|
|
744
746
|
min: number | null;
|
|
@@ -751,11 +753,11 @@ declare class BkInput implements OnInit, OnDestroy, ControlValueAccessor {
|
|
|
751
753
|
isFocused: boolean;
|
|
752
754
|
inputValue: string;
|
|
753
755
|
isDropdownOpen: boolean;
|
|
754
|
-
showPassword: boolean;
|
|
755
756
|
input: EventEmitter<Event>;
|
|
756
757
|
change: EventEmitter<Event>;
|
|
757
758
|
focus: EventEmitter<Event>;
|
|
758
759
|
blur: EventEmitter<Event>;
|
|
760
|
+
clicked: EventEmitter<boolean>;
|
|
759
761
|
get placeHolderText(): string;
|
|
760
762
|
get maskValue(): string;
|
|
761
763
|
get maskPrefixValue(): string;
|
|
@@ -772,15 +774,17 @@ declare class BkInput implements OnInit, OnDestroy, ControlValueAccessor {
|
|
|
772
774
|
handleFocus(event: Event): void;
|
|
773
775
|
handleBlur(event: Event): void;
|
|
774
776
|
handleInput(event: Event): void;
|
|
777
|
+
handleClicked(): void;
|
|
775
778
|
handleChange(event: Event): void;
|
|
776
779
|
toggleDropdown(event?: Event): void;
|
|
777
780
|
selectCountry(country: CountryOption): void;
|
|
778
781
|
togglePasswordVisibility(event: Event): void;
|
|
782
|
+
handleIconClick(event: Event): void;
|
|
779
783
|
get isFilled(): boolean;
|
|
780
784
|
get inputState(): 'default' | 'focused' | 'filled' | 'error' | 'disabled';
|
|
781
785
|
get currentInputType(): string;
|
|
782
786
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkInput, never>;
|
|
783
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BkInput, "bk-input", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "
|
|
787
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkInput, "bk-input", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "showErrorIcon": { "alias": "showErrorIcon"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "autoCapitalize": { "alias": "autoCapitalize"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "iconSrc": { "alias": "iconSrc"; "required": false; }; "iconAlt": { "alias": "iconAlt"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "phone": { "alias": "phone"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "countryOptions": { "alias": "countryOptions"; "required": false; }; "iconOrientation": { "alias": "iconOrientation"; "required": false; }; "password": { "alias": "password"; "required": false; }; "showPassword": { "alias": "showPassword"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; }, { "input": "input"; "change": "change"; "focus": "focus"; "blur": "blur"; "clicked": "clicked"; }, never, never, true, never>;
|
|
784
788
|
}
|
|
785
789
|
|
|
786
790
|
declare class BkChips implements ControlValueAccessor, AfterViewInit {
|
|
@@ -830,4 +834,4 @@ declare class BkChips implements ControlValueAccessor, AfterViewInit {
|
|
|
830
834
|
}
|
|
831
835
|
|
|
832
836
|
export { BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkChips, BkCustomCalendar, BkGrid, BkIconButton, BkInput, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTextarea, BkTimePicker, BkToggle, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule };
|
|
833
|
-
export type { BadgeColor, BadgeSize, BadgeVariant, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CalendarSelection, CountryOption, GroupItem, GroupMode, IconButtonSize, IconButtonVariant, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TableAction, TableColumn, TimeConfiguration };
|
|
837
|
+
export type { BadgeColor, BadgeSize, BadgeVariant, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CalendarSelection, CountryOption, GroupItem, GroupMode, IconButtonSize, IconButtonVariant, IconOrientation, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TableAction, TableColumn, TimeConfiguration };
|
package/package.json
CHANGED
package/src/lib/input/input.css
CHANGED
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
@apply pl-[72px];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
/*
|
|
68
|
-
.input-field--
|
|
67
|
+
/* Icon Left - Add padding-left for icon space */
|
|
68
|
+
.input-field--icon-left {
|
|
69
69
|
@apply pl-[48px];
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
/*
|
|
73
|
-
.input-field--
|
|
72
|
+
/* Icon Right - Add padding-right for icon space */
|
|
73
|
+
.input-field--icon-right {
|
|
74
74
|
@apply pr-[48px];
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
|
|
158
158
|
/* Search Icon - Absolute Positioned Inside Input */
|
|
159
159
|
.input-search-icon {
|
|
160
|
-
@apply absolute top-1/2 -translate-y-1/2 w-5 h-5
|
|
160
|
+
@apply absolute top-1/2 -translate-y-1/2 w-5 h-5;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* Search Icon Left */
|