@svgrid/enterprise 3.1.10 → 3.1.11

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 (40) hide show
  1. package/LICENSE +17 -13
  2. package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -1
  3. package/dist/designer/assets/{GridMenus-BUjkkAU2.js → GridMenus-CWAfhEeT.js} +2 -2
  4. package/dist/designer/assets/SvDateRangeInput-DbfmXqJj.js +1 -0
  5. package/dist/designer/assets/SvDateTimePicker-r4FqmR6R.js +1 -0
  6. package/dist/designer/assets/SvGridCellEditor-DTYOEa8t.js +4 -0
  7. package/dist/designer/assets/{index-CJodU3tU.js → index-BnjAONWv.js} +311 -311
  8. package/dist/designer/assets/index-CLQXR_oM.css +1 -0
  9. package/dist/designer/index.html +4 -4
  10. package/dist/fields/BaseTableView.svelte +43 -1
  11. package/dist/fields/LongTextEditor.svelte +6 -1
  12. package/dist/fields/RecordView.svelte +36 -9
  13. package/dist/fields/RowHeader.svelte +22 -3
  14. package/dist/fields/SelectEditor.svelte +8 -1
  15. package/dist/fields/SvBase.svelte +42 -2
  16. package/dist/fields/SvBase.svelte.d.ts +3 -0
  17. package/dist/fields/SvBaseViewBar.svelte +10 -0
  18. package/dist/fields/SvBaseViewBar.svelte.d.ts +5 -0
  19. package/dist/fields/activity.svelte.d.ts +42 -0
  20. package/dist/fields/activity.svelte.js +57 -0
  21. package/dist/fields/base-schema.d.ts +1 -1
  22. package/dist/fields/base-schema.js +7 -0
  23. package/dist/fields/base-sync.d.ts +21 -0
  24. package/dist/fields/base-sync.js +9 -7
  25. package/dist/fields/index.d.ts +1 -1
  26. package/dist/fields/index.js +9 -2
  27. package/dist/node/studio.js +3 -2
  28. package/dist/studio/ui-components.generated.js +1 -0
  29. package/dist/version.d.ts +2 -2
  30. package/dist/version.js +2 -2
  31. package/dist/wc/{GridMenus-FtSN_8t9.js → GridMenus-wG7PFpPh.js} +1 -1
  32. package/dist/wc/{SvDateRangeInput-DR6m7bSM.js → SvDateRangeInput-BYNOfYxD.js} +68 -65
  33. package/dist/wc/{SvDateTimePicker-D-vRnaMo.js → SvDateTimePicker-Bq9N0Oiy.js} +57 -53
  34. package/dist/wc/{SvGridCellEditor-B_cLJrsp.js → SvGridCellEditor-C8iNUJrd.js} +158 -147
  35. package/dist/wc/sv-sheet-element.js +4 -4
  36. package/package.json +3 -3
  37. package/dist/designer/assets/SvDateRangeInput-BBRzrQeg.js +0 -1
  38. package/dist/designer/assets/SvDateTimePicker-DCPg7WGN.js +0 -1
  39. package/dist/designer/assets/SvGridCellEditor-CJxThKL_.js +0 -4
  40. package/dist/designer/assets/index-BmvG99kR.css +0 -1
