@servicetitan/dte-pdf-editor 1.57.0 → 1.58.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.
@@ -182,13 +182,13 @@ export function ConditionRow({ canRemove, condition, fillableOptions, formFields
182
182
  ? 'Loading fields...'
183
183
  : sourceKind === FieldTypeEnum.forms && !pickerForm
184
184
  ? 'Select a form first...'
185
- : 'Select data point...' }), _jsx(Combobox.Content, { children: ({ items }) => (_jsx(Combobox.List, { children: items.map((item, i) => (_jsx(Combobox.Item, { index: i, item: item, children: item.title }, item.fullKey))) })) })] }) }), _jsx(Flex, { flex: 1, style: { minWidth: 140 }, children: _jsxs(Combobox, { flex: 1, itemToKey: (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) !== null && _a !== void 0 ? _a : ''; }, itemToString: (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : ''; }, items: operatorItems, selectedItem: selectedOperator, onChange: (item) => {
185
+ : 'Select data point...' }), _jsx(Combobox.Content, { children: ({ items }) => (_jsx(Combobox.List, { children: items.map((item, i) => (_jsx(Combobox.Item, { index: i, item: item, children: item.title }, item.fullKey))) })) })] }) }), _jsx(Flex, { flex: 1, style: { minWidth: 160 }, children: _jsxs(Combobox, { flex: 1, itemToKey: (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.value) !== null && _a !== void 0 ? _a : ''; }, itemToString: (item) => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : ''; }, items: operatorItems, selectedItem: selectedOperator, onChange: (item) => {
186
186
  var _a;
187
187
  return onChange({
188
188
  ...condition,
189
189
  operator: ((_a = item === null || item === void 0 ? void 0 : item.value) !== null && _a !== void 0 ? _a : 'is_equal_to'),
190
190
  });
191
- }, filterOptions: { keys: ['label'] }, children: [_jsx(Combobox.SelectTrigger, { label: "Condition", placeholder: "Select..." }), _jsx(Combobox.Content, { children: ({ items }) => (_jsx(Combobox.List, { children: items.map((item, i) => (_jsx(Combobox.Item, { index: i, item: item, children: item.label }, item.value))) })) })] }) }), !isValueLess && (_jsx(Flex, { flex: 1, style: { minWidth: 120 }, children: isRadioGroup ? (_jsxs(Combobox, { flex: 1, itemToKey: item => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : ''; }, itemToString: item => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : ''; }, items: radioValueOptions, selectedItem: selectedRadioValue, onChange: (item) => {
191
+ }, filterOptions: { keys: ['label'] }, children: [_jsx(Combobox.SelectTrigger, { label: "Condition", placeholder: "Select..." }), _jsx(Combobox.Content, { children: ({ items }) => (_jsx(Combobox.List, { children: items.map((item, i) => (_jsx(Combobox.Item, { index: i, item: item, children: item.label }, item.value))) })) })] }) }), !isValueLess && (_jsx(Flex, { flex: 1, style: { minWidth: 160 }, children: isRadioGroup ? (_jsxs(Combobox, { flex: 1, itemToKey: item => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.id) !== null && _a !== void 0 ? _a : ''; }, itemToString: item => { var _a; return (_a = item === null || item === void 0 ? void 0 : item.label) !== null && _a !== void 0 ? _a : ''; }, items: radioValueOptions, selectedItem: selectedRadioValue, onChange: (item) => {
192
192
  var _a;
193
193
  return onChange({
194
194
  ...condition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/dte-pdf-editor",
3
- "version": "1.57.0",
3
+ "version": "1.58.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -408,7 +408,7 @@ export function ConditionRow({
408
408
  </Combobox.Content>
409
409
  </Combobox>
410
410
  </Flex>
411
- <Flex flex={1} style={{ minWidth: 140 }}>
411
+ <Flex flex={1} style={{ minWidth: 160 }}>
412
412
  <Combobox
413
413
  flex={1}
414
414
  itemToKey={(item: OperatorOption | null) => item?.value ?? ''}
@@ -439,7 +439,7 @@ export function ConditionRow({
439
439
  </Combobox>
440
440
  </Flex>
441
441
  {!isValueLess && (
442
- <Flex flex={1} style={{ minWidth: 120 }}>
442
+ <Flex flex={1} style={{ minWidth: 160 }}>
443
443
  {isRadioGroup ? (
444
444
  <Combobox
445
445
  flex={1}