@corp-products/ui-components 3.3.1 → 3.3.5
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/index.d.ts
CHANGED
|
@@ -261,11 +261,12 @@ declare class SelectButtonComponent extends BaseInputComponent {
|
|
|
261
261
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "stc-select-button", never, { "options": { "alias": "options"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
declare class SelectComponent extends BaseInputComponent {
|
|
264
|
+
declare class SelectComponent extends BaseInputComponent implements OnInit {
|
|
265
265
|
selectedItemTemplate: TemplateRef<unknown> | null;
|
|
266
266
|
optionTemplate: TemplateRef<unknown> | null;
|
|
267
267
|
options: unknown[];
|
|
268
268
|
optionLabel: string;
|
|
269
|
+
emptyMessage: string;
|
|
269
270
|
checkmark: boolean;
|
|
270
271
|
showClear: boolean;
|
|
271
272
|
editable: boolean;
|
|
@@ -277,11 +278,22 @@ declare class SelectComponent extends BaseInputComponent {
|
|
|
277
278
|
basicInput: boolean;
|
|
278
279
|
variant: 'in' | 'over' | 'on';
|
|
279
280
|
change: EventEmitter<any>;
|
|
281
|
+
isEditSearch: boolean;
|
|
280
282
|
defaultColor: string;
|
|
283
|
+
filteredOptions: i0.WritableSignal<unknown[]>;
|
|
284
|
+
ngOnInit(): void;
|
|
285
|
+
private translate;
|
|
286
|
+
addValue: EventEmitter<any>;
|
|
287
|
+
filterValue: i0.WritableSignal<string>;
|
|
281
288
|
constructor();
|
|
289
|
+
addNewItem(item: string): void;
|
|
290
|
+
onFilter(event: any): void;
|
|
282
291
|
onChange(e: SelectChangeEvent): void;
|
|
292
|
+
onFilterValueChange(value: string): void;
|
|
293
|
+
get addLabel(): string;
|
|
294
|
+
clearFilter(event: MouseEvent): void;
|
|
283
295
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
284
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "stc-select", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "size": { "alias": "size"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
296
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "stc-select", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "size": { "alias": "size"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "isEditSearch": { "alias": "isEditSearch"; "required": false; }; "defaultColor": { "alias": "defaultColor"; "required": false; }; }, { "change": "change"; "addValue": "addValue"; }, never, never, true, never>;
|
|
285
297
|
}
|
|
286
298
|
|
|
287
299
|
declare class SwitchComponent {
|
|
@@ -300,6 +312,8 @@ interface Dropdown<T = unknown> {
|
|
|
300
312
|
id?: string;
|
|
301
313
|
keyValue: T;
|
|
302
314
|
label: string;
|
|
315
|
+
labelAr?: string;
|
|
316
|
+
labelEn?: string;
|
|
303
317
|
icon?: string;
|
|
304
318
|
hidden?: boolean;
|
|
305
319
|
disabled?: boolean;
|
|
@@ -631,10 +645,7 @@ declare class DualCalendarComponent {
|
|
|
631
645
|
gregorianModel: NgbDateStruct;
|
|
632
646
|
hijriModel: NgbDateStruct;
|
|
633
647
|
currentLang: 'ar' | 'en';
|
|
634
|
-
|
|
635
|
-
name: string;
|
|
636
|
-
value: any;
|
|
637
|
-
}>;
|
|
648
|
+
gregorianUTC: EventEmitter<string>;
|
|
638
649
|
isCalendarOpen: boolean;
|
|
639
650
|
calendarContainer: ElementRef;
|
|
640
651
|
hijriCal: NgbCalendarIslamicUmalqura;
|
|
@@ -646,8 +657,24 @@ declare class DualCalendarComponent {
|
|
|
646
657
|
showCalender(isOpen: boolean): void;
|
|
647
658
|
formatHijri(h: NgbDate): string;
|
|
648
659
|
static ɵfac: i0.ɵɵFactoryDeclaration<DualCalendarComponent, never>;
|
|
649
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DualCalendarComponent, "app-dual-calendar", never, { "control": { "alias": "control"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
|
|
660
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DualCalendarComponent, "app-dual-calendar", never, { "control": { "alias": "control"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "gregorianUTC": "gregorianUTC"; }, never, never, true, never>;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare const WEEKDAYS: {
|
|
664
|
+
ar: string[];
|
|
665
|
+
en: string[];
|
|
666
|
+
};
|
|
667
|
+
declare const MONTHS_GREGORIAN: {
|
|
668
|
+
ar: string[];
|
|
669
|
+
en: string[];
|
|
670
|
+
};
|
|
671
|
+
declare const MONTHS_HIJRI: {
|
|
672
|
+
ar: string[];
|
|
673
|
+
en: string[];
|
|
674
|
+
};
|
|
675
|
+
declare function getGregorianMonthName(lang: 'ar' | 'en', month: number): string;
|
|
676
|
+
declare function getHijriMonthName(lang: 'ar' | 'en', month: number): string;
|
|
677
|
+
declare function getWeekdayName(lang: 'ar' | 'en', weekday: number): string;
|
|
678
|
+
|
|
679
|
+
export { AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, MONTHS_GREGORIAN, MONTHS_HIJRI, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe, WEEKDAYS, getGregorianMonthName, getHijriMonthName, getWeekdayName };
|
|
653
680
|
export type { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant, AppTabs, BreadCrumbExtraData, BreadCrumbPosition, BreadcrumbItem, ConfirmationDialogData, DateRangeInterface, Dropdown, DropdownMenuItem, DropdownTextColor, DynamicFormData, DynamicSidebarV2Actions, DynamicSidebarV2Config, InputContentType, InputType, InputsMap, InputsMapData, LabelValue, RoutedTab, SidebarActionConfig, SidebarActionV2Config, SidebarConfig, SidebarV2Actions, TemplateTab };
|