@@ -441,7 +441,7 @@ export function createBaseSync(options) {
441
441
  return;
442
442
  const fields = storedFields(list, t);
443
443
  const fresh = new Map(rows.map((r) => [String(r.id), r]));
444
- let changed = false;
444
+ const changes = [];
445
445
  const data = [];
446
446
  for (const r of t.data) {
447
447
  if (!r)
@@ -453,33 +453,35 @@ export function createBaseSync(options) {
453
453
  data.push(r);
454
454
  else {
455
455
  before.delete(id);
456
- changed = true;
456
+ changes.push({ table: tableId, type: 'delete', id, record: r });
457
457
  }
458
458
  continue;
459
459
  }
460
460
  fresh.delete(id);
461
- const moved = fields.filter((f) => f in server && !same(server[f], before.get(id)?.[f]));
461
+ const was = before.get(id);
462
+ const moved = fields.filter((f) => f in server && !same(server[f], was?.[f]));
462
463
  if (moved.length) {
463
- changed = true;
464
464
  const next = { ...r };
465
465
  for (const f of moved)
466
466
  next[f] = server[f];
467
- before.set(id, { ...before.get(id), ...pick(server, moved) });
467
+ changes.push({ table: tableId, type: 'update', id, record: next, fields: moved.map((f) => ({ field: f, from: was?.[f], to: server[f] })) });
468
+ before.set(id, { ...was, ...pick(server, moved) });
468
469
  data.push(next);
469
470
  }
470
471
  else
471
472
  data.push(r);
472
473
  }
473
474
  for (const [id, r] of fresh) {
474
- changed = true;
475
475
  before.set(id, pick(r, fields));
476
+ changes.push({ table: tableId, type: 'insert', id, record: r });
476
477
  data.push(r);
477
478
  }
478
- if (!changed)
479
+ if (!changes.length)
479
480
  return;
480
481
  let next = list.map((x) => (x.id === tableId ? { ...x, data } : x));
481
482
  next = linkBack(next, tableId);
482
483
  options.apply(next);
484
+ options.onRemoteChange?.(changes);
483
485
  }
