@dskripchenko/laravel-admin 1.47.0 → 1.48.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 (57) hide show
  1. package/dist/.vite/manifest.json +2 -2
  2. package/dist/assets/app-BxAz-86a.js +44 -0
  3. package/dist/assets/{app-ZALgq2Gr.css → app-Z5Qo-jle.css} +1 -1
  4. package/dist/components/dashboard/GaugeWidget.vue.d.ts +3 -3
  5. package/dist/components/dashboard/HeatmapWidget.vue.d.ts +1 -1
  6. package/dist/components/dashboard/StatWidget.vue.d.ts +3 -3
  7. package/dist/components/dashboard/toneColor.d.ts +10 -2
  8. package/dist/components/fields/BuilderField.vue.d.ts +1 -1
  9. package/dist/components/fields/CascaderField.vue.d.ts +1 -1
  10. package/dist/components/fields/CheckboxField.vue.d.ts +1 -1
  11. package/dist/components/fields/CodeField.vue.d.ts +1 -1
  12. package/dist/components/fields/ColorField.vue.d.ts +1 -1
  13. package/dist/components/fields/ComboboxField.vue.d.ts +1 -1
  14. package/dist/components/fields/DateField.vue.d.ts +1 -1
  15. package/dist/components/fields/DateRangeField.vue.d.ts +1 -1
  16. package/dist/components/fields/FileField.vue.d.ts +1 -1
  17. package/dist/components/fields/GeneratedField.vue.d.ts +1 -1
  18. package/dist/components/fields/GroupField.vue.d.ts +1 -1
  19. package/dist/components/fields/ImageCropperField.vue.d.ts +1 -1
  20. package/dist/components/fields/KeyValueField.vue.d.ts +1 -1
  21. package/dist/components/fields/MarkdownField.vue.d.ts +1 -1
  22. package/dist/components/fields/MorphSwitcherField.vue.d.ts +1 -1
  23. package/dist/components/fields/NumberField.vue.d.ts +2 -2
  24. package/dist/components/fields/RadioField.vue.d.ts +1 -1
  25. package/dist/components/fields/RatingField.vue.d.ts +1 -1
  26. package/dist/components/fields/RelationTableField.vue.d.ts +1 -1
  27. package/dist/components/fields/RepeaterField.vue.d.ts +1 -1
  28. package/dist/components/fields/ResourcePickerField.vue.d.ts +1 -1
  29. package/dist/components/fields/SelectField.vue.d.ts +1 -1
  30. package/dist/components/fields/SliderField.vue.d.ts +2 -2
  31. package/dist/components/fields/SlugField.vue.d.ts +1 -1
  32. package/dist/components/fields/SwitchField.vue.d.ts +1 -1
  33. package/dist/components/fields/TagsField.vue.d.ts +1 -1
  34. package/dist/components/fields/TextAreaField.vue.d.ts +1 -1
  35. package/dist/components/fields/TextField.vue.d.ts +1 -1
  36. package/dist/components/fields/TimeField.vue.d.ts +2 -2
  37. package/dist/components/fields/TranslatableField.vue.d.ts +1 -1
  38. package/dist/components/fields/TreeSelectField.vue.d.ts +1 -1
  39. package/dist/components/fields/WysiwygField.vue.d.ts +1 -1
  40. package/dist/components/fields/wysiwyg/quill/QuillField.vue.d.ts +1 -1
  41. package/dist/components/fields/wysiwyg/tinymce/TinymceField.vue.d.ts +1 -1
  42. package/dist/components/infolist/BadgeEntry.vue.d.ts +6 -7
  43. package/dist/components/resource/cellFormat.d.ts +10 -4
  44. package/dist/components/shell/iconRegistry.d.ts +8 -0
  45. package/dist/components/tones.d.ts +30 -0
  46. package/dist/components/tones.test.d.ts +1 -0
  47. package/dist/index.cjs +20 -20
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.mjs +14891 -14797
  50. package/dist/index.mjs.map +1 -1
  51. package/dist/source-hash.txt +1 -1
  52. package/dist/stores/manifest.d.ts +49 -0
  53. package/dist/stores/resourceForm.d.ts +1 -1
  54. package/dist/stores/screen.d.ts +1 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +3 -3
  57. package/dist/assets/app-BI7nMgS-.js +0 -44
