@bysages/svelte 0.4.1 → 0.4.3
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/dist/{Accordion-BkqRwmjT.mjs → Accordion-DUUod-V6.mjs} +1 -1
- package/dist/Calendar-MQdoAnJK.mjs +589 -0
- package/dist/{Carousel-D-v0Bza0.mjs → Carousel-DNMQMvm6.mjs} +1 -1
- package/dist/{Checkbox-Dt_QeNLA.mjs → Checkbox-z4EXYH9a.mjs} +1 -1
- package/dist/{ChevronIcon-BrLZJ0NH.mjs → ChevronIcon-hvMd0d_i.mjs} +1 -1
- package/dist/{Clipboard-BHy1YrlL.mjs → Clipboard-Bdui0U6I.mjs} +1 -1
- package/dist/{Collapsible-DKTSOxEd.mjs → Collapsible-CDwjsDwH.mjs} +1 -1
- package/dist/{ColorPicker-DK1jZSSj.mjs → ColorPicker-BBc8-TIN.mjs} +1 -1
- package/dist/{Combobox-BNzikc6h.mjs → Combobox-8BSw_3Ab.mjs} +1 -1
- package/dist/{DatePicker-BGt2KYR_.mjs → DatePicker-DJDUqjiE.mjs} +1 -1
- package/dist/{descriptions-DGuEJmgX.mjs → Descriptions-C1qZ05Ph.mjs} +2 -13
- package/dist/{Dialog-C_fbKqoA.mjs → Dialog-91oyw8Pi.mjs} +1 -1
- package/dist/{Drawer-DOOnBSMq.mjs → Drawer-DkFAYikg.mjs} +1 -1
- package/dist/{Editable-Btl-QYDY.mjs → Editable-lC-REFTP.mjs} +1 -1
- package/dist/{FileUpload-DHZf3u4d.mjs → FileUpload-7LgqVD7x.mjs} +1 -1
- package/dist/{FloatingPanel-CkWYZ4MO.mjs → FloatingPanel-DJG3Drow.mjs} +1 -1
- package/dist/{ImageViewer-CuTn5ho6.mjs → ImageViewer-s41DessS.mjs} +1 -1
- package/dist/{InternalIcon-Clwbj4MY.mjs → InternalIcon-Dr81WIG1.mjs} +1 -1
- package/dist/{JsonTreeViewTree-IqoSdRQR.mjs → JsonTreeViewTree-DkD987Zf.mjs} +1 -1
- package/dist/{Listbox-BQTnipRA.mjs → Listbox-C-u5WxHv.mjs} +1 -1
- package/dist/{Menu-CxPWabm-.mjs → Menu-DA7CeDYL.mjs} +1 -1
- package/dist/{NumberInput-FqS47j4x.mjs → NumberInput-BDbTmUgg.mjs} +1 -1
- package/dist/Pagination-BmFNV_Vu.mjs +210 -0
- package/dist/{PasswordInput-DxtreG-T.mjs → PasswordInput-Cas4e19J.mjs} +1 -1
- package/dist/{Popover-C2oWItCV.mjs → Popover-BQeFwet4.mjs} +1 -1
- package/dist/Progress-Byx2qRcT.mjs +191 -0
- package/dist/{RatingGroup-Btui4It7.mjs → RatingGroup-DSzJ56Yw.mjs} +1 -1
- package/dist/{Select-Dv0dqYII.mjs → Select-D9XgciuN.mjs} +1 -1
- package/dist/{StepsItem-BrDhhxjY.mjs → StepsItem-KwQ6SrNR.mjs} +46 -27
- package/dist/{Swap-DSxNn2gk.mjs → Swap-CkhKz3Ue.mjs} +1 -1
- package/dist/{TagsInput-Bz_NUGXo.mjs → TagsInput-BPrJLeuZ.mjs} +1 -1
- package/dist/{Toast-B15KZZH0.mjs → Toast-mxbydOO8.mjs} +1 -1
- package/dist/{ToggleGroup-NRzTANnd.mjs → ToggleGroup-BfW1gjVm.mjs} +1 -1
- package/dist/{TreeViewNodeCheckbox-l1l6EYyz.mjs → TreeViewNodeCheckbox-t2i6iaiq.mjs} +1 -1
- package/dist/{ai-attachments-BuH2tjOv.mjs → ai-attachments-ksKxDHG2.mjs} +1 -1
- package/dist/{ai-prompt-input-CV683FB3.mjs → ai-prompt-input-CMVRbC0T.mjs} +59 -54
- package/dist/{ai-reasoning-CesP6H0y.mjs → ai-reasoning-DA6bWwlo.mjs} +1 -1
- package/dist/{ai-response-Bu-iNsC-.mjs → ai-response-DrsGpVej.mjs} +1 -1
- package/dist/{ai-tool-pBb7sCz2.mjs → ai-tool-Dew8XiYk.mjs} +1 -1
- package/dist/{alert-ClMd57tZ.mjs → alert-pTPh9zID.mjs} +1 -1
- package/dist/{back-top-CJXLTyyZ.mjs → back-top-FpXkOE3N.mjs} +1 -1
- package/dist/{banner-fF1_G7qu.mjs → banner-CXrEuEc1.mjs} +1 -1
- package/dist/{cascade-select-C4OSlWpx.mjs → cascade-select-BhdGSRCa.mjs} +1 -1
- package/dist/{checkbox-group-CZSQvm6H.mjs → checkbox-group-DESN0Y8Y.mjs} +1 -1
- package/dist/components/accordion/index.d.mts +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/ai/index.mjs +4 -4
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +1 -1
- package/dist/components/calendar/index.mjs +9 -1
- package/dist/components/carousel/index.d.mts +1 -1
- package/dist/components/carousel/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +1 -1
- package/dist/components/collapsible/index.d.mts +1 -1
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.d.mts +1 -1
- package/dist/components/color-picker/index.mjs +1 -1
- package/dist/components/combobox/index.d.mts +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +1 -1
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +13 -1
- package/dist/components/dialog/index.d.mts +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/drawer/index.d.mts +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -1
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +1 -1
- package/dist/components/file-upload/index.d.mts +1 -1
- package/dist/components/file-upload/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +1 -1
- package/dist/components/floating-panel/index.mjs +1 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +1 -1
- package/dist/components/json-tree-view/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/menu/index.d.mts +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +1 -1
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/progress/index.d.mts +1 -1
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/rating-group/index.d.mts +1 -1
- package/dist/components/rating-group/index.mjs +1 -1
- package/dist/components/result/index.mjs +1 -1
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +1 -1
- package/dist/components/steps/index.mjs +1 -1
- package/dist/components/swap/index.d.mts +1 -1
- package/dist/components/swap/index.mjs +1 -1
- package/dist/components/table/index.d.mts +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tag/index.d.mts +2 -0
- package/dist/components/tag/index.mjs +2 -0
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +1 -1
- package/dist/{dynamic-input-5H3wZSDs.mjs → dynamic-input-BpzL0Fe-.mjs} +1 -1
- package/dist/generative/index.d.mts +47 -0
- package/dist/generative/index.mjs +1899 -0
- package/dist/{icon-lWVQxDG6.mjs → icon-CKL_BxrZ.mjs} +11 -4
- package/dist/{image-ojKJgHcu.mjs → image-BpWDMvNm.mjs} +1 -1
- package/dist/{index-Cbc4doAM.d.mts → index-BpC1s3zv.d.mts} +6 -10
- package/dist/{index-CGKWHB6A.d.mts → index-BudqX93u.d.mts} +1 -1
- package/dist/{index-DXw6GBt8.d.mts → index-BwUGTQag.d.mts} +1 -1
- package/dist/{index-DXXhfdQC.d.mts → index-CA0W58ZE.d.mts} +2 -0
- package/dist/index-CGk6TYb-.d.mts +34 -0
- package/dist/index-DQL1l90b.d.mts +42 -0
- package/dist/index-DkvQPyaW.d.mts +33 -0
- package/dist/{index-C785xRlX.d.mts → index-DyAQSYqR.d.mts} +1 -1
- package/dist/{index-BfpbvgWG.d.mts → index-FmT_lwS7.d.mts} +1 -1
- package/dist/{index-COWyuYkn.d.mts → index-fIWQxtE9.d.mts} +1 -1
- package/dist/{index-550dAp3p.d.mts → index-njppQnYT.d.mts} +1 -1
- package/dist/index.d.mts +12 -11
- package/dist/index.mjs +24 -23
- package/dist/{media-player-CfMaLa8v.mjs → media-player-DEXKLoUX.mjs} +2 -2
- package/dist/{order-list-06iEy0em.mjs → order-list-C8O2NdGR.mjs} +22 -1
- package/dist/{result-CwLNxqk-.mjs → result-BRbQTUeW.mjs} +2 -1
- package/dist/{select-E3cvud0r.mjs → select-CVMOvviD.mjs} +2 -2
- package/dist/{split-button-BIkQu0B7.mjs → split-button-BEgDY4EZ.mjs} +1 -1
- package/dist/{table-847YLjld.mjs → table-HzpYIOst.mjs} +6 -4
- package/dist/tag-CXAD4ox2.mjs +141 -0
- package/dist/{transfer-D4UANNwH.mjs → transfer-CnfoiJ8O.mjs} +1 -1
- package/dist/{tree-select-CyjhG4ZB.mjs → tree-select-CR2-Jskd.mjs} +1 -1
- package/package.json +2 -2
- package/dist/Pagination-OpR284GX.mjs +0 -180
- package/dist/Progress-ZSXSq5na.mjs +0 -115
- package/dist/calendar-D251DqRb.mjs +0 -469
- package/dist/index-CMVb7mmq.d.mts +0 -1813
- package/dist/index-CuonhYXR.d.mts +0 -21
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
|
|
3
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
4
4
|
import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
|
|
5
5
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
6
|
-
import { n as Select$1 } from "./select-
|
|
6
|
+
import { n as Select$1 } from "./select-CVMOvviD.mjs";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import * as $ from "svelte/internal/client";
|
|
9
9
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -83,6 +83,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
83
83
|
"pageSizeOptions",
|
|
84
84
|
"stickyFooter",
|
|
85
85
|
"initialSorting",
|
|
86
|
+
"striped",
|
|
86
87
|
"globalFilterPlaceholder",
|
|
87
88
|
"emptyText",
|
|
88
89
|
"reorderable",
|
|
@@ -206,7 +207,7 @@ function DataTable$1($$anchor, $$props) {
|
|
|
206
207
|
10,
|
|
207
208
|
20,
|
|
208
209
|
50
|
|
209
|
-
]), stickyFooter = $.prop($$props, "stickyFooter", 3, false), reorderable = $.prop($$props, "reorderable", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
210
|
+
]), stickyFooter = $.prop($$props, "stickyFooter", 3, false), striped = $.prop($$props, "striped", 3, false), reorderable = $.prop($$props, "reorderable", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
210
211
|
const messages = useComponentMessages();
|
|
211
212
|
const globalFilterText = $.derived(() => $$props.globalFilterPlaceholder ?? messages().table.filterAll);
|
|
212
213
|
const SELECT_COL_ID = "__select";
|
|
@@ -549,6 +550,7 @@ function DataTable$1($$anchor, $$props) {
|
|
|
549
550
|
"data-scope": "table",
|
|
550
551
|
"data-part": "root",
|
|
551
552
|
"data-reorderable": reorderable() || void 0,
|
|
553
|
+
"data-striped": striped() || void 0,
|
|
552
554
|
[$.STYLE]: { "--bs-table-row-height": $0 }
|
|
553
555
|
}), [() => `calc(${baseRowHeight()}px * var(--bs-density-scale, 1))`]);
|
|
554
556
|
var node_5 = $.child(div_3);
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as $ from "svelte/internal/client";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
+
//#region src/components/tag/Tag.svelte
|
|
7
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy",
|
|
11
|
+
"tone",
|
|
12
|
+
"variant",
|
|
13
|
+
"checkable",
|
|
14
|
+
"checked",
|
|
15
|
+
"defaultValue",
|
|
16
|
+
"closable",
|
|
17
|
+
"disabled",
|
|
18
|
+
"onClose",
|
|
19
|
+
"children"
|
|
20
|
+
]);
|
|
21
|
+
var root = $.from_html(`<span><button type="button" data-scope="tag" data-part="check"><!></button> <button type="button" data-scope="tag" data-part="close" aria-label="Remove"><!></button></span>`);
|
|
22
|
+
var root_1 = $.from_html(`<button><!></button>`);
|
|
23
|
+
var root_2 = $.from_html(`<button type="button" data-scope="tag" data-part="close" aria-label="Remove"><!></button>`);
|
|
24
|
+
var root_3 = $.from_html(`<span><!> <!></span>`);
|
|
25
|
+
function Tag$1($$anchor, $$props) {
|
|
26
|
+
$.push($$props, true);
|
|
27
|
+
injectComponentStyle("tag");
|
|
28
|
+
let tone = $.prop($$props, "tone", 3, "ink"), variant = $.prop($$props, "variant", 3, "solid"), checkable = $.prop($$props, "checkable", 3, false), checked = $.prop($$props, "checked", 15), defaultValue = $.prop($$props, "defaultValue", 3, false), closable = $.prop($$props, "closable", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
29
|
+
let internalChecked = $.state($.proxy(defaultValue()));
|
|
30
|
+
const isChecked = $.derived(() => checkable() && (checked() ?? $.get(internalChecked)));
|
|
31
|
+
function toggle() {
|
|
32
|
+
if (disabled()) return;
|
|
33
|
+
const next = !(checked() ?? $.get(internalChecked));
|
|
34
|
+
$.set(internalChecked, next);
|
|
35
|
+
checked(next);
|
|
36
|
+
}
|
|
37
|
+
function dismiss(event) {
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
if (disabled()) return;
|
|
40
|
+
$$props.onClose?.(event);
|
|
41
|
+
}
|
|
42
|
+
var fragment = $.comment();
|
|
43
|
+
var node = $.first_child(fragment);
|
|
44
|
+
var consequent = ($$anchor) => {
|
|
45
|
+
var span = root();
|
|
46
|
+
$.attribute_effect(span, () => ({
|
|
47
|
+
...rest,
|
|
48
|
+
"data-scope": "tag",
|
|
49
|
+
"data-part": "root",
|
|
50
|
+
"data-tone": tone(),
|
|
51
|
+
"data-variant": variant(),
|
|
52
|
+
"data-checkable": "true",
|
|
53
|
+
"data-checked": $.get(isChecked) || void 0,
|
|
54
|
+
"data-disabled": disabled() || void 0
|
|
55
|
+
}));
|
|
56
|
+
var button = $.child(span);
|
|
57
|
+
var node_1 = $.child(button);
|
|
58
|
+
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
59
|
+
$.reset(button);
|
|
60
|
+
var button_1 = $.sibling(button, 2);
|
|
61
|
+
var node_2 = $.child(button_1);
|
|
62
|
+
InternalIcon(node_2, { name: "x" });
|
|
63
|
+
$.reset(button_1);
|
|
64
|
+
$.reset(span);
|
|
65
|
+
$.template_effect(() => {
|
|
66
|
+
$.set_attribute(button, "aria-pressed", $.get(isChecked));
|
|
67
|
+
button.disabled = disabled();
|
|
68
|
+
button_1.disabled = disabled();
|
|
69
|
+
});
|
|
70
|
+
$.delegated("click", button, toggle);
|
|
71
|
+
$.delegated("click", button_1, dismiss);
|
|
72
|
+
$.append($$anchor, span);
|
|
73
|
+
};
|
|
74
|
+
var consequent_1 = ($$anchor) => {
|
|
75
|
+
var button_2 = root_1();
|
|
76
|
+
$.attribute_effect(button_2, () => ({
|
|
77
|
+
...rest,
|
|
78
|
+
type: "button",
|
|
79
|
+
"data-scope": "tag",
|
|
80
|
+
"data-part": "root",
|
|
81
|
+
"data-tone": tone(),
|
|
82
|
+
"data-variant": variant(),
|
|
83
|
+
"data-checkable": "true",
|
|
84
|
+
"data-checked": $.get(isChecked) || void 0,
|
|
85
|
+
"data-disabled": disabled() || void 0,
|
|
86
|
+
"aria-pressed": $.get(isChecked),
|
|
87
|
+
disabled: disabled(),
|
|
88
|
+
onclick: toggle
|
|
89
|
+
}));
|
|
90
|
+
var node_3 = $.child(button_2);
|
|
91
|
+
$.snippet(node_3, () => $$props.children ?? $.noop);
|
|
92
|
+
$.reset(button_2);
|
|
93
|
+
$.append($$anchor, button_2);
|
|
94
|
+
};
|
|
95
|
+
var alternate = ($$anchor) => {
|
|
96
|
+
var span_1 = root_3();
|
|
97
|
+
$.attribute_effect(span_1, () => ({
|
|
98
|
+
...rest,
|
|
99
|
+
"data-scope": "tag",
|
|
100
|
+
"data-part": "root",
|
|
101
|
+
"data-tone": tone(),
|
|
102
|
+
"data-variant": variant(),
|
|
103
|
+
"data-disabled": disabled() || void 0,
|
|
104
|
+
"aria-disabled": disabled() || void 0
|
|
105
|
+
}));
|
|
106
|
+
var node_4 = $.child(span_1);
|
|
107
|
+
$.snippet(node_4, () => $$props.children ?? $.noop);
|
|
108
|
+
var node_5 = $.sibling(node_4, 2);
|
|
109
|
+
var consequent_2 = ($$anchor) => {
|
|
110
|
+
var button_3 = root_2();
|
|
111
|
+
var node_6 = $.child(button_3);
|
|
112
|
+
InternalIcon(node_6, { name: "x" });
|
|
113
|
+
$.reset(button_3);
|
|
114
|
+
$.template_effect(() => button_3.disabled = disabled());
|
|
115
|
+
$.delegated("click", button_3, dismiss);
|
|
116
|
+
$.append($$anchor, button_3);
|
|
117
|
+
};
|
|
118
|
+
$.if(node_5, ($$render) => {
|
|
119
|
+
if (closable()) $$render(consequent_2);
|
|
120
|
+
});
|
|
121
|
+
$.reset(span_1);
|
|
122
|
+
$.append($$anchor, span_1);
|
|
123
|
+
};
|
|
124
|
+
$.if(node, ($$render) => {
|
|
125
|
+
if (checkable() && closable()) $$render(consequent);
|
|
126
|
+
else if (checkable()) $$render(consequent_1, 1);
|
|
127
|
+
else $$render(alternate, -1);
|
|
128
|
+
});
|
|
129
|
+
$.append($$anchor, fragment);
|
|
130
|
+
$.pop();
|
|
131
|
+
}
|
|
132
|
+
$.delegate(["click"]);
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/tag/index.ts
|
|
135
|
+
/** A small named seal for filtering and cataloguing. The resting shape
|
|
136
|
+
* is a span; `checkable` raises it to a pressed button, and `closable`
|
|
137
|
+
* hangs the removal seal inside — dismissal stays the consumer's state,
|
|
138
|
+
* the way the banner's does. */
|
|
139
|
+
const Tag = withSelfRoot(Tag$1);
|
|
140
|
+
//#endregion
|
|
141
|
+
export { Tag as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import { t as Button } from "./button-Cl45zjdj.mjs";
|
|
4
4
|
import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
|
|
5
5
|
import { Input } from "./components/input/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
4
4
|
import { t as Input } from "./Input-DLfLshYU.mjs";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bysages/svelte",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "By Sages Elements components for Svelte — styled by the paper-and-ink design tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessible",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@tanstack/svelte-virtual": "3.13.40",
|
|
53
53
|
"@zag-js/cascade-select": "1.45.0",
|
|
54
54
|
"@zag-js/svelte": "1.45.0",
|
|
55
|
-
"@bysages/core": "0.4.
|
|
55
|
+
"@bysages/core": "0.4.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@json-render/core": "0.21.0",
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import * as $ from "svelte/internal/client";
|
|
5
|
-
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
-
import { Pagination } from "@ark-ui/svelte/pagination";
|
|
7
|
-
//#region src/components/pagination/PaginationRoot.svelte
|
|
8
|
-
var rest_excludes$1 = /* @__PURE__ */ new Set([
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"size",
|
|
13
|
-
"children"
|
|
14
|
-
]);
|
|
15
|
-
function PaginationRoot($$anchor, $$props) {
|
|
16
|
-
const generatedId = $.props_id();
|
|
17
|
-
$.push($$props, true);
|
|
18
|
-
injectComponentStyle("pagination");
|
|
19
|
-
let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$1);
|
|
20
|
-
const id = $.derived(() => useElementId("pagination", generatedId, $$props.id));
|
|
21
|
-
var fragment = $.comment();
|
|
22
|
-
var node = $.first_child(fragment);
|
|
23
|
-
$.component(node, () => Pagination.Root, ($$anchor, ArkPagination_Root) => {
|
|
24
|
-
ArkPagination_Root($$anchor, $.spread_props(() => rest, {
|
|
25
|
-
get id() {
|
|
26
|
-
return $.get(id);
|
|
27
|
-
},
|
|
28
|
-
get "data-size"() {
|
|
29
|
-
return size();
|
|
30
|
-
},
|
|
31
|
-
children: ($$anchor, $$slotProps) => {
|
|
32
|
-
var fragment_1 = $.comment();
|
|
33
|
-
var node_1 = $.first_child(fragment_1);
|
|
34
|
-
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
35
|
-
$.append($$anchor, fragment_1);
|
|
36
|
-
},
|
|
37
|
-
$$slots: { default: true }
|
|
38
|
-
}));
|
|
39
|
-
});
|
|
40
|
-
$.append($$anchor, fragment);
|
|
41
|
-
$.pop();
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/components/pagination/Pagination.svelte
|
|
45
|
-
var rest_excludes = /* @__PURE__ */ new Set([
|
|
46
|
-
"$$slots",
|
|
47
|
-
"$$events",
|
|
48
|
-
"$$legacy",
|
|
49
|
-
"page",
|
|
50
|
-
"defaultValue",
|
|
51
|
-
"count",
|
|
52
|
-
"pageSize",
|
|
53
|
-
"defaultPageSize",
|
|
54
|
-
"siblingCount",
|
|
55
|
-
"label",
|
|
56
|
-
"children"
|
|
57
|
-
]);
|
|
58
|
-
var root = $.from_html(`<!> <!> <!> <!>`, 1);
|
|
59
|
-
function Pagination$1($$anchor, $$props) {
|
|
60
|
-
$.push($$props, true);
|
|
61
|
-
let page = $.prop($$props, "page", 15), count = $.prop($$props, "count", 3, 0), siblingCount = $.prop($$props, "siblingCount", 3, 1), rest = $.rest_props($$props, rest_excludes);
|
|
62
|
-
PaginationRoot($$anchor, $.spread_props({
|
|
63
|
-
get count() {
|
|
64
|
-
return count();
|
|
65
|
-
},
|
|
66
|
-
get defaultPage() {
|
|
67
|
-
return $$props.defaultValue;
|
|
68
|
-
},
|
|
69
|
-
get pageSize() {
|
|
70
|
-
return $$props.pageSize;
|
|
71
|
-
},
|
|
72
|
-
get defaultPageSize() {
|
|
73
|
-
return $$props.defaultPageSize;
|
|
74
|
-
},
|
|
75
|
-
get siblingCount() {
|
|
76
|
-
return siblingCount();
|
|
77
|
-
},
|
|
78
|
-
get "aria-label"() {
|
|
79
|
-
return $$props.label;
|
|
80
|
-
}
|
|
81
|
-
}, () => rest, {
|
|
82
|
-
get page() {
|
|
83
|
-
return page();
|
|
84
|
-
},
|
|
85
|
-
set page($$value) {
|
|
86
|
-
page($$value);
|
|
87
|
-
},
|
|
88
|
-
children: ($$anchor, $$slotProps) => {
|
|
89
|
-
var fragment_1 = root();
|
|
90
|
-
var node = $.first_child(fragment_1);
|
|
91
|
-
$.component(node, () => Pagination.PrevTrigger, ($$anchor, ArkPagination_PrevTrigger) => {
|
|
92
|
-
ArkPagination_PrevTrigger($$anchor, {
|
|
93
|
-
"aria-label": "Previous page",
|
|
94
|
-
children: ($$anchor, $$slotProps) => {
|
|
95
|
-
InternalIcon($$anchor, { name: "chevron-left" });
|
|
96
|
-
},
|
|
97
|
-
$$slots: { default: true }
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
var node_1 = $.sibling(node, 2);
|
|
101
|
-
{
|
|
102
|
-
const render = ($$anchor, pagination = $.noop) => {
|
|
103
|
-
var fragment_3 = $.comment();
|
|
104
|
-
var node_2 = $.first_child(fragment_3);
|
|
105
|
-
$.each(node_2, 19, () => pagination()().pages, (item, index) => item.type === "page" ? item.value : `ellipsis-${index}`, ($$anchor, item, index) => {
|
|
106
|
-
var fragment_4 = $.comment();
|
|
107
|
-
var node_3 = $.first_child(fragment_4);
|
|
108
|
-
var consequent = ($$anchor) => {
|
|
109
|
-
var fragment_5 = $.comment();
|
|
110
|
-
var node_4 = $.first_child(fragment_5);
|
|
111
|
-
$.component(node_4, () => Pagination.Item, ($$anchor, ArkPagination_Item) => {
|
|
112
|
-
ArkPagination_Item($$anchor, {
|
|
113
|
-
type: "page",
|
|
114
|
-
get value() {
|
|
115
|
-
return $.get(item).value;
|
|
116
|
-
},
|
|
117
|
-
children: ($$anchor, $$slotProps) => {
|
|
118
|
-
$.next();
|
|
119
|
-
var text = $.text();
|
|
120
|
-
$.template_effect(() => $.set_text(text, $.get(item).value));
|
|
121
|
-
$.append($$anchor, text);
|
|
122
|
-
},
|
|
123
|
-
$$slots: { default: true }
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
$.append($$anchor, fragment_5);
|
|
127
|
-
};
|
|
128
|
-
var alternate = ($$anchor) => {
|
|
129
|
-
var fragment_7 = $.comment();
|
|
130
|
-
var node_5 = $.first_child(fragment_7);
|
|
131
|
-
$.component(node_5, () => Pagination.Ellipsis, ($$anchor, ArkPagination_Ellipsis) => {
|
|
132
|
-
ArkPagination_Ellipsis($$anchor, {
|
|
133
|
-
get index() {
|
|
134
|
-
return $.get(index);
|
|
135
|
-
},
|
|
136
|
-
children: ($$anchor, $$slotProps) => {
|
|
137
|
-
$.next();
|
|
138
|
-
var text_1 = $.text("…");
|
|
139
|
-
$.append($$anchor, text_1);
|
|
140
|
-
},
|
|
141
|
-
$$slots: { default: true }
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
$.append($$anchor, fragment_7);
|
|
145
|
-
};
|
|
146
|
-
$.if(node_3, ($$render) => {
|
|
147
|
-
if ($.get(item).type === "page") $$render(consequent);
|
|
148
|
-
else $$render(alternate, -1);
|
|
149
|
-
});
|
|
150
|
-
$.append($$anchor, fragment_4);
|
|
151
|
-
});
|
|
152
|
-
$.append($$anchor, fragment_3);
|
|
153
|
-
};
|
|
154
|
-
$.component(node_1, () => Pagination.Context, ($$anchor, ArkPagination_Context) => {
|
|
155
|
-
ArkPagination_Context($$anchor, {
|
|
156
|
-
render,
|
|
157
|
-
$$slots: { render: true }
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
var node_6 = $.sibling(node_1, 2);
|
|
162
|
-
$.component(node_6, () => Pagination.NextTrigger, ($$anchor, ArkPagination_NextTrigger) => {
|
|
163
|
-
ArkPagination_NextTrigger($$anchor, {
|
|
164
|
-
"aria-label": "Next page",
|
|
165
|
-
children: ($$anchor, $$slotProps) => {
|
|
166
|
-
InternalIcon($$anchor, { name: "chevron-right" });
|
|
167
|
-
},
|
|
168
|
-
$$slots: { default: true }
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var node_7 = $.sibling(node_6, 2);
|
|
172
|
-
$.snippet(node_7, () => $$props.children ?? $.noop);
|
|
173
|
-
$.append($$anchor, fragment_1);
|
|
174
|
-
},
|
|
175
|
-
$$slots: { default: true }
|
|
176
|
-
}));
|
|
177
|
-
$.pop();
|
|
178
|
-
}
|
|
179
|
-
//#endregion
|
|
180
|
-
export { PaginationRoot as n, Pagination$1 as t };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
import * as $ from "svelte/internal/client";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
-
import { Progress } from "@ark-ui/svelte/progress";
|
|
6
|
-
//#region src/components/progress/ProgressRoot.svelte
|
|
7
|
-
var rest_excludes$1 = /* @__PURE__ */ new Set([
|
|
8
|
-
"$$slots",
|
|
9
|
-
"$$events",
|
|
10
|
-
"$$legacy",
|
|
11
|
-
"size",
|
|
12
|
-
"children"
|
|
13
|
-
]);
|
|
14
|
-
function ProgressRoot($$anchor, $$props) {
|
|
15
|
-
const generatedId = $.props_id();
|
|
16
|
-
$.push($$props, true);
|
|
17
|
-
injectComponentStyle("progress");
|
|
18
|
-
let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$1);
|
|
19
|
-
const id = $.derived(() => useElementId("progress", generatedId, $$props.id));
|
|
20
|
-
var fragment = $.comment();
|
|
21
|
-
var node = $.first_child(fragment);
|
|
22
|
-
$.component(node, () => Progress.Root, ($$anchor, ArkProgress_Root) => {
|
|
23
|
-
ArkProgress_Root($$anchor, $.spread_props(() => rest, {
|
|
24
|
-
get id() {
|
|
25
|
-
return $.get(id);
|
|
26
|
-
},
|
|
27
|
-
get "data-size"() {
|
|
28
|
-
return size();
|
|
29
|
-
},
|
|
30
|
-
children: ($$anchor, $$slotProps) => {
|
|
31
|
-
var fragment_1 = $.comment();
|
|
32
|
-
var node_1 = $.first_child(fragment_1);
|
|
33
|
-
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
34
|
-
$.append($$anchor, fragment_1);
|
|
35
|
-
},
|
|
36
|
-
$$slots: { default: true }
|
|
37
|
-
}));
|
|
38
|
-
});
|
|
39
|
-
$.append($$anchor, fragment);
|
|
40
|
-
$.pop();
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/components/progress/Progress.svelte
|
|
44
|
-
var rest_excludes = /* @__PURE__ */ new Set([
|
|
45
|
-
"$$slots",
|
|
46
|
-
"$$events",
|
|
47
|
-
"$$legacy",
|
|
48
|
-
"value",
|
|
49
|
-
"label",
|
|
50
|
-
"disabled",
|
|
51
|
-
"children"
|
|
52
|
-
]);
|
|
53
|
-
var root = $.from_html(`<!> <!> <!> <!>`, 1);
|
|
54
|
-
function Progress$1($$anchor, $$props) {
|
|
55
|
-
$.push($$props, true);
|
|
56
|
-
let value = $.prop($$props, "value", 15), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
57
|
-
ProgressRoot($$anchor, $.spread_props({ get disabled() {
|
|
58
|
-
return disabled();
|
|
59
|
-
} }, () => rest, {
|
|
60
|
-
get value() {
|
|
61
|
-
return value();
|
|
62
|
-
},
|
|
63
|
-
set value($$value) {
|
|
64
|
-
value($$value);
|
|
65
|
-
},
|
|
66
|
-
children: ($$anchor, $$slotProps) => {
|
|
67
|
-
var fragment_1 = root();
|
|
68
|
-
var node = $.first_child(fragment_1);
|
|
69
|
-
var consequent = ($$anchor) => {
|
|
70
|
-
var fragment_2 = $.comment();
|
|
71
|
-
var node_1 = $.first_child(fragment_2);
|
|
72
|
-
$.component(node_1, () => Progress.Label, ($$anchor, ArkProgress_Label) => {
|
|
73
|
-
ArkProgress_Label($$anchor, {
|
|
74
|
-
children: ($$anchor, $$slotProps) => {
|
|
75
|
-
$.next();
|
|
76
|
-
var text = $.text();
|
|
77
|
-
$.template_effect(() => $.set_text(text, $$props.label));
|
|
78
|
-
$.append($$anchor, text);
|
|
79
|
-
},
|
|
80
|
-
$$slots: { default: true }
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
$.append($$anchor, fragment_2);
|
|
84
|
-
};
|
|
85
|
-
$.if(node, ($$render) => {
|
|
86
|
-
if ($$props.label) $$render(consequent);
|
|
87
|
-
});
|
|
88
|
-
var node_2 = $.sibling(node, 2);
|
|
89
|
-
$.component(node_2, () => Progress.ValueText, ($$anchor, ArkProgress_ValueText) => {
|
|
90
|
-
ArkProgress_ValueText($$anchor, {});
|
|
91
|
-
});
|
|
92
|
-
var node_3 = $.sibling(node_2, 2);
|
|
93
|
-
$.component(node_3, () => Progress.Track, ($$anchor, ArkProgress_Track) => {
|
|
94
|
-
ArkProgress_Track($$anchor, {
|
|
95
|
-
children: ($$anchor, $$slotProps) => {
|
|
96
|
-
var fragment_4 = $.comment();
|
|
97
|
-
var node_4 = $.first_child(fragment_4);
|
|
98
|
-
$.component(node_4, () => Progress.Range, ($$anchor, ArkProgress_Range) => {
|
|
99
|
-
ArkProgress_Range($$anchor, {});
|
|
100
|
-
});
|
|
101
|
-
$.append($$anchor, fragment_4);
|
|
102
|
-
},
|
|
103
|
-
$$slots: { default: true }
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
var node_5 = $.sibling(node_3, 2);
|
|
107
|
-
$.snippet(node_5, () => $$props.children ?? $.noop);
|
|
108
|
-
$.append($$anchor, fragment_1);
|
|
109
|
-
},
|
|
110
|
-
$$slots: { default: true }
|
|
111
|
-
}));
|
|
112
|
-
$.pop();
|
|
113
|
-
}
|
|
114
|
-
//#endregion
|
|
115
|
-
export { ProgressRoot as n, Progress$1 as t };
|