@pdg/react-form 1.0.158 → 1.0.160

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.
@@ -5,6 +5,7 @@ export interface FormFileProps extends CommonSxProps, FormValueItemProps<FormFil
5
5
  required?: boolean;
6
6
  accept?: string;
7
7
  hideUrl?: boolean;
8
+ tabIndex?: number;
8
9
  uploadLabel?: string;
9
10
  uploadTabIndex?: number;
10
11
  hideUpload?: boolean;
package/dist/index.esm.js CHANGED
@@ -9086,7 +9086,7 @@ var FormFile = React.forwardRef(function (_a, ref) {
9086
9086
  * ******************************************************************************************************************/
9087
9087
  var initVariant = _a.variant, initSize = _a.size, initColor = _a.color, initFocused = _a.focused, initLabelShrink = _a.labelShrink, initFullWidth = _a.fullWidth,
9088
9088
  //----------------------------------------------------------------------------------------------------------------
9089
- accept = _a.accept, hideUrl = _a.hideUrl, uploadLabel = _a.uploadLabel, uploadTabIndex = _a.uploadTabIndex, hideUpload = _a.hideUpload, hideUploadLabel = _a.hideUploadLabel, linkLabel = _a.linkLabel, linkTabIndex = _a.linkTabIndex, hideLink = _a.hideLink, hideLinkLabel = _a.hideLinkLabel, removeLabel = _a.removeLabel, removeTabIndex = _a.removeTabIndex, hideRemove = _a.hideRemove, hideRemoveLabel = _a.hideRemoveLabel, maxFileSize = _a.maxFileSize, preview = _a.preview, initHidden = _a.hidden, onFile = _a.onFile, onLink = _a.onLink,
9089
+ accept = _a.accept, hideUrl = _a.hideUrl, tabIndex = _a.tabIndex, uploadLabel = _a.uploadLabel, uploadTabIndex = _a.uploadTabIndex, hideUpload = _a.hideUpload, hideUploadLabel = _a.hideUploadLabel, linkLabel = _a.linkLabel, linkTabIndex = _a.linkTabIndex, hideLink = _a.hideLink, hideLinkLabel = _a.hideLinkLabel, removeLabel = _a.removeLabel, removeTabIndex = _a.removeTabIndex, hideRemove = _a.hideRemove, hideRemoveLabel = _a.hideRemoveLabel, maxFileSize = _a.maxFileSize, preview = _a.preview, initHidden = _a.hidden, onFile = _a.onFile, onLink = _a.onLink,
9090
9090
  //----------------------------------------------------------------------------------------------------------------
9091
9091
  name = _a.name, labelIcon = _a.labelIcon, initLabel = _a.label, required = _a.required, readOnly = _a.readOnly, initDisabled = _a.disabled, initError = _a.error, helperText = _a.helperText, _b = _a.value, initValue = _b === void 0 ? '' : _b, initData = _a.data, exceptValue = _a.exceptValue, onChange = _a.onChange, onValidate = _a.onValidate,
9092
9092
  //----------------------------------------------------------------------------------------------------------------
@@ -9346,9 +9346,9 @@ var FormFile = React.forwardRef(function (_a, ref) {
9346
9346
  innerRef.current = ref;
9347
9347
  }, inputRef: textFieldRef, className: 'file-name', variant: variant, label: labelIcon ? (React.createElement(React.Fragment, null,
9348
9348
  React.createElement(PdgIcon, { style: { verticalAlign: 'middle', marginRight: 4 } }, labelIcon),
9349
- React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, error: error, slotProps: {
9349
+ React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, tabIndex: tabIndex, error: error, slotProps: {
9350
9350
  inputLabel: labelShrink ? { shrink: labelShrink } : undefined,
9351
- htmlInput: { readOnly: true },
9351
+ htmlInput: { readOnly: true, tabIndex: tabIndex },
9352
9352
  input: {
9353
9353
  endAdornment: (React.createElement(InputAdornment, { position: 'end' },
9354
9354
  React.createElement("div", { className: 'input-file-wrap' },
@@ -9507,7 +9507,7 @@ FormFile.displayName = 'FormFile';insertStyle(".FormImageFile .preview-img{max-w
9507
9507
  * Render
9508
9508
  * ******************************************************************************************************************/
9509
9509
  return (React.createElement(React.Fragment, null,
9510
- React.createElement(FormFile, __assign({ ref: ref, className: classNames(className, 'FormImageFile'), accept: accept, value: value, preview: preview && value ? (React.createElement("a", { href: value, target: '_blank' },
9510
+ React.createElement(FormFile, __assign({ ref: ref, className: classNames(className, 'FormImageFile'), accept: accept, value: value, preview: preview && value ? (React.createElement("a", { href: value, target: '_blank', tabIndex: -1 },
9511
9511
  React.createElement(Tooltip, { title: React.createElement("div", { style: { paddingTop: 3, paddingBottom: 3 } },
9512
9512
  React.createElement("img", { src: value, style: { maxWidth: '100%', verticalAlign: 'middle' }, alt: '' })) },
9513
9513
  React.createElement("img", { className: 'preview-img', src: value, style: { maxHeight: previewMaxHeight || undefined }, alt: '' })))) : undefined, onChange: handleChange, onFile: handleFile, onLink: handleLink }, props)),
package/dist/index.js CHANGED
@@ -9086,7 +9086,7 @@ var FormFile = React.forwardRef(function (_a, ref) {
9086
9086
  * ******************************************************************************************************************/
9087
9087
  var initVariant = _a.variant, initSize = _a.size, initColor = _a.color, initFocused = _a.focused, initLabelShrink = _a.labelShrink, initFullWidth = _a.fullWidth,
9088
9088
  //----------------------------------------------------------------------------------------------------------------
9089
- accept = _a.accept, hideUrl = _a.hideUrl, uploadLabel = _a.uploadLabel, uploadTabIndex = _a.uploadTabIndex, hideUpload = _a.hideUpload, hideUploadLabel = _a.hideUploadLabel, linkLabel = _a.linkLabel, linkTabIndex = _a.linkTabIndex, hideLink = _a.hideLink, hideLinkLabel = _a.hideLinkLabel, removeLabel = _a.removeLabel, removeTabIndex = _a.removeTabIndex, hideRemove = _a.hideRemove, hideRemoveLabel = _a.hideRemoveLabel, maxFileSize = _a.maxFileSize, preview = _a.preview, initHidden = _a.hidden, onFile = _a.onFile, onLink = _a.onLink,
9089
+ accept = _a.accept, hideUrl = _a.hideUrl, tabIndex = _a.tabIndex, uploadLabel = _a.uploadLabel, uploadTabIndex = _a.uploadTabIndex, hideUpload = _a.hideUpload, hideUploadLabel = _a.hideUploadLabel, linkLabel = _a.linkLabel, linkTabIndex = _a.linkTabIndex, hideLink = _a.hideLink, hideLinkLabel = _a.hideLinkLabel, removeLabel = _a.removeLabel, removeTabIndex = _a.removeTabIndex, hideRemove = _a.hideRemove, hideRemoveLabel = _a.hideRemoveLabel, maxFileSize = _a.maxFileSize, preview = _a.preview, initHidden = _a.hidden, onFile = _a.onFile, onLink = _a.onLink,
9090
9090
  //----------------------------------------------------------------------------------------------------------------
9091
9091
  name = _a.name, labelIcon = _a.labelIcon, initLabel = _a.label, required = _a.required, readOnly = _a.readOnly, initDisabled = _a.disabled, initError = _a.error, helperText = _a.helperText, _b = _a.value, initValue = _b === void 0 ? '' : _b, initData = _a.data, exceptValue = _a.exceptValue, onChange = _a.onChange, onValidate = _a.onValidate,
9092
9092
  //----------------------------------------------------------------------------------------------------------------
@@ -9346,9 +9346,9 @@ var FormFile = React.forwardRef(function (_a, ref) {
9346
9346
  innerRef.current = ref;
9347
9347
  }, inputRef: textFieldRef, className: 'file-name', variant: variant, label: labelIcon ? (React.createElement(React.Fragment, null,
9348
9348
  React.createElement(reactComponent.PdgIcon, { style: { verticalAlign: 'middle', marginRight: 4 } }, labelIcon),
9349
- React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, error: error, slotProps: {
9349
+ React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, tabIndex: tabIndex, error: error, slotProps: {
9350
9350
  inputLabel: labelShrink ? { shrink: labelShrink } : undefined,
9351
- htmlInput: { readOnly: true },
9351
+ htmlInput: { readOnly: true, tabIndex: tabIndex },
9352
9352
  input: {
9353
9353
  endAdornment: (React.createElement(material.InputAdornment, { position: 'end' },
9354
9354
  React.createElement("div", { className: 'input-file-wrap' },
@@ -9507,7 +9507,7 @@ FormFile.displayName = 'FormFile';insertStyle(".FormImageFile .preview-img{max-w
9507
9507
  * Render
9508
9508
  * ******************************************************************************************************************/
9509
9509
  return (React.createElement(React.Fragment, null,
9510
- React.createElement(FormFile, __assign({ ref: ref, className: classNames(className, 'FormImageFile'), accept: accept, value: value, preview: preview && value ? (React.createElement("a", { href: value, target: '_blank' },
9510
+ React.createElement(FormFile, __assign({ ref: ref, className: classNames(className, 'FormImageFile'), accept: accept, value: value, preview: preview && value ? (React.createElement("a", { href: value, target: '_blank', tabIndex: -1 },
9511
9511
  React.createElement(material.Tooltip, { title: React.createElement("div", { style: { paddingTop: 3, paddingBottom: 3 } },
9512
9512
  React.createElement("img", { src: value, style: { maxWidth: '100%', verticalAlign: 'middle' }, alt: '' })) },
9513
9513
  React.createElement("img", { className: 'preview-img', src: value, style: { maxHeight: previewMaxHeight || undefined }, alt: '' })))) : undefined, onChange: handleChange, onFile: handleFile, onLink: handleLink }, props)),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pdg/react-form",
3
3
  "title": "React Form",
4
- "version": "1.0.158",
4
+ "version": "1.0.160",
5
5
  "description": "React Form",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",