firstly 0.1.0-next.3 → 0.1.0-next.4

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 (87) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/esm/auth/Entities.d.ts +2 -2
  3. package/esm/auth/Entities.js +1 -1
  4. package/esm/auth/static/assets/Page-5iUUg7GN.d.ts +2 -0
  5. package/esm/auth/static/assets/Page-5iUUg7GN.js +1 -0
  6. package/esm/auth/static/assets/Page-BcSzu3xq.d.ts +2 -0
  7. package/esm/auth/static/assets/Page-BcSzu3xq.js +20 -0
  8. package/esm/auth/static/assets/Page-sEK21EQB.d.ts +2 -0
  9. package/esm/auth/static/assets/Page-sEK21EQB.js +1 -0
  10. package/esm/auth/static/assets/index-RpcgeXPm.d.ts +232 -0
  11. package/esm/auth/static/assets/index-RpcgeXPm.js +2 -0
  12. package/esm/auth/static/index.html +1 -1
  13. package/esm/bin/cmd.js +5 -5
  14. package/esm/feedback/ui/DialogIssue.svelte +8 -1
  15. package/esm/feedback/ui/DialogIssues.svelte +1 -1
  16. package/esm/feedback/ui/DialogMilestones.svelte +2 -3
  17. package/esm/feedback/ui/Feedback.svelte +1 -1
  18. package/esm/formats/dates.js +1 -1
  19. package/esm/index.d.ts +3 -83
  20. package/esm/index.js +3 -45
  21. package/esm/{FF_Entity.js → internals/FF_Entity.js} +1 -1
  22. package/esm/{FF_Fields.js → internals/FF_Fields.js} +1 -1
  23. package/esm/{cellsBuildor.d.ts → internals/cellsBuildor.d.ts} +1 -1
  24. package/esm/{common.d.ts → internals/common.d.ts} +0 -2
  25. package/esm/internals/common.js +3 -0
  26. package/esm/{helper.js → internals/helper.js} +1 -1
  27. package/esm/internals/index.d.ts +83 -0
  28. package/esm/internals/index.js +45 -0
  29. package/esm/{storeItem.js → internals/storeItem.js} +2 -2
  30. package/esm/svelte/dialog/DialogPrimitive.svelte +1 -1
  31. package/esm/svelte/dialog/DialogPrimitive.svelte.d.ts +1 -1
  32. package/esm/svelte/dialog/dialog.d.ts +1 -1
  33. package/esm/svelte/dialog/dialog.js +1 -1
  34. package/esm/ui/Button.svelte +1 -1
  35. package/esm/ui/Button.svelte.d.ts +1 -1
  36. package/esm/ui/Field.svelte +2 -2
  37. package/esm/ui/Field.svelte.d.ts +1 -1
  38. package/esm/ui/FieldGroup.svelte +2 -2
  39. package/esm/ui/FieldGroup.svelte.d.ts +3 -3
  40. package/esm/ui/Grid.svelte +3 -3
  41. package/esm/ui/Grid.svelte.d.ts +2 -2
  42. package/esm/ui/Grid2.svelte +3 -3
  43. package/esm/ui/Grid2.svelte.d.ts +1 -1
  44. package/esm/ui/dialog/DialogForm.svelte +2 -2
  45. package/esm/ui/dialog/DialogPrimitive.svelte +1 -1
  46. package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +1 -1
  47. package/esm/ui/dialog/FormEditAction.svelte +1 -1
  48. package/esm/ui/dialog/FormEditAction.svelte.d.ts +1 -1
  49. package/esm/ui/dialog/dialog.d.ts +1 -1
  50. package/esm/ui/dialog/dialog.js +1 -1
  51. package/esm/ui/index.d.ts +1 -1
  52. package/esm/ui/internals/Textarea.svelte +1 -1
  53. package/esm/ui/internals/select/MultiSelectMelt.svelte +1 -1
  54. package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +1 -1
  55. package/esm/ui/internals/select/SelectMelt.svelte +1 -1
  56. package/esm/ui/internals/select/SelectMelt.svelte.d.ts +1 -1
  57. package/esm/ui/internals/select/SelectRadio.svelte +1 -1
  58. package/esm/ui/internals/select/SelectRadio.svelte.d.ts +1 -1
  59. package/esm/ui/link/LinkPlus.svelte +1 -1
  60. package/esm/ui/link/LinkPlus.svelte.d.ts +1 -1
  61. package/esm/virtual/Customer.js +1 -1
  62. package/esm/virtual/StateDemoEnum.d.ts +2 -2
  63. package/esm/virtual/StateDemoEnum.js +1 -1
  64. package/esm/virtual/UIEntity.js +1 -1
  65. package/package.json +5 -1
  66. package/esm/ROUTES.d.ts +0 -102
  67. package/esm/ROUTES.js +0 -106
  68. package/esm/auth/static/assets/Page-CTZPxniP.d.ts +0 -6
  69. package/esm/auth/static/assets/Page-CTZPxniP.js +0 -1
  70. package/esm/auth/static/assets/Page-D0d9iZO-.d.ts +0 -6
  71. package/esm/auth/static/assets/Page-D0d9iZO-.js +0 -1
  72. package/esm/auth/static/assets/Page-DXshwJi7.d.ts +0 -6
  73. package/esm/auth/static/assets/Page-DXshwJi7.js +0 -20
  74. package/esm/auth/static/assets/index-LRDptjak.d.ts +0 -217
  75. package/esm/auth/static/assets/index-LRDptjak.js +0 -44
  76. package/esm/common.js +0 -8
  77. /package/esm/{BaseEnum.d.ts → internals/BaseEnum.d.ts} +0 -0
  78. /package/esm/{BaseEnum.js → internals/BaseEnum.js} +0 -0
  79. /package/esm/{FF_Entity.d.ts → internals/FF_Entity.d.ts} +0 -0
  80. /package/esm/{FF_Fields.d.ts → internals/FF_Fields.d.ts} +0 -0
  81. /package/esm/{cellsBuildor.js → internals/cellsBuildor.js} +0 -0
  82. /package/esm/{helper.d.ts → internals/helper.d.ts} +0 -0
  83. /package/esm/{storeItem.d.ts → internals/storeItem.d.ts} +0 -0
  84. /package/esm/{storeList.d.ts → internals/storeList.d.ts} +0 -0
  85. /package/esm/{storeList.js → internals/storeList.js} +0 -0
  86. /package/esm/{theme.d.ts → internals/theme.d.ts} +0 -0
  87. /package/esm/{theme.js → internals/theme.js} +0 -0
