@svgrid/enterprise 3.1.9 → 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.
- package/LICENSE +17 -13
- package/dist/cdn/svgrid-enterprise.svelte-external.js +2 -1
- package/dist/designer/assets/{GridMenus-BUjkkAU2.js → GridMenus-CWAfhEeT.js} +2 -2
- package/dist/designer/assets/SvDateRangeInput-DbfmXqJj.js +1 -0
- package/dist/designer/assets/SvDateTimePicker-r4FqmR6R.js +1 -0
- package/dist/designer/assets/SvGridCellEditor-DTYOEa8t.js +4 -0
- package/dist/designer/assets/{index-BPU2KNc5.js → index-BnjAONWv.js} +311 -311
- package/dist/designer/assets/index-CLQXR_oM.css +1 -0
- package/dist/designer/index.html +4 -4
- package/dist/fields/BaseTableView.svelte +43 -1
- package/dist/fields/LongTextEditor.svelte +6 -1
- package/dist/fields/RecordView.svelte +36 -9
- package/dist/fields/RowHeader.svelte +22 -3
- package/dist/fields/SelectEditor.svelte +8 -1
- package/dist/fields/SvBase.svelte +42 -2
- package/dist/fields/SvBase.svelte.d.ts +3 -0
- package/dist/fields/SvBaseViewBar.svelte +10 -0
- package/dist/fields/SvBaseViewBar.svelte.d.ts +5 -0
- package/dist/fields/activity.svelte.d.ts +42 -0
- package/dist/fields/activity.svelte.js +57 -0
- package/dist/fields/base-schema.d.ts +1 -1
- package/dist/fields/base-schema.js +7 -0
- package/dist/fields/base-sync.d.ts +21 -0
- package/dist/fields/base-sync.js +9 -7
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/index.js +9 -2
- package/dist/node/studio.js +3 -2
- package/dist/studio/ui-components.generated.js +1 -0
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/dist/wc/{GridMenus-FtSN_8t9.js → GridMenus-wG7PFpPh.js} +1 -1
- package/dist/wc/{SvDateRangeInput-DR6m7bSM.js → SvDateRangeInput-BYNOfYxD.js} +68 -65
- package/dist/wc/{SvDateTimePicker-D-vRnaMo.js → SvDateTimePicker-Bq9N0Oiy.js} +57 -53
- package/dist/wc/{SvGridCellEditor-B_cLJrsp.js → SvGridCellEditor-C8iNUJrd.js} +158 -147
- package/dist/wc/sv-sheet-element.js +4 -4
- package/package.json +3 -3
- package/dist/designer/assets/SvDateRangeInput-BBRzrQeg.js +0 -1
- package/dist/designer/assets/SvDateTimePicker-DCPg7WGN.js +0 -1
- package/dist/designer/assets/SvGridCellEditor-CJxThKL_.js +0 -4
- package/dist/designer/assets/index-BmvG99kR.css +0 -1
package/dist/fields/base-sync.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
456
|
+
changes.push({ table: tableId, type: 'delete', id, record: r });
|
|
457
457
|
}
|
|
458
458
|
continue;
|
|
459
459
|
}
|
|
460
460
|
fresh.delete(id);
|
|
461
|
-
const
|
|
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
|
-
|
|
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 (!
|
|
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,
|
package/dist/fields/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/fields/index.js
CHANGED
|
@@ -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. */
|
package/dist/node/studio.js
CHANGED
|
@@ -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.
|
|
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.9";
|
|
|
16459
16460
|
*
|
|
16460
16461
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
16461
16462
|
*/
|
|
16462
|
-
var GRID_VERSION = "3.0.
|
|
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.
|
|
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.9";
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export declare const GRID_VERSION = "3.0.
|
|
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.
|
|
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.9';
|
|
|
23
23
|
*
|
|
24
24
|
* `version.test.ts` asserts this matches packages/grid/package.json.
|
|
25
25
|
*/
|
|
26
|
-
export const GRID_VERSION = '3.0.
|
|
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-
|
|
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
|
|
2
|
-
import { a as
|
|
3
|
-
import { i as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
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
|
|
7
|
+
var le = r("<button type=\"button\" class=\"sv-dri__clear svelte-1rb3yee\">×</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
|
|
12
|
-
f(r, !0), a(t,
|
|
13
|
-
let
|
|
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
|
-
},
|
|
19
|
-
if (!
|
|
20
|
-
let [t, n] =
|
|
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 =
|
|
22
|
+
}), Ce = S(() => j() ? O(j()[0], j()[1]) : null), K = d(!1);
|
|
23
23
|
function q() {
|
|
24
|
-
e(W) && !e(K) &&
|
|
24
|
+
e(W) && !e(K) && m(K, !0);
|
|
25
25
|
}
|
|
26
26
|
function J() {
|
|
27
|
-
|
|
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?.([
|
|
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(
|
|
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) &&
|
|
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 || !
|
|
68
|
+
e.key === "Escape" ? J() : e.key === "ArrowDown" && (e.altKey || !j()) && (e.preventDefault(), q());
|
|
69
69
|
}
|
|
70
70
|
function Oe(e) {
|
|
71
|
-
|
|
71
|
+
ve() && (e.focus(), q());
|
|
72
72
|
}
|
|
73
|
-
|
|
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 =
|
|
96
|
+
var s = fe();
|
|
94
97
|
let d;
|
|
95
98
|
var f = p(s);
|
|
96
|
-
let
|
|
97
|
-
var
|
|
98
|
-
|
|
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:
|
|
106
|
+
placeholder: F(),
|
|
104
107
|
value: e(Se),
|
|
105
|
-
disabled:
|
|
108
|
+
disabled: L(),
|
|
106
109
|
...t,
|
|
107
110
|
"aria-haspopup": "dialog",
|
|
108
111
|
"aria-expanded": e(K),
|
|
109
112
|
onkeydown: De
|
|
110
|
-
}), [() =>
|
|
113
|
+
}), [() => ne({
|
|
111
114
|
id: e(V),
|
|
112
|
-
invalid:
|
|
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(
|
|
118
|
-
var
|
|
119
|
-
var r =
|
|
120
|
-
c(() =>
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
}),
|
|
127
|
-
var
|
|
128
|
-
var i =
|
|
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
|
-
|
|
134
|
+
re(o, {
|
|
132
135
|
get value() {
|
|
133
136
|
return e(Ce);
|
|
134
137
|
},
|
|
135
138
|
selectionMode: "range",
|
|
136
139
|
get min() {
|
|
137
|
-
return
|
|
140
|
+
return he();
|
|
138
141
|
},
|
|
139
142
|
get max() {
|
|
140
|
-
return
|
|
143
|
+
return ge();
|
|
141
144
|
},
|
|
142
145
|
get months() {
|
|
143
|
-
return
|
|
146
|
+
return _e();
|
|
144
147
|
},
|
|
145
148
|
get firstDayOfWeek() {
|
|
146
|
-
return
|
|
149
|
+
return M();
|
|
147
150
|
},
|
|
148
151
|
get weekNumbers() {
|
|
149
|
-
return
|
|
152
|
+
return N();
|
|
150
153
|
},
|
|
151
154
|
get locale() {
|
|
152
|
-
return
|
|
155
|
+
return P();
|
|
153
156
|
},
|
|
154
157
|
get presets() {
|
|
155
158
|
return r.presets;
|
|
156
159
|
},
|
|
157
160
|
get animate() {
|
|
158
|
-
return
|
|
161
|
+
return I();
|
|
159
162
|
},
|
|
160
163
|
get dir() {
|
|
161
164
|
return e(U);
|
|
162
165
|
},
|
|
163
166
|
onChange: Ee
|
|
164
|
-
}),
|
|
165
|
-
|
|
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
|
-
|
|
173
|
-
e(K) && t(
|
|
175
|
+
h(E, (t) => {
|
|
176
|
+
e(K) && t(D);
|
|
174
177
|
});
|
|
175
|
-
var
|
|
176
|
-
var t =
|
|
177
|
-
|
|
178
|
-
var a =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}, [() =>
|
|
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
|
-
|
|
184
|
-
r.name && e(
|
|
185
|
-
}),
|
|
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":
|
|
188
|
-
"sv-dri--disabled":
|
|
189
|
-
}),
|
|
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
|
-
}),
|
|
198
|
+
}), C();
|
|
196
199
|
}
|
|
197
200
|
t(["click"]);
|
|
198
201
|
//#endregion
|
|
199
|
-
export {
|
|
202
|
+
export { A as default };
|