@nice2dev/ui 1.0.25 → 1.0.26

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 (58) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/NiceErrorBoundary-B91z3IjT.cjs +1 -0
  3. package/dist/NiceErrorBoundary-DQLk-68V.js +770 -0
  4. package/dist/NiceForm-8_p8P0uJ.js +5386 -0
  5. package/dist/NiceForm-DkVFd5Z5.cjs +382 -0
  6. package/dist/NiceModal-CdiLaYTg.cjs +1 -0
  7. package/dist/NiceModal-D6Yj67eH.js +95 -0
  8. package/dist/NiceModuleLifecyclePanel-Bhd8VNjU.js +6856 -0
  9. package/dist/NiceModuleLifecyclePanel-Cn_nB4dg.cjs +1 -0
  10. package/dist/NicePagination-Dnlho_8O.cjs +1 -0
  11. package/dist/NicePagination-kokSP8ls.js +171 -0
  12. package/dist/NicePinCodeInput-1YGb7l2o.cjs +696 -0
  13. package/dist/NicePinCodeInput-CZpYON--.js +13097 -0
  14. package/dist/NiceSavedQueryPanel-C6pPtOAf.js +6893 -0
  15. package/dist/NiceSavedQueryPanel-DOixGvLP.cjs +596 -0
  16. package/dist/NiceTabs-DHiA02RD.cjs +1 -0
  17. package/dist/NiceTabs-MBVJomax.js +1657 -0
  18. package/dist/NiceWindow-DUOkdKuX.js +1592 -0
  19. package/dist/NiceWindow-ZAAUD3LJ.cjs +1 -0
  20. package/dist/charts-B_lYNVMJ.cjs +761 -0
  21. package/dist/charts-CABhvyAA.js +4657 -0
  22. package/dist/charts.cjs +1 -1
  23. package/dist/charts.mjs +1 -1
  24. package/dist/core-BHZDvnBo.js +25364 -0
  25. package/dist/core-C7PK1L9r.cjs +122 -0
  26. package/dist/data-branching-BGw7O52F.js +6133 -0
  27. package/dist/data-branching-Dz3xLUZM.cjs +1 -0
  28. package/dist/data-branching.cjs +1 -1
  29. package/dist/data-branching.mjs +1 -1
  30. package/dist/data.cjs +1 -1
  31. package/dist/data.mjs +1 -1
  32. package/dist/devops-CX538_rA.js +7684 -0
  33. package/dist/devops-JwBTMk0A.cjs +17 -0
  34. package/dist/devops.cjs +1 -1
  35. package/dist/devops.mjs +1 -1
  36. package/dist/editors.cjs +1 -1
  37. package/dist/editors.mjs +3 -3
  38. package/dist/feedback.cjs +1 -1
  39. package/dist/feedback.mjs +2 -2
  40. package/dist/index-CTe-G23X.cjs +5518 -0
  41. package/dist/index-DGjd42Q9.js +68223 -0
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.css +1 -1
  44. package/dist/index.d.ts +75 -0
  45. package/dist/index.mjs +803 -797
  46. package/dist/lazy.cjs +1 -1
  47. package/dist/lazy.mjs +24 -24
  48. package/dist/navigation.cjs +1 -1
  49. package/dist/navigation.d.ts +18 -1
  50. package/dist/navigation.mjs +4 -4
  51. package/dist/no-code-CIf6wiUc.js +7133 -0
  52. package/dist/no-code-DSa5Yn6l.cjs +332 -0
  53. package/dist/no-code.cjs +1 -1
  54. package/dist/no-code.mjs +1 -1
  55. package/dist/overlays.cjs +1 -1
  56. package/dist/overlays.mjs +55 -55
  57. package/dist/style.css +1 -1
  58. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ import { CrossTabMessage } from '@nice2dev/ui-core';
66
66
  import { CSSProperties } from 'react';
67
67
  import { default as default_2 } from 'react';
68
68
  import { DEFAULT_VARIANT_CONFIG } from '@nice2dev/ui-core';
69
+ import { defaultValidationMessage } from '@nice2dev/ui-core';
69
70
  import { DENSITY_VALUES } from '@nice2dev/ui-core';
70
71
  import { DensityVariant } from '@nice2dev/ui-core';