@@ -0,0 +1,83 @@
1
+ import type { FindOptionsBase } from 'remult';
2
+ import type { ColumnDeciderArgs } from '../changeLog/index.js';
3
+ import { default as Button } from '../ui/Button.svelte';
4
+ import { default as Clipboardable } from '../ui/Clipboardable.svelte';
5
+ import type { dialog } from '../ui/dialog/dialog.js';
6
+ import { default as DialogManagement } from '../ui/dialog/DialogManagement.svelte';
7
+ import { default as FormEditAction } from '../ui/dialog/FormEditAction.svelte';
8
+ import { default as Field } from '../ui/Field.svelte';
9
+ import { default as FieldGroup } from '../ui/FieldGroup.svelte';
10
+ import { default as Grid } from '../ui/Grid.svelte';
11
+ import { default as Grid2 } from '../ui/Grid2.svelte';
12
+ import { default as GridPaginate } from '../ui/GridPaginate.svelte';
13
+ import { default as GridPaginate2 } from '../ui/GridPaginate2.svelte';
14
+ import { default as Icon } from '../ui/Icon.svelte';
15
+ import { default as FieldContainer } from '../ui/internals/FieldContainer.svelte';
16
+ import { default as SelectMelt } from '../ui/internals/select/SelectMelt.svelte';
17
+ import { default as Link } from '../ui/link/Link.svelte';
18
+ import { default as LinkPlus } from '../ui/link/LinkPlus.svelte';
19
+ import { default as Loading } from '../ui/Loading.svelte';
20
+ import { default as Tooltip } from '../ui/Tooltip.svelte';
21
+ import type { BaseEnum, BaseItem, FF_Icon } from './BaseEnum.js';
22
+ import type { CellsInput as CellsInput_ForExport } from './cellsBuildor.js';
23
+ import { FF_Role } from './common.js';
24
+ import { storeItem } from './storeItem.js';
25
+ import { storeList } from './storeList.js';
26
+ export { Field, FormEditAction, Grid, Grid2, GridPaginate, GridPaginate2, FieldGroup, Icon, Link, LinkPlus, Loading, Button, Tooltip, DialogManagement, FieldContainer, SelectMelt, Clipboardable, };
27
+ export type { BaseEnumOptions } from './BaseEnum.js';
28
+ export type { BaseItem };
29
+ export type BaseItemLight = Partial<BaseItem>;
30
+ export type { DialogMetaDataInternal } from '../ui/dialog/dialog.js';
31
+ export type CellsInput<entityType> = CellsInput_ForExport<entityType>;
32
+ export type { Cell, VisibilityMode } from './cellsBuildor.js';
33
+ export type { FF_FindOptions } from './storeList.js';
34
+ export type StoreItem<T> = ReturnType<typeof storeItem<T>>;
35
+ export type StoreList<T> = ReturnType<typeof storeList<T>>;
36
+ export type { ResolvedType, UnArray, RecursivePartial } from '../utils/types.js';
37
+ export { FF_Fields } from './FF_Fields.js';
38
+ export { FF_Entity } from './FF_Entity.js';
39
+ export { FF_LogToConsole } from '../SqlDatabase/FF_LogToConsole.js';
40
+ export { BaseEnum } from './BaseEnum.js';
41
+ export { dialog } from '../ui/dialog/dialog.js';
42
+ export { getEntityDisplayValue, displayWithDefaultAndSuffix, isError, getFieldLinkDisplayValue, getEnum, getEnums, onDelete, } from './helper.js';
43
+ export { buildWhere, getPlaceholder, buildSearchWhere, cellsBuildor, cellBuildor, fieldsOf, containsWords, } from './cellsBuildor.js';
44
+ export { storeItem };
45
+ export { storeList };
46
+ export { tw } from '../utils/tailwind.js';
47
+ export { FF_Role };
48
+ export { FilterEntity } from '../virtual/FilterEntity.js';
49
+ export { UIEntity } from '../virtual/UIEntity.js';
50
+ export { LibIcon_Empty, LibIcon_Forbidden, LibIcon_ChevronDown, LibIcon_ChevronUp, LibIcon_ChevronLeft, LibIcon_ChevronRight, LibIcon_Search, LibIcon_Check, LibIcon_MultiCheck, LibIcon_Add, LibIcon_MultiAdd, LibIcon_Edit, LibIcon_Delete, LibIcon_Cross, LibIcon_Save, LibIcon_Man, LibIcon_Woman, LibIcon_Send, LibIcon_Load, LibIcon_Settings, LibIcon_Sort, LibIcon_SortAsc, LibIcon_SortDesc, } from '../ui/LibIcon.js';
51
+ export type { FF_Icon };
52
+ declare module 'remult' {
53
+ interface FieldOptions<entityType, valueType> {
54
+ placeholder?: string;
55
+ suffix?: string;
56
+ suffixWithS?: boolean;
57
+ suffixEdit?: string;
58
+ suffixEditWithS?: boolean;
59
+ styleRadioUntil?: number;
60
+ step?: '1' | '0.1' | '0.01';
61
+ href?: (item: entityType) => string;
62
+ findOptionsForEdit?: ((entity: entityType) => FindOptionsBase<valueType>) | FindOptionsBase<valueType>;
63
+ findOptionsLimit?: number;
64
+ createOptionWhenNoResult?: {
65
+ onCreateRequest: (item: entityType, strCreateNew: string) => Parameters<typeof dialog.form>;
66
+ onSuccess: (entity: entityType, newItem: any) => Promise<void>;
67
+ onError?: () => void;
68
+ };
69
+ default_select_if_one_item?: boolean;
70
+ multiSelect?: boolean;
71
+ skipForDefaultField?: boolean;
72
+ }
73
+ interface EntityOptions<entityType> {
74
+ searchableFind?: (str: string) => FindOptionsBase<entityType>;
75
+ displayValue?: (item: entityType) => BaseItem;
76
+ permissionApiCrud?: BaseEnum[] | BaseEnum;
77
+ permissionApiDelete?: BaseEnum[] | BaseEnum;
78
+ permissionApiInsert?: BaseEnum[] | BaseEnum;
79
+ permissionApiRead?: BaseEnum[] | BaseEnum;
80
+ permissionApiUpdate?: BaseEnum[] | BaseEnum;
81
+ changeLog?: false | ColumnDeciderArgs<entityType>;
82
+ }
83
+ }
@@ -0,0 +1,45 @@
1
+ import { default as Button } from '../ui/Button.svelte';
2
+ import { default as Clipboardable } from '../ui/Clipboardable.svelte';
3
+ import { default as DialogManagement } from '../ui/dialog/DialogManagement.svelte';
4
+ import { default as FormEditAction } from '../ui/dialog/FormEditAction.svelte';
5
+ import { default as Field } from '../ui/Field.svelte';
6
+ import { default as FieldGroup } from '../ui/FieldGroup.svelte';
7
+ import { default as Grid } from '../ui/Grid.svelte';
8
+ import { default as Grid2 } from '../ui/Grid2.svelte';
9
+ import { default as GridPaginate } from '../ui/GridPaginate.svelte';
10
+ import { default as GridPaginate2 } from '../ui/GridPaginate2.svelte';
11
+ import { default as Icon } from '../ui/Icon.svelte';
12
+ import { default as FieldContainer } from '../ui/internals/FieldContainer.svelte';
13
+ import { default as SelectMelt } from '../ui/internals/select/SelectMelt.svelte';
14
+ import { default as Link } from '../ui/link/Link.svelte';
15
+ import { default as LinkPlus } from '../ui/link/LinkPlus.svelte';
16
+ import { default as Loading } from '../ui/Loading.svelte';
17
+ import { default as Tooltip } from '../ui/Tooltip.svelte';
18
+ import { FF_Role } from './common.js';
19
+ import { storeItem } from './storeItem.js';
20
+ import { storeList } from './storeList.js';
21
+ // ******************************
22
+ // Svelte Components
23
+ // ******************************
24
+ export { Field, FormEditAction, Grid, Grid2, GridPaginate, GridPaginate2, FieldGroup, Icon, Link, LinkPlus, Loading, Button, Tooltip, DialogManagement, FieldContainer, SelectMelt, Clipboardable, };
25
+ // ******************************
26
+ // Helpers
27
+ // ******************************
28
+ export { FF_Fields } from './FF_Fields.js';
29
+ export { FF_Entity } from './FF_Entity.js';
30
+ export { FF_LogToConsole } from '../SqlDatabase/FF_LogToConsole.js';
31
+ export { BaseEnum } from './BaseEnum.js';
32
+ export { dialog } from '../ui/dialog/dialog.js';
33
+ export { getEntityDisplayValue, displayWithDefaultAndSuffix, isError, getFieldLinkDisplayValue, getEnum, getEnums, onDelete, } from './helper.js';
34
+ export { buildWhere, getPlaceholder, buildSearchWhere, cellsBuildor, cellBuildor, fieldsOf, containsWords, } from './cellsBuildor.js';
35
+ export { storeItem };
36
+ export { storeList };
37
+ export { tw } from '../utils/tailwind.js';
38
+ export { FF_Role };
39
+ // Hummm... I don't know if we should keep it...
40
+ export { FilterEntity } from '../virtual/FilterEntity.js';
41
+ export { UIEntity } from '../virtual/UIEntity.js';
42
+ // ******************************
43
+ // Icons
44
+ // ******************************
45
+ export { LibIcon_Empty, LibIcon_Forbidden, LibIcon_ChevronDown, LibIcon_ChevronUp, LibIcon_ChevronLeft, LibIcon_ChevronRight, LibIcon_Search, LibIcon_Check, LibIcon_MultiCheck, LibIcon_Add, LibIcon_MultiAdd, LibIcon_Edit, LibIcon_Delete, LibIcon_Cross, LibIcon_Save, LibIcon_Man, LibIcon_Woman, LibIcon_Send, LibIcon_Load, LibIcon_Settings, LibIcon_Sort, LibIcon_SortAsc, LibIcon_SortDesc, } from '../ui/LibIcon.js';
@@ -1,7 +1,7 @@
1
1
  import { BROWSER } from 'esm-env';
