@zealicsolutions/web-ui 1.0.95 → 1.0.97-beta.1
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/dist/cjs/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/cjs/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/cjs/containers/types/moleculeTypes.d.ts +6 -24
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/cjs/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js.map +1 -1
- package/dist/esm/components/RichTextViewer/utils/debugVariableState.d.ts +67 -0
- package/dist/esm/containers/types/moleculeTypes.d.ts +6 -24
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Consent/Consent.stories.d.ts +3 -3
- package/dist/esm/molecules/DateCalendar/DateCalendar.d.ts +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js +1 -1
- package/dist/esm/molecules/DateCalendar/DateCalendar.js.map +1 -1
- package/dist/index.d.ts +7 -25
- package/package.json +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateCalendar.js","sources":["../../../../../src/molecules/DateCalendar/DateCalendar.tsx"],"sourcesContent":[null],"names":["defaultSx","width","maxWidth","backgroundColor","borderRadius","boxShadow","border","borderColor","overflow","color","paddingTop","paddingBottom","marginTop","marginBottom","fontSize","fontWeight","textAlign","padding","margin","transition","transform","textDecoration","cursor","parseDate","date","Date","parsed","isNaN","getTime","DateCalendar","_a","name","_b","required","requiredErrorText","validationErrorText","_c","isDisplayOnly","_d","disabled","configurationItemInfo","sourceDataModelFieldId","minDate","maxDate","_e","futureOnly","_f","pastOnly","sx","restProps","__rest","formContext","useFormContext","stateConfig","useStateContext","stateObject","useOrganismContext","stateValue","useMemo","value","initialValue","parsedMinDate","parsedMaxDate","useEffect","setValue","mergedSx","__assign","validateDate","useCallback","today","setHours","compareDate","isDateInFuture","isDateInPast","isDateInRange","concat","toLocaleDateString","renderCalendar","onChangeHandler","
|
1
|
+
{"version":3,"file":"DateCalendar.js","sources":["../../../../../src/molecules/DateCalendar/DateCalendar.tsx"],"sourcesContent":[null],"names":["defaultSx","width","maxWidth","backgroundColor","borderRadius","boxShadow","border","borderColor","overflow","color","paddingTop","paddingBottom","marginTop","marginBottom","fontSize","fontWeight","textAlign","padding","margin","transition","transform","textDecoration","cursor","parseDate","date","Date","parsed","Number","isNaN","getTime","DateCalendar","_a","name","_b","required","requiredErrorText","validationErrorText","_c","isDisplayOnly","_d","disabled","configurationItemInfo","sourceDataModelFieldId","minDate","maxDate","_e","futureOnly","_f","pastOnly","sx","restProps","__rest","formContext","useFormContext","stateConfig","useStateContext","stateObject","useOrganismContext","stateValue","useMemo","value","initialValue","parsedMinDate","parsedMaxDate","useEffect","setValue","mergedSx","__assign","validateDate","useCallback","today","setHours","compareDate","isDateInFuture","isDateInPast","isDateInRange","concat","toLocaleDateString","renderCalendar","onChangeHandler","_hasError","_jsx","Box","children","LocalizationProvider","dateAdapter","AdapterDateFns","MUIDateCalendar","readOnly","undefined","onChange","newValue","Controller","control","rules","validate","render","field","fieldOnChange","error","fieldState","_jsxs","_Fragment","Typography","variant","mt","display","message","Fragment"],"mappings":"+56GAsDA,IAAMA,EAAY,CAChB,0BAA2B,CACzBC,MAAO,OACPC,SAAU,IACVC,gBAAiB,mBACjBC,aAAc,EACdC,UAAW,gCACXC,OAAQ,YACRC,YAAa,UACbC,SAAU,UAGZ,mCAAoC,CAClCL,gBAAiB,eACjBM,MAAO,uBACPC,WAAY,EACZC,cAAe,EACfC,UAAW,EACXC,aAAc,EAEd,oC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T,EACrB,SACET,EACAmB,EACAC,GAEA,OACEC,EAACC,EAAQf,EAAA,GAAA1B,EACP,CAAA0C,SAAAF,EAACG,EAAoBjB,EAAA,CAACkB,YAAaC,GAAc,CAAAH,SAC/CF,EAACM,EAAepB,EAAA,CACdP,MAAOA,EACP4B,SAAUlD,EACVE,SAAUA,EAEVG,QAASmB,QAAiB2B,EAC1B7C,QAASmB,QAAiB0B,EAC1BxC,GAAIiB,GACAhB,GACJwC,SAAU,SAACC,GACJrD,GAAkBE,GACrBuC,EAAgBY,EAEnB,UAKX,EACA,CACElD,EACAH,EACAE,EACAsB,EACAC,EACAG,EACAhB,IAKJ,OAAIE,GAAepB,IAASM,EAExB2C,EAACW,EAAU,CACT5D,KAAMA,EACN6D,QAASzC,EAAYyC,QACrBC,MAAO,CACL5D,WAAUA,IAAWC,GAAqB,0BAC1C4D,SAAU3B,GAEZ4B,OAAQ,SAACjE,OAAEE,EAAyCF,EAAAkE,MAAtBC,EAAajE,EAAAyD,SAAE9B,EAAK3B,EAAA2B,MAAkBuC,EAAKpE,EAAAqE,WAAAD,MAAS,OAChFE,EACGC,EAAA,CAAAnB,SAAA,CAAAL,EACCvD,EAAUqC,GACV,SAAC+B,GACCO,EAAcP,EACf,IACCQ,GAGHA,GACClB,EAACsB,EACCpC,EAAA,CAAAqC,QAAQ,UACRvD,GAAI,CACFwD,GAAI,EACJhG,MAAO,aACPiG,QAAS,UAGV,CAAAvB,SAAAgB,EAAMQ,SAAWvE,GAAuB,oBAIhD,IAOL6C,EAAC2B,YACE9B,EAAejB,EAAc,WAE7B,IAGP"}
|
package/dist/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ import * as _emotion_react from '@emotion/react';
|
|
9
9
|
import { CSSObject, Interpolation, Theme } from '@emotion/react';
|
10
10
|
import * as react from 'react';
|
11
11
|
import react__default, { PropsWithChildren, FC, MouseEvent, Dispatch, SetStateAction, CSSProperties, ReactNode, InputHTMLAttributes, KeyboardEvent } from 'react';
|
12
|
-
import { BaseButtonProps, CustomStep as CustomStep$1, ChecklistItem as ChecklistItem$1, TextProps as TextProps$1, BasicTextFieldProps as BasicTextFieldProps$1, StepperProps as StepperProps$1, ChecklistProps as ChecklistProps$1, DividerProps as DividerProps$1, LinkProps as LinkProps$1, VideoProps as VideoProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, ChipMoleculeProps as ChipMoleculeProps$1, BadgeMoleculeProps as BadgeMoleculeProps$1, AlertMoleculeProps as AlertMoleculeProps$1, RatingMoleculeProps as RatingMoleculeProps$1, SliderMoleculeProps as SliderMoleculeProps$1, SelectMoleculeProps as SelectMoleculeProps$1, DatePickerMoleculeProps as DatePickerMoleculeProps$1, CheckboxProps as CheckboxProps$1, BinaryRadioButtonsProps as BinaryRadioButtonsProps$1, PasswordRuleValidation as PasswordRuleValidation$1, CustomValidationRule as CustomValidationRule$1 } from 'molecules';
|
12
|
+
import { BaseButtonProps, CustomStep as CustomStep$1, ChecklistItem as ChecklistItem$1, TextProps as TextProps$1, BasicTextFieldProps as BasicTextFieldProps$1, StepperProps as StepperProps$1, ChecklistProps as ChecklistProps$1, DividerProps as DividerProps$1, LinkProps as LinkProps$1, VideoProps as VideoProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, ChipMoleculeProps as ChipMoleculeProps$1, BadgeMoleculeProps as BadgeMoleculeProps$1, AlertMoleculeProps as AlertMoleculeProps$1, RatingMoleculeProps as RatingMoleculeProps$1, SliderMoleculeProps as SliderMoleculeProps$1, SelectMoleculeProps as SelectMoleculeProps$1, DatePickerMoleculeProps as DatePickerMoleculeProps$1, DateCalendarProps as DateCalendarProps$1, CheckboxProps as CheckboxProps$1, BinaryRadioButtonsProps as BinaryRadioButtonsProps$1, PasswordRuleValidation as PasswordRuleValidation$1, CustomValidationRule as CustomValidationRule$1 } from 'molecules';
|
13
13
|
import { DataModelFieldFormatCodeTypes as DataModelFieldFormatCodeTypes$1, FormStateType as FormStateType$1, ConfigurationItemInfo as ConfigurationItemInfo$1, ContainerProps as ContainerProps$1, LinkProperties as LinkProperties$1, TextProperties as TextProperties$1, MetadataType as MetadataType$1, ObjectStateProperties as ObjectStateProperties$1, StateProperties as StateProperties$1, Molecule as Molecule$1, ContainerComponentProps as ContainerComponentProps$2, ContainerType as ContainerType$1, MoleculeTypes as MoleculeTypes$1, MoleculeItemTypes as MoleculeItemTypes$2, StateConfigType as StateConfigType$1, ConsentFieldMoleculeType as ConsentFieldMoleculeType$1, PasswordSetupMoleculeType as PasswordSetupMoleculeType$1 } from 'containers';
|
14
14
|
import { InputFieldTypes } from 'fieldsConfiguration/types';
|
15
15
|
import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$2, FontSizesTypes as FontSizesTypes$1, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
@@ -1580,7 +1580,7 @@ interface DatePickerMoleculeType extends BaseMoleculeType {
|
|
1580
1580
|
interface TimePickerMoleculeType extends BaseMoleculeType {
|
1581
1581
|
type: 'time_picker' | 'time_picker_display';
|
1582
1582
|
config: {
|
1583
|
-
props?:
|
1583
|
+
props?: Record<string, unknown>;
|
1584
1584
|
};
|
1585
1585
|
properties: {
|
1586
1586
|
text: TextProperties;
|
@@ -1691,27 +1691,9 @@ interface CalendarMoleculeType extends BaseMoleculeType {
|
|
1691
1691
|
interface DateCalendarMoleculeType extends BaseMoleculeType {
|
1692
1692
|
type: 'date_calendar' | 'date_calendar_display';
|
1693
1693
|
config: {
|
1694
|
-
props:
|
1695
|
-
sx?: {
|
1696
|
-
container?: Record<string, any>;
|
1697
|
-
calendar?: Record<string, any>;
|
1698
|
-
header?: Record<string, any>;
|
1699
|
-
dayButton?: Record<string, any>;
|
1700
|
-
selectedDay?: Record<string, any>;
|
1701
|
-
disabledDay?: Record<string, any>;
|
1702
|
-
[key: string]: Record<string, any> | undefined;
|
1703
|
-
};
|
1704
|
-
disabled?: boolean;
|
1705
|
-
minDate?: Date;
|
1706
|
-
maxDate?: Date;
|
1707
|
-
disablePast?: boolean;
|
1708
|
-
disableFuture?: boolean;
|
1709
|
-
shouldDisableDate?: (date: Date) => boolean;
|
1710
|
-
};
|
1694
|
+
props: DateCalendarProps$1;
|
1711
1695
|
};
|
1712
1696
|
properties: {
|
1713
|
-
text?: TextProperties;
|
1714
|
-
selectedDate?: DateProperties;
|
1715
1697
|
required?: BooleanProperties;
|
1716
1698
|
requiredErrorText?: TextProperties;
|
1717
1699
|
validationErrorText?: TextProperties;
|
@@ -1765,12 +1747,12 @@ interface BinaryRadioButtonsMoleculeType extends BaseMoleculeType {
|
|
1765
1747
|
};
|
1766
1748
|
}
|
1767
1749
|
type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | DrawerMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | TimePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | AvatarMoleculeType | VisitMoleculeType | CalendarMoleculeType | DateCalendarMoleculeType | SpeedDialMoleculeType | CheckboxMoleculeType | BinaryRadioButtonsMoleculeType> & Partial<{
|
1768
|
-
form: UseFormReturn<
|
1750
|
+
form: UseFormReturn<Record<string, unknown>>;
|
1769
1751
|
formData: AnyObject$1;
|
1770
1752
|
setFormData: Dispatch<SetStateAction<AnyObject$1>>;
|
1771
1753
|
}>;
|
1772
|
-
type ConsentType =
|
1773
|
-
type VisitMoleculeProps =
|
1754
|
+
type ConsentType = Record<string, unknown>;
|
1755
|
+
type VisitMoleculeProps = Record<string, unknown>;
|
1774
1756
|
|
1775
1757
|
type ContainerType = 'default' | 'row' | 'column' | 'slider' | 'form' | 'form_purpose' | 'form_step' | 'dynamic' | 'journey_driven' | 'journey_driven_step';
|
1776
1758
|
type ContainerTemplateType = 'row_content_container';
|
@@ -2502,7 +2484,7 @@ interface DateCalendarProps {
|
|
2502
2484
|
maxDate?: Date | string;
|
2503
2485
|
futureOnly?: boolean;
|
2504
2486
|
pastOnly?: boolean;
|
2505
|
-
[key: string]:
|
2487
|
+
[key: string]: unknown;
|
2506
2488
|
}
|
2507
2489
|
interface DateCalendarMoleculeProps {
|
2508
2490
|
properties: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zealicsolutions/web-ui",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.97-beta.1",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
|
@@ -112,10 +112,10 @@
|
|
112
112
|
"dependencies": {
|
113
113
|
"@emotion/react": "^11.13.3",
|
114
114
|
"@emotion/styled": "^11.13.0",
|
115
|
-
"@mui/material": "
|
116
|
-
"@mui/system": "
|
115
|
+
"@mui/material": "7.2.0",
|
116
|
+
"@mui/system": "7.2.0",
|
117
117
|
"@mui/utils": "^7.2.0",
|
118
|
-
"@mui/x-date-pickers": "
|
118
|
+
"@mui/x-date-pickers": "8.9.0",
|
119
119
|
"@types/react-dom": "18.0.6",
|
120
120
|
"currency-symbol-map": "^5.1.0",
|
121
121
|
"date-fns": "^3.6.0",
|