@parallelworks/ui 0.12.1 → 0.13.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.
Files changed (82) hide show
  1. package/dist/chunks/{BareModal-DBa84JZO.js → BareModal-BqroLbZ5.js} +1 -0
  2. package/dist/chunks/{CodePreviewEditor-hwjZof0M.js → CodePreviewEditor-67A_SKgE.js} +1 -1
  3. package/dist/chunks/{CreateModal-DLCC8t_x.js → CreateModal-k_e1dI8c.js} +27 -7
  4. package/dist/chunks/{Monaco-DCwRDrPm.js → Monaco-H56KyEdb.js} +22 -12
  5. package/dist/chunks/{PageHeader-dyoL44ue.js → PageHeader-FhtphHGc.js} +44 -10
  6. package/dist/chunks/{Provider-CfFV-vc5.js → Provider-CbFVFB7O.js} +8 -2
  7. package/dist/chunks/RequiredMark-DfLdYbYZ.js +11 -0
  8. package/dist/chunks/{StatusBadge-P6C2tv7Z.js → StatusBadge-RRUI78iS.js} +4 -4
  9. package/dist/chunks/{SwitchToggle-DcPCXkqL.js → SwitchToggle-DbW0Q__L.js} +49 -32
  10. package/dist/chunks/{Table-ByziK93x.js → Table-CutP1bRt.js} +22 -6
  11. package/dist/chunks/{Tooltip-WgbiC_nd.js → Tooltip-n9w7Tkt1.js} +28 -3
  12. package/dist/chunks/{editor-BH81U5-C.js → editor-BZ9Buwi4.js} +34 -23
  13. package/dist/chunks/lib-DyJvmbzj.js +256 -0
  14. package/dist/chunks/{list-CWVR3dfZ.js → list-3jZW8rmM.js} +33 -13
  15. package/dist/components/Breadcrumbs.d.ts +9 -0
  16. package/dist/components/CollapsiblePanel.d.ts +4 -4
  17. package/dist/components/CreateModal.d.ts +8 -8
  18. package/dist/components/Dropdown.d.ts +5 -3
  19. package/dist/components/Input.d.ts +1 -1
  20. package/dist/components/Listbox.d.ts +7 -4
  21. package/dist/components/Loader.d.ts +1 -1
  22. package/dist/components/MultiSelect.d.ts +8 -5
  23. package/dist/components/PageHeader.d.ts +3 -3
  24. package/dist/components/Pagination.d.ts +2 -2
  25. package/dist/components/Provider.d.ts +9 -3
  26. package/dist/components/RequiredMark.d.ts +1 -0
  27. package/dist/components/SettingRow.d.ts +1 -1
  28. package/dist/components/SwitchToggle.d.ts +3 -2
  29. package/dist/components/Table.d.ts +5 -3
  30. package/dist/components/Tooltip.d.ts +7 -1
  31. package/dist/components/dropdownUtils.d.ts +6 -6
  32. package/dist/editor/FormCodePanel.d.ts +3 -3
  33. package/dist/editor/Monaco.d.ts +2 -2
  34. package/dist/editor/index.js +1 -1
  35. package/dist/file-explorer/FileExplorer.d.ts +2 -2
  36. package/dist/file-explorer/helpers.d.ts +2 -2
  37. package/dist/file-explorer/index.js +46 -18
  38. package/dist/file-explorer/lib/fileExplorer.d.ts +1 -1
  39. package/dist/file-explorer/lib/types.d.ts +21 -21
  40. package/dist/form/FieldWrapper.d.ts +6 -1
  41. package/dist/form/Fields/ResourceOptionIcon.d.ts +1 -1
  42. package/dist/form/Fields/StepField.d.ts +1 -1
  43. package/dist/form/Form.d.ts +28 -27
  44. package/dist/form/SpecialTypes/DropdownWrapper.d.ts +16 -3
  45. package/dist/form/SpecialTypes/FormikCustomDropdown.d.ts +11 -11
  46. package/dist/form/SpecialTypes/FormikCustomInput.d.ts +12 -10
  47. package/dist/form/SpecialTypes/FormikMultiSelectDropdown.d.ts +1 -1
  48. package/dist/form/SpecialTypes/FormikNumericInput.d.ts +2 -2
  49. package/dist/form/Wizard/WizardContainer.d.ts +1 -1
  50. package/dist/form/Wizard/WizardStepContent.d.ts +2 -2
  51. package/dist/form/Wizard/types.d.ts +21 -14
  52. package/dist/form/Wizard/utils.d.ts +1 -1
  53. package/dist/form/fieldContext.d.ts +19 -0
  54. package/dist/form/index.d.ts +2 -1
  55. package/dist/form/index.js +191 -106
  56. package/dist/form/lib.d.ts +3 -3
  57. package/dist/form/types/fieldComponentTypes.d.ts +2 -2
  58. package/dist/form/useParsedOpts.d.ts +1 -1
  59. package/dist/form/utils/getParentValue.d.ts +3 -1
  60. package/dist/form/utils/getValueUsingPath.d.ts +1 -1
  61. package/dist/form/utils/pwResolver.d.ts +4 -4
  62. package/dist/icons.d.ts +5 -5
  63. package/dist/index.d.ts +3 -2
  64. package/dist/index.js +51 -21
  65. package/dist/list/ActionToolbar.d.ts +4 -4
  66. package/dist/list/ListPage.d.ts +3 -3
  67. package/dist/list/ListTable.d.ts +1 -1
  68. package/dist/list/RowContextMenu.d.ts +20 -20
  69. package/dist/list/index.js +2 -2
  70. package/dist/logviewer/index.js +24 -7
  71. package/dist/styles/theme.css +6 -6
  72. package/dist/styles.css +1 -1
  73. package/dist/theme/index.js +4 -3
  74. package/dist/workflow/AnnotationBanner.d.ts +2 -1
  75. package/dist/workflow/DependencyGraph.d.ts +15 -3
  76. package/dist/workflow/JobSummary.d.ts +2 -25
  77. package/dist/workflow/MatrixGroup.d.ts +3 -2
  78. package/dist/workflow/TreeView.d.ts +1 -32
  79. package/dist/workflow/index.js +235 -138
  80. package/dist/workflow/types.d.ts +48 -0
  81. package/package.json +2 -6
  82. package/dist/chunks/lib-DTgL8klR.js +0 -191