484
486
  return {
485
487
  load,
@@ -10,7 +10,7 @@ export { default as SvBaseViewBar } from './SvBaseViewBar.svelte';
10
10
  export { default as SvBaseForm } from './SvBaseForm.svelte';
11
11
  export { default as SvBase } from './SvBase.svelte';
12
12
  export { blankTable, newRecordId, type BaseTable } from './base-tables.js';
13
- export { baseSource, createBaseSync, type BaseSource, type BaseSourceOptions, type BaseSyncStatus, type ForeignKeyLink, type JunctionLink, } from './base-sync.js';
13
+ export { baseSource, createBaseSync, type BaseSource, type BaseSourceOptions, type BaseSyncStatus, type BaseRemoteChange, type ForeignKeyLink, type JunctionLink, } from './base-sync.js';
14
14
  export { baseFieldsFromSchema, baseTablesFromSchemas, baseSpecFromSchemas, baseTablesFromSpec, type BaseTableSpec, type BaseLinkSpec } from './base-schema.js';
15
15
  export { baseToSql, sqlName, type BaseToSqlOptions, type BaseTableComment, type BaseJunctionComment } from './base-sql.js';
16
16
  export { applyBaseComments, withInverses, type BaseComments } from './base-schema.js';
@@ -162,6 +162,13 @@ function stampModified(ctrl, row, columnId) {
162
162
  if (!row)
163
163
  return;
164
164
  const author = getCurrentUser()?.id;
165
+ // Into the edit overlay too, as an edit goes: what reads through it (an
166
+ // open record) shows the stamp at once, not after the grid draws again.
167
+ const rowId = ctrl.buildApi?.().getRowId?.(row);
168
+ const overlay = (id, value) => {
169
+ if (rowId != null && ctrl.editedCellValues)
170
+ ctrl.editedCellValues = { ...ctrl.editedCellValues, [`${rowId}:${id}`]: value };
171
+ };
165
172
  for (const c of (ctrl?.internalColumns ?? [])) {
166
173
  if (c.fieldType !== 'lastModifiedTime' && c.fieldType !== 'lastModifiedBy')
167
174
  continue;
@@ -172,9 +179,9 @@ function stampModified(ctrl, row, columnId) {
172
179
  if (p.watch === 'specific' && !(p.watchFields ?? []).includes(columnId))
173
180
  continue;
174
181
  if (c.fieldType === 'lastModifiedTime')
175
- row[c.field] = new Date().toISOString();
182
+ overlay(id, (row[c.field] = new Date().toISOString()));
176
183
  else if (author !== undefined)
177
- row[c.field] = author;
184
+ overlay(id, (row[c.field] = author));
178
185
  }
179
186
  }
180
187
  /** The record's activity: what a cell now holds after an edit. */
@@ -8585,6 +8585,7 @@ var GENERATED_UI_SURFACE = {
8585
8585
  "key": "block",
8586
8586
  "label": "Block",
8587
8587
  "type": "boolean",
8588
+ "default": false,
8588
8589
  "description": "Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",
8589
8590
  "group": "appearance"
8590
8591
  },
@@ -16446,7 +16447,7 @@ function hasFieldConditions(schema) {
16446
16447
  *
16447
16448
  * `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
16448
16449
  */
16449
- var SVGRID_VERSION = "3.1.10";
16450
+ var SVGRID_VERSION = "3.1.11";
16450
16451
  /**
16451
16452
  * The version of `@svgrid/grid`, which releases on its own line: enterprise is
16452
16453
  * on 3.1.x while the grid is on 3.0.x.
@@ -16459,7 +16460,7 @@ var SVGRID_VERSION = "3.1.10";
16459
16460
  *
16460
16461
  * `version.test.ts` asserts this matches packages/grid/package.json.
16461
16462
  */
16462
- var GRID_VERSION = "3.0.13";
16463
+ var GRID_VERSION = "3.0.14";
16463
16464
  //#endregion
16464
16465
  //#region src/studio/emit-project.ts
16465
16466
  var has = (blocks, kind) => blocks.some((b) => b.config.kind === kind);
@@ -6449,6 +6449,7 @@ export const GENERATED_UI_SURFACE = {
6449
6449
  "key": "block",
6450
6450
  "label": "Block",
6451
6451
  "type": "boolean",
6452
+ "default": false,
6452
6453
  "description": "Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",
6453
6454
  "group": "appearance"
6454
6455
  },
package/dist/version.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
12
12
  */
13
- export declare const SVGRID_VERSION = "3.1.10";
13
+ export declare const SVGRID_VERSION = "3.1.11";
14
14
  /**
15
15
  * The version of `@svgrid/grid`, which releases on its own line: enterprise is
16
16
  * on 3.1.x while the grid is on 3.0.x.
@@ -23,4 +23,4 @@ export declare const SVGRID_VERSION = "3.1.10";
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export declare const GRID_VERSION = "3.0.13";
26
+ export declare const GRID_VERSION = "3.0.14";
package/dist/version.js CHANGED
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
12
12
  */
13
- export const SVGRID_VERSION = '3.1.10';
13
+ export const SVGRID_VERSION = '3.1.11';
14
14
  /**
15
15
  * The version of `@svgrid/grid`, which releases on its own line: enterprise is
16
16
  * on 3.1.x while the grid is on 3.0.x.
@@ -23,4 +23,4 @@ export const SVGRID_VERSION = '3.1.10';
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export const GRID_VERSION = '3.0.13';
26
+ export const GRID_VERSION = '3.0.14';
@@ -954,7 +954,7 @@ function Tt(r, u) {
954
954
  let e = n(J) ?? n(q);
955
955
  if (!e) return;
956
956
  let t = n(Te).find((t) => t.id === e);
957
- ue(t?.columnDef) && (n(zt) || import("./SvDateTimePicker-D-vRnaMo.js").then((e) => O(zt, e.default, !0)), n(Bt) || import("./SvDateRangeInput-DR6m7bSM.js").then((e) => O(Bt, e.default, !0)));
957
+ ue(t?.columnDef) && (n(zt) || import("./SvDateTimePicker-Bq9N0Oiy.js").then((e) => O(zt, e.default, !0)), n(Bt) || import("./SvDateRangeInput-BYNOfYxD.js").then((e) => O(Bt, e.default, !0)));
958
958
  });
959
959
  function Vt(e, t) {
960
960
  let n = () => {
@@ -1,30 +1,30 @@
1
- import { G as e, H as t, I as n, R as r, S as i, T as a, U as o, X as s, Y as c, _ as l, a as u, at as d, dt as f, et as p, f as m, it as h, j as g, m as _, mt as v, n as y, nt as b, p as x, rt as S, st as C, tt as ee, ut as w, w as T, x as E } from "./client-DQIzjDBG.js";
2
- import { a as D, i as O, t as te } from "./editor-contract-peBDxir_.js";
3
- import { i as k, o as A, r as ne, t as re } from "./date-format-DS-z_h9v.js";
4
- import { n as ie, r as ae, t as oe } from "./popover-WsGlvtQv.js";
5
- import { t as se } from "./SvField-B_kurx_P.js";
1
+ import { G as e, H as t, I as n, R as r, S as i, T as a, U as o, X as s, Y as c, _ as l, a as u, at as d, dt as f, et as p, f as ee, it as m, j as h, m as g, mt as _, n as v, nt as y, p as b, rt as x, st as S, tt as te, ut as C, w, x as T } from "./client-DQIzjDBG.js";
2
+ import { a as E, i as D, t as ne } from "./editor-contract-peBDxir_.js";
3
+ import { i as O, o as k, r as re, t as ie } from "./date-format-DS-z_h9v.js";
4
+ import { n as ae, r as oe, t as se } from "./popover-WsGlvtQv.js";
5
+ import { t as ce } from "./SvField-B_kurx_P.js";
6
6
  //#region ../grid/dist/SvDateRangeInput.svelte
7
- var ce = r("<button type=\"button\" class=\"sv-dri__clear svelte-1rb3yee\">&times;</button>"), le = r("<div class=\"sv-dri__panel\" role=\"dialog\"><!></div>"), ue = r("<input type=\"hidden\"/> <input type=\"hidden\"/>", 1), de = r("<div><div><svg class=\"sv-dri__icon svelte-1rb3yee\" viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\"></rect><path d=\"M16 2v4M8 2v4M3 10h18\"></path></svg> <input/> <!></div> <!> <!></div>"), fe = {
7
+ var le = r("<button type=\"button\" class=\"sv-dri__clear svelte-1rb3yee\">&times;</button>"), ue = r("<div class=\"sv-dri__panel\" role=\"dialog\"><!></div>"), de = r("<input type=\"hidden\"/> <input type=\"hidden\"/>", 1), fe = r("<div><div><svg class=\"sv-dri__icon svelte-1rb3yee\" viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\"></rect><path d=\"M16 2v4M8 2v4M3 10h18\"></path></svg> <input/> <!></div> <!> <!></div>"), pe = {
8
8
  hash: "svelte-1rb3yee",
9
9
  code: ".sv-dri.svelte-1rb3yee {--_accent: var(--sg-accent, #2563eb);--_border: var(--sg-input-border, var(--sg-border, #cbd5e1));--_radius: var(--sg-radius, 8px);display:inline-block;position:relative;color:var(--sg-fg, #0f172a);}.sv-dri--disabled.svelte-1rb3yee {opacity:0.6;}.sv-dri__field.svelte-1rb3yee {display:flex;align-items:center;gap:6px;width:260px;background:var(--sg-input-bg, #fff);border:1px solid var(--_border);border-radius:var(--_radius);padding-inline:10px 4px;}.sv-dri__field.svelte-1rb3yee:focus-within {border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent);}.sv-dri__field.is-invalid.svelte-1rb3yee {border-color:var(--sg-danger, #dc2626);}.sv-dri__field.is-invalid.svelte-1rb3yee:focus-within {box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger, #dc2626) 22%, transparent);}.sv-dri__field--sm.svelte-1rb3yee {height:28px;font-size:12px;}.sv-dri__field--md.svelte-1rb3yee {height:34px;font-size:13px;}.sv-dri__field--lg.svelte-1rb3yee {height:40px;font-size:15px;}.sv-dri__icon.svelte-1rb3yee {color:var(--sg-muted, #64748b);flex:none;}.sv-dri__input.svelte-1rb3yee {flex:1;min-width:0;border:0;background:none;outline:none;color:inherit;font:inherit;cursor:pointer;text-overflow:ellipsis;}.sv-dri__input.svelte-1rb3yee::placeholder {color:var(--sg-muted, #94a3b8);}.sv-dri__clear.svelte-1rb3yee {display:grid;place-items:center;width:24px;height:24px;flex:none;background:none;border:0;color:var(--sg-muted, #64748b);cursor:pointer;border-radius:6px;font-size:17px;line-height:1;}.sv-dri__clear.svelte-1rb3yee:hover {color:var(--_accent);background:color-mix(in srgb, var(--_accent) 10%, transparent);}.sv-dri__panel {z-index:2147483647;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #e2e8f0);border-radius:12px;box-shadow:0 16px 48px -12px rgba(15, 23, 42, 0.35);}\n /* Fill the container - see `block` in SvEditorProps. */.sv-dri.is-block.svelte-1rb3yee, .sv-dri.is-block.svelte-1rb3yee .sv-dri__field:where(.svelte-1rb3yee) {width:100%;max-width:100%;}"
10
10
  };
11
- function j(t, r) {
12
- f(r, !0), a(t, fe);
13
- let j = {
11
+ function A(t, r) {
12
+ f(r, !0), a(t, pe);
13
+ let A = {
14
14
  dialog: "Choose a date range",
15
15
  clear: "Clear",
16
16
  open: "Open calendar",
17
17
  to: "to"
18
- }, M = y(r, "value", 3, null), pe = y(r, "formatString", 3, "yyyy-MM-dd"), me = y(r, "min", 3, null), he = y(r, "max", 3, null), ge = y(r, "months", 3, 2), N = y(r, "firstDayOfWeek", 3, 0), P = y(r, "weekNumbers", 3, !1), F = y(r, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), I = y(r, "placeholder", 3, "Select date range"), L = y(r, "animate", 3, !1), _e = y(r, "autoOpen", 3, !1), R = y(r, "disabled", 3, !1), ve = y(r, "readonly", 3, !1), ye = y(r, "size", 3, "md"), z = y(r, "invalid", 3, !1), be = y(r, "block", 3, !1), B = y(r, "required", 3, !1), xe = O("sv-daterange"), V = C(() => r.id ?? xe), H = C(() => D(j, r.messages)), U = C(() => r.dir === "ltr" || r.dir === "rtl" ? r.dir : void 0), W = C(() => !R() && !ve()), G = (e) => re(e, pe(), F()), Se = C(() => {
19
- if (!M()) return "";
20
- let [t, n] = M();
18
+ }, j = v(r, "value", 3, null), me = v(r, "formatString", 3, "yyyy-MM-dd"), he = v(r, "min", 3, null), ge = v(r, "max", 3, null), _e = v(r, "months", 3, 2), M = v(r, "firstDayOfWeek", 3, 0), N = v(r, "weekNumbers", 3, !1), P = v(r, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), F = v(r, "placeholder", 3, "Select date range"), I = v(r, "animate", 3, !1), ve = v(r, "autoOpen", 3, !1), L = v(r, "disabled", 3, !1), ye = v(r, "readonly", 3, !1), be = v(r, "size", 3, "md"), R = v(r, "invalid", 3, !1), z = v(r, "block", 3, !1), B = v(r, "required", 3, !1), xe = D("sv-daterange"), V = S(() => r.id ?? xe), H = S(() => E(A, r.messages)), U = S(() => r.dir === "ltr" || r.dir === "rtl" ? r.dir : void 0), W = S(() => !L() && !ye()), G = (e) => ie(e, me(), P()), Se = S(() => {
19
+ if (!j()) return "";
20
+ let [t, n] = j();
21
21
  return t && n ? `${G(t)} ${e(H).to} ${G(n)}` : t ? G(t) : "";
22
- }), Ce = C(() => M() ? k(M()[0], M()[1]) : null), K = d(!1);
22
+ }), Ce = S(() => j() ? O(j()[0], j()[1]) : null), K = d(!1);
23
23
  function q() {
24
- e(W) && !e(K) && h(K, !0);
24
+ e(W) && !e(K) && m(K, !0);
25
25
  }
26
26
  function J() {
27
- h(K, !1);
27
+ m(K, !1);
28
28
  }
29
29
  function we() {
30
30
  e(K) ? J() : q();
@@ -35,9 +35,9 @@ function j(t, r) {
35
35
  function Ee(e) {
36
36
  if (!e.length) return;
37
37
  let t = e[0], n = e[e.length - 1];
38
- r.onChange?.([A(t), A(n)]), e.length >= 1 && t !== n && J();
38
+ r.onChange?.([k(t), k(n)]), e.length >= 1 && t !== n && J();
39
39
  }
40
- let Y = d(null), X = d(null), Z = d(null), Q = d(S({
40
+ let Y = d(null), X = d(null), Z = d(null), Q = d(x({
41
41
  top: 0,
42
42
  left: 0,
43
43
  width: 0,
@@ -46,7 +46,7 @@ function j(t, r) {
46
46
  availHeight: 0
47
47
  }));
48
48
  function $() {
49
- e(Y) && h(Q, oe(e(Y).getBoundingClientRect(), {
49
+ e(Y) && m(Q, se(e(Y).getBoundingClientRect(), {
50
50
  estimatedHeight: 360,
51
51
  minWidth: 300
52
52
  }), !0);
@@ -65,12 +65,12 @@ function j(t, r) {
65
65
  };
66
66
  });
67
67
  function De(e) {
68
- e.key === "Escape" ? J() : e.key === "ArrowDown" && (e.altKey || !M()) && (e.preventDefault(), q());
68
+ e.key === "Escape" ? J() : e.key === "ArrowDown" && (e.altKey || !j()) && (e.preventDefault(), q());
69
69
  }
70
70
  function Oe(e) {
71
- _e() && (e.focus(), q());
71
+ ve() && (e.focus(), q());
72
72
  }
73
- se(t, {
73
+ ce(t, {
74
74
  get id() {
75
75
  return e(V);
76
76
  },
@@ -89,111 +89,114 @@ function j(t, r) {
89
89
  get dir() {
90
90
  return r.dir;
91
91
  },
92
+ get block() {
93
+ return z();
94
+ },
92
95
  children: (t, a) => {
93
- var s = de();
96
+ var s = fe();
94
97
  let d;
95
98
  var f = p(s);
96
- let y;
97
- var S = b(p(f), 2);
98
- m(S, (t) => ({
99
+ let v;
100
+ var x = y(p(f), 2);
101
+ ee(x, (t) => ({
99
102
  id: e(V),
100
103
  class: "sv-dri__input",
101
104
  type: "text",
102
105
  readonly: !0,
103
- placeholder: I(),
106
+ placeholder: F(),
104
107
  value: e(Se),
105
- disabled: R(),
108
+ disabled: L(),
106
109
  ...t,
107
110
  "aria-haspopup": "dialog",
108
111
  "aria-expanded": e(K),
109
112
  onkeydown: De
110
- }), [() => te({
113
+ }), [() => ne({
111
114
  id: e(V),
112
- invalid: z(),
115
+ invalid: R(),
113
116
  required: B(),
114
117
  error: r.error,
115
118
  hint: r.hint,
116
119
  ariaLabel: r.ariaLabel
117
- })], void 0, void 0, "svelte-1rb3yee", !0), u(S, (e) => h(X, e), () => e(X)), T(S, (e) => Oe?.(e));
118
- var C = b(S, 2), w = (t) => {
119
- var r = ce();
120
- c(() => _(r, "aria-label", e(H).clear)), o("click", r, (e) => {
120
+ })], void 0, void 0, "svelte-1rb3yee", !0), u(x, (e) => m(X, e), () => e(X)), w(x, (e) => Oe?.(e));
121
+ var S = y(x, 2), C = (t) => {
122
+ var r = le();
123
+ c(() => g(r, "aria-label", e(H).clear)), o("click", r, (e) => {
121
124
  e.stopPropagation(), Te();
122
125
  }), n(t, r);
123
126
  };
124
- g(C, (t) => {
125
- M() && e(W) && t(w);
126
- }), v(f), u(f, (e) => h(Y, e), () => e(Y));
127
- var D = b(f, 2), O = (t) => {
128
- var i = le();
127
+ h(S, (t) => {
128
+ j() && e(W) && t(C);
129
+ }), _(f), u(f, (e) => m(Y, e), () => e(Y));
130
+ var E = y(f, 2), D = (t) => {
131
+ var i = ue();
129
132
  let a;
130
133
  var o = p(i);
131
- ne(o, {
134
+ re(o, {
132
135
  get value() {
133
136
  return e(Ce);
134
137
  },
135
138
  selectionMode: "range",
136
139
  get min() {
137
- return me();
140
+ return he();
138
141
  },
139
142
  get max() {
140
- return he();
143
+ return ge();
141
144
  },
142
145
  get months() {
143
- return ge();
146
+ return _e();
144
147
  },
145
148
  get firstDayOfWeek() {
146
- return N();
149
+ return M();
147
150
  },
148
151
  get weekNumbers() {
149
- return P();
152
+ return N();
150
153
  },
151
154
  get locale() {
152
- return F();
155
+ return P();
153
156
  },
154
157
  get presets() {
155
158
  return r.presets;
156
159
  },
157
160
  get animate() {
158
- return L();
161
+ return I();
159
162
  },
160
163
  get dir() {
161
164
  return e(U);
162
165
  },
163
166
  onChange: Ee
164
- }), v(i), u(i, (e) => h(Z, e), () => e(Z)), T(i, (e) => ae?.(e)), T(i, (e, t) => ie?.(e, t), () => ({ up: e(Q).openUpward })), c(() => {
165
- _(i, "aria-label", e(H).dialog), _(i, "dir", e(U)), a = E(i, "", a, {
167
+ }), _(i), u(i, (e) => m(Z, e), () => e(Z)), w(i, (e) => oe?.(e)), w(i, (e, t) => ae?.(e, t), () => ({ up: e(Q).openUpward })), c(() => {
168
+ g(i, "aria-label", e(H).dialog), g(i, "dir", e(U)), a = T(i, "", a, {
166
169
  position: "fixed",
167
170
  top: `${e(Q).top}px`,
168
171
  left: `${e(Q).left}px`
169
172
  }), i.dir = i.dir;
170
173
  }), n(t, i);
171
174
  };
172
- g(D, (t) => {
173
- e(K) && t(O);
175
+ h(E, (t) => {
176
+ e(K) && t(D);
174
177
  });
175
- var k = b(D, 2), A = (e) => {
176
- var t = ue(), i = ee(t);
177
- x(i);
178
- var a = b(i, 2);
179
- x(a), c((e, t) => {
180
- _(i, "name", `${r.name}_start`), l(i, e), _(a, "name", `${r.name}_end`), l(a, t);
181
- }, [() => M()?.[0] ? M()[0].toISOString() : "", () => M()?.[1] ? M()[1].toISOString() : ""]), n(e, t);
178
+ var O = y(E, 2), k = (e) => {
179
+ var t = de(), i = te(t);
180
+ b(i);
181
+ var a = y(i, 2);
182
+ b(a), c((e, t) => {
183
+ g(i, "name", `${r.name}_start`), l(i, e), g(a, "name", `${r.name}_end`), l(a, t);
184
+ }, [() => j()?.[0] ? j()[0].toISOString() : "", () => j()?.[1] ? j()[1].toISOString() : ""]), n(e, t);
182
185
  };
183
- g(k, (e) => {
184
- r.name && e(A);
185
- }), v(s), c(() => {
186
+ h(O, (e) => {
187
+ r.name && e(k);
188
+ }), _(s), c(() => {
186
189
  d = i(s, 1, "sv-dri svelte-1rb3yee", null, d, {
187
- "is-block": be(),
188
- "sv-dri--disabled": R()
189
- }), y = i(f, 1, `sv-dri__field sv-dri__field--${ye() ?? ""}`, "svelte-1rb3yee", y, { "is-invalid": z() }), _(f, "dir", e(U)), f.dir = f.dir;
190
+ "is-block": z(),
191
+ "sv-dri--disabled": L()
192
+ }), v = i(f, 1, `sv-dri__field sv-dri__field--${be() ?? ""}`, "svelte-1rb3yee", v, { "is-invalid": R() }), g(f, "dir", e(U)), f.dir = f.dir;
190
193
  }), o("click", f, () => {
191
194
  e(W) && (e(X)?.focus(), we());
192
195
  }), n(t, s);
193
196
  },
194
197
  $$slots: { default: !0 }
195
- }), w();
198
+ }), C();
196
199
  }
197
200
  t(["click"]);
198
201
  //#endregion
199
- export { j as default };
202
+ export { A as default };