@smartsoft001/angular 2.115.0 → 2.117.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/angular",
3
- "version": "2.115.0",
3
+ "version": "2.117.0",
4
4
  "sideEffects": false,
5
5
  "module": "fesm2022/smartsoft001-angular.mjs",
6
6
  "typings": "types/smartsoft001-angular.d.ts",
@@ -26,6 +26,13 @@ import * as i1$1 from '@angular/common';
26
26
  import * as i7 from '@angular/common/http';
27
27
  import * as i8 from 'ng-lazyload-image';
28
28
 
29
+ interface ColorVariantClasses {
30
+ primary: string[];
31
+ secondary: string[];
32
+ soft: string[];
33
+ }
34
+ declare const COMPONENT_COLORS: Record<string, ColorVariantClasses>;
35
+
29
36
  /**
30
37
  * Forward declaration for InputBaseComponent to break circular dependency.
31
38
  * This is a placeholder type that will be properly typed when imported from components.
@@ -219,13 +226,19 @@ interface IMenuItem {
219
226
  text: string;
220
227
  }>;
221
228
  }
229
+ type SmartVariant = 'primary' | 'secondary' | 'soft';
230
+ type SmartSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
231
+ type SmartColor = 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
222
232
  interface IButtonOptions {
223
233
  type?: 'submit' | 'button';
224
- expand?: 'block' | 'full' | undefined;
225
234
  confirm?: boolean;
226
- color?: 'primary' | 'light' | string;
227
235
  click: () => void;
228
236
  loading?: Signal<boolean>;
237
+ variant?: SmartVariant;
238
+ size?: SmartSize;
239
+ color?: SmartColor;
240
+ rounded?: boolean;
241
+ circular?: boolean;
229
242
  }
230
243
  interface IDetailOptions<T> {
231
244
  key: string;
@@ -791,31 +804,47 @@ declare abstract class ButtonBaseComponent {
791
804
  mode: WritableSignal<'default' | 'confirm'>;
792
805
  options: InputSignal<IButtonOptions>;
793
806
  disabled: InputSignal<boolean>;
807
+ cssClass: InputSignal<string>;
794
808
  contentTpl: i0.Signal<ViewContainerRef | undefined>;
809
+ variantClasses: i0.Signal<string[]>;
795
810
  invoke(): void;
796
811
  confirmInvoke(): void;
797
812
  confirmCancel(): void;
798
813
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBaseComponent, never>;
799
- static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBaseComponent, never, never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
814
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonBaseComponent, never, never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
800
815
  }
801
816
 
802
817
  declare const ButtonComponent_base: new () => _smartsoft001_angular.IDynamicComponent<ButtonBaseComponent>;
803
818
  declare class ButtonComponent extends ButtonComponent_base {
804
819
  options: i0.InputSignal<IButtonOptions>;
805
820
  disabled: i0.InputSignal<boolean>;
821
+ cssClass: i0.InputSignal<string>;
806
822
  contentTpl: i0.Signal<ViewContainerRef | undefined>;
807
823
  dynamicContents: i0.Signal<readonly DynamicContentDirective[]>;
808
824
  constructor();
809
825
  refreshProperties(): void;
810
826
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
811
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "smart-button", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
827
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "smart-button", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "cssClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
812
828
  }
813
829
 
814
830
  declare class ButtonStandardComponent extends ButtonBaseComponent {
831
+ buttonClasses: i0.Signal<string>;
815
832
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonStandardComponent, never>;
816
833
  static ɵcmp: i0.ɵɵComponentDeclaration<ButtonStandardComponent, "smart-button-standard", never, {}, {}, never, ["*"], true, never>;
817
834
  }
818
835
 
836
+ declare class ButtonRoundedComponent extends ButtonBaseComponent {
837
+ buttonClasses: i0.Signal<string>;
838
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonRoundedComponent, never>;
839
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonRoundedComponent, "smart-button-rounded", never, {}, {}, never, ["*"], true, never>;
840
+ }
841
+
842
+ declare class ButtonCircularComponent extends ButtonBaseComponent {
843
+ buttonClasses: i0.Signal<string>;
844
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonCircularComponent, never>;
845
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonCircularComponent, "smart-button-circular", never, {}, {}, never, ["*"], true, never>;
846
+ }
847
+
819
848
  declare abstract class InputBaseComponent<T> extends BaseComponent {
820
849
  protected cd: ChangeDetectorRef;
821
850
  internalOptions: InputOptions<T>;
@@ -1471,6 +1500,14 @@ declare class InfoModalComponent {
1471
1500
  static ɵcmp: i0.ɵɵComponentDeclaration<InfoModalComponent, "smart-info-modal", never, {}, {}, never, never, true, never>;
1472
1501
  }
1473
1502
 
1503
+ type IconName = 'spinner';
1504
+ declare class IconComponent {
1505
+ name: i0.InputSignal<"spinner">;
1506
+ cssClass: i0.InputSignal<string>;
1507
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
1508
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "smart-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1509
+ }
1510
+
1474
1511
  declare abstract class ListBaseComponent<T extends IEntity<string>> {
1475
1512
  static smartType: DynamicComponentType;
1476
1513
  private _fields;
@@ -1834,5 +1871,5 @@ declare function fastPropGetter(paths: string[]): (x: any) => any;
1834
1871
  declare const SmartNgModule: typeof SmartNgModuleDecorator;
1835
1872
  declare function SmartNgModuleDecorator(options: NgModule): (constructor: any) => any;
1836
1873
 
1837
- export { AUTH_TOKEN, AccordionBodyComponent, AccordionComponent, AccordionHeaderComponent, AlertService, AppBaseComponent, AppService, AuthService, BaseComponent, ButtonBaseComponent, ButtonComponent, ButtonStandardComponent, CalendarService, CardComponent, CreateDynamicComponent, DYNAMIC_COMPONENTS_STORE, DateEditComponent, DateRangeComponent, DateRangeModalComponent, DetailAddressComponent, DetailArrayComponent, DetailAttachmentComponent, DetailBaseComponent, DetailColorComponent, DetailComponent, DetailDateRangeComponent, DetailEmailComponent, DetailEnumComponent, DetailFlagComponent, DetailImageComponent, DetailLogoComponent, DetailObjectComponent, DetailPdfComponent, DetailPhoneNumberPlComponent, DetailTextComponent, DetailVideoComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EnumToListPipe, ErrorService, ExportComponent, FILE_SERVICE_CONFIG, FileService, FileUrlPipe, FilterBtnConstants, FormBaseComponent, FormComponent, FormFactory, FormStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, ImportComponent, InfoComponent, InfoModalComponent, InputAddressComponent, InputArrayComponent, InputAttachmentComponent, InputBaseComponent, InputCheckComponent, InputColorComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputDateWithEditComponent, InputEmailComponent, InputEnumComponent, InputErrorComponent, InputFileComponent, InputFlagComponent, InputFloatComponent, InputImageComponent, InputIntComponent, InputIntsComponent, InputLogoComponent, InputLongTextComponent, InputNipComponent, InputObjectComponent, InputPasswordComponent, InputPdfComponent, InputPeselComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputRadioComponent, InputStringsComponent, InputTextComponent, InputVideoComponent, ListBaseComponent, ListCellPipe, ListComponent, ListDesktopComponent, ListHeaderPipe, ListMasonryGridComponent, ListMobileComponent, ListMode, LoaderComponent, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MenuService, ModalService, ModelLabelPipe, NgrxSharedModule, NgrxStoreService, PIPES, PageBaseComponent, PageComponent, PageStandardComponent, PaginationMode, PagingComponent, PasswordStrengthComponent, PopoverService, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SearchbarComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StorageService, StyleService, ToastService, TrustHtmlPipe, UIService, fastPropGetter };
1838
- export type { AppEndButton, CalendarState, DynamicComponentType, IAlertButton, IAlertOptions, IAppOptions, IAppProvider, IButtonOptions, ICardOptions, ICellPipe, IDetailOptions, IDetailsComponentFactories, IDetailsOptions, IDetailsProvider, IDynamicComponent, IDynamicComponentData, IFileServiceConfig, IFormOptions, IFormProvider, IIconButtonOptions, IInputFromFieldOptions, IInputOptions, IItemOptionsForCustom, IItemOptionsForPage, IListComponentFactories, IListInternalOptions, IListOptions, IListPaginationOptions, IListProvider, IMenuItem, IModal, IModalOptions, IModelLabelOptions, IModelPossibilitiesOptions, IModelValidators, IModelValidatorsOptions, IPageOptions, IRemoveProvider, IStyle, IToastButton, IToastOptions, InputBaseComponentType, InputOptions, ItemOptions, StyleType, month };
1874
+ export { AUTH_TOKEN, AccordionBodyComponent, AccordionComponent, AccordionHeaderComponent, AlertService, AppBaseComponent, AppService, AuthService, BaseComponent, ButtonBaseComponent, ButtonCircularComponent, ButtonComponent, ButtonRoundedComponent, ButtonStandardComponent, COMPONENT_COLORS, CalendarService, CardComponent, CreateDynamicComponent, DYNAMIC_COMPONENTS_STORE, DateEditComponent, DateRangeComponent, DateRangeModalComponent, DetailAddressComponent, DetailArrayComponent, DetailAttachmentComponent, DetailBaseComponent, DetailColorComponent, DetailComponent, DetailDateRangeComponent, DetailEmailComponent, DetailEnumComponent, DetailFlagComponent, DetailImageComponent, DetailLogoComponent, DetailObjectComponent, DetailPdfComponent, DetailPhoneNumberPlComponent, DetailTextComponent, DetailVideoComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EnumToListPipe, ErrorService, ExportComponent, FILE_SERVICE_CONFIG, FileService, FileUrlPipe, FilterBtnConstants, FormBaseComponent, FormComponent, FormFactory, FormStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, IconComponent, ImportComponent, InfoComponent, InfoModalComponent, InputAddressComponent, InputArrayComponent, InputAttachmentComponent, InputBaseComponent, InputCheckComponent, InputColorComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputDateWithEditComponent, InputEmailComponent, InputEnumComponent, InputErrorComponent, InputFileComponent, InputFlagComponent, InputFloatComponent, InputImageComponent, InputIntComponent, InputIntsComponent, InputLogoComponent, InputLongTextComponent, InputNipComponent, InputObjectComponent, InputPasswordComponent, InputPdfComponent, InputPeselComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputRadioComponent, InputStringsComponent, InputTextComponent, InputVideoComponent, ListBaseComponent, ListCellPipe, ListComponent, ListDesktopComponent, ListHeaderPipe, ListMasonryGridComponent, ListMobileComponent, ListMode, LoaderComponent, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MenuService, ModalService, ModelLabelPipe, NgrxSharedModule, NgrxStoreService, PIPES, PageBaseComponent, PageComponent, PageStandardComponent, PaginationMode, PagingComponent, PasswordStrengthComponent, PopoverService, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SearchbarComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StorageService, StyleService, ToastService, TrustHtmlPipe, UIService, fastPropGetter };
1875
+ export type { AppEndButton, CalendarState, ColorVariantClasses, DynamicComponentType, IAlertButton, IAlertOptions, IAppOptions, IAppProvider, IButtonOptions, ICardOptions, ICellPipe, IDetailOptions, IDetailsComponentFactories, IDetailsOptions, IDetailsProvider, IDynamicComponent, IDynamicComponentData, IFileServiceConfig, IFormOptions, IFormProvider, IIconButtonOptions, IInputFromFieldOptions, IInputOptions, IItemOptionsForCustom, IItemOptionsForPage, IListComponentFactories, IListInternalOptions, IListOptions, IListPaginationOptions, IListProvider, IMenuItem, IModal, IModalOptions, IModelLabelOptions, IModelPossibilitiesOptions, IModelValidators, IModelValidatorsOptions, IPageOptions, IRemoveProvider, IStyle, IToastButton, IToastOptions, IconName, InputBaseComponentType, InputOptions, ItemOptions, SmartColor, SmartSize, SmartVariant, StyleType, month };