firstly 0.0.4 → 0.0.6
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.
- package/CHANGELOG.md +21 -0
- package/esm/{KitBaseEnum.d.ts → BaseEnum.d.ts} +18 -9
- package/esm/{KitBaseEnum.js → BaseEnum.js} +2 -13
- package/esm/{KitEntity.d.ts → FF_Entity.d.ts} +1 -1
- package/esm/{KitEntity.js → FF_Entity.js} +9 -9
- package/esm/{KitFields.d.ts → FF_Fields.d.ts} +2 -3
- package/esm/{KitFields.js → FF_Fields.js} +13 -9
- package/esm/ROUTES.d.ts +3 -1
- package/esm/ROUTES.js +2 -1
- package/esm/SqlDatabase/FF_LogToConsole.d.ts +1 -0
- package/esm/SqlDatabase/{LogToConsoleCustom.js → FF_LogToConsole.js} +1 -1
- package/esm/api/index.d.ts +2 -1
- package/esm/auth/AuthController.server.js +59 -18
- package/esm/auth/Entities.d.ts +18 -17
- package/esm/auth/Entities.js +66 -63
- package/esm/auth/RoleHelpers.d.ts +2 -2
- package/esm/auth/RoleHelpers.js +1 -1
- package/esm/auth/client/Auth.js +1 -1
- package/esm/auth/index.d.ts +14 -17
- package/esm/auth/index.js +59 -52
- package/esm/auth/providers/github.d.ts +22 -17
- package/esm/auth/providers/github.js +29 -15
- package/esm/auth/providers/strava.d.ts +22 -17
- package/esm/auth/providers/strava.js +23 -15
- package/esm/auth/static/assets/Page-BGTO8LC5.css +1 -0
- package/esm/auth/static/assets/Page-DBWJjlEQ.d.ts +4 -0
- package/esm/auth/static/assets/Page-DBWJjlEQ.js +1 -0
- package/esm/auth/static/assets/Page-RIbXHuZG.d.ts +4 -0
- package/esm/auth/static/assets/Page-RIbXHuZG.js +1 -0
- package/esm/auth/static/assets/Page-apb_xgZT.d.ts +6 -0
- package/esm/auth/static/assets/Page-apb_xgZT.js +18 -0
- package/esm/auth/static/assets/{index-R27C_TlP.css → index-CR_3yNaJ.css} +1 -1
- package/esm/auth/static/assets/index-qfq98Nyd.d.ts +63 -0
- package/esm/auth/static/assets/index-qfq98Nyd.js +2 -0
- package/esm/auth/static/index.html +2 -2
- package/esm/auth/types.d.ts +16 -22
- package/esm/bin/cmd.js +181 -83
- package/esm/{kitCellsBuildor.d.ts → cellsBuildor.d.ts} +9 -9
- package/esm/{kitCellsBuildor.js → cellsBuildor.js} +9 -9
- package/esm/feedback/ui/DialogIssue.svelte +2 -2
- package/esm/formats/dates.js +2 -2
- package/esm/handle/index.d.ts +1 -0
- package/esm/helper.d.ts +8 -10
- package/esm/helper.js +13 -8
- package/esm/index.d.ts +38 -49
- package/esm/index.js +30 -27
- package/esm/mail/index.d.ts +23 -4
- package/esm/mail/index.js +38 -15
- package/esm/mail/templates/DefaultMail.svelte +66 -0
- package/esm/mail/templates/DefaultMail.svelte.d.ts +28 -0
- package/esm/{kitStoreItem.d.ts → storeItem.d.ts} +1 -1
- package/esm/{kitStoreItem.js → storeItem.js} +1 -1
- package/esm/{kitStoreList.d.ts → storeList.d.ts} +4 -4
- package/esm/{kitStoreList.js → storeList.js} +1 -1
- package/esm/ui/Button.svelte +1 -1
- package/esm/ui/Button.svelte.d.ts +2 -2
- package/esm/ui/Field.svelte.d.ts +2 -2
- package/esm/ui/FieldGroup.svelte +2 -2
- package/esm/ui/FieldGroup.svelte.d.ts +4 -4
- package/esm/ui/Grid.svelte.d.ts +5 -5
- package/esm/ui/dialog/DialogForm.svelte +4 -4
- package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +2 -2
- package/esm/ui/dialog/FormEditAction.svelte.d.ts +2 -2
- package/esm/ui/dialog/dialog.d.ts +5 -5
- package/esm/ui/index.d.ts +2 -2
- package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +3 -3
- package/esm/ui/internals/select/SelectMelt.svelte.d.ts +3 -3
- package/esm/ui/internals/select/SelectRadio.svelte.d.ts +2 -2
- package/esm/ui/link/LinkPlus.svelte.d.ts +2 -2
- package/esm/utils/types.d.ts +3 -15
- package/esm/utils/types.js +1 -17
- package/esm/virtual/Customer.js +2 -2
- package/esm/virtual/FilterEntity.js +1 -1
- package/esm/virtual/StateDemoEnum.d.ts +4 -4
- package/esm/virtual/StateDemoEnum.js +2 -2
- package/esm/virtual/UIEntity.js +4 -4
- package/esm/vite/index.js +1 -1
- package/package.json +5 -3
- package/esm/SqlDatabase/LogToConsoleCustom.d.ts +0 -1
- package/esm/auth/static/assets/Page-BYzkK4q3.d.ts +0 -5
- package/esm/auth/static/assets/Page-BYzkK4q3.js +0 -1
- package/esm/auth/static/assets/Page-ByIhtXVt.d.ts +0 -5
- package/esm/auth/static/assets/Page-ByIhtXVt.js +0 -18
- package/esm/auth/static/assets/Page-Do7F0Mzd.d.ts +0 -5
- package/esm/auth/static/assets/Page-Do7F0Mzd.js +0 -1
- package/esm/auth/static/assets/Page-gV58jf2r.css +0 -1
- package/esm/auth/static/assets/index-czJ1PA1n.d.ts +0 -53
- package/esm/auth/static/assets/index-czJ1PA1n.js +0 -2
package/esm/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FieldMetadata } from 'remult';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Cell } from '../';
|
|
3
3
|
export type Align = 'text-left' | 'text-center' | 'text-right';
|
|
4
4
|
export declare const align: (f?: FieldMetadata, isSlot?: boolean) => Align;
|
|
5
|
-
export declare const getAligns: (cells:
|
|
5
|
+
export declare const getAligns: (cells: Cell<any>[], withAction: boolean) => Align[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type
|
|
2
|
+
import { type BaseItem } from '../../..';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
id: string;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
placeholder?: string | undefined;
|
|
8
|
-
items?:
|
|
8
|
+
items?: BaseItem[] | undefined;
|
|
9
9
|
loadOptions?: ((str: string) => Promise<{
|
|
10
|
-
items:
|
|
10
|
+
items: BaseItem[];
|
|
11
11
|
totalCount: number;
|
|
12
12
|
}>) | undefined;
|
|
13
13
|
values?: string[] | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type
|
|
2
|
+
import { type BaseItem } from '../../../';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
id: string;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
placeholder?: string | undefined;
|
|
8
|
-
items?:
|
|
8
|
+
items?: BaseItem[] | undefined;
|
|
9
9
|
focus?: boolean | undefined;
|
|
10
10
|
loadOptions?: ((str: string) => Promise<{
|
|
11
|
-
items:
|
|
11
|
+
items: BaseItem[];
|
|
12
12
|
totalCount: number;
|
|
13
13
|
}>) | undefined;
|
|
14
14
|
value?: string | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BaseItem } from '../../../';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
id: string;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
placeholder?: string | undefined;
|
|
8
|
-
items?:
|
|
8
|
+
items?: BaseItem[] | undefined;
|
|
9
9
|
value?: string | number | undefined;
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type
|
|
2
|
+
import { type BaseItemLight } from '../..';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
item:
|
|
5
|
+
item: BaseItemLight | undefined;
|
|
6
6
|
noIcon?: boolean | undefined;
|
|
7
7
|
captionSubStyle?: "none" | "under" | "inline" | undefined;
|
|
8
8
|
};
|
package/esm/utils/types.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* ```ts
|
|
4
|
-
* type KnownTypes = 'password' | 'otp' | 'oAuths' | 'demo'
|
|
5
|
-
*
|
|
6
|
-
* // literal or string
|
|
7
|
-
* const knownType = litOrStr<KnownTypes>('demo')
|
|
8
|
-
* const escapedType = litOrStr('coucou')
|
|
9
|
-
*
|
|
10
|
-
* // literal[] or string[]
|
|
11
|
-
* const knownType = litOrStr<KnownTypes[]>(['demo', 'oAuths'])
|
|
12
|
-
* const escapedType = litOrStr(['hello', 'coucou'])
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function litOrStr<T extends string | string[]>(value: T): T;
|
|
16
1
|
export type ResolvedType<T> = T extends Promise<infer R> ? R : T;
|
|
17
2
|
export type UnArray<T extends any[]> = T extends (infer U)[] ? U : never;
|
|
3
|
+
export type RecursivePartial<T> = {
|
|
4
|
+
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
5
|
+
};
|
package/esm/utils/types.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* ```ts
|
|
4
|
-
* type KnownTypes = 'password' | 'otp' | 'oAuths' | 'demo'
|
|
5
|
-
*
|
|
6
|
-
* // literal or string
|
|
7
|
-
* const knownType = litOrStr<KnownTypes>('demo')
|
|
8
|
-
* const escapedType = litOrStr('coucou')
|
|
9
|
-
*
|
|
10
|
-
* // literal[] or string[]
|
|
11
|
-
* const knownType = litOrStr<KnownTypes[]>(['demo', 'oAuths'])
|
|
12
|
-
* const escapedType = litOrStr(['hello', 'coucou'])
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export function litOrStr(value) {
|
|
16
|
-
return value;
|
|
17
|
-
}
|
|
1
|
+
export {};
|
package/esm/virtual/Customer.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Entity, Fields } from 'remult';
|
|
8
|
-
import {
|
|
8
|
+
import { FF_Fields } from '../FF_Fields';
|
|
9
9
|
let Customer = class Customer {
|
|
10
10
|
id;
|
|
11
11
|
name;
|
|
@@ -14,7 +14,7 @@ __decorate([
|
|
|
14
14
|
Fields.cuid()
|
|
15
15
|
], Customer.prototype, "id", void 0);
|
|
16
16
|
__decorate([
|
|
17
|
-
|
|
17
|
+
FF_Fields.string({ caption: 'Nom de la société', placeholder: 'Dynamic Process' })
|
|
18
18
|
], Customer.prototype, "name", void 0);
|
|
19
19
|
Customer = __decorate([
|
|
20
20
|
Entity('customers', {
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Entity, Fields } from 'remult';
|
|
8
|
-
// import {
|
|
8
|
+
// import { FF_Fields } from '../FF_Fields.js'
|
|
9
9
|
let FilterEntity = class FilterEntity {
|
|
10
10
|
search = '';
|
|
11
11
|
title = '';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import { BaseEnum } from '../BaseEnum';
|
|
2
|
+
import type { BaseEnumOptions } from '../BaseEnum';
|
|
3
3
|
import '../ui/LibIcon';
|
|
4
|
-
export declare class StateDemoEnum extends
|
|
4
|
+
export declare class StateDemoEnum extends BaseEnum {
|
|
5
5
|
static CHECK: StateDemoEnum;
|
|
6
6
|
static EDIT: StateDemoEnum;
|
|
7
7
|
static DELETE: StateDemoEnum;
|
|
8
|
-
constructor(id: string, options?:
|
|
8
|
+
constructor(id: string, options?: BaseEnumOptions<StateDemoEnum>);
|
|
9
9
|
}
|
|
@@ -6,10 +6,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
var StateDemoEnum_1;
|
|
8
8
|
import { ValueListFieldType } from 'remult';
|
|
9
|
-
import {
|
|
9
|
+
import { BaseEnum } from '../BaseEnum';
|
|
10
10
|
import '../ui/LibIcon';
|
|
11
11
|
import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit } from '../ui/LibIcon';
|
|
12
|
-
let StateDemoEnum = class StateDemoEnum extends
|
|
12
|
+
let StateDemoEnum = class StateDemoEnum extends BaseEnum {
|
|
13
13
|
static { StateDemoEnum_1 = this; }
|
|
14
14
|
static CHECK = new StateDemoEnum_1('CHECK', {
|
|
15
15
|
caption: 'Check',
|
package/esm/virtual/UIEntity.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Entity, Field, Fields } from 'remult';
|
|
8
|
-
import {
|
|
8
|
+
import { FF_Fields } from '../FF_Fields.js';
|
|
9
9
|
import { StateDemoEnum } from './StateDemoEnum.js';
|
|
10
10
|
let UIEntity = class UIEntity {
|
|
11
11
|
id;
|
|
@@ -39,13 +39,13 @@ __decorate([
|
|
|
39
39
|
Fields.updatedAt()
|
|
40
40
|
], UIEntity.prototype, "updatedAt", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
|
|
42
|
+
FF_Fields.string({ caption: "Nom de l'utilisateur", placeholder: 'Jean-Yves', suffix: 'sdsd' })
|
|
43
43
|
], UIEntity.prototype, "username", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
Fields.string({ caption: 'E Mail', inputType: 'email', placeholder: 'prénom.nom@se.com' })
|
|
46
46
|
], UIEntity.prototype, "email", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
|
|
48
|
+
FF_Fields.string({
|
|
49
49
|
caption: 'Mot de passe',
|
|
50
50
|
inputType: 'password',
|
|
51
51
|
placeholder: '********',
|
|
@@ -73,7 +73,7 @@ __decorate([
|
|
|
73
73
|
Fields.date({ allowNull: true, allowApiUpdate: false })
|
|
74
74
|
], UIEntity.prototype, "arrivalDate", void 0);
|
|
75
75
|
__decorate([
|
|
76
|
-
|
|
76
|
+
FF_Fields.dateOnly({ allowNull: true })
|
|
77
77
|
], UIEntity.prototype, "arrivalDateOnly", void 0);
|
|
78
78
|
UIEntity = __decorate([
|
|
79
79
|
Entity('uiEntities', {
|
package/esm/vite/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { mergeConfig } from 'vite';
|
|
|
2
2
|
import { kitRoutes } from 'vite-plugin-kit-routes';
|
|
3
3
|
import { stripper } from 'vite-plugin-stripper';
|
|
4
4
|
// import { Log } from '@kitql/helpers'
|
|
5
|
-
const toRemove = ['oslo/password', 'oslo'
|
|
5
|
+
const toRemove = ['oslo/password', 'oslo'];
|
|
6
6
|
export function firstly(options) {
|
|
7
7
|
// const log = new Log('firstly')
|
|
8
8
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firstly",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Firstly, an opinionated Remult setup!",
|
|
6
6
|
"repository": {
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@sveltejs/kit": ">=1.0.0 <3.0.0",
|
|
17
|
-
"remult": "0.27.
|
|
18
|
-
"svelte": ">=4.
|
|
17
|
+
"remult": "0.27.4",
|
|
18
|
+
"svelte": ">=4.2.18"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^0.7.0",
|
|
22
|
+
"@kitql/internals": "0.9.8",
|
|
22
23
|
"@mdi/js": "^7.4.47",
|
|
23
24
|
"@melt-ui/svelte": "^0.81.0",
|
|
24
25
|
"@types/nodemailer": "^6.4.15",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"lucia": "^3.2.0",
|
|
31
32
|
"nodemailer": "^6.9.13",
|
|
32
33
|
"oslo": "^1.2.0",
|
|
34
|
+
"svelte-email": "^0.0.4",
|
|
33
35
|
"tailwind-merge": "^2.3.0",
|
|
34
36
|
"tailwindcss": "^3.4.3",
|
|
35
37
|
"vite": "^5.4.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LogToConsoleCustom: (duration: number, query: string, args: Record<string, any>, short?: boolean) => string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as o,b as r,a as i,H as l,d as c,n as a,k as f}from"./index-czJ1PA1n.js";function m(s){let t;return{c(){t=l("Hello from admin")},m(e,n){c(e,t,n)},p:a,i:a,o:a,d(e){e&&f(t)}}}class d extends o{constructor(t){super(),r(this,t,null,m,i,{})}}export{d as default};
|