@@ -1,3 +1,4 @@
1
+ import type { DynamicFormSchema, LabelPosition } from '../types/fieldTypes.js';
1
2
  interface WizardNavigation {
2
3
  /** Show step indicator (dots with connecting lines) */
3
4
  showSteps?: boolean;
@@ -29,7 +30,7 @@ export interface StepFieldConfig {
29
30
  /** Optional description/subtitle shown below title */
30
31
  description?: string;
31
32
  /** Schema for fields within this step */
32
- options: Record<string, any>;
33
+ options: DynamicFormSchema;
33
34
  /** Validate current step before proceeding to next (default: true) */
34
35
  validateOnNext?: boolean;
35
36
  /** Allow skipping this step without validation */
@@ -77,7 +78,7 @@ export interface ParsedWizardConfig {
77
78
  /** Ordered list of step keys */
78
79
  stepOrder: string[];
79
80
  /** Schema for non-step fields (should be none in pure wizard) */
80
- otherFields: Record<string, any>;
81
+ otherFields: Record<string, unknown>;
81
82
  }
82
83
  /**
83
84
  * Wizard navigation parameters
@@ -89,15 +90,15 @@ export interface WizardContainerProps {
89
90
  /** Parsed wizard configuration and steps */
90
91
  wizardConfig: ParsedWizardConfig;
91
92
  /** Current form values */
92
- values: Record<string, any>;
93
+ values: Record<string, unknown>;
93
94
  /** Callback when values change */
94
- onChange?: (values: Record<string, any>) => void;
95
+ onChange?: (values: Record<string, unknown>) => void;
95
96
  /** Callback when wizard is submitted */
96
- onSubmit?: (values: Record<string, any>) => void;
97
+ onSubmit?: ((values: Record<string, unknown>) => void) | undefined;
97
98
  /** Additional CSS classes */
98
99
  className?: string;
99
100
  /** Label position for fields */
100
- labelPosition?: 'left' | 'top';
101
+ labelPosition?: 'left' | 'top' | undefined;
101
102
  /** Missing fields list */
102
103
  missingFields?: string[];
103
104
  /** Space compact mode */
@@ -122,9 +123,9 @@ export interface WizardStepIndicatorProps {
122
123
  /** Callback when step is clicked */
123
124
  onStepClick?: (stepKey: string) => boolean;
124
125
  /** Whether clicking completed steps is allowed */
125
- allowJump?: boolean;
126
+ allowJump?: boolean | undefined;
126
127
  /** Hide step numbers */
127
- hideStepNumbers?: boolean;
128
+ hideStepNumbers?: boolean | undefined;
128
129
  }
129
130
  /**
130
131
  * Props for WizardNavigation component
@@ -141,9 +142,9 @@ export interface WizardNavigationProps {
141
142
  /** Whether current step is valid */
142
143
  isCurrentStepValid: boolean;
143
144
  /** Custom label for next button */
144
- nextLabel?: string;
145
+ nextLabel?: string | undefined;
145
146
  /** Custom label for previous button */
146
- prevLabel?: string;
147
+ prevLabel?: string | undefined;
147
148
  /** Custom label for submit button (on last step) */
148
149
  submitLabel?: string;
149
150
  /** Callback to go to next step */
@@ -162,10 +163,16 @@ export interface WizardStepContentProps {
162
163
  /** Current step configuration */
163
164
  stepConfig: StepFieldConfig;
164
165
  /** Form values */
165
- values: Record<string, any>;
166
+ values: Record<string, unknown>;
166
167
  /** Update form values */
167
- onValuesChange?: (values: Record<string, any>) => void;
168
- /** Additional props to pass to FieldsFromOptions */
169
- [key: string]: any;
168
+ onValuesChange?: ((values: Record<string, unknown>) => void) | undefined;
169
+ /** Label position for fields */
170
+ labelPosition?: LabelPosition | undefined;
171
+ /** Missing fields list */
172
+ missingFields?: string[];
173
+ /** Space compact mode */
174
+ spaceCompact?: boolean;
175
+ /** Workflow form mode */
176
+ workflowForm?: boolean;
170
177
  }
171
178
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { ParsedWizardConfig } from './types.js';
2
- export declare function parseWizardConfig(options: Record<string, any>): ParsedWizardConfig | null;
2
+ export declare function parseWizardConfig(options: Record<string, unknown>): ParsedWizardConfig | null;
@@ -0,0 +1,19 @@
1
+ export interface FieldContextValue {
2
+ required: boolean;
3
+ id?: string | undefined;
4
+ labelId?: string | undefined;
5
+ descriptionId?: string | undefined;
6
+ }
7
+ export declare const FieldProvider: import("react").Provider<FieldContextValue>;
8
+ /** True when the surrounding FieldWrapper is showing the required asterisk. */
9
+ export declare function useFieldRequired(): boolean;
10
+ /** Ties the single focusable control of a field to its FieldWrapper label. */
11
+ export declare function useFieldControlProps(): {
12
+ id: string | undefined;
13
+ 'aria-describedby': string | undefined;
14
+ };
15
+ /** For controls and groups that can only be named through aria-labelledby. */
16
+ export declare function useFieldLabelledByProps(): {
17
+ 'aria-labelledby': string | undefined;
18
+ 'aria-describedby': string | undefined;
19
+ };
@@ -1,6 +1,7 @@
1
1
  export { DynamicForm, DynamicDefaultsSync, FieldsFromOptions, GroupHeader, MultiSelectionDropdown, StatusBlock, collectFieldsWithDefaults, findSelfReferencingFieldNames, getInstanceTypesForForm, resolveMetaOverrides, type DynamicFormProps, type TSetFormDirty, } from './Form.js';
2
2
  export { type FieldComponent, FieldRegistryContext, Registry, } from './fieldRegistry.js';
3
- export { FieldWrapper } from './FieldWrapper.js';
3
+ export { FieldWrapper, type FieldLabelBinding } from './FieldWrapper.js';
4
+ export { type FieldContextValue, FieldProvider, useFieldControlProps, useFieldLabelledByProps, useFieldRequired, } from './fieldContext.js';
4
5
  export { enforceOneMustBeTrue, flattenGroups, impureSetValueFromPath, initializeValues, resolvedFlag, } from './lib.js';
5
6
  export { default as DropdownWrapper } from './SpecialTypes/DropdownWrapper.js';
6
7
  export { FormikCustomDropdown, FormikCustomInput, FormikNumericInput, } from './SpecialTypes/index.js';