@asaleh37/ui-base 25.11.6 → 25.12.16

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/__ODockerfile ADDED
@@ -0,0 +1,14 @@
1
+ # STEP 1 — Build static files
2
+ FROM node:18 AS build
3
+ WORKDIR /app
4
+
5
+ COPY package.json ./
6
+ RUN npm install --force
7
+
8
+ COPY . .
9
+ RUN npm run build
10
+
11
+ # STEP 2 — Nginx to serve static build
12
+ FROM nginx:1.25
13
+ COPY --from=build /app/dist /usr/share/nginx/html
14
+ EXPOSE 80
package/dist/index.d.ts CHANGED
@@ -66,6 +66,8 @@ type AppInfo = {
66
66
  appName: string | null;
67
67
  appVersion: string | null;
68
68
  appLogo: any | null;
69
+ isUserProfileManaged?: boolean;
70
+ isLocalizationEnabled?: boolean;
69
71
  businessLocals?: {
70
72
  ar: {
71
73
  [key: string]: string;
@@ -688,6 +690,12 @@ declare const useWindow: (props: TemplateWindowProp) => {
688
690
  Window: react.FC<WindowProps>;
689
691
  };
690
692
 
693
+ declare const useCommonStore: (storeKey: string) => {
694
+ reload: () => Promise<void>;
695
+ data: any[];
696
+ store: StoreMetaData;
697
+ };
698
+
691
699
  declare function hasDigitsOnly(str: string): boolean;
692
700
  declare function isNumber(value: any): boolean;
693
701
  declare function isNumeric(value: string): boolean;
@@ -704,5 +712,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
704
712
  declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
705
713
  declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
706
714
 
707
- export { AttachmentCard, AttachmentImageViewer, AttachmentPanel, BaseApp, CheckBox, ComboBox, DARK_THEME_INITIAL_MAIN_COLOR, DARK_THEME_INITIAL_SECANDARY_COLOR, DATE_FORMAT, DATE_TIME_FORMAT, DashboardRouteView, DashboardViewer, Datefield, DatetimeField, ExcelReportViewer, FormElementField as FormElement, LIGHT_THEME_INITIAL_MAIN_COLOR, LIGHT_THEME_INITIAL_SECANDARY_COLOR, ReportViewer, SystemLookupCombobox, TemplateBarChart, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, WorkflowDocumentPanel, WorkflowDocumentTimeLine, WorkflowRouteComponent, capitalizeFirstLetter, constructGridColumnsFromFields, constructValidationSchema, formatDate, getAllFields, getElementFields, getGridSelection, hasDigitsOnly, isNumber, isNumeric, isValidEmail, parseStringToDate, timeAgo, useApiActions, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
715
+ export { AttachmentCard, AttachmentImageViewer, AttachmentPanel, BaseApp, CheckBox, ComboBox, DARK_THEME_INITIAL_MAIN_COLOR, DARK_THEME_INITIAL_SECANDARY_COLOR, DATE_FORMAT, DATE_TIME_FORMAT, DashboardRouteView, DashboardViewer, Datefield, DatetimeField, ExcelReportViewer, FormElementField as FormElement, LIGHT_THEME_INITIAL_MAIN_COLOR, LIGHT_THEME_INITIAL_SECANDARY_COLOR, ReportViewer, SystemLookupCombobox, TemplateBarChart, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, WorkflowDocumentPanel, WorkflowDocumentTimeLine, WorkflowRouteComponent, capitalizeFirstLetter, constructGridColumnsFromFields, constructValidationSchema, formatDate, getAllFields, getElementFields, getGridSelection, hasDigitsOnly, isNumber, isNumeric, isValidEmail, parseStringToDate, timeAgo, useApiActions, useAxios, useCommonStore, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
708
716
  export type { CommonStores, CommonStoresInterface, EditDeleteAction, ExtendedTreeItemProps, FormActionProps, FormElementFieldProps, FormElementGroupProps, FormElementNodeProps, FormElementProps, FormElementSize, FormValueChangeCallBk, GridSelection, MakeOptional, ModalFormProps, RecordAction, RecordFieldProps, StoreMetaData, SystemRoute, TemplateFormProps, TemplateGridAttachmentProps, TemplateGridColDef, TemplateGridColumnProps, TemplateGridProps, TemplateGridTopBarProps, TransferListProps };