@fuzdev/fuz_app 0.8.0 → 0.10.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.
@@ -78,16 +78,16 @@
78
78
  aria-rowcount={rows.length + 1}
79
79
  >
80
80
  <!-- sticky header -->
81
- <div class="datatable_header" role="row" aria-rowindex={1}>
81
+ <div class="datatable-header" role="row" aria-rowindex={1}>
82
82
  {#each columns as column, i (column.key)}
83
- <div class="datatable_header_cell" role="columnheader">
83
+ <div class="datatable-header-cell" role="columnheader">
84
84
  {#if header}
85
85
  {@render header(column)}
86
86
  {:else}
87
87
  {column.label}
88
88
  {/if}
89
89
  <div
90
- class="datatable_resize_handle"
90
+ class="datatable-resize-handle"
91
91
  role="separator"
92
92
  onpointerdown={(e) => handle_resize_start(e, i)}
93
93
  onpointermove={handle_resize_move}
@@ -98,7 +98,7 @@
98
98
  </div>
99
99
 
100
100
  {#if rows.length === 0}
101
- <div class="datatable_empty">
101
+ <div class="datatable-empty">
102
102
  {#if empty}
103
103
  {@render empty()}
104
104
  {:else}
@@ -107,9 +107,9 @@
107
107
  </div>
108
108
  {:else}
109
109
  {#each rows as row, i (row[row_key] ?? i)}
110
- <div class="datatable_row" role="row" aria-rowindex={i + 2}>
110
+ <div class="datatable-row" role="row" aria-rowindex={i + 2}>
111
111
  {#each columns as column (column.key)}
112
- <div class="datatable_cell" role="gridcell">
112
+ <div class="datatable-cell" role="gridcell">
113
113
  {#if cell}
114
114
  {@render cell(column, row, row[column.key])}
115
115
  {:else if column.format}
@@ -131,7 +131,7 @@
131
131
  overflow: auto;
132
132
  }
133
133
 
134
- .datatable_header {
134
+ .datatable-header {
135
135
  display: grid;
136
136
  grid-column: 1 / -1;
137
137
  grid-template-columns: subgrid;
@@ -142,7 +142,7 @@
142
142
  border-bottom: var(--border_width, 1px) solid var(--border_color);
143
143
  }
144
144
 
145
- .datatable_header_cell {
145
+ .datatable-header-cell {
146
146
  position: relative;
147
147
  display: flex;
148
148
  align-items: center;
@@ -150,7 +150,7 @@
150
150
  font-weight: 600;
151
151
  }
152
152
 
153
- .datatable_resize_handle {
153
+ .datatable-resize-handle {
154
154
  position: absolute;
155
155
  top: 0;
156
156
  right: 0;
@@ -159,11 +159,11 @@
159
159
  cursor: col-resize;
160
160
  }
161
161
 
162
- .datatable_resize_handle:hover {
163
- background: var(--color_a_5);
162
+ .datatable-resize-handle:hover {
163
+ background: var(--color_a_10);
164
164
  }
165
165
 
166
- .datatable_row {
166
+ .datatable-row {
167
167
  display: grid;
168
168
  grid-column: 1 / -1;
169
169
  grid-template-columns: subgrid;
@@ -172,13 +172,13 @@
172
172
  border-bottom: var(--border_width, 1px) solid var(--border_color);
173
173
  }
174
174
 
175
- .datatable_cell {
175
+ .datatable-cell {
176
176
  padding: var(--space_xs);
177
177
  min-width: 0; /* override grid auto minimum to respect column widths */
178
178
  overflow-wrap: break-word;
179
179
  }
180
180
 
181
- .datatable_empty {
181
+ .datatable-empty {
182
182
  grid-column: 1 / -1;
183
183
  padding: var(--space_lg);
184
184
  }
@@ -6,7 +6,7 @@
6
6
  void app_settings.fetch();
7
7
  </script>
8
8
 
9
- <div class="open_signup_toggle">
9
+ <div class="open-signup-toggle">
10
10
  {#if app_settings.loading}
11
11
  <p class="text_50">loading settings...</p>
12
12
  {:else if app_settings.settings}
@@ -4,11 +4,7 @@
4
4
  import type {AppSurface, AppSurfaceRoute, AppSurfaceDiagnostic} from '../http/surface.js';
5
5
  import {surface_auth_summary, format_route_key} from '../http/surface_query.js';
6
6
 
7
- interface Props {
8
- surface: AppSurface;
9
- }
10
-
11
- const {surface}: Props = $props();
7
+ const {surface}: {surface: AppSurface} = $props();
12
8
 
13
9
  const auth_types = ['all', 'none', 'authenticated', 'role', 'keeper'] as const;
14
10
 
@@ -1,8 +1,8 @@
1
1
  import type { AppSurface } from '../http/surface.js';
2
- interface Props {
2
+ type $$ComponentProps = {
3
3
  surface: AppSurface;
4
- }
5
- declare const SurfaceExplorer: import("svelte").Component<Props, {}, "">;
4
+ };
5
+ declare const SurfaceExplorer: import("svelte").Component<$$ComponentProps, {}, "">;
6
6
  type SurfaceExplorer = ReturnType<typeof SurfaceExplorer>;
7
7
  export default SurfaceExplorer;
8
8
  //# sourceMappingURL=SurfaceExplorer.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SurfaceExplorer.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/SurfaceExplorer.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,UAAU,EAAwC,MAAM,oBAAoB,CAAC;AAIzF,UAAU,KAAK;IACd,OAAO,EAAE,UAAU,CAAC;CACpB;AAuRF,QAAA,MAAM,eAAe,2CAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"SurfaceExplorer.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/SurfaceExplorer.svelte"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,UAAU,EAAwC,MAAM,oBAAoB,CAAC;AAGzF,KAAK,gBAAgB,GAAI;IAAC,OAAO,EAAE,UAAU,CAAA;CAAC,CAAC;AAsRhD,QAAA,MAAM,eAAe,sDAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
@@ -32,6 +32,15 @@
32
32
  * @module
33
33
  */
34
34
  import { type Permit, type SessionAccount } from '../auth/account_schema.js';
35
+ /**
36
+ * Svelte context for `AuthState`.
37
+ * Use `auth_state_context.set(state)` in the provider and `auth_state_context.get()` to access.
38
+ */
39
+ export declare const auth_state_context: {
40
+ get: (error_message?: string) => AuthState;
41
+ get_maybe: () => AuthState | undefined;
42
+ set: (value: AuthState) => AuthState;
43
+ };
35
44
  export declare class AuthState {
36
45
  verifying: boolean;
37
46
  verified: boolean;
@@ -73,13 +82,4 @@ export declare class AuthState {
73
82
  */
74
83
  logout(): Promise<void>;
75
84
  }
76
- /**
77
- * Svelte context for `AuthState`.
78
- * Use `auth_state_context.set(state)` in the provider and `auth_state_context.get()` to access.
79
- */
80
- export declare const auth_state_context: {
81
- get: (error_message?: string) => AuthState;
82
- get_maybe: () => AuthState | undefined;
83
- set: (value: AuthState) => AuthState;
84
- };
85
85
  //# sourceMappingURL=auth_state.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/auth_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAMH,OAAO,EAAC,KAAK,MAAM,EAAoB,KAAK,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAE7F,qBAAa,SAAS;IACrB,SAAS,UAAqB;IAC9B,QAAQ,UAAqB;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAoB;IAC/C,OAAO,EAAE,cAAc,GAAG,IAAI,CAAoB;IAClD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAkB;IACxC,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAEpC;IACF,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAoD;IAEjF,gEAAgE;IAChE,eAAe,UAAqB;IAEpC;;;;;;OAMG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IA4BpC;;;;OAIG;IACG,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwCjE;;;;OAIG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiCpF;;;;OAIG;IACG,MAAM,CAAC,QAAQ,EAAE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AAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IA4ClF;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAU7B"}
@@ -34,6 +34,11 @@
34
34
  import { create_context } from '@fuzdev/fuz_ui/context_helpers.js';
35
35
  import { ui_fetch } from './ui_fetch.js';
36
36
  import { is_permit_active } from '../auth/account_schema.js';
37
+ /**
38
+ * Svelte context for `AuthState`.
39
+ * Use `auth_state_context.set(state)` in the provider and `auth_state_context.get()` to access.
40
+ */
41
+ export const auth_state_context = create_context();
37
42
  export class AuthState {
38
43
  verifying = $state.raw(false);
39
44
  verified = $state.raw(false);
@@ -231,8 +236,3 @@ export class AuthState {
231
236
  this.permits = [];
232
237
  }
233
238
  }
234
- /**
235
- * Svelte context for `AuthState`.
236
- * Use `auth_state_context.set(state)` in the provider and `auth_state_context.get()` to access.
237
- */
238
- export const auth_state_context = create_context();
@@ -1,3 +1,8 @@
1
+ export declare const sidebar_state_context: {
2
+ get: (error_message?: string) => () => SidebarState;
3
+ get_maybe: () => (() => SidebarState) | undefined;
4
+ set: (value: () => SidebarState) => () => SidebarState;
5
+ };
1
6
  /**
2
7
  * Options for configuring a `SidebarState`.
3
8
  *
@@ -22,9 +27,4 @@ export declare class SidebarState {
22
27
  */
23
28
  activate(): () => void;
24
29
  }
25
- export declare const sidebar_state_context: {
26
- get: (error_message?: string) => () => SidebarState;
27
- get_maybe: () => (() => SidebarState) | undefined;
28
- set: (value: () => SidebarState) => () => SidebarState;
29
- };
30
30
  //# sourceMappingURL=sidebar_state.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/sidebar_state.svelte.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IACnC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB;AAED,qBAAa,YAAY;;IAKxB,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED,IAAI,YAAY,IAAI,OAAO,CAG1B;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAE9B;gBAEW,OAAO,CAAC,EAAE,mBAAmB;IAIzC,cAAc,CAAC,KAAK,GAAE,OAA4B,GAAG,IAAI;IAIzD;;;OAGG;IACH,QAAQ,IAAI,MAAM,IAAI;CAQtB;AAED,eAAO,MAAM,qBAAqB;2CAAwB,YAAY;4BAAZ,YAAY;uBAAZ,YAAY,WAAZ,YAAY;CAAG,CAAC"}
1
+ {"version":3,"file":"sidebar_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/sidebar_state.svelte.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;2CAAwB,YAAY;4BAAZ,YAAY;uBAAZ,YAAY,WAAZ,YAAY;CAAG,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IACnC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB;AAED,qBAAa,YAAY;;IAKxB,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED,IAAI,YAAY,IAAI,OAAO,CAG1B;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAE9B;gBAEW,OAAO,CAAC,EAAE,mBAAmB;IAIzC,cAAc,CAAC,KAAK,GAAE,OAA4B,GAAG,IAAI;IAIzD;;;OAGG;IACH,QAAQ,IAAI,MAAM,IAAI;CAQtB"}
@@ -1,4 +1,5 @@
1
1
  import { create_context } from '@fuzdev/fuz_ui/context_helpers.js';
2
+ export const sidebar_state_context = create_context();
2
3
  export class SidebarState {
3
4
  #get_enabled;
4
5
  #enabled = $state.raw(true);
@@ -36,4 +37,3 @@ export class SidebarState {
36
37
  };
37
38
  }
38
39
  }
39
- export const sidebar_state_context = create_context();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_app",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "fullstack app library",
5
5
  "glyph": "🗝",
6
6
  "logo": "logo.svg",
@@ -46,7 +46,7 @@
46
46
  "@fuzdev/fuz_code": "^0.45.1",
47
47
  "@fuzdev/fuz_css": "^0.58.0",
48
48
  "@fuzdev/fuz_ui": "^0.191.2",
49
- "@fuzdev/fuz_util": "^0.55.0",
49
+ "@fuzdev/fuz_util": "^0.56.0",
50
50
  "@fuzdev/gro": "^0.197.3",
51
51
  "@jridgewell/trace-mapping": "^0.3.31",
52
52
  "@node-rs/argon2": "^2.0.2",