@@ -1,5 +1,4 @@
1
1
  import type { GaugeRange } from '@dskripchenko/ui';
2
- type SemanticTone = 'neutral' | 'positive' | 'warning' | 'negative';
3
2
  interface Props {
4
3
  title?: string;
5
4
  value?: number;
@@ -16,7 +15,8 @@ interface Props {
16
15
  */
17
16
  thresholds?: GaugeRange[];
18
17
  unit?: string;
19
- tone?: SemanticTone;
18
+ /** A name from the panel's tone vocabulary (../tones.ts); primary when unset. */
19
+ tone?: string;
20
20
  color?: string;
21
21
  label?: string;
22
22
  suffix?: string;
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
37
37
  unit: string;
38
38
  suffix: string;
39
39
  precision: number | null;
40
- tone: SemanticTone;
40
+ tone: string;
41
41
  ranges: GaugeRange[];
42
42
  thresholds: GaugeRange[];
43
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -4,7 +4,7 @@ interface Props {
4
4
  rows?: string[];
5
5
  cols?: string[];
6
6
  matrix?: (number | null)[][];
7
- /** A scale name ('default', 'viridis', 'magma', 'blues'…), a CSS colour or custom stops. */
7
+ /** A scale name ('default', 'viridis', 'magma', 'blues'…), a tone or CSS colour, or custom stops. */
8
8
  colorScale?: string | string[];
9
9
  /** The colour domain; the matrix's own min/max when null. */
10
10
  min?: number | null;
@@ -1,4 +1,3 @@
1
- type SemanticTone = 'neutral' | 'positive' | 'negative' | 'warning' | 'info';
2
1
  interface StatChange {
3
2
  delta?: number;
4
3
  direction?: 'up' | 'down' | 'flat';
@@ -31,7 +30,8 @@ interface Props {
31
30
  suffix?: string;
32
31
  trend?: number;
33
32
  precision?: number;
34
- tone?: SemanticTone;
33
+ /** A name from the panel's tone vocabulary (../tones.ts); primary when unset. */
34
+ tone?: string;
35
35
  loading?: boolean;
36
36
  }
37
37
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
@@ -43,6 +43,6 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
43
43
  suffix: string;
44
44
  trend: number;
45
45
  precision: number;
46
- tone: SemanticTone;
46
+ tone: string;
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
48
  export default _default;
@@ -1,4 +1,12 @@
1
- /** The tone names toneColor() knows, for docs and tests. */
2
- export declare const TONE_NAMES: readonly string[];
1
+ /**
2
+ * Colours a widget receives from the backend — a gauge zone, a chart
3
+ * dataset — as names from the panel's tone vocabulary (see ../tones.ts):
4
+ * success, warning, danger, info, primary, neutral, or the plain colour words
5
+ * green, amber, red, gray… Each maps onto the kit's tokens, so a zone follows
6
+ * the theme, dark mode included. Anything else — #hex, rgb(), hsl(), var(--…)
7
+ * — is a CSS colour already and passes through as it is.
8
+ */
9
+ import { TONE_NAMES } from '../tones';
10
+ export { TONE_NAMES };
3
11
  /** A tone or colour name as a kit token; a CSS colour as it is; '' for nothing. */
4
12
  export declare function toneColor(color: string | null | undefined): string;
@@ -18,9 +18,9 @@ interface Props {
18
18
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
19
19
  label: string | null;
20
20
  blocks: Record<string, BlockDef>;
21
+ help: string | null;
21
22
  required: boolean;
22
23
  reorderable: boolean;
23
- help: string | null;
24
24
  maxBlocks: number | null;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  export default _default;
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
21
21
  tree: never[];
22
22
  readonly: boolean;
23
23
  separator: string;
24
- required: boolean;
25
24
  help: string | null;
25
+ required: boolean;
26
26
  levels: Array<{
27
27
  key?: string;
28
28
  label?: string;
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  label: string | null;
17
17
  disabled: boolean;
18
18
  readonly: boolean;
19
- required: boolean;
20
19
  help: string | null;
20
+ required: boolean;
21
21
  inlineLabel: string | null;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -19,10 +19,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
19
19
  disabled: boolean;
20
20
  placeholder: string | null;
21
21
  readonly: boolean;
22
+ help: string | null;
22
23
  required: boolean;
23
24
  rows: number;
24
25
  language: string | null;
25
- help: string | null;
26
26
  lineNumbers: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  export default _default;
@@ -15,9 +15,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  format: ColorFormat;
16
16
  disabled: boolean;
17
17
  readonly: boolean;
18
+ help: string | null;
18
19
  palette: string[] | null;
19
20
  required: boolean;
20
- help: string | null;
21
21
  withAlpha: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
28
28
  disabled: boolean;
29
29
  placeholder: string | null;
30
30
  readonly: boolean;
31
+ help: string | null;
31
32
  required: boolean;
32
33
  creatable: boolean;
33
34
  clearable: boolean;
34
- help: string | null;
35
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  export default _default;
@@ -24,9 +24,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
24
24
  format: string | null;
25
25
  disabled: boolean;
26
26
  readonly: boolean;
27
+ help: string | null;
27
28
  required: boolean;
28
29
  inputType: "date" | "datetime-local" | "time";
29
- help: string | null;
30
30
  withTime: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  export default _default;
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
17
17
  disabled: boolean;
18
18
  placeholder: string | null;
19
19
  readonly: boolean;
20
- required: boolean;
21
20
  help: string | null;
21
+ required: boolean;
22
22
  presets: string[] | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -10,9 +10,9 @@ interface Props {
10
10
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
11
  label: string | null;
12
12
  image: boolean;
13
+ help: string | null;
13
14
  required: boolean;
14
15
  accept: string | null;
15
- help: string | null;
16
16
  maxSize: number | null;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  export default _default;
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
17
17
  label: string | null;
18
18
  disabled: boolean;
19
19
  placeholder: string | null;
20
- required: boolean;
21
20
  help: string | null;
21
+ required: boolean;
22
22
  charset: string;
23
23
  autogenerate: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,9 +13,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
13
13
  label: string | null;
14
14
  fields: FieldNode[];
15
15
  description: string | null;
16
+ help: string | null;
16
17
  layout: "rows" | "columns" | "inline";
17
18
  collapsed: boolean;
18
19
  collapsible: boolean;
19
- help: string | null;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  export default _default;
@@ -14,9 +14,9 @@ interface Props {
14
14
  }
15
15
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
16
  label: string | null;
17
+ help: string | null;
17
18
  required: boolean;
18
19
  accept: string | null;
19
- help: string | null;
20
20
  maxSize: number | null;
21
21
  aspectRatio: number | null;
22
22
  outputWidth: number | null;
@@ -11,8 +11,8 @@ interface Props {
11
11
  }
12
12
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
13
13
  label: string | null;
14
- required: boolean;
15
14
  help: string | null;
15
+ required: boolean;
16
16
  keyLabel: string;
17
17
  valueLabel: string;
18
18
  addable: boolean;
@@ -20,10 +20,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  disabled: boolean;
21
21
  placeholder: string | null;
22
22
  readonly: boolean;
23
+ help: string | null;
23
24
  required: boolean;
24
25
  toolbar: boolean;
25
26
  rows: number;
26
27
  preview: boolean;
27
- help: string | null;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  export default _default;
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  label: string | null;
17
17
  disabled: boolean;
18
18
  readonly: boolean;
19
- required: boolean;
20
19
  help: string | null;
20
+ required: boolean;
21
21
  morphTypes: Record<string, MorphType> | null;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  min: number | null;
17
17
  disabled: boolean;
18
18
  placeholder: string | null;
19
- step: number | null;
20
19
  readonly: boolean;
21
- required: boolean;
20
+ step: number | null;
22
21
  help: string | null;
22
+ required: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  label: string | null;
16
16
  disabled: boolean;
17
17
  readonly: boolean;
18
- required: boolean;
19
18
  help: string | null;
19
+ required: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  export default _default;
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
16
16
  disabled: boolean;
17
17
  count: number;
18
18
  readonly: boolean;
19
- required: boolean;
20
19
  help: string | null;
20
+ required: boolean;
21
21
  half: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -17,7 +17,7 @@ interface Props {
17
17
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
18
  label: string | null;
19
19
  columns: BackendColumn[];
20
- emptyText: string;
21
20
  help: string | null;
21
+ emptyText: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -15,9 +15,9 @@ interface Props {
15
15
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
16
  label: string | null;
17
17
  fields: FieldNode[];
18
+ help: string | null;
18
19
  required: boolean;
19
20
  reorderable: boolean;
20
- help: string | null;
21
21
  maxItems: number | null;
22
22
  addable: boolean;
23
23
  removable: boolean;
@@ -21,12 +21,12 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
21
21
  disabled: boolean;
22
22
  readonly: boolean;
23
23
  filters: Record<string, unknown> | unknown[];
24
+ help: string | null;
24
25
  layout: "grid" | "list" | null;
25
26
  upload: PickerUpload | null;
26
27
  required: boolean;
27
28
  multiple: boolean;
28
29
  perPage: number;
29
- help: string | null;
30
30
  maxItems: number | null;
31
31
  dialogSize: "lg" | "xl" | "full";
32
32
  viewPermission: string | null;
@@ -30,9 +30,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
30
30
  placeholder: string | null;
31
31
  readonly: boolean;
32
32
  searchable: boolean;
33
+ help: string | null;
33
34
  required: boolean;
34
35
  multiple: boolean;
35
36
  clearable: boolean;
36
- help: string | null;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  export default _default;
@@ -15,10 +15,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  max: number;
16
16
  min: number;
17
17
  disabled: boolean;
18
- step: number;
19
18
  readonly: boolean;
20
- required: boolean;
19
+ step: number;
21
20
  help: string | null;
21
+ required: boolean;
22
22
  marks: Record<string, string> | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -19,8 +19,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
19
19
  placeholder: string | null;
20
20
  readonly: boolean;
21
21
  separator: string | null;
22
- required: boolean;
23
22
  help: string | null;
23
+ required: boolean;
24
24
  follow: boolean;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  export default _default;
@@ -15,8 +15,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  label: string | null;
16
16
  disabled: boolean;
17
17
  readonly: boolean;
18
- required: boolean;
19
18
  help: string | null;
19
+ required: boolean;
20
20
  inlineLabel: string | null;
21
21
  onLabel: string | null;
22
22
  offLabel: string | null;
@@ -29,8 +29,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
29
29
  disabled: boolean;
30
30
  placeholder: string | null;
31
31
  separator: string;
32
- required: boolean;
33
32
  help: string | null;
33
+ required: boolean;
34
34
  suggestions: string[];
35
35
  suggestionsByGroup: SuggestionGroup[];
36
36
  maxItems: number;
@@ -13,8 +13,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
13
13
  disabled: boolean;
14
14
  placeholder: string | null;
15
15
  readonly: boolean;
16
+ help: string | null;
16
17
  required: boolean;
17
18
  rows: number;
18
- help: string | null;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
@@ -14,9 +14,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
14
14
  disabled: boolean;
15
15
  placeholder: string | null;
16
16
  readonly: boolean;
17
+ help: string | null;
17
18
  required: boolean;
18
19
  autocomplete: string | null;
19
20
  inputType: "text" | "email" | "url" | "password" | "tel" | "search";
20
- help: string | null;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  export default _default;
@@ -17,10 +17,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
17
17
  format: string | null;
18
18
  disabled: boolean;
19
19
  placeholder: string | null;
20
- step: number | null;
21
20
  readonly: boolean;
22
- required: boolean;
21
+ step: number | null;
23
22
  help: string | null;
23
+ required: boolean;
24
24
  withSeconds: boolean;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  export default _default;
@@ -15,9 +15,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  label: string | null;
16
16
  disabled: boolean;
17
17
  placeholder: string | null;
18
+ help: string | null;
18
19
  required: boolean;
19
20
  rows: number;
20
- help: string | null;
21
21
  locales: string[];
22
22
  multiline: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -17,10 +17,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
17
17
  placeholder: string | null;
18
18
  tree: never[];
19
19
  readonly: boolean;
20
+ help: string | null;
20
21
  required: boolean;
21
22
  checkable: boolean;
22
23
  multiple: boolean;
23
- help: string | null;
24
24
  selectableParents: boolean;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  export default _default;
@@ -15,9 +15,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  label: string | null;
16
16
  disabled: boolean;
17
17
  placeholder: string | null;
18
+ help: string | null;
18
19
  required: boolean;
19
20
  minHeight: string;
20
- help: string | null;
21
21
  maxHeight: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  disabled: boolean;
19
19
  placeholder: string | null;
20
20
  theme: "snow" | "bubble" | "core";
21
+ help: string | null;
21
22
  required: boolean;
22
23
  toolbar: string | unknown[];
23
- help: string | null;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  export default _default;
@@ -23,8 +23,8 @@ interface Props {
23
23
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
24
  label: string | null;
25
25
  disabled: boolean;
26
- required: boolean;
27
26
  help: string | null;
27
+ required: boolean;
28
28
  init: Record<string, unknown>;
29
29
  apiKey: string | null;
30
30
  imageUploadUrl: string;
@@ -1,24 +1,23 @@
1
- type BadgeVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
2
1
  interface Props {
3
2
  name?: string;
4
3
  label?: string;
5
4
  value?: string | null;
6
5
  /** Maps a value to a variant; without it, the default is used. */
7
- map?: Record<string, BadgeVariant>;
6
+ map?: Record<string, string>;
8
7
  /** The backend's BadgeEntry::colors(): value → variant, an alias of map. */
9
- colors?: Record<string, BadgeVariant>;
8
+ colors?: Record<string, string>;
10
9
  /** Maps a value to the label shown — the localization: active → "Active". */
11
10
  labels?: Record<string, string>;
12
11
  /** Forces a particular variant. */
13
- variant?: BadgeVariant;
12
+ variant?: string;
14
13
  }
15
14
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
16
- map: Record<string, BadgeVariant>;
15
+ map: Record<string, string>;
17
16
  value: string | null;
18
17
  label: string;
19
18
  name: string;
20
- variant: BadgeVariant;
19
+ variant: string;
21
20
  labels: Record<string, string>;
22
- colors: Record<string, BadgeVariant>;
21
+ colors: Record<string, string>;
23
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
23
  export default _default;
@@ -18,6 +18,7 @@
18
18
  * looks like an ISO datetime — the column ends in `_at`, or the string carries
19
19
  * T...Z — gets the default datetime format.
20
20
  */
21
+ import { type BadgeVariant } from '../tones';
21
22
  export type CellPreset = 'text' | 'date' | 'datetime' | 'money' | 'boolean' | 'badge' | 'bytes' | 'image' | 'link';
22
23
  export interface CellMeta {
23
24
  format?: string;
@@ -28,8 +29,12 @@ export interface CellMeta {
28
29
  [key: string]: unknown;
29
30
  }
30
31
  export declare function formatCell(value: unknown, preset: string | undefined, meta?: CellMeta): string;
31
- export type BadgeTone = 'info' | 'success' | 'warning' | 'danger' | 'default';
32
- /** The badge tone of a value: the column's colour map, meta.colors. */
32
+ export type BadgeTone = BadgeVariant;
33
+ /**
34
+ * The badge tone of a value: the column's colour map, meta.colors, read
35
+ * through the panel's one tone vocabulary (see ../tones.ts) — the same names
36
+ * a stat card, a chart or a gauge takes.
37
+ */
33
38
  export declare function badgeTone(value: unknown, meta?: CellMeta): BadgeTone;
34
39
  /** The badge caption of a value: meta.labels, or the value itself. */
35
40
  export declare function badgeLabel(value: unknown, meta?: CellMeta): string;
@@ -56,8 +61,9 @@ export declare function parseDateValue(input: string): Date | null;
56
61
  * time a A B g G h H i s u v
57
62
  * zone e I O P p T Z full c r U
58
63
  *
59
- * F before or after a day number takes the form a date reads with, which in
60
- * Russian is the genitive: «1 октября», not «1 октябрь». A backslash escapes
64
+ * F and M before or after a day number take the form a date reads with, which
65
+ * in Russian is the genitive: «8 мая», not «8 май» — as Carbon's
66
+ * translatedFormat() does. A backslash escapes
61
67
  * the next character, as in PHP.
62
68
  */
63
69
  export declare function formatPhpDate(date: Date, format: string): string;
@@ -15,5 +15,13 @@ import type { Component } from 'vue';
15
15
  * decides between the fallback and nothing at all.
16
16
  */
17
17
  export declare function resolveIcon(name: string | null | undefined): Component | null;
18
+ /**
19
+ * The registry's spelling of a name written another way: `ShoppingCart`,
20
+ * `shopping_cart`, ` Shopping-Cart ` and `lucide-shopping-cart` all mean
21
+ * `shopping-cart`.
22
+ */
23
+ export declare function normalizeIconName(name: string): string;
24
+ /** Every registered name, for docs and tests. */
25
+ export declare function iconNames(): string[];
18
26
  /** Registers an extra icon, from a host project. */
19
27
  export declare function registerIcon(name: string, component: Component): void;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The one tone vocabulary of the panel.
3
+ *
4
+ * A backend names a colour wherever it hands the SPA something to tint — a
5
+ * stat card, a table badge, an infolist badge, a chart dataset, a gauge zone,
6
+ * a heatmap — and it used to matter which of those it was: a badge took
7
+ * `amber` and `gray`, a stat card did not. Every renderer now reads the same
8
+ * names through resolveTone():
9
+ *
10
+ * primary primary, accent, teal
11
+ * success success, positive, green, emerald, lime
12
+ * warning warning, amber, yellow, orange
13
+ * danger danger, negative, error, red, rose
14
+ * info info, blue, sky, cyan, indigo
15
+ * neutral neutral, default, gray, grey, zinc, slate, muted, secondary
16
+ *
17
+ * Names are case-insensitive. Each renderer then maps the six tones onto what
18
+ * its kit component can draw — see the helpers below.
19
+ */
20
+ export type PanelTone = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
21
+ /** Every name the vocabulary knows, for docs and tests. */
22
+ export declare const TONE_NAMES: readonly string[];
23
+ /** A tone or colour name as one of the six tones; null for anything else. */
24
+ export declare function resolveTone(name: string | null | undefined): PanelTone | null;
25
+ /** The kit's CSS token of a tone — follows the theme, dark mode included. */
26
+ export declare function toneToken(tone: PanelTone): string;
27
+ /** UidBadge's variants: no primary, and the neutral one is called `default`. */
28
+ export type BadgeVariant = 'info' | 'success' | 'warning' | 'danger' | 'default';
29
+ /** A name as a UidBadge variant; `default` for an unknown name. */
30
+ export declare function badgeVariant(name: string | null | undefined): BadgeVariant;
@@ -0,0 +1 @@
1
+ export {};