Skip to content

Commit 5a361d3

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 8ba2844 commit 5a361d3

File tree

92 files changed

+1771
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1771
-7
lines changed

bin/sync

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,17 @@ transform([
7676
* Register any application services.
7777
"
7878
], fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/stubs/NovaServiceProvider.stub"));
79+
80+
Symfony\Component\Process\Process::fromShellCommandline(
81+
'npx -p typescript tsc', $workingPath
82+
)->mustRun();
83+
84+
$files->ensureDirectoryExists("{$workingPath}/types/@types/laravel-nova-ui");
85+
86+
Illuminate\Support\Collection::make([
87+
...$files->glob("{$workingPath}/vendor/laravel/nova/resources/types/components/*"),
88+
])->flatten()
89+
->filter(fn ($file) => is_file($file))
90+
->each(function ($file) use ($files, $workingPath) {
91+
$files->copy($file, "{$workingPath}/types/@types/laravel-nova-ui".Illuminate\Support\Str::after($file, "{$workingPath}/vendor/laravel/nova/resources/types/components"));
92+
});

dist/js/components.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @typedef {import('./nova').default} NovaApp
3+
*/
4+
/**
5+
* @param {NovaApp} app
6+
*/
7+
export function registerViews(app: NovaApp): void;
8+
export type NovaApp = import("./nova").default;
9+
//# sourceMappingURL=components.d.ts.map

dist/js/components.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export function useLocalization(): {
2+
/**
3+
* @param {string} key
4+
* @param {{[key: string]: string}} replace
5+
* @returns {string}
6+
*/
7+
__: (key: string, replace: {
8+
[key: string]: string;
9+
}) => string;
10+
};
11+
//# sourceMappingURL=useLocalization.d.ts.map

dist/js/composables/useLocalization.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/fields.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* @param {NovaApp} app
3+
*/
4+
export function registerFields(app: NovaApp): void;
5+
export type NovaApp = import("./nova").default;
6+
//# sourceMappingURL=fields.d.ts.map

dist/js/fields.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/mixins/CopiesToClipboard.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export function useCopyValueToClipboard(): {
2+
copyValueToClipboard: (value: any) => void;
3+
};
4+
export default mixin;
5+
declare namespace mixin {
6+
namespace methods {
7+
/**
8+
* @param {string} value
9+
*/
10+
function copyValueToClipboard(value: string): void;
11+
}
12+
}
13+
//# sourceMappingURL=CopiesToClipboard.d.ts.map

dist/js/mixins/CopiesToClipboard.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
declare namespace _default {
2+
export { FormField as extends };
3+
export let emits: string[];
4+
export namespace props {
5+
namespace syncEndpoint {
6+
let type: StringConstructor;
7+
let required: boolean;
8+
}
9+
}
10+
export function data(): {
11+
dependentFieldDebouncer: any;
12+
canceller: any;
13+
watchedFields: {};
14+
watchedEvents: {};
15+
syncedField: any;
16+
pivot: boolean;
17+
editMode: string;
18+
};
19+
export function created(): void;
20+
export function mounted(): void;
21+
export function beforeUnmount(): void;
22+
export namespace methods {
23+
function setInitialValue(): void;
24+
/**
25+
* Provide a function to fills FormData when field is visible.
26+
*
27+
* @param {FormData} formData
28+
* @param {string} attribute
29+
* @param {any} value
30+
*/
31+
function fillIfVisible(formData: FormData, attribute: string, value: any): void;
32+
function syncField(): void;
33+
function onSyncedField(): void;
34+
function emitOnSyncedFieldValueChange(): void;
35+
/**
36+
* @returns {boolean}
37+
*/
38+
function syncedFieldValueHasNotChanged(): boolean;
39+
}
40+
export namespace computed {
41+
/**
42+
* Determine the current field
43+
*
44+
* @returns {object}
45+
*/
46+
function currentField(): object;
47+
/**
48+
* Determine if the field is in visible mode.
49+
*
50+
* @returns {boolean}
51+
*/
52+
function currentlyIsVisible(): boolean;
53+
/**
54+
* Determine if the field is in readonly mode.
55+
*
56+
* @returns {boolean}
57+
*/
58+
function currentlyIsReadonly(): boolean;
59+
/**
60+
* @returns {string[]}
61+
*/
62+
function dependsOn(): string[];
63+
/**
64+
* @returns {{[key: string]: any}}
65+
*/
66+
function currentFieldValues(): {
67+
[key: string]: any;
68+
};
69+
/**
70+
* @returns {{[key: string]: any}}
71+
*/
72+
function dependentFieldValues(): {
73+
[key: string]: any;
74+
};
75+
/**
76+
* @returns {string}
77+
*/
78+
function encodedDependentFieldValues(): string;
79+
/**
80+
* Get the correct field sync endpoint URL.
81+
*
82+
* @returns {string}
83+
*/
84+
function syncFieldEndpoint(): string;
85+
}
86+
}
87+
export default _default;
88+
import FormField from './FormField';
89+
//# sourceMappingURL=DependentFormField.d.ts.map

0 commit comments

Comments
 (0)