@dskripchenko/laravel-admin 1.53.0 → 1.54.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 (50) hide show
  1. package/dist/.vite/manifest.json +2 -2
  2. package/dist/assets/{app-CxjxDLre.js → app-BzUGF9ma.js} +29 -29
  3. package/dist/assets/{app-Kdga0MQ9.css → app-YEHeR8G2.css} +1 -1
  4. package/dist/components/fields/BuilderField.vue.d.ts +1 -1
  5. package/dist/components/fields/CascaderField.vue.d.ts +1 -1
  6. package/dist/components/fields/CheckboxField.vue.d.ts +1 -1
  7. package/dist/components/fields/CodeField.vue.d.ts +1 -1
  8. package/dist/components/fields/ColorField.vue.d.ts +1 -1
  9. package/dist/components/fields/ComboboxField.vue.d.ts +2 -2
  10. package/dist/components/fields/DateField.vue.d.ts +1 -1
  11. package/dist/components/fields/DateRangeField.vue.d.ts +1 -1
  12. package/dist/components/fields/FileField.vue.d.ts +1 -1
  13. package/dist/components/fields/GeneratedField.vue.d.ts +1 -1
  14. package/dist/components/fields/ImageCropperField.vue.d.ts +1 -1
  15. package/dist/components/fields/KeyValueField.vue.d.ts +1 -1
  16. package/dist/components/fields/MarkdownField.vue.d.ts +1 -1
  17. package/dist/components/fields/MorphSwitcherField.vue.d.ts +1 -1
  18. package/dist/components/fields/NumberField.vue.d.ts +1 -1
  19. package/dist/components/fields/RadioField.vue.d.ts +1 -1
  20. package/dist/components/fields/RatingField.vue.d.ts +1 -1
  21. package/dist/components/fields/RepeaterField.vue.d.ts +1 -1
  22. package/dist/components/fields/ResourcePickerField.vue.d.ts +2 -2
  23. package/dist/components/fields/SelectField.vue.d.ts +3 -3
  24. package/dist/components/fields/SliderField.vue.d.ts +1 -1
  25. package/dist/components/fields/SlugField.vue.d.ts +1 -1
  26. package/dist/components/fields/SwitchField.vue.d.ts +1 -1
  27. package/dist/components/fields/TagsField.vue.d.ts +1 -1
  28. package/dist/components/fields/TextAreaField.vue.d.ts +1 -1
  29. package/dist/components/fields/TextField.vue.d.ts +1 -1
  30. package/dist/components/fields/TimeField.vue.d.ts +1 -1
  31. package/dist/components/fields/TranslatableField.vue.d.ts +1 -1
  32. package/dist/components/fields/TreeSelectField.vue.d.ts +2 -2
  33. package/dist/components/fields/WysiwygField.vue.d.ts +1 -1
  34. package/dist/components/fields/resourcePicker/ResourcePickerDialog.vue.d.ts +2 -2
  35. package/dist/components/fields/wysiwyg/quill/QuillField.vue.d.ts +1 -1
  36. package/dist/components/fields/wysiwyg/tinymce/TinymceField.vue.d.ts +1 -1
  37. package/dist/components/shell/AdminShell.vue.d.ts +3 -1
  38. package/dist/components/shell/widgets/RolePreviewDialog.vue.d.ts +9 -0
  39. package/dist/composables/useRolePreview.d.ts +17 -0
  40. package/dist/composables/useRolePreview.test.d.ts +1 -0
  41. package/dist/index.cjs +10 -10
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.ts +2 -0
  44. package/dist/index.mjs +5451 -5332
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/source-hash.txt +1 -1
  47. package/dist/stores/auth.d.ts +54 -0
  48. package/dist/style.css +1 -1
  49. package/dist/types/bootstrap.d.ts +12 -0
  50. package/package.json +1 -1
@@ -17,9 +17,9 @@ interface Props {
17
17
  }
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
+ required: boolean;
20
21
  blocks: Record<string, BlockDef>;
21
22
  help: string | null;
