@servicetitan/dte-pdf-editor 1.74.0 → 1.76.0
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/components/field-sidebar/form-fields-type-list.d.ts.map +1 -1
- package/dist/components/field-sidebar/form-fields-type-list.js +1 -2
- package/dist/components/field-sidebar/form-fields-type-list.js.map +1 -1
- package/package.json +2 -3
- package/src/components/field-sidebar/form-fields-type-list.tsx +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-fields-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/field-sidebar/form-fields-type-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-fields-type-list.d.ts","sourceRoot":"","sources":["../../../src/components/field-sidebar/form-fields-type-list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5E,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1C,SAAS,IAAI,IAAI,CAAC;IAClB,WAAW,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkG1D,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button, Flex, Text } from '@servicetitan/anvil2';
|
|
3
3
|
import IconArrowBack from '@servicetitan/anvil2/assets/icons/material/round/keyboard_arrow_left.svg';
|
|
4
4
|
import IconArrowForward from '@servicetitan/anvil2/assets/icons/material/round/keyboard_arrow_right.svg';
|
|
5
|
-
import { Stack } from '@servicetitan/design-system';
|
|
6
5
|
import { Fragment } from 'react';
|
|
7
6
|
import { getFieldSampleData } from '../../utils';
|
|
8
7
|
import { FieldType } from './field-type';
|
|
@@ -10,6 +9,6 @@ export const FormFieldsTypeList = ({ fieldOptions, forms, isLoadingFormFields =
|
|
|
10
9
|
return (_jsx(Flex, { direction: "column", gap: 3, flex: 1, style: { minHeight: 0 }, children: _jsx("div", { className: "dte-formula-sidebar-slide-outer", children: _jsxs("div", { className: `dte-formula-sidebar-slide-track${selectedForm ? ' --detail' : ''}`, children: [_jsx("div", { className: "dte-formula-sidebar-slide-panel", children: forms.length > 0 ? (_jsx("ul", { className: "dte-formula-field-list", role: "listbox", "aria-label": "Forms", children: forms.map(form => (_jsx("li", { role: "option", className: "dte-formula-field-list-item", onMouseDown: e => {
|
|
11
10
|
e.preventDefault();
|
|
12
11
|
onSelectForm(form);
|
|
13
|
-
}, children: _jsxs(
|
|
12
|
+
}, children: _jsxs(Flex, { justifyContent: "space-between", alignItems: "center", children: [_jsx("span", { className: "dte-text-ellipsis", title: form.name, children: form.name }), _jsx(IconArrowForward, {})] }) }, form.id))) })) : (_jsx(Text, { size: "small", subdued: true, variant: "body", children: "No forms configured." })) }), _jsx("div", { className: "dte-formula-sidebar-slide-panel --form-fields", children: selectedForm ? (_jsxs(Fragment, { children: [_jsx(Button, { style: { width: '100%' }, appearance: "ghost", size: "small", icon: IconArrowBack, title: selectedForm.name, onClick: () => onSelectForm(null), children: _jsx(Text, { size: "medium", className: "dte-text-ellipsis", style: { fontWeight: 'bold', width: '100%' }, children: selectedForm.name }) }), _jsx("div", { className: "dte-field-type-group", children: isLoadingFormFields ? (_jsx(Text, { size: "small", subdued: true, variant: "body", children: "Loading fields\u2026" })) : fieldOptions.length === 0 ? (_jsx(Text, { size: "small", subdued: true, variant: "body", children: "No fields on this form." })) : (fieldOptions.map(option => (_jsx(FieldType, { label: option.label, sampleData: getFieldSampleData(option.sampleData, option.fieldType), onDragEnd: onDragEnd, onDragStart: () => onDragStart(option) }, option.path)))) })] })) : null })] }) }) }));
|
|
14
13
|
};
|
|
15
14
|
//# sourceMappingURL=form-fields-type-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-fields-type-list.js","sourceRoot":"","sources":["../../../src/components/field-sidebar/form-fields-type-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,aAAa,MAAM,0EAA0E,CAAC;AACrG,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,
|
|
1
|
+
{"version":3,"file":"form-fields-type-list.js","sourceRoot":"","sources":["../../../src/components/field-sidebar/form-fields-type-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,aAAa,MAAM,0EAA0E,CAAC;AACrG,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAYzC,MAAM,CAAC,MAAM,kBAAkB,GAAgC,CAAC,EAC5D,YAAY,EACZ,KAAK,EACL,mBAAmB,GAAG,KAAK,EAC3B,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,GACf,EAAE,EAAE;IACD,OAAO,CACH,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,YAC7D,cAAK,SAAS,EAAC,iCAAiC,YA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K,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAE3C,YAAY,CAAC,IAAI,GACf,GACF,EACT,cAAK,SAAS,EAAC,sBAAsB,YAChC,mBAAmB,CAAC,CAAC,CAAC,CACnB,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,QAAC,OAAO,EAAC,MAAM,qCAElC,CACV,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC5B,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,QAAC,OAAO,EAAC,MAAM,wCAElC,CACV,CAAC,CAAC,CAAC,CACA,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACvB,KAAC,SAAS,IAEN,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,UAAU,EAAE,kBAAkB,CAC1B,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,SAAS,CACnB,EACD,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAPjC,MAAM,CAAC,IAAI,CAQlB,CACL,CAAC,CACL,GACC,IACC,CACd,CAAC,CAAC,CAAC,IAAI,GACN,IACJ,GACJ,GACH,CACV,CAAC;AACN,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/dte-pdf-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.76.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "tsc --build"
|
|
17
|
-
"postbuild": "startup prepare-package"
|
|
16
|
+
"build": "tsc --build && startup prepare-package"
|
|
18
17
|
},
|
|
19
18
|
"cli": {
|
|
20
19
|
"webpack": false
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Button, Flex, Text } from '@servicetitan/anvil2';
|
|
2
2
|
import IconArrowBack from '@servicetitan/anvil2/assets/icons/material/round/keyboard_arrow_left.svg';
|
|
3
3
|
import IconArrowForward from '@servicetitan/anvil2/assets/icons/material/round/keyboard_arrow_right.svg';
|
|
4
|
-
import { Stack } from '@servicetitan/design-system';
|
|
5
4
|
import { FC, Fragment } from 'react';
|
|
6
5
|
import { type FieldTypeOption, type FormInfo } from '../../interface/types';
|
|
7
6
|
import { getFieldSampleData } from '../../utils';
|
|
@@ -49,12 +48,12 @@ export const FormFieldsTypeList: FC<FormFieldsTypeListProps> = ({
|
|
|
49
48
|
onSelectForm(form);
|
|
50
49
|
}}
|
|
51
50
|
>
|
|
52
|
-
<
|
|
51
|
+
<Flex justifyContent="space-between" alignItems="center">
|
|
53
52
|
<span className="dte-text-ellipsis" title={form.name}>
|
|
54
53
|
{form.name}
|
|
55
54
|
</span>
|
|
56
55
|
<IconArrowForward />
|
|
57
|
-
</
|
|
56
|
+
</Flex>
|
|
58
57
|
</li>
|
|
59
58
|
))}
|
|
60
59
|
</ul>
|