71
72
  import { deprecateProp } from '@nice2dev/ui-core';
@@ -74,6 +75,8 @@ import { deserializeTheme } from '@nice2dev/ui-core';
74
75
  import { Dispatch } from 'react';
75
76
  import { DisplayPreferences } from '@nice2dev/ui-core';
76
77
  import { endMark } from '@nice2dev/ui-core';
78
+ import { evaluateValidation } from '@nice2dev/ui-core';
79
+ import { evaluateValidationRule } from '@nice2dev/ui-core';
77
80
  import { FillVariant } from '@nice2dev/ui-core';
78
81
  import { filterGroupToWhere } from '@nice2dev/ui-core';
79
82
  import { filterNiceThemePacksByTag } from '@nice2dev/ui-core';
@@ -131,6 +134,7 @@ import { HelpProp } from '@nice2dev/ui-core';
131
134
  import { ICUValues } from '@nice2dev/ui-core';
132
135
  import { IndexedDBAdapter } from '@nice2dev/ui-core';
133
136
  import { InputStyleVariant } from '@nice2dev/ui-core';
137
+ import { isRecordValid } from '@nice2dev/ui-core';
134
138
  import { ITracelessPolicy } from '@nice2dev/ui-core';
135
139
  import { JSX as JSX_2 } from 'react';
136
140
  import { KeyboardShortcut } from '@nice2dev/ui-core';
@@ -206,6 +210,9 @@ import { NiceFavoriteItem } from '@nice2dev/ui-core';
206
210
  import { NiceFieldState } from '@nice2dev/ui-core';
207
211
  import { NiceFieldStatus } from '@nice2dev/ui-core';
208
212
  import { NiceFieldStatusProps } from '@nice2dev/ui-core';
213
+ import { NiceFieldValidationIssue } from '@nice2dev/ui-core';
214
+ import { NiceFieldValidationOp } from '@nice2dev/ui-core';
215
+ import { NiceFieldValidationRule } from '@nice2dev/ui-core';
209
216
  import { NiceFilterCondition } from '@nice2dev/ui-core';
210
217
  import { NiceFilterGroup } from '@nice2dev/ui-core';
211
218
  import { NiceFilterOperator } from '@nice2dev/ui-core';
@@ -3116,6 +3123,8 @@ export declare const DefaultLoadingFallback: default_2.FC<{
3116
3123
  /** Default cross-platform component type mapping. */
3117
3124
  export declare const defaultTypeMapping: NiceComponentTypeMapping;
3118
3125
 
3126
+ export { defaultValidationMessage }
3127
+
3119
3128
  /** Default global registry instance. */
3120
3129
  export declare const defaultViewRegistry: NiceViewRegistry;
3121
3130
 
@@ -4295,6 +4304,10 @@ declare interface ESLintRuleContext {
4295
4304
  };
4296
4305
  }
4297
4306
 