22
- required: boolean;
23
23
  reorderable: boolean;
24
24
  maxBlocks: number | null;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -20,9 +20,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  placeholder: string | null;
21
21
  tree: never[];
22
22
  readonly: boolean;
23
+ required: boolean;
23
24
  separator: string;
24
25
  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
- help: string | null;
20
19
  required: boolean;
20
+ help: string | null;
21
21
  inlineLabel: string | null;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -19,8 +19,8 @@ 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;
23
22
  required: boolean;
23
+ help: string | null;
24
24
  rows: number;
25
25
  language: string | null;
26
26
  lineNumbers: boolean;
@@ -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
+ required: boolean;
18
19
  help: string | null;
19
20
  palette: string[] | null;
20
- required: boolean;
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;
32
31
  required: boolean;
33
- creatable: boolean;
34
32
  clearable: boolean;
33
+ help: string | null;
34
+ creatable: boolean;
35
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  export default _default;
@@ -24,8 +24,8 @@ 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;
28
27
  required: boolean;
28
+ help: string | null;
29
29
  inputType: "date" | "datetime-local" | "time";
30
30
  withTime: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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
- help: string | null;
21
20
  required: boolean;
21
+ help: string | null;
22
22
  presets: string[] | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -10,8 +10,8 @@ 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;
14
13
  required: boolean;
14
+ help: string | null;
15
15
  accept: string | null;
16
16
  maxSize: number | null;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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
- help: string | null;
21
20
  required: boolean;
21
+ help: string | null;
22
22
  charset: string;
23
23
  autogenerate: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,8 +14,8 @@ 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;
18
17
  required: boolean;
18
+ help: string | null;
19
19
  accept: string | null;
20
20
  maxSize: number | null;
21
21
  aspectRatio: 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
- help: string | null;
15
14
  required: boolean;
15
+ help: string | null;
16
16
  keyLabel: string;
17
17
  valueLabel: string;
18
18
  addable: boolean;
@@ -20,8 +20,8 @@ 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;
24
23
  required: boolean;
24
+ help: string | null;
25
25
  toolbar: boolean;
26
26
  rows: number;
27
27
  preview: boolean;
@@ -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
- help: string | null;
20
19
  required: boolean;
20
+ help: string | null;
21
21
  morphTypes: Record<string, MorphType> | null;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  placeholder: string | null;
19
19
  readonly: boolean;
20
20
  step: number | null;
21
- help: string | null;
22
21
  required: boolean;
22
+ help: string | null;
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
- help: string | null;
19
18
  required: boolean;
19
+ help: string | null;
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
- help: string | null;
20
19
  required: boolean;
20
+ help: string | null;
21
21
  half: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  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
+ required: boolean;
17
18
  fields: FieldNode[];
18
19
  help: string | null;
19
- required: boolean;
20
20
  reorderable: boolean;
21
21
  maxItems: number | null;
22
22
  addable: boolean;
@@ -20,12 +20,12 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
20
20
  label: string | null;
21
21
  disabled: boolean;
22
22
  readonly: boolean;
23
+ required: boolean;
24
+ multiple: boolean;
23
25
  filters: Record<string, unknown> | unknown[];
24
26
  help: string | null;
25
27
  layout: "grid" | "list" | null;
26
28
  upload: PickerUpload | null;
27
- required: boolean;
28
- multiple: boolean;
29
29
  perPage: number;
30
30
  maxItems: number | null;
31
31
  dialogSize: "lg" | "xl" | "full";
@@ -29,10 +29,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
29
29
  disabled: boolean;
30
30
  placeholder: string | null;
31
31
  readonly: boolean;
32
- searchable: boolean;
33
- help: string | null;
34
32
  required: boolean;
35
- multiple: boolean;
33
+ searchable: boolean;
36
34
  clearable: boolean;
35
+ multiple: boolean;
36
+ help: string | null;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  export default _default;
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
17
17
  disabled: boolean;
18
18
  readonly: boolean;
19
19
  step: number;
