@feathery/react 2.10.4 → 2.11.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/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/cjs/elements/fields/index.d.ts.map +1 -1
- package/dist/cjs/{fthry_FormControl.D054LpX5.js → fthry_FormControl.BoBlGUv-.js} +1 -1
- package/dist/cjs/{fthry_InlineTooltip.BmRAwfTr.js → fthry_InlineTooltip.BDg-8hjR.js} +2 -2
- package/dist/cjs/{fthry_Overlay.Cu-jPCI2.js → fthry_Overlay.9cAIeP6E.js} +1 -1
- package/dist/cjs/{fthry_PaymentMethodField.DgMHwN-E.js → fthry_PaymentMethodField.CoByJr6K.js} +4 -4
- package/dist/cjs/{fthry_Placeholder.BYiBhbzh.js → fthry_Placeholder.B8Fiv4tG.js} +1 -1
- package/dist/cjs/{fthry_ShowEyeIcon.JSFm5V3g.js → fthry_ShowEyeIcon.BR6TU49u.js} +1 -1
- package/dist/cjs/{fthry_index.C8xhBiSL.js → fthry_index.B1HntmiS.js} +8 -8
- package/dist/cjs/{fthry_index.Dr55Bljd.js → fthry_index.B61Fc5yV.js} +1 -1
- package/dist/cjs/{fthry_index.CKmjSEM_.js → fthry_index.BD1AaCkS.js} +2 -12
- package/dist/cjs/{fthry_index.B2hMamho.js → fthry_index.BOdVGl5l.js} +4 -4
- package/dist/cjs/{fthry_index.BeG1VteX.js → fthry_index.BT4rLIaG.js} +6 -6
- package/dist/cjs/{fthry_index.CZwit5fg.js → fthry_index.BWxbbmA2.js} +5 -5
- package/dist/cjs/{fthry_index.CsZ4a-ul.js → fthry_index.Bg1tnBes.js} +34 -27
- package/dist/cjs/{fthry_index.DN3JWoEi.js → fthry_index.Bz00U1qW.js} +2 -2
- package/dist/cjs/{fthry_index.DqMxHy5c.js → fthry_index.C5e1CIOA.js} +3 -3
- package/dist/cjs/{fthry_index.PiL5c9VB.js → fthry_index.C67RyE6s.js} +1 -1
- package/dist/cjs/{fthry_index.ajxuY_-G.js → fthry_index.CEvNFKQL.js} +2 -2
- package/dist/cjs/{fthry_index.B39vKi8b.js → fthry_index.CKUbCvsH.js} +6 -6
- package/dist/cjs/{fthry_index.CD1A6RNb.js → fthry_index.CPoExiaS.js} +1 -1
- package/dist/cjs/{fthry_index.De7Fcoju.js → fthry_index.ClWRtApG.js} +1 -1
- package/dist/cjs/{fthry_index.BPwlwYzc.js → fthry_index.CoeM5YQu.js} +1 -1
- package/dist/cjs/{fthry_index.DwinADMZ.js → fthry_index.CyKbm52O.js} +4 -4
- package/dist/cjs/{fthry_index._AeFB4t8.js → fthry_index.D-DmJrvp.js} +3 -3
- package/dist/cjs/{fthry_index.olBzA3BV.js → fthry_index.DD21qdc8.js} +5 -5
- package/dist/cjs/{fthry_index.CD8xJKKg.js → fthry_index.EgnUQ81x.js} +5 -5
- package/dist/cjs/{fthry_index.C2ghok4x.js → fthry_index.HrTSyg9B.js} +1 -1
- package/dist/cjs/{fthry_index.DZHeFuVI.js → fthry_index.JnLQZ_md.js} +4 -4
- package/dist/cjs/{fthry_index.-aTR3_nC.js → fthry_index.gF97kiKa.js} +5 -5
- package/dist/cjs/{fthry_index.DLiYkgfL.js → fthry_index.rFGfbGIk.js} +207 -14
- package/dist/cjs/{fthry_input.Dy9NLp-M.js → fthry_input.CogPcc6M.js} +1 -1
- package/dist/cjs/{fthry_script.wavuQtst.js → fthry_script.6P1NJRwv.js} +1 -1
- package/dist/cjs/{fthry_styles.BOrF2Mu4.js → fthry_styles.IzrEmUeD.js} +1 -1
- package/dist/cjs/{fthry_useElementSize.CGPf-Bg7.js → fthry_useElementSize.BnoWET1V.js} +1 -1
- package/dist/cjs/{fthry_useSalesforceSync.CkHCvyty.js → fthry_useSalesforceSync.DQAPSVmr.js} +1 -1
- package/dist/cjs/{fthry_webfontloader.HWAoLTyT.js → fthry_webfontloader.z-pzQOVm.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/image.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/elements/fields/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts +17 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/FileUploadField/index.d.ts.map +1 -1
- package/dist/esm/elements/fields/index.d.ts.map +1 -1
- package/dist/esm/{fthry_FormControl.BA0jHih4.js → fthry_FormControl.1iiH8b4i.js} +1 -1
- package/dist/esm/{fthry_InlineTooltip.Dm0KK5M9.js → fthry_InlineTooltip.CREexk6k.js} +2 -2
- package/dist/esm/{fthry_Overlay.DkLsoRUo.js → fthry_Overlay.4bM7bqaM.js} +1 -1
- package/dist/esm/{fthry_PaymentMethodField.wSqTzrcH.js → fthry_PaymentMethodField.Cb-ULdGb.js} +4 -4
- package/dist/esm/{fthry_Placeholder.ChbqXh1M.js → fthry_Placeholder.CcLGjl1u.js} +1 -1
- package/dist/esm/{fthry_ShowEyeIcon.Bcr_DvfJ.js → fthry_ShowEyeIcon.eF1-xhvT.js} +1 -1
- package/dist/esm/{fthry_index.DASp8aCj.js → fthry_index.9mFiTG-F.js} +2 -2
- package/dist/esm/{fthry_index.CShNj3fL.js → fthry_index.BM1AattI.js} +5 -5
- package/dist/esm/{fthry_index.D6i0WTaf.js → fthry_index.BSpj1J3t.js} +1 -1
- package/dist/esm/{fthry_index.53sTOmmn.js → fthry_index.BWkhkeXW.js} +4 -4
- package/dist/esm/{fthry_index.Cz4S5q3A.js → fthry_index.B_5JaMZj.js} +5 -5
- package/dist/esm/{fthry_index.XKItlsHk.js → fthry_index.BgQOfF85.js} +5 -5
- package/dist/esm/{fthry_index.0B-SHhds.js → fthry_index.C41oCBcm.js} +1 -1
- package/dist/esm/{fthry_index.DEz3Unk1.js → fthry_index.CB2vMsnM.js} +34 -27
- package/dist/esm/{fthry_index.DRGnCWqW.js → fthry_index.CKCDUf3w.js} +1 -1
- package/dist/esm/{fthry_index.Dpvpv2xt.js → fthry_index.CQWTQtLw.js} +6 -6
- package/dist/esm/{fthry_index.yssMp2Sy.js → fthry_index.CS2Bl6C1.js} +5 -5
- package/dist/esm/{fthry_index.DQxfJdRB.js → fthry_index.Ci7ibGUI.js} +4 -4
- package/dist/esm/{fthry_index.B95NyPKm.js → fthry_index.De_KEVYz.js} +1 -1
- package/dist/esm/{fthry_index.DQowcu5D.js → fthry_index.DpdhPVtE.js} +3 -3
- package/dist/esm/{fthry_index.D3kE6xSV.js → fthry_index.Dr1twar-.js} +4 -4
- package/dist/esm/{fthry_index.BDtl0X99.js → fthry_index.DzJNxFJS.js} +2 -2
- package/dist/esm/{fthry_index.CesKGxRL.js → fthry_index.H8MtZv8B.js} +1 -1
- package/dist/esm/{fthry_index.D2_C3keg.js → fthry_index.I2ya6REt.js} +8 -8
- package/dist/esm/{fthry_index.CQ5JOSod.js → fthry_index.JZQuYqHY.js} +2 -12
- package/dist/esm/{fthry_index.DxUfaIgG.js → fthry_index.UO0V9XrA.js} +1 -1
- package/dist/esm/{fthry_index.T2sjKIYG.js → fthry_index.e5_-aYH2.js} +3 -3
- package/dist/esm/{fthry_index.DDt2EQSO.js → fthry_index.gMIrcjef.js} +207 -14
- package/dist/esm/{fthry_index.AupFnvNG.js → fthry_index.x12MCTQ7.js} +6 -6
- package/dist/esm/{fthry_input.CNSkvM1z.js → fthry_input.BrLpC149.js} +1 -1
- package/dist/esm/{fthry_script.B16_IH9w.js → fthry_script.ePkzRcPc.js} +1 -1
- package/dist/esm/{fthry_styles.BjknDpXW.js → fthry_styles.D641KtAd.js} +1 -1
- package/dist/esm/{fthry_useElementSize.D0NVoaWJ.js → fthry_useElementSize.Ce2Hmk3y.js} +1 -1
- package/dist/esm/{fthry_useSalesforceSync.CjIblTsh.js → fthry_useSalesforceSync.DL2Ww72M.js} +1 -1
- package/dist/esm/{fthry_webfontloader.DJbai8E2.js → fthry_webfontloader.ColEuyZc.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/image.d.ts.map +1 -1
- package/dist/utils/image.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/{515.03ca98f056a0b3528daa.js → 509.4236d4d76d2fa2ccd971.js} +2 -2
- package/umd/{DateSelectorField.bd5646949de71f571d04.js → DateSelectorField.00f321e0b1972feb9d69.js} +1 -1
- package/umd/{FileUploadField.11dcf999a3604cdf4ea0.js → FileUploadField.5b99c480e0eec74a3867.js} +1 -1
- package/umd/index.js +1 -1
- /package/umd/{515.03ca98f056a0b3528daa.js.LICENSE.txt → 509.4236d4d76d2fa2ccd971.js.LICENSE.txt} +0 -0
|
@@ -17031,7 +17031,10 @@ var BASE64_REGEX = /(data:image\/(png|jpg|jpeg);base64,)([0-9a-zA-Z+/]{4})*(([0-
|
|
|
17031
17031
|
function getThumbnailType(file) {
|
|
17032
17032
|
var thumbnailType = THUMBNAIL_TYPE.UNKNOWN;
|
|
17033
17033
|
if (file) {
|
|
17034
|
-
|
|
17034
|
+
// TIFF images are not supported by most browsers' <img> tag,
|
|
17035
|
+
// so treat them as unknown (display filename only)
|
|
17036
|
+
// Covers: image/tiff, image/x-tiff, image/tif
|
|
17037
|
+
if (/image\//.test(file.type) && !/image\/(?:x-)?tiff?/i.test(file.type)) {
|
|
17035
17038
|
thumbnailType = THUMBNAIL_TYPE.IMAGE;
|
|
17036
17039
|
}
|
|
17037
17040
|
else if (/application\/pdf/.test(file.type)) {
|
|
@@ -43538,9 +43541,9 @@ function init(sdkKey, options) {
|
|
|
43538
43541
|
if (runningInClient()) {
|
|
43539
43542
|
// Dynamically load libraries that must be client side
|
|
43540
43543
|
global.scriptjsLoadPromise = import(
|
|
43541
|
-
/* webpackChunkName: "scriptjs" */ './fthry_script.
|
|
43544
|
+
/* webpackChunkName: "scriptjs" */ './fthry_script.ePkzRcPc.js').then(function (n) { return n.s; });
|
|
43542
43545
|
global.webfontloaderPromise = import(
|
|
43543
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
43546
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ColEuyZc.js').then(function (n) { return n.w; });
|
|
43544
43547
|
// Client-side tracking logic
|
|
43545
43548
|
if (initState.userTracking === 'cookie') {
|
|
43546
43549
|
var cookieKey = "feathery-user-id-".concat(sdkKey);
|
|
@@ -43686,7 +43689,7 @@ function getFieldValues() {
|
|
|
43686
43689
|
return __assign({}, fieldValues);
|
|
43687
43690
|
}
|
|
43688
43691
|
function logFeatheryBadge() {
|
|
43689
|
-
console.log('%c Feathery %c v' + "2.
|
|
43692
|
+
console.log('%c Feathery %c v' + "2.11.1" + ' ', // replaced with real version during build
|
|
43690
43693
|
'background: #e2626e; color: white; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;', 'background: #fce7e9; color: #c5495a; padding: 2px 6px; border-radius: 0 3px 3px 0;');
|
|
43691
43694
|
}
|
|
43692
43695
|
|
|
@@ -45158,39 +45161,39 @@ breakpoint) {
|
|
|
45158
45161
|
return styles.getTarget('inner-container', undefined, viewport === 'mobile');
|
|
45159
45162
|
};
|
|
45160
45163
|
|
|
45161
|
-
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.
|
|
45162
|
-
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.
|
|
45163
|
-
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.
|
|
45164
|
+
var AddressLine1 = lazy(function () { return import(/* webpackChunkName: "AddressField" */ './fthry_index.CS2Bl6C1.js'); });
|
|
45165
|
+
var ButtonGroupField = lazy(function () { return import(/* webpackChunkName: "ButtonGroupField" */ './fthry_index.BWkhkeXW.js'); });
|
|
45166
|
+
var CheckboxField = lazy(function () { return import(/* webpackChunkName: "CheckboxField" */ './fthry_index.De_KEVYz.js'); });
|
|
45164
45167
|
var CheckboxGroupField = lazy(function () {
|
|
45165
|
-
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.
|
|
45168
|
+
return import(/* webpackChunkName: "CheckboxGroupField" */ './fthry_index.x12MCTQ7.js');
|
|
45166
45169
|
});
|
|
45167
|
-
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.
|
|
45168
|
-
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.
|
|
45170
|
+
var ColorPickerField = lazy(function () { return import(/* webpackChunkName: "ColorPickerField" */ './fthry_index.BSpj1J3t.js'); });
|
|
45171
|
+
var CustomField = lazy(function () { return import(/* webpackChunkName: "CustomField" */ './fthry_index.UO0V9XrA.js'); });
|
|
45169
45172
|
var DateSelectorField = lazy(function () {
|
|
45170
|
-
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.
|
|
45173
|
+
return import(/* webpackChunkName: "DateSelectorField" */ './fthry_index.gMIrcjef.js');
|
|
45171
45174
|
});
|
|
45172
|
-
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.
|
|
45175
|
+
var DropdownField = lazy(function () { return import(/* webpackChunkName: "DropdownField" */ './fthry_index.Dr1twar-.js'); });
|
|
45173
45176
|
var DropdownMultiField = lazy(function () {
|
|
45174
|
-
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.
|
|
45177
|
+
return import(/* webpackChunkName: "DropdownMultiField" */ './fthry_index.BM1AattI.js');
|
|
45175
45178
|
});
|
|
45176
|
-
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.
|
|
45177
|
-
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.
|
|
45178
|
-
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.
|
|
45179
|
+
var FileUploadField = lazy(function () { return import(/* webpackChunkName: "FileUploadField" */ './fthry_index.JZQuYqHY.js'); });
|
|
45180
|
+
var MatrixField = lazy(function () { return import(/* webpackChunkName: "MatrixField" */ './fthry_index.DpdhPVtE.js'); });
|
|
45181
|
+
var PasswordField = lazy(function () { return import(/* webpackChunkName: "PasswordField" */ './fthry_index.BgQOfF85.js'); });
|
|
45179
45182
|
var PaymentMethodField = lazy(function () {
|
|
45180
|
-
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.
|
|
45183
|
+
return import(/* webpackChunkName: "PaymentMethodField" */ './fthry_PaymentMethodField.Cb-ULdGb.js');
|
|
45181
45184
|
});
|
|
45182
|
-
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.
|
|
45183
|
-
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.
|
|
45184
|
-
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.
|
|
45185
|
+
var PhoneField = lazy(function () { return import(/* webpackChunkName: "PhoneField" */ './fthry_index.B_5JaMZj.js'); });
|
|
45186
|
+
var PinInputField = lazy(function () { return import(/* webpackChunkName: "PinInputField" */ './fthry_index.CKCDUf3w.js'); });
|
|
45187
|
+
var QRScanner = lazy(function () { return import(/* webpackChunkName: "QRScanner" */ './fthry_index.DzJNxFJS.js'); });
|
|
45185
45188
|
var RadioButtonGroupField = lazy(function () {
|
|
45186
45189
|
return import(
|
|
45187
|
-
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.
|
|
45190
|
+
/* webpackChunkName: "RadioButtonGroupField" */ './fthry_index.CQWTQtLw.js');
|
|
45188
45191
|
});
|
|
45189
|
-
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.
|
|
45190
|
-
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.
|
|
45191
|
-
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.
|
|
45192
|
-
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.
|
|
45193
|
-
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.
|
|
45192
|
+
var RatingField = lazy(function () { return import(/* webpackChunkName: "RatingField" */ './fthry_index.H8MtZv8B.js'); });
|
|
45193
|
+
var SignatureField = lazy(function () { return import(/* webpackChunkName: "SignatureField" */ './fthry_index.e5_-aYH2.js'); });
|
|
45194
|
+
var SliderField = lazy(function () { return import(/* webpackChunkName: "SliderField" */ './fthry_index.9mFiTG-F.js'); });
|
|
45195
|
+
var TextField = lazy(function () { return import(/* webpackChunkName: "TextField" */ './fthry_index.I2ya6REt.js'); });
|
|
45196
|
+
var TextArea = lazy(function () { return import(/* webpackChunkName: "TextArea" */ './fthry_index.Ci7ibGUI.js'); });
|
|
45194
45197
|
var Fields = {
|
|
45195
45198
|
AddressLine1: AddressLine1,
|
|
45196
45199
|
ButtonGroupField: ButtonGroupField,
|
|
@@ -45279,7 +45282,7 @@ function applyFieldStyles$1(field, styles) {
|
|
|
45279
45282
|
styles.applyBoxShadow('field');
|
|
45280
45283
|
break;
|
|
45281
45284
|
case 'file_upload':
|
|
45282
|
-
styles.addTargets('ac', 'add');
|
|
45285
|
+
styles.addTargets('ac', 'add', 'filename');
|
|
45283
45286
|
styles.applyHeight('ac');
|
|
45284
45287
|
if (field.servar.metadata.multiple) {
|
|
45285
45288
|
styles.apply('field', 'padding_bottom', function (a) { return ({
|
|
@@ -45290,6 +45293,10 @@ function applyFieldStyles$1(field, styles) {
|
|
|
45290
45293
|
styles.applyBorders({ target: 'field' });
|
|
45291
45294
|
styles.applyCorners('field');
|
|
45292
45295
|
styles.applyBoxShadow('field');
|
|
45296
|
+
styles.applyColor('field', 'background_color', 'backgroundColor');
|
|
45297
|
+
// filename target: only font styles + background for the filename span
|
|
45298
|
+
styles.applyFontStyles('filename');
|
|
45299
|
+
styles.applyColor('filename', 'background_color', 'backgroundColor');
|
|
45293
45300
|
styles.applyColor('ac', 'background_color', 'backgroundColor');
|
|
45294
45301
|
styles.applyBorders({ target: 'ac' });
|
|
45295
45302
|
styles.applyCorners('ac');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as featheryWindow, j as jsxs, a as __assign, b as jsx, _ as __read, u as useBorder, h as hoverStylesGuard, ah as isNum } from './fthry_index.
|
|
1
|
+
import { l as featheryWindow, j as jsxs, a as __assign, b as jsx, _ as __read, u as useBorder, h as hoverStylesGuard, ah as isNum } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as __read, j as jsxs, a as __assign, b as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { _ as __read, j as jsxs, a as __assign, b as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useState, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.1iiH8b4i.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.De_KEVYz.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DL2Ww72M.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
12
12
|
|
|
13
13
|
var applyRadioGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('radioGroup');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __read, u as useBorder, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, i as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, c as __awaiter, d as __generator, F as FeatheryClient, e as debounce } from './fthry_index.
|
|
1
|
+
import { _ as __read, u as useBorder, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, i as iosScrollOnFocus, r as resetStyles, D as DROPDOWN_Z_INDEX, c as __awaiter, d as __generator, F as FeatheryClient, e as debounce } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useEffect, memo, useState, useCallback } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.4bM7bqaM.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.Ce2Hmk3y.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __read, u as useBorder, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { _ as __read, u as useBorder, j as jsxs, a as __assign, h as hoverStylesGuard, b as jsx, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { memo, useState, useRef } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
10
10
|
|
|
11
11
|
function TextArea(_a) {
|
|
12
12
|
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _b = _a.elementProps, elementProps = _b === void 0 ? {} : _b, _c = _a.required, required = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, editMode = _a.editMode, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, _f = _a.setRef, setRef = _f === void 0 ? function () { } : _f, _g = _a.rawValue, rawValue = _g === void 0 ? '' : _g, inlineError = _a.inlineError, _h = _a.repeatIndex, repeatIndex = _h === void 0 ? null : _h, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, h as hoverStylesGuard, j as jsxs, b as jsx, i as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { a as __assign, h as hoverStylesGuard, j as jsxs, b as jsx, i as iosScrollOnFocus } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __read, b as jsx, m as Fragment, q as isMobile, j as jsxs, a as __assign, k as FORM_Z_INDEX, i as iosScrollOnFocus } from './fthry_index.
|
|
1
|
+
import { _ as __read, b as jsx, m as Fragment, q as isMobile, j as jsxs, a as __assign, k as FORM_Z_INDEX, i as iosScrollOnFocus } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useState, useRef, useMemo } from 'react';
|
|
3
|
-
import { O as Overlay, T as Tooltip } from './fthry_Overlay.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.
|
|
3
|
+
import { O as Overlay, T as Tooltip } from './fthry_Overlay.4bM7bqaM.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle } from './fthry_index.De_KEVYz.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as jsx, a as __assign, u as useBorder, _ as __read, w as countryData, x as fieldValues, j as jsxs, h as hoverStylesGuard, o as css, p as __makeTemplateObject, G as Global, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { b as jsx, a as __assign, u as useBorder, _ as __read, w as countryData, x as fieldValues, j as jsxs, h as hoverStylesGuard, o as css, p as __makeTemplateObject, G as Global, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useState, useRef, useEffect } from 'react';
|
|
3
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
4
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DL2Ww72M.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom/client';
|
|
7
7
|
import 'jszip';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import './fthry_Overlay.
|
|
9
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
10
10
|
|
|
11
11
|
var ae = [
|
|
12
12
|
{ name: 'Abu Dhabi', code: 'AZ' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as __awaiter, d as __generator, a4 as __spreadArray, _ as __read, ai as __values, l as featheryWindow, aj as loadQRScanner, ak as throttle, b as jsx, j as jsxs, a as __assign, m as Fragment, E as ErrorInput, al as qrPromise } from './fthry_index.
|
|
1
|
+
import { c as __awaiter, d as __generator, a4 as __spreadArray, _ as __read, ai as __values, l as featheryWindow, aj as loadQRScanner, ak as throttle, b as jsx, j as jsxs, a as __assign, m as Fragment, E as ErrorInput, al as qrPromise } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import React__default, { useEffect, useCallback } from 'react';
|
|
3
|
-
import { S as SliderStyles, a as Slider } from './fthry_styles.
|
|
3
|
+
import { S as SliderStyles, a as Slider } from './fthry_styles.D641KtAd.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as jsx, a as __assign, _ as __read, j as jsxs, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { b as jsx, a as __assign, _ as __read, j as jsxs, E as ErrorInput } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as jsxs, a as __assign, b as jsx, D as DROPDOWN_Z_INDEX, _ as __read, u as useBorder, ar as getFieldValue, as as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, k as FORM_Z_INDEX, r as resetStyles, at as emailPatternStr } from './fthry_index.
|
|
1
|
+
import { j as jsxs, a as __assign, b as jsx, D as DROPDOWN_Z_INDEX, _ as __read, u as useBorder, ar as getFieldValue, as as stringifyWithNull, h as hoverStylesGuard, i as iosScrollOnFocus, k as FORM_Z_INDEX, r as resetStyles, at as emailPatternStr } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { memo, useRef, useState } from 'react';
|
|
3
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
4
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
5
|
-
import { O as Overlay } from './fthry_Overlay.
|
|
6
|
-
import { u as useElementSize } from './fthry_useElementSize.
|
|
7
|
-
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.
|
|
8
|
-
import { a as IMaskInput } from './fthry_input.
|
|
3
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
4
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
5
|
+
import { O as Overlay } from './fthry_Overlay.4bM7bqaM.js';
|
|
6
|
+
import { u as useElementSize } from './fthry_useElementSize.Ce2Hmk3y.js';
|
|
7
|
+
import { S as ShowEyeIcon, a as ShowEyeIcon$1 } from './fthry_ShowEyeIcon.eF1-xhvT.js';
|
|
8
|
+
import { a as IMaskInput } from './fthry_input.BrLpC149.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import './fthry_index.
|
|
13
|
+
import './fthry_index.C41oCBcm.js';
|
|
14
14
|
|
|
15
15
|
function TextAutocomplete(_a) {
|
|
16
16
|
var _b = _a.allOptions, allOptions = _b === void 0 ? [] : _b, showOptions = _a.showOptions, _c = _a.onSelect, onSelect = _c === void 0 ? function () { } : _c, _d = _a.onHide, onHide = _d === void 0 ? function () { } : _d, _e = _a.onInputFocus, onInputFocus = _e === void 0 ? function () { } : _e, _f = _a.value, value = _f === void 0 ? '' : _f, containerRef = _a.containerRef, responsiveStyles = _a.responsiveStyles, listItemRef = _a.listItemRef, children = _a.children;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsxs, a as __assign, b as jsx, _ as __read, a5 as isEmptyArray, a6 as toList, a7 as useThumbnailData, a4 as __spreadArray, f as imgMaxSizeStyles, c as __awaiter, d as __generator, a8 as downloadFile, a9 as CloseIcon, i as iosScrollOnFocus, k as FORM_Z_INDEX, aa as justRemove } from './fthry_index.
|
|
1
|
+
import { j as jsxs, a as __assign, b as jsx, _ as __read, a5 as isEmptyArray, a6 as toList, a7 as useThumbnailData, a4 as __spreadArray, f as imgMaxSizeStyles, c as __awaiter, d as __generator, a8 as downloadFile, a9 as CloseIcon, i as iosScrollOnFocus, k as FORM_Z_INDEX, aa as justRemove } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -200,17 +200,7 @@ function FileUploadField(_a) {
|
|
|
200
200
|
width: '100%',
|
|
201
201
|
height: '100%',
|
|
202
202
|
objectFit: 'contain'
|
|
203
|
-
}, alt: filename || '' })) : (jsx("span", __assign({
|
|
204
|
-
color: 'black',
|
|
205
|
-
height: '100%',
|
|
206
|
-
width: '100%',
|
|
207
|
-
wordBreak: 'break-all',
|
|
208
|
-
fontSize: 'small',
|
|
209
|
-
display: 'flex',
|
|
210
|
-
justifyContent: 'center',
|
|
211
|
-
alignItems: 'center',
|
|
212
|
-
textAlign: 'center'
|
|
213
|
-
} }, { children: filename || 'File' }))), jsx("div", __assign({ css: {
|
|
203
|
+
}, alt: filename || '' })) : (jsx("span", __assign({ css: __assign({ height: '100%', width: '100%', wordBreak: 'break-all', display: 'flex', justifyContent: 'center', alignItems: 'center', textAlign: 'center' }, responsiveStyles.getTarget('filename')) }, { children: filename || 'File' }))), jsx("div", __assign({ css: {
|
|
214
204
|
position: 'absolute',
|
|
215
205
|
top: '4px',
|
|
216
206
|
right: '4px',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as jsx, a as __assign, j as jsxs, _ as __read, c as __awaiter, d as __generator, l as featheryWindow, m as Fragment, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { b as jsx, a as __assign, j as jsxs, _ as __read, c as __awaiter, d as __generator, l as featheryWindow, m as Fragment, E as ErrorInput } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useState, useEffect, memo, useMemo } from 'react';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as featheryDoc, am as devicePixelRatio, g as getDefaultExportFromCjs, _ as __read, j as jsxs, b as jsx, a as __assign, m as Fragment, c as __awaiter, d as __generator, an as toBase64, e as debounce, ao as MODAL_Z_INDEX, a9 as CloseIcon, ap as dataURLToFile, k as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.
|
|
1
|
+
import { s as featheryDoc, am as devicePixelRatio, g as getDefaultExportFromCjs, _ as __read, j as jsxs, b as jsx, a as __assign, m as Fragment, c as __awaiter, d as __generator, an as toBase64, e as debounce, ao as MODAL_Z_INDEX, a9 as CloseIcon, ap as dataURLToFile, k as FORM_Z_INDEX, E as ErrorInput } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import React__default, { Component, forwardRef, useState, useRef, useImperativeHandle, useEffect, useCallback, Suspense } from 'react';
|
|
3
|
-
import { P as PropTypes } from './fthry_index.
|
|
3
|
+
import { P as PropTypes } from './fthry_index.C41oCBcm.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import 'jszip';
|
|
@@ -1433,7 +1433,7 @@ function SignatureField(_a) {
|
|
|
1433
1433
|
useEffect(function () {
|
|
1434
1434
|
if (!global.webfontloaderPromise)
|
|
1435
1435
|
global.webfontloaderPromise = import(
|
|
1436
|
-
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.
|
|
1436
|
+
/* webpackChunkName: "webfontloader" */ './fthry_webfontloader.ColEuyZc.js').then(function (n) { return n.w; });
|
|
1437
1437
|
global.webfontloaderPromise.then(function (WebFont) {
|
|
1438
1438
|
WebFont.load({ google: { families: ['La Belle Aurore'] } });
|
|
1439
1439
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { b as jsx, G as Global, o as css, p as __makeTemplateObject, a as __assign, _ as __read, q as isMobile, l as featheryWindow, s as featheryDoc, u as useBorder, j as jsxs$1, h as hoverStylesGuard, r as resetStyles, t as __rest, v as formatDateString } from './fthry_index.
|
|
1
|
+
import { b as jsx, G as Global, o as css, p as __makeTemplateObject, a as __assign, _ as __read, q as isMobile, l as featheryWindow, s as featheryDoc, u as useBorder, j as jsxs$1, h as hoverStylesGuard, r as resetStyles, t as __rest, v as formatDateString } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useMemo, useLayoutEffect, cloneElement, createRef, Component, useRef, useCallback, useEffect, createElement, memo, useState } from 'react';
|
|
4
|
-
import { P as Placeholder } from './fthry_Placeholder.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
4
|
+
import { P as Placeholder } from './fthry_Placeholder.CcLGjl1u.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
6
6
|
import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
|
|
7
7
|
import * as ReactDOM from 'react-dom';
|
|
8
8
|
import ReactDOM__default from 'react-dom';
|
|
9
|
-
import { I as IMask, a as IMaskInput } from './fthry_input.
|
|
9
|
+
import { I as IMask, a as IMaskInput } from './fthry_input.BrLpC149.js';
|
|
10
10
|
import 'react-dom/client';
|
|
11
11
|
import 'jszip';
|
|
12
|
-
import './fthry_Overlay.
|
|
13
|
-
import './fthry_index.
|
|
12
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
13
|
+
import './fthry_index.C41oCBcm.js';
|
|
14
14
|
|
|
15
15
|
var PORTAL_CONTAINER_CLASS = '.react-datepicker__portal';
|
|
16
16
|
var DATEPICKER_PADDING_TOP_VALUE = '--datepicker-pad-top';
|
|
@@ -154,6 +154,176 @@ function toDate$1(argument, context) {
|
|
|
154
154
|
return constructFrom$1(argument, argument);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The {@link addDays} function options.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @name addDays
|
|
163
|
+
* @category Day Helpers
|
|
164
|
+
* @summary Add the specified number of days to the given date.
|
|
165
|
+
*
|
|
166
|
+
* @description
|
|
167
|
+
* Add the specified number of days to the given date.
|
|
168
|
+
*
|
|
169
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
170
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
171
|
+
*
|
|
172
|
+
* @param date - The date to be changed
|
|
173
|
+
* @param amount - The amount of days to be added.
|
|
174
|
+
* @param options - An object with options
|
|
175
|
+
*
|
|
176
|
+
* @returns The new date with the days added
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* // Add 10 days to 1 September 2014:
|
|
180
|
+
* const result = addDays(new Date(2014, 8, 1), 10)
|
|
181
|
+
* //=> Thu Sep 11 2014 00:00:00
|
|
182
|
+
*/
|
|
183
|
+
function addDays$1(date, amount, options) {
|
|
184
|
+
const _date = toDate$1(date);
|
|
185
|
+
if (isNaN(amount)) return constructFrom$1(date, NaN);
|
|
186
|
+
|
|
187
|
+
// If 0 days, no-op to avoid changing times in the hour before end of DST
|
|
188
|
+
if (!amount) return _date;
|
|
189
|
+
|
|
190
|
+
_date.setDate(_date.getDate() + amount);
|
|
191
|
+
return _date;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The {@link addMonths} function options.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @name addMonths
|
|
200
|
+
* @category Month Helpers
|
|
201
|
+
* @summary Add the specified number of months to the given date.
|
|
202
|
+
*
|
|
203
|
+
* @description
|
|
204
|
+
* Add the specified number of months to the given date.
|
|
205
|
+
*
|
|
206
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
207
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
208
|
+
*
|
|
209
|
+
* @param date - The date to be changed
|
|
210
|
+
* @param amount - The amount of months to be added.
|
|
211
|
+
* @param options - The options object
|
|
212
|
+
*
|
|
213
|
+
* @returns The new date with the months added
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* // Add 5 months to 1 September 2014:
|
|
217
|
+
* const result = addMonths(new Date(2014, 8, 1), 5)
|
|
218
|
+
* //=> Sun Feb 01 2015 00:00:00
|
|
219
|
+
*
|
|
220
|
+
* // Add one month to 30 January 2023:
|
|
221
|
+
* const result = addMonths(new Date(2023, 0, 30), 1)
|
|
222
|
+
* //=> Tue Feb 28 2023 00:00:00
|
|
223
|
+
*/
|
|
224
|
+
function addMonths$1(date, amount, options) {
|
|
225
|
+
const _date = toDate$1(date);
|
|
226
|
+
if (isNaN(amount)) return constructFrom$1(date, NaN);
|
|
227
|
+
if (!amount) {
|
|
228
|
+
// If 0 months, no-op to avoid changing times in the hour before end of DST
|
|
229
|
+
return _date;
|
|
230
|
+
}
|
|
231
|
+
const dayOfMonth = _date.getDate();
|
|
232
|
+
|
|
233
|
+
// The JS Date object supports date math by accepting out-of-bounds values for
|
|
234
|
+
// month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
|
|
235
|
+
// new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
|
|
236
|
+
// want except that dates will wrap around the end of a month, meaning that
|
|
237
|
+
// new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
|
|
238
|
+
// we'll default to the end of the desired month by adding 1 to the desired
|
|
239
|
+
// month and using a date of 0 to back up one day to the end of the desired
|
|
240
|
+
// month.
|
|
241
|
+
const endOfDesiredMonth = constructFrom$1(date, _date.getTime());
|
|
242
|
+
endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
|
|
243
|
+
const daysInMonth = endOfDesiredMonth.getDate();
|
|
244
|
+
if (dayOfMonth >= daysInMonth) {
|
|
245
|
+
// If we're already at the end of the month, then this is the correct date
|
|
246
|
+
// and we're done.
|
|
247
|
+
return endOfDesiredMonth;
|
|
248
|
+
} else {
|
|
249
|
+
// Otherwise, we now know that setting the original day-of-month value won't
|
|
250
|
+
// cause an overflow, so set the desired day-of-month. Note that we can't
|
|
251
|
+
// just set the date of `endOfDesiredMonth` because that object may have had
|
|
252
|
+
// its time changed in the unusual case where where a DST transition was on
|
|
253
|
+
// the last day of the month and its local time was in the hour skipped or
|
|
254
|
+
// repeated next to a DST transition. So we use `date` instead which is
|
|
255
|
+
// guaranteed to still have the original time.
|
|
256
|
+
_date.setFullYear(
|
|
257
|
+
endOfDesiredMonth.getFullYear(),
|
|
258
|
+
endOfDesiredMonth.getMonth(),
|
|
259
|
+
dayOfMonth,
|
|
260
|
+
);
|
|
261
|
+
return _date;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The {@link add} function options.
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @name add
|
|
271
|
+
* @category Common Helpers
|
|
272
|
+
* @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
|
|
273
|
+
*
|
|
274
|
+
* @description
|
|
275
|
+
* Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date.
|
|
276
|
+
*
|
|
277
|
+
* @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
278
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
279
|
+
*
|
|
280
|
+
* @param date - The date to be changed
|
|
281
|
+
* @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added.
|
|
282
|
+
* @param options - An object with options
|
|
283
|
+
*
|
|
284
|
+
* @returns The new date with the seconds added
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* // Add the following duration to 1 September 2014, 10:19:50
|
|
288
|
+
* const result = add(new Date(2014, 8, 1, 10, 19, 50), {
|
|
289
|
+
* years: 2,
|
|
290
|
+
* months: 9,
|
|
291
|
+
* weeks: 1,
|
|
292
|
+
* days: 7,
|
|
293
|
+
* hours: 5,
|
|
294
|
+
* minutes: 9,
|
|
295
|
+
* seconds: 30,
|
|
296
|
+
* })
|
|
297
|
+
* //=> Thu Jun 15 2017 15:29:20
|
|
298
|
+
*/
|
|
299
|
+
function add(date, duration, options) {
|
|
300
|
+
const {
|
|
301
|
+
years = 0,
|
|
302
|
+
months = 0,
|
|
303
|
+
weeks = 0,
|
|
304
|
+
days = 0,
|
|
305
|
+
hours = 0,
|
|
306
|
+
minutes = 0,
|
|
307
|
+
seconds = 0,
|
|
308
|
+
} = duration;
|
|
309
|
+
|
|
310
|
+
// Add years and months
|
|
311
|
+
const _date = toDate$1(date);
|
|
312
|
+
const dateWithMonths =
|
|
313
|
+
months || years ? addMonths$1(_date, months + years * 12) : _date;
|
|
314
|
+
|
|
315
|
+
// Add weeks and days
|
|
316
|
+
const dateWithDays =
|
|
317
|
+
days || weeks ? addDays$1(dateWithMonths, days + weeks * 7) : dateWithMonths;
|
|
318
|
+
|
|
319
|
+
// Add days, hours, minutes, and seconds
|
|
320
|
+
const minutesToAdd = minutes + hours * 60;
|
|
321
|
+
const secondsToAdd = seconds + minutesToAdd * 60;
|
|
322
|
+
const msToAdd = secondsToAdd * 1000;
|
|
323
|
+
|
|
324
|
+
return constructFrom$1(date, +dateWithDays + msToAdd);
|
|
325
|
+
}
|
|
326
|
+
|
|
157
327
|
const formatDistanceLocale$1 = {
|
|
158
328
|
lessThanXSeconds: {
|
|
159
329
|
one: "less than a second",
|
|
@@ -15737,13 +15907,32 @@ var PRESELECT_CHANGE_VIA_NAVIGATE = "navigate";
|
|
|
15737
15907
|
var parseTimeThreshold = function (timeThreshold) {
|
|
15738
15908
|
return timeThreshold.split(':').map(Number);
|
|
15739
15909
|
};
|
|
15910
|
+
var parseDateConfig = function (config) {
|
|
15911
|
+
var _a;
|
|
15912
|
+
if (!config)
|
|
15913
|
+
return undefined;
|
|
15914
|
+
// string - parse absolute date
|
|
15915
|
+
if (typeof config === 'string') {
|
|
15916
|
+
var date = parseISO$1(config);
|
|
15917
|
+
return date.toString() === 'Invalid Date' ? undefined : date;
|
|
15918
|
+
}
|
|
15919
|
+
// object - parse relative date
|
|
15920
|
+
if (typeof config === 'object' &&
|
|
15921
|
+
config.number !== undefined &&
|
|
15922
|
+
config.unit) {
|
|
15923
|
+
var now = new Date();
|
|
15924
|
+
var number = config.number, unit = config.unit;
|
|
15925
|
+
return add(now, (_a = {}, _a[unit] = number, _a));
|
|
15926
|
+
}
|
|
15927
|
+
return undefined;
|
|
15928
|
+
};
|
|
15740
15929
|
var stopTouchPropagation = function (e) { return e.stopPropagation(); };
|
|
15741
15930
|
function DateSelectorField(_a) {
|
|
15742
|
-
var _b, _c, _d;
|
|
15743
|
-
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel,
|
|
15931
|
+
var _b, _c, _d, _e, _f;
|
|
15932
|
+
var element = _a.element, responsiveStyles = _a.responsiveStyles, fieldLabel = _a.fieldLabel, _g = _a.elementProps, elementProps = _g === void 0 ? {} : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, repeatIndex = _a.repeatIndex, editMode = _a.editMode, _k = _a.onComplete, onComplete = _k === void 0 ? function () { } : _k, _l = _a.onEnter, onEnter = _l === void 0 ? function () { } : _l, _m = _a.setRef, setRef = _m === void 0 ? function () { } : _m, _o = _a.value, value = _o === void 0 ? '' : _o, inlineError = _a.inlineError, children = _a.children;
|
|
15744
15933
|
var servarMeta = element.servar.metadata;
|
|
15745
15934
|
var pickerRef = useRef(undefined);
|
|
15746
|
-
var
|
|
15935
|
+
var _p = __read(useState(null), 2), internalDate = _p[0], setInternalDate = _p[1];
|
|
15747
15936
|
var translation = element.properties.translate || {};
|
|
15748
15937
|
var containerRef = useRef(null);
|
|
15749
15938
|
var shouldRestoreCalendarRef = useRef(false);
|
|
@@ -15751,7 +15940,7 @@ function DateSelectorField(_a) {
|
|
|
15751
15940
|
monthNames: translation.months,
|
|
15752
15941
|
shortDayNames: translation.weekdays
|
|
15753
15942
|
});
|
|
15754
|
-
var
|
|
15943
|
+
var _q = __read(useState(0), 2), curPointerY = _q[0], setCurPointerY = _q[1];
|
|
15755
15944
|
var isMobile$1 = isMobile();
|
|
15756
15945
|
var isEmbedded = ((_b = featheryWindow()) === null || _b === void 0 ? void 0 : _b.self) !== ((_c = featheryWindow()) === null || _c === void 0 ? void 0 : _c.top);
|
|
15757
15946
|
// disables mobile devices from focusing inputs through a portal
|
|
@@ -15851,12 +16040,12 @@ function DateSelectorField(_a) {
|
|
|
15851
16040
|
if (isComplete)
|
|
15852
16041
|
onComplete(formatDateString(newDate, servarMeta));
|
|
15853
16042
|
};
|
|
15854
|
-
var
|
|
16043
|
+
var _r = useBorder({
|
|
15855
16044
|
element: element,
|
|
15856
16045
|
error: inlineError,
|
|
15857
16046
|
breakpoint: responsiveStyles.getMobileBreakpoint()
|
|
15858
|
-
}), borderStyles =
|
|
15859
|
-
var
|
|
16047
|
+
}), borderStyles = _r.borderStyles, customBorder = _r.customBorder;
|
|
16048
|
+
var _s = __read(useState(false), 2), focused = _s[0], setFocused = _s[1];
|
|
15860
16049
|
var dateMask = servarMeta.display_format ? 'dd/MM/yyyy' : 'MM/dd/yyyy';
|
|
15861
16050
|
var timeMask = servarMeta.time_format === '24hr' ? 'HH:mm' : 'hh:mm aa';
|
|
15862
16051
|
if (servarMeta.choose_time)
|
|
@@ -15891,7 +16080,11 @@ function DateSelectorField(_a) {
|
|
|
15891
16080
|
}, onBlur: function () { return setFocused(false); }, onKeyDown: function (e) {
|
|
15892
16081
|
if (e.key === 'Enter')
|
|
15893
16082
|
onEnter(e);
|
|
15894
|
-
}, required: required, readOnly: disabled, filterDate: filterPassedDate, filterTime: filterPassedTime, showTimeSelect: (_d = servarMeta.choose_time) !== null && _d !== void 0 ? _d : false, timeIntervals: servarMeta.time_interval || 30, dateFormat: dateMask, timeFormat: timeMask, maxDate:
|
|
16083
|
+
}, required: required, readOnly: disabled, filterDate: filterPassedDate, filterTime: filterPassedTime, showTimeSelect: (_d = servarMeta.choose_time) !== null && _d !== void 0 ? _d : false, timeIntervals: servarMeta.time_interval || 30, dateFormat: dateMask, timeFormat: timeMask, maxDate: editMode
|
|
16084
|
+
? undefined
|
|
16085
|
+
: (_e = parseDateConfig(servarMeta.max_date)) !== null && _e !== void 0 ? _e : (servarMeta.no_future ? new Date() : undefined), minDate: editMode
|
|
16086
|
+
? undefined
|
|
16087
|
+
: (_f = parseDateConfig(servarMeta.min_date)) !== null && _f !== void 0 ? _f : (servarMeta.no_past ? new Date() : undefined), showMonthDropdown: true, showYearDropdown: true, forceShowMonthNavigation: false, dropdownMode: 'select',
|
|
15895
16088
|
// Open up calendar as a modal in mobile
|
|
15896
16089
|
withPortal: isMobile$1, portalId: isMobile$1 ? 'feathery-portal' : undefined, "aria-label": element.properties.aria_label, css: __assign(__assign(__assign({ height: '100%', width: '100%', border: 'none', margin: 0, background: 'transparent' }, resetStyles), responsiveStyles.getTarget('field')), (focused || value || !element.properties.placeholder
|
|
15897
16090
|
? {}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as jsxs, a as __assign, b as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.
|
|
1
|
+
import { j as jsxs, a as __assign, b as jsx, i as iosScrollOnFocus, r as resetStyles } from './fthry_index.CB2vMsnM.js';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
|
-
import { F as FormControl } from './fthry_FormControl.
|
|
4
|
-
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.
|
|
5
|
-
import { I as InlineTooltip } from './fthry_InlineTooltip.
|
|
6
|
-
import { u as useSalesforceSync } from './fthry_useSalesforceSync.
|
|
3
|
+
import { F as FormControl } from './fthry_FormControl.1iiH8b4i.js';
|
|
4
|
+
import { applyCheckableInputStyles, composeCheckableInputStyle, applyHeightWidthMarginByFontSize } from './fthry_index.De_KEVYz.js';
|
|
5
|
+
import { I as InlineTooltip } from './fthry_InlineTooltip.CREexk6k.js';
|
|
6
|
+
import { u as useSalesforceSync } from './fthry_useSalesforceSync.DL2Ww72M.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react-dom/client';
|
|
9
9
|
import 'jszip';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './fthry_Overlay.
|
|
11
|
+
import './fthry_Overlay.4bM7bqaM.js';
|
|
12
12
|
|
|
13
13
|
var applyCheckboxGroupStyles = function (element, responsiveStyles) {
|
|
14
14
|
responsiveStyles.addTargets('checkboxGroup');
|