@zealicsolutions/web-ui 1.0.44-beta-1 → 1.0.44-beta-2

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.
@@ -1,11 +1,41 @@
1
1
  import React from 'react';
2
- export interface Visit {
2
+ import { ConfigurationItemInfo } from 'containers';
3
+ export interface VisitMoleculeProps {
4
+ /** Unique visit identifier (used as event.id) */
3
5
  id: string;
6
+ /** Title shown on the card and used as event.title */
4
7
  title: string;
5
- start: string;
8
+ /** Length of the visit, in minutes (used to compute event.end) */
6
9
  duration: number;
7
- }
8
- export interface VisitMoleculeProps {
9
- visit: Visit;
10
+ /** Optional description rendered under the title */
11
+ description?: string;
12
+ /** If you want to associate this visit with a resource */
13
+ resourceId?: string;
14
+ /** Background color of the card */
15
+ backgroundColor?: string;
16
+ /** Text color for title/description */
17
+ textColor?: string;
18
+ /** Border color around the card */
19
+ borderColor?: string;
20
+ /** Border radius (e.g. '4px') */
21
+ borderRadius?: string;
22
+ marginLeft?: string;
23
+ marginTop?: string;
24
+ marginRight?: string;
25
+ marginBottom?: string;
26
+ paddingLeft?: string;
27
+ paddingTop?: string;
28
+ paddingRight?: string;
29
+ paddingBottom?: string;
30
+ /** Font size for the title (e.g. '14px') */
31
+ fontSize?: string | number;
32
+ /** Font weight for the title (e.g. 400, 600) */
33
+ fontWeight?: string | number;
34
+ /** If false, disables dragging completely */
35
+ draggable?: boolean;
36
+ /** If false, dropping won’t actually create an event */
37
+ createOnDrop?: boolean;
38
+ /** Extra props your designer tool may pass */
39
+ configurationItemInfo?: ConfigurationItemInfo;
10
40
  }
11
41
  export declare const VisitMolecule: React.FC<VisitMoleculeProps>;
@@ -17,6 +17,7 @@ import { TabsProps } from '../../molecules/Tabs/Tabs';
17
17
  import { MenuProps } from '../../molecules/Menu/Menu';
18
18
  import { AvatarMoleculeProps } from '../../molecules/Avatar/Avatar';
19
19
  import { CalendarMoleculeProps } from '../../molecules/Calendar/CalendarMolecule';
20
+ import { VisitMoleculeProps } from '../../molecules/Visit/VisitMolecule';
20
21
  export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
21
22
  export declare type DataModelFieldFormatCodeTypes = 'date' | 'email' | 'string' | 'integer' | 'boolean' | 'numeric' | 'zip_code' | 'phone_number';
22
23
  export declare type DataModelFieldFormatValueTypes = 'any' | 'text' | 'email' | 'integer' | 'numerical' | 'us_zip_code' | 'phone_number' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'year_month_day_date';
@@ -124,7 +125,7 @@ export declare type ObjectStateProperties = {
124
125
  pmiObjectId: string | null;
125
126
  };
126
127
  export declare type MoleculeItemTypes = 'stepper_item' | 'checklist_item' | 'accordion_item' | 'menu_item' | 'tabs_item';
127
- export declare type MoleculeTypes = 'simple_text' | 'text' | 'header_tab_group' | 'consent' | 'signup_password_fields' | 'account_button' | 'stepper' | 'checklist' | 'accordion' | 'menu' | 'tabs' | 'divider' | 'link' | 'video' | 'image' | 'button' | 'alert' | 'badge' | 'chip' | 'basic_text_field' | 'rating' | 'switch' | 'slider' | 'select' | 'date_picker' | 'email_input_field' | 'phone_number_input_field' | 'numeric_input_field' | 'currency_input_field' | 'email_display_field' | 'phone_number_display_field' | 'numeric_display_field' | 'currency_display_field' | 'basic_text_display_field' | 'select_display_field' | 'rating_display_field' | 'switch_display_field' | 'slider_display_field' | 'date_display_field' | 'avatar' | 'calendar';
128
+ export declare type MoleculeTypes = 'simple_text' | 'text' | 'header_tab_group' | 'consent' | 'signup_password_fields' | 'account_button' | 'stepper' | 'checklist' | 'accordion' | 'menu' | 'tabs' | 'divider' | 'link' | 'video' | 'image' | 'button' | 'alert' | 'badge' | 'chip' | 'basic_text_field' | 'rating' | 'switch' | 'slider' | 'select' | 'date_picker' | 'email_input_field' | 'phone_number_input_field' | 'numeric_input_field' | 'currency_input_field' | 'email_display_field' | 'phone_number_display_field' | 'numeric_display_field' | 'currency_display_field' | 'basic_text_display_field' | 'select_display_field' | 'rating_display_field' | 'switch_display_field' | 'slider_display_field' | 'date_display_field' | 'avatar' | 'calendar' | 'visit';
128
129
  /**
129
130
  * [ NEW MOLECULE: 3 ] Second Step is to add the new molecule name to this list, in snake case format
130
131
  *
@@ -474,7 +475,14 @@ export interface CalendarMoleculeType extends BaseMoleculeType {
474
475
  };
475
476
  properties: AnyObject;
476
477
  }
477
- export declare type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | AvatarMoleculeType | CalendarMoleculeType> & Partial<{
478
+ export interface VisitMoleculeType extends BaseMoleculeType {
479
+ type: 'visit';
480
+ config: {
481
+ props: Omit<VisitMoleculeProps, 'configurationItemInfo'>;
482
+ };
483
+ properties: AnyObject;
484
+ }
485
+ export declare type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | AvatarMoleculeType | CalendarMoleculeType | VisitMoleculeType> & Partial<{
478
486
  form: UseFormReturn<any>;
479
487
  formData: AnyObject;
480
488
  setFormData: Dispatch<SetStateAction<AnyObject>>;