20
- help: string | null;
21
20
  required: boolean;
21
+ help: string | null;
22
22
  marks: Record<string, string> | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
@@ -18,9 +18,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
18
18
  disabled: boolean;
19
19
  placeholder: string | null;
20
20
  readonly: boolean;
21
+ required: boolean;
21
22
  separator: string | null;
22
23
  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
- help: string | null;
19
18
  required: boolean;
19
+ help: string | null;
20
20
  inlineLabel: string | null;
21
21
  onLabel: string | null;
22
22
  offLabel: string | null;
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
28
28
  label: string | null;
29
29
  disabled: boolean;
30
30
  placeholder: string | null;
31
+ required: boolean;
31
32
  separator: string;
32
33
  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;
17
16
  required: boolean;
17
+ help: string | null;
18
18
  rows: number;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
@@ -14,8 +14,8 @@ 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;
18
17
  required: boolean;
18
+ help: string | null;
19
19
  autocomplete: string | null;
20
20
  inputType: "text" | "email" | "url" | "password" | "tel" | "search";
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -19,8 +19,8 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
19
19
  placeholder: string | null;
20
20
  readonly: boolean;
21
21
  step: number | null;
22
- help: string | null;
23
22
  required: boolean;
23
+ help: string | null;
24
24
  withSeconds: 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
  placeholder: string | null;
18
- help: string | null;
19
18
  required: boolean;
19
+ help: string | null;
20
20
  rows: number;
21
21
  locales: string[];
22
22
  multiline: boolean;
@@ -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;
21
20
  required: boolean;
22
- checkable: boolean;
23
21
  multiple: boolean;
22
+ help: string | null;
23
+ checkable: boolean;
24
24
  selectableParents: 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
  placeholder: string | null;
18
- help: string | null;
19
18
  required: boolean;
19
+ help: string | null;
20
20
  minHeight: string;
21
21
  maxHeight: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -28,11 +28,11 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
28
28
  }>, {
29
29
  size: "lg" | "xl" | "full";
30
30
  title: string;
31
- filters: Record<string, unknown>;
32
31
  searchable: boolean;
32
+ multiple: boolean;
33
+ filters: Record<string, unknown>;
33
34
  layout: "grid" | "list" | null;
34
35
  upload: PickerUpload | null;
35
- multiple: boolean;
36
36
  perPage: number;
37
37
  selected: PickerItem[];
38
38
  maxItems: number | null;
@@ -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;
22
21
  required: boolean;
22
+ help: string | null;
23
23
  toolbar: string | unknown[];
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
- help: string | null;
27
26
  required: boolean;
27
+ help: string | null;
28
28
  init: Record<string, unknown>;
29
29
  apiKey: string | null;
30
30
  imageUploadUrl: string;
@@ -1,6 +1,8 @@
1
1
  interface ImpersonationData {
2
- /** Whom we are logged in as. */
2
+ /** Whom we are logged in as — a user, or the role the panel is viewed as. */
3
3
  asName: string;
4
+ /** `role` — viewing the panel as a role (admin.auth.role_preview); `user` by default. */
5
+ kind?: 'user' | 'role';
4
6
  }
5
7
  interface BrandData {
6
8
  name?: string;
@@ -0,0 +1,9 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue?: boolean;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: boolean) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export interface PreviewRole {
2
+ slug: string;
3
+ name: string;
4
+ }
5
+ interface PreviewRolesPayload {
6
+ roles: PreviewRole[];
7
+ current: PreviewRole | null;
8
+ }
9
+ /** A full reload; replaceable in tests. */
10
+ export declare const rolePreviewNavigation: {
11
+ reload: () => void;
12
+ };
13
+ /** The roles the user may view the panel as, and the one viewed now. */
14
+ export declare function loadPreviewRoles(): Promise<PreviewRolesPayload>;
15
+ export declare function startRolePreview(slug: string): Promise<void>;
16
+ export declare function stopRolePreview(): Promise<void>;
17
+ export {};
@@ -0,0 +1 @@
1
+ export {};