2
2
  import { derived, get, writable } from 'svelte/store';
3
- import { ff_Log } from './common.js';
4
- import { isError } from './helper';
3
+ import { ff_Log } from '../index.js';
4
+ import { isError } from './helper.js';
5
5
  export const storeItem = (repo, initValues = {
6
6
  item: undefined,
7
7
  loading: true,
@@ -3,7 +3,7 @@
3
3
  import { createEventDispatcher } from 'svelte'
4
4
  import { fade } from 'svelte/transition'
5
5
 
6
- import { LibIcon_Cross, type BaseItemLight } from '../../'
6
+ import { LibIcon_Cross, type BaseItemLight } from '../../internals'
7
7
  import Icon from '../../ui/Icon.svelte'
8
8
  import LinkPlus from '../../ui/link/LinkPlus.svelte'
9
9
  import { flyAndScale } from '../../utils/transition'
@@ -1,4 +1,4 @@
1
- import { type BaseItemLight } from '../../';
1
+ import { type BaseItemLight } from '../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,6 +1,6 @@
1
1
  import type { SvelteComponent } from 'svelte';
2
2
  import { type Repository } from 'remult';
3
- import { type BaseItemLight, type CellsInput, type StoreItem } from '../../';
3
+ import { type BaseItemLight, type CellsInput, type StoreItem } from '../../internals';
4
4
  import type { FF_Repo } from '../../svelte';
5
5
  export type DialogClasses = {
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { writable } from 'svelte/store';
2
2
  import {} from 'remult';
3
- import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit, LibIcon_Search, } from '../../';
3
+ import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit, LibIcon_Search, } from '../../internals';
4
4
  const createDialogManagement = () => {
5
5
  const { subscribe, update } = writable([]);
6
6
  // internal...
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { remult } from 'remult'
7
7
 
8
- import { BaseEnum, tw } from '../'
8
+ import { BaseEnum, tw } from '../internals'
9
9
 
10
10
  export let isLoading = false
11
11
  let className: string | undefined | null = undefined
@@ -1,4 +1,4 @@
1
- import { BaseEnum } from '../';
1
+ import { BaseEnum } from '../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -4,15 +4,15 @@
4
4
 
5
5
  import { type FieldMetadata, type FindOptions } from 'remult'
6
6
 
7
- import { type BaseItem, type Cell } from '../'
8
7
  import { suffixWithS } from '../formats/strings'
8
+ import { type BaseItem, type Cell } from '../internals'
9
9
  import {
10
10
  displayWithDefaultAndSuffix,
11
11
  getEntityDisplayValue,
12
12
  getFieldMetaType,
13
13
  getFirstInterestingField,
14
14
  type MetaTypeRelation,
15
- } from '../helper.js'
15
+ } from '../internals/helper.js'
16
16
  import { tw } from '../utils/tailwind'
17
17
  import Clipboardable from './Clipboardable.svelte'
18
18
  import Icon from './Icon.svelte'
@@ -1,5 +1,5 @@
1
1
  import type { HTMLInputAttributes } from 'svelte/elements';
2
- import { type Cell } from '../';
2
+ import { type Cell } from '../internals';
3
3
  declare class __sveltets_Render<T extends Record<any, any>> {
4
4
  props(): {
5
5
  [x: string]: any;
@@ -4,8 +4,8 @@
4
4
  import type { FieldMetadata } from 'remult'
5
5
  import { getRelationFieldInfo } from 'remult/internals'
6
6
 
7
- import { tw, type StoreItem } from '../'
8
- import type { Cell } from '../cellsBuildor'
7
+ import { tw, type StoreItem } from '../internals'
8
+ import type { Cell } from '../internals/cellsBuildor'
9
9
  import Field from './Field.svelte'
10
10
  import FieldContainer from './internals/FieldContainer.svelte'
11
11
  import Loading from './Loading.svelte'
@@ -1,9 +1,9 @@
1
1
  import type { FieldMetadata } from 'remult';
2
- import { type StoreItem } from '../';
3
- import type { Cell } from '../cellsBuildor';
2
+ import { type StoreItem } from '../internals';
3
+ import type { Cell } from '../internals/cellsBuildor';
4
4
  declare class __sveltets_Render<T extends Record<any, any>> {
5
5
  props(): {
6
- mode?: "view" | "edit" | "filtre";
6
+ mode?: "edit" | "view" | "filtre";
7
7
  cells: Cell<T>[];
8
8
  store: StoreItem<T>;
9
9
  focusKey?: string | null | undefined;
@@ -3,15 +3,15 @@
3
3
 
4
4
  import type { EntityOrderBy } from 'remult'
5
5
 
6
- import type { Cell } from '../cellsBuildor.js'
6
+ import type { Cell } from '../internals/cellsBuildor.js'
7
7
  import {
8
8
  displayWithDefaultAndSuffix,
9
9
  getEntityDisplayValue,
10
10
  getEntityDisplayValueFromField,
11
11
  getFieldLinkDisplayValue,
12
12
  getFieldMetaType,
13
- } from '../helper.js'
14
- import { LibIcon_Delete, LibIcon_Edit, type StoreList } from '../index.js'
13
+ } from '../internals/helper.js'
14
+ import { LibIcon_Delete, LibIcon_Edit, type StoreList } from '../internals/index.js'
15
15
  import Button from './Button.svelte'
16
16
  import Clipboardable from './Clipboardable.svelte'
17
17
  import GridLoading from './GridLoading.svelte'
@@ -1,6 +1,6 @@
1
1
  import type { EntityOrderBy } from 'remult';
2
- import type { Cell } from '../cellsBuildor.js';
3
- import { type StoreList } from '../index.js';
2
+ import type { Cell } from '../internals/cellsBuildor.js';
3
+ import { type StoreList } from '../internals/index.js';
4
4
  declare class __sveltets_Render<T extends Record<any, any>> {
5
5
  props(): {
6
6
  cells: Cell<T>[];
@@ -3,15 +3,15 @@
3
3
 
4
4
  import type { EntityOrderBy } from 'remult'
5
5
 
6
- import type { Cell } from '../cellsBuildor.js'
6
+ import type { Cell } from '../internals/cellsBuildor.js'
7
7
  import {
8
8
  displayWithDefaultAndSuffix,
9
9
  getEntityDisplayValue,
10
10
  getEntityDisplayValueFromField,
11
11
  getFieldLinkDisplayValue,
12
12
  getFieldMetaType,
13
- } from '../helper.js'
14
- import { LibIcon_Delete, LibIcon_Edit } from '../index.js'
13
+ } from '../internals/helper.js'
14
+ import { LibIcon_Delete, LibIcon_Edit } from '../internals/index.js'
15
15
  import { intersection } from '../svelte/actions/intersection.js'
16
16
  import type { FF_Repo } from '../svelte/FF_Repo.svelte.js'
17
17
  import Button from './Button.svelte'
@@ -1,5 +1,5 @@
1
1
  import type { EntityOrderBy } from 'remult';
2
- import type { Cell } from '../cellsBuildor.js';
2
+ import type { Cell } from '../internals/cellsBuildor.js';
3
3
  import type { FF_Repo } from '../svelte/FF_Repo.svelte.js';
4
4
  declare class __sveltets_Render<T extends Record<any, any>> {
5
5
  props(): {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import { FieldGroup, storeItem } from '../..'
3
- import { cellsBuildor } from '../../cellsBuildor'
2
+ import { FieldGroup, storeItem } from '../../internals'
3
+ import { cellsBuildor } from '../../internals/cellsBuildor'
4
4
  import { dialog, type DialogMetaDataInternal } from './dialog'
5
5
  import DialogPrimitive from './DialogPrimitive.svelte'
6
6
  import FormEditAction from './FormEditAction.svelte'
@@ -3,7 +3,7 @@
3
3
  import { createEventDispatcher } from 'svelte'
4
4
  import { fade } from 'svelte/transition'
5
5
 
6
- import { LibIcon_Cross, tw, type BaseItemLight } from '../../'
6
+ import { LibIcon_Cross, tw, type BaseItemLight } from '../../internals'
7
7
  import { flyAndScale } from '../../utils/transition'
8
8
  import Icon from '../Icon.svelte'
9
9
  import LinkPlus from '../link/LinkPlus.svelte'
@@ -1,4 +1,4 @@
1
- import { type BaseItemLight } from '../../';
1
+ import { type BaseItemLight } from '../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" generics="T extends any">
2
2
  import { createEventDispatcher } from 'svelte'
3
3
 
4
- import type { StoreItem } from '../..'
4
+ import type { StoreItem } from '../../internals'
5
5
  import Button from '../Button.svelte'
6
6
  import Icon from '../Icon.svelte'
7
7
  import { LibIcon_Add, LibIcon_Check, LibIcon_Delete } from '../LibIcon'
@@ -1,4 +1,4 @@
1
- import type { StoreItem } from '../..';
1
+ import type { StoreItem } from '../../internals';
2
2
  import type { DialogType } from './dialog';
3
3
  declare class __sveltets_Render<T extends any> {
4
4
  props(): {
@@ -1,6 +1,6 @@
1
1
  import type { SvelteComponent } from 'svelte';
2
2
  import { type Repository } from 'remult';
3
- import { type BaseItemLight, type CellsInput, type StoreItem } from '../../';
3
+ import { type BaseItemLight, type CellsInput, type StoreItem } from '../../internals';
4
4
  import type { FF_Repo } from '../../svelte';
5
5
  export type DialogClasses = {
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { writable } from 'svelte/store';
2
2
  import {} from 'remult';
3
- import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit, LibIcon_Search, } from '../../';
3
+ import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit, LibIcon_Search, } from '../../internals';
4
4
  const createDialogManagement = () => {
5
5
  const { subscribe, update } = writable([]);
6
6
  // internal...
package/esm/ui/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FieldMetadata } from 'remult';
2
- import type { Cell } from '../';
2
+ import type { Cell } from '../internals';
3
3
  export type Align = 'text-left' | 'text-center' | 'text-right';
4
4
  export declare const align: (f?: FieldMetadata, isSlot?: boolean) => Align;
5
5
  export declare const getAligns: (cells: Cell<any>[], withAction: boolean) => Align[];
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { createEventDispatcher, onMount } from 'svelte'
3
3
 
4
- import { scrollbar } from '../../theme'
4
+ import { scrollbar } from '../../internals/theme'
5
5
 
6
6
  export let name: string | null = null
7
7
  export let id = ''
@@ -11,7 +11,7 @@
11
11
  tw,
12
12
  type BaseItem,
13
13
  type FF_Icon,
14
- } from '../../..'
14
+ } from '../../../internals'
15
15
  import Icon from '../../Icon.svelte'
16
16
 
17
17
  export let id: string
@@ -1,4 +1,4 @@
1
- import { type BaseItem } from '../../..';
1
+ import { type BaseItem } from '../../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -12,7 +12,7 @@
12
12
  tw,
13
13
  type BaseItem,
14
14
  type FF_Icon,
15
- } from '../../../'
15
+ } from '../../../internals'
16
16
  import Icon from '../../Icon.svelte'
17
17
 
18
18
  export let id: string
@@ -1,4 +1,4 @@
1
- import { type BaseItem } from '../../../';
1
+ import { type BaseItem } from '../../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { createEventDispatcher } from 'svelte'
3
3
 
4
- import type { BaseItem } from '../../../'
4
+ import type { BaseItem } from '../../../internals'
5
5
  import Icon from '../../../ui/Icon.svelte'
6
6
 
7
7
  export let id: string
@@ -1,4 +1,4 @@
1
- import type { BaseItem } from '../../../';
1
+ import type { BaseItem } from '../../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { type BaseItemLight } from '../..'
2
+ import { type BaseItemLight } from '../../internals'
3
3
  import Icon from '../Icon.svelte'
4
4
  import Tooltip from '../Tooltip.svelte'
5
5
  import Link from './Link.svelte'
@@ -1,4 +1,4 @@
1
- import { type BaseItemLight } from '../..';
1
+ import { type BaseItemLight } from '../../internals';
2
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
4
  $$bindings?: Bindings;
@@ -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 { FF_Fields } from '../FF_Fields';
8
+ import { FF_Fields } from '../internals/FF_Fields';
9
9
  let Customer = class Customer {
10
10
  id;
11
11
  name;
@@ -1,5 +1,5 @@
1
- import { BaseEnum } from '../BaseEnum';
2
- import type { BaseEnumOptions } from '../BaseEnum';
1
+ import { BaseEnum } from '../internals/BaseEnum';
2
+ import type { BaseEnumOptions } from '../internals/BaseEnum';
3
3
  import '../ui/LibIcon';
4
4
  export declare class StateDemoEnum extends BaseEnum {
5
5
  static CHECK: StateDemoEnum;
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  var StateDemoEnum_1;
8
8
  import { ValueListFieldType } from 'remult';
9
- import { BaseEnum } from '../BaseEnum';
9
+ import { BaseEnum } from '../internals/BaseEnum';
10
10
  import '../ui/LibIcon';
11
11
  import { LibIcon_Add, LibIcon_Delete, LibIcon_Edit } from '../ui/LibIcon';
12
12
  let StateDemoEnum = class StateDemoEnum extends BaseEnum {
@@ -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 { FF_Fields } from '../FF_Fields.js';
8
+ import { FF_Fields } from '../internals/FF_Fields.js';
9
9
  import { StateDemoEnum } from './StateDemoEnum.js';
10
10
  let UIEntity = class UIEntity {
11
11
  id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firstly",
3
- "version": "0.1.0-next.3",
3
+ "version": "0.1.0-next.4",
4
4
  "type": "module",
5
5
  "description": "Firstly, an opinionated Remult setup!",
6
6
  "funding": "https://github.com/sponsors/jycouet",
@@ -63,6 +63,10 @@
63
63
  "svelte": "./esm/index.js",
64
64
  "default": "./esm/index.js"
65
65
  },
66
+ "./internals": {
67
+ "types": "./esm/internals/index.d.ts",
68
+ "default": "./esm/internals/index.js"
69
+ },
66
70
  "./server": {
67
71
  "types": "./esm/server/index.d.ts",
68
72
  "default": "./esm/server/index.js"
package/esm/ROUTES.d.ts DELETED
@@ -1,102 +0,0 @@
1
- /**
2
- * This file was generated by 'vite-plugin-kit-routes'
3
- *
4
- * >> DO NOT EDIT THIS FILE MANUALLY <<
5
- */
6
- type ParamValue = string | number | boolean | null | undefined;
7
- /**
8
- * Append search params to a string
9
- */
10
- export declare const appendSp: (sp?: Record<string, ParamValue | ParamValue[]>, prefix?: "?" | "&") => string;
11
- /**
12
- * get the current search params
13
- *
14
- * Could be use like this:
15
- * ```
16
- * route("/cities", { page: 2 }, { ...currentSP() })
17
- * ```
18
- */
19
- export declare const currentSp: () => Record<string, string>;
20
- type NonFunctionKeys<T> = {
21
- [K in keyof T]: T[K] extends Function ? never : K;
22
- }[keyof T];
23
- type FunctionKeys<T> = {
24
- [K in keyof T]: T[K] extends Function ? K : never;
25
- }[keyof T];
26
- type FunctionParams<T> = T extends (...args: infer P) => any ? P : never;
27
- declare const AllObjs: {
28
- firstly_sign_in: string;
29
- remult_admin: string;
30
- github: (params?: {
31
- owner?: (string | number);
32
- repo?: (string | number);
33
- }) => string;
34
- "/": string;
35
- "/auth": string;
36
- "/demo/FF_Cell": string;
37
- "/demo/FF_Form_Grid": string;
38
- "/demo/FF_Layout": string;
39
- "/demo/FF_Layout/grid": string;
40
- "/demo/FF_Simple": string;
41
- "/mail": string;
42
- "/ui/dialog": string;
43
- "/ui/enum": string;
44
- "/ui/fieldGroup": string;
45
- "/ui/select": string;
46
- };
47
- type AllTypes = typeof AllObjs;
48
- export type Routes = keyof AllTypes extends `${string}/${infer Route}` ? `/${Route}` : keyof AllTypes;
49
- export declare const routes: Routes[];
50
- /**
51
- * To be used like this:
52
- * ```ts
53
- * import { route } from './ROUTES'
54
- *
55
- * route('site_id', { id: 1 })
56
- * ```
57
- */
58
- export declare function route<T extends FunctionKeys<AllTypes>>(key: T, ...params: FunctionParams<AllTypes[T]>): string;
59
- export declare function route<T extends NonFunctionKeys<AllTypes>>(key: T): string;
60
- /**
61
- * Add this type as a generic of the vite plugin `kitRoutes<KIT_ROUTES>`.
62
- *
63
- * Full example:
64
- * ```ts
65
- * import type { KIT_ROUTES } from './ROUTES'
66
- * import { kitRoutes } from 'vite-plugin-kit-routes'
67
- *
68
- * kitRoutes<KIT_ROUTES>({
69
- * PAGES: {
70
- * // here, key of object will be typed!
71
- * }
72
- * })
73
- * ```
74
- */
75
- export type KIT_ROUTES = {
76
- PAGES: {
77
- '/': never;
78
- '/auth': never;
79
- '/demo/FF_Cell': never;
80
- '/demo/FF_Form_Grid': never;
81
- '/demo/FF_Layout': never;
82
- '/demo/FF_Layout/grid': never;
83
- '/demo/FF_Simple': never;
84
- '/mail': never;
85
- '/ui/dialog': never;
86
- '/ui/enum': never;
87
- '/ui/fieldGroup': never;
88
- '/ui/select': never;
89
- };
90
- SERVERS: Record<string, never>;
91
- ACTIONS: Record<string, never>;
92
- LINKS: {
93
- 'firstly_sign_in': never;
94
- 'remult_admin': never;
95
- 'github': 'owner' | 'repo';
96
- };
97
- Params: {
98
- 'owner': never;
99
- 'repo': never;
100
- };
101
- };
102
- export {};