@servicetitan/form 21.5.0 → 21.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,8 +38,8 @@ export declare class DateRangePicker extends Component<DateRangePickerProps> {
38
38
  componentDidMount(): void;
39
39
  componentWillUnmount(): void;
40
40
  handleChange: (event: DateRangePickerChangeEvent) => void;
41
- handleFromChange: (from?: Date | undefined) => void;
42
- handleToChange: (to?: Date | undefined) => void;
41
+ handleFromChange: (from?: Date) => void;
42
+ handleToChange: (to?: Date) => void;
43
43
  render(): JSX.Element;
44
44
  formatDate(date?: Date, inputFormat?: string): string;
45
45
  handleHiddenInputChange: (ev: SyntheticEvent<HTMLInputElement>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../src/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAEH,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,EACb,MAAM,kCAAkC,CAAC;AAO1C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IACzC,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,aAAa,CA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;IAGF,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO;IAIzB,iBAAiB,QAAS,KAAK,UAqB7B;IAEF,0BAA0B,aAExB;IAEF,eAAe,aAUb;IAEF,iBAAiB;IAIjB,oBAAoB;IAIpB,YAAY,UAAW,0BAA0B,UAQ/C;IAEF,gBAAgB,UAAW,IAAI,UAQ7B;IAEF,cAAc,QAAS,IAAI,UAQzB;IAEF,MAAM;IA8HN,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,SAAM;IAIzC,uBAAuB,OAAQ,eAAe,gBAAgB,CAAC,UAG7D;IAEF,IAAI,WAAW,qBAad;IAED,IAAI,SAAS,qBAYZ;CACJ"}
@@ -7,7 +7,8 @@ interface UploadError {
7
7
  file: File;
8
8
  message?: string;
9
9
  }
10
- interface FileUploaderProps extends Pick<FilePickerProps, 'limitReached' | 'typesNote' | 'multiple' | 'accept' | 'layout' | 'align'> {
10
+ declare type ExcludedFilePickerProps = 'onDelete' | 'onDownload' | 'onReplace' | 'onSelected' | 'value';
11
+ interface FileUploaderProps extends Omit<FilePickerProps, ExcludedFilePickerProps> {
11
12
  config?: FileUploaderConfig;
12
13
  value: FileDescriptor[];
13
14
  folderName?: string;
@@ -26,8 +27,8 @@ export declare class FileUploader extends Component<FileUploaderProps> {
26
27
  addError(file: File, message?: string): void;
27
28
  clearErrors(): void;
28
29
  handleUploadProgress: (file: File, progress: number) => void;
29
- handleUploadSuccess: (file: File, message?: string | undefined) => void;
30
- handleUploadError: (file: File, message?: string | undefined) => void;
30
+ handleUploadSuccess: (file: File, message?: string) => void;
31
+ handleUploadError: (file: File, message?: string) => void;
31
32
  componentDidMount(): void;
32
33
  componentWillUnmount(): void;
33
34
  handleDownload: (file: FileDescriptor) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../src/file-uploader/file-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,OAAO,CA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AY,MAAM,UAgBlD;IAGF,mBAAmB,SAAU,IAAI,YAAY,MAAM,UAiBjD;IAGF,iBAAiB,SAAU,IAAI,YAAY,MAAM,UAU/C;IAEF,iBAAiB;IAejB,oBAAoB;IAIpB,cAAc,SAAU,cAAc,UAWpC;IAEF,cAAc,UAAW,QAAQ,UAc/B;IAEF,aAAa;cAAyC,cAAc;iBAAW,IAAI;eAgBjF;IAEF,YAAY,aAAc,cAAc,UAQtC;IAEF,iBAAiB,aAEf;IAEF,MAAM;CAwDT"}
@@ -7,6 +7,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
+ var __rest = (this && this.__rest) || function (s, e) {
11
+ var t = {};
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
+ t[p] = s[p];
14
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
+ t[p[i]] = s[p[i]];
18
+ }
19
+ return t;
20
+ };
10
21
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
11
22
  import { Component, Fragment } from 'react';
12
23
  import { injectDependency, optional } from '@servicetitan/react-ioc';
@@ -177,7 +188,7 @@ let FileUploader = class FileUploader extends Component {
177
188
  this.uploader.cancel();
178
189
  }
179
190
  render() {
180
- const { value, onChange, hideReplace, hideDownload, limitReached, typesNote, multiple, accept, layout, align, } = this.props;
191
+ const _a = this.props, { value, onChange, hideReplace, hideDownload, limitReached, multiple, config, folderName } = _a, rest = __rest(_a, ["value", "onChange", "hideReplace", "hideDownload", "limitReached", "multiple", "config", "folderName"]);
181
192
  if (!onChange && !value.length) {
182
193
  return null;
183
194
  }
@@ -188,7 +199,7 @@ let FileUploader = class FileUploader extends Component {
188
199
  onDelete: undefined,
189
200
  limitReached: true,
190
201
  };
191
- return (_jsxs(Fragment, { children: [!!this.errors.length && (_jsx(UploadErrors, { errors: this.errors, onClose: this.handleErrorsClose, className: "m-b-2", multiple: multiple })), _jsx(Confirm, Object.assign({ onConfirm: this.handleDelete, title: "Are you sure you want to delete this file?" }, { children: onDelete => (_jsx(FilePicker, Object.assign({ value: value.length ? value : undefined, onReplace: !hideReplace ? this.handleReplace : undefined, onSelected: this.handleSelected, onDelete: onDelete, onDownload: !hideDownload ? this.handleDownload : undefined, limitReached: limitReached, typesNote: typesNote, multiple: multiple, accept: accept, layout: layout, align: align }, readonlyProps))) }))] }));
202
+ return (_jsxs(Fragment, { children: [!!this.errors.length && (_jsx(UploadErrors, { errors: this.errors, onClose: this.handleErrorsClose, className: "m-b-2", multiple: multiple })), _jsx(Confirm, Object.assign({ onConfirm: this.handleDelete, title: "Are you sure you want to delete this file?" }, { children: onDelete => (_jsx(FilePicker, Object.assign({ value: value.length ? value : undefined, onReplace: !hideReplace ? this.handleReplace : undefined, onSelected: this.handleSelected, onDelete: onDelete, onDownload: !hideDownload ? this.handleDownload : undefined, limitReached: limitReached, multiple: multiple }, rest, readonlyProps))) }))] }));
192
203
  }
193
204
  };
194
205
  Object.defineProperty(FileUploader, "defaultProps", {
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.js","sourceRoot":"","sources":["../../src/file-uploader/file-uploader.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAM,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAkB,MAAM,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BAAgB,CAAC,iCAAiC,CAAC;IACnD,QAAQ,EAAE;;4CACyB;AAExB;IAAX,UAAU;;4CAA4B;AAUvC;IADC,MAAM;;qCACQ,IAAI;;4CAMlB;AAGD;IADC,MAAM;;;;+CAGN;AAGD;IADC,MAAM;;0DAiBL;AAGF;IADC,MAAM;;yDAkBL;AAGF;IADC,MAAM;;uDAWL;AAlFO,YAAY;IADxB,QAAQ;;GACI,YAAY,CA4NxB;SA5NY,YAAY"}
@@ -5,8 +5,8 @@ interface DateRangeFieldStates {
5
5
  endDate: DatetimeFieldState;
6
6
  }
7
7
  export declare const FormValidators: {
8
- required: (value?: FormValues | undefined) => string | false;
9
- requiredWithCustomMessage: (errorMessage: string) => (value?: FormValues | undefined) => string | false;
8
+ required: (value?: FormValues) => string | false;
9
+ requiredWithCustomMessage: (errorMessage: string) => (value?: FormValues) => string | false;
10
10
  hasLowerCase: (str: string) => boolean;
11
11
  hasUpperCase: (str: string) => boolean;
12
12
  hasNumber: (str: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"form-validators.d.ts","sourceRoot":"","sources":["../src/form-validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,UAAU,oBAAoB;IAC1B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAcD,eAAO,MAAM,cAAc;;8CAImB,MAAM;wBAG5B,MAAM;wBAEN,MAAM;qBAET,MAAM;sCAEW,MAAM;gCAMZ,MAAM;gDAQf,MAAM;;;wBAUL,IAAI,GAAG,IAAI;kCAID,oBAAoB;8DAQlC,SAAS,GAAG,SAAS;2DAKrB,SAAS,GAAG,SAAS;4CAOG,MAAM,WAAW,SAAS,GAAG,SAAS;0BAUxD,MAAM;8BAEF,MAAM,UAAU,MAAM,WAAW,MAAM;2BAG1C,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;2BAG7C,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;+BAGzC,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;CAE3E,CAAC"}
1
+ {"version":3,"file":"form-validators.d.ts","sourceRoot":"","sources":["../src/form-validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,UAAU,oBAAoB;IAC1B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAcD,eAAO,MAAM,cAAc;uBACJ,UAAU;8CAGa,MAAM,cAAc,UAAU;wBAGpD,MAAM;wBAEN,MAAM;qBAET,MAAM;sCAEW,MAAM;gCAMZ,MAAM;gDAQf,MAAM;;;wBAUL,IAAI,GAAG,IAAI;kCAID,oBAAoB;8DAQlC,SAAS,GAAG,SAAS;2DAKrB,SAAS,GAAG,SAAS;4CAOG,MAAM,WAAW,SAAS,GAAG,SAAS;0BAUxD,MAAM;8BAEF,MAAM,UAAU,MAAM,WAAW,MAAM;2BAG1C,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;2BAG7C,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;+BAGzC,MAAM,aAAa,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS;CAE3E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/form",
3
- "version": "21.5.0",
3
+ "version": "21.7.1",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/form",
6
6
  "repository": {
@@ -16,20 +16,20 @@
16
16
  "src"
17
17
  ],
18
18
  "devDependencies": {
19
- "@servicetitan/confirm": "^21.5.0",
20
- "@servicetitan/culture": "^21.5.0",
21
- "@servicetitan/data-query": "^21.5.0",
22
- "@servicetitan/design-system": "~11.5.1",
23
- "@servicetitan/react-ioc": "^21.5.0",
24
- "@servicetitan/tokens": "~11.5.1",
19
+ "@servicetitan/confirm": "^21.7.1",
20
+ "@servicetitan/culture": "^21.7.1",
21
+ "@servicetitan/data-query": "^21.7.1",
22
+ "@servicetitan/design-system": "~11.8.0",
23
+ "@servicetitan/react-ioc": "^21.7.1",
24
+ "@servicetitan/tokens": "~11.8.0",
25
25
  "@types/debounce": "~1.2.1",
26
26
  "@types/react": "~17.0.38",
27
27
  "@types/react-input-mask": "~2.0.5",
28
28
  "@types/uuid": "~8.3.4",
29
29
  "accounting": "~0.4.1",
30
30
  "formstate": "~2.0.0",
31
- "mobx": "~6.5.0",
32
- "mobx-react": "~7.3.0",
31
+ "mobx": "~6.6.0",
32
+ "mobx-react": "~7.5.0",
33
33
  "moment": "~2.29.3",
34
34
  "react": "~17.0.2",
35
35
  "react-dom": "~17.0.2",
@@ -39,13 +39,13 @@
39
39
  "@servicetitan/confirm": "^20.0.0",
40
40
  "@servicetitan/culture": "^20.0.0",
41
41
  "@servicetitan/data-query": "^20.0.0",
42
- "@servicetitan/design-system": "~11.5.1",
42
+ "@servicetitan/design-system": "~11.8.0",
43
43
  "@servicetitan/react-ioc": "^20.0.0",
44
- "@servicetitan/tokens": "~11.5.1",
44
+ "@servicetitan/tokens": "~11.8.0",
45
45
  "accounting": "~0.4.1",
46
46
  "formstate": "~2.0.0",
47
- "mobx": "~6.5.0",
48
- "mobx-react": "~7.3.0",
47
+ "mobx": "~6.6.0",
48
+ "mobx-react": "~7.5.0",
49
49
  "moment": "~2.29.3",
50
50
  "react": "~17.0.2",
51
51
  "react-dom": "~17.0.2",
@@ -66,5 +66,5 @@
66
66
  "cli": {
67
67
  "webpack": false
68
68
  },
69
- "gitHead": "89d93e2fb97c9334a197ac9da8638ca287c3cf62"
69
+ "gitHead": "a998bbfaaf3ceeb12cda469af9b6a8d56be0f8a0"
70
70
  }
@@ -49,11 +49,9 @@ const UploadErrors: FC<UploadErrorsProps> = ({ errors, className, onClose, multi
49
49
  );
50
50
  };
51
51
 
52
- interface FileUploaderProps
53
- extends Pick<
54
- FilePickerProps,
55
- 'limitReached' | 'typesNote' | 'multiple' | 'accept' | 'layout' | 'align'
56
- > {
52
+ type ExcludedFilePickerProps = 'onDelete' | 'onDownload' | 'onReplace' | 'onSelected' | 'value';
53
+
54
+ interface FileUploaderProps extends Omit<FilePickerProps, ExcludedFilePickerProps> {
57
55
  config?: FileUploaderConfig;
58
56
  value: FileDescriptor[];
59
57
  folderName?: string;
@@ -234,11 +232,10 @@ export class FileUploader extends Component<FileUploaderProps> {
234
232
  hideReplace,
235
233
  hideDownload,
236
234
  limitReached,
237
- typesNote,
238
235
  multiple,
239
- accept,
240
- layout,
241
- align,
236
+ config,
237
+ folderName,
238
+ ...rest
242
239
  } = this.props;
243
240
 
244
241
  if (!onChange && !value.length) {
@@ -275,11 +272,8 @@ export class FileUploader extends Component<FileUploaderProps> {
275
272
  onDelete={onDelete}
276
273
  onDownload={!hideDownload ? this.handleDownload : undefined}
277
274
  limitReached={limitReached}
278
- typesNote={typesNote}
279
275
  multiple={multiple}
280
- accept={accept}
281
- layout={layout}
282
- align={align}
276
+ {...rest}
283
277
  {...readonlyProps}
284
278
  />
285
279
  )}