4307
+ export { evaluateValidation }
4308
+
4309
+ export { evaluateValidationRule }
4310
+
4298
4311
  declare interface EventCondition {
4299
4312
  field: string;
4300
4313
  operator: 'eq' | 'neq' | 'gt' | 'lt' | 'gte' | 'lte' | 'contains' | 'exists';
@@ -5706,6 +5719,8 @@ export declare interface InvoiceTotals {
5706
5719
  /** Check if a user can perform an action on a resource. Deny overrides allow. */
5707
5720
  export declare function isAllowed(resolved: NiceResolvedPermissions, resource: string, action: RbacAction): boolean;
5708
5721
 
5722
+ export { isRecordValid }
5723
+
5709
5724
  /** Check if a version satisfies min/max constraints. */
5710
5725
  export declare function isVersionCompatible(version: SemVer, min?: SemVer, max?: SemVer): boolean;
5711
5726
 
@@ -8282,8 +8297,44 @@ export declare interface NiceCardProps extends NiceBaseProps {
8282
8297
  bordered?: boolean;
8283
8298
  /** Makes the entire card clickable. */
8284
8299
  onClick?: () => void;
8300
+ /**
8301
+ * Make the card behave as a selectable option (radio): cursor/hover affordance,
8302
+ * `role="radio"` + `aria-checked`, keyboard select (Space/Enter). Inside a
8303
+ * {@link NiceCardRadioGroup} this is implied for cards that carry a `value`.
8304
+ */
8305
+ selectable?: boolean;
8306
+ /** Whether the card is currently selected (controlled; auto-wired inside a NiceCardRadioGroup). */
8307
+ selected?: boolean;
8308
+ /** The option value bound to this card (used for selection + the group's onChange). */
8309
+ value?: NiceCardValue;
8310
+ /** Fired with `value` when the card is selected. */
8311
+ onSelect?: (value: NiceCardValue) => void;
8312
+ /** Radio group name (auto-wired inside a NiceCardRadioGroup). */
8313
+ name?: string;
8314
+ }
8315
+
8316
+ /**
8317
+ * {@link NiceCardRadioGroup} — wraps NiceCards into a single-select radio group:
8318
+ * child cards that carry a `value` become selectable and report selection via
8319
+ * `onChange` (the "binding + event on select"). Adds `role="radiogroup"`.
8320
+ */
8321
+ export declare const NiceCardRadioGroup: default_2.FC<NiceCardRadioGroupProps>;
8322
+
8323
+ /** Props for {@link NiceCardRadioGroup} — coordinates single-selection across child NiceCards. */
8324
+ export declare interface NiceCardRadioGroupProps extends NiceBaseProps {
8325
+ /** Selected value (controlled). */
8326
+ value?: NiceCardValue;
8327
+ /** Fired with the newly-selected value. */
8328
+ onChange?: (value: NiceCardValue) => void;
8329
+ /** Radio group name applied to child cards. */
8330
+ name?: string;
8331
+ /** Child NiceCards (each with a `value`). */
8332
+ children: default_2.ReactNode;
8285
8333
  }
8286
8334
 
8335
+ /** Value type used by selectable cards / card radio groups. */
8336
+ export declare type NiceCardValue = string | number;
8337
+
8287
8338
  export declare function NiceCardView<T extends NiceCardViewItem>({ items, renderCard, columns, gap, searchable, searchField, searchPlaceholder, loading, emptyText, onCardClick, className, style, accessMode, id, }: NiceCardViewProps<T>): default_2.JSX.Element | null;
8288
8339
 
8289
8340
  /** An item displayed by the {@link NiceCardView} component. */
@@ -12086,6 +12137,12 @@ export { NiceFieldStatus }
12086
12137
 
12087
12138
  export { NiceFieldStatusProps }
12088
12139
 
12140
+ export { NiceFieldValidationIssue }
12141
+
12142
+ export { NiceFieldValidationOp }
12143
+
12144
+ export { NiceFieldValidationRule }
12145
+
12089
12146
  /** A custom column in the {@link NiceFileManager} detail view. */
12090
12147
  export declare interface NiceFileColumnDef {
12091
12148
  /** Column key. */
@@ -22767,6 +22824,24 @@ export { NiceUserPreferencesProvider }
22767
22824
 
22768
22825
  export { NiceUserPreferencesProviderProps }
22769
22826
 
22827
+ /**
22828
+ * {@link NiceValidationBuilder} — visual editor for {@link NiceFieldValidationRule} lists,
22829
+ * mirroring NiceFilterBuilder. Rules are enforced at runtime by the forms via
22830
+ * `evaluateValidation` and can be reused by host codegen.
22831
+ */
22832
+ export declare const NiceValidationBuilder: default_2.FC<NiceValidationBuilderProps>;
22833
+
22834
+ /** Props for {@link NiceValidationBuilder}. */
22835
+ export declare interface NiceValidationBuilderProps extends NiceBaseProps {
22836
+ /** Fields that rules may target (reuses the filter field descriptor). */
22837
+ fields: NiceFilterField[];
22838
+ /** The validation rules (controlled). */
22839
+ value: NiceFieldValidationRule[];
22840
+ onChange: (rules: NiceFieldValidationRule[]) => void;
22841
+ /** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
22842
+ tutorial?: NiceComponentTutorial;
22843
+ }
22844
+
22770
22845
  export declare const NiceValidationGroup: default_2.FC<NiceValidationGroupProps>;
22771
22846
 
22772
22847
  /** Props for the {@link NiceValidationGroup} component — a context provider that orchestrates validation of all child {@link NiceValidator} instances. */